@vinzsocket/baileys 2.8.35 → 3.0.10

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 (410) hide show
  1. package/WAProto/GenerateStatics.sh +2 -2
  2. package/WAProto/WAProto.proto +1339 -493
  3. package/WAProto/fix-imports.js +75 -19
  4. package/WAProto/index.d.ts +5274 -1945
  5. package/WAProto/index.js +81079 -20694
  6. package/lib/Defaults/index.d.ts +75 -0
  7. package/lib/Defaults/index.d.ts.map +1 -0
  8. package/lib/Defaults/index.js +122 -110
  9. package/lib/Defaults/index.js.map +1 -0
  10. package/lib/Signal/Group/ciphertext-message.d.ts +10 -0
  11. package/lib/Signal/Group/ciphertext-message.d.ts.map +1 -0
  12. package/lib/Signal/Group/ciphertext-message.js +11 -18
  13. package/lib/Signal/Group/ciphertext-message.js.map +1 -0
  14. package/lib/Signal/Group/group-session-builder.d.ts +15 -0
  15. package/lib/Signal/Group/group-session-builder.d.ts.map +1 -0
  16. package/lib/Signal/Group/group-session-builder.js +27 -35
  17. package/lib/Signal/Group/group-session-builder.js.map +1 -0
  18. package/lib/Signal/Group/group_cipher.d.ts +17 -0
  19. package/lib/Signal/Group/group_cipher.d.ts.map +1 -0
  20. package/lib/Signal/Group/group_cipher.js +75 -95
  21. package/lib/Signal/Group/group_cipher.js.map +1 -0
  22. package/lib/Signal/Group/index.d.ts +12 -0
  23. package/lib/Signal/Group/index.d.ts.map +1 -0
  24. package/lib/Signal/Group/index.js +12 -79
  25. package/lib/Signal/Group/index.js.map +1 -0
  26. package/lib/Signal/Group/keyhelper.d.ts +11 -0
  27. package/lib/Signal/Group/keyhelper.d.ts.map +1 -0
  28. package/lib/Signal/Group/keyhelper.js +14 -25
  29. package/lib/Signal/Group/keyhelper.js.map +1 -0
  30. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  31. package/lib/Signal/Group/sender-chain-key.d.ts.map +1 -0
  32. package/lib/Signal/Group/sender-chain-key.js +24 -37
  33. package/lib/Signal/Group/sender-chain-key.js.map +1 -0
  34. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  35. package/lib/Signal/Group/sender-key-distribution-message.d.ts.map +1 -0
  36. package/lib/Signal/Group/sender-key-distribution-message.js +62 -61
  37. package/lib/Signal/Group/sender-key-distribution-message.js.map +1 -0
  38. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  39. package/lib/Signal/Group/sender-key-message.d.ts.map +1 -0
  40. package/lib/Signal/Group/sender-key-message.js +64 -68
  41. package/lib/Signal/Group/sender-key-message.js.map +1 -0
  42. package/lib/Signal/Group/sender-key-name.d.ts +18 -0
  43. package/lib/Signal/Group/sender-key-name.d.ts.map +1 -0
  44. package/lib/Signal/Group/sender-key-name.js +41 -47
  45. package/lib/Signal/Group/sender-key-name.js.map +1 -0
  46. package/lib/Signal/Group/sender-key-record.d.ts +31 -0
  47. package/lib/Signal/Group/sender-key-record.d.ts.map +1 -0
  48. package/lib/Signal/Group/sender-key-record.js +36 -50
  49. package/lib/Signal/Group/sender-key-record.js.map +1 -0
  50. package/lib/Signal/Group/sender-key-state.d.ts +39 -0
  51. package/lib/Signal/Group/sender-key-state.d.ts.map +1 -0
  52. package/lib/Signal/Group/sender-key-state.js +76 -96
  53. package/lib/Signal/Group/sender-key-state.js.map +1 -0
  54. package/lib/Signal/Group/sender-message-key.d.ts +12 -0
  55. package/lib/Signal/Group/sender-message-key.d.ts.map +1 -0
  56. package/lib/Signal/Group/sender-message-key.js +25 -34
  57. package/lib/Signal/Group/sender-message-key.js.map +1 -0
  58. package/lib/Signal/libsignal.d.ts +5 -0
  59. package/lib/Signal/libsignal.d.ts.map +1 -0
  60. package/lib/Signal/libsignal.js +415 -402
  61. package/lib/Signal/libsignal.js.map +1 -0
  62. package/lib/Signal/lid-mapping.d.ts +23 -0
  63. package/lib/Signal/lid-mapping.d.ts.map +1 -0
  64. package/lib/Signal/lid-mapping.js +273 -111
  65. package/lib/Signal/lid-mapping.js.map +1 -0
  66. package/lib/Socket/Client/index.d.ts +3 -0
  67. package/lib/Socket/Client/index.d.ts.map +1 -0
  68. package/lib/Socket/Client/index.js +3 -27
  69. package/lib/Socket/Client/index.js.map +1 -0
  70. package/lib/Socket/Client/types.d.ts +16 -0
  71. package/lib/Socket/Client/types.d.ts.map +1 -0
  72. package/lib/Socket/Client/types.js +10 -17
  73. package/lib/Socket/Client/types.js.map +1 -0
  74. package/lib/Socket/Client/websocket.d.ts +13 -0
  75. package/lib/Socket/Client/websocket.d.ts.map +1 -0
  76. package/lib/Socket/Client/websocket.js +53 -57
  77. package/lib/Socket/Client/websocket.js.map +1 -0
  78. package/lib/Socket/business.d.ts +217 -0
  79. package/lib/Socket/business.d.ts.map +1 -0
  80. package/lib/Socket/business.js +374 -363
  81. package/lib/Socket/business.js.map +1 -0
  82. package/lib/Socket/chats.d.ts +124 -0
  83. package/lib/Socket/chats.d.ts.map +1 -0
  84. package/lib/Socket/chats.js +1162 -1041
  85. package/lib/Socket/chats.js.map +1 -0
  86. package/lib/Socket/communities.d.ts +273 -0
  87. package/lib/Socket/communities.d.ts.map +1 -0
  88. package/lib/Socket/communities.js +418 -469
  89. package/lib/Socket/communities.js.map +1 -0
  90. package/lib/Socket/groups.d.ts +161 -0
  91. package/lib/Socket/groups.d.ts.map +1 -0
  92. package/lib/Socket/groups.js +337 -393
  93. package/lib/Socket/groups.js.map +1 -0
  94. package/lib/Socket/index.d.ts +260 -0
  95. package/lib/Socket/index.d.ts.map +1 -0
  96. package/lib/Socket/index.js +10 -20
  97. package/lib/Socket/index.js.map +1 -0
  98. package/lib/Socket/messages-recv.d.ts +203 -0
  99. package/lib/Socket/messages-recv.d.ts.map +1 -0
  100. package/lib/Socket/messages-recv.js +1738 -1394
  101. package/lib/Socket/messages-recv.js.map +1 -0
  102. package/lib/Socket/messages-send.d.ts +199 -0
  103. package/lib/Socket/messages-send.d.ts.map +1 -0
  104. package/lib/Socket/messages-send.js +1101 -1245
  105. package/lib/Socket/messages-send.js.map +1 -0
  106. package/lib/Socket/mex.d.ts +3 -0
  107. package/lib/Socket/mex.d.ts.map +1 -0
  108. package/lib/Socket/mex.js +38 -51
  109. package/lib/Socket/mex.js.map +1 -0
  110. package/lib/Socket/newsletter.d.ts +170 -0
  111. package/lib/Socket/newsletter.d.ts.map +1 -0
  112. package/lib/Socket/newsletter.js +175 -225
  113. package/lib/Socket/newsletter.js.map +1 -0
  114. package/lib/Socket/socket.d.ts +59 -0
  115. package/lib/Socket/socket.d.ts.map +1 -0
  116. package/lib/Socket/socket.js +930 -914
  117. package/lib/Socket/socket.js.map +1 -0
  118. package/lib/Types/Auth.d.ts +117 -0
  119. package/lib/Types/Auth.d.ts.map +1 -0
  120. package/lib/Types/Auth.js +2 -5
  121. package/lib/Types/Auth.js.map +1 -0
  122. package/lib/Types/Bussines.d.ts +25 -0
  123. package/lib/Types/Bussines.d.ts.map +1 -0
  124. package/lib/Types/Bussines.js +2 -5
  125. package/lib/Types/Bussines.js.map +1 -0
  126. package/lib/Types/Call.d.ts +15 -0
  127. package/lib/Types/Call.d.ts.map +1 -0
  128. package/lib/Types/Call.js +2 -5
  129. package/lib/Types/Call.js.map +1 -0
  130. package/lib/Types/Chat.d.ts +124 -0
  131. package/lib/Types/Chat.d.ts.map +1 -0
  132. package/lib/Types/Chat.js +7 -7
  133. package/lib/Types/Chat.js.map +1 -0
  134. package/lib/Types/Contact.d.ts +26 -0
  135. package/lib/Types/Contact.d.ts.map +1 -0
  136. package/lib/Types/Contact.js +2 -5
  137. package/lib/Types/Contact.js.map +1 -0
  138. package/lib/Types/Events.d.ts +256 -0
  139. package/lib/Types/Events.d.ts.map +1 -0
  140. package/lib/Types/Events.js +2 -3
  141. package/lib/Types/Events.js.map +1 -0
  142. package/lib/Types/GroupMetadata.d.ts +71 -0
  143. package/lib/Types/GroupMetadata.d.ts.map +1 -0
  144. package/lib/Types/GroupMetadata.js +2 -5
  145. package/lib/Types/GroupMetadata.js.map +1 -0
  146. package/lib/Types/Label.d.ts +47 -0
  147. package/lib/Types/Label.d.ts.map +1 -0
  148. package/lib/Types/Label.js +22 -28
  149. package/lib/Types/Label.js.map +1 -0
  150. package/lib/Types/LabelAssociation.d.ts +30 -0
  151. package/lib/Types/LabelAssociation.d.ts.map +1 -0
  152. package/lib/Types/LabelAssociation.js +4 -10
  153. package/lib/Types/LabelAssociation.js.map +1 -0
  154. package/lib/Types/Message.d.ts +320 -0
  155. package/lib/Types/Message.d.ts.map +1 -0
  156. package/lib/Types/Message.js +8 -20
  157. package/lib/Types/Message.js.map +1 -0
  158. package/lib/Types/Mex.d.ts +141 -0
  159. package/lib/Types/Mex.d.ts.map +1 -0
  160. package/lib/Types/Mex.js +37 -0
  161. package/lib/Types/Mex.js.map +1 -0
  162. package/lib/Types/Product.d.ts +79 -0
  163. package/lib/Types/Product.d.ts.map +1 -0
  164. package/lib/Types/Product.js +2 -5
  165. package/lib/Types/Product.js.map +1 -0
  166. package/lib/Types/Signal.d.ts +87 -0
  167. package/lib/Types/Signal.d.ts.map +1 -0
  168. package/lib/Types/Signal.js +2 -3
  169. package/lib/Types/Signal.js.map +1 -0
  170. package/lib/Types/Socket.d.ts +136 -0
  171. package/lib/Types/Socket.d.ts.map +1 -0
  172. package/lib/Types/Socket.js +3 -4
  173. package/lib/Types/Socket.js.map +1 -0
  174. package/lib/Types/State.d.ts +97 -0
  175. package/lib/Types/State.d.ts.map +1 -0
  176. package/lib/Types/State.js +54 -17
  177. package/lib/Types/State.js.map +1 -0
  178. package/lib/Types/USync.d.ts +26 -0
  179. package/lib/Types/USync.d.ts.map +1 -0
  180. package/lib/Types/USync.js +2 -3
  181. package/lib/Types/USync.js.map +1 -0
  182. package/lib/Types/index.d.ts +65 -0
  183. package/lib/Types/index.d.ts.map +1 -0
  184. package/lib/Types/index.js +24 -165
  185. package/lib/Types/index.js.map +1 -0
  186. package/lib/Utils/auth-utils.d.ts +24 -0
  187. package/lib/Utils/auth-utils.d.ts.map +1 -0
  188. package/lib/Utils/auth-utils.js +272 -461
  189. package/lib/Utils/auth-utils.js.map +1 -0
  190. package/lib/Utils/browser-utils.d.ts +4 -0
  191. package/lib/Utils/browser-utils.d.ts.map +1 -0
  192. package/lib/Utils/browser-utils.js +28 -0
  193. package/lib/Utils/browser-utils.js.map +1 -0
  194. package/lib/Utils/business.d.ts +23 -0
  195. package/lib/Utils/business.d.ts.map +1 -0
  196. package/lib/Utils/business.js +207 -223
  197. package/lib/Utils/business.js.map +1 -0
  198. package/lib/Utils/chat-utils.d.ts +100 -0
  199. package/lib/Utils/chat-utils.d.ts.map +1 -0
  200. package/lib/Utils/chat-utils.js +828 -803
  201. package/lib/Utils/chat-utils.js.map +1 -0
  202. package/lib/Utils/companion-reg-client-utils.d.ts +17 -0
  203. package/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
  204. package/lib/Utils/companion-reg-client-utils.js +35 -0
  205. package/lib/Utils/companion-reg-client-utils.js.map +1 -0
  206. package/lib/Utils/crypto.d.ts +37 -0
  207. package/lib/Utils/crypto.d.ts.map +1 -0
  208. package/lib/Utils/crypto.js +87 -144
  209. package/lib/Utils/crypto.js.map +1 -0
  210. package/lib/Utils/decode-wa-message.d.ts +66 -0
  211. package/lib/Utils/decode-wa-message.d.ts.map +1 -0
  212. package/lib/Utils/decode-wa-message.js +291 -262
  213. package/lib/Utils/decode-wa-message.js.map +1 -0
  214. package/lib/Utils/event-buffer.d.ts +36 -0
  215. package/lib/Utils/event-buffer.d.ts.map +1 -0
  216. package/lib/Utils/event-buffer.js +598 -560
  217. package/lib/Utils/event-buffer.js.map +1 -0
  218. package/lib/Utils/generics.d.ts +91 -0
  219. package/lib/Utils/generics.d.ts.map +1 -0
  220. package/lib/Utils/generics.js +329 -363
  221. package/lib/Utils/generics.js.map +1 -0
  222. package/lib/Utils/history.d.ts +24 -0
  223. package/lib/Utils/history.d.ts.map +1 -0
  224. package/lib/Utils/history.js +129 -96
  225. package/lib/Utils/history.js.map +1 -0
  226. package/lib/Utils/identity-change-handler.d.ts +44 -0
  227. package/lib/Utils/identity-change-handler.d.ts.map +1 -0
  228. package/lib/Utils/identity-change-handler.js +50 -0
  229. package/lib/Utils/identity-change-handler.js.map +1 -0
  230. package/lib/Utils/index.d.ts +22 -0
  231. package/lib/Utils/index.d.ts.map +1 -0
  232. package/lib/Utils/index.js +22 -236
  233. package/lib/Utils/index.js.map +1 -0
  234. package/lib/Utils/link-preview.d.ts +21 -0
  235. package/lib/Utils/link-preview.d.ts.map +1 -0
  236. package/lib/Utils/link-preview.js +69 -86
  237. package/lib/Utils/link-preview.js.map +1 -0
  238. package/lib/Utils/logger.d.ts +12 -0
  239. package/lib/Utils/logger.d.ts.map +1 -0
  240. package/lib/Utils/logger.js +3 -11
  241. package/lib/Utils/logger.js.map +1 -0
  242. package/lib/Utils/lt-hash.d.ts +8 -0
  243. package/lib/Utils/lt-hash.d.ts.map +1 -0
  244. package/lib/Utils/lt-hash.js +2 -52
  245. package/lib/Utils/lt-hash.js.map +1 -0
  246. package/lib/Utils/make-mutex.d.ts +9 -0
  247. package/lib/Utils/make-mutex.d.ts.map +1 -0
  248. package/lib/Utils/make-mutex.js +30 -43
  249. package/lib/Utils/make-mutex.js.map +1 -0
  250. package/lib/Utils/message-retry-manager.d.ts +115 -0
  251. package/lib/Utils/message-retry-manager.d.ts.map +1 -0
  252. package/lib/Utils/message-retry-manager.js +259 -162
  253. package/lib/Utils/message-retry-manager.js.map +1 -0
  254. package/lib/Utils/messages-media.d.ts +133 -0
  255. package/lib/Utils/messages-media.d.ts.map +1 -0
  256. package/lib/Utils/messages-media.js +732 -711
  257. package/lib/Utils/messages-media.js.map +1 -0
  258. package/lib/Utils/messages.d.ts +91 -0
  259. package/lib/Utils/messages.d.ts.map +1 -0
  260. package/lib/Utils/messages.js +817 -803
  261. package/lib/Utils/messages.js.map +1 -0
  262. package/lib/Utils/noise-handler.d.ts +20 -0
  263. package/lib/Utils/noise-handler.d.ts.map +1 -0
  264. package/lib/Utils/noise-handler.js +195 -168
  265. package/lib/Utils/noise-handler.js.map +1 -0
  266. package/lib/Utils/offline-node-processor.d.ts +17 -0
  267. package/lib/Utils/offline-node-processor.d.ts.map +1 -0
  268. package/lib/Utils/offline-node-processor.js +40 -0
  269. package/lib/Utils/offline-node-processor.js.map +1 -0
  270. package/lib/Utils/pre-key-manager.d.ts +28 -0
  271. package/lib/Utils/pre-key-manager.d.ts.map +1 -0
  272. package/lib/Utils/pre-key-manager.js +106 -0
  273. package/lib/Utils/pre-key-manager.js.map +1 -0
  274. package/lib/Utils/process-message.d.ts +60 -0
  275. package/lib/Utils/process-message.d.ts.map +1 -0
  276. package/lib/Utils/process-message.js +601 -424
  277. package/lib/Utils/process-message.js.map +1 -0
  278. package/lib/Utils/reporting-utils.d.ts +11 -0
  279. package/lib/Utils/reporting-utils.d.ts.map +1 -0
  280. package/lib/Utils/reporting-utils.js +258 -0
  281. package/lib/Utils/reporting-utils.js.map +1 -0
  282. package/lib/Utils/signal.d.ts +47 -0
  283. package/lib/Utils/signal.d.ts.map +1 -0
  284. package/lib/Utils/signal.js +180 -206
  285. package/lib/Utils/signal.js.map +1 -0
  286. package/lib/Utils/stanza-ack.d.ts +11 -0
  287. package/lib/Utils/stanza-ack.d.ts.map +1 -0
  288. package/lib/Utils/stanza-ack.js +38 -0
  289. package/lib/Utils/stanza-ack.js.map +1 -0
  290. package/lib/Utils/sync-action-utils.d.ts +19 -0
  291. package/lib/Utils/sync-action-utils.d.ts.map +1 -0
  292. package/lib/Utils/sync-action-utils.js +49 -0
  293. package/lib/Utils/sync-action-utils.js.map +1 -0
  294. package/lib/Utils/tc-token-utils.d.ts +37 -0
  295. package/lib/Utils/tc-token-utils.d.ts.map +1 -0
  296. package/lib/Utils/tc-token-utils.js +163 -0
  297. package/lib/Utils/tc-token-utils.js.map +1 -0
  298. package/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
  299. package/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -0
  300. package/lib/Utils/use-multi-file-auth-state.js +98 -101
  301. package/lib/Utils/use-multi-file-auth-state.js.map +1 -0
  302. package/lib/Utils/validate-connection.d.ts +11 -0
  303. package/lib/Utils/validate-connection.d.ts.map +1 -0
  304. package/lib/Utils/validate-connection.js +191 -188
  305. package/lib/Utils/validate-connection.js.map +1 -0
  306. package/lib/WABinary/constants.d.ts +28 -0
  307. package/lib/WABinary/constants.d.ts.map +1 -0
  308. package/lib/WABinary/constants.js +1295 -36
  309. package/lib/WABinary/constants.js.map +1 -0
  310. package/lib/WABinary/decode.d.ts +7 -0
  311. package/lib/WABinary/decode.d.ts.map +1 -0
  312. package/lib/WABinary/decode.js +254 -232
  313. package/lib/WABinary/decode.js.map +1 -0
  314. package/lib/WABinary/encode.d.ts +3 -0
  315. package/lib/WABinary/encode.d.ts.map +1 -0
  316. package/lib/WABinary/encode.js +208 -210
  317. package/lib/WABinary/encode.js.map +1 -0
  318. package/lib/WABinary/generic-utils.d.ts +15 -0
  319. package/lib/WABinary/generic-utils.d.ts.map +1 -0
  320. package/lib/WABinary/generic-utils.js +97 -106
  321. package/lib/WABinary/generic-utils.js.map +1 -0
  322. package/lib/WABinary/index.d.ts +6 -0
  323. package/lib/WABinary/index.d.ts.map +1 -0
  324. package/lib/WABinary/index.js +6 -60
  325. package/lib/WABinary/index.js.map +1 -0
  326. package/lib/WABinary/jid-utils.d.ts +48 -0
  327. package/lib/WABinary/jid-utils.d.ts.map +1 -0
  328. package/lib/WABinary/jid-utils.js +83 -70
  329. package/lib/WABinary/jid-utils.js.map +1 -0
  330. package/lib/WABinary/types.d.ts +19 -0
  331. package/lib/WABinary/types.d.ts.map +1 -0
  332. package/lib/WABinary/types.js +2 -4
  333. package/lib/WABinary/types.js.map +1 -0
  334. package/lib/WAM/BinaryInfo.d.ts +9 -0
  335. package/lib/WAM/BinaryInfo.d.ts.map +1 -0
  336. package/lib/WAM/BinaryInfo.js +9 -16
  337. package/lib/WAM/BinaryInfo.js.map +1 -0
  338. package/lib/WAM/constants.d.ts +40 -0
  339. package/lib/WAM/constants.d.ts.map +1 -0
  340. package/lib/WAM/constants.js +22853 -13001
  341. package/lib/WAM/constants.js.map +1 -0
  342. package/lib/WAM/encode.d.ts +3 -0
  343. package/lib/WAM/encode.d.ts.map +1 -0
  344. package/lib/WAM/encode.js +133 -133
  345. package/lib/WAM/encode.js.map +1 -0
  346. package/lib/WAM/index.d.ts +4 -0
  347. package/lib/WAM/index.d.ts.map +1 -0
  348. package/lib/WAM/index.js +4 -38
  349. package/lib/WAM/index.js.map +1 -0
  350. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +10 -0
  351. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -0
  352. package/lib/WAUSync/Protocols/USyncContactProtocol.js +50 -34
  353. package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -0
  354. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
  355. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +1 -0
  356. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +50 -61
  357. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +1 -0
  358. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
  359. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +1 -0
  360. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +25 -32
  361. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +1 -0
  362. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
  363. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +1 -0
  364. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +35 -40
  365. package/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +1 -0
  366. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
  367. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
  368. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +23 -29
  369. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
  370. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +26 -0
  371. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +1 -0
  372. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +47 -64
  373. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +1 -0
  374. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
  375. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -0
  376. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +27 -26
  377. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -0
  378. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  379. package/lib/WAUSync/Protocols/index.d.ts.map +1 -0
  380. package/lib/WAUSync/Protocols/index.js +6 -60
  381. package/lib/WAUSync/Protocols/index.js.map +1 -0
  382. package/lib/WAUSync/USyncQuery.d.ts +30 -0
  383. package/lib/WAUSync/USyncQuery.d.ts.map +1 -0
  384. package/lib/WAUSync/USyncQuery.js +94 -97
  385. package/lib/WAUSync/USyncQuery.js.map +1 -0
  386. package/lib/WAUSync/USyncUser.d.ts +17 -0
  387. package/lib/WAUSync/USyncUser.d.ts.map +1 -0
  388. package/lib/WAUSync/USyncUser.js +30 -29
  389. package/lib/WAUSync/USyncUser.js.map +1 -0
  390. package/lib/WAUSync/index.d.ts +4 -0
  391. package/lib/WAUSync/index.d.ts.map +1 -0
  392. package/lib/WAUSync/index.js +4 -38
  393. package/lib/WAUSync/index.js.map +1 -0
  394. package/lib/index.d.ts +12 -0
  395. package/lib/index.d.ts.map +1 -0
  396. package/lib/index.js +11 -114
  397. package/lib/index.js.map +1 -0
  398. package/package.json +47 -20
  399. package/README.md +0 -1315
  400. package/lib/Signal/Group/queue-job.js +0 -61
  401. package/lib/Store/index.js +0 -49
  402. package/lib/Store/make-cache-manager-store.js +0 -106
  403. package/lib/Store/make-in-memory-store.js +0 -497
  404. package/lib/Store/make-ordered-dictionary.js +0 -83
  405. package/lib/Store/object-repository.js +0 -32
  406. package/lib/Types/Newsletter.js +0 -37
  407. package/lib/Utils/baileys-event-stream.js +0 -74
  408. package/lib/Utils/extended-messages.js +0 -285
  409. package/lib/Utils/lid-resolver.js +0 -81
  410. package/lib/Utils/mention.js +0 -137
