@poucode/baileys 1.0.1 → 2.0.0
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 +21 -2
- package/lib/Socket/chats.js +5 -0
- package/lib/Socket/graphql.js +716 -0
- package/lib/Socket/index.js +10 -2
- package/lib/Socket/interop.js +463 -0
- package/lib/Socket/luxu.js +1 -1
- package/lib/Socket/message-builder.js +475 -0
- package/lib/Socket/messages-send.js +29 -4
- package/lib/Socket/privacy.js +318 -0
- package/lib/Store/make-in-memory-store.js +47 -1
- package/lib/Utils/index.js +1 -0
- package/lib/Utils/long-safe.js +33 -0
- package/lib/Utils/messages-media.js +82 -0
- package/lib/Utils/messages.js +137 -3
- package/lib/Utils/sticker.js +133 -0
- package/lib/Utils/use-sqlite-auth-state.js +162 -0
- package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +43 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +53 -50
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +56 -52
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +29 -25
- package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +58 -0
- package/lib/WAUSync/Protocols/USyncPictureProtocol.js +32 -0
- package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +28 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -36
- package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +38 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +26 -23
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +52 -49
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -27
- package/lib/WAUSync/Protocols/index.js +12 -5
- package/lib/WAUSync/USyncQuery.js +150 -96
- package/lib/WAUSync/USyncUser.js +55 -29
- package/lib/WAUSync/index.js +3 -3
- package/lib/index.js +1 -0
- package/package.json +12 -7
package/lib/WAUSync/USyncUser.js
CHANGED
|
@@ -1,30 +1,56 @@
|
|
|
1
1
|
export class USyncUser {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
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/lib/WAUSync/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Protocols/index.js'
|
|
2
|
-
export * from './USyncQuery.js'
|
|
3
|
-
export * from './USyncUser.js'
|
|
1
|
+
export * from './Protocols/index.js'
|
|
2
|
+
export * from './USyncQuery.js'
|
|
3
|
+
export * from './USyncUser.js'
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poucode/baileys",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"description": "WaBail — PouCode fork of Baileys: WhatsApp Web WebSocket library with merged extra socket layers (privacy, interop, GraphQL, message builder), sticker packs and SQLite auth state",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"poucode",
|
|
8
8
|
"baileys",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"whatsapp-api",
|
|
11
11
|
"whatsapp-web",
|
|
12
12
|
"wa-bot",
|
|
13
|
-
"whatsapp bot"
|
|
13
|
+
"whatsapp bot",
|
|
14
|
+
"wabail",
|
|
15
|
+
"whatsapp-bot"
|
|
14
16
|
],
|
|
15
17
|
"homepage": "https://github.com/pou-code/WaBail",
|
|
16
18
|
"repository": {
|
|
@@ -45,6 +47,8 @@
|
|
|
45
47
|
"@cacheable/node-cache": "^1.4.0",
|
|
46
48
|
"@hapi/boom": "^9.1.3",
|
|
47
49
|
"async-mutex": "^0.5.0",
|
|
50
|
+
"cache-manager": "^5.7.6",
|
|
51
|
+
"chalk": "^4.1.2",
|
|
48
52
|
"libsignal": "github:tenka-san/libsignal-node",
|
|
49
53
|
"long": "^5.0.0",
|
|
50
54
|
"lru-cache": "^11.1.0",
|
|
@@ -53,9 +57,7 @@
|
|
|
53
57
|
"pino": "^9.6",
|
|
54
58
|
"protobufjs": "^7.5.6",
|
|
55
59
|
"whatsapp-rust-bridge": "0.5.4",
|
|
56
|
-
"ws": "^8.13.0"
|
|
57
|
-
"chalk": "^4.1.2",
|
|
58
|
-
"cache-manager": "^5.7.6"
|
|
60
|
+
"ws": "^8.13.0"
|
|
59
61
|
},
|
|
60
62
|
"devDependencies": {
|
|
61
63
|
"@eslint/eslintrc": "^3.3.1",
|
|
@@ -148,5 +150,8 @@
|
|
|
148
150
|
},
|
|
149
151
|
"contributors": [
|
|
150
152
|
"WhiskeySockets (original Baileys authors)"
|
|
151
|
-
]
|
|
153
|
+
],
|
|
154
|
+
"publishConfig": {
|
|
155
|
+
"registry": "https://registry.npmjs.org/"
|
|
156
|
+
}
|
|
152
157
|
}
|