@theowlops/channelhub 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.
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/bin/cli.ts +36 -0
- package/dist/bridges/mcp/index.d.ts +14 -0
- package/dist/bridges/mcp/index.js +96 -0
- package/dist/bridges/webhook/index.d.ts +32 -0
- package/dist/bridges/webhook/index.js +123 -0
- package/dist/channels/discord/adapter.d.ts +24 -0
- package/dist/channels/discord/index.d.ts +1 -0
- package/dist/channels/discord/index.js +130 -0
- package/dist/channels/slack/adapter.d.ts +20 -0
- package/dist/channels/slack/index.d.ts +1 -0
- package/dist/channels/slack/index.js +122 -0
- package/dist/channels/telegram/adapter.d.ts +21 -0
- package/dist/channels/telegram/index.d.ts +2 -0
- package/dist/channels/telegram/index.js +179 -0
- package/dist/channels/telegram/types.d.ts +6 -0
- package/dist/channels/zalo/adapter.d.ts +22 -0
- package/dist/channels/zalo/index.d.ts +5 -0
- package/dist/channels/zalo/index.js +38337 -0
- package/dist/commands/modules/general.d.ts +4 -0
- package/dist/commands/modules/group.d.ts +4 -0
- package/dist/commands/modules/reaction.d.ts +4 -0
- package/dist/commands/router.d.ts +7 -0
- package/dist/commands/types.d.ts +15 -0
- package/dist/config/env.d.ts +13 -0
- package/dist/core/adapter.d.ts +12 -0
- package/dist/core/bus.d.ts +12 -0
- package/dist/core/context.d.ts +9 -0
- package/dist/core/hub.d.ts +14 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +99 -0
- package/dist/core/types.d.ts +63 -0
- package/dist/index.cjs +39235 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +39191 -0
- package/dist/login_personal.js +60 -0
- package/dist/oa/client.d.ts +25 -0
- package/dist/oa/index.d.ts +3 -0
- package/dist/oa/index.js +556 -0
- package/dist/personal/client.d.ts +162 -0
- package/dist/personal/index.d.ts +5 -0
- package/dist/personal/index.js +37098 -0
- package/package.json +107 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { ThreadType, Reactions } from "zca-js";
|
|
2
|
+
export declare class ZaloPersonalBot {
|
|
3
|
+
api: any;
|
|
4
|
+
constructor(apiInstance: any);
|
|
5
|
+
sendMessage(message: any, threadId: string, type?: ThreadType): Promise<any>;
|
|
6
|
+
sendText(threadId: string, text: string, mentions?: any[], isGroup?: boolean): Promise<any>;
|
|
7
|
+
sendImage(threadId: string, imagePath: string | string[], caption?: string, isGroup?: boolean): Promise<any>;
|
|
8
|
+
sendVideo(threadId: string, videoPath: string, caption?: string, isGroup?: boolean): Promise<any>;
|
|
9
|
+
sendVoice(threadId: string, voicePath: string, isGroup?: boolean): Promise<any>;
|
|
10
|
+
sendLink(threadId: string, link: string, isGroup?: boolean): Promise<any>;
|
|
11
|
+
sendCard(threadId: string, cardPayload: any, isGroup?: boolean): Promise<any>;
|
|
12
|
+
sendBankCard(threadId: string, payload: any, isGroup?: boolean): Promise<any>;
|
|
13
|
+
forwardMessage(threadId: string, msgId: string, type?: ThreadType): Promise<any>;
|
|
14
|
+
recallMessage(msgObj: any): Promise<any>;
|
|
15
|
+
deleteMessage(msgObj: any, onlyMe?: boolean): Promise<any>;
|
|
16
|
+
deleteChat(threadId: string, type?: ThreadType): Promise<any>;
|
|
17
|
+
parseLink(link: string): Promise<any>;
|
|
18
|
+
scanURL(url: string): Promise<any>;
|
|
19
|
+
addReaction(threadId: string, msgId: string, cliMsgId: string, emojiOrReaction?: Reactions | string, isGroup?: boolean): Promise<any>;
|
|
20
|
+
sendTypingEvent(threadId: string, isTyping?: boolean, isGroup?: boolean): Promise<any>;
|
|
21
|
+
sendSeenEvent(threadId: string, msgId: string, isGroup?: boolean): Promise<any>;
|
|
22
|
+
sendDeliveredEvent(threadId: string, msgId: string, isGroup?: boolean): Promise<any>;
|
|
23
|
+
addUnreadMark(threadId: string, isGroup?: boolean): Promise<any>;
|
|
24
|
+
removeUnreadMark(threadId: string, isGroup?: boolean): Promise<any>;
|
|
25
|
+
getUnreadMark(): Promise<any>;
|
|
26
|
+
sendSticker(threadId: string, stickerDetail: any, isGroup?: boolean): Promise<any>;
|
|
27
|
+
getStickers(keyword: string): Promise<any>;
|
|
28
|
+
searchSticker(keyword: string): Promise<any>;
|
|
29
|
+
getStickersDetail(stickerId: number | string): Promise<any>;
|
|
30
|
+
getStickerCategoryDetail(cateId: number | string): Promise<any>;
|
|
31
|
+
uploadAttachment(filePath: string, threadId: string, type?: ThreadType): Promise<any>;
|
|
32
|
+
createGroup(name: string, members?: string[]): Promise<any>;
|
|
33
|
+
disperseGroup(groupId: string): Promise<any>;
|
|
34
|
+
leaveGroup(groupId: string): Promise<any>;
|
|
35
|
+
changeGroupName(groupId: string, newName: string): Promise<any>;
|
|
36
|
+
changeGroupAvatar(groupId: string, avatarPath: string): Promise<any>;
|
|
37
|
+
changeGroupOwner(groupId: string, newOwnerId: string): Promise<any>;
|
|
38
|
+
addGroupDeputy(groupId: string, memberId: string | string[]): Promise<any>;
|
|
39
|
+
removeGroupDeputy(groupId: string, memberId: string | string[]): Promise<any>;
|
|
40
|
+
addUserToGroup(groupId: string, members: string | string[]): Promise<any>;
|
|
41
|
+
removeUserFromGroup(groupId: string, members: string | string[]): Promise<any>;
|
|
42
|
+
addGroupBlockedMember(groupId: string, memberId: string | string[]): Promise<any>;
|
|
43
|
+
removeGroupBlockedMember(groupId: string, memberId: string | string[]): Promise<any>;
|
|
44
|
+
getGroupBlockedMember(groupId: string): Promise<any>;
|
|
45
|
+
getGroupInfo(groupId: string | string[]): Promise<any>;
|
|
46
|
+
getAllGroups(): Promise<any>;
|
|
47
|
+
getGroupMembersInfo(groupId: string): Promise<any>;
|
|
48
|
+
getPendingGroupMembers(groupId: string): Promise<any>;
|
|
49
|
+
reviewPendingMemberRequest(groupId: string, memberId: string, isAccept?: boolean): Promise<any>;
|
|
50
|
+
updateGroupSettings(groupId: string, settings: any): Promise<any>;
|
|
51
|
+
upgradeGroupToCommunity(groupId: string): Promise<any>;
|
|
52
|
+
inviteUserToGroups(userId: string, groupIds: string[]): Promise<any>;
|
|
53
|
+
getGroupLinkInfo(groupId: string): Promise<any>;
|
|
54
|
+
getGroupLinkDetail(linkId: string): Promise<any>;
|
|
55
|
+
enableGroupLink(groupId: string): Promise<any>;
|
|
56
|
+
disableGroupLink(groupId: string): Promise<any>;
|
|
57
|
+
joinGroupLink(link: string): Promise<any>;
|
|
58
|
+
getGroupInviteBoxList(): Promise<any>;
|
|
59
|
+
getGroupInviteBoxInfo(boxId: string): Promise<any>;
|
|
60
|
+
joinGroupInviteBox(boxId: string): Promise<any>;
|
|
61
|
+
deleteGroupInviteBox(boxId: string): Promise<any>;
|
|
62
|
+
createPoll(groupId: string, question: string, options: string[], settings?: any): Promise<any>;
|
|
63
|
+
votePoll(pollId: string, optionIds: number[]): Promise<any>;
|
|
64
|
+
addPollOptions(pollId: string, options: string[]): Promise<any>;
|
|
65
|
+
lockPoll(pollId: string): Promise<any>;
|
|
66
|
+
sharePoll(pollId: string, threadId: string): Promise<any>;
|
|
67
|
+
getPollDetail(pollId: string): Promise<any>;
|
|
68
|
+
createNote(threadId: string, title: string, content: string, isGroup?: boolean): Promise<any>;
|
|
69
|
+
editNote(noteId: string, title: string, content: string, threadId: string, isGroup?: boolean): Promise<any>;
|
|
70
|
+
getListBoard(threadId: string, isGroup?: boolean): Promise<any>;
|
|
71
|
+
getFriendBoardList(friendId: string): Promise<any>;
|
|
72
|
+
createReminder(threadId: string, content: string, remindTime: number, isGroup?: boolean): Promise<any>;
|
|
73
|
+
editReminder(reminderId: string, content: string, remindTime: number, threadId: string, isGroup?: boolean): Promise<any>;
|
|
74
|
+
removeReminder(reminderId: string, threadId: string, isGroup?: boolean): Promise<any>;
|
|
75
|
+
getReminder(reminderId: string, threadId: string, isGroup?: boolean): Promise<any>;
|
|
76
|
+
getListReminder(threadId: string, isGroup?: boolean): Promise<any>;
|
|
77
|
+
getReminderResponses(reminderId: string): Promise<any>;
|
|
78
|
+
getAllFriends(): Promise<any>;
|
|
79
|
+
getCloseFriends(): Promise<any>;
|
|
80
|
+
getFriendOnlines(): Promise<any>;
|
|
81
|
+
getFriendRecommendations(): Promise<any>;
|
|
82
|
+
getRelatedFriendGroup(): Promise<any>;
|
|
83
|
+
sendFriendRequest(userId: string, msg?: string): Promise<any>;
|
|
84
|
+
acceptFriendRequest(userId: string): Promise<any>;
|
|
85
|
+
rejectFriendRequest(userId: string): Promise<any>;
|
|
86
|
+
undoFriendRequest(userId: string): Promise<any>;
|
|
87
|
+
getSentFriendRequest(): Promise<any>;
|
|
88
|
+
getFriendRequestStatus(userId: string): Promise<any>;
|
|
89
|
+
removeFriend(userId: string): Promise<any>;
|
|
90
|
+
changeFriendAlias(friendId: string, alias: string): Promise<any>;
|
|
91
|
+
removeFriendAlias(friendId: string): Promise<any>;
|
|
92
|
+
getAliasList(): Promise<any>;
|
|
93
|
+
blockUser(userId: string): Promise<any>;
|
|
94
|
+
unblockUser(userId: string): Promise<any>;
|
|
95
|
+
blockViewFeed(userId: string, isBlock?: boolean): Promise<any>;
|
|
96
|
+
findUserByPhone(phone: string): Promise<any>;
|
|
97
|
+
findUserByUsername(username: string): Promise<any>;
|
|
98
|
+
getMultiUsersByPhones(phones: string[]): Promise<any>;
|
|
99
|
+
getUserInfo(userId: string): Promise<any>;
|
|
100
|
+
getOwnId(): Promise<any>;
|
|
101
|
+
fetchAccountInfo(): Promise<any>;
|
|
102
|
+
getBizAccount(userId: string): Promise<any>;
|
|
103
|
+
lastOnline(userId: string): Promise<any>;
|
|
104
|
+
updateProfile(profileData: any): Promise<any>;
|
|
105
|
+
updateProfileBio(bio: string): Promise<any>;
|
|
106
|
+
changeAccountAvatar(avatarPath: string): Promise<any>;
|
|
107
|
+
deleteAvatar(avatarId: string): Promise<any>;
|
|
108
|
+
reuseAvatar(avatarId: string): Promise<any>;
|
|
109
|
+
getAvatarList(): Promise<any>;
|
|
110
|
+
getFullAvatar(userId: string): Promise<any>;
|
|
111
|
+
getAvatarUrlProfile(userId: string): Promise<any>;
|
|
112
|
+
getGroupChatHistory(groupId: string, count?: number): Promise<any>;
|
|
113
|
+
setMute(threadId: string, duration?: number, isGroup?: boolean): Promise<any>;
|
|
114
|
+
getMute(threadId: string, isGroup?: boolean): Promise<any>;
|
|
115
|
+
setPinnedConversations(threadId: string, isPin?: boolean, isGroup?: boolean): Promise<any>;
|
|
116
|
+
getPinConversations(): Promise<any>;
|
|
117
|
+
setHiddenConversations(threadId: string, pinCode: string, isGroup?: boolean): Promise<any>;
|
|
118
|
+
getHiddenConversations(): Promise<any>;
|
|
119
|
+
updateHiddenConversPin(oldPin: string, newPin: string): Promise<any>;
|
|
120
|
+
resetHiddenConversPin(): Promise<any>;
|
|
121
|
+
updateAutoDeleteChat(threadId: string, ttl: number, isGroup?: boolean): Promise<any>;
|
|
122
|
+
getAutoDeleteChat(threadId: string, isGroup?: boolean): Promise<any>;
|
|
123
|
+
updateArchivedChatList(threadId: string, isArchive?: boolean, isGroup?: boolean): Promise<any>;
|
|
124
|
+
getArchivedChatList(): Promise<any>;
|
|
125
|
+
addQuickMessage(shortcut: string, message: string): Promise<any>;
|
|
126
|
+
updateQuickMessage(id: number | string, shortcut: string, message: string): Promise<any>;
|
|
127
|
+
removeQuickMessage(id: number | string): Promise<any>;
|
|
128
|
+
getQuickMessageList(): Promise<any>;
|
|
129
|
+
createAutoReply(data: any): Promise<any>;
|
|
130
|
+
updateAutoReply(id: string, data: any): Promise<any>;
|
|
131
|
+
deleteAutoReply(id: string): Promise<any>;
|
|
132
|
+
getAutoReplyList(): Promise<any>;
|
|
133
|
+
getLabels(): Promise<any>;
|
|
134
|
+
updateLabels(labelsData: any): Promise<any>;
|
|
135
|
+
createCatalog(name: string): Promise<any>;
|
|
136
|
+
updateCatalog(catalogId: string, name: string): Promise<any>;
|
|
137
|
+
deleteCatalog(catalogId: string): Promise<any>;
|
|
138
|
+
getCatalogList(): Promise<any>;
|
|
139
|
+
registerCatalog(catalogData: any): Promise<any>;
|
|
140
|
+
createProductCatalog(productData: any): Promise<any>;
|
|
141
|
+
updateProductCatalog(productId: string, productData: any): Promise<any>;
|
|
142
|
+
deleteProductCatalog(productId: string): Promise<any>;
|
|
143
|
+
getProductCatalogList(): Promise<any>;
|
|
144
|
+
uploadProductPhoto(photoPath: string): Promise<any>;
|
|
145
|
+
createBankAccount(bankData: any): Promise<any>;
|
|
146
|
+
updateBankAccount(bankId: string, bankData: any): Promise<any>;
|
|
147
|
+
deleteBankAccount(bankId: string): Promise<any>;
|
|
148
|
+
getListBank(): Promise<any>;
|
|
149
|
+
getListBankAccount(): Promise<any>;
|
|
150
|
+
getSettings(): Promise<any>;
|
|
151
|
+
updateSettings(settings: any): Promise<any>;
|
|
152
|
+
updateActiveStatus(isActive: boolean): Promise<any>;
|
|
153
|
+
updateLang(lang: string): Promise<any>;
|
|
154
|
+
getListDevice(): Promise<any>;
|
|
155
|
+
getQR(): Promise<any>;
|
|
156
|
+
getCookie(): Promise<any>;
|
|
157
|
+
getContext(): Promise<any>;
|
|
158
|
+
keepAlive(): Promise<any>;
|
|
159
|
+
lostFocus(): Promise<any>;
|
|
160
|
+
sendReport(reportData: any): Promise<any>;
|
|
161
|
+
custom(service: string, endpoint: string, body: any): Promise<any>;
|
|
162
|
+
}
|