dcodeindra-baileyspro 2.3.9

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 (286) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2534 -0
  3. package/WAProto/Adv/Adv.d.ts +518 -0
  4. package/WAProto/Adv/Adv.js +1734 -0
  5. package/WAProto/Adv/Adv.proto +36 -0
  6. package/WAProto/BotMetadata/BotMetadata.d.ts +5745 -0
  7. package/WAProto/BotMetadata/BotMetadata.js +16291 -0
  8. package/WAProto/BotMetadata/BotMetadata.proto +463 -0
  9. package/WAProto/Cert/Cert.d.ts +497 -0
  10. package/WAProto/Cert/Cert.js +1503 -0
  11. package/WAProto/Cert/Cert.proto +28 -0
  12. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
  13. package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
  14. package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
  15. package/WAProto/CompanionReg/CompanionReg.d.ts +1055 -0
  16. package/WAProto/CompanionReg/CompanionReg.js +3532 -0
  17. package/WAProto/CompanionReg/CompanionReg.proto +89 -0
  18. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
  19. package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
  20. package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
  21. package/WAProto/E2E/E2E.d.ts +28417 -0
  22. package/WAProto/E2E/E2E.js +98438 -0
  23. package/WAProto/E2E/E2E.proto +2289 -0
  24. package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
  25. package/WAProto/Ephemeral/Ephemeral.js +269 -0
  26. package/WAProto/Ephemeral/Ephemeral.proto +6 -0
  27. package/WAProto/HistorySync/HistorySync.d.ts +40728 -0
  28. package/WAProto/HistorySync/HistorySync.js +142980 -0
  29. package/WAProto/HistorySync/HistorySync.proto +207 -0
  30. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
  31. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
  32. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
  33. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
  34. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
  35. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
  36. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +29294 -0
  37. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +101732 -0
  38. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
  39. package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
  40. package/WAProto/MmsRetry/MmsRetry.js +586 -0
  41. package/WAProto/MmsRetry/MmsRetry.proto +17 -0
  42. package/WAProto/Protocol/Protocol.d.ts +218 -0
  43. package/WAProto/Protocol/Protocol.js +701 -0
  44. package/WAProto/Protocol/Protocol.proto +20 -0
  45. package/WAProto/Reporting/Reporting.d.ts +301 -0
  46. package/WAProto/Reporting/Reporting.js +989 -0
  47. package/WAProto/Reporting/Reporting.proto +19 -0
  48. package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
  49. package/WAProto/ServerSync/ServerSync.js +3176 -0
  50. package/WAProto/ServerSync/ServerSync.proto +59 -0
  51. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
  52. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
  53. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
  54. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
  55. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
  56. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
  57. package/WAProto/StatusAttributions/StatusAttributions.d.ts +636 -0
  58. package/WAProto/StatusAttributions/StatusAttributions.js +2037 -0
  59. package/WAProto/StatusAttributions/StatusAttributions.proto +61 -0
  60. package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
  61. package/WAProto/SyncAction/SyncAction.js +22271 -0
  62. package/WAProto/SyncAction/SyncAction.proto +423 -0
  63. package/WAProto/UserPassword/UserPassword.d.ts +298 -0
  64. package/WAProto/UserPassword/UserPassword.js +898 -0
  65. package/WAProto/UserPassword/UserPassword.proto +27 -0
  66. package/WAProto/VnameCert/VnameCert.d.ts +658 -0
  67. package/WAProto/VnameCert/VnameCert.js +2225 -0
  68. package/WAProto/VnameCert/VnameCert.proto +60 -0
  69. package/WAProto/Wa6/Wa6.d.ts +1613 -0
  70. package/WAProto/Wa6/Wa6.js +6299 -0
  71. package/WAProto/Wa6/Wa6.proto +229 -0
  72. package/WAProto/Web/Web.d.ts +31718 -0
  73. package/WAProto/Web/Web.js +113402 -0
  74. package/WAProto/Web/Web.proto +545 -0
  75. package/WAProto/index.d.ts +49 -0
  76. package/WAProto/index.js +28 -0
  77. package/WASignalGroup/GroupProtocol.js +1771 -0
  78. package/WASignalGroup/ciphertext_message.js +10 -0
  79. package/WASignalGroup/group_cipher.js +103 -0
  80. package/WASignalGroup/group_session_builder.js +39 -0
  81. package/WASignalGroup/index.js +5 -0
  82. package/WASignalGroup/keyhelper.js +17 -0
  83. package/WASignalGroup/protobufs.js +2 -0
  84. package/WASignalGroup/queue_job.js +64 -0
  85. package/WASignalGroup/sender_chain_key.js +38 -0
  86. package/WASignalGroup/sender_key_distribution_message.js +68 -0
  87. package/WASignalGroup/sender_key_message.js +79 -0
  88. package/WASignalGroup/sender_key_name.js +59 -0
  89. package/WASignalGroup/sender_key_record.js +47 -0
  90. package/WASignalGroup/sender_key_state.js +110 -0
  91. package/WASignalGroup/sender_message_key.js +30 -0
  92. package/check-node-version.js +10 -0
  93. package/lib/Defaults/baileys-version.json +3 -0
  94. package/lib/Defaults/index.d.ts +51 -0
  95. package/lib/Defaults/index.js +108 -0
  96. package/lib/Defaults/phonenumber-mcc.json +223 -0
  97. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  98. package/lib/Signal/Group/ciphertext-message.js +19 -0
  99. package/lib/Signal/Group/group-session-builder.d.ts +17 -0
  100. package/lib/Signal/Group/group-session-builder.js +72 -0
  101. package/lib/Signal/Group/group_cipher.d.ts +19 -0
  102. package/lib/Signal/Group/group_cipher.js +99 -0
  103. package/lib/Signal/Group/index.d.ts +11 -0
  104. package/lib/Signal/Group/index.js +61 -0
  105. package/lib/Signal/Group/keyhelper.d.ts +16 -0
  106. package/lib/Signal/Group/keyhelper.js +66 -0
  107. package/lib/Signal/Group/queue-job.d.ts +1 -0
  108. package/lib/Signal/Group/queue-job.js +64 -0
  109. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  110. package/lib/Signal/Group/sender-chain-key.js +39 -0
  111. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  112. package/lib/Signal/Group/sender-key-distribution-message.js +71 -0
  113. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  114. package/lib/Signal/Group/sender-key-message.js +73 -0
  115. package/lib/Signal/Group/sender-key-name.d.ts +19 -0
  116. package/lib/Signal/Group/sender-key-name.js +59 -0
  117. package/lib/Signal/Group/sender-key-record.d.ts +32 -0
  118. package/lib/Signal/Group/sender-key-record.js +53 -0
  119. package/lib/Signal/Group/sender-key-record.ts +77 -0
  120. package/lib/Signal/Group/sender-key-state.d.ts +44 -0
  121. package/lib/Signal/Group/sender-key-state.js +104 -0
  122. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  123. package/lib/Signal/Group/sender-message-key.js +33 -0
  124. package/lib/Signal/libsignal.d.ts +3 -0
  125. package/lib/Signal/libsignal.js +153 -0
  126. package/lib/Socket/Client/index.d.ts +2 -0
  127. package/lib/Socket/Client/index.js +18 -0
  128. package/lib/Socket/Client/types.d.ts +15 -0
  129. package/lib/Socket/Client/types.js +14 -0
  130. package/lib/Socket/Client/websocket.d.ts +12 -0
  131. package/lib/Socket/Client/websocket.js +57 -0
  132. package/lib/Socket/business.d.ts +181 -0
  133. package/lib/Socket/business.js +259 -0
  134. package/lib/Socket/chats.d.ts +95 -0
  135. package/lib/Socket/chats.js +906 -0
  136. package/lib/Socket/community.d.ts +131 -0
  137. package/lib/Socket/community.js +369 -0
  138. package/lib/Socket/groups.d.ts +122 -0
  139. package/lib/Socket/groups.js +360 -0
  140. package/lib/Socket/index.d.ts +183 -0
  141. package/lib/Socket/index.js +10 -0
  142. package/lib/Socket/messages-recv.d.ts +170 -0
  143. package/lib/Socket/messages-recv.js +1074 -0
  144. package/lib/Socket/messages-send.d.ts +161 -0
  145. package/lib/Socket/messages-send.js +982 -0
  146. package/lib/Socket/newsletter.d.ts +140 -0
  147. package/lib/Socket/newsletter.js +242 -0
  148. package/lib/Socket/socket.d.ts +43 -0
  149. package/lib/Socket/socket.js +749 -0
  150. package/lib/Socket/usync.d.ts +36 -0
  151. package/lib/Socket/usync.js +71 -0
  152. package/lib/Store/index.d.ts +4 -0
  153. package/lib/Store/index.js +20 -0
  154. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  155. package/lib/Store/make-cache-manager-store.js +77 -0
  156. package/lib/Store/make-in-memory-store.d.ts +117 -0
  157. package/lib/Store/make-in-memory-store.js +420 -0
  158. package/lib/Store/make-ordered-dictionary.d.ts +12 -0
  159. package/lib/Store/make-ordered-dictionary.js +83 -0
  160. package/lib/Store/object-repository.d.ts +10 -0
  161. package/lib/Store/object-repository.js +28 -0
  162. package/lib/Types/Auth.d.ts +103 -0
  163. package/lib/Types/Auth.js +2 -0
  164. package/lib/Types/Call.d.ts +13 -0
  165. package/lib/Types/Call.js +2 -0
  166. package/lib/Types/Chat.d.ts +115 -0
  167. package/lib/Types/Chat.js +6 -0
  168. package/lib/Types/Contact.d.ts +35 -0
  169. package/lib/Types/Contact.js +2 -0
  170. package/lib/Types/Events.d.ts +208 -0
  171. package/lib/Types/Events.js +2 -0
  172. package/lib/Types/GroupMetadata.d.ts +81 -0
  173. package/lib/Types/GroupMetadata.js +2 -0
  174. package/lib/Types/Label.d.ts +46 -0
  175. package/lib/Types/Label.js +28 -0
  176. package/lib/Types/LabelAssociation.d.ts +29 -0
  177. package/lib/Types/LabelAssociation.js +10 -0
  178. package/lib/Types/Message.d.ts +480 -0
  179. package/lib/Types/Message.js +9 -0
  180. package/lib/Types/MexUpdates.d.ts +9 -0
  181. package/lib/Types/MexUpdates.js +18 -0
  182. package/lib/Types/Newsletter.d.ts +92 -0
  183. package/lib/Types/Newsletter.js +33 -0
  184. package/lib/Types/Product.d.ts +78 -0
  185. package/lib/Types/Product.js +2 -0
  186. package/lib/Types/Signal.d.ts +57 -0
  187. package/lib/Types/Signal.js +2 -0
  188. package/lib/Types/Socket.d.ts +116 -0
  189. package/lib/Types/Socket.js +2 -0
  190. package/lib/Types/State.d.ts +27 -0
  191. package/lib/Types/State.js +2 -0
  192. package/lib/Types/USync.d.ts +25 -0
  193. package/lib/Types/USync.js +2 -0
  194. package/lib/Types/index.d.ts +70 -0
  195. package/lib/Types/index.js +42 -0
  196. package/lib/Utils/auth-utils.d.ts +18 -0
  197. package/lib/Utils/auth-utils.js +198 -0
  198. package/lib/Utils/baileys-event-stream.d.ts +16 -0
  199. package/lib/Utils/baileys-event-stream.js +64 -0
  200. package/lib/Utils/business.d.ts +22 -0
  201. package/lib/Utils/business.js +243 -0
  202. package/lib/Utils/chat-utils.d.ts +72 -0
  203. package/lib/Utils/chat-utils.js +762 -0
  204. package/lib/Utils/crypto.d.ts +40 -0
  205. package/lib/Utils/crypto.js +150 -0
  206. package/lib/Utils/decode-wa-message.d.ts +252 -0
  207. package/lib/Utils/decode-wa-message.js +232 -0
  208. package/lib/Utils/event-buffer.d.ts +35 -0
  209. package/lib/Utils/event-buffer.js +539 -0
  210. package/lib/Utils/generics.d.ts +96 -0
  211. package/lib/Utils/generics.js +553 -0
  212. package/lib/Utils/history.d.ts +29 -0
  213. package/lib/Utils/history.js +109 -0
  214. package/lib/Utils/index.d.ts +19 -0
  215. package/lib/Utils/index.js +35 -0
  216. package/lib/Utils/link-preview.d.ts +21 -0
  217. package/lib/Utils/link-preview.js +112 -0
  218. package/lib/Utils/logger.d.ts +11 -0
  219. package/lib/Utils/logger.js +7 -0
  220. package/lib/Utils/lt-hash.d.ts +12 -0
  221. package/lib/Utils/lt-hash.js +53 -0
  222. package/lib/Utils/make-mutex.d.ts +7 -0
  223. package/lib/Utils/make-mutex.js +45 -0
  224. package/lib/Utils/messages-media.d.ts +104 -0
  225. package/lib/Utils/messages-media.js +751 -0
  226. package/lib/Utils/messages.d.ts +80 -0
  227. package/lib/Utils/messages.js +1741 -0
  228. package/lib/Utils/noise-handler.d.ts +19 -0
  229. package/lib/Utils/noise-handler.js +150 -0
  230. package/lib/Utils/process-message.d.ts +41 -0
  231. package/lib/Utils/process-message.js +391 -0
  232. package/lib/Utils/signal.d.ts +33 -0
  233. package/lib/Utils/signal.js +154 -0
  234. package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
  235. package/lib/Utils/use-mongo-file-auth-state.js +75 -0
  236. package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
  237. package/lib/Utils/use-multi-file-auth-state.js +123 -0
  238. package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
  239. package/lib/Utils/use-single-file-auth-state.js +75 -0
  240. package/lib/Utils/validate-connection.d.ts +10 -0
  241. package/lib/Utils/validate-connection.js +174 -0
  242. package/lib/WABinary/constants.d.ts +27 -0
  243. package/lib/WABinary/constants.js +45 -0
  244. package/lib/WABinary/decode.d.ts +6 -0
  245. package/lib/WABinary/decode.js +255 -0
  246. package/lib/WABinary/encode.d.ts +2 -0
  247. package/lib/WABinary/encode.js +243 -0
  248. package/lib/WABinary/generic-utils.d.ts +16 -0
  249. package/lib/WABinary/generic-utils.js +125 -0
  250. package/lib/WABinary/index.d.ts +5 -0
  251. package/lib/WABinary/index.js +21 -0
  252. package/lib/WABinary/jid-utils.d.ts +34 -0
  253. package/lib/WABinary/jid-utils.js +73 -0
  254. package/lib/WABinary/types.d.ts +18 -0
  255. package/lib/WABinary/types.js +2 -0
  256. package/lib/WAM/BinaryInfo.d.ts +16 -0
  257. package/lib/WAM/BinaryInfo.js +14 -0
  258. package/lib/WAM/constants.d.ts +39 -0
  259. package/lib/WAM/constants.js +15362 -0
  260. package/lib/WAM/encode.d.ts +2 -0
  261. package/lib/WAM/encode.js +156 -0
  262. package/lib/WAM/index.d.ts +3 -0
  263. package/lib/WAM/index.js +19 -0
  264. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
  265. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
  266. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
  267. package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
  268. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
  269. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
  270. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  271. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
  272. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
  273. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
  274. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  275. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
  276. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  277. package/lib/WAUSync/Protocols/index.js +22 -0
  278. package/lib/WAUSync/USyncQuery.d.ts +28 -0
  279. package/lib/WAUSync/USyncQuery.js +88 -0
  280. package/lib/WAUSync/USyncUser.d.ts +12 -0
  281. package/lib/WAUSync/USyncUser.js +27 -0
  282. package/lib/WAUSync/index.d.ts +3 -0
  283. package/lib/WAUSync/index.js +19 -0
  284. package/lib/index.d.ts +13 -0
  285. package/lib/index.js +45 -0
  286. package/package.json +63 -0
