@badzz88/baileys 8.5.6 → 8.5.8
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/README.md +337 -1055
- package/WAProto/WAProto.proto +28 -1189
- package/WAProto/fix-imports.js +79 -69
- package/WAProto/index.d.ts +71491 -15254
- package/WAProto/index.js +126436 -19814
- package/engine-requirements.js +8 -15
- package/lib/Defaults/index.js +130 -0
- package/{src → lib}/Signal/Group/ciphertext-message.js +2 -5
- package/lib/Signal/Group/group-session-builder.js +30 -0
- package/{src → lib}/Signal/Group/group_cipher.js +11 -11
- package/lib/Signal/Group/index.js +12 -0
- package/lib/Signal/Group/keyhelper.js +18 -0
- package/{src → lib}/Signal/Group/sender-chain-key.js +6 -9
- package/{src → lib}/Signal/Group/sender-key-distribution-message.js +6 -9
- package/{src → lib}/Signal/Group/sender-key-message.js +9 -12
- package/{src → lib}/Signal/Group/sender-key-name.js +2 -5
- package/{src → lib}/Signal/Group/sender-key-record.js +8 -11
- package/{src → lib}/Signal/Group/sender-key-state.js +6 -9
- package/lib/Signal/Group/sender-message-key.js +26 -0
- package/{src → lib}/Signal/libsignal.js +131 -155
- package/{src → lib}/Signal/lid-mapping.js +27 -23
- package/lib/Socket/Client/index.js +3 -0
- package/lib/Socket/Client/types.js +11 -0
- package/{src → lib}/Socket/Client/websocket.js +11 -18
- package/{src → lib}/Socket/business.js +35 -67
- package/{src → lib}/Socket/chats.js +294 -550
- package/{src → lib}/Socket/communities.js +82 -114
- package/lib/Socket/graphql.js +716 -0
- package/lib/Socket/groups.js +374 -0
- package/lib/Socket/index.js +18 -0
- package/lib/Socket/interop.js +463 -0
- package/{src → lib}/Socket/luxu.js +120 -82
- package/lib/Socket/messages-recv.js +1916 -0
- package/lib/Socket/messages-send.js +1436 -0
- package/lib/Socket/mex.js +54 -0
- package/lib/Socket/newsletter.js +757 -0
- package/lib/Socket/privacy.js +318 -0
- package/{src → lib}/Socket/socket.js +356 -244
- package/lib/Socket/username.js +236 -0
- package/lib/Store/index.js +10 -0
- package/{src → lib}/Store/keyed-db.js +11 -21
- package/lib/Store/make-cache-manager-store.js +85 -0
- package/lib/Store/make-in-memory-store.js +244 -0
- package/{src → lib}/Store/make-ordered-dictionary.js +19 -25
- package/{src → lib}/Store/object-repository.js +11 -5
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Bussines.js +2 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.js +8 -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 +25 -0
- package/lib/Types/LabelAssociation.js +7 -0
- package/lib/Types/Message.js +11 -0
- package/lib/Types/Mex.js +111 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.js +3 -0
- package/lib/Types/State.js +56 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.js +26 -0
- package/{src → lib}/Utils/auth-utils.js +91 -43
- package/lib/Utils/browser-utils.js +48 -0
- package/lib/Utils/business.js +231 -0
- package/lib/Utils/chat-utils.js +872 -0
- package/lib/Utils/companion-reg-client-utils.js +35 -0
- package/lib/Utils/crypto.js +118 -0
- package/lib/Utils/decode-wa-message.js +350 -0
- package/{src → lib}/Utils/event-buffer.js +81 -39
- package/lib/Utils/generics.js +403 -0
- package/lib/Utils/history.js +134 -0
- package/{src → lib}/Utils/identity-change-handler.js +9 -11
- package/lib/Utils/index.js +23 -0
- package/lib/Utils/link-preview.js +85 -0
- package/lib/Utils/logger.js +3 -0
- package/lib/Utils/lt-hash.js +8 -0
- package/{src → lib}/Utils/make-mutex.js +7 -10
- package/lib/Utils/message-composer.js +273 -0
- package/{src → lib}/Utils/message-retry-manager.js +76 -28
- package/lib/Utils/messages-media.js +870 -0
- package/lib/Utils/messages.js +1337 -0
- package/lib/Utils/noise-handler.js +201 -0
- package/{src → lib}/Utils/offline-node-processor.js +10 -4
- package/{src → lib}/Utils/pre-key-manager.js +27 -11
- package/lib/Utils/process-message.js +630 -0
- package/{src → lib}/Utils/reporting-utils.js +12 -15
- package/lib/Utils/signal.js +201 -0
- package/{src → lib}/Utils/stanza-ack.js +12 -4
- package/lib/Utils/sticker.js +110 -0
- package/{src → lib}/Utils/sync-action-utils.js +14 -10
- package/{src → lib}/Utils/tc-token-utils.js +48 -43
- package/{src → lib}/Utils/use-multi-file-auth-state.js +35 -25
- package/lib/Utils/validate-connection.js +203 -0
- package/{src → lib}/WABinary/constants.js +9 -12
- package/{src → lib}/WABinary/decode.js +38 -118
- package/{src → lib}/WABinary/encode.js +6 -11
- package/lib/WABinary/generic-utils.js +204 -0
- package/lib/WABinary/index.js +6 -0
- package/lib/WABinary/jid-utils.js +98 -0
- package/lib/WABinary/types.js +2 -0
- package/{src → lib}/WAM/BinaryInfo.js +2 -5
- package/{src → lib}/WAM/constants.js +4 -16635
- package/{src → lib}/WAM/encode.js +18 -17
- package/lib/WAM/index.js +4 -0
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +53 -0
- package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +43 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +54 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +57 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +30 -0
- package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +58 -0
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +30 -0
- package/lib/WAUSync/Protocols/USyncPictureProtocol.js +32 -0
- package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +28 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +39 -0
- package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +38 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +27 -0
- package/lib/WAUSync/Protocols/index.js +12 -0
- package/lib/WAUSync/USyncQuery.js +151 -0
- package/lib/WAUSync/USyncUser.js +56 -0
- package/lib/WAUSync/index.js +3 -0
- package/{src → lib}/index.js +16 -51
- package/package.json +129 -99
- package/LICENSE +0 -21
- package/src/Defaults/index.js +0 -186
- package/src/Defaults/phonenumber-mcc.json +0 -223
- package/src/Signal/Group/group-session-builder.js +0 -86
- package/src/Signal/Group/index.js +0 -140
- package/src/Signal/Group/keyhelper.js +0 -77
- package/src/Signal/Group/sender-message-key.js +0 -29
- package/src/Socket/Client/index.js +0 -31
- package/src/Socket/Client/types.js +0 -13
- package/src/Socket/aigroups.js +0 -221
- package/src/Socket/graphql.js +0 -523
- package/src/Socket/groups.js +0 -516
- package/src/Socket/index.js +0 -31
- package/src/Socket/interactive-handler.js +0 -527
- package/src/Socket/interop.js +0 -339
- package/src/Socket/managed-account.js +0 -98
- package/src/Socket/messages-recv.js +0 -2685
- package/src/Socket/messages-send.js +0 -2047
- package/src/Socket/mex.js +0 -57
- package/src/Socket/newsletter.js +0 -455
- package/src/Socket/privacy.js +0 -125
- package/src/Socket/registration.js +0 -236
- package/src/Socket/text-router.js +0 -65
- package/src/Socket/username.js +0 -130
- package/src/Store/index.js +0 -33
- package/src/Store/make-cache-manager-store.js +0 -84
- package/src/Store/make-in-memory-store.js +0 -551
- package/src/Types/Auth.js +0 -31
- package/src/Types/Bussines.js +0 -2
- package/src/Types/Call.js +0 -2
- package/src/Types/Chat.js +0 -4
- package/src/Types/Contact.js +0 -2
- package/src/Types/Events.js +0 -2
- package/src/Types/GroupMetadata.js +0 -2
- package/src/Types/Label.js +0 -26
- package/src/Types/LabelAssociation.js +0 -8
- package/src/Types/Message.js +0 -93
- package/src/Types/Mex.js +0 -112
- package/src/Types/Newsletter.js +0 -109
- package/src/Types/Product.js +0 -2
- package/src/Types/Signal.js +0 -2
- package/src/Types/Socket.js +0 -2
- package/src/Types/State.js +0 -62
- package/src/Types/USync.js +0 -2
- package/src/Types/index.js +0 -56
- package/src/Utils/browser-utils.js +0 -112
- package/src/Utils/business.js +0 -240
- package/src/Utils/chat-utils.js +0 -1230
- package/src/Utils/command-loader.d.ts +0 -27
- package/src/Utils/command-loader.js +0 -89
- package/src/Utils/companion-reg-client-utils.js +0 -40
- package/src/Utils/consumer-application.js +0 -105
- package/src/Utils/crypto.js +0 -118
- package/src/Utils/curve25519-js.js +0 -242
- package/src/Utils/decode-wa-message.js +0 -529
- package/src/Utils/generics.js +0 -483
- package/src/Utils/group-history.js +0 -44
- package/src/Utils/history.js +0 -232
- package/src/Utils/index.js +0 -58
- package/src/Utils/jid-display-normalization.js +0 -195
- package/src/Utils/link-preview.js +0 -135
- package/src/Utils/logger.js +0 -8
- package/src/Utils/lt-hash.js +0 -25
- package/src/Utils/message-composer.js +0 -471
- package/src/Utils/messages-media.js +0 -843
- package/src/Utils/messages.js +0 -2817
- package/src/Utils/meta-ai-msmsg.js +0 -222
- package/src/Utils/native-bridge.js +0 -68
- package/src/Utils/noise-handler.js +0 -169
- package/src/Utils/process-message.js +0 -950
- package/src/Utils/session-pool.d.ts +0 -14
- package/src/Utils/session-pool.js +0 -70
- package/src/Utils/signal.js +0 -217
- package/src/Utils/sticker.d.ts +0 -13
- package/src/Utils/sticker.js +0 -123
- package/src/Utils/validate-connection.js +0 -209
- package/src/Utils/view-once-cache.d.ts +0 -12
- package/src/Utils/view-once-cache.js +0 -63
- package/src/Utils/voip-rekey.js +0 -22
- package/src/WABinary/generic-utils.js +0 -238
- package/src/WABinary/index.js +0 -34
- package/src/WABinary/jid-utils.js +0 -351
- package/src/WABinary/types.js +0 -2
- package/src/WAM/index.js +0 -32
- package/src/WAUSync/Protocols/USyncBotProfileProtocol.js +0 -53
- package/src/WAUSync/Protocols/USyncBusinessProtocol.js +0 -44
- package/src/WAUSync/Protocols/USyncContactProtocol.js +0 -55
- package/src/WAUSync/Protocols/USyncDeviceProtocol.js +0 -55
- package/src/WAUSync/Protocols/USyncDisappearingModeProtocol.js +0 -31
- package/src/WAUSync/Protocols/USyncFeatureProtocol.js +0 -54
- package/src/WAUSync/Protocols/USyncLIDProtocol.js +0 -32
- package/src/WAUSync/Protocols/USyncNewsletterProtocol.js +0 -473
- package/src/WAUSync/Protocols/USyncPictureProtocol.js +0 -34
- package/src/WAUSync/Protocols/USyncSidelistProtocol.js +0 -29
- package/src/WAUSync/Protocols/USyncStatusProtocol.js +0 -42
- package/src/WAUSync/Protocols/USyncTextStatusProtocol.js +0 -38
- package/src/WAUSync/Protocols/USyncUsernameProtocol.js +0 -28
- package/src/WAUSync/Protocols/index.js +0 -40
- package/src/WAUSync/USyncQuery.js +0 -126
- package/src/WAUSync/USyncUser.js +0 -50
- package/src/WAUSync/index.js +0 -32
- package/src/antiban.js +0 -4152
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { getBinaryNodeChild } from '../WABinary/index.js'
|
|
2
|
+
import { USyncBotProfileProtocol } from './Protocols/USyncBotProfileProtocol.js'
|
|
3
|
+
import { USyncLIDProtocol } from './Protocols/USyncLIDProtocol.js'
|
|
4
|
+
import { USyncBusinessProtocol } from './Protocols/USyncBusinessProtocol.js'
|
|
5
|
+
import { USyncPictureProtocol } from './Protocols/USyncPictureProtocol.js'
|
|
6
|
+
import { USyncTextStatusProtocol } from './Protocols/USyncTextStatusProtocol.js'
|
|
7
|
+
import { USyncSidelistProtocol } from './Protocols/USyncSidelistProtocol.js'
|
|
8
|
+
import { USyncFeatureProtocol } from './Protocols/USyncFeatureProtocol.js'
|
|
9
|
+
import {
|
|
10
|
+
USyncContactProtocol,
|
|
11
|
+
USyncDeviceProtocol,
|
|
12
|
+
USyncDisappearingModeProtocol,
|
|
13
|
+
USyncStatusProtocol,
|
|
14
|
+
USyncUsernameProtocol
|
|
15
|
+
} from './Protocols/index.js'
|
|
16
|
+
|
|
17
|
+
export class USyncQuery {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.protocols = []
|
|
20
|
+
this.users = []
|
|
21
|
+
this.context = 'interactive'
|
|
22
|
+
this.mode = 'query'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
withMode(mode) {
|
|
26
|
+
this.mode = mode
|
|
27
|
+
return this
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
withContext(context) {
|
|
31
|
+
this.context = context
|
|
32
|
+
return this
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
withUser(user) {
|
|
36
|
+
this.users.push(user)
|
|
37
|
+
return this
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
parseUSyncQueryResult(result) {
|
|
41
|
+
if (result?.attrs.type !== 'result') {
|
|
42
|
+
return
|
|
43
|
+
}
|
|
44
|
+
const protocolMap = Object.fromEntries(
|
|
45
|
+
this.protocols.map(protocol => [protocol.name, protocol.parser])
|
|
46
|
+
)
|
|
47
|
+
const queryResult = {
|
|
48
|
+
list: [],
|
|
49
|
+
sideList: []
|
|
50
|
+
}
|
|
51
|
+
const usyncNode = getBinaryNodeChild(result, 'usync')
|
|
52
|
+
|
|
53
|
+
const parseUserNodes = nodes => {
|
|
54
|
+
return nodes.reduce((acc, node) => {
|
|
55
|
+
const id = node?.attrs.jid
|
|
56
|
+
if (id) {
|
|
57
|
+
const data = Array.isArray(node?.content)
|
|
58
|
+
? Object.fromEntries(
|
|
59
|
+
node.content.map(content => {
|
|
60
|
+
const protocol = content.tag
|
|
61
|
+
const parser = protocolMap[protocol]
|
|
62
|
+
if (!parser) {
|
|
63
|
+
return [protocol, null]
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
return [protocol, parser(content)]
|
|
67
|
+
} catch (err) {
|
|
68
|
+
return [protocol, null]
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
)
|
|
72
|
+
: {}
|
|
73
|
+
acc.push({ ...data, id })
|
|
74
|
+
}
|
|
75
|
+
return acc
|
|
76
|
+
}, [])
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const listNode = usyncNode ? getBinaryNodeChild(usyncNode, 'list') : undefined
|
|
80
|
+
if (listNode?.content && Array.isArray(listNode.content)) {
|
|
81
|
+
queryResult.list = parseUserNodes(listNode.content)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const sideListNode = usyncNode ? getBinaryNodeChild(usyncNode, 'side_list') : undefined
|
|
85
|
+
if (sideListNode?.content && Array.isArray(sideListNode.content)) {
|
|
86
|
+
queryResult.sideList = parseUserNodes(sideListNode.content)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return queryResult
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
withDeviceProtocol() {
|
|
93
|
+
this.protocols.push(new USyncDeviceProtocol())
|
|
94
|
+
return this
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
withContactProtocol() {
|
|
98
|
+
this.protocols.push(new USyncContactProtocol())
|
|
99
|
+
return this
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
withStatusProtocol() {
|
|
103
|
+
this.protocols.push(new USyncStatusProtocol())
|
|
104
|
+
return this
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
withDisappearingModeProtocol() {
|
|
108
|
+
this.protocols.push(new USyncDisappearingModeProtocol())
|
|
109
|
+
return this
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
withBotProfileProtocol() {
|
|
113
|
+
this.protocols.push(new USyncBotProfileProtocol())
|
|
114
|
+
return this
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
withLIDProtocol() {
|
|
118
|
+
this.protocols.push(new USyncLIDProtocol())
|
|
119
|
+
return this
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
withUsernameProtocol() {
|
|
123
|
+
this.protocols.push(new USyncUsernameProtocol())
|
|
124
|
+
return this
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
withBusinessProtocol(profileVersion) {
|
|
128
|
+
this.protocols.push(new USyncBusinessProtocol(profileVersion))
|
|
129
|
+
return this
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
withPictureProtocol(type) {
|
|
133
|
+
this.protocols.push(new USyncPictureProtocol(type))
|
|
134
|
+
return this
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
withTextStatusProtocol() {
|
|
138
|
+
this.protocols.push(new USyncTextStatusProtocol())
|
|
139
|
+
return this
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
withSidelistProtocol(useLidAddressing) {
|
|
143
|
+
this.protocols.push(new USyncSidelistProtocol(useLidAddressing))
|
|
144
|
+
return this
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
withFeatureProtocol(features) {
|
|
148
|
+
this.protocols.push(new USyncFeatureProtocol(features))
|
|
149
|
+
return this
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export class USyncUser {
|
|
2
|
+
withId(id) {
|
|
3
|
+
this.id = id
|
|
4
|
+
return this
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
withLid(lid) {
|
|
8
|
+
this.lid = lid
|
|
9
|
+
return this
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
withPhone(phone) {
|
|
13
|
+
this.phone = phone
|
|
14
|
+
return this
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
withUsername(username) {
|
|
18
|
+
this.username = username
|
|
19
|
+
return this
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
withUsernameKey(usernameKey) {
|
|
23
|
+
this.usernameKey = usernameKey
|
|
24
|
+
return this
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
withType(type) {
|
|
28
|
+
this.type = type
|
|
29
|
+
return this
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
withPersonaId(personaId) {
|
|
33
|
+
this.personaId = personaId
|
|
34
|
+
return this
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
withPictureId(pictureId) {
|
|
38
|
+
this.pictureId = pictureId
|
|
39
|
+
return this
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
withVerifiedNameSerial(serial) {
|
|
43
|
+
this.verifiedNameSerial = serial
|
|
44
|
+
return this
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
withBusinessProfileTag(tag) {
|
|
48
|
+
this.businessProfileTag = tag
|
|
49
|
+
return this
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
withSidelistDelete(del = true) {
|
|
53
|
+
this.sidelistDelete = del
|
|
54
|
+
return this
|
|
55
|
+
}
|
|
56
|
+
}
|
package/{src → lib}/index.js
RENAMED
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
(Object.create
|
|
4
|
-
? function (o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined)
|
|
6
|
-
k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return m[k];
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(o, k2, desc);
|
|
17
|
-
}
|
|
18
|
-
: function (o, m, k, k2) {
|
|
19
|
-
if (k2 === undefined)
|
|
20
|
-
k2 = k;
|
|
21
|
-
o[k2] = m[k];
|
|
22
|
-
});
|
|
23
|
-
var __exportStar = (this && this.__exportStar) ||
|
|
24
|
-
function (m, exports) {
|
|
25
|
-
for (var p in m)
|
|
26
|
-
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
27
|
-
__createBinding(exports, m, p);
|
|
28
|
-
};
|
|
29
|
-
var __importDefault = (this && this.__importDefault) ||
|
|
30
|
-
function (mod) {
|
|
31
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
32
|
-
};
|
|
33
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
34
|
-
exports.makeWASocket = void 0;
|
|
35
|
-
const chalk = require('chalk');
|
|
1
|
+
import makeWASocket from './Socket/index.js';
|
|
2
|
+
import chalk from "chalk";
|
|
36
3
|
console.log(chalk.bold.gray("-----------------------------------------\n"));
|
|
37
4
|
console.log(chalk.bold.cyan(`
|
|
38
|
-
|
|
39
5
|
⠀⠀⣠⠂⢀⣠⡴⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⢤⣄⠀⠐⣄⠀⠀⠀
|
|
40
6
|
⠀⢀⣾⠃⢰⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⡆⠸⣧⠀⠀
|
|
41
7
|
⢀⣾⡇⠀⠘⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⠁⠀⢹⣧⠀
|
|
@@ -54,25 +20,24 @@ console.log(chalk.bold.cyan(`
|
|
|
54
20
|
⠀⠀⠈⠻⣧⡀⠀⠀⢻⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⡟⠀⠀⢀⣾⠟⠁⠀⠀
|
|
55
21
|
⠀⠀⠀⠀⠀⠁⠀⠀⠈⢿⣿⡆⠀⠀⠀⠀⠀⠀⣸⣿⡟⠀⠀⠀⠉⠀⠀⠀⠀⠀
|
|
56
22
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⡄⠀⠀⠀⠀⣰⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
57
|
-
|
|
58
|
-
⠀⠀⠀
|
|
23
|
+
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠆⠀⠀⠐⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
59
24
|
¤═―— ⎧ 𝐁𝐀𝐃𝐙𝐙 𝐁𝐀𝐈𝐋𝐄𝐘𝐒 ⎭ ⊱―—═¤
|
|
60
25
|
Information:
|
|
61
26
|
Developer: @badzzne2
|
|
62
|
-
Version:
|
|
27
|
+
Version: 13.0
|
|
63
28
|
Status: Baileys Berhasil Terinstall
|
|
64
|
-
Update date:
|
|
29
|
+
Update date: 31/08/26
|
|
65
30
|
`));
|
|
66
31
|
console.log(chalk.bold.cyan("Follow Our Telegram Channel To See Update Information: t.me/FoxsSql\n"));
|
|
67
32
|
console.log(chalk.bold.gray("--------------------------------------------\n"));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
33
|
+
export * from '../WAProto/index.js';
|
|
34
|
+
export * from './Utils/index.js';
|
|
35
|
+
export * from './Types/index.js';
|
|
36
|
+
export * from './Defaults/index.js';
|
|
37
|
+
export * from './WABinary/index.js';
|
|
38
|
+
export * from './WAM/index.js';
|
|
39
|
+
export * from './WAUSync/index.js';
|
|
40
|
+
export * from './Store/index.js';
|
|
41
|
+
export { makeWASocket };
|
|
42
|
+
export default makeWASocket;
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,106 +1,136 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"automation",
|
|
14
|
-
"md"
|
|
15
|
-
],
|
|
16
|
-
"homepage": "https://www.npmjs.com/package/@badzz88/baileys",
|
|
17
|
-
"repository": {
|
|
18
|
-
"url": "https://github.com/package/Badzz88/baileys.giy"
|
|
19
|
-
},
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"author": "Badzz88",
|
|
22
|
-
"main": "src/index.js",
|
|
23
|
-
"files": [
|
|
24
|
-
"src/**/*",
|
|
25
|
-
"WAProto/**/*",
|
|
26
|
-
"engine-requirements.js"
|
|
27
|
-
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"ncu": "npm-check-updates",
|
|
30
|
-
"format": "prettier --write \"src/**/*.{js,json,md}\"",
|
|
31
|
-
"lint": "tsc && eslint src --ext .js",
|
|
32
|
-
"lint:fix": "npm run format && npm run lint -- --fix",
|
|
33
|
-
"test": "jest --runInBand"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@adiwajshing/keyed-db": "^0.2.4",
|
|
37
|
-
"@cacheable/node-cache": "^3.0.1",
|
|
38
|
-
"@hapi/boom": "^10.0.1",
|
|
39
|
-
"async-mutex": "^0.5.0",
|
|
40
|
-
"cache-manager": "^7.2.8",
|
|
41
|
-
"libphonenumber-js": "^1.13.3",
|
|
42
|
-
"lru-cache": "^11.5.0",
|
|
43
|
-
"music-metadata": "^11.12.3",
|
|
44
|
-
"p-queue": "^9.3.0",
|
|
45
|
-
"pino": "^10.3.1",
|
|
46
|
-
"protobufjs": "^7.6.1",
|
|
47
|
-
"ws": "^8.21.0",
|
|
48
|
-
"whatsapp-rust-bridge": "0.5.4",
|
|
49
|
-
"jimp": "^1.6.0",
|
|
50
|
-
"chalk": "^4.1.2"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@eslint/eslintrc": "^3.3.1",
|
|
54
|
-
"@eslint/js": "^9.31.0",
|
|
55
|
-
"@types/jest": "^30.0.0",
|
|
56
|
-
"@types/node": "^22.0.0",
|
|
57
|
-
"@types/ws": "^8.0.0",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^8.59.4",
|
|
59
|
-
"@typescript-eslint/parser": "^8.59.4",
|
|
60
|
-
"@whiskeysockets/eslint-config": "^1.0.0",
|
|
61
|
-
"eslint": "^9",
|
|
62
|
-
"eslint-config-prettier": "^10.1.8",
|
|
63
|
-
"eslint-plugin-prettier": "^5.4.1",
|
|
64
|
-
"jest": "^30.0.5",
|
|
65
|
-
"jimp": "^1.6.0",
|
|
66
|
-
"jiti": "^2.4.2",
|
|
67
|
-
"json": "^11.0.0",
|
|
68
|
-
"link-preview-js": "^3.2.0",
|
|
69
|
-
"pino-pretty": "^13.1.1",
|
|
70
|
-
"prettier": "^3.5.3",
|
|
71
|
-
"protobufjs-cli": "^1.3.1",
|
|
72
|
-
"qrcode-terminal": "^0.12.0",
|
|
73
|
-
"ts-jest": "^29.4.11",
|
|
74
|
-
"tsx": "^4.22.3"
|
|
75
|
-
},
|
|
76
|
-
"peerDependencies": {
|
|
77
|
-
"audio-decode": "^2.1.3",
|
|
78
|
-
"link-preview-js": "^3.2.0",
|
|
79
|
-
"@img/sharp-wasm32": "^0.35.1",
|
|
80
|
-
"sharp": "^0.32.5"
|
|
81
|
-
},
|
|
82
|
-
"peerDependenciesMeta": {
|
|
83
|
-
"audio-decode": {
|
|
84
|
-
"optional": true
|
|
2
|
+
"name": "@badzz88/baileys",
|
|
3
|
+
"version": "8.5.8",
|
|
4
|
+
"description": "A WebSockets library for interacting with WhatsApp Web",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"WhatsApp",
|
|
7
|
+
"Baileys",
|
|
8
|
+
"Badzz88"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://www.npmjs.com/package/@badzz88/baileys",
|
|
11
|
+
"repository": {
|
|
12
|
+
"url": "https://www.npmjs.com/package/@badzz88/baileys"
|
|
85
13
|
},
|
|
86
|
-
"
|
|
87
|
-
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "Badzz88",
|
|
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"
|
|
88
37
|
},
|
|
89
|
-
"
|
|
90
|
-
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@cacheable/node-cache": "^1.4.0",
|
|
40
|
+
"@hapi/boom": "^9.1.3",
|
|
41
|
+
"async-mutex": "^0.5.0",
|
|
42
|
+
"libsignal": "npm:@vnxsync/libsignal-node",
|
|
43
|
+
"lru-cache": "^11.1.0",
|
|
44
|
+
"music-metadata": "^11.12.3",
|
|
45
|
+
"p-queue": "^9.0.0",
|
|
46
|
+
"pino": "^9.6",
|
|
47
|
+
"protobufjs": "^7.5.6",
|
|
48
|
+
"whatsapp-rust-bridge": "0.5.4",
|
|
49
|
+
"ws": "^8.13.0",
|
|
50
|
+
"chalk": "^4.1.2",
|
|
51
|
+
"cache-manager": "^7.2.8"
|
|
91
52
|
},
|
|
92
|
-
"
|
|
93
|
-
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
55
|
+
"@eslint/js": "^9.31.0",
|
|
56
|
+
"@types/jest": "^30.0.0",
|
|
57
|
+
"@types/node": "^20.9.0",
|
|
58
|
+
"@types/ws": "^8.0.0",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
60
|
+
"@typescript-eslint/parser": "^8",
|
|
61
|
+
"@whiskeysockets/eslint-config": "^1.0.0",
|
|
62
|
+
"conventional-changelog": "^7.1.1",
|
|
63
|
+
"conventional-changelog-angular": "^8.0.0",
|
|
64
|
+
"esbuild-register": "^3.6.0",
|
|
65
|
+
"eslint": "^9",
|
|
66
|
+
"eslint-config-prettier": "^10.1.2",
|
|
67
|
+
"eslint-plugin-prettier": "^5.4.0",
|
|
68
|
+
"jest": "^30.0.5",
|
|
69
|
+
"jimp": "^1.6.1",
|
|
70
|
+
"jiti": "^2.4.2",
|
|
71
|
+
"json": "^11.0.0",
|
|
72
|
+
"link-preview-js": "^3.0.0",
|
|
73
|
+
"lru-cache": "^11.1.0",
|
|
74
|
+
"open": "^8.4.2",
|
|
75
|
+
"pino-pretty": "^13.1.1",
|
|
76
|
+
"prettier": "^3.5.3",
|
|
77
|
+
"protobufjs-cli": "^1.1.3",
|
|
78
|
+
"release-it": "^20.0.1",
|
|
79
|
+
"ts-jest": "^29.4.0",
|
|
80
|
+
"tsc-esm-fix": "^3.1.2",
|
|
81
|
+
"tsx": "^4.20.3",
|
|
82
|
+
"typedoc": "^0.27.9",
|
|
83
|
+
"typedoc-plugin-markdown": "4.4.2",
|
|
84
|
+
"typescript": "^5.8.2"
|
|
94
85
|
},
|
|
95
|
-
"
|
|
96
|
-
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"audio-decode": "^2.1.3",
|
|
88
|
+
"jimp": "^1.6.1",
|
|
89
|
+
"link-preview-js": "^3.0.0",
|
|
90
|
+
"sharp": "*"
|
|
97
91
|
},
|
|
98
|
-
"
|
|
99
|
-
|
|
92
|
+
"resolutions": {
|
|
93
|
+
"ajv@npm:^6.12.4": "^6.14.0",
|
|
94
|
+
"basic-ftp": "^5.2.4",
|
|
95
|
+
"brace-expansion@npm:^1.1.7": "^1.1.13",
|
|
96
|
+
"brace-expansion@npm:^2.0.1": "^2.0.3",
|
|
97
|
+
"flatted": "^3.4.2",
|
|
98
|
+
"glob@npm:^10.2.2": "^10.5.0",
|
|
99
|
+
"glob@npm:^10.3.10": "^10.5.0",
|
|
100
|
+
"glob@npm:^10.5.0": "^10.5.0",
|
|
101
|
+
"handlebars": "^4.7.9",
|
|
102
|
+
"ip-address": "^10.1.1",
|
|
103
|
+
"js-yaml@npm:^3.13.1": "^3.14.2",
|
|
104
|
+
"js-yaml@npm:^4.1.0": "^4.1.1",
|
|
105
|
+
"markdown-it": "^14.1.1",
|
|
106
|
+
"minimatch@npm:^3.0.4": "^3.1.5",
|
|
107
|
+
"minimatch@npm:^3.1.2": "^3.1.5",
|
|
108
|
+
"minimatch@npm:^5.0.1": "^5.1.8",
|
|
109
|
+
"minimatch@npm:^9.0.4": "^9.0.9",
|
|
110
|
+
"minimatch@npm:^9.0.5": "^9.0.9",
|
|
111
|
+
"picomatch@npm:^2.0.4": "^2.3.2",
|
|
112
|
+
"picomatch@npm:^2.3.1": "^2.3.2",
|
|
113
|
+
"picomatch@npm:^4.0.0": "^4.0.4",
|
|
114
|
+
"picomatch@npm:^4.0.2": "^4.0.4",
|
|
115
|
+
"socks": "^2.8.8",
|
|
116
|
+
"tar": "^7.5.11",
|
|
117
|
+
"tmp": "^0.2.5",
|
|
118
|
+
"underscore": "^1.13.8",
|
|
119
|
+
"yaml@npm:^2.6.1": "^2.8.4"
|
|
120
|
+
},
|
|
121
|
+
"peerDependenciesMeta": {
|
|
122
|
+
"audio-decode": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
125
|
+
"jimp": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"link-preview-js": {
|
|
129
|
+
"optional": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"packageManager": "yarn@4.9.2",
|
|
133
|
+
"engines": {
|
|
134
|
+
"node": ">=20.0.0"
|
|
100
135
|
}
|
|
101
|
-
|
|
102
|
-
"packageManager": "yarn@4.9.2",
|
|
103
|
-
"engines": {
|
|
104
|
-
"node": ">=20.0.0"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
136
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Baron
|
|
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.
|