@awangxcode/qiro-baileys 7.0.0-rc25.5 → 7.0.0-rc26.2

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 (298) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +1443 -1033
  3. package/WAProto/WAProto.proto +4 -0
  4. package/WAProto/index.d.ts +4067 -243
  5. package/WAProto/index.js +74957 -43330
  6. package/assets/branding/qiro-logo.svg +24 -0
  7. package/assets/branding/qiro-mark.png +0 -0
  8. package/assets/branding/qiro-mark.svg +34 -0
  9. package/assets/branding/qiro-social-preview.png +0 -0
  10. package/lib/Defaults/index.d.ts +16 -1
  11. package/lib/Defaults/index.d.ts.map +1 -1
  12. package/lib/Defaults/index.js +43 -10
  13. package/lib/Defaults/index.js.map +1 -1
  14. package/lib/Extensions/advanced.d.ts +1 -1
  15. package/lib/Extensions/experimental.d.ts +1 -3
  16. package/lib/Extensions/experimental.d.ts.map +1 -1
  17. package/lib/Extensions/experimental.js +0 -2
  18. package/lib/Extensions/experimental.js.map +1 -1
  19. package/lib/MessageBuilder/index.d.ts +5 -5
  20. package/lib/MessageBuilder/index.d.ts.map +1 -1
  21. package/lib/MessageBuilder/index.js +12 -3
  22. package/lib/MessageBuilder/index.js.map +1 -1
  23. package/lib/Signal/Group/group-session-builder.d.ts +3 -3
  24. package/lib/Signal/Group/group-session-builder.js +4 -4
  25. package/lib/Signal/Group/group_cipher.d.ts +2 -2
  26. package/lib/Signal/Group/group_cipher.js +4 -4
  27. package/lib/Signal/Group/index.d.ts +11 -11
  28. package/lib/Signal/Group/index.js +11 -11
  29. package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
  30. package/lib/Signal/Group/sender-chain-key.js +1 -1
  31. package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -1
  32. package/lib/Signal/Group/sender-key-distribution-message.js +1 -1
  33. package/lib/Signal/Group/sender-key-message.d.ts +1 -1
  34. package/lib/Signal/Group/sender-key-message.js +1 -1
  35. package/lib/Signal/Group/sender-key-record.d.ts +1 -1
  36. package/lib/Signal/Group/sender-key-record.js +2 -2
  37. package/lib/Signal/Group/sender-key-state.d.ts +2 -2
  38. package/lib/Signal/Group/sender-key-state.js +2 -2
  39. package/lib/Signal/libsignal.d.ts +3 -3
  40. package/lib/Signal/libsignal.js +6 -6
  41. package/lib/Signal/lid-mapping.d.ts +2 -2
  42. package/lib/Signal/lid-mapping.js +4 -4
  43. package/lib/Signal/lid-mapping.js.map +1 -1
  44. package/lib/Socket/Client/index.d.ts +2 -2
  45. package/lib/Socket/Client/index.js +2 -2
  46. package/lib/Socket/Client/types.d.ts +1 -1
  47. package/lib/Socket/Client/websocket.d.ts +1 -1
  48. package/lib/Socket/Client/websocket.js +2 -2
  49. package/lib/Socket/business.d.ts +347 -65
  50. package/lib/Socket/business.d.ts.map +1 -1
  51. package/lib/Socket/business.js +5 -5
  52. package/lib/Socket/chats.d.ts +129 -16
  53. package/lib/Socket/chats.d.ts.map +1 -1
  54. package/lib/Socket/chats.js +293 -18
  55. package/lib/Socket/chats.js.map +1 -1
  56. package/lib/Socket/communities.d.ts +332 -50
  57. package/lib/Socket/communities.d.ts.map +1 -1
  58. package/lib/Socket/communities.js +5 -5
  59. package/lib/Socket/groups.d.ts +133 -27
  60. package/lib/Socket/groups.d.ts.map +1 -1
  61. package/lib/Socket/groups.js +4 -4
  62. package/lib/Socket/index.d.ts +366 -84
  63. package/lib/Socket/index.d.ts.map +1 -1
  64. package/lib/Socket/index.js +8 -5
  65. package/lib/Socket/index.js.map +1 -1
  66. package/lib/Socket/messages-recv.d.ts +324 -41
  67. package/lib/Socket/messages-recv.d.ts.map +1 -1
  68. package/lib/Socket/messages-recv.js +81 -30
  69. package/lib/Socket/messages-recv.js.map +1 -1
  70. package/lib/Socket/messages-send.d.ts +340 -44
  71. package/lib/Socket/messages-send.d.ts.map +1 -1
  72. package/lib/Socket/messages-send.js +171 -35
  73. package/lib/Socket/messages-send.js.map +1 -1
  74. package/lib/Socket/mex.d.ts +1 -1
  75. package/lib/Socket/mex.js +1 -1
  76. package/lib/Socket/newsletter.d.ts +324 -39
  77. package/lib/Socket/newsletter.d.ts.map +1 -1
  78. package/lib/Socket/newsletter.js +345 -5
  79. package/lib/Socket/newsletter.js.map +1 -1
  80. package/lib/Socket/socket.d.ts +24 -11
  81. package/lib/Socket/socket.d.ts.map +1 -1
  82. package/lib/Socket/socket.js +89 -36
  83. package/lib/Socket/socket.js.map +1 -1
  84. package/lib/Store/index.d.ts +4 -0
  85. package/lib/Store/index.js +4 -0
  86. package/lib/Store/make-in-memory-store.d.ts +63 -0
  87. package/lib/Store/make-in-memory-store.js +397 -0
  88. package/lib/Store/make-ordered-dictionary.d.ts +13 -0
  89. package/lib/Store/make-ordered-dictionary.js +79 -0
  90. package/lib/Store/object-repository.d.ts +11 -0
  91. package/lib/Store/object-repository.js +24 -0
  92. package/lib/Types/Auth.d.ts +2 -2
  93. package/lib/Types/Chat.d.ts +19 -6
  94. package/lib/Types/Chat.d.ts.map +1 -1
  95. package/lib/Types/Chat.js +7 -0
  96. package/lib/Types/Chat.js.map +1 -1
  97. package/lib/Types/Events.d.ts +9 -9
  98. package/lib/Types/GroupMetadata.d.ts +2 -2
  99. package/lib/Types/Message.d.ts +70 -6
  100. package/lib/Types/Message.d.ts.map +1 -1
  101. package/lib/Types/Message.js +11 -0
  102. package/lib/Types/Message.js.map +1 -1
  103. package/lib/Types/Mex.d.ts +68 -39
  104. package/lib/Types/Mex.d.ts.map +1 -1
  105. package/lib/Types/Mex.js +66 -0
  106. package/lib/Types/Mex.js.map +1 -1
  107. package/lib/Types/Product.d.ts +1 -1
  108. package/lib/Types/Signal.d.ts +1 -1
  109. package/lib/Types/Socket.d.ts +50 -5
  110. package/lib/Types/Socket.d.ts.map +1 -1
  111. package/lib/Types/Socket.js +1 -1
  112. package/lib/Types/State.d.ts +1 -1
  113. package/lib/Types/USync.d.ts +2 -2
  114. package/lib/Types/USync.js +1 -1
  115. package/lib/Types/index.d.ts +14 -14
  116. package/lib/Types/index.js +12 -12
  117. package/lib/Utils/audio-sticker.d.ts +14 -0
  118. package/lib/Utils/audio-sticker.js +172 -0
  119. package/lib/Utils/auth-store.d.ts +30 -0
  120. package/lib/Utils/auth-store.js +77 -0
  121. package/lib/Utils/auth-utils.d.ts +2 -2
  122. package/lib/Utils/auth-utils.js +4 -4
  123. package/lib/Utils/browser-utils.d.ts +1 -1
  124. package/lib/Utils/business.d.ts +2 -2
  125. package/lib/Utils/business.js +3 -3
  126. package/lib/Utils/chat-theme.d.ts +34 -0
  127. package/lib/Utils/chat-theme.js +336 -0
  128. package/lib/Utils/chat-utils.d.ts +3 -3
  129. package/lib/Utils/chat-utils.js +9 -9
  130. package/lib/Utils/chat-utils.js.map +1 -1
  131. package/lib/Utils/companion-reg-client-utils.d.ts +3 -3
  132. package/lib/Utils/companion-reg-client-utils.js +1 -1
  133. package/lib/Utils/crypto.d.ts +1 -1
  134. package/lib/Utils/crypto.js +1 -1
  135. package/lib/Utils/decode-wa-message.d.ts +18 -4
  136. package/lib/Utils/decode-wa-message.d.ts.map +1 -1
  137. package/lib/Utils/decode-wa-message.js +57 -2
  138. package/lib/Utils/decode-wa-message.js.map +1 -1
  139. package/lib/Utils/event-buffer.d.ts +4 -3
  140. package/lib/Utils/event-buffer.d.ts.map +1 -1
  141. package/lib/Utils/event-buffer.js +7 -8
  142. package/lib/Utils/event-buffer.js.map +1 -1
  143. package/lib/Utils/generics.d.ts +5 -4
  144. package/lib/Utils/generics.d.ts.map +1 -1
  145. package/lib/Utils/generics.js +13 -22
  146. package/lib/Utils/generics.js.map +1 -1
  147. package/lib/Utils/group-metadata-cache.d.ts +4 -0
  148. package/lib/Utils/group-metadata-cache.js +25 -0
  149. package/lib/Utils/history.d.ts +1 -1
  150. package/lib/Utils/history.js +6 -6
  151. package/lib/Utils/history.js.map +1 -1
  152. package/lib/Utils/html-app.d.ts +19 -0
  153. package/lib/Utils/html-app.js +96 -0
  154. package/lib/Utils/html-multiplayer.d.ts +10 -0
  155. package/lib/Utils/html-multiplayer.js +94 -0
  156. package/lib/Utils/identity-change-handler.d.ts +2 -2
  157. package/lib/Utils/identity-change-handler.js +2 -2
  158. package/lib/Utils/index.d.ts +46 -21
  159. package/lib/Utils/index.d.ts.map +1 -1
  160. package/lib/Utils/index.js +48 -21
  161. package/lib/Utils/index.js.map +1 -1
  162. package/lib/Utils/link-preview-metadata.d.ts +47 -0
  163. package/lib/Utils/link-preview-metadata.js +88 -0
  164. package/lib/Utils/link-preview.d.ts +2 -2
  165. package/lib/Utils/link-preview.js +2 -2
  166. package/lib/Utils/message-retry-manager.d.ts +1 -1
  167. package/lib/Utils/messages-media.d.ts +35 -6
  168. package/lib/Utils/messages-media.d.ts.map +1 -1
  169. package/lib/Utils/messages-media.js +69 -22
  170. package/lib/Utils/messages-media.js.map +1 -1
  171. package/lib/Utils/messages.d.ts +45 -5
  172. package/lib/Utils/messages.d.ts.map +1 -1
  173. package/lib/Utils/messages.js +123 -32
  174. package/lib/Utils/messages.js.map +1 -1
  175. package/lib/Utils/modern-messages.d.ts +150 -0
  176. package/lib/Utils/modern-messages.js +496 -0
  177. package/lib/Utils/native-flow.d.ts +11 -0
  178. package/lib/Utils/native-flow.js +116 -0
  179. package/lib/Utils/newsletter-status.d.ts +158 -0
  180. package/lib/Utils/newsletter-status.js +651 -0
  181. package/lib/Utils/noise-handler.d.ts +3 -3
  182. package/lib/Utils/noise-handler.js +3 -3
  183. package/lib/Utils/offline-node-processor.d.ts +1 -1
  184. package/lib/Utils/optional-media.d.ts +3 -0
  185. package/lib/Utils/optional-media.js +46 -0
  186. package/lib/Utils/payment-messages.d.ts +38 -0
  187. package/lib/Utils/payment-messages.js +160 -0
  188. package/lib/Utils/pre-key-manager.d.ts +2 -2
  189. package/lib/Utils/process-message.d.ts +13 -2
  190. package/lib/Utils/process-message.d.ts.map +1 -1
  191. package/lib/Utils/process-message.js +87 -7
  192. package/lib/Utils/process-message.js.map +1 -1
  193. package/lib/Utils/reporting-utils.d.ts +2 -2
  194. package/lib/Utils/reporting-utils.js +1 -1
  195. package/lib/Utils/scheduled-message.d.ts +51 -0
  196. package/lib/Utils/scheduled-message.js +113 -0
  197. package/lib/Utils/sender-key-memory.d.ts +19 -0
  198. package/lib/Utils/sender-key-memory.js +51 -0
  199. package/lib/Utils/signal.d.ts +4 -4
  200. package/lib/Utils/signal.js +4 -4
  201. package/lib/Utils/stanza-ack.d.ts +1 -1
  202. package/lib/Utils/status-stickers.d.ts +127 -0
  203. package/lib/Utils/status-stickers.js +261 -0
  204. package/lib/Utils/sync-action-utils.d.ts +2 -2
  205. package/lib/Utils/sync-action-utils.js +1 -1
  206. package/lib/Utils/tc-token-utils.d.ts +2 -2
  207. package/lib/Utils/tc-token-utils.js +1 -1
  208. package/lib/Utils/ttl-cache.d.ts +29 -0
  209. package/lib/Utils/ttl-cache.js +121 -0
  210. package/lib/Utils/use-mongo-auth-state.d.ts +22 -0
  211. package/lib/Utils/use-mongo-auth-state.js +68 -0
  212. package/lib/Utils/use-multi-file-auth-state.d.ts +2 -1
  213. package/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -1
  214. package/lib/Utils/use-multi-file-auth-state.js +28 -15
  215. package/lib/Utils/use-multi-file-auth-state.js.map +1 -1
  216. package/lib/Utils/use-mysql-auth-state.d.ts +20 -0
  217. package/lib/Utils/use-mysql-auth-state.js +80 -0
  218. package/lib/Utils/use-nekodb-auth.d.ts +19 -0
  219. package/lib/Utils/use-nekodb-auth.js +111 -0
  220. package/lib/Utils/use-postgres-auth-state.d.ts +20 -0
  221. package/lib/Utils/use-postgres-auth-state.js +80 -0
  222. package/lib/Utils/use-redis-auth-state.d.ts +20 -0
  223. package/lib/Utils/use-redis-auth-state.js +90 -0
  224. package/lib/Utils/use-single-file-auth-state.d.ts +11 -0
  225. package/lib/Utils/use-single-file-auth-state.js +109 -0
  226. package/lib/Utils/use-sqlite-auth-state.d.ts +13 -0
  227. package/lib/Utils/use-sqlite-auth-state.js +121 -0
  228. package/lib/Utils/username.d.ts +12 -0
  229. package/lib/Utils/username.js +59 -0
  230. package/lib/Utils/validate-connection.d.ts +2 -2
  231. package/lib/Utils/validate-connection.js +5 -5
  232. package/lib/Utils/voice-recognition.d.ts +53 -0
  233. package/lib/Utils/voice-recognition.js +219 -0
  234. package/lib/VoIP/audio-feeder.d.ts +24 -0
  235. package/lib/VoIP/audio-feeder.js +276 -0
  236. package/lib/VoIP/index.d.ts +93 -0
  237. package/lib/VoIP/index.js +998 -0
  238. package/lib/VoIP/relay-transport.d.ts +5 -0
  239. package/lib/VoIP/relay-transport.js +824 -0
  240. package/lib/VoIP/signaling.d.ts +11 -0
  241. package/lib/VoIP/signaling.js +1099 -0
  242. package/lib/VoIP/types.d.ts +2 -0
  243. package/lib/VoIP/types.js +12 -0
  244. package/lib/VoIP/video-feeder.d.ts +24 -0
  245. package/lib/VoIP/video-feeder.js +276 -0
  246. package/lib/VoIP/wasm-engine.d.ts +26 -0
  247. package/lib/VoIP/wasm-engine.js +1318 -0
  248. package/lib/VoIP/worker-bootstrap.js +1022 -0
  249. package/lib/WABinary/decode.d.ts +1 -1
  250. package/lib/WABinary/decode.js +2 -2
  251. package/lib/WABinary/encode.d.ts +1 -1
  252. package/lib/WABinary/encode.js +2 -2
  253. package/lib/WABinary/generic-utils.d.ts +3 -1
  254. package/lib/WABinary/generic-utils.d.ts.map +1 -1
  255. package/lib/WABinary/generic-utils.js +3 -1
  256. package/lib/WABinary/generic-utils.js.map +1 -1
  257. package/lib/WABinary/index.d.ts +5 -5
  258. package/lib/WABinary/index.js +5 -5
  259. package/lib/WABinary/jid-utils.d.ts +2 -0
  260. package/lib/WABinary/jid-utils.d.ts.map +1 -1
  261. package/lib/WABinary/jid-utils.js +3 -1
  262. package/lib/WABinary/jid-utils.js.map +1 -1
  263. package/lib/WABinary/types.d.ts +1 -1
  264. package/lib/WABinary/types.js +1 -1
  265. package/lib/WAM/BinaryInfo.d.ts +1 -1
  266. package/lib/WAM/encode.d.ts +1 -1
  267. package/lib/WAM/encode.js +2 -2
  268. package/lib/WAM/index.d.ts +3 -3
  269. package/lib/WAM/index.js +3 -3
  270. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -3
  271. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  272. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -2
  273. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +1 -1
  274. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -2
  275. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  276. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -2
  277. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +1 -1
  278. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +3 -3
  279. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +2 -2
  280. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -3
  281. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +2 -2
  282. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -3
  283. package/lib/WAUSync/Protocols/index.d.ts +5 -5
  284. package/lib/WAUSync/Protocols/index.js +5 -5
  285. package/lib/WAUSync/USyncQuery.d.ts +3 -3
  286. package/lib/WAUSync/USyncQuery.js +5 -5
  287. package/lib/WAUSync/index.d.ts +3 -3
  288. package/lib/WAUSync/index.js +3 -3
  289. package/lib/extensions/awang-MessageBuilder.js +1 -1
  290. package/lib/index.d.ts +14 -10
  291. package/lib/index.d.ts.map +1 -1
  292. package/lib/index.js +15 -11
  293. package/lib/index.js.map +1 -1
  294. package/package.json +78 -31
  295. package/MIGRASI-QIRO-BAILEYS-RC25.md +0 -102
  296. package/QIRO-BAILEYS-RC25.md +0 -168
  297. package/THIRD_PARTY_NOTICES.md +0 -49
  298. /package/{engine-requirements.js → config/engine-requirements.js} +0 -0
