supun-bailey-vip 1.0.5 → 1.0.6

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.
Files changed (308) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +373 -45
  3. package/WAProto/index.d.ts +15932 -0
  4. package/WAProto/index.js +71914 -201560
  5. package/engine-requirements.js +13 -4
  6. package/lib/{WABinary/constants.js → binary/wa-binary-constants.js} +0 -1
  7. package/lib/binary/wa-binary.js +630 -0
  8. package/lib/constants.js +167 -0
  9. package/lib/defaults.js +111 -0
  10. package/lib/foundation/ai-rich.js +120 -0
  11. package/lib/foundation/audio-duration.js +470 -0
  12. package/lib/foundation/audio-samples.js +250 -0
  13. package/lib/foundation/boom.js +39 -0
  14. package/lib/{MessageBuilder → foundation}/bot-signature.js +1 -1
  15. package/lib/foundation/builders.js +1003 -0
  16. package/lib/foundation/cache.js +134 -0
  17. package/lib/foundation/concurrency.js +69 -0
  18. package/lib/foundation/curve25519.js +189 -0
  19. package/lib/{MessageBuilder → foundation}/extras.js +4 -5
  20. package/lib/foundation/image-thumb.js +65 -0
  21. package/lib/foundation/interactive-buttons.js +545 -0
  22. package/lib/foundation/keyed-db.js +243 -0
  23. package/lib/foundation/link-preview.js +278 -0
  24. package/lib/foundation/logger.js +78 -0
  25. package/lib/foundation/long.js +130 -0
  26. package/lib/{MessageBuilder → foundation}/metaai.js +2 -3
  27. package/lib/foundation/protobuf-minimal.js +587 -0
  28. package/lib/foundation/reporting-info-store.js +46 -0
  29. package/lib/foundation/sql-database.js +716 -0
  30. package/lib/foundation/wa-crypto.js +47 -0
  31. package/lib/foundation/zip.js +108 -0
  32. package/lib/index.js +145 -81
  33. package/lib/signal/libsignal.js +996 -0
  34. package/lib/signal/signal-group.js +455 -0
  35. package/lib/signal/signal-repository.js +635 -0
  36. package/lib/{Socket/communities.js → socket/business-communities.js} +414 -28
  37. package/lib/socket/chats.js +875 -0
  38. package/lib/socket/groups-newsletter.js +6 -0
  39. package/lib/socket/groups.js +285 -0
  40. package/lib/{Socket → socket}/messages-recv.js +1857 -1916
  41. package/lib/socket/messages-send.js +1459 -0
  42. package/lib/socket/newsletter.js +311 -0
  43. package/lib/socket/socket-builder.js +422 -0
  44. package/lib/socket/socket-core.js +915 -0
  45. package/lib/socket/usync.js +528 -0
  46. package/lib/socket-client/native-websocket.js +344 -0
  47. package/lib/socket-client/websocket-client.js +170 -0
  48. package/lib/utils/auth-state-core.js +731 -0
  49. package/lib/utils/auth-state-storage.js +594 -0
  50. package/lib/utils/bot-capabilities.js +98 -0
  51. package/lib/utils/bot-planning-replay.js +77 -0
  52. package/lib/utils/chat-sync.js +1046 -0
  53. package/lib/utils/check-status.js +159 -0
  54. package/lib/utils/consumer-application.js +60 -0
  55. package/lib/utils/cstoken.js +17 -0
  56. package/lib/{Utils → utils}/html-app.js +38 -42
  57. package/lib/utils/http-error.js +44 -0
  58. package/lib/utils/media.js +807 -0
  59. package/lib/utils/message-compose.js +1985 -0
  60. package/lib/utils/message-processing.js +912 -0
  61. package/lib/utils/meta-ai-msmsg.js +126 -0
  62. package/lib/utils/meta-compositing.js +114 -0
  63. package/lib/utils/modern-messages.js +435 -0
  64. package/lib/utils/native-flow.js +105 -0
  65. package/lib/{Utils → utils}/newsletter-status.js +7 -5
  66. package/lib/{Utils → utils}/payment-messages.js +3 -7
  67. package/lib/utils/rich-message-utils.js +612 -0
  68. package/lib/{Utils → utils}/scheduled-message.js +1 -2
  69. package/lib/utils/shortcake-crypto.js +90 -0
  70. package/lib/utils/shortcake.js +200 -0
  71. package/lib/utils/spam-report-utils.js +136 -0
  72. package/lib/{Utils → utils}/status-stickers.js +0 -1
  73. package/lib/utils/use-cache-manager-auth-state.js +90 -0
  74. package/lib/utils/use-keyv-auth-state.js +307 -0
  75. package/lib/utils/use-sqlite-auth-state.js +110 -0
  76. package/lib/utils/username.js +19 -0
  77. package/lib/{Utils → utils}/voice-recognition.js +92 -93
  78. package/lib/utils/wa-protocol-core.js +1227 -0
  79. package/lib/voip/WaVoipCoordinator.js +158 -0
  80. package/lib/voip/app-data/WaAppDataStream.js +193 -0
  81. package/lib/voip/app-data/protocol.js +172 -0
  82. package/lib/voip/audio-feeder.js +286 -0
  83. package/lib/voip/bytes.js +63 -0
  84. package/lib/voip/call/WaCallManager.js +442 -0
  85. package/lib/voip/call/WaCallMediaSession.js +1727 -0
  86. package/lib/voip/call/call-state.js +203 -0
  87. package/lib/voip/crypto/encryption.js +13 -0
  88. package/lib/voip/crypto/primitives.js +21 -0
  89. package/lib/voip/crypto/rtcp.js +66 -0
  90. package/lib/voip/crypto/srtp.js +180 -0
  91. package/lib/voip/crypto/ssrc.js +15 -0
  92. package/lib/voip/index.js +628 -0
  93. package/lib/voip/media/WaAudioEngine.js +486 -0
  94. package/lib/voip/media/WaVideoEngine.js +275 -0
  95. package/lib/voip/media/audio-codec.js +0 -0
  96. package/lib/voip/media/audio-reorder.js +107 -0
  97. package/lib/voip/media/h264.js +246 -0
  98. package/lib/voip/media/mlow-codec.js +465 -0
  99. package/lib/voip/media/rtcp.js +68 -0
  100. package/lib/voip/media/rtp.js +242 -0
  101. package/lib/voip/protobuf.js +30 -0
  102. package/lib/voip/relay/WaManualRelay.js +609 -0
  103. package/lib/voip/relay/datachannel/pre-negotiated.js +25 -0
  104. package/lib/voip/relay/dtls/aead.js +46 -0
  105. package/lib/voip/relay/dtls/cert-builder.js +102 -0
  106. package/lib/voip/relay/dtls/der.js +98 -0
  107. package/lib/voip/relay/dtls/ecdhe.js +37 -0
  108. package/lib/voip/relay/dtls/handshake-framing.js +100 -0
  109. package/lib/voip/relay/dtls/handshake-messages.js +158 -0
  110. package/lib/voip/relay/dtls/handshake.js +582 -0
  111. package/lib/voip/relay/dtls/prf.js +39 -0
  112. package/lib/voip/relay/dtls/record.js +56 -0
  113. package/lib/voip/relay/relay-ack.js +141 -0
  114. package/lib/voip/relay/sctp/association.js +434 -0
  115. package/lib/voip/relay/sctp/crc32c.js +21 -0
  116. package/lib/voip/relay/sctp/wire.js +226 -0
  117. package/lib/voip/relay/stun.js +463 -0
  118. package/lib/voip/shim/baileys-resolve.js +7 -0
  119. package/lib/voip/shim/core.js +66 -0
  120. package/lib/voip/shim/crypto.js +6 -0
  121. package/lib/voip/shim/proto.js +10 -0
  122. package/lib/voip/shim/protocol.js +130 -0
  123. package/lib/voip/shim/transport.js +82 -0
  124. package/lib/voip/shim/util.js +207 -0
  125. package/lib/voip/signaling/bridge.js +102 -0
  126. package/lib/voip/signaling/screen-share.js +60 -0
  127. package/lib/voip/signaling/signaling.js +491 -0
  128. package/lib/voip/types.js +69 -0
  129. package/lib/voip/video-feeder.js +287 -0
  130. package/lib/voip/voip-deps.js +243 -0
  131. package/lib/voip/voipClient.js +314 -0
  132. package/lib/{WAM/constants.js → wam/wam-constants.js} +0 -1
  133. package/lib/wam/wam.js +146 -0
  134. package/package.json +50 -155
  135. package/WAProto/fix-imports.js +0 -85
  136. package/lib/Defaults/index.js +0 -139
  137. package/lib/MessageBuilder/bot-signature.d.ts +0 -22
  138. package/lib/MessageBuilder/extras.d.ts +0 -449
  139. package/lib/MessageBuilder/index.d.ts +0 -210
  140. package/lib/MessageBuilder/index.js +0 -3594
  141. package/lib/MessageBuilder/metaai.d.ts +0 -438
  142. package/lib/Signal/Group/ciphertext-message.js +0 -12
  143. package/lib/Signal/Group/group-session-builder.js +0 -30
  144. package/lib/Signal/Group/group_cipher.js +0 -93
  145. package/lib/Signal/Group/index.js +0 -12
  146. package/lib/Signal/Group/keyhelper.js +0 -18
  147. package/lib/Signal/Group/queue-job.js +0 -53
  148. package/lib/Signal/Group/sender-chain-key.js +0 -26
  149. package/lib/Signal/Group/sender-key-distribution-message.js +0 -63
  150. package/lib/Signal/Group/sender-key-message.js +0 -66
  151. package/lib/Signal/Group/sender-key-name.js +0 -48
  152. package/lib/Signal/Group/sender-key-record.js +0 -41
  153. package/lib/Signal/Group/sender-key-state.js +0 -84
  154. package/lib/Signal/Group/sender-message-key.js +0 -26
  155. package/lib/Signal/libsignal.js +0 -431
  156. package/lib/Signal/lid-mapping.js +0 -277
  157. package/lib/Socket/Client/index.js +0 -3
  158. package/lib/Socket/Client/types.js +0 -11
  159. package/lib/Socket/Client/websocket.js +0 -84
  160. package/lib/Socket/ban-checker.js +0 -265
  161. package/lib/Socket/business.js +0 -379
  162. package/lib/Socket/chats.js +0 -1193
  163. package/lib/Socket/dugong.d.ts +0 -130
  164. package/lib/Socket/dugong.js +0 -827
  165. package/lib/Socket/groups.js +0 -374
  166. package/lib/Socket/index.js +0 -18
  167. package/lib/Socket/luxu.js +0 -460
  168. package/lib/Socket/messages-send.js +0 -1620
  169. package/lib/Socket/mex.js +0 -41
  170. package/lib/Socket/newsletter.js +0 -727
  171. package/lib/Socket/socket.js +0 -990
  172. package/lib/Socket/username.js +0 -234
  173. package/lib/Store/index.js +0 -10
  174. package/lib/Store/keyed-db.js +0 -108
  175. package/lib/Store/make-cache-manager-store.js +0 -85
  176. package/lib/Store/make-in-memory-store.js +0 -198
  177. package/lib/Store/make-ordered-dictionary.js +0 -75
  178. package/lib/Store/object-repository.js +0 -32
  179. package/lib/Types/Auth.js +0 -2
  180. package/lib/Types/Bussines.js +0 -2
  181. package/lib/Types/Call.js +0 -2
  182. package/lib/Types/Chat.js +0 -8
  183. package/lib/Types/Contact.js +0 -2
  184. package/lib/Types/Events.js +0 -2
  185. package/lib/Types/GroupMetadata.js +0 -2
  186. package/lib/Types/Label.js +0 -25
  187. package/lib/Types/LabelAssociation.js +0 -7
  188. package/lib/Types/Message.js +0 -14
  189. package/lib/Types/Mex.js +0 -105
  190. package/lib/Types/Product.js +0 -2
  191. package/lib/Types/Signal.js +0 -2
  192. package/lib/Types/Socket.js +0 -3
  193. package/lib/Types/State.js +0 -56
  194. package/lib/Types/USync.js +0 -2
  195. package/lib/Types/index.js +0 -26
  196. package/lib/Utils/auth-store.d.ts +0 -30
  197. package/lib/Utils/auth-store.js +0 -77
  198. package/lib/Utils/auth-utils.js +0 -302
  199. package/lib/Utils/browser-utils.js +0 -49
  200. package/lib/Utils/business.js +0 -231
  201. package/lib/Utils/chat-utils.js +0 -872
  202. package/lib/Utils/classify-disconnect.js +0 -126
  203. package/lib/Utils/companion-reg-client-utils.js +0 -35
  204. package/lib/Utils/crypto.js +0 -118
  205. package/lib/Utils/decode-wa-message.js +0 -401
  206. package/lib/Utils/event-buffer.js +0 -622
  207. package/lib/Utils/generics.js +0 -403
  208. package/lib/Utils/group-metadata-cache.d.ts +0 -5
  209. package/lib/Utils/group-metadata-cache.js +0 -26
  210. package/lib/Utils/history.js +0 -134
  211. package/lib/Utils/html-app.d.ts +0 -19
  212. package/lib/Utils/html-multiplayer.d.ts +0 -10
  213. package/lib/Utils/html-multiplayer.js +0 -95
  214. package/lib/Utils/identity-change-handler.js +0 -50
  215. package/lib/Utils/index.js +0 -50
  216. package/lib/Utils/link-preview-metadata.d.ts +0 -47
  217. package/lib/Utils/link-preview-metadata.js +0 -89
  218. package/lib/Utils/link-preview.js +0 -85
  219. package/lib/Utils/logger.js +0 -3
  220. package/lib/Utils/lt-hash.js +0 -8
  221. package/lib/Utils/make-mutex.js +0 -33
  222. package/lib/Utils/message-composer.js +0 -273
  223. package/lib/Utils/message-retry-manager.js +0 -265
  224. package/lib/Utils/messages-media.js +0 -793
  225. package/lib/Utils/messages.js +0 -2136
  226. package/lib/Utils/modern-messages.js +0 -496
  227. package/lib/Utils/native-flow.d.ts +0 -11
  228. package/lib/Utils/native-flow.js +0 -136
  229. package/lib/Utils/noise-handler.js +0 -201
  230. package/lib/Utils/offline-node-processor.js +0 -34
  231. package/lib/Utils/optional-media.d.ts +0 -3
  232. package/lib/Utils/optional-media.js +0 -46
  233. package/lib/Utils/payment-messages.d.ts +0 -66
  234. package/lib/Utils/pre-key-manager.d.ts +0 -26
  235. package/lib/Utils/pre-key-manager.js +0 -96
  236. package/lib/Utils/process-message.js +0 -630
  237. package/lib/Utils/rate-limiter.js +0 -228
  238. package/lib/Utils/reporting-utils.js +0 -258
  239. package/lib/Utils/rich-message.js +0 -720
  240. package/lib/Utils/rich-messages.js +0 -1144
  241. package/lib/Utils/scheduled-message.d.ts +0 -51
  242. package/lib/Utils/sender-key-memory.d.ts +0 -20
  243. package/lib/Utils/sender-key-memory.js +0 -52
  244. package/lib/Utils/signal.js +0 -201
  245. package/lib/Utils/stanza-ack.js +0 -38
  246. package/lib/Utils/status-stickers.d.ts +0 -127
  247. package/lib/Utils/sync-action-utils.d.ts +0 -3
  248. package/lib/Utils/sync-action-utils.js +0 -45
  249. package/lib/Utils/tc-token-utils.js +0 -163
  250. package/lib/Utils/ttl-cache.d.ts +0 -29
  251. package/lib/Utils/ttl-cache.js +0 -121
  252. package/lib/Utils/use-mongo-auth-state.d.ts +0 -22
  253. package/lib/Utils/use-mongo-auth-state.js +0 -68
  254. package/lib/Utils/use-multi-file-auth-state.js +0 -121
  255. package/lib/Utils/use-mysql-auth-state.d.ts +0 -20
  256. package/lib/Utils/use-mysql-auth-state.js +0 -80
  257. package/lib/Utils/use-postgres-auth-state.d.ts +0 -20
  258. package/lib/Utils/use-postgres-auth-state.js +0 -80
  259. package/lib/Utils/use-redis-auth-state.d.ts +0 -20
  260. package/lib/Utils/use-redis-auth-state.js +0 -90
  261. package/lib/Utils/use-single-file-auth-state.d.ts +0 -11
  262. package/lib/Utils/use-single-file-auth-state.js +0 -109
  263. package/lib/Utils/use-sqlite-auth-state.d.ts +0 -13
  264. package/lib/Utils/use-sqlite-auth-state.js +0 -121
  265. package/lib/Utils/useNekoDBAuth.d.ts +0 -19
  266. package/lib/Utils/useNekoDBAuth.js +0 -111
  267. package/lib/Utils/validate-connection.js +0 -203
  268. package/lib/Utils/voice-recognition.d.ts +0 -53
  269. package/lib/Voip/audio-feeder.d.ts +0 -25
  270. package/lib/Voip/audio-feeder.js +0 -269
  271. package/lib/Voip/index.d.ts +0 -89
  272. package/lib/Voip/index.js +0 -937
  273. package/lib/Voip/relay-transport.d.ts +0 -6
  274. package/lib/Voip/relay-transport.js +0 -825
  275. package/lib/Voip/signaling.d.ts +0 -12
  276. package/lib/Voip/signaling.js +0 -1100
  277. package/lib/Voip/types.d.ts +0 -3
  278. package/lib/Voip/types.js +0 -13
  279. package/lib/Voip/video-feeder.d.ts +0 -25
  280. package/lib/Voip/video-feeder.js +0 -269
  281. package/lib/Voip/wasm-engine.d.ts +0 -27
  282. package/lib/Voip/wasm-engine.js +0 -1308
  283. package/lib/Voip/worker-bootstrap.js +0 -1024
  284. package/lib/WABinary/decode.js +0 -262
  285. package/lib/WABinary/encode.js +0 -220
  286. package/lib/WABinary/generic-utils.js +0 -309
  287. package/lib/WABinary/index.js +0 -6
  288. package/lib/WABinary/jid-utils.js +0 -98
  289. package/lib/WABinary/types.js +0 -2
  290. package/lib/WAM/BinaryInfo.js +0 -10
  291. package/lib/WAM/encode.js +0 -150
  292. package/lib/WAM/index.js +0 -4
  293. package/lib/WAUSync/Protocols/USyncContactProtocol.js +0 -52
  294. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +0 -54
  295. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +0 -27
  296. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +0 -38
  297. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +0 -25
  298. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +0 -51
  299. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +0 -29
  300. package/lib/WAUSync/Protocols/index.js +0 -6
  301. package/lib/WAUSync/USyncQuery.js +0 -98
  302. package/lib/WAUSync/USyncUser.js +0 -31
  303. package/lib/WAUSync/index.js +0 -4
  304. package/lib/assets/wasm/README.md +0 -76
  305. package/lib/assets/wasm/loader.js +0 -5
  306. package/lib/assets/wasm/whatsapp.wasm +0 -0
  307. package/lib/assets/wasm/worker-modules.js +0 -273
  308. package/lib/foundation/license.js +0 -42
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Supun Fernando
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.
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  <br/><br/>
13
13
 
