talkyzap-wapp-api 1.0.0

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 (582) hide show
  1. package/CHANGELOG.md +486 -0
  2. package/LICENSE +190 -0
  3. package/README.md +143 -0
  4. package/dist/assert/assertChat.d.ts +27 -0
  5. package/dist/assert/assertColor.d.ts +35 -0
  6. package/dist/assert/assertIsBusiness.d.ts +20 -0
  7. package/dist/assert/assertProduct.d.ts +22 -0
  8. package/dist/assert/assertWid.d.ts +28 -0
  9. package/dist/assert/index.d.ts +20 -0
  10. package/dist/blocklist/events/eventTypes.d.ts +18 -0
  11. package/dist/blocklist/events/index.d.ts +16 -0
  12. package/dist/blocklist/events/registerSyncedEvent.d.ts +16 -0
  13. package/dist/blocklist/functions/all.d.ts +17 -0
  14. package/dist/blocklist/functions/blockContact.d.ts +18 -0
  15. package/dist/blocklist/functions/index.d.ts +19 -0
  16. package/dist/blocklist/functions/isBlocked.d.ts +17 -0
  17. package/dist/blocklist/functions/unblockContact.d.ts +18 -0
  18. package/dist/blocklist/index.d.ts +17 -0
  19. package/dist/blocklist/types.d.ts +20 -0
  20. package/dist/call/events/eventTypes.d.ts +56 -0
  21. package/dist/call/events/index.d.ts +16 -0
  22. package/dist/call/events/registerIncomingCallEvent.d.ts +16 -0
  23. package/dist/call/functions/accept.d.ts +38 -0
  24. package/dist/call/functions/end.d.ts +36 -0
  25. package/dist/call/functions/index.d.ts +19 -0
  26. package/dist/call/functions/offer.d.ts +33 -0
  27. package/dist/call/functions/parseRelayResponse.d.ts +31 -0
  28. package/dist/call/functions/prepareDestination.d.ts +17 -0
  29. package/dist/call/functions/reject.d.ts +36 -0
  30. package/dist/call/index.d.ts +17 -0
  31. package/dist/catalog/functions/addProductImage.d.ts +28 -0
  32. package/dist/catalog/functions/changeProductImage.d.ts +28 -0
  33. package/dist/catalog/functions/createCollection.d.ts +26 -0
  34. package/dist/catalog/functions/createProduct.d.ts +47 -0
  35. package/dist/catalog/functions/deleteCollection.d.ts +26 -0
  36. package/dist/catalog/functions/deleteProduct.d.ts +30 -0
  37. package/dist/catalog/functions/editCollection.d.ts +32 -0
  38. package/dist/catalog/functions/editProduct.d.ts +37 -0
  39. package/dist/catalog/functions/getCollections.d.ts +31 -0
  40. package/dist/catalog/functions/getMyCatalog.d.ts +27 -0
  41. package/dist/catalog/functions/getProductById.d.ts +28 -0
  42. package/dist/catalog/functions/getProducts.d.ts +27 -0
  43. package/dist/catalog/functions/index.d.ts +30 -0
  44. package/dist/catalog/functions/removeProductImage.d.ts +29 -0
  45. package/dist/catalog/functions/setProductVisibility.d.ts +30 -0
  46. package/dist/catalog/functions/updateCartEnabled.d.ts +30 -0
  47. package/dist/catalog/index.d.ts +16 -0
  48. package/dist/chat/defaultSendMessageOptions.d.ts +19 -0
  49. package/dist/chat/events/eventTypes.d.ts +183 -0
  50. package/dist/chat/events/index.d.ts +25 -0
  51. package/dist/chat/events/registerAckMessageEvent.d.ts +16 -0
  52. package/dist/chat/events/registerActiveChatEvent.d.ts +16 -0
  53. package/dist/chat/events/registerEditedMessageEvent.d.ts +16 -0
  54. package/dist/chat/events/registerLabelEvent.d.ts +16 -0
  55. package/dist/chat/events/registerLiveLocationUpdateEvent.d.ts +16 -0
  56. package/dist/chat/events/registerNewMessageEvent.d.ts +16 -0
  57. package/dist/chat/events/registerPollEvent.d.ts +16 -0
  58. package/dist/chat/events/registerPresenceChange.d.ts +16 -0
  59. package/dist/chat/events/registerReactionsEvent.d.ts +16 -0
  60. package/dist/chat/events/registerRevokeMessageEvent.d.ts +16 -0
  61. package/dist/chat/functions/archive.d.ts +54 -0
  62. package/dist/chat/functions/canMarkPlayed.d.ts +27 -0
  63. package/dist/chat/functions/canMute.d.ts +27 -0
  64. package/dist/chat/functions/canReply.d.ts +27 -0
  65. package/dist/chat/functions/clear.d.ts +26 -0
  66. package/dist/chat/functions/delete.d.ts +26 -0
  67. package/dist/chat/functions/deleteMessage.d.ts +48 -0
  68. package/dist/chat/functions/downloadMedia.d.ts +29 -0
  69. package/dist/chat/functions/editMessage.d.ts +30 -0
  70. package/dist/chat/functions/find.d.ts +24 -0
  71. package/dist/chat/functions/forwardMessage.d.ts +32 -0
  72. package/dist/chat/functions/generateMessageID.d.ts +22 -0
  73. package/dist/chat/functions/get.d.ts +22 -0
  74. package/dist/chat/functions/getActiveChat.d.ts +30 -0
  75. package/dist/chat/functions/getLastSeen.d.ts +25 -0
  76. package/dist/chat/functions/getMessageACK.d.ts +60 -0
  77. package/dist/chat/functions/getMessageById.d.ts +33 -0
  78. package/dist/chat/functions/getMessages.d.ts +86 -0
  79. package/dist/chat/functions/getPlatformFromMessage.d.ts +34 -0
  80. package/dist/chat/functions/getQuotedMsg.d.ts +22 -0
  81. package/dist/chat/functions/getQuotedMsgKey.d.ts +22 -0
  82. package/dist/chat/functions/getReactions.d.ts +48 -0
  83. package/dist/chat/functions/getVotes.d.ts +33 -0
  84. package/dist/chat/functions/index.d.ts +69 -0
  85. package/dist/chat/functions/keepMessage.d.ts +30 -0
  86. package/dist/chat/functions/list.d.ts +62 -0
  87. package/dist/chat/functions/markIsComposing.d.ts +31 -0
  88. package/dist/chat/functions/markIsPaused.d.ts +27 -0
  89. package/dist/chat/functions/markIsRead.d.ts +30 -0
  90. package/dist/chat/functions/markIsRecording.d.ts +31 -0
  91. package/dist/chat/functions/markIsUnread.d.ts +29 -0
  92. package/dist/chat/functions/markPlayed.d.ts +27 -0
  93. package/dist/chat/functions/mute.d.ts +45 -0
  94. package/dist/chat/functions/openChatAt.d.ts +27 -0
  95. package/dist/chat/functions/openChatBottom.d.ts +27 -0
  96. package/dist/chat/functions/openChatFromUnread.d.ts +27 -0
  97. package/dist/chat/functions/pin.d.ts +54 -0
  98. package/dist/chat/functions/pinMsg.d.ts +60 -0
  99. package/dist/chat/functions/prepareAudioWaveform.d.ts +26 -0
  100. package/dist/chat/functions/prepareLinkPreview.d.ts +53 -0
  101. package/dist/chat/functions/prepareMessageButtons.d.ts +52 -0
  102. package/dist/chat/functions/prepareRawMessage.d.ts +23 -0
  103. package/dist/chat/functions/requestPhoneNumber.d.ts +28 -0
  104. package/dist/chat/functions/sendCreatePollMessage.d.ts +49 -0
  105. package/dist/chat/functions/sendFileMessage.d.ts +181 -0
  106. package/dist/chat/functions/sendGroupInviteMessage.d.ts +56 -0
  107. package/dist/chat/functions/sendListMessage.d.ts +57 -0
  108. package/dist/chat/functions/sendLocationMessage.d.ts +100 -0
  109. package/dist/chat/functions/sendOrderMessage.d.ts +57 -0
  110. package/dist/chat/functions/sendRawMessage.d.ts +22 -0
  111. package/dist/chat/functions/sendReactionToMessage.d.ts +36 -0
  112. package/dist/chat/functions/sendScheduledCallMessage.d.ts +40 -0
  113. package/dist/chat/functions/sendTextMessage.d.ts +54 -0
  114. package/dist/chat/functions/sendVCardContactMessage.d.ts +47 -0
  115. package/dist/chat/functions/starMessage.d.ts +47 -0
  116. package/dist/chat/functions/unmute.d.ts +27 -0
  117. package/dist/chat/index.d.ts +20 -0
  118. package/dist/chat/patch.d.ts +16 -0
  119. package/dist/chat/types.d.ts +116 -0
  120. package/dist/community/functions/addSubgroups.d.ts +33 -0
  121. package/dist/community/functions/create.d.ts +27 -0
  122. package/dist/community/functions/deactivate.d.ts +27 -0
  123. package/dist/community/functions/demoteParticipants.d.ts +27 -0
  124. package/dist/community/functions/getParticipants.d.ts +27 -0
  125. package/dist/community/functions/index.d.ts +22 -0
  126. package/dist/community/functions/promoteParticipants.d.ts +27 -0
  127. package/dist/community/functions/removeSubgroups.d.ts +33 -0
  128. package/dist/community/index.d.ts +16 -0
  129. package/dist/config/Config.d.ts +74 -0
  130. package/dist/config/defaultConfig.d.ts +17 -0
  131. package/dist/config/eventTypes.d.ts +25 -0
  132. package/dist/config/index.d.ts +23 -0
  133. package/dist/conn/events/eventTypes.d.ts +92 -0
  134. package/dist/conn/events/index.d.ts +25 -0
  135. package/dist/conn/events/registerAuthCodeChangeEvent.d.ts +16 -0
  136. package/dist/conn/events/registerAuthenticatedEvent.d.ts +16 -0
  137. package/dist/conn/events/registerLogoutEvent.d.ts +16 -0
  138. package/dist/conn/events/registerMainInit.d.ts +16 -0
  139. package/dist/conn/events/registerMainLoadedEvent.d.ts +16 -0
  140. package/dist/conn/events/registerMainReadyEvent.d.ts +16 -0
  141. package/dist/conn/events/registerNeedsUpdateEvent.d.ts +16 -0
  142. package/dist/conn/events/registerOnlineEvent.d.ts +16 -0
  143. package/dist/conn/events/registerQRCodeIdleEvent.d.ts +16 -0
  144. package/dist/conn/events/registerRequireAuthEvent.d.ts +16 -0
  145. package/dist/conn/functions/genLinkDeviceCodeForPhoneNumber.d.ts +30 -0
  146. package/dist/conn/functions/getAuthCode.d.ts +28 -0
  147. package/dist/conn/functions/getHistorySyncProgress.d.ts +32 -0
  148. package/dist/conn/functions/getMyDeviceId.d.ts +26 -0
  149. package/dist/conn/functions/getMyUserId.d.ts +26 -0
  150. package/dist/conn/functions/getPlatform.d.ts +25 -0
  151. package/dist/conn/functions/index.d.ts +37 -0
  152. package/dist/conn/functions/isAuthenticated.d.ts +16 -0
  153. package/dist/conn/functions/isIdle.d.ts +16 -0
  154. package/dist/conn/functions/isMainInit.d.ts +24 -0
  155. package/dist/conn/functions/isMainLoaded.d.ts +24 -0
  156. package/dist/conn/functions/isMainReady.d.ts +24 -0
  157. package/dist/conn/functions/isMultiDevice.d.ts +16 -0
  158. package/dist/conn/functions/isOnline.d.ts +24 -0
  159. package/dist/conn/functions/isRegistered.d.ts +24 -0
  160. package/dist/conn/functions/joinWebBeta.d.ts +29 -0
  161. package/dist/conn/functions/logout.d.ts +16 -0
  162. package/dist/conn/functions/markAvailable.d.ts +33 -0
  163. package/dist/conn/functions/needsUpdate.d.ts +24 -0
  164. package/dist/conn/functions/refreshQR.d.ts +28 -0
  165. package/dist/conn/functions/setKeepAlive.d.ts +28 -0
  166. package/dist/conn/functions/setLimit.d.ts +65 -0
  167. package/dist/conn/functions/setMultiDevice.d.ts +23 -0
  168. package/dist/conn/index.d.ts +19 -0
  169. package/dist/conn/patch.d.ts +16 -0
  170. package/dist/conn/types.d.ts +31 -0
  171. package/dist/contact/functions/get.d.ts +27 -0
  172. package/dist/contact/functions/getBusinessProfile.d.ts +27 -0
  173. package/dist/contact/functions/getCommonGroups.d.ts +27 -0
  174. package/dist/contact/functions/getProfilePictureUrl.d.ts +27 -0
  175. package/dist/contact/functions/getStatus.d.ts +27 -0
  176. package/dist/contact/functions/index.d.ts +22 -0
  177. package/dist/contact/functions/list.d.ts +44 -0
  178. package/dist/contact/functions/queryExists.d.ts +47 -0
  179. package/dist/contact/index.d.ts +17 -0
  180. package/dist/contact/patch.d.ts +16 -0
  181. package/dist/deviceName.d.ts +16 -0
  182. package/dist/enums.d.ts +23 -0
  183. package/dist/eventEmitter/eventEmitter.d.ts +172 -0
  184. package/dist/eventEmitter/eventTypes.d.ts +34 -0
  185. package/dist/eventEmitter/index.d.ts +195 -0
  186. package/dist/group/events/eventTypes.d.ts +53 -0
  187. package/dist/group/events/index.d.ts +16 -0
  188. package/dist/group/events/registerParticipantsChangedEvent.d.ts +16 -0
  189. package/dist/group/functions/addParticipants.d.ts +59 -0
  190. package/dist/group/functions/approve.d.ts +30 -0
  191. package/dist/group/functions/canAdd.d.ts +28 -0
  192. package/dist/group/functions/canDemote.d.ts +28 -0
  193. package/dist/group/functions/canPromote.d.ts +28 -0
  194. package/dist/group/functions/canRemove.d.ts +28 -0
  195. package/dist/group/functions/create.d.ts +59 -0
  196. package/dist/group/functions/demoteParticipants.d.ts +29 -0
  197. package/dist/group/functions/ensureGroup.d.ts +17 -0
  198. package/dist/group/functions/ensureGroupAndParticipants.d.ts +20 -0
  199. package/dist/group/functions/getAllGroups.d.ts +26 -0
  200. package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +51 -0
  201. package/dist/group/functions/getGroupSizeLimit.d.ts +27 -0
  202. package/dist/group/functions/getInviteCode.d.ts +28 -0
  203. package/dist/group/functions/getMembershipRequests.d.ts +33 -0
  204. package/dist/group/functions/getParticipants.d.ts +27 -0
  205. package/dist/group/functions/iAmAdmin.d.ts +17 -0
  206. package/dist/group/functions/iAmMember.d.ts +17 -0
  207. package/dist/group/functions/iAmRestrictedMember.d.ts +17 -0
  208. package/dist/group/functions/iAmSuperAdmin.d.ts +17 -0
  209. package/dist/group/functions/index.d.ts +46 -0
  210. package/dist/group/functions/join.d.ts +28 -0
  211. package/dist/group/functions/leave.d.ts +27 -0
  212. package/dist/group/functions/promoteParticipants.d.ts +31 -0
  213. package/dist/group/functions/reject.d.ts +30 -0
  214. package/dist/group/functions/removeIcon.d.ts +27 -0
  215. package/dist/group/functions/removeParticipants.d.ts +31 -0
  216. package/dist/group/functions/revokeInviteCode.d.ts +28 -0
  217. package/dist/group/functions/setDescription.d.ts +27 -0
  218. package/dist/group/functions/setIcon.d.ts +33 -0
  219. package/dist/group/functions/setProperty.d.ts +54 -0
  220. package/dist/group/functions/setSubject.d.ts +27 -0
  221. package/dist/group/index.d.ts +17 -0
  222. package/dist/gtag/Tracker.d.ts +52 -0
  223. package/dist/gtag/index.d.ts +18 -0
  224. package/dist/index.d.ts +42 -0
  225. package/dist/labels/functions/addNewLabel.d.ts +36 -0
  226. package/dist/labels/functions/addOrRemoveLabels.d.ts +31 -0
  227. package/dist/labels/functions/colorIsInLabelPalette.d.ts +26 -0
  228. package/dist/labels/functions/deleteAllLabels.d.ts +17 -0
  229. package/dist/labels/functions/deleteLabel.d.ts +21 -0
  230. package/dist/labels/functions/editLabel.d.ts +37 -0
  231. package/dist/labels/functions/getAllLabels.d.ts +17 -0
  232. package/dist/labels/functions/getLabelById.d.ts +17 -0
  233. package/dist/labels/functions/getLabelColorPalette.d.ts +19 -0
  234. package/dist/labels/functions/getNewLabelColor.d.ts +19 -0
  235. package/dist/labels/functions/index.d.ts +25 -0
  236. package/dist/labels/index.d.ts +17 -0
  237. package/dist/labels/types.d.ts +23 -0
  238. package/dist/newsletter/functions/create.d.ts +42 -0
  239. package/dist/newsletter/functions/destroy.d.ts +26 -0
  240. package/dist/newsletter/functions/edit.d.ts +58 -0
  241. package/dist/newsletter/functions/ensureNewsletter.d.ts +17 -0
  242. package/dist/newsletter/functions/index.d.ts +19 -0
  243. package/dist/newsletter/functions/mute.d.ts +33 -0
  244. package/dist/newsletter/index.d.ts +16 -0
  245. package/dist/order/events/eventTypes.d.ts +34 -0
  246. package/dist/order/events/index.d.ts +16 -0
  247. package/dist/order/events/registerUpdateOrderEvent.d.ts +16 -0
  248. package/dist/order/functions/get.d.ts +27 -0
  249. package/dist/order/functions/index.d.ts +16 -0
  250. package/dist/order/index.d.ts +17 -0
  251. package/dist/profile/functions/editBusinessProfile.d.ts +177 -0
  252. package/dist/profile/functions/getMyProfileName.d.ts +26 -0
  253. package/dist/profile/functions/getMyStatus.d.ts +26 -0
  254. package/dist/profile/functions/index.d.ts +23 -0
  255. package/dist/profile/functions/isBusiness.d.ts +25 -0
  256. package/dist/profile/functions/removeMyProfilePicture.d.ts +26 -0
  257. package/dist/profile/functions/setMyProfileName.d.ts +26 -0
  258. package/dist/profile/functions/setMyProfilePicture.d.ts +32 -0
  259. package/dist/profile/functions/setMyStatus.d.ts +26 -0
  260. package/dist/profile/index.d.ts +16 -0
  261. package/dist/status/defaultSendStatusOptions.d.ts +19 -0
  262. package/dist/status/events/eventTypes.d.ts +18 -0
  263. package/dist/status/events/index.d.ts +16 -0
  264. package/dist/status/events/registerSyncedEvent.d.ts +16 -0
  265. package/dist/status/functions/get.d.ts +17 -0
  266. package/dist/status/functions/getMyStatus.d.ts +17 -0
  267. package/dist/status/functions/index.d.ts +23 -0
  268. package/dist/status/functions/postSendStatus.d.ts +17 -0
  269. package/dist/status/functions/sendImageStatus.d.ts +26 -0
  270. package/dist/status/functions/sendRawStatus.d.ts +22 -0
  271. package/dist/status/functions/sendReadStatus.d.ts +25 -0
  272. package/dist/status/functions/sendTextStatus.d.ts +31 -0
  273. package/dist/status/functions/sendVideoStatus.d.ts +26 -0
  274. package/dist/status/functions/updateParticipants.d.ts +32 -0
  275. package/dist/status/index.d.ts +19 -0
  276. package/dist/status/patch.d.ts +16 -0
  277. package/dist/types.d.ts +18 -0
  278. package/dist/util/blobToArrayBuffer.d.ts +16 -0
  279. package/dist/util/blobToBase64.d.ts +16 -0
  280. package/dist/util/convertToFile.d.ts +16 -0
  281. package/dist/util/createWid.d.ts +19 -0
  282. package/dist/util/downloadImage.d.ts +20 -0
  283. package/dist/util/errors.d.ts +21 -0
  284. package/dist/util/fetchDataFromPNG.d.ts +16 -0
  285. package/dist/util/generateOrderUniqueId.d.ts +16 -0
  286. package/dist/util/getVideoInfoFromBuffer.d.ts +25 -0
  287. package/dist/util/index.d.ts +28 -0
  288. package/dist/util/isBase64.d.ts +16 -0
  289. package/dist/util/linkPreview.d.ts +41 -0
  290. package/dist/util/resizeImage.d.ts +17 -0
  291. package/dist/util/types.d.ts +42 -0
  292. package/dist/util/wrapFunction.d.ts +20 -0
  293. package/dist/webpack/eventTypes.d.ts +20 -0
  294. package/dist/webpack/index.d.ts +93 -0
  295. package/dist/whatsapp/collections/AggReactionsCollection.d.ts +24 -0
  296. package/dist/whatsapp/collections/BaseCollection.d.ts +47 -0
  297. package/dist/whatsapp/collections/BlocklistCollection.d.ts +25 -0
  298. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +24 -0
  299. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +27 -0
  300. package/dist/whatsapp/collections/ButtonCollection.d.ts +22 -0
  301. package/dist/whatsapp/collections/CallCollection.d.ts +30 -0
  302. package/dist/whatsapp/collections/CartCollection.d.ts +27 -0
  303. package/dist/whatsapp/collections/CartItemCollection.d.ts +23 -0
  304. package/dist/whatsapp/collections/CatalogCollection.d.ts +35 -0
  305. package/dist/whatsapp/collections/ChatCollection.d.ts +35 -0
  306. package/dist/whatsapp/collections/ChatstateCollection.d.ts +23 -0
  307. package/dist/whatsapp/collections/Collection.d.ts +67 -0
  308. package/dist/whatsapp/collections/ContactCollection.d.ts +37 -0
  309. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +27 -0
  310. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +24 -0
  311. package/dist/whatsapp/collections/LabelCollection.d.ts +40 -0
  312. package/dist/whatsapp/collections/LabelItemCollection.d.ts +23 -0
  313. package/dist/whatsapp/collections/MsgCollection.d.ts +46 -0
  314. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +26 -0
  315. package/dist/whatsapp/collections/MsgInfoParticipantCollection.d.ts +24 -0
  316. package/dist/whatsapp/collections/MuteCollection.d.ts +33 -0
  317. package/dist/whatsapp/collections/OrderCollection.d.ts +28 -0
  318. package/dist/whatsapp/collections/OrderItemCollection.d.ts +23 -0
  319. package/dist/whatsapp/collections/ParticipantCollection.d.ts +38 -0
  320. package/dist/whatsapp/collections/PinInChatCollection.d.ts +29 -0
  321. package/dist/whatsapp/collections/PresenceCollection.d.ts +25 -0
  322. package/dist/whatsapp/collections/ProductCollCollection.d.ts +27 -0
  323. package/dist/whatsapp/collections/ProductCollection.d.ts +26 -0
  324. package/dist/whatsapp/collections/ProductImageCollection.d.ts +23 -0
  325. package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +23 -0
  326. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +29 -0
  327. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +35 -0
  328. package/dist/whatsapp/collections/ReactionsCollection.d.ts +32 -0
  329. package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +24 -0
  330. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +29 -0
  331. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +28 -0
  332. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +29 -0
  333. package/dist/whatsapp/collections/StatusCollection.d.ts +25 -0
  334. package/dist/whatsapp/collections/StatusV3Collection.d.ts +35 -0
  335. package/dist/whatsapp/collections/StickerCollection.d.ts +24 -0
  336. package/dist/whatsapp/collections/StickerPackCollection.d.ts +35 -0
  337. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +29 -0
  338. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +24 -0
  339. package/dist/whatsapp/collections/index.d.ts +61 -0
  340. package/dist/whatsapp/contants/DROP_ATTR.d.ts +19 -0
  341. package/dist/whatsapp/contants/SANITIZED_VERSION_STR.d.ts +19 -0
  342. package/dist/whatsapp/contants/index.d.ts +17 -0
  343. package/dist/whatsapp/enums/ACK.d.ts +55 -0
  344. package/dist/whatsapp/enums/CALL_STATES.d.ts +34 -0
  345. package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +25 -0
  346. package/dist/whatsapp/enums/KIC_ENTRY_POINT_TYP.d.ts +26 -0
  347. package/dist/whatsapp/enums/LogoutReason.d.ts +30 -0
  348. package/dist/whatsapp/enums/MSG_TYPE.d.ts +60 -0
  349. package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +27 -0
  350. package/dist/whatsapp/enums/PIN_STATE.d.ts +22 -0
  351. package/dist/whatsapp/enums/SOCKET_STATE.d.ts +42 -0
  352. package/dist/whatsapp/enums/SendMsgResult.d.ts +27 -0
  353. package/dist/whatsapp/enums/index.d.ts +24 -0
  354. package/dist/whatsapp/exportModule.d.ts +58 -0
  355. package/dist/whatsapp/functions/GROUP_JID.d.ts +21 -0
  356. package/dist/whatsapp/functions/addAndSendMessageEdit.d.ts +20 -0
  357. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +22 -0
  358. package/dist/whatsapp/functions/addToLabelCollection.d.ts +22 -0
  359. package/dist/whatsapp/functions/blockContact.d.ts +30 -0
  360. package/dist/whatsapp/functions/calculateFilehashFromBlob.d.ts +19 -0
  361. package/dist/whatsapp/functions/canEditMsg.d.ts +20 -0
  362. package/dist/whatsapp/functions/canReplyMsg.d.ts +20 -0
  363. package/dist/whatsapp/functions/changeOptInStatusForExternalWebBeta.d.ts +19 -0
  364. package/dist/whatsapp/functions/collections.d.ts +37 -0
  365. package/dist/whatsapp/functions/colorIndexToHex.d.ts +20 -0
  366. package/dist/whatsapp/functions/contactFunctions.d.ts +140 -0
  367. package/dist/whatsapp/functions/createFanoutMsgStanza.d.ts +24 -0
  368. package/dist/whatsapp/functions/createGroup.d.ts +28 -0
  369. package/dist/whatsapp/functions/createMsgProtobuf.d.ts +25 -0
  370. package/dist/whatsapp/functions/createNewsletterQuery.d.ts +23 -0
  371. package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +29 -0
  372. package/dist/whatsapp/functions/currencyForCountryShortcode.d.ts +19 -0
  373. package/dist/whatsapp/functions/deleteNewsletter.d.ts +19 -0
  374. package/dist/whatsapp/functions/editBusinessProfile.d.ts +20 -0
  375. package/dist/whatsapp/functions/editNewsletterMetadataAction.d.ts +28 -0
  376. package/dist/whatsapp/functions/encodeMaybeMediaType.d.ts +19 -0
  377. package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +22 -0
  378. package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +34 -0
  379. package/dist/whatsapp/functions/encryptAndSendSenderKeyMsg.d.ts +34 -0
  380. package/dist/whatsapp/functions/encryptMsgProtobuf.d.ts +23 -0
  381. package/dist/whatsapp/functions/fetchLinkPreview.d.ts +48 -0
  382. package/dist/whatsapp/functions/findChat.d.ts +22 -0
  383. package/dist/whatsapp/functions/findCommonGroups.d.ts +21 -0
  384. package/dist/whatsapp/functions/findFirstWebLink.d.ts +21 -0
  385. package/dist/whatsapp/functions/forwardMessagesToChats.d.ts +20 -0
  386. package/dist/whatsapp/functions/frontendFireAndForget.d.ts +19 -0
  387. package/dist/whatsapp/functions/genLinkDeviceCodeForPhoneNumber.d.ts +19 -0
  388. package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +22 -0
  389. package/dist/whatsapp/functions/generateVideoThumbsAndDuration.d.ts +34 -0
  390. package/dist/whatsapp/functions/getABPropConfigValue.d.ts +21 -0
  391. package/dist/whatsapp/functions/getAsMms.d.ts +20 -0
  392. package/dist/whatsapp/functions/getCommunityParticipants.d.ts +20 -0
  393. package/dist/whatsapp/functions/getCountryShortcodeByPhone.d.ts +19 -0
  394. package/dist/whatsapp/functions/getCurrentLid.d.ts +21 -0
  395. package/dist/whatsapp/functions/getEphemeralFields.d.ts +24 -0
  396. package/dist/whatsapp/functions/getFanOutList.d.ts +24 -0
  397. package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +30 -0
  398. package/dist/whatsapp/functions/getGroupSizeLimit.d.ts +19 -0
  399. package/dist/whatsapp/functions/getHistorySyncProgress.d.ts +20 -0
  400. package/dist/whatsapp/functions/getMembershipApprovalRequests.d.ts +19 -0
  401. package/dist/whatsapp/functions/getNextLabelId.d.ts +18 -0
  402. package/dist/whatsapp/functions/getNumChatsPinned.d.ts +21 -0
  403. package/dist/whatsapp/functions/getOrderInfo.d.ts +20 -0
  404. package/dist/whatsapp/functions/getParticipants.d.ts +29 -0
  405. package/dist/whatsapp/functions/getPushname.d.ts +19 -0
  406. package/dist/whatsapp/functions/getQuotedMsgObj.d.ts +20 -0
  407. package/dist/whatsapp/functions/getReactions.d.ts +37 -0
  408. package/dist/whatsapp/functions/getSearchContext.d.ts +28 -0
  409. package/dist/whatsapp/functions/getVotes.d.ts +22 -0
  410. package/dist/whatsapp/functions/getWhatsAppWebExternalBetaJoinedIdb.d.ts +21 -0
  411. package/dist/whatsapp/functions/groupParticipants.d.ts +42 -0
  412. package/dist/whatsapp/functions/handleAck.d.ts +65 -0
  413. package/dist/whatsapp/functions/handleSingleMsg.d.ts +21 -0
  414. package/dist/whatsapp/functions/index.d.ts +134 -0
  415. package/dist/whatsapp/functions/initializeAltDeviceLinking.d.ts +19 -0
  416. package/dist/whatsapp/functions/isAnimatedWebp.d.ts +19 -0
  417. package/dist/whatsapp/functions/isAuthenticated.d.ts +27 -0
  418. package/dist/whatsapp/functions/isLegitErrorStack.d.ts +19 -0
  419. package/dist/whatsapp/functions/isRegistered.d.ts +19 -0
  420. package/dist/whatsapp/functions/isUnreadTypeMsg.d.ts +20 -0
  421. package/dist/whatsapp/functions/joinGroupViaInvite.d.ts +22 -0
  422. package/dist/whatsapp/functions/keepMessage.d.ts +23 -0
  423. package/dist/whatsapp/functions/labelAddAction.d.ts +20 -0
  424. package/dist/whatsapp/functions/markSeen.d.ts +34 -0
  425. package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +23 -0
  426. package/dist/whatsapp/functions/membershipApprovalRequestAction.d.ts +22 -0
  427. package/dist/whatsapp/functions/msgDataFromMsgModel.d.ts +19 -0
  428. package/dist/whatsapp/functions/msgFindQuery.d.ts +28 -0
  429. package/dist/whatsapp/functions/muteNewsletter.d.ts +19 -0
  430. package/dist/whatsapp/functions/processRawAudioVideo.d.ts +28 -0
  431. package/dist/whatsapp/functions/processRawMedia.d.ts +26 -0
  432. package/dist/whatsapp/functions/processRawSticker.d.ts +26 -0
  433. package/dist/whatsapp/functions/productVisibilitySet.d.ts +21 -0
  434. package/dist/whatsapp/functions/products.d.ts +43 -0
  435. package/dist/whatsapp/functions/profilePic.d.ts +36 -0
  436. package/dist/whatsapp/functions/queryAllGroups.d.ts +42 -0
  437. package/dist/whatsapp/functions/queryGroupInviteCode.d.ts +22 -0
  438. package/dist/whatsapp/functions/queryNewsletterMetadataByJid.d.ts +32 -0
  439. package/dist/whatsapp/functions/randomHex.d.ts +20 -0
  440. package/dist/whatsapp/functions/randomId.d.ts +22 -0
  441. package/dist/whatsapp/functions/resetGroupInviteCode.d.ts +22 -0
  442. package/dist/whatsapp/functions/sendClear.d.ts +21 -0
  443. package/dist/whatsapp/functions/sendCreateCommunity.d.ts +44 -0
  444. package/dist/whatsapp/functions/sendCreateGroup.d.ts +32 -0
  445. package/dist/whatsapp/functions/sendDelete.d.ts +21 -0
  446. package/dist/whatsapp/functions/sendExitGroup.d.ts +21 -0
  447. package/dist/whatsapp/functions/sendGroupParticipants.d.ts +50 -0
  448. package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +20 -0
  449. package/dist/whatsapp/functions/sendNewsletterMessageJob.d.ts +28 -0
  450. package/dist/whatsapp/functions/sendPinInChatMsg.d.ts +25 -0
  451. package/dist/whatsapp/functions/sendQueryExists.d.ts +36 -0
  452. package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +46 -0
  453. package/dist/whatsapp/functions/sendQueryGroupInviteCode.d.ts +18 -0
  454. package/dist/whatsapp/functions/sendReactionToMsg.d.ts +21 -0
  455. package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +20 -0
  456. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +20 -0
  457. package/dist/whatsapp/functions/setArchive.d.ts +31 -0
  458. package/dist/whatsapp/functions/setGroup.d.ts +29 -0
  459. package/dist/whatsapp/functions/setPin.d.ts +23 -0
  460. package/dist/whatsapp/functions/setPushname.d.ts +19 -0
  461. package/dist/whatsapp/functions/status.d.ts +31 -0
  462. package/dist/whatsapp/functions/syncABPropsTask.d.ts +19 -0
  463. package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +22 -0
  464. package/dist/whatsapp/functions/unixTime.d.ts +23 -0
  465. package/dist/whatsapp/functions/unmuteNewsletter.d.ts +19 -0
  466. package/dist/whatsapp/functions/updateCartEnabled.d.ts +19 -0
  467. package/dist/whatsapp/functions/updateDBForGroupAction.d.ts +50 -0
  468. package/dist/whatsapp/functions/updateNewsletterMsgRecord.d.ts +20 -0
  469. package/dist/whatsapp/functions/updateParticipants.d.ts +27 -0
  470. package/dist/whatsapp/functions/uploadMedia.d.ts +19 -0
  471. package/dist/whatsapp/functions/uploadProductImage.d.ts +20 -0
  472. package/dist/whatsapp/functions/uploadThumbnail.d.ts +38 -0
  473. package/dist/whatsapp/functions/upsertVotes.d.ts +29 -0
  474. package/dist/whatsapp/index.d.ts +25 -0
  475. package/dist/whatsapp/misc/Base64.d.ts +27 -0
  476. package/dist/whatsapp/misc/Browser.d.ts +34 -0
  477. package/dist/whatsapp/misc/ChatPresence.d.ts +28 -0
  478. package/dist/whatsapp/misc/Cmd.d.ts +159 -0
  479. package/dist/whatsapp/misc/Conn.d.ts +20 -0
  480. package/dist/whatsapp/misc/Constants.d.ts +48 -0
  481. package/dist/whatsapp/misc/EventEmitter.d.ts +107 -0
  482. package/dist/whatsapp/misc/ImageUtils.d.ts +26 -0
  483. package/dist/whatsapp/misc/IsOfficialClient.d.ts +21 -0
  484. package/dist/whatsapp/misc/MediaBlobCache.d.ts +34 -0
  485. package/dist/whatsapp/misc/MediaEntry.d.ts +37 -0
  486. package/dist/whatsapp/misc/MediaObject.d.ts +67 -0
  487. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +22 -0
  488. package/dist/whatsapp/misc/MediaPrep.d.ts +48 -0
  489. package/dist/whatsapp/misc/MediaUtils.d.ts +24 -0
  490. package/dist/whatsapp/misc/MsgKey.d.ts +47 -0
  491. package/dist/whatsapp/misc/MsgLoadState.d.ts +36 -0
  492. package/dist/whatsapp/misc/NetworkStatus.d.ts +20 -0
  493. package/dist/whatsapp/misc/OpaqueData.d.ts +43 -0
  494. package/dist/whatsapp/misc/ProductCatalogSession.d.ts +27 -0
  495. package/dist/whatsapp/misc/ServerProps.d.ts +20 -0
  496. package/dist/whatsapp/misc/Socket.d.ts +20 -0
  497. package/dist/whatsapp/misc/Stream.d.ts +20 -0
  498. package/dist/whatsapp/misc/UserPrefs.d.ts +39 -0
  499. package/dist/whatsapp/misc/VCard.d.ts +29 -0
  500. package/dist/whatsapp/misc/Wid.d.ts +68 -0
  501. package/dist/whatsapp/misc/WidFactory.d.ts +33 -0
  502. package/dist/whatsapp/misc/index.d.ts +42 -0
  503. package/dist/whatsapp/models/AggReactionsModel.d.ts +41 -0
  504. package/dist/whatsapp/models/AttachMediaModel.d.ts +73 -0
  505. package/dist/whatsapp/models/BlocklistModel.d.ts +41 -0
  506. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +41 -0
  507. package/dist/whatsapp/models/BusinessProfileModel.d.ts +54 -0
  508. package/dist/whatsapp/models/CallModel.d.ts +53 -0
  509. package/dist/whatsapp/models/CallParticipantModel.d.ts +50 -0
  510. package/dist/whatsapp/models/CartItemModel.d.ts +43 -0
  511. package/dist/whatsapp/models/CartModel.d.ts +44 -0
  512. package/dist/whatsapp/models/CatalogModel.d.ts +53 -0
  513. package/dist/whatsapp/models/ChatModel.d.ts +201 -0
  514. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +43 -0
  515. package/dist/whatsapp/models/ChatstateModel.d.ts +44 -0
  516. package/dist/whatsapp/models/ConnModel.d.ts +72 -0
  517. package/dist/whatsapp/models/ContactModel.d.ts +230 -0
  518. package/dist/whatsapp/models/ConversionTupleModel.d.ts +45 -0
  519. package/dist/whatsapp/models/EmojiVariantModel.d.ts +37 -0
  520. package/dist/whatsapp/models/GroupMetadataModel.d.ts +101 -0
  521. package/dist/whatsapp/models/HistorySyncProgressModel.d.ts +40 -0
  522. package/dist/whatsapp/models/LabelItemModel.d.ts +39 -0
  523. package/dist/whatsapp/models/LabelModel.d.ts +41 -0
  524. package/dist/whatsapp/models/MediaDataModel.d.ts +82 -0
  525. package/dist/whatsapp/models/Model.d.ts +63 -0
  526. package/dist/whatsapp/models/ModelChatBase.d.ts +45 -0
  527. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +39 -0
  528. package/dist/whatsapp/models/MsgInfoModel.d.ts +52 -0
  529. package/dist/whatsapp/models/MsgInfoParticipantModel.d.ts +41 -0
  530. package/dist/whatsapp/models/MsgModel.d.ts +392 -0
  531. package/dist/whatsapp/models/MuteModel.d.ts +54 -0
  532. package/dist/whatsapp/models/NetworkStatusModel.d.ts +43 -0
  533. package/dist/whatsapp/models/OrderItemModel.d.ts +47 -0
  534. package/dist/whatsapp/models/OrderModel.d.ts +48 -0
  535. package/dist/whatsapp/models/ParticipantModel.d.ts +42 -0
  536. package/dist/whatsapp/models/PinInChatModel.d.ts +50 -0
  537. package/dist/whatsapp/models/PresenceModel.d.ts +53 -0
  538. package/dist/whatsapp/models/ProductCollModel.d.ts +45 -0
  539. package/dist/whatsapp/models/ProductImageModel.d.ts +45 -0
  540. package/dist/whatsapp/models/ProductMessageListModel.d.ts +52 -0
  541. package/dist/whatsapp/models/ProductModel.d.ts +69 -0
  542. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +55 -0
  543. package/dist/whatsapp/models/QuickReplyModel.d.ts +45 -0
  544. package/dist/whatsapp/models/ReactionsModel.d.ts +49 -0
  545. package/dist/whatsapp/models/ReactionsSendersModel.d.ts +49 -0
  546. package/dist/whatsapp/models/RecentEmojiModel.d.ts +33 -0
  547. package/dist/whatsapp/models/RecentStickerModel.d.ts +39 -0
  548. package/dist/whatsapp/models/ReplyButtonModel.d.ts +38 -0
  549. package/dist/whatsapp/models/ServerPropsModel.d.ts +40 -0
  550. package/dist/whatsapp/models/SocketModel.d.ts +116 -0
  551. package/dist/whatsapp/models/StatusModel.d.ts +41 -0
  552. package/dist/whatsapp/models/StatusV3Model.d.ts +63 -0
  553. package/dist/whatsapp/models/StickerModel.d.ts +56 -0
  554. package/dist/whatsapp/models/StickerPackModel.d.ts +56 -0
  555. package/dist/whatsapp/models/StreamModel.d.ts +65 -0
  556. package/dist/whatsapp/models/TemplateButtonModel.d.ts +42 -0
  557. package/dist/whatsapp/models/UnreadMentionModel.d.ts +37 -0
  558. package/dist/whatsapp/models/index.d.ts +70 -0
  559. package/dist/whatsapp/multidevice/adv.d.ts +32 -0
  560. package/dist/whatsapp/multidevice/index.d.ts +18 -0
  561. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +33 -0
  562. package/dist/whatsapp/multidevice/waSignalStore.d.ts +76 -0
  563. package/dist/whatsapp/stores.d.ts +128 -0
  564. package/dist/whatsapp/websocket/WapNode.d.ts +29 -0
  565. package/dist/whatsapp/websocket/ensureE2ESessions.d.ts +20 -0
  566. package/dist/whatsapp/websocket/generateId.d.ts +19 -0
  567. package/dist/whatsapp/websocket/index.d.ts +23 -0
  568. package/dist/whatsapp/websocket/sendSmaxStanza.d.ts +20 -0
  569. package/dist/whatsapp/websocket/smax.d.ts +22 -0
  570. package/dist/whatsapp/websocket/startWebComms.d.ts +19 -0
  571. package/dist/whatsapp/websocket/stopComms.d.ts +20 -0
  572. package/dist/whatsapp/websocket/wap.d.ts +22 -0
  573. package/dist/wppconnect-wa.js +2 -0
  574. package/dist/wppconnect-wa.js.LICENSE.txt +90 -0
  575. package/package.json +91 -0
  576. package/playwright.config.ts +39 -0
  577. package/storageState.json +4 -0
  578. package/tests/check-auth.ts +39 -0
  579. package/tests/global.d.ts +24 -0
  580. package/tests/prepare.ts +40 -0
  581. package/tests/tsconfig.json +7 -0
  582. package/tests/wpp-test.ts +78 -0
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ export declare function iAmRestrictedMember(groupId: string | Wid): Promise<boolean>;
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ export declare function iAmSuperAdmin(groupId: string | Wid): Promise<boolean>;
@@ -0,0 +1,46 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { addParticipants } from './addParticipants';
17
+ export { approve } from './approve';
18
+ export { canAdd } from './canAdd';
19
+ export { canDemote } from './canDemote';
20
+ export { canPromote } from './canPromote';
21
+ export { canRemove } from './canRemove';
22
+ export { create } from './create';
23
+ export { demoteParticipants } from './demoteParticipants';
24
+ export { ensureGroup } from './ensureGroup';
25
+ export { ensureGroupAndParticipants } from './ensureGroupAndParticipants';
26
+ export { getAllGroups } from './getAllGroups';
27
+ export { getGroupInfoFromInviteCode } from './getGroupInfoFromInviteCode';
28
+ export { getGroupSizeLimit } from './getGroupSizeLimit';
29
+ export { getInviteCode } from './getInviteCode';
30
+ export { getMembershipRequests } from './getMembershipRequests';
31
+ export { getParticipants } from './getParticipants';
32
+ export { iAmAdmin } from './iAmAdmin';
33
+ export { iAmMember } from './iAmMember';
34
+ export { iAmRestrictedMember } from './iAmRestrictedMember';
35
+ export { iAmSuperAdmin } from './iAmSuperAdmin';
36
+ export { join } from './join';
37
+ export { leave } from './leave';
38
+ export { promoteParticipants } from './promoteParticipants';
39
+ export { reject } from './reject';
40
+ export { removeIcon } from './removeIcon';
41
+ export { removeParticipants } from './removeParticipants';
42
+ export { revokeInviteCode } from './revokeInviteCode';
43
+ export { setDescription } from './setDescription';
44
+ export { setIcon } from './setIcon';
45
+ export { GroupProperty, setProperty } from './setProperty';
46
+ export { setSubject } from './setSubject';
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * Join in a group from an invite code.
18
+ *
19
+ * @example
20
+ * ```javascript
21
+ * await WPP.group.join('abcde....');
22
+ * ```
23
+ *
24
+ * @category Group
25
+ */
26
+ export declare function join(inviteCode: string): Promise<{
27
+ id: string;
28
+ }>;
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Leave from a group.
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.leave('[number]@g.us');
23
+ * ```
24
+ *
25
+ * @category Group
26
+ */
27
+ export declare function leave(groupId: string | Wid): Promise<void>;
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Promote group member to admin
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * // One member
23
+ * await WPP.group.promoteParticipants('123456@g.us', '123456@c.us');
24
+ *
25
+ * // More than one member
26
+ * await WPP.group.promoteParticipants('123456@g.us', ['123456@c.us','123456@c.us']);
27
+ * ```
28
+ *
29
+ * @category Group
30
+ */
31
+ export declare function promoteParticipants(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<void>;
@@ -0,0 +1,30 @@
1
+ /*!
2
+ * Copyright 2023 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Reject a membership request to group
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.reject(12345645@g.us, 5554999999999@c.us);
23
+ * ```
24
+ *
25
+ * @category Group
26
+ */
27
+ export declare function reject(groupId: string | Wid, membershipIds: (string | Wid) | (string | Wid)[]): Promise<{
28
+ error: any;
29
+ wid: Wid;
30
+ }[]>;
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Copyright 2023 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Remove the group icon (group profile picture)
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.removeIcon('[group@g.us]');
23
+ * ```
24
+ *
25
+ * @category Group
26
+ */
27
+ export declare function removeIcon(groupId: string | Wid): Promise<boolean>;
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Remove participants of a group
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * // One member
23
+ * await WPP.group.removeParticipants('123456@g.us', '123456@c.us');
24
+ *
25
+ * // More than one member
26
+ * await WPP.group.removeParticipants('123456@g.us', ['123456@c.us','123456@c.us']);
27
+ * ```
28
+ *
29
+ * @category Group
30
+ */
31
+ export declare function removeParticipants(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<void>;
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Revoke the current invite code and generate new one.
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * const code = WPP.group.revokeInviteCode('[group-id]@g.us');
23
+ * const link = 'https://chat.whatsapp.com/' + code;
24
+ * ```
25
+ *
26
+ * @category Group
27
+ */
28
+ export declare function revokeInviteCode(groupId: string | Wid): Promise<string>;
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Define the group description
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.setDescription('[group-id]@g.us', 'new group description');
23
+ * ```
24
+ *
25
+ * @category Group
26
+ */
27
+ export declare function setDescription(groupId: string | Wid, description: string): Promise<boolean>;
@@ -0,0 +1,33 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Set the group icon (group profile picture)
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.setIcon('[group@g.us]', 'data:image/jpeg;base64,.....');
23
+ * ```
24
+ *
25
+ * @category Group
26
+ */
27
+ export declare function setIcon(groupId: string | Wid, content: string): Promise<{
28
+ eurl: string;
29
+ status: number;
30
+ tag: string;
31
+ token: string;
32
+ _duplicate: boolean;
33
+ }>;
@@ -0,0 +1,54 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ export declare enum GroupProperty {
18
+ ANNOUNCEMENT = "announcement",
19
+ EPHEMERAL = "ephemeral",
20
+ RESTRICT = "restrict"
21
+ }
22
+ /**
23
+ * Set the group property
24
+ *
25
+ * @example
26
+ * ```javascript
27
+ * // Only admins can send message
28
+ * await WPP.group.setProperty('[group-id]@g.us', 'announcement', true);
29
+ *
30
+ * // All can send message
31
+ * await WPP.group.setProperty('[group-id]@g.us', 'announcement', false);
32
+ *
33
+ * // Disatble temporary messages
34
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 0);
35
+ *
36
+ * // Enable temporary messages for 24 hours
37
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 86400);
38
+ *
39
+ * // Enable temporary messages for 7 days
40
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 604800);
41
+ *
42
+ * // Enable temporary messages for 90 days
43
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 7776000);
44
+ *
45
+ * // Only admins can edit group properties
46
+ * await WPP.group.setProperty('[group-id]@g.us', 'restrict', true);
47
+ *
48
+ * // All can edit group properties
49
+ * await WPP.group.setProperty('[group-id]@g.us', 'restrict', false);
50
+ * ```
51
+ *
52
+ * @category Group
53
+ */
54
+ export declare function setProperty(groupId: string | Wid, property: GroupProperty, value: 0 | 1 | 86400 | 604800 | 7776000 | boolean): Promise<boolean>;
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Define the group subject
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.setSubject('[group-id]@g.us', 'new group subject');
23
+ * ```
24
+ *
25
+ * @category Group
26
+ */
27
+ export declare function setSubject(groupId: string | Wid, subject: string): Promise<boolean>;
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import './events';
17
+ export * from './functions';
@@ -0,0 +1,52 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * [Tracker description]
18
+ *
19
+ * @see https://www.thyngster.com/ga4-measurement-protocol-cheatsheet/
20
+ */
21
+ export declare class Tracker {
22
+ readonly trackingId: string;
23
+ static collectURL: string;
24
+ static pageLoadHash: number;
25
+ static get clientState(): {
26
+ firstVisit: boolean;
27
+ cid: any;
28
+ };
29
+ private events;
30
+ private userProperties;
31
+ private lastTime;
32
+ private hitsCount;
33
+ documentTitle: string;
34
+ constructor(trackingId: string);
35
+ private get sid();
36
+ private get sct();
37
+ private getHeader;
38
+ /**
39
+ * Get the current user properties
40
+ */
41
+ private getUserProperties;
42
+ /**
43
+ * Process all queued events
44
+ */
45
+ private processEvents;
46
+ /**
47
+ * Send a user engagement each 5 minutes
48
+ */
49
+ private processUserEngagement;
50
+ trackEvent(eventName: string, params?: Record<string, string | number | boolean>): void;
51
+ setUserProperty(key: string, value: any): void;
52
+ }
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './Tracker';
17
+ export declare const waVersion: string;
18
+ export declare function trackException(description: string, fatal?: boolean): void;
@@ -0,0 +1,42 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import './config';
17
+ import './deviceName';
18
+ import './gtag';
19
+ import * as webpack from './webpack';
20
+ export { webpack };
21
+ export { isInjected, isReady, isFullReady } from './webpack';
22
+ export { config, Config } from './config';
23
+ export * as blocklist from './blocklist';
24
+ export * as call from './call';
25
+ export * as catalog from './catalog';
26
+ export * as chat from './chat';
27
+ export * as conn from './conn';
28
+ export * as contact from './contact';
29
+ export * as ev from './eventEmitter';
30
+ export * as community from './community';
31
+ export * as group from './group';
32
+ export * as labels from './labels';
33
+ export * as profile from './profile';
34
+ export * as status from './status';
35
+ export * as util from './util';
36
+ export * as newsletter from './newsletter';
37
+ export * as whatsapp from './whatsapp';
38
+ export * as order from './order';
39
+ export { emit, emitAsync, eventNames, getMaxListeners, hasListeners, listenTo, listenerCount, listeners, listenersAny, many, off, offAny, on, onAny, once, prependAny, prependListener, prependMany, prependOnceListener, removeAllListeners, removeListener, setMaxListeners, stopListeningTo, waitFor, } from './eventEmitter';
40
+ export declare const version: string;
41
+ export declare const supportedWhatsappWeb: string;
42
+ export declare const license = "Apache-2.0";
@@ -0,0 +1,36 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface NewLabelOptions {
17
+ /**
18
+ * If it's decimal, send it as a number. If it's hexadecimal, send it as a string.
19
+ * If labelColor is omitted, the color will be generated automatically
20
+ */
21
+ labelColor?: string | number;
22
+ }
23
+ /**
24
+ * Add a new label
25
+ * Use await WPP.labels.getLabelColorPalette() to get the list of available colors
26
+ * @example
27
+ * ```javascript
28
+ * await WPP.labels.addNewLabel(`Name of label`);
29
+ * //or
30
+ * await WPP.labels.addNewLabel(`Name of label`, { labelColor: '#dfaef0' });
31
+ * ```
32
+ * //or with color index
33
+ * await WPP.labels.addNewLabel(`Name of label`, { labelColor: 16 });
34
+ * ```
35
+ */
36
+ export declare function addNewLabel(labelName: string, options?: NewLabelOptions): Promise<import("..").Label>;
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ export interface AddOrRemoveLabelsOptions {
18
+ labelId: string;
19
+ type: 'add' | 'remove';
20
+ }
21
+ /**
22
+ * Add or remove label from chats
23
+ * @example
24
+ * ```javascript
25
+ * await WPP.labels.addOrRemoveLabels(
26
+ * ['[number]@c.us','[number]@c.us'],
27
+ * [{labelId:'76', type:'add'},{labelId:'75', type:'remove'}]
28
+ * )
29
+ * ```
30
+ */
31
+ export declare function addOrRemoveLabels(chatIds: string | Wid | (string | Wid)[], options: AddOrRemoveLabelsOptions | AddOrRemoveLabelsOptions[]): Promise<any>;
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * Check if color is in label palette
18
+ * @param color If it's decimal, send it as a number. If it's hexadecimal, send it as a string
19
+ * @example
20
+ * ```javascript
21
+ * await WPP.labels.colorIsInLabelPalette('#ffd429');
22
+ * //or
23
+ * await WPP.labels.colorIsInLabelPalette(4284794111);
24
+ * ```
25
+ */
26
+ export declare function colorIsInLabelPalette(color: string | number): Promise<boolean>;