xspacesocket 0.0.0-stage → 1.3.1

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 (477) hide show
  1. package/LICENSE +32 -0
  2. package/README.md +199 -2
  3. package/WAProto/GenerateStatics.sh +3 -0
  4. package/WAProto/WAProto.proto +5488 -0
  5. package/WAProto/fix-imports.js +85 -0
  6. package/WAProto/index.d.ts +14043 -0
  7. package/WAProto/index.js +107198 -0
  8. package/engine-requirements.js +10 -0
  9. package/lib/Defaults/index.d.ts +81 -0
  10. package/lib/Defaults/index.d.ts.map +1 -0
  11. package/lib/Defaults/index.js +146 -0
  12. package/lib/Defaults/index.js.map +1 -0
  13. package/lib/Signal/Group/ciphertext-message.d.ts +10 -0
  14. package/lib/Signal/Group/ciphertext-message.d.ts.map +1 -0
  15. package/lib/Signal/Group/ciphertext-message.js +12 -0
  16. package/lib/Signal/Group/ciphertext-message.js.map +1 -0
  17. package/lib/Signal/Group/group-session-builder.d.ts +15 -0
  18. package/lib/Signal/Group/group-session-builder.d.ts.map +1 -0
  19. package/lib/Signal/Group/group-session-builder.js +30 -0
  20. package/lib/Signal/Group/group-session-builder.js.map +1 -0
  21. package/lib/Signal/Group/group_cipher.d.ts +17 -0
  22. package/lib/Signal/Group/group_cipher.d.ts.map +1 -0
  23. package/lib/Signal/Group/group_cipher.js +82 -0
  24. package/lib/Signal/Group/group_cipher.js.map +1 -0
  25. package/lib/Signal/Group/index.d.ts +12 -0
  26. package/lib/Signal/Group/index.d.ts.map +1 -0
  27. package/lib/Signal/Group/index.js +12 -0
  28. package/lib/Signal/Group/index.js.map +1 -0
  29. package/lib/Signal/Group/keyhelper.d.ts +11 -0
  30. package/lib/Signal/Group/keyhelper.d.ts.map +1 -0
  31. package/lib/Signal/Group/keyhelper.js +18 -0
  32. package/lib/Signal/Group/keyhelper.js.map +1 -0
  33. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  34. package/lib/Signal/Group/sender-chain-key.d.ts.map +1 -0
  35. package/lib/Signal/Group/sender-chain-key.js +26 -0
  36. package/lib/Signal/Group/sender-chain-key.js.map +1 -0
  37. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  38. package/lib/Signal/Group/sender-key-distribution-message.d.ts.map +1 -0
  39. package/lib/Signal/Group/sender-key-distribution-message.js +63 -0
  40. package/lib/Signal/Group/sender-key-distribution-message.js.map +1 -0
  41. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  42. package/lib/Signal/Group/sender-key-message.d.ts.map +1 -0
  43. package/lib/Signal/Group/sender-key-message.js +66 -0
  44. package/lib/Signal/Group/sender-key-message.js.map +1 -0
  45. package/lib/Signal/Group/sender-key-name.d.ts +18 -0
  46. package/lib/Signal/Group/sender-key-name.d.ts.map +1 -0
  47. package/lib/Signal/Group/sender-key-name.js +48 -0
  48. package/lib/Signal/Group/sender-key-name.js.map +1 -0
  49. package/lib/Signal/Group/sender-key-record.d.ts +31 -0
  50. package/lib/Signal/Group/sender-key-record.d.ts.map +1 -0
  51. package/lib/Signal/Group/sender-key-record.js +41 -0
  52. package/lib/Signal/Group/sender-key-record.js.map +1 -0
  53. package/lib/Signal/Group/sender-key-state.d.ts +39 -0
  54. package/lib/Signal/Group/sender-key-state.d.ts.map +1 -0
  55. package/lib/Signal/Group/sender-key-state.js +84 -0
  56. package/lib/Signal/Group/sender-key-state.js.map +1 -0
  57. package/lib/Signal/Group/sender-message-key.d.ts +12 -0
  58. package/lib/Signal/Group/sender-message-key.d.ts.map +1 -0
  59. package/lib/Signal/Group/sender-message-key.js +26 -0
  60. package/lib/Signal/Group/sender-message-key.js.map +1 -0
  61. package/lib/Signal/libsignal.d.ts +5 -0
  62. package/lib/Signal/libsignal.d.ts.map +1 -0
  63. package/lib/Signal/libsignal.js +431 -0
  64. package/lib/Signal/libsignal.js.map +1 -0
  65. package/lib/Signal/lid-mapping.d.ts +23 -0
  66. package/lib/Signal/lid-mapping.d.ts.map +1 -0
  67. package/lib/Signal/lid-mapping.js +277 -0
  68. package/lib/Signal/lid-mapping.js.map +1 -0
  69. package/lib/Socket/Client/index.d.ts +3 -0
  70. package/lib/Socket/Client/index.d.ts.map +1 -0
  71. package/lib/Socket/Client/index.js +3 -0
  72. package/lib/Socket/Client/index.js.map +1 -0
  73. package/lib/Socket/Client/types.d.ts +16 -0
  74. package/lib/Socket/Client/types.d.ts.map +1 -0
  75. package/lib/Socket/Client/types.js +11 -0
  76. package/lib/Socket/Client/types.js.map +1 -0
  77. package/lib/Socket/Client/websocket.d.ts +13 -0
  78. package/lib/Socket/Client/websocket.d.ts.map +1 -0
  79. package/lib/Socket/Client/websocket.js +54 -0
  80. package/lib/Socket/Client/websocket.js.map +1 -0
  81. package/lib/Socket/business.d.ts +387 -0
  82. package/lib/Socket/business.d.ts.map +1 -0
  83. package/lib/Socket/business.js +379 -0
  84. package/lib/Socket/business.js.map +1 -0
  85. package/lib/Socket/channelPollVote.d.ts +44 -0
  86. package/lib/Socket/channelPollVote.d.ts.map +1 -0
  87. package/lib/Socket/channelPollVote.js +65 -0
  88. package/lib/Socket/channelPollVote.js.map +1 -0
  89. package/lib/Socket/channelSchedule.d.ts +229 -0
  90. package/lib/Socket/channelSchedule.d.ts.map +1 -0
  91. package/lib/Socket/channelSchedule.js +465 -0
  92. package/lib/Socket/channelSchedule.js.map +1 -0
  93. package/lib/Socket/channelStatus.d.ts +317 -0
  94. package/lib/Socket/channelStatus.d.ts.map +1 -0
  95. package/lib/Socket/channelStatus.js +479 -0
  96. package/lib/Socket/channelStatus.js.map +1 -0
  97. package/lib/Socket/chats.d.ts +150 -0
  98. package/lib/Socket/chats.d.ts.map +1 -0
  99. package/lib/Socket/chats.js +1313 -0
  100. package/lib/Socket/chats.js.map +1 -0
  101. package/lib/Socket/communities.d.ts +444 -0
  102. package/lib/Socket/communities.d.ts.map +1 -0
  103. package/lib/Socket/communities.js +447 -0
  104. package/lib/Socket/communities.js.map +1 -0
  105. package/lib/Socket/groupHistory.d.ts +38 -0
  106. package/lib/Socket/groupHistory.d.ts.map +1 -0
  107. package/lib/Socket/groupHistory.js +88 -0
  108. package/lib/Socket/groupHistory.js.map +1 -0
  109. package/lib/Socket/groupStatus.d.ts +28 -0
  110. package/lib/Socket/groupStatus.d.ts.map +1 -0
  111. package/lib/Socket/groupStatus.js +47 -0
  112. package/lib/Socket/groupStatus.js.map +1 -0
  113. package/lib/Socket/groups.d.ts +167 -0
  114. package/lib/Socket/groups.d.ts.map +1 -0
  115. package/lib/Socket/groups.js +354 -0
  116. package/lib/Socket/groups.js.map +1 -0
  117. package/lib/Socket/index.d.ts +430 -0
  118. package/lib/Socket/index.d.ts.map +1 -0
  119. package/lib/Socket/index.js +12 -0
  120. package/lib/Socket/index.js.map +1 -0
  121. package/lib/Socket/messages-recv.d.ts +373 -0
  122. package/lib/Socket/messages-recv.d.ts.map +1 -0
  123. package/lib/Socket/messages-recv.js +1897 -0
  124. package/lib/Socket/messages-recv.js.map +1 -0
  125. package/lib/Socket/messages-send.d.ts +404 -0
  126. package/lib/Socket/messages-send.d.ts.map +1 -0
  127. package/lib/Socket/messages-send.js +1528 -0
  128. package/lib/Socket/messages-send.js.map +1 -0
  129. package/lib/Socket/mex.d.ts +3 -0
  130. package/lib/Socket/mex.d.ts.map +1 -0
  131. package/lib/Socket/mex.js +42 -0
  132. package/lib/Socket/mex.js.map +1 -0
  133. package/lib/Socket/newsletter.d.ts +176 -0
  134. package/lib/Socket/newsletter.d.ts.map +1 -0
  135. package/lib/Socket/newsletter.js +181 -0
  136. package/lib/Socket/newsletter.js.map +1 -0
  137. package/lib/Socket/newsletterDirectory.d.ts +201 -0
  138. package/lib/Socket/newsletterDirectory.d.ts.map +1 -0
  139. package/lib/Socket/newsletterDirectory.js +291 -0
  140. package/lib/Socket/newsletterDirectory.js.map +1 -0
  141. package/lib/Socket/payment.d.ts +37 -0
  142. package/lib/Socket/payment.d.ts.map +1 -0
  143. package/lib/Socket/payment.js +124 -0
  144. package/lib/Socket/payment.js.map +1 -0
  145. package/lib/Socket/report.d.ts +70 -0
  146. package/lib/Socket/report.d.ts.map +1 -0
  147. package/lib/Socket/report.js +265 -0
  148. package/lib/Socket/report.js.map +1 -0
  149. package/lib/Socket/socket.d.ts +59 -0
  150. package/lib/Socket/socket.d.ts.map +1 -0
  151. package/lib/Socket/socket.js +982 -0
  152. package/lib/Socket/socket.js.map +1 -0
  153. package/lib/Socket/stickerPack.d.ts +29 -0
  154. package/lib/Socket/stickerPack.d.ts.map +1 -0
  155. package/lib/Socket/stickerPack.js +130 -0
  156. package/lib/Socket/stickerPack.js.map +1 -0
  157. package/lib/Socket/username.d.ts +55 -0
  158. package/lib/Socket/username.d.ts.map +1 -0
  159. package/lib/Socket/username.js +114 -0
  160. package/lib/Socket/username.js.map +1 -0
  161. package/lib/Types/Auth.d.ts +117 -0
  162. package/lib/Types/Auth.d.ts.map +1 -0
  163. package/lib/Types/Auth.js +2 -0
  164. package/lib/Types/Auth.js.map +1 -0
  165. package/lib/Types/Bussines.d.ts +25 -0
  166. package/lib/Types/Bussines.d.ts.map +1 -0
  167. package/lib/Types/Bussines.js +2 -0
  168. package/lib/Types/Bussines.js.map +1 -0
  169. package/lib/Types/Call.d.ts +15 -0
  170. package/lib/Types/Call.d.ts.map +1 -0
  171. package/lib/Types/Call.js +2 -0
  172. package/lib/Types/Call.js.map +1 -0
  173. package/lib/Types/ChannelStatus.d.ts +34 -0
  174. package/lib/Types/ChannelStatus.d.ts.map +1 -0
  175. package/lib/Types/ChannelStatus.js +2 -0
  176. package/lib/Types/ChannelStatus.js.map +1 -0
  177. package/lib/Types/Chat.d.ts +141 -0
  178. package/lib/Types/Chat.d.ts.map +1 -0
  179. package/lib/Types/Chat.js +8 -0
  180. package/lib/Types/Chat.js.map +1 -0
  181. package/lib/Types/Contact.d.ts +26 -0
  182. package/lib/Types/Contact.d.ts.map +1 -0
  183. package/lib/Types/Contact.js +2 -0
  184. package/lib/Types/Contact.js.map +1 -0
  185. package/lib/Types/Events.d.ts +260 -0
  186. package/lib/Types/Events.d.ts.map +1 -0
  187. package/lib/Types/Events.js +2 -0
  188. package/lib/Types/Events.js.map +1 -0
  189. package/lib/Types/GroupMetadata.d.ts +73 -0
  190. package/lib/Types/GroupMetadata.d.ts.map +1 -0
  191. package/lib/Types/GroupMetadata.js +2 -0
  192. package/lib/Types/GroupMetadata.js.map +1 -0
  193. package/lib/Types/Label.d.ts +47 -0
  194. package/lib/Types/Label.d.ts.map +1 -0
  195. package/lib/Types/Label.js +25 -0
  196. package/lib/Types/Label.js.map +1 -0
  197. package/lib/Types/LabelAssociation.d.ts +30 -0
  198. package/lib/Types/LabelAssociation.d.ts.map +1 -0
  199. package/lib/Types/LabelAssociation.js +7 -0
  200. package/lib/Types/LabelAssociation.js.map +1 -0
  201. package/lib/Types/Message.d.ts +466 -0
  202. package/lib/Types/Message.d.ts.map +1 -0
  203. package/lib/Types/Message.js +11 -0
  204. package/lib/Types/Message.js.map +1 -0
  205. package/lib/Types/Mex.d.ts +141 -0
  206. package/lib/Types/Mex.d.ts.map +1 -0
  207. package/lib/Types/Mex.js +37 -0
  208. package/lib/Types/Mex.js.map +1 -0
  209. package/lib/Types/Payment.d.ts +47 -0
  210. package/lib/Types/Payment.d.ts.map +1 -0
  211. package/lib/Types/Payment.js +2 -0
  212. package/lib/Types/Payment.js.map +1 -0
  213. package/lib/Types/Product.d.ts +79 -0
  214. package/lib/Types/Product.d.ts.map +1 -0
  215. package/lib/Types/Product.js +2 -0
  216. package/lib/Types/Product.js.map +1 -0
  217. package/lib/Types/Report.d.ts +219 -0
  218. package/lib/Types/Report.d.ts.map +1 -0
  219. package/lib/Types/Report.js +166 -0
  220. package/lib/Types/Report.js.map +1 -0
  221. package/lib/Types/Signal.d.ts +87 -0
  222. package/lib/Types/Signal.d.ts.map +1 -0
  223. package/lib/Types/Signal.js +2 -0
  224. package/lib/Types/Signal.js.map +1 -0
  225. package/lib/Types/Socket.d.ts +136 -0
  226. package/lib/Types/Socket.d.ts.map +1 -0
  227. package/lib/Types/Socket.js +3 -0
  228. package/lib/Types/Socket.js.map +1 -0
  229. package/lib/Types/State.d.ts +97 -0
  230. package/lib/Types/State.d.ts.map +1 -0
  231. package/lib/Types/State.js +56 -0
  232. package/lib/Types/State.js.map +1 -0
  233. package/lib/Types/StickerPack.d.ts +52 -0
  234. package/lib/Types/StickerPack.d.ts.map +1 -0
  235. package/lib/Types/StickerPack.js +2 -0
  236. package/lib/Types/StickerPack.js.map +1 -0
  237. package/lib/Types/USync.d.ts +26 -0
  238. package/lib/Types/USync.d.ts.map +1 -0
  239. package/lib/Types/USync.js +2 -0
  240. package/lib/Types/USync.js.map +1 -0
  241. package/lib/Types/Username.d.ts +19 -0
  242. package/lib/Types/Username.d.ts.map +1 -0
  243. package/lib/Types/Username.js +2 -0
  244. package/lib/Types/Username.js.map +1 -0
  245. package/lib/Types/index.d.ts +71 -0
  246. package/lib/Types/index.d.ts.map +1 -0
  247. package/lib/Types/index.js +31 -0
  248. package/lib/Types/index.js.map +1 -0
  249. package/lib/Utils/auth-utils.d.ts +24 -0
  250. package/lib/Utils/auth-utils.d.ts.map +1 -0
  251. package/lib/Utils/auth-utils.js +302 -0
  252. package/lib/Utils/auth-utils.js.map +1 -0
  253. package/lib/Utils/browser-utils.d.ts +4 -0
  254. package/lib/Utils/browser-utils.d.ts.map +1 -0
  255. package/lib/Utils/browser-utils.js +29 -0
  256. package/lib/Utils/browser-utils.js.map +1 -0
  257. package/lib/Utils/business.d.ts +23 -0
  258. package/lib/Utils/business.d.ts.map +1 -0
  259. package/lib/Utils/business.js +231 -0
  260. package/lib/Utils/business.js.map +1 -0
  261. package/lib/Utils/chat-utils.d.ts +100 -0
  262. package/lib/Utils/chat-utils.d.ts.map +1 -0
  263. package/lib/Utils/chat-utils.js +890 -0
  264. package/lib/Utils/chat-utils.js.map +1 -0
  265. package/lib/Utils/companion-reg-client-utils.d.ts +17 -0
  266. package/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
  267. package/lib/Utils/companion-reg-client-utils.js +35 -0
  268. package/lib/Utils/companion-reg-client-utils.js.map +1 -0
  269. package/lib/Utils/crypto.d.ts +37 -0
  270. package/lib/Utils/crypto.d.ts.map +1 -0
  271. package/lib/Utils/crypto.js +118 -0
  272. package/lib/Utils/crypto.js.map +1 -0
  273. package/lib/Utils/decode-wa-message.d.ts +66 -0
  274. package/lib/Utils/decode-wa-message.d.ts.map +1 -0
  275. package/lib/Utils/decode-wa-message.js +317 -0
  276. package/lib/Utils/decode-wa-message.js.map +1 -0
  277. package/lib/Utils/event-buffer.d.ts +36 -0
  278. package/lib/Utils/event-buffer.d.ts.map +1 -0
  279. package/lib/Utils/event-buffer.js +642 -0
  280. package/lib/Utils/event-buffer.js.map +1 -0
  281. package/lib/Utils/generics.d.ts +92 -0
  282. package/lib/Utils/generics.d.ts.map +1 -0
  283. package/lib/Utils/generics.js +393 -0
  284. package/lib/Utils/generics.js.map +1 -0
  285. package/lib/Utils/group-history.d.ts +37 -0
  286. package/lib/Utils/group-history.d.ts.map +1 -0
  287. package/lib/Utils/group-history.js +55 -0
  288. package/lib/Utils/group-history.js.map +1 -0
  289. package/lib/Utils/history.d.ts +24 -0
  290. package/lib/Utils/history.d.ts.map +1 -0
  291. package/lib/Utils/history.js +134 -0
  292. package/lib/Utils/history.js.map +1 -0
  293. package/lib/Utils/identity-change-handler.d.ts +44 -0
  294. package/lib/Utils/identity-change-handler.d.ts.map +1 -0
  295. package/lib/Utils/identity-change-handler.js +50 -0
  296. package/lib/Utils/identity-change-handler.js.map +1 -0
  297. package/lib/Utils/index.d.ts +26 -0
  298. package/lib/Utils/index.d.ts.map +1 -0
  299. package/lib/Utils/index.js +26 -0
  300. package/lib/Utils/index.js.map +1 -0
  301. package/lib/Utils/link-preview.d.ts +21 -0
  302. package/lib/Utils/link-preview.d.ts.map +1 -0
  303. package/lib/Utils/link-preview.js +99 -0
  304. package/lib/Utils/link-preview.js.map +1 -0
  305. package/lib/Utils/logger.d.ts +13 -0
  306. package/lib/Utils/logger.d.ts.map +1 -0
  307. package/lib/Utils/logger.js +3 -0
  308. package/lib/Utils/logger.js.map +1 -0
  309. package/lib/Utils/lt-hash.d.ts +8 -0
  310. package/lib/Utils/lt-hash.d.ts.map +1 -0
  311. package/lib/Utils/lt-hash.js +8 -0
  312. package/lib/Utils/lt-hash.js.map +1 -0
  313. package/lib/Utils/make-mutex.d.ts +9 -0
  314. package/lib/Utils/make-mutex.d.ts.map +1 -0
  315. package/lib/Utils/make-mutex.js +33 -0
  316. package/lib/Utils/make-mutex.js.map +1 -0
  317. package/lib/Utils/message-retry-manager.d.ts +119 -0
  318. package/lib/Utils/message-retry-manager.d.ts.map +1 -0
  319. package/lib/Utils/message-retry-manager.js +276 -0
  320. package/lib/Utils/message-retry-manager.js.map +1 -0
  321. package/lib/Utils/messages-media.d.ts +149 -0
  322. package/lib/Utils/messages-media.d.ts.map +1 -0
  323. package/lib/Utils/messages-media.js +875 -0
  324. package/lib/Utils/messages-media.js.map +1 -0
  325. package/lib/Utils/messages.d.ts +178 -0
  326. package/lib/Utils/messages.d.ts.map +1 -0
  327. package/lib/Utils/messages.js +1325 -0
  328. package/lib/Utils/messages.js.map +1 -0
  329. package/lib/Utils/noise-handler.d.ts +20 -0
  330. package/lib/Utils/noise-handler.d.ts.map +1 -0
  331. package/lib/Utils/noise-handler.js +201 -0
  332. package/lib/Utils/noise-handler.js.map +1 -0
  333. package/lib/Utils/offline-node-processor.d.ts +17 -0
  334. package/lib/Utils/offline-node-processor.d.ts.map +1 -0
  335. package/lib/Utils/offline-node-processor.js +40 -0
  336. package/lib/Utils/offline-node-processor.js.map +1 -0
  337. package/lib/Utils/pre-key-manager.d.ts +28 -0
  338. package/lib/Utils/pre-key-manager.d.ts.map +1 -0
  339. package/lib/Utils/pre-key-manager.js +106 -0
  340. package/lib/Utils/pre-key-manager.js.map +1 -0
  341. package/lib/Utils/process-message.d.ts +85 -0
  342. package/lib/Utils/process-message.d.ts.map +1 -0
  343. package/lib/Utils/process-message.js +688 -0
  344. package/lib/Utils/process-message.js.map +1 -0
  345. package/lib/Utils/reporting-utils.d.ts +18 -0
  346. package/lib/Utils/reporting-utils.d.ts.map +1 -0
  347. package/lib/Utils/reporting-utils.js +265 -0
  348. package/lib/Utils/reporting-utils.js.map +1 -0
  349. package/lib/Utils/rich-response.d.ts +12 -0
  350. package/lib/Utils/rich-response.d.ts.map +1 -0
  351. package/lib/Utils/rich-response.js +97 -0
  352. package/lib/Utils/rich-response.js.map +1 -0
  353. package/lib/Utils/signal.d.ts +47 -0
  354. package/lib/Utils/signal.d.ts.map +1 -0
  355. package/lib/Utils/signal.js +201 -0
  356. package/lib/Utils/signal.js.map +1 -0
  357. package/lib/Utils/stanza-ack.d.ts +11 -0
  358. package/lib/Utils/stanza-ack.d.ts.map +1 -0
  359. package/lib/Utils/stanza-ack.js +38 -0
  360. package/lib/Utils/stanza-ack.js.map +1 -0
  361. package/lib/Utils/sync-action-utils.d.ts +19 -0
  362. package/lib/Utils/sync-action-utils.d.ts.map +1 -0
  363. package/lib/Utils/sync-action-utils.js +49 -0
  364. package/lib/Utils/sync-action-utils.js.map +1 -0
  365. package/lib/Utils/sync-key-auto-resolve.d.ts +10 -0
  366. package/lib/Utils/sync-key-auto-resolve.d.ts.map +1 -0
  367. package/lib/Utils/sync-key-auto-resolve.js +33 -0
  368. package/lib/Utils/sync-key-auto-resolve.js.map +1 -0
  369. package/lib/Utils/tc-token-utils.d.ts +37 -0
  370. package/lib/Utils/tc-token-utils.d.ts.map +1 -0
  371. package/lib/Utils/tc-token-utils.js +164 -0
  372. package/lib/Utils/tc-token-utils.js.map +1 -0
  373. package/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
  374. package/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -0
  375. package/lib/Utils/use-multi-file-auth-state.js +153 -0
  376. package/lib/Utils/use-multi-file-auth-state.js.map +1 -0
  377. package/lib/Utils/validate-connection.d.ts +11 -0
  378. package/lib/Utils/validate-connection.d.ts.map +1 -0
  379. package/lib/Utils/validate-connection.js +211 -0
  380. package/lib/Utils/validate-connection.js.map +1 -0
  381. package/lib/Utils/zip.d.ts +11 -0
  382. package/lib/Utils/zip.d.ts.map +1 -0
  383. package/lib/Utils/zip.js +88 -0
  384. package/lib/Utils/zip.js.map +1 -0
  385. package/lib/WABinary/constants.d.ts +28 -0
  386. package/lib/WABinary/constants.d.ts.map +1 -0
  387. package/lib/WABinary/constants.js +1301 -0
  388. package/lib/WABinary/constants.js.map +1 -0
  389. package/lib/WABinary/decode.d.ts +7 -0
  390. package/lib/WABinary/decode.d.ts.map +1 -0
  391. package/lib/WABinary/decode.js +262 -0
  392. package/lib/WABinary/decode.js.map +1 -0
  393. package/lib/WABinary/encode.d.ts +3 -0
  394. package/lib/WABinary/encode.d.ts.map +1 -0
  395. package/lib/WABinary/encode.js +220 -0
  396. package/lib/WABinary/encode.js.map +1 -0
  397. package/lib/WABinary/generic-utils.d.ts +22 -0
  398. package/lib/WABinary/generic-utils.d.ts.map +1 -0
  399. package/lib/WABinary/generic-utils.js +201 -0
  400. package/lib/WABinary/generic-utils.js.map +1 -0
  401. package/lib/WABinary/index.d.ts +6 -0
  402. package/lib/WABinary/index.d.ts.map +1 -0
  403. package/lib/WABinary/index.js +6 -0
  404. package/lib/WABinary/index.js.map +1 -0
  405. package/lib/WABinary/jid-utils.d.ts +48 -0
  406. package/lib/WABinary/jid-utils.d.ts.map +1 -0
  407. package/lib/WABinary/jid-utils.js +96 -0
  408. package/lib/WABinary/jid-utils.js.map +1 -0
  409. package/lib/WABinary/types.d.ts +19 -0
  410. package/lib/WABinary/types.d.ts.map +1 -0
  411. package/lib/WABinary/types.js +2 -0
  412. package/lib/WABinary/types.js.map +1 -0
  413. package/lib/WAM/BinaryInfo.d.ts +9 -0
  414. package/lib/WAM/BinaryInfo.d.ts.map +1 -0
  415. package/lib/WAM/BinaryInfo.js +10 -0
  416. package/lib/WAM/BinaryInfo.js.map +1 -0
  417. package/lib/WAM/constants.d.ts +40 -0
  418. package/lib/WAM/constants.d.ts.map +1 -0
  419. package/lib/WAM/constants.js +22853 -0
  420. package/lib/WAM/constants.js.map +1 -0
  421. package/lib/WAM/encode.d.ts +3 -0
  422. package/lib/WAM/encode.d.ts.map +1 -0
  423. package/lib/WAM/encode.js +150 -0
  424. package/lib/WAM/encode.js.map +1 -0
  425. package/lib/WAM/index.d.ts +4 -0
  426. package/lib/WAM/index.d.ts.map +1 -0
  427. package/lib/WAM/index.js +4 -0
  428. package/lib/WAM/index.js.map +1 -0
  429. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +10 -0
  430. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -0
  431. package/lib/WAUSync/Protocols/USyncContactProtocol.js +52 -0
  432. package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -0
  433. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
  434. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +1 -0
  435. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +54 -0
  436. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +1 -0
  437. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
  438. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +1 -0
  439. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
  440. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +1 -0
  441. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
  442. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +1 -0
  443. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
  444. package/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +1 -0
  445. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
  446. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
  447. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
  448. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
  449. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +26 -0
  450. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +1 -0
  451. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
  452. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +1 -0
  453. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
  454. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -0
  455. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
  456. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -0
  457. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  458. package/lib/WAUSync/Protocols/index.d.ts.map +1 -0
  459. package/lib/WAUSync/Protocols/index.js +6 -0
  460. package/lib/WAUSync/Protocols/index.js.map +1 -0
  461. package/lib/WAUSync/USyncQuery.d.ts +30 -0
  462. package/lib/WAUSync/USyncQuery.d.ts.map +1 -0
  463. package/lib/WAUSync/USyncQuery.js +98 -0
  464. package/lib/WAUSync/USyncQuery.js.map +1 -0
  465. package/lib/WAUSync/USyncUser.d.ts +17 -0
  466. package/lib/WAUSync/USyncUser.d.ts.map +1 -0
  467. package/lib/WAUSync/USyncUser.js +31 -0
  468. package/lib/WAUSync/USyncUser.js.map +1 -0
  469. package/lib/WAUSync/index.d.ts +4 -0
  470. package/lib/WAUSync/index.d.ts.map +1 -0
  471. package/lib/WAUSync/index.js +4 -0
  472. package/lib/WAUSync/index.js.map +1 -0
  473. package/lib/index.d.ts +12 -0
  474. package/lib/index.d.ts.map +1 -0
  475. package/lib/index.js +11 -0
  476. package/lib/index.js.map +1 -0
  477. package/package.json +136 -4