14
- # 🧑‍💻 supun-bailey-vip 🇱🇰
14
+ # 🧑💻 supun-bailey-vip 🇱🇰
15
15
 
16
16
  <p>
17
17
  <img src="https://img.shields.io/badge/Node.js-%3E%3D20-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" />
@@ -19,6 +19,7 @@
19
19
  <img src="https://img.shields.io/badge/WebSocket-010101?style=for-the-badge&logo=socketdotio&logoColor=white" />
20
20
  <img src="https://img.shields.io/badge/MessageBuilder-v4.7-7F5AF0?style=for-the-badge" />
21
21
  <img src="https://img.shields.io/badge/VoIP-Audio%20%26%20Video-blue?style=for-the-badge" />
22
+ <img src="https://img.shields.io/badge/Meta%20AI-Reasoning%20Replay-9cf?style=for-the-badge" />
22
23
  <img src="https://img.shields.io/badge/Open%20Source-FF4500?style=for-the-badge&logo=github&logoColor=white" />
23
24
  <img src="https://img.shields.io/badge/license-MIT-blue?style=for-the-badge" />
24
25
  </p>
@@ -29,7 +30,7 @@
29
30
  </p>
30
31
 
31
32
  **Next-generation, all-in-one WhatsApp automation library — no browser required.**
