@softtynet/zca-js 2.1.3
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.
- package/.prettierrc +5 -0
- package/CODE_OF_CONDUCT.md +163 -0
- package/CONTRIBUTING.md +470 -0
- package/LICENSE +21 -0
- package/README.md +225 -0
- package/SECURITY.md +83 -0
- package/dist/Errors/ZaloApiError.d.ts +4 -0
- package/dist/Errors/ZaloApiError.js +7 -0
- package/dist/Errors/ZaloApiLoginQRAborted.d.ts +4 -0
- package/dist/Errors/ZaloApiLoginQRAborted.js +7 -0
- package/dist/Errors/ZaloApiLoginQRDeclined.d.ts +4 -0
- package/dist/Errors/ZaloApiLoginQRDeclined.js +7 -0
- package/dist/Errors/ZaloApiMissingImageMetadataGetter.d.ts +4 -0
- package/dist/Errors/ZaloApiMissingImageMetadataGetter.js +7 -0
- package/dist/Errors/index.d.ts +4 -0
- package/dist/Errors/index.js +4 -0
- package/dist/apis/acceptFriendRequest.d.ts +2 -0
- package/dist/apis/acceptFriendRequest.js +28 -0
- package/dist/apis/addGroupBlockedMember.d.ts +2 -0
- package/dist/apis/addGroupBlockedMember.js +28 -0
- package/dist/apis/addGroupDeputy.d.ts +2 -0
- package/dist/apis/addGroupDeputy.js +30 -0
- package/dist/apis/addPollOptions.d.ts +14 -0
- package/dist/apis/addPollOptions.js +26 -0
- package/dist/apis/addQuickMessage.d.ts +11 -0
- package/dist/apis/addQuickMessage.js +60 -0
- package/dist/apis/addReaction.d.ts +18 -0
- package/dist/apis/addReaction.js +294 -0
- package/dist/apis/addUnreadMark.d.ts +8 -0
- package/dist/apis/addUnreadMark.js +52 -0
- package/dist/apis/addUserToGroup.d.ts +5 -0
- package/dist/apis/addUserToGroup.js +34 -0
- package/dist/apis/blockUser.d.ts +2 -0
- package/dist/apis/blockUser.js +28 -0
- package/dist/apis/blockViewFeed.d.ts +2 -0
- package/dist/apis/blockViewFeed.js +30 -0
- package/dist/apis/changeAccountAvatar.d.ts +3 -0
- package/dist/apis/changeAccountAvatar.js +52 -0
- package/dist/apis/changeFriendAlias.d.ts +2 -0
- package/dist/apis/changeFriendAlias.js +27 -0
- package/dist/apis/changeGroupAvatar.d.ts +3 -0
- package/dist/apis/changeGroupAvatar.js +44 -0
- package/dist/apis/changeGroupName.d.ts +4 -0
- package/dist/apis/changeGroupName.js +32 -0
- package/dist/apis/changeGroupOwner.d.ts +4 -0
- package/dist/apis/changeGroupOwner.js +30 -0
- package/dist/apis/createAutoReply.d.ts +14 -0
- package/dist/apis/createAutoReply.js +37 -0
- package/dist/apis/createCatalog.d.ts +7 -0
- package/dist/apis/createCatalog.js +29 -0
- package/dist/apis/createGroup.d.ts +28 -0
- package/dist/apis/createGroup.js +43 -0
- package/dist/apis/createNote.d.ts +7 -0
- package/dist/apis/createNote.js +47 -0
- package/dist/apis/createPoll.d.ts +36 -0
- package/dist/apis/createPoll.js +40 -0
- package/dist/apis/createProductCatalog.d.ts +23 -0
- package/dist/apis/createProductCatalog.js +50 -0
- package/dist/apis/createReminder.d.ts +12 -0
- package/dist/apis/createReminder.js +63 -0
- package/dist/apis/custom.d.ts +9 -0
- package/dist/apis/custom.js +15 -0
- package/dist/apis/deleteAutoReply.d.ts +5 -0
- package/dist/apis/deleteAutoReply.js +29 -0
- package/dist/apis/deleteAvatar.d.ts +9 -0
- package/dist/apis/deleteAvatar.js +27 -0
- package/dist/apis/deleteCatalog.d.ts +2 -0
- package/dist/apis/deleteCatalog.js +28 -0
- package/dist/apis/deleteChat.d.ts +19 -0
- package/dist/apis/deleteChat.js +50 -0
- package/dist/apis/deleteGroupInviteBox.d.ts +9 -0
- package/dist/apis/deleteGroupInviteBox.js +27 -0
- package/dist/apis/deleteMessage.d.ts +14 -0
- package/dist/apis/deleteMessage.js +52 -0
- package/dist/apis/deleteProductCatalog.d.ts +10 -0
- package/dist/apis/deleteProductCatalog.js +31 -0
- package/dist/apis/disableGroupLink.d.ts +2 -0
- package/dist/apis/disableGroupLink.js +24 -0
- package/dist/apis/disperseGroup.d.ts +2 -0
- package/dist/apis/disperseGroup.js +28 -0
- package/dist/apis/editNote.d.ts +17 -0
- package/dist/apis/editNote.js +46 -0
- package/dist/apis/editReminder.d.ts +13 -0
- package/dist/apis/editReminder.js +61 -0
- package/dist/apis/enableGroupLink.d.ts +6 -0
- package/dist/apis/enableGroupLink.js +25 -0
- package/dist/apis/fetchAccountInfo.d.ts +5 -0
- package/dist/apis/fetchAccountInfo.js +10 -0
- package/dist/apis/findUser.d.ts +3 -0
- package/dist/apis/findUser.js +42 -0
- package/dist/apis/findUserByUsername.d.ts +3 -0
- package/dist/apis/findUserByUsername.js +27 -0
- package/dist/apis/forwardMessage.d.ts +24 -0
- package/dist/apis/forwardMessage.js +99 -0
- package/dist/apis/getAliasList.d.ts +8 -0
- package/dist/apis/getAliasList.js +27 -0
- package/dist/apis/getAllFriends.d.ts +3 -0
- package/dist/apis/getAllFriends.js +34 -0
- package/dist/apis/getAllGroups.d.ts +7 -0
- package/dist/apis/getAllGroups.js +10 -0
- package/dist/apis/getArchivedChatList.d.ts +5 -0
- package/dist/apis/getArchivedChatList.js +23 -0
- package/dist/apis/getAutoDeleteChat.d.ts +9 -0
- package/dist/apis/getAutoDeleteChat.js +21 -0
- package/dist/apis/getAutoReplyList.d.ts +6 -0
- package/dist/apis/getAutoReplyList.js +24 -0
- package/dist/apis/getAvatarList.d.ts +12 -0
- package/dist/apis/getAvatarList.js +28 -0
- package/dist/apis/getAvatarUrlProfile.d.ts +7 -0
- package/dist/apis/getAvatarUrlProfile.js +30 -0
- package/dist/apis/getBizAccount.d.ts +24 -0
- package/dist/apis/getBizAccount.js +27 -0
- package/dist/apis/getCatalogList.d.ts +18 -0
- package/dist/apis/getCatalogList.js +32 -0
- package/dist/apis/getCloseFriends.d.ts +3 -0
- package/dist/apis/getCloseFriends.js +20 -0
- package/dist/apis/getContext.d.ts +1 -0
- package/dist/apis/getContext.js +4 -0
- package/dist/apis/getCookie.d.ts +1 -0
- package/dist/apis/getCookie.js +9 -0
- package/dist/apis/getFriendBoardList.d.ts +5 -0
- package/dist/apis/getFriendBoardList.js +26 -0
- package/dist/apis/getFriendOnlines.d.ts +10 -0
- package/dist/apis/getFriendOnlines.js +35 -0
- package/dist/apis/getFriendRecommendations.d.ts +42 -0
- package/dist/apis/getFriendRecommendations.js +27 -0
- package/dist/apis/getFriendRequestStatus.d.ts +8 -0
- package/dist/apis/getFriendRequestStatus.js +25 -0
- package/dist/apis/getFullAvatar.d.ts +5 -0
- package/dist/apis/getFullAvatar.js +25 -0
- package/dist/apis/getGroupBlockedMember.d.ts +23 -0
- package/dist/apis/getGroupBlockedMember.js +29 -0
- package/dist/apis/getGroupChatHistory.d.ts +8 -0
- package/dist/apis/getGroupChatHistory.js +36 -0
- package/dist/apis/getGroupInfo.d.ts +16 -0
- package/dist/apis/getGroupInfo.js +32 -0
- package/dist/apis/getGroupInviteBoxInfo.d.ts +32 -0
- package/dist/apis/getGroupInviteBoxInfo.js +38 -0
- package/dist/apis/getGroupInviteBoxList.d.ts +38 -0
- package/dist/apis/getGroupInviteBoxList.js +31 -0
- package/dist/apis/getGroupLinkDetail.d.ts +9 -0
- package/dist/apis/getGroupLinkDetail.js +25 -0
- package/dist/apis/getGroupLinkInfo.d.ts +34 -0
- package/dist/apis/getGroupLinkInfo.js +28 -0
- package/dist/apis/getGroupMembersInfo.d.ts +17 -0
- package/dist/apis/getGroupMembersInfo.js +24 -0
- package/dist/apis/getHiddenConversations.d.ts +11 -0
- package/dist/apis/getHiddenConversations.js +23 -0
- package/dist/apis/getLabels.d.ts +7 -0
- package/dist/apis/getLabels.js +28 -0
- package/dist/apis/getListBoard.d.ts +21 -0
- package/dist/apis/getListBoard.js +45 -0
- package/dist/apis/getListReminder.d.ts +28 -0
- package/dist/apis/getListReminder.js +47 -0
- package/dist/apis/getMultiUsersByPhones.d.ts +5 -0
- package/dist/apis/getMultiUsersByPhones.js +39 -0
- package/dist/apis/getMute.d.ts +13 -0
- package/dist/apis/getMute.js +22 -0
- package/dist/apis/getOwnId.d.ts +1 -0
- package/dist/apis/getOwnId.js +4 -0
- package/dist/apis/getPendingGroupMembers.d.ts +11 -0
- package/dist/apis/getPendingGroupMembers.js +27 -0
- package/dist/apis/getPinConversations.d.ts +5 -0
- package/dist/apis/getPinConversations.js +22 -0
- package/dist/apis/getPollDetail.d.ts +3 -0
- package/dist/apis/getPollDetail.js +30 -0
- package/dist/apis/getProductCatalogList.d.ts +20 -0
- package/dist/apis/getProductCatalogList.js +33 -0
- package/dist/apis/getQR.d.ts +4 -0
- package/dist/apis/getQR.js +29 -0
- package/dist/apis/getQuickMessageList.d.ts +7 -0
- package/dist/apis/getQuickMessageList.js +24 -0
- package/dist/apis/getRelatedFriendGroup.d.ts +6 -0
- package/dist/apis/getRelatedFriendGroup.js +30 -0
- package/dist/apis/getReminder.d.ts +3 -0
- package/dist/apis/getReminder.js +25 -0
- package/dist/apis/getReminderResponses.d.ts +5 -0
- package/dist/apis/getReminderResponses.js +24 -0
- package/dist/apis/getSentFriendRequest.d.ts +18 -0
- package/dist/apis/getSentFriendRequest.js +24 -0
- package/dist/apis/getSettings.d.ts +3 -0
- package/dist/apis/getSettings.js +20 -0
- package/dist/apis/getStickerCategoryDetail.d.ts +3 -0
- package/dist/apis/getStickerCategoryDetail.js +24 -0
- package/dist/apis/getStickers.d.ts +1 -0
- package/dist/apis/getStickers.js +40 -0
- package/dist/apis/getStickersDetail.d.ts +3 -0
- package/dist/apis/getStickersDetail.js +40 -0
- package/dist/apis/getUnreadMark.d.ts +14 -0
- package/dist/apis/getUnreadMark.js +30 -0
- package/dist/apis/getUserInfo.d.ts +8 -0
- package/dist/apis/getUserInfo.js +44 -0
- package/dist/apis/inviteUserToGroups.d.ts +10 -0
- package/dist/apis/inviteUserToGroups.js +30 -0
- package/dist/apis/joinGroupInviteBox.d.ts +2 -0
- package/dist/apis/joinGroupInviteBox.js +25 -0
- package/dist/apis/joinGroupLink.d.ts +2 -0
- package/dist/apis/joinGroupLink.js +27 -0
- package/dist/apis/keepAlive.d.ts +4 -0
- package/dist/apis/keepAlive.js +22 -0
- package/dist/apis/lastOnline.d.ts +7 -0
- package/dist/apis/lastOnline.js +26 -0
- package/dist/apis/leaveGroup.d.ts +4 -0
- package/dist/apis/leaveGroup.js +33 -0
- package/dist/apis/listen.d.ts +102 -0
- package/dist/apis/listen.js +425 -0
- package/dist/apis/lockPoll.d.ts +2 -0
- package/dist/apis/lockPoll.js +28 -0
- package/dist/apis/login.d.ts +3 -0
- package/dist/apis/login.js +96 -0
- package/dist/apis/loginQR.d.ts +71 -0
- package/dist/apis/loginQR.js +338 -0
- package/dist/apis/parseLink.d.ts +21 -0
- package/dist/apis/parseLink.js +27 -0
- package/dist/apis/rejectFriendRequest.d.ts +2 -0
- package/dist/apis/rejectFriendRequest.js +27 -0
- package/dist/apis/removeFriend.d.ts +2 -0
- package/dist/apis/removeFriend.js +28 -0
- package/dist/apis/removeFriendAlias.d.ts +2 -0
- package/dist/apis/removeFriendAlias.js +24 -0
- package/dist/apis/removeGroupBlockedMember.d.ts +2 -0
- package/dist/apis/removeGroupBlockedMember.js +28 -0
- package/dist/apis/removeGroupDeputy.d.ts +2 -0
- package/dist/apis/removeGroupDeputy.js +30 -0
- package/dist/apis/removeQuickMessage.d.ts +5 -0
- package/dist/apis/removeQuickMessage.js +27 -0
- package/dist/apis/removeReminder.d.ts +3 -0
- package/dist/apis/removeReminder.js +40 -0
- package/dist/apis/removeUnreadMark.d.ts +8 -0
- package/dist/apis/removeUnreadMark.js +50 -0
- package/dist/apis/removeUserFromGroup.d.ts +4 -0
- package/dist/apis/removeUserFromGroup.js +34 -0
- package/dist/apis/resetHiddenConversPin.d.ts +2 -0
- package/dist/apis/resetHiddenConversPin.js +20 -0
- package/dist/apis/reuseAvatar.d.ts +2 -0
- package/dist/apis/reuseAvatar.js +26 -0
- package/dist/apis/reviewPendingMemberRequest.d.ts +14 -0
- package/dist/apis/reviewPendingMemberRequest.js +38 -0
- package/dist/apis/searchSticker.d.ts +3 -0
- package/dist/apis/searchSticker.js +28 -0
- package/dist/apis/sendBankCard.d.ts +9 -0
- package/dist/apis/sendBankCard.js +37 -0
- package/dist/apis/sendCard.d.ts +10 -0
- package/dist/apis/sendCard.js +59 -0
- package/dist/apis/sendDeliveredEvent.d.ts +16 -0
- package/dist/apis/sendDeliveredEvent.js +55 -0
- package/dist/apis/sendFriendRequest.d.ts +2 -0
- package/dist/apis/sendFriendRequest.js +39 -0
- package/dist/apis/sendLink.d.ts +10 -0
- package/dist/apis/sendLink.js +61 -0
- package/dist/apis/sendMessage.d.ts +99 -0
- package/dist/apis/sendMessage.js +452 -0
- package/dist/apis/sendReport.d.ts +17 -0
- package/dist/apis/sendReport.js +53 -0
- package/dist/apis/sendSeenEvent.d.ts +16 -0
- package/dist/apis/sendSeenEvent.js +63 -0
- package/dist/apis/sendSticker.d.ts +10 -0
- package/dist/apis/sendSticker.js +57 -0
- package/dist/apis/sendTypingEvent.d.ts +5 -0
- package/dist/apis/sendTypingEvent.js +33 -0
- package/dist/apis/sendVideo.d.ts +35 -0
- package/dist/apis/sendVideo.js +118 -0
- package/dist/apis/sendVoice.d.ts +12 -0
- package/dist/apis/sendVoice.js +73 -0
- package/dist/apis/setHiddenConversations.d.ts +3 -0
- package/dist/apis/setHiddenConversations.js +39 -0
- package/dist/apis/setMute.d.ts +20 -0
- package/dist/apis/setMute.js +67 -0
- package/dist/apis/setPinnedConversations.d.ts +3 -0
- package/dist/apis/setPinnedConversations.js +34 -0
- package/dist/apis/sharePoll.d.ts +2 -0
- package/dist/apis/sharePoll.js +28 -0
- package/dist/apis/unblockUser.d.ts +2 -0
- package/dist/apis/unblockUser.js +28 -0
- package/dist/apis/undo.d.ts +9 -0
- package/dist/apis/undo.js +42 -0
- package/dist/apis/undoFriendRequest.d.ts +2 -0
- package/dist/apis/undoFriendRequest.js +27 -0
- package/dist/apis/updateActiveStatus.d.ts +4 -0
- package/dist/apis/updateActiveStatus.js +27 -0
- package/dist/apis/updateArchivedChatList.d.ts +10 -0
- package/dist/apis/updateArchivedChatList.js +34 -0
- package/dist/apis/updateAutoDeleteChat.d.ts +9 -0
- package/dist/apis/updateAutoDeleteChat.js +40 -0
- package/dist/apis/updateAutoReply.d.ts +15 -0
- package/dist/apis/updateAutoReply.js +38 -0
- package/dist/apis/updateCatalog.d.ts +11 -0
- package/dist/apis/updateCatalog.js +30 -0
- package/dist/apis/updateGroupSettings.d.ts +40 -0
- package/dist/apis/updateGroupSettings.js +43 -0
- package/dist/apis/updateHiddenConversPin.d.ts +2 -0
- package/dist/apis/updateHiddenConversPin.js +30 -0
- package/dist/apis/updateLabels.d.ts +15 -0
- package/dist/apis/updateLabels.js +34 -0
- package/dist/apis/updateLang.d.ts +6 -0
- package/dist/apis/updateLang.js +30 -0
- package/dist/apis/updateProductCatalog.d.ts +25 -0
- package/dist/apis/updateProductCatalog.js +51 -0
- package/dist/apis/updateProfile.d.ts +20 -0
- package/dist/apis/updateProfile.js +43 -0
- package/dist/apis/updateProfileBio.d.ts +2 -0
- package/dist/apis/updateProfileBio.js +27 -0
- package/dist/apis/updateQuickMessage.d.ts +11 -0
- package/dist/apis/updateQuickMessage.js +61 -0
- package/dist/apis/updateSettings.d.ts +16 -0
- package/dist/apis/updateSettings.js +90 -0
- package/dist/apis/upgradeGroupToCommunity.d.ts +2 -0
- package/dist/apis/upgradeGroupToCommunity.js +27 -0
- package/dist/apis/uploadAttachment.d.ts +50 -0
- package/dist/apis/uploadAttachment.js +197 -0
- package/dist/apis/uploadProductPhoto.d.ts +14 -0
- package/dist/apis/uploadProductPhoto.js +50 -0
- package/dist/apis/votePoll.d.ts +5 -0
- package/dist/apis/votePoll.js +29 -0
- package/dist/apis.d.ts +299 -0
- package/dist/apis.js +299 -0
- package/dist/cjs/Errors/ZaloApiError.cjs +11 -0
- package/dist/cjs/Errors/ZaloApiLoginQRAborted.cjs +12 -0
- package/dist/cjs/Errors/ZaloApiLoginQRDeclined.cjs +12 -0
- package/dist/cjs/Errors/ZaloApiMissingImageMetadataGetter.cjs +12 -0
- package/dist/cjs/apis/acceptFriendRequest.cjs +33 -0
- package/dist/cjs/apis/addGroupBlockedMember.cjs +33 -0
- package/dist/cjs/apis/addGroupDeputy.cjs +35 -0
- package/dist/cjs/apis/addPollOptions.cjs +31 -0
- package/dist/cjs/apis/addQuickMessage.cjs +65 -0
- package/dist/cjs/apis/addReaction.cjs +307 -0
- package/dist/cjs/apis/addUnreadMark.cjs +65 -0
- package/dist/cjs/apis/addUserToGroup.cjs +39 -0
- package/dist/cjs/apis/blockUser.cjs +33 -0
- package/dist/cjs/apis/blockViewFeed.cjs +35 -0
- package/dist/cjs/apis/changeAccountAvatar.cjs +57 -0
- package/dist/cjs/apis/changeFriendAlias.cjs +32 -0
- package/dist/cjs/apis/changeGroupAvatar.cjs +49 -0
- package/dist/cjs/apis/changeGroupName.cjs +37 -0
- package/dist/cjs/apis/changeGroupOwner.cjs +35 -0
- package/dist/cjs/apis/createAutoReply.cjs +42 -0
- package/dist/cjs/apis/createCatalog.cjs +34 -0
- package/dist/cjs/apis/createGroup.cjs +48 -0
- package/dist/cjs/apis/createNote.cjs +52 -0
- package/dist/cjs/apis/createPoll.cjs +45 -0
- package/dist/cjs/apis/createProductCatalog.cjs +55 -0
- package/dist/cjs/apis/createReminder.cjs +76 -0
- package/dist/cjs/apis/custom.cjs +19 -0
- package/dist/cjs/apis/deleteAutoReply.cjs +34 -0
- package/dist/cjs/apis/deleteAvatar.cjs +32 -0
- package/dist/cjs/apis/deleteCatalog.cjs +33 -0
- package/dist/cjs/apis/deleteChat.cjs +63 -0
- package/dist/cjs/apis/deleteGroupInviteBox.cjs +32 -0
- package/dist/cjs/apis/deleteMessage.cjs +65 -0
- package/dist/cjs/apis/deleteProductCatalog.cjs +36 -0
- package/dist/cjs/apis/disableGroupLink.cjs +29 -0
- package/dist/cjs/apis/disperseGroup.cjs +33 -0
- package/dist/cjs/apis/editNote.cjs +51 -0
- package/dist/cjs/apis/editReminder.cjs +74 -0
- package/dist/cjs/apis/enableGroupLink.cjs +30 -0
- package/dist/cjs/apis/fetchAccountInfo.cjs +15 -0
- package/dist/cjs/apis/findUser.cjs +55 -0
- package/dist/cjs/apis/findUserByUsername.cjs +40 -0
- package/dist/cjs/apis/forwardMessage.cjs +112 -0
- package/dist/cjs/apis/getAliasList.cjs +32 -0
- package/dist/cjs/apis/getAllFriends.cjs +47 -0
- package/dist/cjs/apis/getAllGroups.cjs +15 -0
- package/dist/cjs/apis/getArchivedChatList.cjs +28 -0
- package/dist/cjs/apis/getAutoDeleteChat.cjs +26 -0
- package/dist/cjs/apis/getAutoReplyList.cjs +29 -0
- package/dist/cjs/apis/getAvatarList.cjs +33 -0
- package/dist/cjs/apis/getAvatarUrlProfile.cjs +43 -0
- package/dist/cjs/apis/getBizAccount.cjs +32 -0
- package/dist/cjs/apis/getCatalogList.cjs +37 -0
- package/dist/cjs/apis/getCloseFriends.cjs +25 -0
- package/dist/cjs/apis/getContext.cjs +9 -0
- package/dist/cjs/apis/getCookie.cjs +14 -0
- package/dist/cjs/apis/getFriendBoardList.cjs +31 -0
- package/dist/cjs/apis/getFriendOnlines.cjs +40 -0
- package/dist/cjs/apis/getFriendRecommendations.cjs +32 -0
- package/dist/cjs/apis/getFriendRequestStatus.cjs +30 -0
- package/dist/cjs/apis/getFullAvatar.cjs +30 -0
- package/dist/cjs/apis/getGroupBlockedMember.cjs +34 -0
- package/dist/cjs/apis/getGroupChatHistory.cjs +50 -0
- package/dist/cjs/apis/getGroupInfo.cjs +37 -0
- package/dist/cjs/apis/getGroupInviteBoxInfo.cjs +43 -0
- package/dist/cjs/apis/getGroupInviteBoxList.cjs +36 -0
- package/dist/cjs/apis/getGroupLinkDetail.cjs +30 -0
- package/dist/cjs/apis/getGroupLinkInfo.cjs +33 -0
- package/dist/cjs/apis/getGroupMembersInfo.cjs +29 -0
- package/dist/cjs/apis/getHiddenConversations.cjs +28 -0
- package/dist/cjs/apis/getLabels.cjs +33 -0
- package/dist/cjs/apis/getListBoard.cjs +58 -0
- package/dist/cjs/apis/getListReminder.cjs +60 -0
- package/dist/cjs/apis/getMultiUsersByPhones.cjs +52 -0
- package/dist/cjs/apis/getMute.cjs +27 -0
- package/dist/cjs/apis/getOwnId.cjs +9 -0
- package/dist/cjs/apis/getPendingGroupMembers.cjs +32 -0
- package/dist/cjs/apis/getPinConversations.cjs +27 -0
- package/dist/cjs/apis/getPollDetail.cjs +35 -0
- package/dist/cjs/apis/getProductCatalogList.cjs +38 -0
- package/dist/cjs/apis/getQR.cjs +34 -0
- package/dist/cjs/apis/getQuickMessageList.cjs +29 -0
- package/dist/cjs/apis/getRelatedFriendGroup.cjs +35 -0
- package/dist/cjs/apis/getReminder.cjs +30 -0
- package/dist/cjs/apis/getReminderResponses.cjs +29 -0
- package/dist/cjs/apis/getSentFriendRequest.cjs +29 -0
- package/dist/cjs/apis/getSettings.cjs +25 -0
- package/dist/cjs/apis/getStickerCategoryDetail.cjs +29 -0
- package/dist/cjs/apis/getStickers.cjs +45 -0
- package/dist/cjs/apis/getStickersDetail.cjs +45 -0
- package/dist/cjs/apis/getUnreadMark.cjs +35 -0
- package/dist/cjs/apis/getUserInfo.cjs +57 -0
- package/dist/cjs/apis/inviteUserToGroups.cjs +35 -0
- package/dist/cjs/apis/joinGroupInviteBox.cjs +30 -0
- package/dist/cjs/apis/joinGroupLink.cjs +32 -0
- package/dist/cjs/apis/keepAlive.cjs +27 -0
- package/dist/cjs/apis/lastOnline.cjs +31 -0
- package/dist/cjs/apis/leaveGroup.cjs +38 -0
- package/dist/cjs/apis/listen.cjs +439 -0
- package/dist/cjs/apis/lockPoll.cjs +33 -0
- package/dist/cjs/apis/login.cjs +102 -0
- package/dist/cjs/apis/loginQR.cjs +343 -0
- package/dist/cjs/apis/parseLink.cjs +32 -0
- package/dist/cjs/apis/rejectFriendRequest.cjs +32 -0
- package/dist/cjs/apis/removeFriend.cjs +33 -0
- package/dist/cjs/apis/removeFriendAlias.cjs +29 -0
- package/dist/cjs/apis/removeGroupBlockedMember.cjs +33 -0
- package/dist/cjs/apis/removeGroupDeputy.cjs +35 -0
- package/dist/cjs/apis/removeQuickMessage.cjs +32 -0
- package/dist/cjs/apis/removeReminder.cjs +53 -0
- package/dist/cjs/apis/removeUnreadMark.cjs +63 -0
- package/dist/cjs/apis/removeUserFromGroup.cjs +39 -0
- package/dist/cjs/apis/resetHiddenConversPin.cjs +25 -0
- package/dist/cjs/apis/reuseAvatar.cjs +31 -0
- package/dist/cjs/apis/reviewPendingMemberRequest.cjs +43 -0
- package/dist/cjs/apis/searchSticker.cjs +33 -0
- package/dist/cjs/apis/sendBankCard.cjs +50 -0
- package/dist/cjs/apis/sendCard.cjs +72 -0
- package/dist/cjs/apis/sendDeliveredEvent.cjs +68 -0
- package/dist/cjs/apis/sendFriendRequest.cjs +44 -0
- package/dist/cjs/apis/sendLink.cjs +74 -0
- package/dist/cjs/apis/sendMessage.cjs +465 -0
- package/dist/cjs/apis/sendReport.cjs +66 -0
- package/dist/cjs/apis/sendSeenEvent.cjs +76 -0
- package/dist/cjs/apis/sendSticker.cjs +70 -0
- package/dist/cjs/apis/sendTypingEvent.cjs +46 -0
- package/dist/cjs/apis/sendVideo.cjs +131 -0
- package/dist/cjs/apis/sendVoice.cjs +86 -0
- package/dist/cjs/apis/setHiddenConversations.cjs +52 -0
- package/dist/cjs/apis/setMute.cjs +80 -0
- package/dist/cjs/apis/setPinnedConversations.cjs +47 -0
- package/dist/cjs/apis/sharePoll.cjs +33 -0
- package/dist/cjs/apis/unblockUser.cjs +33 -0
- package/dist/cjs/apis/undo.cjs +55 -0
- package/dist/cjs/apis/undoFriendRequest.cjs +32 -0
- package/dist/cjs/apis/updateActiveStatus.cjs +32 -0
- package/dist/cjs/apis/updateArchivedChatList.cjs +39 -0
- package/dist/cjs/apis/updateAutoDeleteChat.cjs +53 -0
- package/dist/cjs/apis/updateAutoReply.cjs +43 -0
- package/dist/cjs/apis/updateCatalog.cjs +35 -0
- package/dist/cjs/apis/updateGroupSettings.cjs +48 -0
- package/dist/cjs/apis/updateHiddenConversPin.cjs +35 -0
- package/dist/cjs/apis/updateLabels.cjs +39 -0
- package/dist/cjs/apis/updateLang.cjs +35 -0
- package/dist/cjs/apis/updateProductCatalog.cjs +56 -0
- package/dist/cjs/apis/updateProfile.cjs +48 -0
- package/dist/cjs/apis/updateProfileBio.cjs +32 -0
- package/dist/cjs/apis/updateQuickMessage.cjs +66 -0
- package/dist/cjs/apis/updateSettings.cjs +95 -0
- package/dist/cjs/apis/upgradeGroupToCommunity.cjs +32 -0
- package/dist/cjs/apis/uploadAttachment.cjs +210 -0
- package/dist/cjs/apis/uploadProductPhoto.cjs +55 -0
- package/dist/cjs/apis/votePoll.cjs +34 -0
- package/dist/cjs/apis.cjs +304 -0
- package/dist/cjs/context.cjs +34 -0
- package/dist/cjs/index.cjs +158 -0
- package/dist/cjs/models/AutoReply.cjs +9 -0
- package/dist/cjs/models/Board.cjs +8 -0
- package/dist/cjs/models/DeliveredMessage.cjs +23 -0
- package/dist/cjs/models/Enum.cjs +258 -0
- package/dist/cjs/models/FriendEvent.cjs +87 -0
- package/dist/cjs/models/Group.cjs +13 -0
- package/dist/cjs/models/GroupEvent.cjs +94 -0
- package/dist/cjs/models/Message.cjs +35 -0
- package/dist/cjs/models/Reaction.cjs +74 -0
- package/dist/cjs/models/Reminder.cjs +9 -0
- package/dist/cjs/models/SeenMessage.cjs +23 -0
- package/dist/cjs/models/Typing.cjs +23 -0
- package/dist/cjs/models/Undo.cjs +16 -0
- package/dist/cjs/models/ZBusiness.cjs +39 -0
- package/dist/cjs/update.cjs +34 -0
- package/dist/cjs/utils.cjs +731 -0
- package/dist/cjs/zalo.cjs +112 -0
- package/dist/context.d.ts +179 -0
- package/dist/context.js +28 -0
- package/dist/index.d.ts +157 -0
- package/dist/index.js +14 -0
- package/dist/models/Attachment.d.ts +9 -0
- package/dist/models/Attachment.js +1 -0
- package/dist/models/AutoReply.d.ts +20 -0
- package/dist/models/AutoReply.js +7 -0
- package/dist/models/Board.d.ts +60 -0
- package/dist/models/Board.js +6 -0
- package/dist/models/Catalog.d.ts +16 -0
- package/dist/models/Catalog.js +1 -0
- package/dist/models/DeliveredMessage.d.ts +27 -0
- package/dist/models/DeliveredMessage.js +17 -0
- package/dist/models/Enum.d.ts +251 -0
- package/dist/models/Enum.js +256 -0
- package/dist/models/FriendEvent.d.ts +107 -0
- package/dist/models/FriendEvent.js +83 -0
- package/dist/models/Group.d.ts +125 -0
- package/dist/models/Group.js +11 -0
- package/dist/models/GroupEvent.d.ts +178 -0
- package/dist/models/GroupEvent.js +90 -0
- package/dist/models/Label.d.ts +10 -0
- package/dist/models/Label.js +1 -0
- package/dist/models/Message.d.ts +91 -0
- package/dist/models/Message.js +29 -0
- package/dist/models/ProductCatalog.d.ts +17 -0
- package/dist/models/ProductCatalog.js +1 -0
- package/dist/models/QuickMessage.d.ts +25 -0
- package/dist/models/QuickMessage.js +1 -0
- package/dist/models/Reaction.d.ts +85 -0
- package/dist/models/Reaction.js +70 -0
- package/dist/models/Reminder.d.ts +51 -0
- package/dist/models/Reminder.js +7 -0
- package/dist/models/SeenMessage.d.ts +26 -0
- package/dist/models/SeenMessage.js +17 -0
- package/dist/models/Sticker.d.ts +27 -0
- package/dist/models/Sticker.js +1 -0
- package/dist/models/Typing.d.ts +24 -0
- package/dist/models/Typing.js +17 -0
- package/dist/models/Undo.d.ts +34 -0
- package/dist/models/Undo.js +12 -0
- package/dist/models/User.d.ts +62 -0
- package/dist/models/User.js +1 -0
- package/dist/models/ZBusiness.d.ts +22 -0
- package/dist/models/ZBusiness.js +35 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/dist/update.d.ts +2 -0
- package/dist/update.js +29 -0
- package/dist/utils.d.ts +190 -0
- package/dist/utils.js +746 -0
- package/dist/zalo.d.ts +41 -0
- package/dist/zalo.js +107 -0
- package/eslint.config.js +21 -0
- package/index.d.ts +2 -0
- package/package.json +78 -0
- package/rollup.config.js +28 -0
package/dist/apis.d.ts
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { Listener } from "./apis/listen.js";
|
|
2
|
+
import { acceptFriendRequestFactory } from "./apis/acceptFriendRequest.js";
|
|
3
|
+
import { addGroupBlockedMemberFactory } from "./apis/addGroupBlockedMember.js";
|
|
4
|
+
import { addGroupDeputyFactory } from "./apis/addGroupDeputy.js";
|
|
5
|
+
import { addPollOptionsFactory } from "./apis/addPollOptions.js";
|
|
6
|
+
import { addQuickMessageFactory } from "./apis/addQuickMessage.js";
|
|
7
|
+
import { addReactionFactory } from "./apis/addReaction.js";
|
|
8
|
+
import { addUnreadMarkFactory } from "./apis/addUnreadMark.js";
|
|
9
|
+
import { addUserToGroupFactory } from "./apis/addUserToGroup.js";
|
|
10
|
+
import { blockUserFactory } from "./apis/blockUser.js";
|
|
11
|
+
import { blockViewFeedFactory } from "./apis/blockViewFeed.js";
|
|
12
|
+
import { changeAccountAvatarFactory } from "./apis/changeAccountAvatar.js";
|
|
13
|
+
import { changeFriendAliasFactory } from "./apis/changeFriendAlias.js";
|
|
14
|
+
import { changeGroupAvatarFactory } from "./apis/changeGroupAvatar.js";
|
|
15
|
+
import { changeGroupNameFactory } from "./apis/changeGroupName.js";
|
|
16
|
+
import { changeGroupOwnerFactory } from "./apis/changeGroupOwner.js";
|
|
17
|
+
import { createAutoReplyFactory } from "./apis/createAutoReply.js";
|
|
18
|
+
import { createCatalogFactory } from "./apis/createCatalog.js";
|
|
19
|
+
import { createGroupFactory } from "./apis/createGroup.js";
|
|
20
|
+
import { createNoteFactory } from "./apis/createNote.js";
|
|
21
|
+
import { createPollFactory } from "./apis/createPoll.js";
|
|
22
|
+
import { createProductCatalogFactory } from "./apis/createProductCatalog.js";
|
|
23
|
+
import { createReminderFactory } from "./apis/createReminder.js";
|
|
24
|
+
import { deleteAutoReplyFactory } from "./apis/deleteAutoReply.js";
|
|
25
|
+
import { deleteAvatarFactory } from "./apis/deleteAvatar.js";
|
|
26
|
+
import { deleteCatalogFactory } from "./apis/deleteCatalog.js";
|
|
27
|
+
import { deleteChatFactory } from "./apis/deleteChat.js";
|
|
28
|
+
import { deleteGroupInviteBoxFactory } from "./apis/deleteGroupInviteBox.js";
|
|
29
|
+
import { deleteMessageFactory } from "./apis/deleteMessage.js";
|
|
30
|
+
import { deleteProductCatalogFactory } from "./apis/deleteProductCatalog.js";
|
|
31
|
+
import { disableGroupLinkFactory } from "./apis/disableGroupLink.js";
|
|
32
|
+
import { disperseGroupFactory } from "./apis/disperseGroup.js";
|
|
33
|
+
import { editNoteFactory } from "./apis/editNote.js";
|
|
34
|
+
import { editReminderFactory } from "./apis/editReminder.js";
|
|
35
|
+
import { enableGroupLinkFactory } from "./apis/enableGroupLink.js";
|
|
36
|
+
import { fetchAccountInfoFactory } from "./apis/fetchAccountInfo.js";
|
|
37
|
+
import { findUserFactory } from "./apis/findUser.js";
|
|
38
|
+
import { findUserByUsernameFactory } from "./apis/findUserByUsername.js";
|
|
39
|
+
import { forwardMessageFactory } from "./apis/forwardMessage.js";
|
|
40
|
+
import { getAliasListFactory } from "./apis/getAliasList.js";
|
|
41
|
+
import { getAllFriendsFactory } from "./apis/getAllFriends.js";
|
|
42
|
+
import { getAllGroupsFactory } from "./apis/getAllGroups.js";
|
|
43
|
+
import { getArchivedChatListFactory } from "./apis/getArchivedChatList.js";
|
|
44
|
+
import { getAutoDeleteChatFactory } from "./apis/getAutoDeleteChat.js";
|
|
45
|
+
import { getAutoReplyListFactory } from "./apis/getAutoReplyList.js";
|
|
46
|
+
import { getAvatarListFactory } from "./apis/getAvatarList.js";
|
|
47
|
+
import { getAvatarUrlProfileFactory } from "./apis/getAvatarUrlProfile.js";
|
|
48
|
+
import { getBizAccountFactory } from "./apis/getBizAccount.js";
|
|
49
|
+
import { getCatalogListFactory } from "./apis/getCatalogList.js";
|
|
50
|
+
import { getCloseFriendsFactory } from "./apis/getCloseFriends.js";
|
|
51
|
+
import { getContextFactory } from "./apis/getContext.js";
|
|
52
|
+
import { getCookieFactory } from "./apis/getCookie.js";
|
|
53
|
+
import { getFriendBoardListFactory } from "./apis/getFriendBoardList.js";
|
|
54
|
+
import { getFriendOnlinesFactory } from "./apis/getFriendOnlines.js";
|
|
55
|
+
import { getFriendRecommendationsFactory } from "./apis/getFriendRecommendations.js";
|
|
56
|
+
import { getFriendRequestStatusFactory } from "./apis/getFriendRequestStatus.js";
|
|
57
|
+
import { getFullAvatarFactory } from "./apis/getFullAvatar.js";
|
|
58
|
+
import { getGroupBlockedMemberFactory } from "./apis/getGroupBlockedMember.js";
|
|
59
|
+
import { getGroupChatHistoryFactory } from "./apis/getGroupChatHistory.js";
|
|
60
|
+
import { getGroupInfoFactory } from "./apis/getGroupInfo.js";
|
|
61
|
+
import { getGroupInviteBoxInfoFactory } from "./apis/getGroupInviteBoxInfo.js";
|
|
62
|
+
import { getGroupInviteBoxListFactory } from "./apis/getGroupInviteBoxList.js";
|
|
63
|
+
import { getGroupLinkDetailFactory } from "./apis/getGroupLinkDetail.js";
|
|
64
|
+
import { getGroupLinkInfoFactory } from "./apis/getGroupLinkInfo.js";
|
|
65
|
+
import { getGroupMembersInfoFactory } from "./apis/getGroupMembersInfo.js";
|
|
66
|
+
import { getHiddenConversationsFactory } from "./apis/getHiddenConversations.js";
|
|
67
|
+
import { getLabelsFactory } from "./apis/getLabels.js";
|
|
68
|
+
import { getListBoardFactory } from "./apis/getListBoard.js";
|
|
69
|
+
import { getListReminderFactory } from "./apis/getListReminder.js";
|
|
70
|
+
import { getMultiUsersByPhonesFactory } from "./apis/getMultiUsersByPhones.js";
|
|
71
|
+
import { getMuteFactory } from "./apis/getMute.js";
|
|
72
|
+
import { getOwnIdFactory } from "./apis/getOwnId.js";
|
|
73
|
+
import { getPendingGroupMembersFactory } from "./apis/getPendingGroupMembers.js";
|
|
74
|
+
import { getPinConversationsFactory } from "./apis/getPinConversations.js";
|
|
75
|
+
import { getPollDetailFactory } from "./apis/getPollDetail.js";
|
|
76
|
+
import { getProductCatalogListFactory } from "./apis/getProductCatalogList.js";
|
|
77
|
+
import { getQRFactory } from "./apis/getQR.js";
|
|
78
|
+
import { getQuickMessageListFactory } from "./apis/getQuickMessageList.js";
|
|
79
|
+
import { getRelatedFriendGroupFactory } from "./apis/getRelatedFriendGroup.js";
|
|
80
|
+
import { getReminderFactory } from "./apis/getReminder.js";
|
|
81
|
+
import { getReminderResponsesFactory } from "./apis/getReminderResponses.js";
|
|
82
|
+
import { getSentFriendRequestFactory } from "./apis/getSentFriendRequest.js";
|
|
83
|
+
import { getSettingsFactory } from "./apis/getSettings.js";
|
|
84
|
+
import { getStickerCategoryDetailFactory } from "./apis/getStickerCategoryDetail.js";
|
|
85
|
+
import { getStickersFactory } from "./apis/getStickers.js";
|
|
86
|
+
import { getStickersDetailFactory } from "./apis/getStickersDetail.js";
|
|
87
|
+
import { getUnreadMarkFactory } from "./apis/getUnreadMark.js";
|
|
88
|
+
import { getUserInfoFactory } from "./apis/getUserInfo.js";
|
|
89
|
+
import { inviteUserToGroupsFactory } from "./apis/inviteUserToGroups.js";
|
|
90
|
+
import { joinGroupInviteBoxFactory } from "./apis/joinGroupInviteBox.js";
|
|
91
|
+
import { joinGroupLinkFactory } from "./apis/joinGroupLink.js";
|
|
92
|
+
import { keepAliveFactory } from "./apis/keepAlive.js";
|
|
93
|
+
import { lastOnlineFactory } from "./apis/lastOnline.js";
|
|
94
|
+
import { leaveGroupFactory } from "./apis/leaveGroup.js";
|
|
95
|
+
import { lockPollFactory } from "./apis/lockPoll.js";
|
|
96
|
+
import { parseLinkFactory } from "./apis/parseLink.js";
|
|
97
|
+
import { rejectFriendRequestFactory } from "./apis/rejectFriendRequest.js";
|
|
98
|
+
import { removeFriendFactory } from "./apis/removeFriend.js";
|
|
99
|
+
import { removeFriendAliasFactory } from "./apis/removeFriendAlias.js";
|
|
100
|
+
import { removeGroupBlockedMemberFactory } from "./apis/removeGroupBlockedMember.js";
|
|
101
|
+
import { removeGroupDeputyFactory } from "./apis/removeGroupDeputy.js";
|
|
102
|
+
import { removeQuickMessageFactory } from "./apis/removeQuickMessage.js";
|
|
103
|
+
import { removeReminderFactory } from "./apis/removeReminder.js";
|
|
104
|
+
import { removeUnreadMarkFactory } from "./apis/removeUnreadMark.js";
|
|
105
|
+
import { removeUserFromGroupFactory } from "./apis/removeUserFromGroup.js";
|
|
106
|
+
import { resetHiddenConversPinFactory } from "./apis/resetHiddenConversPin.js";
|
|
107
|
+
import { reuseAvatarFactory } from "./apis/reuseAvatar.js";
|
|
108
|
+
import { reviewPendingMemberRequestFactory } from "./apis/reviewPendingMemberRequest.js";
|
|
109
|
+
import { searchStickerFactory } from "./apis/searchSticker.js";
|
|
110
|
+
import { sendBankCardFactory } from "./apis/sendBankCard.js";
|
|
111
|
+
import { sendCardFactory } from "./apis/sendCard.js";
|
|
112
|
+
import { sendDeliveredEventFactory } from "./apis/sendDeliveredEvent.js";
|
|
113
|
+
import { sendFriendRequestFactory } from "./apis/sendFriendRequest.js";
|
|
114
|
+
import { sendLinkFactory } from "./apis/sendLink.js";
|
|
115
|
+
import { sendMessageFactory } from "./apis/sendMessage.js";
|
|
116
|
+
import { sendReportFactory } from "./apis/sendReport.js";
|
|
117
|
+
import { sendSeenEventFactory } from "./apis/sendSeenEvent.js";
|
|
118
|
+
import { sendStickerFactory } from "./apis/sendSticker.js";
|
|
119
|
+
import { sendTypingEventFactory } from "./apis/sendTypingEvent.js";
|
|
120
|
+
import { sendVideoFactory } from "./apis/sendVideo.js";
|
|
121
|
+
import { sendVoiceFactory } from "./apis/sendVoice.js";
|
|
122
|
+
import { setHiddenConversationsFactory } from "./apis/setHiddenConversations.js";
|
|
123
|
+
import { setMuteFactory } from "./apis/setMute.js";
|
|
124
|
+
import { setPinnedConversationsFactory } from "./apis/setPinnedConversations.js";
|
|
125
|
+
import { sharePollFactory } from "./apis/sharePoll.js";
|
|
126
|
+
import { unblockUserFactory } from "./apis/unblockUser.js";
|
|
127
|
+
import { undoFactory } from "./apis/undo.js";
|
|
128
|
+
import { undoFriendRequestFactory } from "./apis/undoFriendRequest.js";
|
|
129
|
+
import { updateActiveStatusFactory } from "./apis/updateActiveStatus.js";
|
|
130
|
+
import { updateArchivedChatListFactory } from "./apis/updateArchivedChatList.js";
|
|
131
|
+
import { updateAutoDeleteChatFactory } from "./apis/updateAutoDeleteChat.js";
|
|
132
|
+
import { updateAutoReplyFactory } from "./apis/updateAutoReply.js";
|
|
133
|
+
import { updateCatalogFactory } from "./apis/updateCatalog.js";
|
|
134
|
+
import { updateGroupSettingsFactory } from "./apis/updateGroupSettings.js";
|
|
135
|
+
import { updateHiddenConversPinFactory } from "./apis/updateHiddenConversPin.js";
|
|
136
|
+
import { updateLabelsFactory } from "./apis/updateLabels.js";
|
|
137
|
+
import { updateLangFactory } from "./apis/updateLang.js";
|
|
138
|
+
import { updateProductCatalogFactory } from "./apis/updateProductCatalog.js";
|
|
139
|
+
import { updateProfileFactory } from "./apis/updateProfile.js";
|
|
140
|
+
import { updateProfileBioFactory } from "./apis/updateProfileBio.js";
|
|
141
|
+
import { updateQuickMessageFactory } from "./apis/updateQuickMessage.js";
|
|
142
|
+
import { updateSettingsFactory } from "./apis/updateSettings.js";
|
|
143
|
+
import { upgradeGroupToCommunityFactory } from "./apis/upgradeGroupToCommunity.js";
|
|
144
|
+
import { uploadAttachmentFactory } from "./apis/uploadAttachment.js";
|
|
145
|
+
import { uploadProductPhotoFactory } from "./apis/uploadProductPhoto.js";
|
|
146
|
+
import { votePollFactory } from "./apis/votePoll.js";
|
|
147
|
+
import { customFactory } from "./apis/custom.js";
|
|
148
|
+
import type { ZPWServiceMap, ContextSession } from "./context.js";
|
|
149
|
+
export declare class API {
|
|
150
|
+
zpwServiceMap: ZPWServiceMap;
|
|
151
|
+
listener: Listener;
|
|
152
|
+
acceptFriendRequest: ReturnType<typeof acceptFriendRequestFactory>;
|
|
153
|
+
addGroupBlockedMember: ReturnType<typeof addGroupBlockedMemberFactory>;
|
|
154
|
+
addGroupDeputy: ReturnType<typeof addGroupDeputyFactory>;
|
|
155
|
+
addPollOptions: ReturnType<typeof addPollOptionsFactory>;
|
|
156
|
+
addQuickMessage: ReturnType<typeof addQuickMessageFactory>;
|
|
157
|
+
addReaction: ReturnType<typeof addReactionFactory>;
|
|
158
|
+
addUnreadMark: ReturnType<typeof addUnreadMarkFactory>;
|
|
159
|
+
addUserToGroup: ReturnType<typeof addUserToGroupFactory>;
|
|
160
|
+
blockUser: ReturnType<typeof blockUserFactory>;
|
|
161
|
+
blockViewFeed: ReturnType<typeof blockViewFeedFactory>;
|
|
162
|
+
changeAccountAvatar: ReturnType<typeof changeAccountAvatarFactory>;
|
|
163
|
+
changeFriendAlias: ReturnType<typeof changeFriendAliasFactory>;
|
|
164
|
+
changeGroupAvatar: ReturnType<typeof changeGroupAvatarFactory>;
|
|
165
|
+
changeGroupName: ReturnType<typeof changeGroupNameFactory>;
|
|
166
|
+
changeGroupOwner: ReturnType<typeof changeGroupOwnerFactory>;
|
|
167
|
+
createAutoReply: ReturnType<typeof createAutoReplyFactory>;
|
|
168
|
+
createCatalog: ReturnType<typeof createCatalogFactory>;
|
|
169
|
+
createGroup: ReturnType<typeof createGroupFactory>;
|
|
170
|
+
createNote: ReturnType<typeof createNoteFactory>;
|
|
171
|
+
createPoll: ReturnType<typeof createPollFactory>;
|
|
172
|
+
createProductCatalog: ReturnType<typeof createProductCatalogFactory>;
|
|
173
|
+
createReminder: ReturnType<typeof createReminderFactory>;
|
|
174
|
+
deleteAutoReply: ReturnType<typeof deleteAutoReplyFactory>;
|
|
175
|
+
deleteAvatar: ReturnType<typeof deleteAvatarFactory>;
|
|
176
|
+
deleteCatalog: ReturnType<typeof deleteCatalogFactory>;
|
|
177
|
+
deleteChat: ReturnType<typeof deleteChatFactory>;
|
|
178
|
+
deleteGroupInviteBox: ReturnType<typeof deleteGroupInviteBoxFactory>;
|
|
179
|
+
deleteMessage: ReturnType<typeof deleteMessageFactory>;
|
|
180
|
+
deleteProductCatalog: ReturnType<typeof deleteProductCatalogFactory>;
|
|
181
|
+
disableGroupLink: ReturnType<typeof disableGroupLinkFactory>;
|
|
182
|
+
disperseGroup: ReturnType<typeof disperseGroupFactory>;
|
|
183
|
+
editNote: ReturnType<typeof editNoteFactory>;
|
|
184
|
+
editReminder: ReturnType<typeof editReminderFactory>;
|
|
185
|
+
enableGroupLink: ReturnType<typeof enableGroupLinkFactory>;
|
|
186
|
+
fetchAccountInfo: ReturnType<typeof fetchAccountInfoFactory>;
|
|
187
|
+
findUser: ReturnType<typeof findUserFactory>;
|
|
188
|
+
findUserByUsername: ReturnType<typeof findUserByUsernameFactory>;
|
|
189
|
+
forwardMessage: ReturnType<typeof forwardMessageFactory>;
|
|
190
|
+
getAliasList: ReturnType<typeof getAliasListFactory>;
|
|
191
|
+
getAllFriends: ReturnType<typeof getAllFriendsFactory>;
|
|
192
|
+
getAllGroups: ReturnType<typeof getAllGroupsFactory>;
|
|
193
|
+
getArchivedChatList: ReturnType<typeof getArchivedChatListFactory>;
|
|
194
|
+
getAutoDeleteChat: ReturnType<typeof getAutoDeleteChatFactory>;
|
|
195
|
+
getAutoReplyList: ReturnType<typeof getAutoReplyListFactory>;
|
|
196
|
+
getAvatarList: ReturnType<typeof getAvatarListFactory>;
|
|
197
|
+
getAvatarUrlProfile: ReturnType<typeof getAvatarUrlProfileFactory>;
|
|
198
|
+
getBizAccount: ReturnType<typeof getBizAccountFactory>;
|
|
199
|
+
getCatalogList: ReturnType<typeof getCatalogListFactory>;
|
|
200
|
+
getCloseFriends: ReturnType<typeof getCloseFriendsFactory>;
|
|
201
|
+
getContext: ReturnType<typeof getContextFactory>;
|
|
202
|
+
getCookie: ReturnType<typeof getCookieFactory>;
|
|
203
|
+
getFriendBoardList: ReturnType<typeof getFriendBoardListFactory>;
|
|
204
|
+
getFriendOnlines: ReturnType<typeof getFriendOnlinesFactory>;
|
|
205
|
+
getFriendRecommendations: ReturnType<typeof getFriendRecommendationsFactory>;
|
|
206
|
+
getFriendRequestStatus: ReturnType<typeof getFriendRequestStatusFactory>;
|
|
207
|
+
getFullAvatar: ReturnType<typeof getFullAvatarFactory>;
|
|
208
|
+
getGroupBlockedMember: ReturnType<typeof getGroupBlockedMemberFactory>;
|
|
209
|
+
getGroupChatHistory: ReturnType<typeof getGroupChatHistoryFactory>;
|
|
210
|
+
getGroupInfo: ReturnType<typeof getGroupInfoFactory>;
|
|
211
|
+
getGroupInviteBoxInfo: ReturnType<typeof getGroupInviteBoxInfoFactory>;
|
|
212
|
+
getGroupInviteBoxList: ReturnType<typeof getGroupInviteBoxListFactory>;
|
|
213
|
+
getGroupLinkDetail: ReturnType<typeof getGroupLinkDetailFactory>;
|
|
214
|
+
getGroupLinkInfo: ReturnType<typeof getGroupLinkInfoFactory>;
|
|
215
|
+
getGroupMembersInfo: ReturnType<typeof getGroupMembersInfoFactory>;
|
|
216
|
+
getHiddenConversations: ReturnType<typeof getHiddenConversationsFactory>;
|
|
217
|
+
getLabels: ReturnType<typeof getLabelsFactory>;
|
|
218
|
+
getListBoard: ReturnType<typeof getListBoardFactory>;
|
|
219
|
+
getListReminder: ReturnType<typeof getListReminderFactory>;
|
|
220
|
+
getMultiUsersByPhones: ReturnType<typeof getMultiUsersByPhonesFactory>;
|
|
221
|
+
getMute: ReturnType<typeof getMuteFactory>;
|
|
222
|
+
getOwnId: ReturnType<typeof getOwnIdFactory>;
|
|
223
|
+
getPendingGroupMembers: ReturnType<typeof getPendingGroupMembersFactory>;
|
|
224
|
+
getPinConversations: ReturnType<typeof getPinConversationsFactory>;
|
|
225
|
+
getPollDetail: ReturnType<typeof getPollDetailFactory>;
|
|
226
|
+
getProductCatalogList: ReturnType<typeof getProductCatalogListFactory>;
|
|
227
|
+
getQR: ReturnType<typeof getQRFactory>;
|
|
228
|
+
getQuickMessageList: ReturnType<typeof getQuickMessageListFactory>;
|
|
229
|
+
getRelatedFriendGroup: ReturnType<typeof getRelatedFriendGroupFactory>;
|
|
230
|
+
getReminder: ReturnType<typeof getReminderFactory>;
|
|
231
|
+
getReminderResponses: ReturnType<typeof getReminderResponsesFactory>;
|
|
232
|
+
getSentFriendRequest: ReturnType<typeof getSentFriendRequestFactory>;
|
|
233
|
+
getSettings: ReturnType<typeof getSettingsFactory>;
|
|
234
|
+
getStickerCategoryDetail: ReturnType<typeof getStickerCategoryDetailFactory>;
|
|
235
|
+
getStickers: ReturnType<typeof getStickersFactory>;
|
|
236
|
+
getStickersDetail: ReturnType<typeof getStickersDetailFactory>;
|
|
237
|
+
getUnreadMark: ReturnType<typeof getUnreadMarkFactory>;
|
|
238
|
+
getUserInfo: ReturnType<typeof getUserInfoFactory>;
|
|
239
|
+
inviteUserToGroups: ReturnType<typeof inviteUserToGroupsFactory>;
|
|
240
|
+
joinGroupInviteBox: ReturnType<typeof joinGroupInviteBoxFactory>;
|
|
241
|
+
joinGroupLink: ReturnType<typeof joinGroupLinkFactory>;
|
|
242
|
+
keepAlive: ReturnType<typeof keepAliveFactory>;
|
|
243
|
+
lastOnline: ReturnType<typeof lastOnlineFactory>;
|
|
244
|
+
leaveGroup: ReturnType<typeof leaveGroupFactory>;
|
|
245
|
+
lockPoll: ReturnType<typeof lockPollFactory>;
|
|
246
|
+
parseLink: ReturnType<typeof parseLinkFactory>;
|
|
247
|
+
rejectFriendRequest: ReturnType<typeof rejectFriendRequestFactory>;
|
|
248
|
+
removeFriend: ReturnType<typeof removeFriendFactory>;
|
|
249
|
+
removeFriendAlias: ReturnType<typeof removeFriendAliasFactory>;
|
|
250
|
+
removeGroupBlockedMember: ReturnType<typeof removeGroupBlockedMemberFactory>;
|
|
251
|
+
removeGroupDeputy: ReturnType<typeof removeGroupDeputyFactory>;
|
|
252
|
+
removeQuickMessage: ReturnType<typeof removeQuickMessageFactory>;
|
|
253
|
+
removeReminder: ReturnType<typeof removeReminderFactory>;
|
|
254
|
+
removeUnreadMark: ReturnType<typeof removeUnreadMarkFactory>;
|
|
255
|
+
removeUserFromGroup: ReturnType<typeof removeUserFromGroupFactory>;
|
|
256
|
+
resetHiddenConversPin: ReturnType<typeof resetHiddenConversPinFactory>;
|
|
257
|
+
reuseAvatar: ReturnType<typeof reuseAvatarFactory>;
|
|
258
|
+
reviewPendingMemberRequest: ReturnType<typeof reviewPendingMemberRequestFactory>;
|
|
259
|
+
searchSticker: ReturnType<typeof searchStickerFactory>;
|
|
260
|
+
sendBankCard: ReturnType<typeof sendBankCardFactory>;
|
|
261
|
+
sendCard: ReturnType<typeof sendCardFactory>;
|
|
262
|
+
sendDeliveredEvent: ReturnType<typeof sendDeliveredEventFactory>;
|
|
263
|
+
sendFriendRequest: ReturnType<typeof sendFriendRequestFactory>;
|
|
264
|
+
sendLink: ReturnType<typeof sendLinkFactory>;
|
|
265
|
+
sendMessage: ReturnType<typeof sendMessageFactory>;
|
|
266
|
+
sendReport: ReturnType<typeof sendReportFactory>;
|
|
267
|
+
sendSeenEvent: ReturnType<typeof sendSeenEventFactory>;
|
|
268
|
+
sendSticker: ReturnType<typeof sendStickerFactory>;
|
|
269
|
+
sendTypingEvent: ReturnType<typeof sendTypingEventFactory>;
|
|
270
|
+
sendVideo: ReturnType<typeof sendVideoFactory>;
|
|
271
|
+
sendVoice: ReturnType<typeof sendVoiceFactory>;
|
|
272
|
+
setHiddenConversations: ReturnType<typeof setHiddenConversationsFactory>;
|
|
273
|
+
setMute: ReturnType<typeof setMuteFactory>;
|
|
274
|
+
setPinnedConversations: ReturnType<typeof setPinnedConversationsFactory>;
|
|
275
|
+
sharePoll: ReturnType<typeof sharePollFactory>;
|
|
276
|
+
unblockUser: ReturnType<typeof unblockUserFactory>;
|
|
277
|
+
undo: ReturnType<typeof undoFactory>;
|
|
278
|
+
undoFriendRequest: ReturnType<typeof undoFriendRequestFactory>;
|
|
279
|
+
updateActiveStatus: ReturnType<typeof updateActiveStatusFactory>;
|
|
280
|
+
updateArchivedChatList: ReturnType<typeof updateArchivedChatListFactory>;
|
|
281
|
+
updateAutoDeleteChat: ReturnType<typeof updateAutoDeleteChatFactory>;
|
|
282
|
+
updateAutoReply: ReturnType<typeof updateAutoReplyFactory>;
|
|
283
|
+
updateCatalog: ReturnType<typeof updateCatalogFactory>;
|
|
284
|
+
updateGroupSettings: ReturnType<typeof updateGroupSettingsFactory>;
|
|
285
|
+
updateHiddenConversPin: ReturnType<typeof updateHiddenConversPinFactory>;
|
|
286
|
+
updateLabels: ReturnType<typeof updateLabelsFactory>;
|
|
287
|
+
updateLang: ReturnType<typeof updateLangFactory>;
|
|
288
|
+
updateProductCatalog: ReturnType<typeof updateProductCatalogFactory>;
|
|
289
|
+
updateProfile: ReturnType<typeof updateProfileFactory>;
|
|
290
|
+
updateProfileBio: ReturnType<typeof updateProfileBioFactory>;
|
|
291
|
+
updateQuickMessage: ReturnType<typeof updateQuickMessageFactory>;
|
|
292
|
+
updateSettings: ReturnType<typeof updateSettingsFactory>;
|
|
293
|
+
upgradeGroupToCommunity: ReturnType<typeof upgradeGroupToCommunityFactory>;
|
|
294
|
+
uploadAttachment: ReturnType<typeof uploadAttachmentFactory>;
|
|
295
|
+
uploadProductPhoto: ReturnType<typeof uploadProductPhotoFactory>;
|
|
296
|
+
votePoll: ReturnType<typeof votePollFactory>;
|
|
297
|
+
custom: ReturnType<typeof customFactory>;
|
|
298
|
+
constructor(ctx: ContextSession, zpwServiceMap: ZPWServiceMap, wsUrls: string[]);
|
|
299
|
+
}
|
package/dist/apis.js
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { Listener } from "./apis/listen.js";
|
|
2
|
+
import { acceptFriendRequestFactory } from "./apis/acceptFriendRequest.js";
|
|
3
|
+
import { addGroupBlockedMemberFactory } from "./apis/addGroupBlockedMember.js";
|
|
4
|
+
import { addGroupDeputyFactory } from "./apis/addGroupDeputy.js";
|
|
5
|
+
import { addPollOptionsFactory } from "./apis/addPollOptions.js";
|
|
6
|
+
import { addQuickMessageFactory } from "./apis/addQuickMessage.js";
|
|
7
|
+
import { addReactionFactory } from "./apis/addReaction.js";
|
|
8
|
+
import { addUnreadMarkFactory } from "./apis/addUnreadMark.js";
|
|
9
|
+
import { addUserToGroupFactory } from "./apis/addUserToGroup.js";
|
|
10
|
+
import { blockUserFactory } from "./apis/blockUser.js";
|
|
11
|
+
import { blockViewFeedFactory } from "./apis/blockViewFeed.js";
|
|
12
|
+
import { changeAccountAvatarFactory } from "./apis/changeAccountAvatar.js";
|
|
13
|
+
import { changeFriendAliasFactory } from "./apis/changeFriendAlias.js";
|
|
14
|
+
import { changeGroupAvatarFactory } from "./apis/changeGroupAvatar.js";
|
|
15
|
+
import { changeGroupNameFactory } from "./apis/changeGroupName.js";
|
|
16
|
+
import { changeGroupOwnerFactory } from "./apis/changeGroupOwner.js";
|
|
17
|
+
import { createAutoReplyFactory } from "./apis/createAutoReply.js";
|
|
18
|
+
import { createCatalogFactory } from "./apis/createCatalog.js";
|
|
19
|
+
import { createGroupFactory } from "./apis/createGroup.js";
|
|
20
|
+
import { createNoteFactory } from "./apis/createNote.js";
|
|
21
|
+
import { createPollFactory } from "./apis/createPoll.js";
|
|
22
|
+
import { createProductCatalogFactory } from "./apis/createProductCatalog.js";
|
|
23
|
+
import { createReminderFactory } from "./apis/createReminder.js";
|
|
24
|
+
import { deleteAutoReplyFactory } from "./apis/deleteAutoReply.js";
|
|
25
|
+
import { deleteAvatarFactory } from "./apis/deleteAvatar.js";
|
|
26
|
+
import { deleteCatalogFactory } from "./apis/deleteCatalog.js";
|
|
27
|
+
import { deleteChatFactory } from "./apis/deleteChat.js";
|
|
28
|
+
import { deleteGroupInviteBoxFactory } from "./apis/deleteGroupInviteBox.js";
|
|
29
|
+
import { deleteMessageFactory } from "./apis/deleteMessage.js";
|
|
30
|
+
import { deleteProductCatalogFactory } from "./apis/deleteProductCatalog.js";
|
|
31
|
+
import { disableGroupLinkFactory } from "./apis/disableGroupLink.js";
|
|
32
|
+
import { disperseGroupFactory } from "./apis/disperseGroup.js";
|
|
33
|
+
import { editNoteFactory } from "./apis/editNote.js";
|
|
34
|
+
import { editReminderFactory } from "./apis/editReminder.js";
|
|
35
|
+
import { enableGroupLinkFactory } from "./apis/enableGroupLink.js";
|
|
36
|
+
import { fetchAccountInfoFactory } from "./apis/fetchAccountInfo.js";
|
|
37
|
+
import { findUserFactory } from "./apis/findUser.js";
|
|
38
|
+
import { findUserByUsernameFactory } from "./apis/findUserByUsername.js";
|
|
39
|
+
import { forwardMessageFactory } from "./apis/forwardMessage.js";
|
|
40
|
+
import { getAliasListFactory } from "./apis/getAliasList.js";
|
|
41
|
+
import { getAllFriendsFactory } from "./apis/getAllFriends.js";
|
|
42
|
+
import { getAllGroupsFactory } from "./apis/getAllGroups.js";
|
|
43
|
+
import { getArchivedChatListFactory } from "./apis/getArchivedChatList.js";
|
|
44
|
+
import { getAutoDeleteChatFactory } from "./apis/getAutoDeleteChat.js";
|
|
45
|
+
import { getAutoReplyListFactory } from "./apis/getAutoReplyList.js";
|
|
46
|
+
import { getAvatarListFactory } from "./apis/getAvatarList.js";
|
|
47
|
+
import { getAvatarUrlProfileFactory } from "./apis/getAvatarUrlProfile.js";
|
|
48
|
+
import { getBizAccountFactory } from "./apis/getBizAccount.js";
|
|
49
|
+
import { getCatalogListFactory } from "./apis/getCatalogList.js";
|
|
50
|
+
import { getCloseFriendsFactory } from "./apis/getCloseFriends.js";
|
|
51
|
+
import { getContextFactory } from "./apis/getContext.js";
|
|
52
|
+
import { getCookieFactory } from "./apis/getCookie.js";
|
|
53
|
+
import { getFriendBoardListFactory } from "./apis/getFriendBoardList.js";
|
|
54
|
+
import { getFriendOnlinesFactory } from "./apis/getFriendOnlines.js";
|
|
55
|
+
import { getFriendRecommendationsFactory } from "./apis/getFriendRecommendations.js";
|
|
56
|
+
import { getFriendRequestStatusFactory } from "./apis/getFriendRequestStatus.js";
|
|
57
|
+
import { getFullAvatarFactory } from "./apis/getFullAvatar.js";
|
|
58
|
+
import { getGroupBlockedMemberFactory } from "./apis/getGroupBlockedMember.js";
|
|
59
|
+
import { getGroupChatHistoryFactory } from "./apis/getGroupChatHistory.js";
|
|
60
|
+
import { getGroupInfoFactory } from "./apis/getGroupInfo.js";
|
|
61
|
+
import { getGroupInviteBoxInfoFactory } from "./apis/getGroupInviteBoxInfo.js";
|
|
62
|
+
import { getGroupInviteBoxListFactory } from "./apis/getGroupInviteBoxList.js";
|
|
63
|
+
import { getGroupLinkDetailFactory } from "./apis/getGroupLinkDetail.js";
|
|
64
|
+
import { getGroupLinkInfoFactory } from "./apis/getGroupLinkInfo.js";
|
|
65
|
+
import { getGroupMembersInfoFactory } from "./apis/getGroupMembersInfo.js";
|
|
66
|
+
import { getHiddenConversationsFactory } from "./apis/getHiddenConversations.js";
|
|
67
|
+
import { getLabelsFactory } from "./apis/getLabels.js";
|
|
68
|
+
import { getListBoardFactory } from "./apis/getListBoard.js";
|
|
69
|
+
import { getListReminderFactory } from "./apis/getListReminder.js";
|
|
70
|
+
import { getMultiUsersByPhonesFactory } from "./apis/getMultiUsersByPhones.js";
|
|
71
|
+
import { getMuteFactory } from "./apis/getMute.js";
|
|
72
|
+
import { getOwnIdFactory } from "./apis/getOwnId.js";
|
|
73
|
+
import { getPendingGroupMembersFactory } from "./apis/getPendingGroupMembers.js";
|
|
74
|
+
import { getPinConversationsFactory } from "./apis/getPinConversations.js";
|
|
75
|
+
import { getPollDetailFactory } from "./apis/getPollDetail.js";
|
|
76
|
+
import { getProductCatalogListFactory } from "./apis/getProductCatalogList.js";
|
|
77
|
+
import { getQRFactory } from "./apis/getQR.js";
|
|
78
|
+
import { getQuickMessageListFactory } from "./apis/getQuickMessageList.js";
|
|
79
|
+
import { getRelatedFriendGroupFactory } from "./apis/getRelatedFriendGroup.js";
|
|
80
|
+
import { getReminderFactory } from "./apis/getReminder.js";
|
|
81
|
+
import { getReminderResponsesFactory } from "./apis/getReminderResponses.js";
|
|
82
|
+
import { getSentFriendRequestFactory } from "./apis/getSentFriendRequest.js";
|
|
83
|
+
import { getSettingsFactory } from "./apis/getSettings.js";
|
|
84
|
+
import { getStickerCategoryDetailFactory } from "./apis/getStickerCategoryDetail.js";
|
|
85
|
+
import { getStickersFactory } from "./apis/getStickers.js";
|
|
86
|
+
import { getStickersDetailFactory } from "./apis/getStickersDetail.js";
|
|
87
|
+
import { getUnreadMarkFactory } from "./apis/getUnreadMark.js";
|
|
88
|
+
import { getUserInfoFactory } from "./apis/getUserInfo.js";
|
|
89
|
+
import { inviteUserToGroupsFactory } from "./apis/inviteUserToGroups.js";
|
|
90
|
+
import { joinGroupInviteBoxFactory } from "./apis/joinGroupInviteBox.js";
|
|
91
|
+
import { joinGroupLinkFactory } from "./apis/joinGroupLink.js";
|
|
92
|
+
import { keepAliveFactory } from "./apis/keepAlive.js";
|
|
93
|
+
import { lastOnlineFactory } from "./apis/lastOnline.js";
|
|
94
|
+
import { leaveGroupFactory } from "./apis/leaveGroup.js";
|
|
95
|
+
import { lockPollFactory } from "./apis/lockPoll.js";
|
|
96
|
+
import { parseLinkFactory } from "./apis/parseLink.js";
|
|
97
|
+
import { rejectFriendRequestFactory } from "./apis/rejectFriendRequest.js";
|
|
98
|
+
import { removeFriendFactory } from "./apis/removeFriend.js";
|
|
99
|
+
import { removeFriendAliasFactory } from "./apis/removeFriendAlias.js";
|
|
100
|
+
import { removeGroupBlockedMemberFactory } from "./apis/removeGroupBlockedMember.js";
|
|
101
|
+
import { removeGroupDeputyFactory } from "./apis/removeGroupDeputy.js";
|
|
102
|
+
import { removeQuickMessageFactory } from "./apis/removeQuickMessage.js";
|
|
103
|
+
import { removeReminderFactory } from "./apis/removeReminder.js";
|
|
104
|
+
import { removeUnreadMarkFactory } from "./apis/removeUnreadMark.js";
|
|
105
|
+
import { removeUserFromGroupFactory } from "./apis/removeUserFromGroup.js";
|
|
106
|
+
import { resetHiddenConversPinFactory } from "./apis/resetHiddenConversPin.js";
|
|
107
|
+
import { reuseAvatarFactory } from "./apis/reuseAvatar.js";
|
|
108
|
+
import { reviewPendingMemberRequestFactory } from "./apis/reviewPendingMemberRequest.js";
|
|
109
|
+
import { searchStickerFactory } from "./apis/searchSticker.js";
|
|
110
|
+
import { sendBankCardFactory } from "./apis/sendBankCard.js";
|
|
111
|
+
import { sendCardFactory } from "./apis/sendCard.js";
|
|
112
|
+
import { sendDeliveredEventFactory } from "./apis/sendDeliveredEvent.js";
|
|
113
|
+
import { sendFriendRequestFactory } from "./apis/sendFriendRequest.js";
|
|
114
|
+
import { sendLinkFactory } from "./apis/sendLink.js";
|
|
115
|
+
import { sendMessageFactory } from "./apis/sendMessage.js";
|
|
116
|
+
import { sendReportFactory } from "./apis/sendReport.js";
|
|
117
|
+
import { sendSeenEventFactory } from "./apis/sendSeenEvent.js";
|
|
118
|
+
import { sendStickerFactory } from "./apis/sendSticker.js";
|
|
119
|
+
import { sendTypingEventFactory } from "./apis/sendTypingEvent.js";
|
|
120
|
+
import { sendVideoFactory } from "./apis/sendVideo.js";
|
|
121
|
+
import { sendVoiceFactory } from "./apis/sendVoice.js";
|
|
122
|
+
import { setHiddenConversationsFactory } from "./apis/setHiddenConversations.js";
|
|
123
|
+
import { setMuteFactory } from "./apis/setMute.js";
|
|
124
|
+
import { setPinnedConversationsFactory } from "./apis/setPinnedConversations.js";
|
|
125
|
+
import { sharePollFactory } from "./apis/sharePoll.js";
|
|
126
|
+
import { unblockUserFactory } from "./apis/unblockUser.js";
|
|
127
|
+
import { undoFactory } from "./apis/undo.js";
|
|
128
|
+
import { undoFriendRequestFactory } from "./apis/undoFriendRequest.js";
|
|
129
|
+
import { updateActiveStatusFactory } from "./apis/updateActiveStatus.js";
|
|
130
|
+
import { updateArchivedChatListFactory } from "./apis/updateArchivedChatList.js";
|
|
131
|
+
import { updateAutoDeleteChatFactory } from "./apis/updateAutoDeleteChat.js";
|
|
132
|
+
import { updateAutoReplyFactory } from "./apis/updateAutoReply.js";
|
|
133
|
+
import { updateCatalogFactory } from "./apis/updateCatalog.js";
|
|
134
|
+
import { updateGroupSettingsFactory } from "./apis/updateGroupSettings.js";
|
|
135
|
+
import { updateHiddenConversPinFactory } from "./apis/updateHiddenConversPin.js";
|
|
136
|
+
import { updateLabelsFactory } from "./apis/updateLabels.js";
|
|
137
|
+
import { updateLangFactory } from "./apis/updateLang.js";
|
|
138
|
+
import { updateProductCatalogFactory } from "./apis/updateProductCatalog.js";
|
|
139
|
+
import { updateProfileFactory } from "./apis/updateProfile.js";
|
|
140
|
+
import { updateProfileBioFactory } from "./apis/updateProfileBio.js";
|
|
141
|
+
import { updateQuickMessageFactory } from "./apis/updateQuickMessage.js";
|
|
142
|
+
import { updateSettingsFactory } from "./apis/updateSettings.js";
|
|
143
|
+
import { upgradeGroupToCommunityFactory } from "./apis/upgradeGroupToCommunity.js";
|
|
144
|
+
import { uploadAttachmentFactory } from "./apis/uploadAttachment.js";
|
|
145
|
+
import { uploadProductPhotoFactory } from "./apis/uploadProductPhoto.js";
|
|
146
|
+
import { votePollFactory } from "./apis/votePoll.js";
|
|
147
|
+
import { customFactory } from "./apis/custom.js";
|
|
148
|
+
export class API {
|
|
149
|
+
constructor(ctx, zpwServiceMap, wsUrls) {
|
|
150
|
+
this.zpwServiceMap = zpwServiceMap;
|
|
151
|
+
this.listener = new Listener(ctx, wsUrls);
|
|
152
|
+
this.acceptFriendRequest = acceptFriendRequestFactory(ctx, this);
|
|
153
|
+
this.addGroupBlockedMember = addGroupBlockedMemberFactory(ctx, this);
|
|
154
|
+
this.addGroupDeputy = addGroupDeputyFactory(ctx, this);
|
|
155
|
+
this.addPollOptions = addPollOptionsFactory(ctx, this);
|
|
156
|
+
this.addQuickMessage = addQuickMessageFactory(ctx, this);
|
|
157
|
+
this.addReaction = addReactionFactory(ctx, this);
|
|
158
|
+
this.addUnreadMark = addUnreadMarkFactory(ctx, this);
|
|
159
|
+
this.addUserToGroup = addUserToGroupFactory(ctx, this);
|
|
160
|
+
this.blockUser = blockUserFactory(ctx, this);
|
|
161
|
+
this.blockViewFeed = blockViewFeedFactory(ctx, this);
|
|
162
|
+
this.changeAccountAvatar = changeAccountAvatarFactory(ctx, this);
|
|
163
|
+
this.changeFriendAlias = changeFriendAliasFactory(ctx, this);
|
|
164
|
+
this.changeGroupAvatar = changeGroupAvatarFactory(ctx, this);
|
|
165
|
+
this.changeGroupName = changeGroupNameFactory(ctx, this);
|
|
166
|
+
this.changeGroupOwner = changeGroupOwnerFactory(ctx, this);
|
|
167
|
+
this.createAutoReply = createAutoReplyFactory(ctx, this);
|
|
168
|
+
this.createCatalog = createCatalogFactory(ctx, this);
|
|
169
|
+
this.createGroup = createGroupFactory(ctx, this);
|
|
170
|
+
this.createNote = createNoteFactory(ctx, this);
|
|
171
|
+
this.createPoll = createPollFactory(ctx, this);
|
|
172
|
+
this.createProductCatalog = createProductCatalogFactory(ctx, this);
|
|
173
|
+
this.createReminder = createReminderFactory(ctx, this);
|
|
174
|
+
this.deleteAutoReply = deleteAutoReplyFactory(ctx, this);
|
|
175
|
+
this.deleteAvatar = deleteAvatarFactory(ctx, this);
|
|
176
|
+
this.deleteCatalog = deleteCatalogFactory(ctx, this);
|
|
177
|
+
this.deleteChat = deleteChatFactory(ctx, this);
|
|
178
|
+
this.deleteGroupInviteBox = deleteGroupInviteBoxFactory(ctx, this);
|
|
179
|
+
this.deleteMessage = deleteMessageFactory(ctx, this);
|
|
180
|
+
this.deleteProductCatalog = deleteProductCatalogFactory(ctx, this);
|
|
181
|
+
this.disableGroupLink = disableGroupLinkFactory(ctx, this);
|
|
182
|
+
this.disperseGroup = disperseGroupFactory(ctx, this);
|
|
183
|
+
this.editNote = editNoteFactory(ctx, this);
|
|
184
|
+
this.editReminder = editReminderFactory(ctx, this);
|
|
185
|
+
this.enableGroupLink = enableGroupLinkFactory(ctx, this);
|
|
186
|
+
this.fetchAccountInfo = fetchAccountInfoFactory(ctx, this);
|
|
187
|
+
this.findUser = findUserFactory(ctx, this);
|
|
188
|
+
this.findUserByUsername = findUserByUsernameFactory(ctx, this);
|
|
189
|
+
this.forwardMessage = forwardMessageFactory(ctx, this);
|
|
190
|
+
this.getAliasList = getAliasListFactory(ctx, this);
|
|
191
|
+
this.getAllFriends = getAllFriendsFactory(ctx, this);
|
|
192
|
+
this.getAllGroups = getAllGroupsFactory(ctx, this);
|
|
193
|
+
this.getArchivedChatList = getArchivedChatListFactory(ctx, this);
|
|
194
|
+
this.getAutoDeleteChat = getAutoDeleteChatFactory(ctx, this);
|
|
195
|
+
this.getAutoReplyList = getAutoReplyListFactory(ctx, this);
|
|
196
|
+
this.getAvatarList = getAvatarListFactory(ctx, this);
|
|
197
|
+
this.getAvatarUrlProfile = getAvatarUrlProfileFactory(ctx, this);
|
|
198
|
+
this.getBizAccount = getBizAccountFactory(ctx, this);
|
|
199
|
+
this.getCatalogList = getCatalogListFactory(ctx, this);
|
|
200
|
+
this.getCloseFriends = getCloseFriendsFactory(ctx, this);
|
|
201
|
+
this.getContext = getContextFactory(ctx, this);
|
|
202
|
+
this.getCookie = getCookieFactory(ctx, this);
|
|
203
|
+
this.getFriendBoardList = getFriendBoardListFactory(ctx, this);
|
|
204
|
+
this.getFriendOnlines = getFriendOnlinesFactory(ctx, this);
|
|
205
|
+
this.getFriendRecommendations = getFriendRecommendationsFactory(ctx, this);
|
|
206
|
+
this.getFriendRequestStatus = getFriendRequestStatusFactory(ctx, this);
|
|
207
|
+
this.getFullAvatar = getFullAvatarFactory(ctx, this);
|
|
208
|
+
this.getGroupBlockedMember = getGroupBlockedMemberFactory(ctx, this);
|
|
209
|
+
this.getGroupChatHistory = getGroupChatHistoryFactory(ctx, this);
|
|
210
|
+
this.getGroupInfo = getGroupInfoFactory(ctx, this);
|
|
211
|
+
this.getGroupInviteBoxInfo = getGroupInviteBoxInfoFactory(ctx, this);
|
|
212
|
+
this.getGroupInviteBoxList = getGroupInviteBoxListFactory(ctx, this);
|
|
213
|
+
this.getGroupLinkDetail = getGroupLinkDetailFactory(ctx, this);
|
|
214
|
+
this.getGroupLinkInfo = getGroupLinkInfoFactory(ctx, this);
|
|
215
|
+
this.getGroupMembersInfo = getGroupMembersInfoFactory(ctx, this);
|
|
216
|
+
this.getHiddenConversations = getHiddenConversationsFactory(ctx, this);
|
|
217
|
+
this.getLabels = getLabelsFactory(ctx, this);
|
|
218
|
+
this.getListBoard = getListBoardFactory(ctx, this);
|
|
219
|
+
this.getListReminder = getListReminderFactory(ctx, this);
|
|
220
|
+
this.getMultiUsersByPhones = getMultiUsersByPhonesFactory(ctx, this);
|
|
221
|
+
this.getMute = getMuteFactory(ctx, this);
|
|
222
|
+
this.getOwnId = getOwnIdFactory(ctx, this);
|
|
223
|
+
this.getPendingGroupMembers = getPendingGroupMembersFactory(ctx, this);
|
|
224
|
+
this.getPinConversations = getPinConversationsFactory(ctx, this);
|
|
225
|
+
this.getPollDetail = getPollDetailFactory(ctx, this);
|
|
226
|
+
this.getProductCatalogList = getProductCatalogListFactory(ctx, this);
|
|
227
|
+
this.getQR = getQRFactory(ctx, this);
|
|
228
|
+
this.getQuickMessageList = getQuickMessageListFactory(ctx, this);
|
|
229
|
+
this.getRelatedFriendGroup = getRelatedFriendGroupFactory(ctx, this);
|
|
230
|
+
this.getReminder = getReminderFactory(ctx, this);
|
|
231
|
+
this.getReminderResponses = getReminderResponsesFactory(ctx, this);
|
|
232
|
+
this.getSentFriendRequest = getSentFriendRequestFactory(ctx, this);
|
|
233
|
+
this.getSettings = getSettingsFactory(ctx, this);
|
|
234
|
+
this.getStickerCategoryDetail = getStickerCategoryDetailFactory(ctx, this);
|
|
235
|
+
this.getStickers = getStickersFactory(ctx, this);
|
|
236
|
+
this.getStickersDetail = getStickersDetailFactory(ctx, this);
|
|
237
|
+
this.getUnreadMark = getUnreadMarkFactory(ctx, this);
|
|
238
|
+
this.getUserInfo = getUserInfoFactory(ctx, this);
|
|
239
|
+
this.inviteUserToGroups = inviteUserToGroupsFactory(ctx, this);
|
|
240
|
+
this.joinGroupInviteBox = joinGroupInviteBoxFactory(ctx, this);
|
|
241
|
+
this.joinGroupLink = joinGroupLinkFactory(ctx, this);
|
|
242
|
+
this.keepAlive = keepAliveFactory(ctx, this);
|
|
243
|
+
this.lastOnline = lastOnlineFactory(ctx, this);
|
|
244
|
+
this.leaveGroup = leaveGroupFactory(ctx, this);
|
|
245
|
+
this.lockPoll = lockPollFactory(ctx, this);
|
|
246
|
+
this.parseLink = parseLinkFactory(ctx, this);
|
|
247
|
+
this.rejectFriendRequest = rejectFriendRequestFactory(ctx, this);
|
|
248
|
+
this.removeFriend = removeFriendFactory(ctx, this);
|
|
249
|
+
this.removeFriendAlias = removeFriendAliasFactory(ctx, this);
|
|
250
|
+
this.removeGroupBlockedMember = removeGroupBlockedMemberFactory(ctx, this);
|
|
251
|
+
this.removeGroupDeputy = removeGroupDeputyFactory(ctx, this);
|
|
252
|
+
this.removeQuickMessage = removeQuickMessageFactory(ctx, this);
|
|
253
|
+
this.removeReminder = removeReminderFactory(ctx, this);
|
|
254
|
+
this.removeUnreadMark = removeUnreadMarkFactory(ctx, this);
|
|
255
|
+
this.removeUserFromGroup = removeUserFromGroupFactory(ctx, this);
|
|
256
|
+
this.resetHiddenConversPin = resetHiddenConversPinFactory(ctx, this);
|
|
257
|
+
this.reuseAvatar = reuseAvatarFactory(ctx, this);
|
|
258
|
+
this.reviewPendingMemberRequest = reviewPendingMemberRequestFactory(ctx, this);
|
|
259
|
+
this.searchSticker = searchStickerFactory(ctx, this);
|
|
260
|
+
this.sendBankCard = sendBankCardFactory(ctx, this);
|
|
261
|
+
this.sendCard = sendCardFactory(ctx, this);
|
|
262
|
+
this.sendDeliveredEvent = sendDeliveredEventFactory(ctx, this);
|
|
263
|
+
this.sendFriendRequest = sendFriendRequestFactory(ctx, this);
|
|
264
|
+
this.sendLink = sendLinkFactory(ctx, this);
|
|
265
|
+
this.sendMessage = sendMessageFactory(ctx, this);
|
|
266
|
+
this.sendReport = sendReportFactory(ctx, this);
|
|
267
|
+
this.sendSeenEvent = sendSeenEventFactory(ctx, this);
|
|
268
|
+
this.sendSticker = sendStickerFactory(ctx, this);
|
|
269
|
+
this.sendTypingEvent = sendTypingEventFactory(ctx, this);
|
|
270
|
+
this.sendVideo = sendVideoFactory(ctx, this);
|
|
271
|
+
this.sendVoice = sendVoiceFactory(ctx, this);
|
|
272
|
+
this.setHiddenConversations = setHiddenConversationsFactory(ctx, this);
|
|
273
|
+
this.setMute = setMuteFactory(ctx, this);
|
|
274
|
+
this.setPinnedConversations = setPinnedConversationsFactory(ctx, this);
|
|
275
|
+
this.sharePoll = sharePollFactory(ctx, this);
|
|
276
|
+
this.unblockUser = unblockUserFactory(ctx, this);
|
|
277
|
+
this.undo = undoFactory(ctx, this);
|
|
278
|
+
this.undoFriendRequest = undoFriendRequestFactory(ctx, this);
|
|
279
|
+
this.updateActiveStatus = updateActiveStatusFactory(ctx, this);
|
|
280
|
+
this.updateArchivedChatList = updateArchivedChatListFactory(ctx, this);
|
|
281
|
+
this.updateAutoDeleteChat = updateAutoDeleteChatFactory(ctx, this);
|
|
282
|
+
this.updateAutoReply = updateAutoReplyFactory(ctx, this);
|
|
283
|
+
this.updateCatalog = updateCatalogFactory(ctx, this);
|
|
284
|
+
this.updateGroupSettings = updateGroupSettingsFactory(ctx, this);
|
|
285
|
+
this.updateHiddenConversPin = updateHiddenConversPinFactory(ctx, this);
|
|
286
|
+
this.updateLabels = updateLabelsFactory(ctx, this);
|
|
287
|
+
this.updateLang = updateLangFactory(ctx, this);
|
|
288
|
+
this.updateProductCatalog = updateProductCatalogFactory(ctx, this);
|
|
289
|
+
this.updateProfile = updateProfileFactory(ctx, this);
|
|
290
|
+
this.updateProfileBio = updateProfileBioFactory(ctx, this);
|
|
291
|
+
this.updateQuickMessage = updateQuickMessageFactory(ctx, this);
|
|
292
|
+
this.updateSettings = updateSettingsFactory(ctx, this);
|
|
293
|
+
this.upgradeGroupToCommunity = upgradeGroupToCommunityFactory(ctx, this);
|
|
294
|
+
this.uploadAttachment = uploadAttachmentFactory(ctx, this);
|
|
295
|
+
this.uploadProductPhoto = uploadProductPhotoFactory(ctx, this);
|
|
296
|
+
this.votePoll = votePollFactory(ctx, this);
|
|
297
|
+
this.custom = customFactory(ctx, this);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ZaloApiError = require('./ZaloApiError.cjs');
|
|
4
|
+
|
|
5
|
+
class ZaloApiLoginQRAborted extends ZaloApiError.ZaloApiError {
|
|
6
|
+
constructor(message = "Operation aborted") {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = "ZaloApiLoginQRAborted";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.ZaloApiLoginQRAborted = ZaloApiLoginQRAborted;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ZaloApiError = require('./ZaloApiError.cjs');
|
|
4
|
+
|
|
5
|
+
class ZaloApiLoginQRDeclined extends ZaloApiError.ZaloApiError {
|
|
6
|
+
constructor(message = "Login QR request declined") {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = "ZaloApiLoginQRDeclined";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.ZaloApiLoginQRDeclined = ZaloApiLoginQRDeclined;
|