@@ -0,0 +1,553 @@
1
+ "use strict"
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k
4
+ var desc = Object.getOwnPropertyDescriptor(m, k)
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k] } }
7
+ }
8
+ Object.defineProperty(o, k2, desc)
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k
11
+ o[k2] = m[k]
12
+ }))
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v })
15
+ }) : function(o, v) {
16
+ o["default"] = v
17
+ })
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod
20
+ var result = {}
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k)
22
+ __setModuleDefault(result, mod)
23
+ return result
24
+ }
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod }
27
+ }
28
+ Object.defineProperty(exports, "__esModule", { value: true })
29
+ const boom_1 = require("@hapi/boom")
30
+ const axios_1 = __importDefault(require("axios"))
31
+ const crypto_1 = require("crypto")
32
+ const os_1 = require("os")
33
+ const WAProto_1 = require("../../WAProto")
34
+ const baileys_version_json_1 = require("../Defaults/baileys-version.json")
35
+ const Types_1 = require("../Types")
36
+ const WABinary_1 = require("../WABinary")
37
+ const COMPANION_PLATFORM_MAP = {
38
+ 'Chrome': '49',
39
+ 'Edge': '50',
40
+ 'Firefox': '51',
41
+ 'Opera': '53',
42
+ 'Safari': '54',
43
+ 'Brave': '1.79.112',
44
+ 'Vivaldi': '6.2.3105.58',
45
+ 'Tor': '12.5.3',
46
+ 'Yandex': '23.7.1',
47
+ 'Falkon': '22.08.3',
48
+ 'Epiphany': '44.2'
49
+ }
50
+ const PLATFORM_MAP = {
51
+ 'aix': 'AIX',
52
+ 'darwin': 'Mac OS',
53
+ 'win32': 'Windows',
54
+ 'android': 'Android',
55
+ 'freebsd': 'FreeBSD',
56
+ 'openbsd': 'OpenBSD',
57
+ 'sunos': 'Solaris',
58
+ 'linux': 'Linux',
59
+ 'ubuntu': 'Ubuntu',
60
+ 'ios': 'iOS',
61
+ 'baileys': 'Baileys',
62
+ 'chromeos': 'Chrome OS',
63
+ 'tizen': 'Tizen',
64
+ 'watchos': 'watchOS',
65
+ 'wearos': 'Wear OS',
66
+ 'harmonyos': 'HarmonyOS',
67
+ 'kaios': 'KaiOS',
68
+ 'smarttv': 'Smart TV',
69
+ 'raspberrypi': 'Raspberry Pi OS',
70
+ 'symbian': 'Symbian',
71
+ 'blackberry': 'Blackberry OS',
72
+ 'windowsphone': 'Windows Phone'
73
+ }
74
+ const PLATFORM_VERSIONS = {
75
+ 'ubuntu': '22.04.4',
76
+ 'darwin': '14.4.1',
77
+ 'win32': '10.0.22631',
78
+ 'android': '14.0.0',
79
+ 'freebsd': '13.2',
80
+ 'openbsd': '7.3',
81
+ 'sunos': '11',
82
+ 'linux': '6.5',
83
+ 'ios': '18.2',
84
+ 'baileys': '6.5.0',
85
+ 'chromeos': '117.0.5938.132',
86
+ 'tizen': '6.5',
87
+ 'watchos': '10.1',
88
+ 'wearos': '4.1',
89
+ 'harmonyos': '4.0.0',
90
+ 'kaios': '3.1',
91
+ 'smarttv': '23.3.1',
92
+ 'raspberrypi': '11 (Bullseye)',
93
+ 'symbian': '3',
94
+ 'blackberry': '10.3.3',
95
+ 'windowsphone': '8.1'
96
+ }
97
+ const Browsers = {
98
+ ubuntu: (browser) => {
99
+ return [PLATFORM_MAP['ubuntu'], browser, PLATFORM_VERSIONS['ubuntu']]
100
+ },
101
+ macOS: (browser) => {
102
+ return [PLATFORM_MAP['darwin'], browser, PLATFORM_VERSIONS['darwin']]
103
+ },
104
+ windows: (browser) => {
105
+ return [PLATFORM_MAP['win32'], browser, PLATFORM_VERSIONS['win32']]
106
+ },
107
+ linux: (browser) => {
108
+ return [PLATFORM_MAP['linux'], browser, PLATFORM_VERSIONS['linux']]
109
+ },
110
+ solaris: (browser) => {
111
+ return [PLATFORM_MAP['sunos'], browser, PLATFORM_VERSIONS['sunos']]
112
+ },
113
+ baileys: (browser) => {
114
+ return [PLATFORM_MAP['baileys'], browser, PLATFORM_VERSIONS['baileys']]
115
+ },
116
+ android: (browser) => {
117
+ return [PLATFORM_MAP['android'], browser, PLATFORM_VERSIONS['android']]
118
+ },
119
+ iOS: (browser) => {
120
+ return [PLATFORM_MAP['ios'], browser, PLATFORM_VERSIONS['ios']]
121
+ },
122
+ kaiOS: (browser) => {
123
+ return [PLATFORM_MAP['kaios'], browser, PLATFORM_VERSIONS['kaios']]
124
+ },
125
+ chromeOS: (browser) => {
126
+ return [PLATFORM_MAP['chromeos'], browser, PLATFORM_VERSIONS['chromeos']]
127
+ },
128
+ appropriate: (browser) => {
129
+ const platform = os_1.platform()
130
+ const platformName = PLATFORM_MAP[platform] || 'Unknown OS'
131
+ return [platformName, browser, PLATFORM_VERSIONS[platform] || 'latest']
132
+ },
133
+ custom: (platform, browser, version) => {
134
+ const platformName = PLATFORM_MAP[platform.toLowerCase()] || platform
135
+ return [platformName, browser, version || PLATFORM_VERSIONS[platform] || 'latest']
136
+ }
137
+ }
138
+ const IZUMI = async () => {
139
+ try {
140
+ const { data } = await axios_1.default.get('https://raw.githubusercontent.com/Itsukichann/database/refs/heads/main/itsuki.json', {
141
+ responseType: 'json'
142
+ })
143
+ if (Array.isArray(data)) {
144
+ const naruyaizumi = data[Math.floor(Math.random() * data.length)]
145
+ return naruyaizumi
146
+ } else {
147
+ throw new boom_1.Boom('Data is not in array format.')
148
+ }
149
+ } catch (error) {
150
+ throw new boom_1.Boom(error.message)
151
+ }
152
+ }
153
+ const BufferJSON = {
154
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
155
+ replacer: (k, value) => {
156
+ if (Buffer.isBuffer(value) || value instanceof Uint8Array || value?.type === 'Buffer') {
157
+ return { type: 'Buffer', data: Buffer.from(value?.data || value).toString('base64') }
158
+ }
159
+ return value
160
+ },
161
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
162
+ reviver: (_, value) => {
163
+ if (typeof value === 'object' && !!value && (value.buffer === true || value.type === 'Buffer')) {
164
+ const val = value.data || value.value
165
+ return typeof val === 'string' ? Buffer.from(val, 'base64') : Buffer.from(val || [])
166
+ }
167
+ return value
168
+ }
169
+ }
170
+ const getPlatformId = (browser) => {
171
+ const platformType = WAProto_1.proto.DeviceProps.PlatformType[browser.toUpperCase()]
172
+ return platformType ? platformType.toString() : '1'
173
+ }
174
+ const getKeyAuthor = (key, meId = 'me') => {
175
+ return key?.fromMe ? meId : key?.participant || key?.remoteJid || ''
176
+ }
177
+ const writeRandomPadMax16 = (msg) => {
178
+ const pad = crypto_1.randomBytes(1)
179
+ pad[0] &= 0xf
180
+ if (!pad[0]) {
181
+ pad[0] = 0xf
182
+ }
183
+ return Buffer.concat([msg, Buffer.alloc(pad[0], pad[0])])
184
+ }
185
+ const unpadRandomMax16 = (e) => {
186
+ const t = new Uint8Array(e)
187
+ if (0 === t.length) {
188
+ throw new Error('unpadPkcs7 given empty bytes')
189
+ }
190
+ var r = t[t.length - 1]
191
+ if (r > t.length) {
192
+ throw new Error(`unpad given ${t.length} bytes, but pad is ${r}`)
193
+ }
194
+ return new Uint8Array(t.buffer, t.byteOffset, t.length - r)
195
+ }
196
+ const encodeWAMessage = (message) => {
197
+ return writeRandomPadMax16(WAProto_1.proto.Message.encode(message).finish())
198
+ }
199
+ const encodeNewsletterMessage = (message) => {
200
+ return WAProto_1.proto.Message.encode(message).finish()
201
+ }
202
+ const generateRegistrationId = () => {
203
+ return Uint16Array.from(crypto_1.randomBytes(2))[0] & 16383
204
+ }
205
+ const encodeBigEndian = (e, t = 4) => {
206
+ let r = e
207
+ const a = new Uint8Array(t)
208
+ for (let i = t - 1; i >= 0; i--) {
209
+ a[i] = 255 & r
210
+ r >>>= 8
211
+ }
212
+ return a
213
+ }
214
+ const toNumber = (t) => ((typeof t === 'object' && t) ? ('toNumber' in t ? t.toNumber() : t.low) : t || 0)
215
+ /** unix timestamp of a date in seconds */
216
+ const unixTimestampSeconds = (date = new Date()) => Math.floor(date.getTime() / 1000)
217
+ const debouncedTimeout = (intervalMs = 1000, task) => {
218
+ let timeout
219
+ return {
220
+ start: (newIntervalMs, newTask) => {
221
+ task = newTask || task
222
+ intervalMs = newIntervalMs || intervalMs
223
+ timeout && clearTimeout(timeout)
224
+ timeout = setTimeout(() => task?.(), intervalMs)
225
+ },
226
+ cancel: () => {
227
+ timeout && clearTimeout(timeout)
228
+ timeout = undefined
229
+ },
230
+ setTask: (newTask) => task = newTask,
231
+ setInterval: (newInterval) => intervalMs = newInterval
232
+ }
233
+ }
234
+ const delay = (ms) => {
235
+ return delayCancellable(ms).delay
236
+ }
237
+ const delayCancellable = (ms) => {
238
+ const stack = new Error().stack
239
+ let timeout
240
+ let reject
241
+ const delay = new Promise((resolve, _reject) => {
242
+ timeout = setTimeout(resolve, ms)
243
+ reject = _reject
244
+ })
245
+ const cancel = () => {
246
+ clearTimeout(timeout)
247
+ reject(new boom_1.Boom('Cancelled', {
248
+ statusCode: 500,
249
+ data: {
250
+ stack
251
+ }
252
+ }))
253
+ }
254
+ return { delay, cancel }
255
+ }
256
+ async function promiseTimeout(ms, promise) {
257
+ if (!ms) {
258
+ return new Promise(promise)
259
+ }
260
+ const stack = new Error().stack
261
+ // Create a promise that rejects in <ms> milliseconds
262
+ const { delay, cancel } = delayCancellable(ms)
263
+ const p = new Promise((resolve, reject) => {
264
+ delay.then(() => reject(new boom_1.Boom('Timed Out', {
265
+ statusCode: Types_1.DisconnectReason.timedOut,
266
+ data: {
267
+ stack
268
+ }
269
+ }))).catch(err => reject(err))
270
+ promise(resolve, reject)
271
+ }).finally(cancel)
272
+ return p
273
+ }
274
+ const generateMessageID = (userId) => {
275
+ const data = Buffer.alloc(8 + 20 + 16);
276
+ data.writeBigUInt64BE(BigInt(Math.floor(Date.now() / 1000)));
277
+ if (userId) {
278
+ const id = (0, WABinary_1.jidDecode)(userId);
279
+ if (id === null || id === void 0 ? void 0 : id.user) {
280
+ data.write(id.user, 8);
281
+ data.write('@c.us', 8 + id.user.length);
282
+ }
283
+ }
284
+ const random = (0, crypto_1.randomBytes)(16);
285
+ random.copy(data, 28);
286
+ const sha = asciiDecode([ 83, 65, 78, 75, 65, 45 ]);
287
+ const hash = (0, crypto_1.createHash)('sha256').update(data).digest();
288
+ return sha + crypto_1.randomBytes(5).toString('hex').toUpperCase();
289
+ };
290
+ exports.generateMessageID = generateMessageID;
291
+ function bindWaitForEvent(ev, event) {
292
+ return async (check, timeoutMs) => {
293
+ let listener
294
+ let closeListener
295
+ await (promiseTimeout(timeoutMs, (resolve, reject) => {
296
+ closeListener = ({ connection, lastDisconnect }) => {
297
+ if (connection === 'close') {
298
+ reject((lastDisconnect?.error)
299
+ || new boom_1.Boom('Connection Closed', { statusCode: Types_1.DisconnectReason.connectionClosed }))
300
+ }
301
+ }
302
+ ev.on('connection.update', closeListener)
303
+ listener = async (update) => {
304
+ if (await check(update)) {
305
+ resolve()
306
+ }
307
+ }
308
+ ev.on(event, listener)
309
+ }).finally(() => {
310
+ ev.off(event, listener)
311
+ ev.off('connection.update', closeListener)
312
+ }))
313
+ }
314
+ }
315
+ const bindWaitForConnectionUpdate = (ev) => {
316
+ return bindWaitForEvent(ev, 'connection.update')
317
+ }
318
+ const printQRIfNecessaryListener = (ev, logger) => {
319
+ ev.on('connection.update', async ({ qr }) => {
320
+ if (qr) {
321
+ const QR = await Promise.resolve().then(() => __importStar(require('qrcode-terminal'))).then(m => m.default || m)
322
+ .catch(() => {
323
+ logger.error('QR code terminal not added as dependency')
324
+ })
325
+ QR?.generate(qr, { small: true })
326
+ }
327
+ })
328
+ }
329
+ /**
330
+ * utility that fetches latest baileys version from the master branch.
331
+ * Use to ensure your WA connection is always on the latest version
332
+ */
333
+ const fetchLatestBaileysVersion = async (options = {}) => {
334
+ const URL = 'https://raw.githubusercontent.com/Itsukichann/Baileys/refs/heads/master/lib/Defaults/baileys-version.json'
335
+ try {
336
+ const result = await axios_1.default.get(URL, {
337
+ ...options,
338
+ responseType: 'json'
339
+ })
340
+ return {
341
+ version: result.data.version,
342
+ isLatest: true
343
+ }
344
+ }
345
+ catch (error) {
346
+ return {
347
+ version: baileys_version_json_1.version,
348
+ isLatest: false,
349
+ error
350
+ }
351
+ }
352
+ }
353
+ /**
354
+ * A utility that fetches the latest web version of whatsapp.
355
+ * Use to ensure your WA connection is always on the latest version
356
+ */
357
+ const fetchLatestWaWebVersion = async (options) => {
358
+ try {
359
+ const { data } = await axios_1.default.get('https://web.whatsapp.com/sw.js', {
360
+ ...options,
361
+ responseType: 'json'
362
+ })
363
+ const regex = /\\?"client_revision\\?":\s*(\d+)/
364
+ const match = data.match(regex)
365
+ if (!match?.match[1]) {
366
+ return {
367
+ version: baileys_version_json_1.version,
368
+ isLatest: false,
369
+ error: {
370
+ message: 'Could not find client revision in the fetched content'
371
+ }
372
+ }
373
+ }
374
+ const clientRevision = match[1]
375
+ return {
376
+ version: [2, 3000, +clientRevision],
377
+ isLatest: true
378
+ }
379
+ }
380
+ catch (error) {
381
+ return {
382
+ version: baileys_version_json_1.version,
383
+ isLatest: false,
384
+ error
385
+ }
386
+ }
387
+ }
388
+ /** unique message tag prefix for MD clients */
389
+ const generateMdTagPrefix = () => {
390
+ const bytes = crypto_1.randomBytes(4)
391
+ return `${bytes.readUInt16BE()}.${bytes.readUInt16BE(2)}-`
392
+ }
393
+ const STATUS_MAP = {
394
+ 'sender': WAProto_1.proto.WebMessageInfo.Status.SERVER_ACK,
395
+ 'played': WAProto_1.proto.WebMessageInfo.Status.PLAYED,
396
+ 'read': WAProto_1.proto.WebMessageInfo.Status.READ,
397
+ 'read-self': WAProto_1.proto.WebMessageInfo.Status.READ
398
+ }
399
+ /**
400
+ * Given a type of receipt, returns what the new status of the message should be
401
+ * @param type type from receipt
402
+ */
403
+ const getStatusFromReceiptType = (type) => {
404
+ const status = STATUS_MAP[type]
405
+ if (typeof type === 'undefined') {
406
+ return WAProto_1.proto.WebMessageInfo.Status.DELIVERY_ACK
407
+ }
408
+ return status
409
+ }
410
+ const CODE_MAP = {
411
+ conflict: Types_1.DisconnectReason.connectionReplaced
412
+ }
413
+ /**
414
+ * Stream errors generally provide a reason, map that to a baileys DisconnectReason
415
+ * @param reason the string reason given, eg. "conflict"
416
+ */
417
+ const getErrorCodeFromStreamError = (node) => {
418
+ const [reasonNode] = WABinary_1.getAllBinaryNodeChildren(node)
419
+ let reason = reasonNode?.tag || 'unknown'
420
+ const statusCode = +(node.attrs.code || CODE_MAP[reason] || Types_1.DisconnectReason.badSession)
421
+ if (statusCode === Types_1.DisconnectReason.restartRequired) {
422
+ reason = 'restart required'
423
+ }
424
+ return {
425
+ reason,
426
+ statusCode
427
+ }
428
+ }
429
+ const getCallStatusFromNode = ({ tag, attrs }) => {
430
+ let status
431
+ switch (tag) {
432
+ case 'offer':
433
+ case 'offer_notice':
434
+ status = 'offer'
435
+ break
436
+ case 'terminate':
437
+ if (attrs.reason === 'timeout') {
438
+ status = 'timeout'
439
+ }
440
+ else {
441
+ //fired when accepted/rejected/timeout/caller hangs up
442
+ status = 'terminate'
443
+ }
444
+ break
445
+ case 'reject':
446
+ status = 'reject'
447
+ break
448
+ case 'accept':
449
+ status = 'accept'
450
+ break
451
+ default:
452
+ status = 'ringing'
453
+ break
454
+ }
455
+ return status
456
+ }
457
+ const getCodeFromWSError = (error) => {
458
+ let statusCode = 500
459
+ if (error?.message?.includes('Unexpected server response: ')) {
460
+ const code = +(error?.message.slice('Unexpected server response: '.length))
461
+ if (!Number.isNaN(code) && code >= 400) {
462
+ statusCode = code
463
+ }
464
+ }
465
+ else if (error?.code?.startsWith('E') || error?.message?.includes('time out')) {
466
+ statusCode = 408
467
+ }
468
+ return statusCode
469
+ }
470
+ /**
471
+ * Is the given platform WA business
472
+ * @param platform AuthenticationCreds.platform
473
+ */
474
+ const isWABusinessPlatform = (platform) => {
475
+ return platform === 'smbi' || platform === 'smba'
476
+ }
477
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
478
+ function trimUndefined(obj) {
479
+ for (const key in obj) {
480
+ if (typeof obj[key] === 'undefined') {
481
+ delete obj[key]
482
+ }
483
+ }
484
+ return obj
485
+ }
486
+ function bytesToCrockford(buffer) {
487
+ let value = 0
488
+ let bitCount = 0
489
+ const crockford = []
490
+ for (const element of buffer) {
491
+ value = (value << 8) | (element & 0xff)
492
+ bitCount += 8
493
+ while (bitCount >= 5) {
494
+ crockford.push('123456789ABCDEFGHJKLMNPQRSTVWXYZ'.charAt((value >>> (bitCount - 5)) & 31))
495
+ bitCount -= 5
496
+ }
497
+ }
498
+ if (bitCount > 0) {
499
+ crockford.push('123456789ABCDEFGHJKLMNPQRSTVWXYZ'.charAt((value << (5 - bitCount)) & 31))
500
+ }
501
+ return crockford.join('')
502
+ }
503
+ const toUnicodeEscape = (text) => {
504
+ return text.split("").map(char => "\\u" + char.charCodeAt(0).toString(16).padStart(4, "0")).join("")
505
+ }
506
+ const fromUnicodeEscape = (escapedText) => {
507
+ return escapedText.replace(/\\u[\dA-Fa-f]{4}/g, match => String.fromCharCode(parseInt(match.slice(2), 16)))
508
+ }
509
+ const asciiEncode = (text) => {
510
+ var encoded = text.split("").map(c => c.charCodeAt(0))
511
+ return encoded
512
+ }
513
+ const asciiDecode = (...codes) => {
514
+ var codeArray = Array.isArray(codes[0]) ? codes[0] : codes
515
+ return codeArray.map(c => String.fromCharCode(c)).join("")
516
+ }
517
+ module.exports = {
518
+ Browsers,
519
+ IZUMI,
520
+ BufferJSON,
521
+ getPlatformId,
522
+ getKeyAuthor,
523
+ writeRandomPadMax16,
524
+ unpadRandomMax16,
525
+ encodeWAMessage,
526
+ encodeNewsletterMessage,
527
+ generateRegistrationId,
528
+ encodeBigEndian,
529
+ toNumber,
530
+ unixTimestampSeconds,
531
+ debouncedTimeout,
532
+ delay,
533
+ delayCancellable,
534
+ promiseTimeout,
535
+ generateMessageID,
536
+ bindWaitForEvent,
537
+ bindWaitForConnectionUpdate,
538
+ printQRIfNecessaryListener,
539
+ fetchLatestBaileysVersion,
540
+ fetchLatestWaWebVersion,
541
+ generateMdTagPrefix,
542
+ getStatusFromReceiptType,
543
+ getErrorCodeFromStreamError,
544
+ getCallStatusFromNode,
545
+ getCodeFromWSError,
546
+ isWABusinessPlatform,
547
+ trimUndefined,
548
+ bytesToCrockford,
549
+ toUnicodeEscape,
550
+ fromUnicodeEscape,
551
+ asciiEncode,
552
+ asciiDecode
553
+ }
@@ -0,0 +1,29 @@
1
+ import { AxiosRequestConfig } from 'axios'
2
+ import { proto } from '../../WAProto'
3
+ import { Chat, Contact } from '../Types'
4
+
5
+ export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification, options: AxiosRequestConfig<{}>) => Promise<proto.HistorySync>
6
+
7
+ export declare const processHistoryMessage: (item: proto.IHistorySync) => {
8
+ chats: Chat[]
9
+ contacts: Array<Contact & {
10
+ lid?: string
11
+ jid?: string
12
+ }>
13
+ messages: proto.IWebMessageInfo[]
14
+ syncType: proto.HistorySync.HistorySyncType
15
+ progress: number | null | undefined
16
+ }
17
+
18
+ export declare const downloadAndProcessHistorySyncNotification: (msg: proto.Message.IHistorySyncNotification, options: AxiosRequestConfig<{}>) => Promise<{
19
+ chats: Chat[]
20
+ contacts: Array<Contact & {
21
+ lid?: string
22
+ jid?: string
23
+ }>
24
+ messages: proto.IWebMessageInfo[]
25
+ syncType: proto.HistorySync.HistorySyncType
26
+ progress: number | null | undefined
27
+ }>
28
+
29
+ export declare const getHistoryMsg: (message: proto.IMessage) => proto.Message.IHistorySyncNotification | null | undefined
@@ -0,0 +1,109 @@
1
+ "use strict"
2
+
3
+ Object.defineProperty(exports, "__esModule", { value: true })
4
+
5
+ const util_1 = require("util")
6
+ const zlib_1 = require("zlib")
7
+ const WAProto_1 = require("../../WAProto")
8
+ const Types_1 = require("../Types")
9
+ const WABinary_1 = require("../WABinary")
10
+ const generics_1 = require("./generics")
11
+ const messages_1 = require("./messages")
12
+ const messages_media_1 = require("./messages-media")
13
+ const inflatePromise = util_1.promisify(zlib_1.inflate)
14
+
15
+ const downloadHistory = async (msg, options) => {
16
+ const stream = await messages_media_1.downloadContentFromMessage(msg, 'md-msg-hist', { options })
17
+ const bufferArray = []
18
+ for await (const chunk of stream) {
19
+ bufferArray.push(chunk)
20
+ }
21
+ let buffer = Buffer.concat(bufferArray)
22
+ // decompress buffer
23
+ buffer = await inflatePromise(buffer)
24
+ const syncData = WAProto_1.proto.HistorySync.decode(buffer)
25
+ return syncData
26
+ }
27
+
28
+ const processHistoryMessage = (item) => {
29
+ const messages = []
30
+ const contacts = []
31
+ const chats = []
32
+ switch (item.syncType) {
33
+ case WAProto_1.proto.HistorySync.HistorySyncType.INITIAL_BOOTSTRAP:
34
+ case WAProto_1.proto.HistorySync.HistorySyncType.RECENT:
35
+ case WAProto_1.proto.HistorySync.HistorySyncType.FULL:
36
+ case WAProto_1.proto.HistorySync.HistorySyncType.ON_DEMAND:
37
+ for (const chat of item.conversations) {
38
+ contacts.push({
39
+ id: chat.id,
40
+ name: chat.name || undefined,
41
+ lid: chat.lidJid || undefined,
42
+ jid: WABinary_1.isJidUser(chat.id) ? chat.id : undefined
43
+ })
44
+ const msgs = chat.messages || []
45
+ delete chat.messages
46
+ delete chat.archived
47
+ delete chat.muteEndTime
48
+ delete chat.pinned
49
+ for (const item of msgs) {
50
+ const message = item.message
51
+ messages.push(message)
52
+ if (!chat.messages?.length) {
53
+ // keep only the most recent message in the chat array
54
+ chat.messages = [{ message }]
55
+ }
56
+ if (!message.key.fromMe && !chat.lastMessageRecvTimestamp) {
57
+ chat.lastMessageRecvTimestamp = generics_1.toNumber(message.messageTimestamp)
58
+ }
59
+ if (message.messageStubType === Types_1.WAMessageStubType.BIZ_PRIVACY_MODE_TO_BSP
60
+ || message.messageStubType === Types_1.WAMessageStubType.BIZ_PRIVACY_MODE_TO_FB
61
+ && message.messageStubParameters?.[0]) {
62
+ contacts.push({
63
+ id: message.key.participant || message.key.remoteJid,
64
+ verifiedName: message.messageStubParameters?.[0]
65
+ })
66
+ }
67
+ }
68
+ if (WABinary_1.isJidUser(chat.id) && chat.readOnly && chat.archived) {
69
+ delete chat.readOnly
70
+ }
71
+ chats.push({ ...chat })
72
+ }
73
+ break
74
+ case WAProto_1.proto.HistorySync.HistorySyncType.PUSH_NAME:
75
+ for (const c of item.pushnames) {
76
+ contacts.push({
77
+ id: c.id,
78
+ notify: c.pushname,
79
+ jid: WABinary_1.isJidUser(c.id) ? c.id : undefined
80
+ })
81
+ }
82
+ break
83
+ }
84
+ return {
85
+ chats,
86
+ contacts,
87
+ messages,
88
+ syncType: item.syncType,
89
+ progress: item.progress
90
+ }
91
+ }
92
+
93
+ const downloadAndProcessHistorySyncNotification = async (msg, options) => {
94
+ const historyMsg = await downloadHistory(msg, options)
95
+ return processHistoryMessage(historyMsg)
96
+ }
97
+
98
+ const getHistoryMsg = (message) => {
99
+ const normalizedContent = !!message ? messages_1.normalizeMessageContent(message) : undefined
100
+ const anyHistoryMsg = normalizedContent?.protocolMessage?.historySyncNotification
101
+ return anyHistoryMsg
102
+ }
103
+
104
+ module.exports = {
105
+ downloadHistory,
106
+ processHistoryMessage,
107
+ downloadAndProcessHistorySyncNotification,
108
+ getHistoryMsg
109
+ }
@@ -0,0 +1,19 @@
1
+ export * from './generics'
2
+ export * from './decode-wa-message'
3
+ export * from './messages'
4
+ export * from './messages-media'
5
+ export * from './validate-connection'
6
+ export * from './crypto'
7
+ export * from './signal'
8
+ export * from './noise-handler'
9
+ export * from './history'
10
+ export * from './chat-utils'
11
+ export * from './lt-hash'
12
+ export * from './auth-utils'
13
+ export * from './baileys-event-stream'
14
+ export * from './use-mongo-file-auth-state'
15
+ export * from './use-single-file-auth-state'
16
+ export * from './use-multi-file-auth-state'
17
+ export * from './link-preview'
18
+ export * from './event-buffer'
19
+ export * from './process-message'