@@ -1,497 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.waMessageID = exports.waLabelAssociationKey = exports.waChatKey = exports.makeInMemoryStore = exports.default = void 0;
7
- var _module = require("module");
8
- var _index = require("../../WAProto/index.js");
9
- var _index2 = require("../Defaults/index.js");
10
- var _LabelAssociation = require("../Types/LabelAssociation.js");
11
- var _index3 = require("../Utils/index.js");
12
- var _index4 = require("../WABinary/index.js");
13
- var _makeOrderedDictionary = require("./make-ordered-dictionary.js");
14
- var _objectRepository = require("./object-repository.js");
15
- // ESM has no native `require`; this gives us one to synchronously load
16
- // optional CJS dependencies (keyed-db) only when actually needed, the
17
- // same way the original implementation lazily required it.
18
- const _require = (0, _module.createRequire)(import.meta.url);
19
- const waChatKey = pin => ({
20
- key: c => (pin ? c.pinned ? '1' : '0' : '') + (c.archived ? '0' : '1') + (c.conversationTimestamp ? c.conversationTimestamp.toString(16).padStart(8, '0') : '') + c.id,
21
- compare: (k1, k2) => k2.localeCompare(k1)
22
- });
23
- exports.waChatKey = waChatKey;
24
- const waMessageID = m => m.key.id || '';
25
- exports.waMessageID = waMessageID;
26
- const waLabelAssociationKey = exports.waLabelAssociationKey = {
27
- key: la => la.type === _LabelAssociation.LabelAssociationType.Chat ? la.chatId + la.labelId : la.chatId + la.messageId + la.labelId,
28
- compare: (k1, k2) => k2.localeCompare(k1)
29
- };
30
- const makeMessagesDictionary = () => (0, _makeOrderedDictionary.makeOrderedDictionary)(waMessageID);
31
- /**
32
- * An in-memory cache for chats, contacts, messages, group metadata, presences
33
- * and labels. Bind it to your socket's event emitter with `store.bind(sock.ev)`
34
- * to keep it updated automatically.
35
- *
36
- * Requires the optional `@adiwajshing/keyed-db` package to be installed
37
- * (`npm install @adiwajshing/keyed-db`).
38
- */
39
- const makeInMemoryStore = config => {
40
- const socket = config.socket;
41
- const chatKey = config.chatKey || waChatKey(true);
42
- const labelAssociationKey = config.labelAssociationKey || waLabelAssociationKey;
43
- const logger = config.logger || _index2.DEFAULT_CONNECTION_CONFIG.logger.child({
44
- stream: 'in-mem-store'
45
- });
46
- let KeyedDB;
47
- try {
48
- KeyedDB = _require('@adiwajshing/keyed-db').default;
49
- } catch {
50
- throw new Error('The "@adiwajshing/keyed-db" package is required to use makeInMemoryStore(). Install it with: npm install @adiwajshing/keyed-db');
51
- }
52
- const chats = new KeyedDB(chatKey, c => c.id);
53
- const messages = {};
54
- const contacts = {};
55
- const groupMetadata = {};
56
- const presences = {};
57
- const state = {
58
- connection: 'close'
59
- };
60
- const labels = new _objectRepository.ObjectRepository();
61
- const labelAssociations = new KeyedDB(labelAssociationKey, labelAssociationKey.key);
62
- const assertMessageList = jid => {
63
- if (!messages[jid]) {
64
- messages[jid] = makeMessagesDictionary();
65
- }
66
- return messages[jid];
67
- };
68
- const contactsUpsert = newContacts => {
69
- const oldContacts = new Set(Object.keys(contacts));
70
- for (const contact of newContacts) {
71
- oldContacts.delete(contact.id);
72
- contacts[contact.id] = Object.assign(contacts[contact.id] || {}, contact);
73
- }
74
- return oldContacts;
75
- };
76
- const labelsUpsert = newLabels => {
77
- for (const label of newLabels) {
78
- labels.upsertById(label.id, label);
79
- }
80
- };
81
- const getValidContacts = () => {
82
- for (const contact of Object.keys(contacts)) {
83
- if (contact.indexOf('@') < 0) {
84
- delete contacts[contact];
85
- }
86
- }
87
- return Object.keys(contacts);
88
- };
89
- /**
90
- * binds to a BaileysEventEmitter.
91
- * It listens to all events and constructs a state that you can query accurate data from.
92
- * Eg. can use the store to fetch chats, contacts, messages etc.
93
- * @param ev typically the event emitter from the socket connection
94
- */
95
- const bind = ev => {
96
- ev.on('connection.update', update => {
97
- Object.assign(state, update);
98
- });
99
- ev.on('messaging-history.set', ({
100
- chats: newChats,
101
- contacts: newContacts,
102
- messages: newMessages,
103
- isLatest
104
- }) => {
105
- if (isLatest) {
106
- chats.clear();
107
- for (const id in messages) {
108
- delete messages[id];
109
- }
110
- }
111
- const chatsAdded = chats.insertIfAbsent(...newChats).length;
112
- logger.debug({
113
- chatsAdded
114
- }, 'synced chats');
115
- const oldContacts = contactsUpsert(newContacts);
116
- if (isLatest) {
117
- for (const jid of oldContacts) {
118
- delete contacts[jid];
119
- }
120
- }
121
- logger.debug({
122
- deletedContacts: isLatest ? oldContacts.size : 0,
123
- newContacts
124
- }, 'synced contacts');
125
- for (const msg of newMessages) {
126
- const jid = msg.key.remoteJid;
127
- const list = assertMessageList(jid);
128
- list.upsert(msg, 'prepend');
129
- }
130
- logger.debug({
131
- messages: newMessages.length
132
- }, 'synced messages');
133
- });
134
- ev.on('contacts.upsert', contacts => {
135
- contactsUpsert(contacts);
136
- });
137
- ev.on('contacts.update', async updates => {
138
- for (const update of updates) {
139
- let contact;
140
- if (contacts[update.id]) {
141
- contact = contacts[update.id];
142
- } else {
143
- const validContacts = getValidContacts();
144
- const contactHashes = validContacts.map(contactId => {
145
- const {
146
- user
147
- } = (0, _index4.jidDecode)(contactId);
148
- return [contactId, (0, _index3.md5)(Buffer.from(user + 'WA_ADD_NOTIF', 'utf8')).toString('base64').slice(0, 3)];
149
- });
150
- contact = contacts[contactHashes.find(([, b]) => b === update.id)?.[0] || '']; // find contact by attrs.hash, when user is not saved as a contact
151
- }
152
- if (contact) {
153
- if (update.imgUrl === 'changed') {
154
- contact.imgUrl = socket ? await socket?.profilePictureUrl(contact.id) : undefined;
155
- } else if (update.imgUrl === 'removed') {
156
- delete contact.imgUrl;
157
- }
158
- Object.assign(contacts[contact.id], contact);
159
- } else {
160
- logger.debug({
161
- update
162
- }, 'got update for non-existant contact');
163
- }
164
- }
165
- });
166
- ev.on('chats.upsert', newChats => {
167
- chats.upsert(...newChats);
168
- });
169
- ev.on('chats.update', updates => {
170
- for (let update of updates) {
171
- const result = chats.update(update.id, chat => {
172
- if (update.unreadCount > 0) {
173
- update = {
174
- ...update
175
- };
176
- update.unreadCount = (chat.unreadCount || 0) + update.unreadCount;
177
- }
178
- Object.assign(chat, update);
179
- });
180
- if (!result) {
181
- logger.debug({
182
- update
183
- }, 'got update for non-existant chat');
184
- }
185
- }
186
- });
187
- ev.on('labels.edit', label => {
188
- if (label.deleted) {
189
- return labels.deleteById(label.id);
190
- }
191
- // WhatsApp can store only up to 20 labels
192
- if (labels.count() < 20) {
193
- return labels.upsertById(label.id, label);
194
- }
195
- logger.error('Labels count exceed');
196
- });
197
- ev.on('labels.association', ({
198
- type,
199
- association
200
- }) => {
201
- switch (type) {
202
- case 'add':
203
- labelAssociations.upsert(association);
204
- break;
205
- case 'remove':
206
- labelAssociations.delete(association);
207
- break;
208
- default:
209
- console.error(`unknown operation type [${type}]`);
210
- }
211
- });
212
- ev.on('presence.update', ({
213
- id,
214
- presences: update
215
- }) => {
216
- presences[id] = presences[id] || {};
217
- Object.assign(presences[id], update);
218
- });
219
- ev.on('chats.delete', deletions => {
220
- for (const item of deletions) {
221
- if (chats.get(item)) {
222
- chats.deleteById(item);
223
- }
224
- }
225
- });
226
- ev.on('messages.upsert', ({
227
- messages: newMessages,
228
- type
229
- }) => {
230
- switch (type) {
231
- case 'append':
232
- case 'notify':
233
- for (const msg of newMessages) {
234
- const jid = (0, _index4.jidNormalizedUser)(msg.key.remoteJid);
235
- const list = assertMessageList(jid);
236
- list.upsert(msg, 'append');
237
- if (type === 'notify') {
238
- if (!chats.get(jid)) {
239
- ev.emit('chats.upsert', [{
240
- id: jid,
241
- conversationTimestamp: (0, _index3.toNumber)(msg.messageTimestamp),
242
- unreadCount: 1
243
- }]);
244
- }
245
- }
246
- }
247
- break;
248
- }
249
- });
250
- ev.on('messages.update', updates => {
251
- for (const {
252
- update,
253
- key
254
- } of updates) {
255
- const list = assertMessageList((0, _index4.jidNormalizedUser)(key.remoteJid));
256
- if (update?.status) {
257
- const listStatus = list.get(key.id)?.status;
258
- if (listStatus && update?.status <= listStatus) {
259
- logger.debug({
260
- update,
261
- storedStatus: listStatus
262
- }, 'status stored newer then update');
263
- delete update.status;
264
- logger.debug({
265
- update
266
- }, 'new update object');
267
- }
268
- }
269
- const result = list.updateAssign(key.id, update);
270
- if (!result) {
271
- logger.debug({
272
- update
273
- }, 'got update for non-existent message');
274
- }
275
- }
276
- });
277
- ev.on('messages.delete', item => {
278
- if ('all' in item) {
279
- const list = messages[item.jid];
280
- list?.clear();
281
- } else {
282
- const jid = item.keys[0].remoteJid;
283
- const list = messages[jid];
284
- if (list) {
285
- const idSet = new Set(item.keys.map(k => k.id));
286
- list.filter(m => !idSet.has(m.key.id));
287
- }
288
- }
289
- });
290
- ev.on('groups.update', updates => {
291
- for (const update of updates) {
292
- const id = update.id;
293
- if (groupMetadata[id]) {
294
- Object.assign(groupMetadata[id], update);
295
- } else {
296
- logger.debug({
297
- update
298
- }, 'got update for non-existant group metadata');
299
- }
300
- }
301
- });
302
- ev.on('group-participants.update', ({
303
- id,
304
- participants,
305
- action
306
- }) => {
307
- const metadata = groupMetadata[id];
308
- if (metadata) {
309
- switch (action) {
310
- case 'add':
311
- metadata.participants.push(...participants.map(id => ({
312
- id,
313
- isAdmin: false,
314
- isSuperAdmin: false
315
- })));
316
- break;
317
- case 'demote':
318
- case 'promote':
319
- for (const participant of metadata.participants) {
320
- if (participants.includes(participant.id)) {
321
- participant.isAdmin = action === 'promote';
322
- }
323
- }
324
- break;
325
- case 'remove':
326
- metadata.participants = metadata.participants.filter(p => !participants.includes(p.id));
327
- break;
328
- }
329
- }
330
- });
331
- ev.on('message-receipt.update', updates => {
332
- for (const {
333
- key,
334
- receipt
335
- } of updates) {
336
- const obj = messages[key.remoteJid];
337
- const msg = obj?.get(key.id);
338
- if (msg) {
339
- (0, _index3.updateMessageWithReceipt)(msg, receipt);
340
- }
341
- }
342
- });
343
- ev.on('messages.reaction', reactions => {
344
- for (const {
345
- key,
346
- reaction
347
- } of reactions) {
348
- const obj = messages[key.remoteJid];
349
- const msg = obj?.get(key.id);
350
- if (msg) {
351
- (0, _index3.updateMessageWithReaction)(msg, reaction);
352
- }
353
- }
354
- });
355
- };
356
- const toJSON = () => ({
357
- chats,
358
- contacts,
359
- messages,
360
- labels,
361
- labelAssociations
362
- });
363
- const fromJSON = json => {
364
- chats.upsert(...json.chats);
365
- labelAssociations.upsert(...(json.labelAssociations || []));
366
- contactsUpsert(Object.values(json.contacts));
367
- labelsUpsert(Object.values(json.labels || {}));
368
- for (const jid in json.messages) {
369
- const list = assertMessageList(jid);
370
- for (const msg of json.messages[jid]) {
371
- list.upsert(_index.proto.WebMessageInfo.create(msg), 'append');
372
- }
373
- }
374
- };
375
- return {
376
- chats,
377
- contacts,
378
- messages,
379
- groupMetadata,
380
- state,
381
- presences,
382
- labels,
383
- labelAssociations,
384
- bind,
385
- /** loads messages from the store, if not found -- uses the legacy connection */
386
- loadMessages: async (jid, count, cursor) => {
387
- const list = assertMessageList(jid);
388
- const mode = !cursor || 'before' in cursor ? 'before' : 'after';
389
- const cursorKey = cursor ? 'before' in cursor ? cursor.before : cursor.after : undefined;
390
- const cursorValue = cursorKey ? list.get(cursorKey.id) : undefined;
391
- let messages;
392
- if (list && mode === 'before' && (!cursorKey || cursorValue)) {
393
- if (cursorValue) {
394
- const msgIdx = list.array.findIndex(m => m.key.id === cursorKey?.id);
395
- messages = list.array.slice(0, msgIdx);
396
- } else {
397
- messages = list.array;
398
- }
399
- const diff = count - messages.length;
400
- if (diff < 0) {
401
- messages = messages.slice(-count); // get the last X messages
402
- }
403
- } else {
404
- messages = [];
405
- }
406
- return messages;
407
- },
408
- /**
409
- * Get all available labels for profile
410
- *
411
- * Keep in mind that the list is formed from predefined tags and tags
412
- * that were "caught" during their editing.
413
- */
414
- getLabels: () => {
415
- return labels;
416
- },
417
- /**
418
- * Get labels for chat
419
- *
420
- * @returns Label IDs
421
- **/
422
- getChatLabels: chatId => {
423
- return labelAssociations.filter(la => la.chatId === chatId).all();
424
- },
425
- /**
426
- * Get labels for message
427
- *
428
- * @returns Label IDs
429
- **/
430
- getMessageLabels: messageId => {
431
- const associations = labelAssociations.filter(la => la.messageId === messageId).all();
432
- return associations.map(({
433
- labelId
434
- }) => labelId);
435
- },
436
- loadMessage: async (jid, id) => messages[jid]?.get(id),
437
- mostRecentMessage: async jid => {
438
- const message = messages[jid]?.array.slice(-1)[0];
439
- return message;
440
- },
441
- fetchImageUrl: async (jid, sock) => {
442
- const contact = contacts[jid];
443
- if (!contact) {
444
- return sock?.profilePictureUrl(jid);
445
- }
446
- if (typeof contact.imgUrl === 'undefined') {
447
- contact.imgUrl = await sock?.profilePictureUrl(jid);
448
- }
449
- return contact.imgUrl;
450
- },
451
- fetchGroupMetadata: async (jid, sock) => {
452
- if (!groupMetadata[jid]) {
453
- const metadata = await sock?.groupMetadata(jid);
454
- if (metadata) {
455
- groupMetadata[jid] = metadata;
456
- }
457
- }
458
- return groupMetadata[jid];
459
- },
460
- fetchMessageReceipts: async ({
461
- remoteJid,
462
- id
463
- }) => {
464
- const list = messages[remoteJid];
465
- const msg = list?.get(id);
466
- return msg?.userReceipt;
467
- },
468
- toJSON,
469
- fromJSON,
470
- writeToFile: path => {
471
- // require fs here so that in case "fs" is not available -- the app does not crash
472
- const {
473
- writeFileSync
474
- } = _require('fs');
475
- writeFileSync(path, JSON.stringify(toJSON()));
476
- },
477
- readFromFile: path => {
478
- // require fs here so that in case "fs" is not available -- the app does not crash
479
- const {
480
- readFileSync,
481
- existsSync
482
- } = _require('fs');
483
- if (existsSync(path)) {
484
- logger.debug({
485
- path
486
- }, 'reading from file');
487
- const jsonStr = readFileSync(path, {
488
- encoding: 'utf-8'
489
- });
490
- const json = JSON.parse(jsonStr);
491
- fromJSON(json);
492
- }
493
- }
494
- };
495
- };
496
- exports.makeInMemoryStore = makeInMemoryStore;
497
- var _default = exports.default = makeInMemoryStore;
@@ -1,83 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.makeOrderedDictionary = makeOrderedDictionary;
8
- function makeOrderedDictionary(idGetter) {
9
- const array = [];
10
- const dict = {};
11
- const get = id => dict[id];
12
- const update = item => {
13
- const id = idGetter(item);
14
- const idx = array.findIndex(i => idGetter(i) === id);
15
- if (idx >= 0) {
16
- array[idx] = item;
17
- dict[id] = item;
18
- }
19
- return false;
20
- };
21
- const upsert = (item, mode) => {
22
- const id = idGetter(item);
23
- if (get(id)) {
24
- update(item);
25
- } else {
26
- if (mode === 'append') {
27
- array.push(item);
28
- } else {
29
- array.splice(0, 0, item);
30
- }
31
- dict[id] = item;
32
- }
33
- };
34
- const remove = item => {
35
- const id = idGetter(item);
36
- const idx = array.findIndex(i => idGetter(i) === id);
37
- if (idx >= 0) {
38
- array.splice(idx, 1);
39
- delete dict[id];
40
- return true;
41
- }
42
- return false;
43
- };
44
- return {
45
- array,
46
- get,
47
- upsert,
48
- update,
49
- remove,
50
- updateAssign: (id, update) => {
51
- const item = get(id);
52
- if (item) {
53
- Object.assign(item, update);
54
- delete dict[id];
55
- dict[idGetter(item)] = item;
56
- return true;
57
- }
58
- return false;
59
- },
60
- clear: () => {
61
- array.splice(0, array.length);
62
- Object.keys(dict).forEach(key => {
63
- delete dict[key];
64
- });
65
- },
66
- filter: contain => {
67
- let i = 0;
68
- while (i < array.length) {
69
- if (!contain(array[i])) {
70
- delete dict[idGetter(array[i])];
71
- array.splice(i, 1);
72
- } else {
73
- i += 1;
74
- }
75
- }
76
- },
77
- toJSON: () => array,
78
- fromJSON: newItems => {
79
- array.splice(0, array.length, ...newItems);
80
- }
81
- };
82
- }
83
- var _default = exports.default = makeOrderedDictionary;
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ObjectRepository = void 0;
7
- class ObjectRepository {
8
- constructor(entities = {}) {
9
- this.entityMap = new Map(Object.entries(entities));
10
- }
11
- findById(id) {
12
- return this.entityMap.get(id);
13
- }
14
- findAll() {
15
- return Array.from(this.entityMap.values());
16
- }
17
- upsertById(id, entity) {
18
- return this.entityMap.set(id, {
19
- ...entity
20
- });
21
- }
22
- deleteById(id) {
23
- return this.entityMap.delete(id);
24
- }
25
- count() {
26
- return this.entityMap.size;
27
- }
28
- toJSON() {
29
- return this.findAll();
30
- }
31
- }
32
- exports.ObjectRepository = ObjectRepository;
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.XWAPaths = exports.QueryIds = void 0;
7
- var XWAPaths;
8
- (function (XWAPaths) {
9
- XWAPaths["xwa2_newsletter_create"] = "xwa2_newsletter_create";
10
- XWAPaths["xwa2_newsletter_subscribers"] = "xwa2_newsletter_subscribers";
11
- XWAPaths["xwa2_newsletter_view"] = "xwa2_newsletter_view";
12
- XWAPaths["xwa2_newsletter_metadata"] = "xwa2_newsletter";
13
- XWAPaths["xwa2_newsletter_admin_count"] = "xwa2_newsletter_admin";
14
- XWAPaths["xwa2_newsletter_mute_v2"] = "xwa2_newsletter_mute_v2";
15
- XWAPaths["xwa2_newsletter_unmute_v2"] = "xwa2_newsletter_unmute_v2";
16
- XWAPaths["xwa2_newsletter_follow"] = "xwa2_newsletter_follow";
17
- XWAPaths["xwa2_newsletter_unfollow"] = "xwa2_newsletter_unfollow";
18
- XWAPaths["xwa2_newsletter_change_owner"] = "xwa2_newsletter_change_owner";
19
- XWAPaths["xwa2_newsletter_demote"] = "xwa2_newsletter_demote";
20
- XWAPaths["xwa2_newsletter_delete_v2"] = "xwa2_newsletter_delete_v2";
21
- })(XWAPaths || (exports.XWAPaths = XWAPaths = {}));
22
- var QueryIds;
23
- (function (QueryIds) {
24
- QueryIds["CREATE"] = "8823471724422422";
25
- QueryIds["UPDATE_METADATA"] = "24250201037901610";
26
- QueryIds["METADATA"] = "6563316087068696";
27
- QueryIds["SUBSCRIBERS"] = "9783111038412085";
28
- QueryIds["FOLLOW"] = "7871414976211147";
29
- QueryIds["UNFOLLOW"] = "7238632346214362";
30
- QueryIds["MUTE"] = "29766401636284406";
31
- QueryIds["UNMUTE"] = "9864994326891137";
32
- QueryIds["ADMIN_COUNT"] = "7130823597031706";
33
- QueryIds["CHANGE_OWNER"] = "7341777602580933";
34
- QueryIds["DEMOTE"] = "6551828931592903";
35
- QueryIds["DELETE"] = "30062808666639665";
36
- })(QueryIds || (exports.QueryIds = QueryIds = {}));
37
- //# sourceMappingURL=Newsletter.js.map