32
- High performance, enterprise-grade Baileys protocol engine featuring **Pairing Code & Terminal QR**, **MessageBuilder v4.7**, **VoIP Voice/Video Calls**, **Dugong Cloud Engine**, **Performance Latency Tuning**, **Multi-DB Auth**, and **Meta AI Rich Responses**.
33
+ High performance, enterprise-grade Baileys protocol engine featuring **Pairing Code & Terminal QR**, **MessageBuilder v4.7**, **VoIP Voice/Video Calls**, **Dugong Cloud Engine**, **Meta AI Live Reasoning & Planning Replay**, **AIRich UX Primitives**, **Performance Latency Tuning**, **Multi-DB Auth**, and **WhatsApp Flows**.
33
34
 
34
35
  <br/>
35
36
 
@@ -44,7 +45,8 @@ High performance, enterprise-grade Baileys protocol engine featuring **Pairing C
44
45
  - [🔑 Authentication & Connection](#-authentication--connection)
45
46
  - [1. Zero-Dependency Terminal QR](#1-zero-dependency-terminal-qr)
46
47
  - [2. Pairing Code Authentication](#2-pairing-code-authentication-phone-number)
47
- - [3. Connection Handling & Reconnection](#3-connection-handling--auto-reconnection)
48
+ - [3. Shortcake Passkey Linking Handshake](#3-shortcake-passkey-linking-handshake)
49
+ - [4. Connection Handling & Reconnection](#4-connection-handling--auto-reconnection)
48
50
  - [🗄️ Multi-Database Auth States](#️-multi-database-auth-states)
49
51
  - [⚙️ Configuration Options](#️-configuration-options)
50
52
  - [📡 Event Handling](#-event-handling)
@@ -60,7 +62,11 @@ High performance, enterprise-grade Baileys protocol engine featuring **Pairing C
60
62
  - [Location & Button Location](#location-messages)
61
63
  - [Contacts / vCards](#contact-messages)
62
64
  - [Rich Links & Songs with Album Art](#rich-links--music-cards)
65
+ - [🤖 Meta AI Reasoning & Planning Replay](#-meta-ai-reasoning--planning-replay)
66
+ - [💎 AIRich UX Primitives](#-airich-ux-primitives)
63
67
  - [🎨 MessageBuilder v4.7 (Buttons & Carousels)](#-messagebuilder-v47-buttons--carousels)
68
+ - [🔘 Telegram-Style Interactive Buttons](#-telegram-style-interactive-buttons)
69
+ - [📋 WhatsApp Flows & Native Flow Handlers](#-whatsapp-flows--native-flow-handlers)
64
70
  - [☁️ Dugong Cloud Engine (`sock.cloud`)](#️-dugong-cloud-engine-sockcloud)
65
71
  - [📢 Status & Stories](#-status--stories)
66
72
  - [👥 Group Management](#-group-management)
@@ -68,10 +74,11 @@ High performance, enterprise-grade Baileys protocol engine featuring **Pairing C
68
74
  - [📰 Newsletters (Channels)](#-newsletters-channels)
69
75
  - [🔒 Privacy & Profile Management](#-privacy--profile-management)
70
76
  - [📞 VoIP Audio & Video Calls](#-voip-audio--video-calls)
77
+ - [🔄 Advanced USync Protocols](#-advanced-usync-protocols)
71
78
  - [🚫 4-Factor Ban Checker](#-4-factor-ban-checker)
72
79
  - [🆔 WhatsApp MEX Username API](#-whatsapp-mex-username-api)
73
80
  - [⚡ Performance Tuning & Modes](#-performance-tuning--modes)
74
- - [💾 In-Memory Store](#-in-memory-store)
81
+ - [💾 In-Memory Store & Reporting Info Store](#-in-memory-store--reporting-info-store)
75
82
  - [🌐 Community & Support](#-community--support)
76
83
  - [📄 License](#-license)
77
84
 
@@ -84,10 +91,15 @@ High performance, enterprise-grade Baileys protocol engine featuring **Pairing C
84
91
  ### 🌟 Key Highlights:
85
92
  - **Ultra-Lightweight & Fast**: Direct WebSocket communication with Noise protocol encryption.
86
93
  - **Pairing Code & Built-in QR**: Connect via 8-digit OTP pairing code or zero-dependency terminal QR.
94
+ - **Shortcake Handshake**: Modern passkey pairing protocol for instant link verification.
95
+ - **Meta AI Reasoning Replay**: Live step-by-step thinking indicators (`replayPlanning`, `sendMetaComposited`, `metaTyping`).
96
+ - **AIRich UX Primitives**: Syntax-highlighted code blocks with lexers, formatted markdown tables, and Lottie stickers.
97
+ - **WhatsApp Flows**: Full parser and button generator for interactive native flows and forms.
87
98
  - **MessageBuilder v4.7**: Fluent chaining API for CTA buttons, carousels, cards, and flows.
88
99
  - **Dugong Cloud Engine**: High-level dispatcher for albums, payments, products, interactive messages, and group stories.
89
- - **VoIP Calling Engine**: Handle, accept, or reject WhatsApp voice and video calls.
90
- - **Multi-DB Auth**: Ready-to-use adapters for MongoDB, Redis, PostgreSQL, MySQL, SQLite, Multi-file, and NekoDB.
100
+ - **VoIP Calling Engine**: Handle, accept, reject WhatsApp voice and video calls with custom stream feeders.
101
+ - **Multi-DB Auth**: Ready-to-use adapters for MongoDB, Redis, PostgreSQL, MySQL, SQLite, Cache-Manager, KeyedDB, and Multi-file.
102
+ - **Separated Clean Modules**: High cohesion socket split across Groups, Newsletters, Business, and Communities.
91
103
  - **4-Factor Ban Checker**: Check phone number status against WhatsApp infrastructure.
92
104
  - **Username Support**: WhatsApp MEX GraphQL API for username query, registration, and lookup.
93
105
  - **Performance Modes**: Configurable presets (`balanced`, `high`, `low-memory`, `ultra-low-latency`).
@@ -124,7 +136,6 @@ const { state, saveCreds } = await useMultiFileAuthState('./session')
124
136
 
125
137
  const sock = makeWASocket({
126
138
  auth: state,
127
- key: 'YOUR_ACCESS_KEY', // VIP access key (Required)
128
139
  performanceMode: 'high',
129
140
  syncFullHistory: false
130
141
  })
@@ -178,7 +189,24 @@ sock.ev.on('connection.update', ({ connection }) => {
178
189
 
179
190
  ---
180
191
 
181
- ### 3. Connection Handling & Auto-Reconnection
192
+ ### 3. Shortcake Passkey Linking Handshake
193
+
194
+ Pair companion devices with WhatsApp's Shortcake crypto handshake:
195
+
196
+ ```javascript
197
+ import { initiateShortcakeHandshake, shortcakePairingHandshake } from 'supun-bailey-vip'
198
+
199
+ // Execute direct Shortcake verification
200
+ const handshake = await initiateShortcakeHandshake({
201
+ phoneNumber: '94712345678',
202
+ clientEphemeral: myEphemeralKey
203
+ })
204
+ console.log('Shortcake link verification:', handshake.verified)
205
+ ```
206
+
207
+ ---
208
+
209
+ ### 4. Connection Handling & Auto-Reconnection
182
210
 
183
211
  Handle connection states, network drops, and logout events gracefully:
184
212
 
@@ -239,6 +267,21 @@ import { useMultiFileAuthState } from 'supun-bailey-vip'
239
267
  const { state, saveCreds } = await useMultiFileAuthState('./auth_info')
240
268
  ```
241
269
 
270
+ ### SQLite
271
+ ```javascript
272
+ import { useSQLiteAuthState } from 'supun-bailey-vip'
273
+ const { state, saveCreds } = await useSQLiteAuthState('./session.sqlite')
274
+ ```
275
+
276
+ ### Cache-Manager (Multi-Backend: Redis, Memcached, SQLite, FS)
277
+ ```javascript
278
+ import { useCacheManagerAuthState } from 'supun-bailey-vip'
279
+ import { caching } from 'cache-manager'
280
+
281
+ const memoryCache = await caching('memory', { max: 1000, ttl: 0 })
282
+ const { state, saveCreds } = await useCacheManagerAuthState(memoryCache, 'session-prefix:')
283
+ ```
284
+
242
285
  ### MongoDB
243
286
  ```javascript
244
287
  import { useMongoAuthState } from 'supun-bailey-vip'
@@ -280,12 +323,6 @@ const connection = await mysql.createConnection('mysql://user:pass@localhost:330
280
323
  const { state, saveCreds } = await useMySQLAuthState(connection, 'sessions')
281
324
  ```
282
325
 
283
- ### SQLite
284
- ```javascript
285
- import { useSQLiteAuthState } from 'supun-bailey-vip'
286
- const { state, saveCreds } = await useSQLiteAuthState('./session.sqlite')
287
- ```
288
-
289
326
  ---
290
327
 
291
328
  ## ⚙️ Configuration Options
@@ -294,14 +331,13 @@ Full list of socket configuration parameters passed to `makeWASocket(config)`:
294
331
 
295
332
  | Option | Type | Default | Description |
296
333
  |---|---|---|---|
297
- | `key` / `accessKey` | `string` | `process.env.SUPUN_KEY` | VIP License key (Required). Contact Supun Fernando to obtain. |
298
334
  | `auth` | `AuthenticationState` | `undefined` | Auth credentials state & keys |
299
335
  | `performanceMode` | `string` | `'balanced'` | `'balanced'` \| `'high'` \| `'low-memory'` \| `'ultra-low-latency'` |
300
336
  | `syncFullHistory` | `boolean` | `true` | Download complete chat history upon startup |
301
337
  | `aiLabel` | `boolean` | `true` | Mark outbound messages with AI bot label |
302
338
  | `browser` | `[string, string, string]` | `Browsers.macOS('Chrome')` | Browser signature sent to WhatsApp |
303
339
  | `printQRInTerminal` | `boolean` | `false` | Whether default QR prints in terminal |
304
- | `logger` | `PinoLogger` | Internal logger | Custom Pino logger instance |
340
+ | `logger` | `PinoLogger` | Internal logger | Custom logger instance |
305
341
  | `markOnlineOnConnect` | `boolean` | `true` | Set presence online when socket opens |
306
342
  | `connectTimeoutMs` | `number` | `20000` | Socket connect timeout in ms |
307
343
  | `keepAliveIntervalMs` | `number` | `30000` | Keepalive ping interval |
@@ -603,12 +639,80 @@ await sock.sendMessage(jid, {
603
639
 
604
640
  ---
605
641
 
642
+ ## 🤖 Meta AI Reasoning & Planning Replay
643
+
644
+ Show step-by-step AI thinking animations, reasoning steps, and progress indicators:
645
+
646
+ ```javascript
647
+ import { buildReasoningSteps, buildSearchSteps, mixedSteps } from 'supun-bailey-vip'
648
+
649
+ // 1. Live Step-by-Step AI Thinking Animation & Final Answer
650
+ const steps = buildReasoningSteps([
651
+ 'Analyzing code architecture...',
652
+ 'Evaluating cryptographic primitives...',
653
+ 'Synthesizing optimal solution...'
654
+ ])
655
+
656
+ await sock.replayPlanning(jid, steps, {
657
+ text: 'Here is the completed solution for your request! 🚀'
658
+ }, { delayMs: 1200 })
659
+
660
+ // 2. Progress Indicator / Thinking Placeholder
661
+ await sock.metaTyping(jid, {
662
+ text: 'Thinking...',
663
+ status: 'IN_PROGRESS'
664
+ })
665
+
666
+ // 3. Send Thinking Placeholder and then edit to Final Result
667
+ await sock.sendMetaComposited(jid, {
668
+ text: 'Final formatted AI response!'
669
+ }, {
670
+ placeholderText: '🧠 Meta AI is calculating answer...',
671
+ delayMs: 2000
672
+ })
673
+ ```
674
+
675
+ ---
676
+
677
+ ## 💎 AIRich UX Primitives
678
+
679
+ Send syntax-highlighted code blocks, interactive tables, and Lottie stickers:
680
+
681
+ ```javascript
682
+ // 1. Syntax-Highlighted Code Block (with language keyword lexer)
683
+ await sock.sendRichCode(jid, `
684
+ const connect = async () => {
685
+ const sock = makeWASocket({ performanceMode: "high" });
686
+ console.log("Connected to WhatsApp!");
687
+ };
688
+ connect();
689
+ `, 'javascript')
690
+
691
+ // 2. Formatted Markdown / Monospace Table
692
+ await sock.sendRichTable(jid, [
693
+ ['Feature', 'Status', 'Latency'],
694
+ ['WebSocket', 'Active', '12ms'],
695
+ ['VoIP Engine', 'Ready', '24ms'],
696
+ ['Flows Parser', 'Loaded', '5ms']
697
+ ], '⚡ System Diagnostic Table')
698
+
699
+ // 3. Send Animated Lottie Sticker
700
+ await sock.sendLottieSticker(jid, fs.readFileSync('./animated_sticker.lottie'))
701
+
702
+ // 4. Scheduled Messages
703
+ await sock.scheduleMessage(jid, { text: 'Reminder: Scheduled meeting!' }, {
704
+ scheduledTimestampMs: Date.now() + 600000 // 10 minutes later
705
+ })
706
+ ```
707
+
708
+ ---
709
+
606
710
  ## 🎨 MessageBuilder v4.7 (Buttons & Carousels)
607
711
 
608
712
  Easily construct modern WhatsApp interactive messages using fluent chainable builders:
609
713
 
610
714
  ```javascript
611
- import { Button, Carousel, AIRich } from 'supun-bailey-vip'
715
+ import { Button, Carousel, AIRich, ButtonV2, Toolkit } from 'supun-bailey-vip'
612
716
 
613
717
  // 1. Interactive CTA Buttons
614
718
  const buttonMsg = new Button()
@@ -736,23 +840,212 @@ await sock.sendMessage(jid, {
736
840
  { text: '📞 Call Support', call: '+94712345678' }
737
841
  ]
738
842
  })
843
+ ```
844
+
845
+ ---
846
+
847
+ ## 🔘 Telegram-Style Interactive Buttons
848
+
849
+ Experience Telegram-like interactive buttons inside WhatsApp using native protocol flows:
739
850
 
740
- // 5. Native Flow & Button Responses
741
- // Responding to a Flow
851
+ ### 1. Inline Callback Buttons
852
+ Send actionable buttons with Telegram-style `callback_query` interception and context:
853
+
854
+ ```javascript
855
+ import { inlineButton } from 'supun-bailey-vip'
856
+
857
+ // Send message with Confirm, Cancel, Details buttons
742
858
  await sock.sendMessage(jid, {
743
- flowReply: {
744
- name: 'flow_name',
745
- paramsJson: JSON.stringify({ key: 'value' })
859
+ text: 'Do you confirm your reservation?',
860
+ footer: 'Select an option below:',
861
+ buttons: [
862
+ inlineButton('Confirm', 'action:confirm'),
863
+ inlineButton('Cancel', 'action:cancel'),
864
+ inlineButton('Details', 'action:details')
865
+ ]
866
+ })
867
+
868
+ // Listen to callback queries with pattern router
869
+ sock.onCallback('action:', async (query) => {
870
+ console.log(`User ${query.from} clicked: ${query.id}`)
871
+
872
+ if (query.id === 'action:confirm') {
873
+ await query.answer('✅ Reservation confirmed successfully!')
874
+ } else if (query.id === 'action:cancel') {
875
+ await query.answer('❌ Reservation cancelled.')
876
+ } else if (query.id === 'action:details') {
877
+ await query.reply('📋 Details: Table 4 reserved for 8:00 PM.')
746
878
  }
747
879
  })
880
+ ```
881
+
882
+ ### 2. Pagination Buttons
883
+ Navigate through multi-page catalogs, results, or lyrics with automatic boundaries `[ ◀ Back ] [ 2 / 10 ] [ Next ▶ ]`:
748
884
 
749
- // Responding to a Button
885
+ ```javascript
886
+ // Send initial page
750
887
  await sock.sendMessage(jid, {
751
- buttonReply: {
752
- displayText: 'Selected Option',
753
- id: '#action'
754
- },
755
- type: 'plain' // or 'template'
888
+ text: '📖 Documentation Page 2:\n\nDetailed contents of page 2...',
889
+ footer: 'supun-bailey-vip',
890
+ pagination: {
891
+ currentPage: 2,
892
+ totalPages: 10,
893
+ idPrefix: 'doc_page'
894
+ }
895
+ })
896
+
897
+ // Handle page flipping
898
+ sock.onCallback(/^doc_page:(\d+)$/, async (query, [match, pageNum]) => {
899
+ const page = parseInt(pageNum)
900
+ // Update the message with next page content
901
+ await query.editMessage({
902
+ text: `📖 Documentation Page ${page}:\n\nDetailed contents of page ${page}...`,
903
+ pagination: { currentPage: page, totalPages: 10, idPrefix: 'doc_page' }
904
+ })
905
+ })
906
+ ```
907
+
908
+ ### 3. Multi-Select Buttons
909
+ Allow users to toggle multiple checkboxes `[ ✓ Music ] [ ○ Video ] [ ✓ Image ] [ ○ Document ]`:
910
+
911
+ ```javascript
912
+ import { toggleMultiSelectOption } from 'supun-bailey-vip'
913
+
914
+ let options = [
915
+ { id: 'music', label: 'Music', selected: true },
916
+ { id: 'video', label: 'Video', selected: false },
917
+ { id: 'image', label: 'Image', selected: true },
918
+ { id: 'document', label: 'Document', selected: false }
919
+ ]
920
+
921
+ // Send multi-select keyboard
922
+ await sock.sendMessage(jid, {
923
+ text: '🎵 Select file types you wish to download:',
924
+ footer: 'Click to toggle selection',
925
+ multiSelect: {
926
+ options,
927
+ idPrefix: 'media_filter',
928
+ confirmButton: '✅ Done Selecting'
929
+ }
930
+ })
931
+
932
+ // Toggle option dynamically upon user click
933
+ sock.onCallback(/^media_filter:toggle:(.+)$/, async (query, [match, optionId]) => {
934
+ options = toggleMultiSelectOption(options, optionId)
935
+ await query.editMessage({
936
+ text: '🎵 Select file types you wish to download:',
937
+ multiSelect: { options, idPrefix: 'media_filter', confirmButton: '✅ Done Selecting' }
938
+ })
939
+ })
940
+ ```
941
+
942
+ ### 4. Dynamic Menu Buttons
943
+ Organize items into a compact 2x2 grid layout that transitions upon selection:
944
+
945
+ ```javascript
946
+ // Send main menu grid
947
+ await sock.sendMessage(jid, {
948
+ text: '🤖 *Bot Control Dashboard*\nPlease choose a module:',
949
+ footer: 'supun-bailey-vip',
950
+ dynamicMenu: {
951
+ items: ['AI Chat', 'Downloader', 'Tools', 'Settings'],
952
+ columns: 2,
953
+ idPrefix: 'main_menu'
954
+ }
955
+ })
956
+
957
+ // Handle menu transitions
958
+ sock.onCallback('main_menu:', async (query) => {
959
+ if (query.id === 'main_menu:ai_chat') {
960
+ await query.editMessage({
961
+ text: '💬 *AI Chat Module*\nChoose AI Model:',
962
+ dynamicMenu: {
963
+ items: ['Gemini 2.5', 'Claude 3.7', 'ChatGPT 4o', '◀ Back to Main Menu'],
964
+ columns: 2,
965
+ idPrefix: 'ai_model'
966
+ }
967
+ })
968
+ }
969
+ })
970
+ ```
971
+
972
+ ### 5. URL & Web App Buttons
973
+ Direct users to external websites or WhatsApp mini-webviews:
974
+
975
+ ```javascript
976
+ import { urlButton, webAppButton } from 'supun-bailey-vip'
977
+
978
+ await sock.sendMessage(jid, {
979
+ text: '🚀 Launch external apps and links:',
980
+ buttons: [
981
+ urlButton('Open Website ↗', 'https://supunofc.site'),
982
+ webAppButton('Launch App ↗', 'https://supunofc.site/app')
983
+ ]
984
+ })
985
+ ```
986
+
987
+ ### 6. Advanced Interactive Features (Security & Access Control)
988
+ Protect buttons with security policies directly built into the library:
989
+
990
+ ```javascript
991
+ import { inlineButton, InlineKeyboard } from 'supun-bailey-vip'
992
+
993
+ // Method A: InlineKeyboard fluent builder with security rules
994
+ const keyboard = new InlineKeyboard()
995
+ .callback('👑 Admin Kick', 'mod:kick', { adminOnly: true }) // Only group admins can click
996
+ .callback('🎁 Claim Bonus (1-Time)', 'bonus:claim', { oneTime: true }) // Can only be clicked once
997
+ .callback('👤 User Specific', 'user:action', { forUser: '94771234567@s.whatsapp.net' }) // Only target user
998
+ .ttl(3600000) // Expires in 1 hour
999
+ .build()
1000
+
1001
+ await sock.sendMessage(jid, {
1002
+ text: '🛡️ Secured Interactive Options:',
1003
+ keyboard
1004
+ })
1005
+
1006
+ // Method B: Direct inlineButton with options
1007
+ await sock.sendMessage(jid, {
1008
+ text: 'Voting Poll:',
1009
+ buttons: [
1010
+ inlineButton('Vote Candidate A', 'vote:a', { oneTime: true, ttl: 600000 }),
1011
+ inlineButton('Vote Candidate B', 'vote:b', { oneTime: true, ttl: 600000 })
1012
+ ]
1013
+ })
1014
+ ```
1015
+
1016
+ ---
1017
+
1018
+ ## 📋 WhatsApp Flows & Native Flow Handlers
1019
+
1020
+ Build WhatsApp interactive forms and parse user form submissions:
1021
+
1022
+ ```javascript
1023
+ // 1. Build a WhatsApp Flow Button
1024
+ const flowButton = sock.buildWhatsAppFlowButton({
1025
+ flowId: '1092837465',
1026
+ flowToken: 'token_survey_2026',
1027
+ cta: 'Complete Registration',
1028
+ action: 'navigate',
1029
+ actionPayload: { screen: 'QUESTION_ONE' }
1030
+ })
1031
+
1032
+ await sock.sendMessage(jid, {
1033
+ text: 'Please fill out your details:',
1034
+ buttons: [flowButton]
1035
+ })
1036
+
1037
+ // 2. Parse Incoming Flow Form Response
1038
+ sock.ev.on('messages.upsert', async ({ messages }) => {
1039
+ const msg = messages[0]
1040
+ const flowResponse = sock.parseWhatsAppFlowResponse(msg)
1041
+
1042
+ if (flowResponse) {
1043
+ console.log('User submitted flow:', flowResponse.flowId)
1044
+ console.log('Form data:', flowResponse.data)
1045
+ await sock.sendMessage(msg.key.remoteJid, {
1046
+ text: `Thank you! Received data for ${flowResponse.data?.name || 'user'}.`
1047
+ })
1048
+ }
756
1049
  })
757
1050
  ```
758
1051
 
@@ -792,7 +1085,7 @@ await sock.cloud.handlePayment({
792
1085
 
793
1086
  ## 📢 Status & Stories
794
1087
 
795
- Share updates to WhatsApp Status (`status@broadcast`):
1088
+ Share updates to WhatsApp Status (`status@broadcast`) and Group Status stories:
796
1089
 
797
1090
  ```javascript
798
1091
  // 1. Text Status
@@ -815,18 +1108,23 @@ await sock.sendStatusMention({
815
1108
  caption: 'Exclusive update for VIP members!'
816
1109
  }, ['94712345678@s.whatsapp.net', '94787654321@s.whatsapp.net'])
817
1110
 
818
- // 4. Group Status Story (swgc)
819
- await sock.swgc(groupJid, {
1111
+ // 4. Group Status Story (swgc / sendGroupStory)
1112
+ await sock.sendGroupStory(groupJid, {
820
1113
  image: fs.readFileSync('./announcement.jpg'),
821
1114
  caption: 'Official group announcement!'
822
1115
  })
1116
+
1117
+ // 5. Advanced WhatsApp Status Broadcast
1118
+ await sock.sendStatusWhatsApp({
1119
+ text: '📢 Broadcast update with targeted reach!'
1120
+ }, ['94712345678@s.whatsapp.net'])
823
1121
  ```
824
1122
 
825
1123
  ---
826
1124
 
827
1125
  ## 👥 Group Management
828
1126
 
829
- Comprehensive controls for WhatsApp Groups:
1127
+ Comprehensive controls for WhatsApp Groups with dedicated modular architecture:
830
1128
 
831
1129
  ```javascript
832
1130
  // Create Group
@@ -856,9 +1154,9 @@ const code = await sock.groupInviteCode(groupJid)
856
1154
  console.log(`Invite link: https://chat.whatsapp.com/${code}`)
857
1155
  await sock.groupRevokeInvite(groupJid) // Revoke link
858
1156
 
859
- // Join via Code & Leave Group
860
- await sock.groupAcceptInvite('ABCD1234efgh')
861
- await sock.groupLeave(groupJid)
1157
+ // Membership Approval Requests
1158
+ const requests = await sock.groupRequestParticipantsList(groupJid)
1159
+ await sock.groupRequestParticipantsUpdate(groupJid, [requests[0].jid], 'approve')
862
1160
 
863
1161
  // Bulk Send to Group Members (with safety delay)
864
1162
  await sock.sendMessageMembers(groupJid, { text: 'Notification to all members!' }, {
@@ -891,7 +1189,7 @@ const groups = await sock.communityFetchGroups(community.id)
891
1189
 
892
1190
  ## 📰 Newsletters (Channels)
893
1191
 
894
- Create and interact with WhatsApp Channels (Newsletters):
1192
+ Create and interact with WhatsApp Channels (Newsletters) with dedicated status support:
895
1193
 
896
1194
  ```javascript
897
1195
  // Create Channel
@@ -905,9 +1203,13 @@ await sock.newsletterUnfollow(newsletterJid)
905
1203
  await sock.newsletterMute(newsletterJid)
906
1204
  await sock.newsletterUnmute(newsletterJid)
907
1205
 
908
- // Post to Channel
909
- await sock.sendMessage(newsletterJid, {
910
- text: '🔥 Major new update released today!'
1206
+ // React to Channel Post
1207
+ await sock.newsletterReactMessage(newsletterJid, serverId, '🔥')
1208
+
1209
+ // Publish Newsletter Status Story
1210
+ await sock.sendNewsletterStatus(newsletterJid, {
1211
+ image: fs.readFileSync('./channel_story.jpg'),
1212
+ caption: 'Channel story update!'
911
1213
  })
912
1214
  ```
913
1215
 
@@ -944,11 +1246,11 @@ const blocklist = await sock.fetchBlocklist()
944
1246
 
945
1247
  ## 📞 VoIP Audio & Video Calls
946
1248
 
947
- Full VoIP calling support powered by native WhatsApp WebAssembly and WebRTC signaling engine:
1249
+ Full VoIP calling support powered by native WhatsApp WebAssembly and WebRTC signaling engine with custom feeders:
948
1250
 
949
1251
  ```javascript
950
1252
  import { makeWASocket } from 'supun-bailey-vip'
951
- import { VoipClient, CallMediaType } from 'supun-bailey-vip/voip'
1253
+ import { AudioFeeder, VideoFeeder } from 'supun-bailey-vip/voip'
952
1254
 
953
1255
  // Listen for incoming call offers
954
1256
  sock.ev.on('call', async (calls) => {
@@ -968,6 +1270,28 @@ sock.ev.on('call', async (calls) => {
968
1270
 
969
1271
  ---
970
1272
 
1273
+ ## 🔄 Advanced USync Protocols
1274
+
1275
+ Query business information, feature flags, avatars, and text status with fluent USync builders:
1276
+
1277
+ ```javascript
1278
+ import { USyncQuery, USyncUser } from 'supun-bailey-vip'
1279
+
1280
+ const query = new USyncQuery()
1281
+ .withContact()
1282
+ .withDevice()
1283
+ .withBusiness()
1284
+ .withFeature()
1285
+ .withPicture()
1286
+ .withTextStatus()
1287
+ .withUser(new USyncUser().withId('94712345678@s.whatsapp.net'))
1288
+
1289
+ const result = await sock.executeUSyncQuery(query)
1290
+ console.log('Synced business and status data:', result)
1291
+ ```
1292
+
1293
+ ---
1294
+
971
1295
  ## 🚫 4-Factor Ban Checker
972
1296
 
973
1297
  Verify any phone number against WhatsApp's official infrastructure using 4-factor non-invasive probing:
@@ -1031,7 +1355,7 @@ const sock = makeWASocket({
1031
1355
 
1032
1356
  ---
1033
1357
 
1034
- ## 💾 In-Memory Store
1358
+ ## 💾 In-Memory Store & Reporting Info Store
1035
1359
 
1036
1360
  Cache chats, messages, and contacts in memory and persist them to disk:
1037
1361
 
@@ -1049,8 +1373,12 @@ setInterval(() => {
1049
1373
  // Bind store to socket event emitter
1050
1374
  store.bind(sock.ev)
1051
1375
 
1052
- // Fetch saved messages
1053
- const chatMessages = store.messages[jid]
1376
+ // In-Memory Spam Reporting Info Store
1377
+ sock.reportingInfoStore.add('94712345678@s.whatsapp.net', {
1378
+ stanzaId: 'STZ-991',
1379
+ reportingTag: Buffer.from('spam_tag_data'),
1380
+ timestamp: Date.now()
1381
+ })
1054
1382
  ```
1055
1383
 
1056
1384
  ---
@@ -1089,4 +1417,4 @@ Made with ❤️ in Sri Lanka 🇱🇰
1089
1417
  ## 📄 License
1090
1418
 
1091
1419
  This project is licensed under the **MIT License**.
1092
- Copyright © 2026 Supun Fernando. All rights reserved.
1420
+ Copyright © 2026 Supun Fernando. All rights reserved.