package/package.json CHANGED
@@ -1,51 +1,55 @@
1
1
  {
2
2
  "name": "@awangxcode/qiro-baileys",
3
3
  "type": "module",
4
- "version": "7.0.0-rc25.5",
5
- "description": "Unofficial Baileys fork by AwangXCode with experimental extensions",
4
+ "version": "7.0.0-rc26.2",
5
+ "description": "QIRO WhatsApp Web protocol toolkit by AXCODE iD / AwangXcode",
6
6
  "keywords": [
7
- "whatsapp",
7
+ "qiro",
8
+ "axcode-id",
9
+ "awangxcode",
8
10
  "whatsapp-web",
9
- "baileys",
10
- "qiro-baileys",
11
+ "whatsapp",
11
12
  "nodejs",
12
13
  "typescript",
13
- "automation"
14
+ "baileys-compatible",
15
+ "sound-sticker",
16
+ "chat-theme",
17
+ "native-flow",
18
+ "scheduled-message"
14
19
  ],
15
20
  "license": "MIT",
16
- "author": "Rajeh Taher",
21
+ "author": "AXCODE iD (AwangXcode)",
17
22
  "main": "lib/index.js",
18
23
  "types": "lib/index.d.ts",
19
24
  "files": [
20
25
  "lib/**/*",
21
26
  "WAProto/**/*",
22
- "engine-requirements.js",
27
+ "assets/branding/**/*",
28
+ "config/engine-requirements.js",
23
29
  "README.md",
24
- "QIRO-BAILEYS-RC25.md",
25
- "MIGRASI-QIRO-BAILEYS-RC25.md",
26
- "THIRD_PARTY_NOTICES.md"
30
+ "LICENSE"
27
31
  ],
28
32
  "scripts": {
29
- "build:all": "npm run build && npm run build:docs",
30
- "build:docs": "typedoc",
31
- "build": "tsc -P tsconfig.build.json && tsc-esm-fix --tsconfig=tsconfig.build.json --ext=.js && node ./scripts/copy-qiro-extensions.mjs",
32
- "changelog:last": "conventional-changelog -p angular -r 2",
33
- "changelog:preview": "conventional-changelog -p angular -u",
34
- "changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
35
- "example": "tsx ./Example/example.ts",
36
- "gen:protobuf": "sh WAProto/GenerateStatics.sh",
37
- "format": "prettier --write \"src/**/*.{ts,js,json,md}\"",
38
- "lint": "tsc && eslint src --ext .js,.ts",
39
- "lint:fix": "npm run format && npm run lint -- --fix",
33
+ "build:all": "yarn build && yarn build:docs",
34
+ "build:docs": "typedoc --options config/typedoc.json --tsconfig config/tsconfig.json --entryPoints src/index.ts --out docs/api",
35
+ "build": "tsc -P config/tsconfig.build.json && tsc-esm-fix --tsconfig=config/tsconfig.build.json --ext=.js && node ./scripts/check-proto-static.mjs && node ./scripts/stage-extension-modules.mjs && node ./scripts/stage-call-framework.mjs",
36
+ "example": "tsx ./examples/example.ts",
37
+ "gen:protobuf": "node ./scripts/proto-regeneration-guard.mjs",
38
+ "format": "prettier --write \"src/**/*.{ts,js,json,md}\" \"examples/**/*.{ts,js,json,md}\"",
39
+ "lint": "tsc -p config/tsconfig.json && eslint --config config/eslint.config.mts src --ext .js,.ts",
40
+ "lint:fix": "yarn format && yarn lint --fix",
40
41
  "prepack": "yarn build",
41
42
  "prepare": "npm run build",
42
- "preinstall": "node ./engine-requirements.js",
43
+ "preinstall": "node ./config/engine-requirements.js",
43
44
  "release": "release-it",
44
- "test": "node --experimental-vm-modules ./node_modules/.bin/jest --testMatch '**/*.test.ts'",
45
- "test:e2e": "NODE_TLS_REJECT_UNAUTHORIZED=0 node --experimental-vm-modules ./node_modules/.bin/jest --runInBand --forceExit --testMatch '**/*.test-e2e.ts'",
46
- "update:version": "tsx ./scripts/update-version.ts"
45
+ "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --runInBand --config config/jest.config.cjs --testMatch \"**/*.test.ts\"",
46
+ "test:e2e": "NODE_TLS_REJECT_UNAUTHORIZED=0 node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config config/jest.config.cjs --runInBand --forceExit --testMatch \"**/*.test-e2e.ts\"",
47
+ "update:version": "tsx ./scripts/update-version.ts",
48
+ "check:proto": "node scripts/check-proto-static.mjs && node scripts/check-proto-compat.mjs",
49
+ "check:integration": "node scripts/check-qiro-integrations.mjs"
47
50
  },
48
51
  "dependencies": {
52
+ "@adiwajshing/keyed-db": "^0.2.4",
49
53
  "@cacheable/node-cache": "^1.4.0",
50
54
  "@hapi/boom": "^9.1.3",
51
55
  "async-mutex": "^0.5.0",
@@ -64,19 +68,19 @@
64
68
  "devDependencies": {
65
69
  "@eslint/eslintrc": "^3.3.1",
66
70
  "@eslint/js": "^9.31.0",
67
- "@types/jest": "^30.0.0",
71
+ "@types/jest": "^29.5.14",
68
72
  "@types/node": "^20.9.0",
69
73
  "@types/ws": "^8.0.0",
70
74
  "@typescript-eslint/eslint-plugin": "^8",
71
75
  "@typescript-eslint/parser": "^8",
72
- "@whiskeysockets/eslint-config": "^1.0.0",
73
76
  "conventional-changelog": "^7.1.1",
74
77
  "conventional-changelog-angular": "^8.0.0",
78
+ "esbuild": "~0.25.0",
75
79
  "esbuild-register": "^3.6.0",
76
80
  "eslint": "^9",
77
81
  "eslint-config-prettier": "^10.1.2",
78
82
  "eslint-plugin-prettier": "^5.4.0",
79
- "jest": "^30.0.5",
83
+ "jest": "29.7.0",
80
84
  "jimp": "^1.6.1",
81
85
  "jiti": "^2.4.2",
82
86
  "json": "^11.0.0",
@@ -87,7 +91,6 @@
87
91
  "prettier": "^3.5.3",
88
92
  "protobufjs-cli": "^1.1.3",
89
93
  "release-it": "^20.0.1",
90
- "ts-jest": "^29.4.0",
91
94
  "tsc-esm-fix": "^3.1.2",
92
95
  "tsx": "^4.20.3",
93
96
  "typedoc": "^0.27.9",
@@ -95,9 +98,17 @@
95
98
  "typescript": "^5.8.2"
96
99
  },
97
100
  "peerDependencies": {
101
+ "@napi-rs/image": "~1.12.0",
102
+ "@nekodb/client": "*",
103
+ "@roamhq/wrtc": "*",
98
104
  "audio-decode": "^2.1.3",
105
+ "better-sqlite3": "^11.0.0 || ^12.0.0 || ^13.0.0",
106
+ "ioredis": "^5.0.0",
99
107
  "jimp": "^1.6.1",
100
108
  "link-preview-js": "^3.0.0",
109
+ "mongodb": "^6.0.0",
110
+ "mysql2": "^3.0.0",
111
+ "pg": "^8.0.0",
101
112
  "sharp": "*"
102
113
  },
103
114
  "resolutions": {
@@ -130,15 +141,39 @@
130
141
  "yaml@npm:^2.6.1": "^2.8.4"
131
142
  },
132
143
  "peerDependenciesMeta": {
144
+ "@napi-rs/image": {
145
+ "optional": true
146
+ },
147
+ "@nekodb/client": {
148
+ "optional": true
149
+ },
150
+ "@roamhq/wrtc": {
151
+ "optional": true
152
+ },
133
153
  "audio-decode": {
134
154
  "optional": true
135
155
  },
156
+ "better-sqlite3": {
157
+ "optional": true
158
+ },
159
+ "ioredis": {
160
+ "optional": true
161
+ },
136
162
  "jimp": {
137
163
  "optional": true
138
164
  },
139
165
  "link-preview-js": {
140
166
  "optional": true
141
167
  },
168
+ "mongodb": {
169
+ "optional": true
170
+ },
171
+ "mysql2": {
172
+ "optional": true
173
+ },
174
+ "pg": {
175
+ "optional": true
176
+ },
142
177
  "sharp": {
143
178
  "optional": true
144
179
  }
@@ -147,5 +182,17 @@
147
182
  "engines": {
148
183
  "node": ">=20.0.0"
149
184
  },
150
- "homepage": "https://awangxoffc.github.io/qiro-baileys-docs/"
185
+ "homepage": "https://awangxoffc.github.io/qiro-baileys-docs/",
186
+ "qiroWaWebVersion": [
187
+ 2,
188
+ 3000,
189
+ 1056359382
190
+ ],
191
+ "repository": {
192
+ "type": "git",
193
+ "url": "https://github.com/AwangXoffc/baileys-pro.git"
194
+ },
195
+ "bugs": {
196
+ "url": "https://github.com/AwangXoffc/baileys-pro/issues"
197
+ }
151
198
  }
@@ -1,102 +0,0 @@
1
- # Migration Guide — Qiro Baileys RC25
2
-
3
- This guide covers moving an application to the Qiro Baileys RC25 prerelease channel. The inspected package version for this guide is `7.0.0-rc25.4`.
4
-
5
- > RC25 is a prerelease. Review the changelog and validate your application in a controlled environment before upgrading production workloads.
6
-
7
- ## 1. Install the intended release channel
8
-
9
- The project uses npm dist-tags to separate release channels. Install RC25 explicitly:
10
-
11
- ```bash
12
- npm install @awangxcode/qiro-baileys@next
13
- ```
14
-
15
- Do not assume that `npm install @awangxcode/qiro-baileys` selects RC25. The project may maintain a different version under the `latest` tag.
16
-
17
- ## 2. Update package imports deliberately
18
-
19
- Use the Qiro package name in application imports:
20
-
21
- ```ts
22
- import makeWASocket, {
23
- MessageBuilder,
24
- A2UI,
25
- sendImagePoll,
26
- sendScheduledMessage,
27
- } from "@awangxcode/qiro-baileys";
28
- ```
29
-
30
- Only import symbols that your application actually uses. Check the installed `lib/index.d.ts` for the exact exported names and call signatures of the version you installed. Do not copy source-relative imports such as `../src` from repository examples into an installed application.
31
-
32
- ## 3. Preserve and protect authentication state
33
-
34
- Before upgrading:
35
-
36
- 1. Stop the running client cleanly.
37
- 2. Make a private backup of the existing authentication directory or database.
38
- 3. Keep credentials out of source control, logs, screenshots, and public issue reports.
39
- 4. Upgrade the package without deleting the existing auth state.
40
- 5. Test reconnection with a controlled account before deploying the updated application.
41
-
42
- Changing the package version does not itself require deleting or regenerating authentication credentials. Do not delete auth data as a generic troubleshooting step.
43
-
44
- ## 4. Review custom extensions separately
45
-
46
- RC25 exposes additional functionality in three broad areas:
47
-
48
- ### MessageBuilder
49
-
50
- The current source exports `Button`, `ButtonV2`, `Carousel`, `AIRich`, `Toolkit`, `MessageBuilder`, and `MB`, along with native-flow validation and rich-message reading helpers.
51
-
52
- Review the declaration signatures for your exact builder usage. Do not assume a payload from one builder version is interchangeable with another.
53
-
54
- ### Advanced extensions
55
-
56
- The advanced module includes album and classic interactive-message helpers, rich-link helpers, message readers, in-memory storage, authentication adapters, and media utilities.
57
-
58
- If you use database-backed auth adapters, confirm that your application passes a compatible client, pool, or adapter. Database drivers and services may need to be installed and configured separately.
59
-
60
- ### Experimental extensions
61
-
62
- RC25 includes WebUI/A2UI, Rich Menu, image poll, scheduled-message, modern status/question, newsletter, scheduled-call, and poll-add-option helpers. These are experimental and may be affected by protocol or client-side support changes.
63
-
64
- Enable experimental functionality only where needed. Test it independently from your normal message flow and maintain a fallback path for unsupported clients.
65
-
66
- ## 5. VoIP adapter contract
67
-
68
- The RC25 changelog describes an explicit VoIP adapter contract and states that the engine is not bundled. Applications that use this interface must supply and maintain a compatible adapter/engine. Do not treat the presence of `makeVoipClient` as proof that a working VoIP engine is installed.
69
-
70
- ## 6. Validate after the upgrade
71
-
72
- Recommended application-level checks:
73
-
74
- - Confirm that the application resolves `@awangxcode/qiro-baileys` to the expected prerelease version.
75
- - Confirm that the existing auth state can be loaded and credentials can be saved.
76
- - Confirm basic connection and ordinary send/receive flows.
77
- - Exercise each Qiro extension used by the application independently.
78
- - Test media helpers in the target operating environment.
79
- - Test experimental features only with a separate or non-critical account.
80
- - Monitor logs for protocol, authentication, or dependency errors.
81
-
82
- Do not infer that every RC25 feature has been fully validated merely because it is exported. The RC25 changelog itself records that the source-level integration was not fully type-checked or runtime-tested at the time of that changelog entry.
83
-
84
- ## 7. Rollback
85
-
86
- If the prerelease causes an application regression:
87
-
88
- 1. Stop the application.
89
- 2. Restore the previously recorded package version in your project manifest/lockfile.
90
- 3. Reinstall dependencies from that known-good lockfile.
91
- 4. Restore the auth-state backup only if the application has actually damaged or migrated it; do not overwrite a valid, current session without reason.
92
- 5. Re-test ordinary connection and messaging flows.
93
-
94
- Record the exact previous package version before upgrading so rollback is deterministic.
95
-
96
- ## 8. Release notes and support references
97
-
98
- - Project documentation: <https://awangxoffc.github.io/qiro-baileys-docs/>
99
- - npm package: <https://www.npmjs.com/package/@awangxcode/qiro-baileys>
100
- - Upstream project: <https://github.com/WhiskeySockets/Baileys>
101
-
102
- For exact changes, consult the corresponding release entry in `CHANGELOG.md` in the source repository.
@@ -1,168 +0,0 @@
1
- # Qiro Baileys RC25 — Developer Guide
2
-
3
- **Package:** `@awangxcode/qiro-baileys`
4
- **Inspected package version:** `7.0.0-rc25.4`
5
- **Documentation:** <https://awangxoffc.github.io/qiro-baileys-docs/>
6
- **Status:** Release candidate; experimental APIs are not guaranteed to work across all WhatsApp clients or server-side capabilities.
7
-
8
- Qiro Baileys is an unofficial TypeScript toolkit based on the WhiskeySockets Baileys project, with additional Qiro extensions. It is not affiliated with WhatsApp or Meta.
9
-
10
- ## 1. Installation
11
-
12
- The project currently distributes its RC25 prereleases through the npm `next` dist-tag. Install that channel explicitly:
13
-
14
- ```bash
15
- npm install @awangxcode/qiro-baileys@next
16
- ```
17
-
18
- The `latest` dist-tag is maintained separately. Do not omit `@next` when you intend to install the RC25 prerelease channel.
19
-
20
- Use Node.js 20 or newer, matching the compatibility target documented by this project. Keep your authentication data private and never commit session credentials to a public repository.
21
-
22
- ## 2. Basic connection pattern
23
-
24
- The package exports `makeWASocket` as both the default export and a named export. Authentication helpers are re-exported from the package entry point.
25
-
26
- ```ts
27
- import makeWASocket, {
28
- useMultiFileAuthState,
29
- } from "@awangxcode/qiro-baileys";
30
-
31
- async function main() {
32
- const { state, saveCreds } = await useMultiFileAuthState("./auth");
33
- const socket = makeWASocket({ auth: state });
34
-
35
- socket.ev.on("creds.update", saveCreds);
36
- return socket;
37
- }
38
-
39
- void main();
40
- ```
41
-
42
- This is a minimal connection pattern, not a complete production deployment. Review the upstream Baileys guidance and the examples shipped with the source before deploying a long-running service. Add appropriate logging, reconnect handling, shutdown handling, and secure storage for credentials in your own application.
43
-
44
- ## 3. Package entry points and exports
45
-
46
- The package metadata identifies `lib/index.js` as the JavaScript entry point and `lib/index.d.ts` as the TypeScript declaration entry point.
47
-
48
- The root entry point exports the default and named `makeWASocket` factory, WAProto exports, shared utilities, types, defaults, and these Qiro-facing modules:
49
-
50
- - `MessageBuilder`
51
- - Advanced extensions
52
- - Experimental extensions
53
-
54
- The root entry point also invokes the Qiro terminal welcome display when it is imported.
55
-
56
- ## 4. MessageBuilder toolkit
57
-
58
- The MessageBuilder module exports the following principal classes and helpers:
59
-
60
- | Export | Purpose |
61
- |:--|:--|
62
- | `Button` | Button-oriented message builder |
63
- | `ButtonV2` | Newer button builder interface |
64
- | `Carousel` | Carousel message builder |
65
- | `AIRich` | Rich/AI-oriented message builder |
66
- | `Toolkit` | Deterministic helper utilities |
67
- | `MessageBuilder` | Object grouping the builders and helper functions |
68
- | `MB` | Alias for `MessageBuilder` |
69
- | `checkNativeFlowButtons` | Native-flow button validation |
70
- | `isWebSupportedNativeFlowButton` | Checks web-supported native-flow button names |
71
- | `readRichMessage` | Reads rich-message content |
72
- | `readSocialPreview` | Reads social-preview content |
73
-
74
- The precise constructor options and supported payload shapes are defined by the installed TypeScript declarations. Consult those declarations rather than assuming that all interactive formats are accepted by every WhatsApp client.
75
-
76
- ## 5. Advanced extensions
77
-
78
- The advanced module includes the following exported capabilities:
79
-
80
- ### Message and content helpers
81
-
82
- - `unwrapMessage`
83
- - `readRichMessage`
84
- - `readSocialPreview`
85
- - `normalizeUserJid`
86
- - `buildButtonsMessage`
87
- - `buildListMessage`
88
- - `sendClassicMessage`
89
- - `sendAlbum`
90
- - `richLink`
91
- - `inspectMessageContent`
92
-
93
- ### Socket and in-memory helpers
94
-
95
- - `attachAdvancedSocketMethods`
96
- - `makeInMemoryStore`
97
-
98
- ### Authentication adapters
99
-
100
- - `useSingleFileAuthState`
101
- - `useSqliteAuthState`
102
- - `usePostgresAuthState`
103
- - `useMySQLAuthState`
104
- - `useMongoAuthState`
105
- - `useRedisAuthState`
106
- - `useCacheManagerAuthState`
107
- - `useNekoDBAuth`
108
- - `useAdapterAuthState`
109
- - `makeCacheManagerAuthState`
110
-
111
- Database-specific helpers expect compatible database clients, pools, or adapter objects supplied by the application. Install and configure the corresponding database driver separately when required; these adapters do not mean that every database server or driver is bundled with Qiro.
112
-
113
- ### Media helpers
114
-
115
- - `probeMedia`
116
- - `convertToWhatsAppVideo`
117
- - `convertToOpusAudio`
118
- - `getVideoThumbnail`
119
- - `resizeImage`
120
- - `getMp4Duration`
121
-
122
- Review the TypeScript declarations and your environment requirements before using media conversion helpers. Availability can depend on external media tooling and platform support.
123
-
124
- ## 6. Experimental extensions
125
-
126
- The experimental module contains APIs for newer or less-established message structures and integrations. The RC25 changelog lists additions including:
127
-
128
- - WebUI and A2UI message builders and socket helpers
129
- - Rich Menu builders and helpers
130
- - Image-poll message helpers
131
- - Scheduled-message primitives and helpers
132
- - Question, status, Add Yours, comment, and status-link-preview helpers
133
- - Newsletter invitation helpers
134
- - Scheduled-call message helpers
135
- - Poll-add-option helpers
136
- - An explicit VoIP client adapter contract
137
-
138
- Some named exports visible in the source include `A2UI`, `buildWebuiMessage`, `sendInlineWebUI`, `sendA2UIWidget`, `buildRichMenuMessage`, `sendRichMenu`, `sendImagePoll`, `sendScheduledMessage`, `sendPollAddOption`, `sendNewsletterAdminInvite`, `sendNewsletterFollowerInvite`, and `makeVoipClient`.
139
-
140
- **Experimental means experimental.** Server support, WhatsApp client versions, account eligibility, payload restrictions, and protocol changes may affect behavior. Test with a separate account and non-critical data. Do not promise delivery or universal compatibility for these message types.
141
-
142
- The VoIP feature is exposed through an adapter contract; the VoIP engine is not bundled by this package. Applications must provide a compatible adapter/engine where required.
143
-
144
- ## 7. Source examples
145
-
146
- The source repository contains:
147
-
148
- - `Example/example.ts` — standard socket example
149
- - `Example/experimental-features.ts` — examples of selected experimental APIs
150
-
151
- Treat these files and the installed `.d.ts` declarations as the reference for exact call signatures. Example files in the source repository are not necessarily included in the published npm tarball.
152
-
153
- ## 8. Release and compatibility notes
154
-
155
- - `7.0.0-rc25.4` is a prerelease, not a stable release.
156
- - Install the RC25 channel with `@next` explicitly.
157
- - Interactive and experimental protocol features may change between prereleases.
158
- - Review `CHANGELOG.md` for release-by-release notes in the source repository.
159
- - Keep authentication state secure and maintain backups before changing persistence adapters.
160
- - Do not generate or modify WAProto files unless you intentionally maintain the protocol schema and understand the consequences.
161
-
162
- ## 9. Credits and disclaimer
163
-
164
- Qiro Baileys is derived from [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys). The project retains the upstream MIT license notice in its `LICENSE` file. Preserve upstream copyright and license notices when redistributing applicable source portions.
165
-
166
- This is an unofficial community project and is not affiliated with WhatsApp or Meta. WhatsApp is a trademark of its respective owner.
167
-
168
- For project documentation, see <https://awangxoffc.github.io/qiro-baileys-docs/>.
@@ -1,49 +0,0 @@
1
- # Third-Party Notices
2
-
3
- This file records the declared license metadata for the **direct runtime dependencies** of `@awangxcode/qiro-baileys` as inspected for package version `7.0.0-rc25.4` on 2026-10-30.
4
-
5
- Qiro Baileys declares its own project license as MIT. The repository `LICENSE` file contains the upstream MIT notice and copyright attribution to Rajeh Taher/WhiskeySockets. This notice does not replace that `LICENSE` file.
6
-
7
- ## Direct runtime dependency inventory
8
-
9
- | Dependency | Inspected version | Declared license metadata |
10
- |:--|:--:|:--|
11
- | `@cacheable/node-cache` | `1.6.0` | MIT |
12
- | `@hapi/boom` | `9.1.4` | BSD-3-Clause |
13
- | `async-mutex` | `0.5.0` | MIT |
14
- | `axios` | `1.20.0` | MIT |
15
- | `fluent-ffmpeg` | `2.1.3` | MIT |
16
- | `libsignal` | `6.0.0` | GPL-3.0 |
17
- | `long` | `5.3.2` | Apache-2.0 |
18
- | `lru-cache` | `11.2.1` | ISC |
19
- | `music-metadata` | `11.12.3` | MIT |
20
- | `p-queue` | `9.0.0` | MIT |
21
- | `pino` | `9.7.0` | MIT |
22
- | `protobufjs` | `7.5.6` | BSD-3-Clause |
23
- | `whatsapp-rust-bridge` | `0.5.4` | MIT |
24
- | `ws` | `8.18.3` | MIT |
25
-
26
- The values above were read from the installed dependency package metadata through the project Yarn Plug'n'Play environment. They are metadata labels, not a substitute for reviewing the full license files and notices distributed by each dependency.
27
-
28
- ## Important license review item: libsignal
29
-
30
- The installed metadata for `libsignal@6.0.0` declares `GPL-3.0`. This is materially different from the MIT labels shown for most of the other direct dependencies.
31
-
32
- Before redistributing or publishing a release, the project maintainer should review the exact `libsignal` package license, its source and distribution model, how the package is used, and the obligations that apply to the combined distribution and downstream applications. Do not describe this dependency as MIT, do not remove its license notices, and do not assume that the package-level `license: MIT` field resolves third-party obligations. This notice is informational and is not legal advice.
33
-
34
- ## Scope and limitations
35
-
36
- - This table covers the 14 direct runtime dependencies listed in the inspected `package.json` only.
37
- - It does not claim to be a complete software bill of materials (SBOM).
38
- - It does not enumerate transitive dependencies, development dependencies, optional platform packages, or tools installed outside npm/Yarn.
39
- - Dependency versions and license metadata can change. Re-run the inventory whenever the lockfile or dependency set changes.
40
- - Review each dependency's full license text, copyright notices, attribution requirements, and any bundled third-party notices before redistribution.
41
- - Where a dependency is distributed separately by the package manager, its own license and notices continue to apply to that dependency.
42
-
43
- ## Upstream project attribution
44
-
45
- Qiro Baileys is derived from [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys). The root `LICENSE` file must be preserved with its existing copyright and permission notice. Do not remove or replace upstream attribution when preparing source or package distributions.
46
-
47
- ## Trademarks and affiliation
48
-
49
- WhatsApp and Meta are trademarks of their respective owners. Qiro Baileys is an unofficial project and is not endorsed by, affiliated with, or sponsored by WhatsApp or Meta.