@@ -0,0 +1,317 @@
1
+ import { proto } from '../../WAProto/index.js';
2
+ import type { ChannelStatus } from '../Types/ChannelStatus.js';
3
+ import type { AnyMessageContent } from '../Types/index.js';
4
+ import type { MediaGenerationOptions, WAMediaUploadFunction } from '../Types/Message.js';
5
+ import { type BinaryNode } from '../WABinary/index.js';
6
+ export type ChannelStatusContent = AnyMessageContent & {
7
+ /** Post the status as a question (ContextInfo.isQuestion on the inner message). */
8
+ question?: boolean;
9
+ };
10
+ export type ChannelStatusOptions = Pick<MediaGenerationOptions, 'backgroundColor' | 'font'> & {
11
+ /** Mark image/video content as AI-generated (imageSourceType / videoSourceType). Text and audio have no AI marker in the proto. */
12
+ aiContent?: boolean;
13
+ /**
14
+ * Answer a status question instead of posting a new status.
15
+ * The content must be text (the answer); parentServerId is required.
16
+ */
17
+ interactionType?: 'question_response';
18
+ /** Server id of the question status being answered. */
19
+ parentServerId?: string;
20
+ };
21
+ export type ChannelStatusDeps = {
22
+ sendNode: (node: BinaryNode) => Promise<unknown>;
23
+ waUploadToServer: WAMediaUploadFunction;
24
+ userJid?: string;
25
+ };
26
+ /** Deps for the channel-status calls that ask the server something (react / revoke / fetch). */
27
+ export type ChannelStatusQueryDeps = {
28
+ query: (node: BinaryNode, timeoutMs?: number) => Promise<BinaryNode>;
29
+ generateMessageTag: () => string;
30
+ };
31
+ /** What sendChannelStatus returns: the stanza id and the message that went out. */
32
+ export type ChannelStatusSent = {
33
+ id: string;
34
+ channelJid: string;
35
+ message: proto.IMessage;
36
+ };
37
+ /**
38
+ * What newsletterSendStatus returns: everything sendChannelStatus returns,
39
+ * plus the server-assigned id of the posted status — the id reactions,
40
+ * revokes and fetches use. It comes from the server echo of the posted
41
+ * status, so it is undefined when the echo does not arrive in time.
42
+ */
43
+ export type NewsletterStatusSent = ChannelStatusSent & {
44
+ newsletterStatusServerId?: string;
45
+ };
46
+ /** Options for fetching a channel's published statuses. */
47
+ export type ChannelStatusFetchOptions = {
48
+ /** how many statuses to fetch */
49
+ count: number;
50
+ /** fetch statuses older than this server id */
51
+ before?: string;
52
+ /** fetch statuses newer than this server id */
53
+ after?: string;
54
+ };
55
+ /** What newsletterFetchStatus returns: the parsed statuses plus the raw IQ result. */
56
+ export type ChannelStatusFetchResult = {
57
+ statuses: ChannelStatus[];
58
+ raw: BinaryNode;
59
+ };
60
+ /** How long newsletterSendStatus waits for the server echo carrying the posted status's server id. */
61
+ export declare const CHANNEL_STATUS_ECHO_TIMEOUT_MS = 10000;
62
+ /**
63
+ * Decode a channel status from its incoming `<status>` stanza.
64
+ *
65
+ * Wire shape, captured live 2026-11-09 from Techword 401
66
+ * (120363331321673219@newsletter):
67
+ *
68
+ * <status from="120363331321673219@newsletter" type="text"
69
+ * id="3EB079CA1FB41899DF027B" t="1794223368" server_id="136">
70
+ * <plaintext>proto.Message bytes</plaintext>
71
+ * </status>
72
+ *
73
+ * The plaintext payload is a standard proto.Message — a text status is an
74
+ * extendedTextMessage (field 6) whose field 1 is the text, field 8 the
75
+ * backgroundArgb and field 9 the font; field 35 is messageContextInfo.
76
+ * Non-newsletter `<status>` stanzas are ignored here: Baileys already
77
+ * handles personal statuses through the message stream.
78
+ */
79
+ export declare const decodeChannelStatus: (node: BinaryNode) => ChannelStatus | undefined;
80
+ /**
81
+ * Post a channel status — the temporary (24h) update a channel admin posts
82
+ * from the channel, shown in followers' Status tray. It is NOT a channel
83
+ * message (that is sendMessage to the @newsletter JID) and NOT a personal
84
+ * status (that is sendMessage to status@broadcast).
85
+ *
86
+ * Wire shape, proven live 2026-11-09: a top-level `<status>` stanza to the
87
+ * channel JID, mirroring the ones received, with a `<plaintext>` child
88
+ * holding the plain proto.Message bytes (same encoding as a newsletter
89
+ * message). The server acks it (no error) when the sender is an admin or
90
+ * owner of the channel, and answers error 401 when they are not — that is
91
+ * what happened posting to Techword 401 from an account that is not its
92
+ * admin. Accepts the same content shapes as sendMessage: { text } for a
93
+ * text status, { image, caption } etc. for media. Options support
94
+ * backgroundColor for text statuses and font for text.
95
+ *
96
+ * Extras, same send path:
97
+ * - `question: true` on the content posts the status as a question
98
+ * (ContextInfo.isQuestion, proto field 63, on the inner message's
99
+ * contextInfo — not on MessageContextInfo).
100
+ * - `aiContent: true` marks image/video content as AI-generated
101
+ * (imageSourceType / videoSourceType); text and audio have no AI
102
+ * marker in the proto.
103
+ * - `interactionType: 'question_response'` with `parentServerId` posts
104
+ * a statusQuestionAnswerMessage (proto field 105) answering the
105
+ * question status with that server id; the content must be the answer
106
+ * text. The key points at the question by its server id, as channel
107
+ * statuses are addressed by server id everywhere else.
108
+ */
109
+ export declare const sendChannelStatus: (jid: string, content: ChannelStatusContent, deps: ChannelStatusDeps, options?: ChannelStatusOptions) => Promise<ChannelStatusSent>;
110
+ /**
111
+ * React to a channel status, or remove the reaction with null.
112
+ * `serverId` is the status's server-assigned id (from the status echo
113
+ * after posting, or from newsletterFetchStatus).
114
+ *
115
+ * Same wire shape as reacting to a channel message — a `<message
116
+ * type="reaction">` stanza to the channel JID with the status's server
117
+ * id; the server routes by server_id within the newsletter. Removing a
118
+ * reaction sends edit='7' with an empty reaction, exactly like
119
+ * newsletterReactMessage does for messages.
120
+ */
121
+ export declare const reactChannelStatus: (jid: string, serverId: string, reaction: string | null, deps: ChannelStatusQueryDeps) => Promise<void>;
122
+ /**
123
+ * Revoke (delete) one of the channel's own statuses, by server id.
124
+ *
125
+ * Wire shape: a newsletter IQ with a `<revoke server_id>` child — the
126
+ * same IQ family as the status fetch (status_updates) and live_updates.
127
+ * This shape could not be confirmed from the decompiled app (stanza tag
128
+ * names are token-encoded there), so it needs a live check against a
129
+ * real channel before it is trusted.
130
+ */
131
+ export declare const revokeChannelStatus: (jid: string, statusId: string, deps: ChannelStatusQueryDeps) => Promise<BinaryNode>;
132
+ /**
133
+ * Fetch the channel's published statuses, paginated by server id.
134
+ * `before` fetches statuses older than that server id, `after` newer
135
+ * ones.
136
+ *
137
+ * Wire shape, from the app: an IQ to the channel with a `<status_updates>`
138
+ * child carrying count and the before/after cursors (the app also sends
139
+ * a `since` timestamp there; this API pages by server id instead).
140
+ * The result carries the statuses as `<status>` children of
141
+ * `<status_updates>`, in the same shape as the live `<status>` stanzas
142
+ * decodeChannelStatus reads. A fetched status node may not carry a
143
+ * `from` attr (the IQ is already addressed to the channel), so the
144
+ * channel JID is filled in for the decoder.
145
+ */
146
+ export declare const fetchChannelStatuses: (jid: string, options: ChannelStatusFetchOptions, deps: ChannelStatusQueryDeps) => Promise<ChannelStatusFetchResult>;
147
+ /**
148
+ * Fetch the answers people gave to a channel status question, or the
149
+ * responses to a channel status.
150
+ *
151
+ * Two jobs in the app do this, both building the same IQ and differing
152
+ * only in the `<question_responses>` child:
153
+ *
154
+ * - GetNewsletterQuestionResponsesJob (answers to a QUESTION status):
155
+ * `J9G $t=8` builds an IQ `xmlns="newsletter" type="get"` to the
156
+ * channel with a `<question_responses server_id="<question server id>"
157
+ * count="<count>">` child. Optional children, in order, are themselves
158
+ * `<question_responses>` nodes (that nesting is what the app sends):
159
+ * `<question_responses before="<beforeResponseServerId>"/>` for the
160
+ * next page (C1941J8e(str, 22)), `<question_responses><filters>
161
+ * <contacts|replied|starred/></filters></question_responses>` for a
162
+ * filter (C1946J8j: ordinal 0 = contacts, 1 = replied, 2 = starred),
163
+ * and `<question_responses><search text="<query>"/></question_responses>`
164
+ * for a text search (C1941J8e default case). The job hardcodes
165
+ * count = 30, rejects questionServerId < 0, and `server_id` is only
166
+ * written when 99 <= id <= 2147476647 (IHO.A0S); count is only written
167
+ * when 1 <= count <= 1000.
168
+ * - GetNewsletterStatusResponsesJob (responses to a STATUS):
169
+ * `J9G $t=10` is the same IQ but the child carries `type="status"`
170
+ * and has no search child (only before + filter). The job rejects
171
+ * questionStatusServerId outside 99 <= id < 2147476648 and count
172
+ * outside 1..300 (J9G.A02).
173
+ *
174
+ * The result (parsed by J9S for questions, J9T for statuses) is the IQ
175
+ * result with a `<question_responses server_id="..." [type="status"]>`
176
+ * child holding 0..N `<question_response>` children (J9T caps the list
177
+ * at 300). Each item (KG6.A0R + A0Q + A0C + A0H) is:
178
+ *
179
+ * <question_response>
180
+ * <sender lid="<responder LID>" notify_name="<name>">
181
+ * <picture direct_path="..."/>
182
+ * </sender>
183
+ * <message id="<stanza id>" t="<unix secs>" type="text" [is_sender="true"]>
184
+ * <plaintext>proto.Message bytes</plaintext>
185
+ * <meta questiontype="response" response_server_id="<answer server id>"/>
186
+ * </message>
187
+ * [<flags> replied / starred markers </flags>]
188
+ * [<reactions><reaction code="..."/></reactions>]
189
+ * </question_response>
190
+ *
191
+ * The `<message>` is the same shape as a status stanza: `<plaintext>`
192
+ * holds the plain proto.Message (a text answer is an
193
+ * extendedTextMessage). `response_server_id` is the answer's own server
194
+ * id — pass the last response's id as `before` for the next page.
195
+ * The `replied`/`starred` flag encoding inside `<flags>` could not be
196
+ * pinned down from the decompiled parser (child vs attr), so both are
197
+ * accepted; a live check should confirm which one the server sends.
198
+ */
199
+ /** Filter for fetching status responses (C1946J8j: 0 = contacts, 1 = replied, 2 = starred). */
200
+ export type ChannelStatusResponseFilter = 'contacts' | 'replied' | 'starred';
201
+ /**
202
+ * Which responses to fetch. 'question' fetches the answers to a question
203
+ * status (no `type` attr, search allowed); 'status' fetches responses to
204
+ * a status (`type="status"` on the child, no search).
205
+ */
206
+ export type ChannelStatusResponsesKind = 'question' | 'status';
207
+ /** Options for fetching channel status responses. */
208
+ export type ChannelStatusResponsesOptions = {
209
+ /** how many responses to fetch; defaults to 30, the app's hardcoded question count */
210
+ count?: number;
211
+ /** fetch responses older than this response server id (the `before` cursor) */
212
+ before?: string;
213
+ /** only responses from contacts / that were replied to / that were starred */
214
+ filter?: ChannelStatusResponseFilter;
215
+ /** free-text search over the answers; question kind only (the status job has no search) */
216
+ searchQuery?: string;
217
+ /** 'question' (default) or 'status' */
218
+ kind?: ChannelStatusResponsesKind;
219
+ };
220
+ /** One answer/response to a channel status, decoded from a `<question_response>` node. */
221
+ export type ChannelStatusResponse = {
222
+ /** stanza id of the answer message (`<message id>`) */
223
+ id: string;
224
+ /** the answer's own server id (`<meta response_server_id>`); the `before` cursor for the next page */
225
+ responseServerId?: string;
226
+ /** responder's LID (`<sender lid>`) */
227
+ senderLid?: string;
228
+ /** responder's display name (`<sender notify_name>`) */
229
+ senderNotifyName?: string;
230
+ /** responder's profile picture path (`<sender><picture direct_path>`) */
231
+ senderPictureDirectPath?: string;
232
+ /** unix timestamp (seconds) from the answer `<message t>` */
233
+ messageTimestamp: number;
234
+ /** true when the answer is our own (`<message is_sender="true">`) */
235
+ fromMe: boolean;
236
+ /** `<meta questiontype>`; the app requires this to be 'response' */
237
+ questionType?: string;
238
+ /** text of a text answer, from extendedTextMessage.text (or conversation) */
239
+ text?: string;
240
+ /** the full decoded proto.Message, for media / other answer kinds */
241
+ message?: proto.IMessage;
242
+ /** the answer was replied to (from the `<flags>` child) */
243
+ replied: boolean;
244
+ /** the answer was starred (from the `<flags>` child) */
245
+ starred: boolean;
246
+ /** reaction code on the answer, if any (`<reactions><reaction code>`) */
247
+ reaction?: string;
248
+ /** the raw `<question_response>` node */
249
+ raw: BinaryNode;
250
+ };
251
+ /** What fetchChannelStatusResponses returns: the parsed answers plus the raw IQ result. */
252
+ export type ChannelStatusResponsesResult = {
253
+ responses: ChannelStatusResponse[];
254
+ /** `server_id` of the `<question_responses>` envelope (the question/status asked about) */
255
+ serverId?: string;
256
+ /** `type` of the `<question_responses>` envelope ('status' for the status kind) */
257
+ type?: string;
258
+ raw: BinaryNode;
259
+ };
260
+ /** The app's hardcoded count for the question-responses job. */
261
+ export declare const CHANNEL_STATUS_QUESTION_RESPONSES_DEFAULT_COUNT = 30;
262
+ /** Max count the app writes for question responses (J9G $t=8: 1..1000). */
263
+ export declare const CHANNEL_STATUS_QUESTION_RESPONSES_MAX_COUNT = 1000;
264
+ /** Max count the app writes for status responses (J9G.A02: 1..300). */
265
+ export declare const CHANNEL_STATUS_RESPONSES_MAX_COUNT = 300;
266
+ /** `server_id` is only written on the wire inside this range (IHO.A0S). */
267
+ export declare const CHANNEL_STATUS_MIN_SERVER_ID = 99;
268
+ export declare const CHANNEL_STATUS_MAX_SERVER_ID = 2147476647;
269
+ /**
270
+ * Decode one `<question_response>` node (KG6.A0R + A0Q + A0C + A0H).
271
+ * Returns undefined when the item has no `<message>` child or its
272
+ * `<plaintext>` payload is not a decodable proto.Message — the app's
273
+ * parser requires both, so such an item is not a usable answer.
274
+ */
275
+ export declare const decodeChannelStatusResponse: (node: BinaryNode) => ChannelStatusResponse | undefined;
276
+ /**
277
+ * Fetch the answers to a channel status question (`kind: 'question'`,
278
+ * default), or the responses to a channel status (`kind: 'status'`).
279
+ * `serverId` is the server id of the question/status being asked about.
280
+ * Page with `before` set to the last response's `responseServerId`.
281
+ * The `searchQuery` option is only valid for the question kind — the
282
+ * status job in the app has no search parameter.
283
+ */
284
+ export declare const fetchChannelStatusResponses: (jid: string, serverId: string, options: ChannelStatusResponsesOptions, deps: ChannelStatusQueryDeps) => Promise<ChannelStatusResponsesResult>;
285
+ /**
286
+ * Send a view receipt for a channel status — the receipt the app sends
287
+ * when a channel status is viewed (SendNewsletterStatusViewReceiptJob).
288
+ *
289
+ * What the APK pins down:
290
+ * - The job is enqueued from StatusManager.markStatusAsSeenInternal when
291
+ * a newsletter status is marked seen, carrying `newsletterRawJid`
292
+ * (the channel JID), `receiptStanzaId` (the status message's stanza
293
+ * id — the `<status id>`, e.g. '3EB079CA1FB41899DF027B', NOT the
294
+ * server_id) and `sortId` (the message's local sort_id), and only
295
+ * when sortId > 0. Its job id is `status-view-receipt-<rawJid>`.
296
+ * - The receiving side (StatusMessageStateUpdateReceiptHandler /
297
+ * processNewsletterStatusViewReceipt, C1U8) expects a receipt stanza
298
+ * with type "view" (or "read-self"), `from` the viewer, `id` the
299
+ * status stanza id, and a `t` (unix seconds) attr, and looks the
300
+ * status up by (newsletter JID, stanza id). It never reads a sort id
301
+ * off the stanza.
302
+ *
303
+ * What the APK does NOT show: the job class defines no onRun in the dex
304
+ * (verified by parsing classes10.dex — only <init>, A00 and Ct8 exist),
305
+ * so the stanza the app actually sends could not be read from it. The
306
+ * shape sent here is the generic receipt the fork already builds in
307
+ * sendReceipt (`<receipt to id [type] [t]>`, fire-and-forget via
308
+ * sendNode) with type "view", which is exactly the shape the receiving
309
+ * handler expects. This needs a live check against a real channel
310
+ * before it is trusted.
311
+ *
312
+ * `sortId` is accepted because the app's job carries it and only fires
313
+ * when it is positive; it is validated the same way but is NOT placed
314
+ * on the wire, because no APK evidence puts it there.
315
+ */
316
+ export declare const sendChannelStatusViewReceipt: (jid: string, receiptStanzaId: string, sortId: number, deps: Pick<ChannelStatusDeps, "sendNode">) => Promise<void>;
317
+ //# sourceMappingURL=channelStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channelStatus.d.ts","sourceRoot":"","sources":["../../src/Socket/channelStatus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAGxF,OAAO,EAAE,KAAK,UAAU,EAA6C,MAAM,sBAAsB,CAAA;AAEjG,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACtD,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,sBAAsB,EAAE,iBAAiB,GAAG,MAAM,CAAC,GAAG;IAC7F,mIAAmI;IACnI,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,mBAAmB,CAAA;IACrC,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IA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