supunmd-bail 2.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/WAProto/GenerateStatics.sh +3 -0
- package/WAProto/WAProto.proto +5519 -0
- package/WAProto/fix-imports.js +29 -0
- package/WAProto/index.d.ts +11969 -0
- package/WAProto/index.js +84368 -0
- package/engine-requirements.js +10 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.d.ts +62 -0
- package/lib/Defaults/index.js +115 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +10 -0
- package/lib/Signal/Group/ciphertext-message.js +12 -0
- package/lib/Signal/Group/group-session-builder.d.ts +15 -0
- package/lib/Signal/Group/group-session-builder.js +30 -0
- package/lib/Signal/Group/group_cipher.d.ts +17 -0
- package/lib/Signal/Group/group_cipher.js +82 -0
- package/lib/Signal/Group/index.d.ts +12 -0
- package/lib/Signal/Group/index.js +12 -0
- package/lib/Signal/Group/keyhelper.d.ts +11 -0
- package/lib/Signal/Group/keyhelper.js +18 -0
- package/lib/Signal/Group/queue-job.d.ts +2 -0
- package/lib/Signal/Group/queue-job.js +54 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
- package/lib/Signal/Group/sender-chain-key.js +26 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +63 -0
- package/lib/Signal/Group/sender-key-message.d.ts +19 -0
- package/lib/Signal/Group/sender-key-message.js +66 -0
- package/lib/Signal/Group/sender-key-name.d.ts +18 -0
- package/lib/Signal/Group/sender-key-name.js +48 -0
- package/lib/Signal/Group/sender-key-record.d.ts +31 -0
- package/lib/Signal/Group/sender-key-record.js +41 -0
- package/lib/Signal/Group/sender-key-state.d.ts +39 -0
- package/lib/Signal/Group/sender-key-state.js +84 -0
- package/lib/Signal/Group/sender-message-key.d.ts +12 -0
- package/lib/Signal/Group/sender-message-key.js +26 -0
- package/lib/Signal/libsignal.d.ts +5 -0
- package/lib/Signal/libsignal.js +342 -0
- package/lib/Signal/lid-mapping.d.ts +23 -0
- package/lib/Signal/lid-mapping.js +171 -0
- package/lib/Socket/Client/index.d.ts +3 -0
- package/lib/Socket/Client/index.js +3 -0
- package/lib/Socket/Client/types.d.ts +16 -0
- package/lib/Socket/Client/types.js +11 -0
- package/lib/Socket/Client/websocket.d.ts +13 -0
- package/lib/Socket/Client/websocket.js +50 -0
- package/lib/Socket/business.d.ts +188 -0
- package/lib/Socket/business.js +376 -0
- package/lib/Socket/chats.d.ts +98 -0
- package/lib/Socket/chats.js +962 -0
- package/lib/Socket/communities.d.ts +244 -0
- package/lib/Socket/communities.js +431 -0
- package/lib/Socket/groups.d.ts +137 -0
- package/lib/Socket/groups.js +327 -0
- package/lib/Socket/index.d.ts +231 -0
- package/lib/Socket/index.js +18 -0
- package/lib/Socket/messages-recv.d.ts +173 -0
- package/lib/Socket/messages-recv.js +1228 -0
- package/lib/Socket/messages-send.d.ts +169 -0
- package/lib/Socket/messages-send.js +1070 -0
- package/lib/Socket/mex.d.ts +3 -0
- package/lib/Socket/mex.js +42 -0
- package/lib/Socket/newsletter.d.ts +147 -0
- package/lib/Socket/newsletter.js +181 -0
- package/lib/Socket/socket.d.ts +51 -0
- package/lib/Socket/socket.js +883 -0
- package/lib/Socket/usync.d.ts +37 -0
- package/lib/Socket/usync.js +63 -0
- package/lib/Types/Auth.d.ts +111 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Bussines.d.ts +25 -0
- package/lib/Types/Bussines.js +2 -0
- package/lib/Types/Call.d.ts +14 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.d.ts +123 -0
- package/lib/Types/Chat.js +8 -0
- package/lib/Types/Contact.d.ts +24 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Events.d.ts +202 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/GroupMetadata.d.ts +67 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/Label.d.ts +47 -0
- package/lib/Types/Label.js +25 -0
- package/lib/Types/LabelAssociation.d.ts +30 -0
- package/lib/Types/LabelAssociation.js +7 -0
- package/lib/Types/Message.d.ts +303 -0
- package/lib/Types/Message.js +11 -0
- package/lib/Types/Newsletter.d.ts +135 -0
- package/lib/Types/Newsletter.js +31 -0
- package/lib/Types/Product.d.ts +79 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.d.ts +76 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.d.ts +133 -0
- package/lib/Types/Socket.js +3 -0
- package/lib/Types/State.d.ts +39 -0
- package/lib/Types/State.js +13 -0
- package/lib/Types/USync.d.ts +26 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.d.ts +65 -0
- package/lib/Types/index.js +26 -0
- package/lib/Utils/auth-utils.d.ts +19 -0
- package/lib/Utils/auth-utils.js +257 -0
- package/lib/Utils/baileys-event-stream.d.ts +17 -0
- package/lib/Utils/baileys-event-stream.js +56 -0
- package/lib/Utils/browser-utils.d.ts +4 -0
- package/lib/Utils/browser-utils.js +28 -0
- package/lib/Utils/business.d.ts +23 -0
- package/lib/Utils/business.js +231 -0
- package/lib/Utils/chat-utils.d.ts +70 -0
- package/lib/Utils/chat-utils.js +763 -0
- package/lib/Utils/crypto.d.ts +41 -0
- package/lib/Utils/crypto.js +142 -0
- package/lib/Utils/decode-wa-message.d.ts +48 -0
- package/lib/Utils/decode-wa-message.js +279 -0
- package/lib/Utils/event-buffer.d.ts +34 -0
- package/lib/Utils/event-buffer.js +548 -0
- package/lib/Utils/generics.d.ts +90 -0
- package/lib/Utils/generics.js +381 -0
- package/lib/Utils/history.d.ts +19 -0
- package/lib/Utils/history.js +84 -0
- package/lib/Utils/index.d.ts +20 -0
- package/lib/Utils/index.js +20 -0
- package/lib/Utils/link-preview.d.ts +21 -0
- package/lib/Utils/link-preview.js +85 -0
- package/lib/Utils/logger.d.ts +12 -0
- package/lib/Utils/logger.js +3 -0
- package/lib/Utils/lt-hash.d.ts +13 -0
- package/lib/Utils/lt-hash.js +48 -0
- package/lib/Utils/make-mutex.d.ts +8 -0
- package/lib/Utils/make-mutex.js +40 -0
- package/lib/Utils/message-retry-manager.d.ts +82 -0
- package/lib/Utils/message-retry-manager.js +149 -0
- package/lib/Utils/messages-media.d.ts +114 -0
- package/lib/Utils/messages-media.js +663 -0
- package/lib/Utils/messages.d.ts +76 -0
- package/lib/Utils/messages.js +908 -0
- package/lib/Utils/noise-handler.d.ts +20 -0
- package/lib/Utils/noise-handler.js +147 -0
- package/lib/Utils/pre-key-manager.d.ts +28 -0
- package/lib/Utils/pre-key-manager.js +106 -0
- package/lib/Utils/process-message.d.ts +42 -0
- package/lib/Utils/process-message.js +413 -0
- package/lib/Utils/signal.d.ts +34 -0
- package/lib/Utils/signal.js +159 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
- package/lib/Utils/use-multi-file-auth-state.js +121 -0
- package/lib/Utils/validate-connection.d.ts +11 -0
- package/lib/Utils/validate-connection.js +195 -0
- package/lib/WABinary/constants.d.ts +28 -0
- package/lib/WABinary/constants.js +1301 -0
- package/lib/WABinary/decode.d.ts +7 -0
- package/lib/WABinary/decode.js +238 -0
- package/lib/WABinary/encode.d.ts +3 -0
- package/lib/WABinary/encode.js +216 -0
- package/lib/WABinary/generic-utils.d.ts +15 -0
- package/lib/WABinary/generic-utils.js +191 -0
- package/lib/WABinary/index.d.ts +6 -0
- package/lib/WABinary/index.js +6 -0
- package/lib/WABinary/jid-utils.d.ts +48 -0
- package/lib/WABinary/jid-utils.js +96 -0
- package/lib/WABinary/types.d.ts +19 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.d.ts +9 -0
- package/lib/WAM/BinaryInfo.js +10 -0
- package/lib/WAM/constants.d.ts +40 -0
- package/lib/WAM/constants.js +22853 -0
- package/lib/WAM/encode.d.ts +3 -0
- package/lib/WAM/encode.js +150 -0
- package/lib/WAM/index.d.ts +4 -0
- package/lib/WAM/index.js +4 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +10 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +29 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +54 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +26 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
- package/lib/WAUSync/Protocols/index.d.ts +5 -0
- package/lib/WAUSync/Protocols/index.js +5 -0
- package/lib/WAUSync/USyncQuery.d.ts +29 -0
- package/lib/WAUSync/USyncQuery.js +94 -0
- package/lib/WAUSync/USyncUser.d.ts +13 -0
- package/lib/WAUSync/USyncUser.js +23 -0
- package/lib/WAUSync/index.d.ts +4 -0
- package/lib/WAUSync/index.js +4 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.js +36 -0
- package/lib/supun +1 -0
- package/package.json +104 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export class USyncUser {
|
|
2
|
+
withId(id) {
|
|
3
|
+
this.id = id;
|
|
4
|
+
return this;
|
|
5
|
+
}
|
|
6
|
+
withLid(lid) {
|
|
7
|
+
this.lid = lid;
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
withPhone(phone) {
|
|
11
|
+
this.phone = phone;
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
withType(type) {
|
|
15
|
+
this.type = type;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
withPersonaId(personaId) {
|
|
19
|
+
this.personaId = personaId;
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=USyncUser.js.map
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Copyright © 2025 [ KyuuRzy ]
|
|
4
|
+
* All rights reserved. This source code is the property of [ ANU Team ].
|
|
5
|
+
*
|
|
6
|
+
* GitHub: https://github.com/kiuur
|
|
7
|
+
* Telegram: https://t.me/tskiofc
|
|
8
|
+
* Note: jangan hpus nama gw _-
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import makeWASocket from './Socket/index.js';
|
|
12
|
+
export * from '../WAProto/index.js';
|
|
13
|
+
export * from './Utils/index.js';
|
|
14
|
+
export * from './Types/index.js';
|
|
15
|
+
export * from './Defaults/index.js';
|
|
16
|
+
export * from './WABinary/index.js';
|
|
17
|
+
export * from './WAM/index.js';
|
|
18
|
+
export * from './WAUSync/index.js';
|
|
19
|
+
export type WASocket = ReturnType<typeof makeWASocket>;
|
|
20
|
+
export { makeWASocket };
|
|
21
|
+
export default makeWASocket;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import makeWASocket from './Socket/index.js';
|
|
2
|
+
export * from '../WAProto/index.js';
|
|
3
|
+
export * from './Utils/index.js';
|
|
4
|
+
export * from './Types/index.js';
|
|
5
|
+
export * from './Defaults/index.js';
|
|
6
|
+
export * from './WABinary/index.js';
|
|
7
|
+
export * from './WAM/index.js';
|
|
8
|
+
export * from './WAUSync/index.js';
|
|
9
|
+
export { makeWASocket };
|
|
10
|
+
export default makeWASocket;
|
|
11
|
+
|
|
12
|
+
import chalk from "chalk"
|
|
13
|
+
|
|
14
|
+
console.log(
|
|
15
|
+
chalk.yellowBright(`
|
|
16
|
+
WhatsApp : https://whatsapp.com/channel/0029Vb55cv41nozBTTIw1y07
|
|
17
|
+
Youtube : @darkshadow_zap
|
|
18
|
+
|
|
19
|
+
@Mr-Supun-Fernando #SUPUN-MD
|
|
20
|
+
\n`)
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
const prefix = chalk.blueBright("[BAILEYS SUPUN-MD INC]");
|
|
24
|
+
const time = () => chalk.redBright(`[${new Date().toLocaleTimeString("id-ID")}]`);
|
|
25
|
+
const methods = ["log", "info", "warn", "error", "debug", "trace"];
|
|
26
|
+
|
|
27
|
+
for (const method of methods) {
|
|
28
|
+
if (typeof console[method] === "function") {
|
|
29
|
+
const original = console[method].bind(console);
|
|
30
|
+
console[method] = (...args) => {
|
|
31
|
+
original(`${prefix} ${time()}`, ...args);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
package/lib/supun
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "supunmd-bail",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.0.1",
|
|
5
|
+
"description": "A WebSockets library for interacting with WhatsApp Web",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"whatsapp",
|
|
8
|
+
"automation"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "",
|
|
11
|
+
"repository": {
|
|
12
|
+
"url": "https://www.npmjs.com/package/mr-supun-fernando"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "Supun Fernando",
|
|
16
|
+
"main": "lib/index.js",
|
|
17
|
+
"types": "lib/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"lib/**/*",
|
|
20
|
+
"WAProto/**/*",
|
|
21
|
+
"engine-requirements.js"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build:all": "tsc && typedoc",
|
|
25
|
+
"build:docs": "typedoc",
|
|
26
|
+
"build:tsc": "tsc",
|
|
27
|
+
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
28
|
+
"changelog:preview": "conventional-changelog -p angular -u",
|
|
29
|
+
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
30
|
+
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
|
|
31
|
+
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
|
|
32
|
+
"prepack": "",
|
|
33
|
+
"prepare": "",
|
|
34
|
+
"preinstall": "node ./engine-requirements.js",
|
|
35
|
+
"release": "release-it",
|
|
36
|
+
"test": "jest"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@cacheable/node-cache": "^1.4.0",
|
|
40
|
+
"@hapi/boom": "^9.1.3",
|
|
41
|
+
"async-mutex": "^0.5.0",
|
|
42
|
+
"libsignal": "git+https://github.com/whiskeysockets/libsignal-node",
|
|
43
|
+
"lru-cache": "^11.1.0",
|
|
44
|
+
"music-metadata": "^11.7.0",
|
|
45
|
+
"p-queue": "^9.0.0",
|
|
46
|
+
"pino": "^9.6",
|
|
47
|
+
"protobufjs": "^7.2.4",
|
|
48
|
+
"ws": "^8.13.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
52
|
+
"@eslint/js": "^9.31.0",
|
|
53
|
+
"@types/jest": "^30.0.0",
|
|
54
|
+
"@types/node": "^20.9.0",
|
|
55
|
+
"@types/ws": "^8.0.0",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
57
|
+
"@typescript-eslint/parser": "^8",
|
|
58
|
+
"@whiskeysockets/eslint-config": "^1.0.0",
|
|
59
|
+
"conventional-changelog": "^7.1.1",
|
|
60
|
+
"conventional-changelog-angular": "^8.0.0",
|
|
61
|
+
"esbuild-register": "^3.6.0",
|
|
62
|
+
"eslint": "^9",
|
|
63
|
+
"eslint-config-prettier": "^10.1.2",
|
|
64
|
+
"eslint-plugin-prettier": "^5.4.0",
|
|
65
|
+
"jest": "^30.0.5",
|
|
66
|
+
"jimp": "^1.6.0",
|
|
67
|
+
"jiti": "^2.4.2",
|
|
68
|
+
"json": "^11.0.0",
|
|
69
|
+
"link-preview-js": "^3.0.0",
|
|
70
|
+
"lru-cache": "^11.1.0",
|
|
71
|
+
"open": "^8.4.2",
|
|
72
|
+
"pino-pretty": "^13.1.1",
|
|
73
|
+
"prettier": "^3.5.3",
|
|
74
|
+
"protobufjs-cli": "^1.1.3",
|
|
75
|
+
"release-it": "^15.10.3",
|
|
76
|
+
"ts-jest": "^29.4.0",
|
|
77
|
+
"tsc-esm-fix": "^3.1.2",
|
|
78
|
+
"tsx": "^4.20.3",
|
|
79
|
+
"typedoc": "^0.27.9",
|
|
80
|
+
"typedoc-plugin-markdown": "4.4.2",
|
|
81
|
+
"typescript": "^5.8.2"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"audio-decode": "^2.1.3",
|
|
85
|
+
"jimp": "^1.6.0",
|
|
86
|
+
"link-preview-js": "^3.0.0",
|
|
87
|
+
"sharp": "*"
|
|
88
|
+
},
|
|
89
|
+
"peerDependenciesMeta": {
|
|
90
|
+
"audio-decode": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
"jimp": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"link-preview-js": {
|
|
97
|
+
"optional": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"packageManager": "yarn@4.9.2",
|
|
101
|
+
"engines": {
|
|
102
|
+
"node": ">=20.0.0"
|
|
103
|
+
}
|
|
104
|
+
}
|