mezon-js 2.15.26 → 2.15.28
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/dist/client.d.ts +236 -239
- package/dist/index.d.ts +0 -1
- package/dist/mezon-js.cjs.js +1 -1
- package/dist/mezon-js.esm.mjs +1 -1
- package/dist/mezon-js.iife.js +1 -1
- package/dist/mezon-js.umd.js +1 -1
- package/dist/mezon-js.umd.js.map +1 -1
- package/dist/transport.d.ts +214 -215
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ApiAccount, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiListChannelBadgeCountResponse, ApiListUserOnlineResponse, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiClanUserStatusList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiCheckDuplicateNameRequest, ApiCheckDuplicateNameResponse, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiCreatePollRequest, ApiCreatePollResponse, ApiGetPollRequest, ApiGetPollResponse, ApiVotePollRequest, ApiVotePollResponse, ApiClosePollRequest, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiForSaleItemList, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ChannelMessage, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiListChannelTimelineRequest, ApiListChannelTimelineResponse, ApiCreateChannelTimelineRequest, ApiCreateChannelTimelineResponse, ApiUpdateChannelTimelineRequest, ApiUpdateChannelTimelineResponse, ApiDetailChannelTimelineRequest, ApiDetailChannelTimelineResponse, ApiMutedChannelList, AddClanUserEvent, AddFriend, AiAgentEnabledEvent, AllowAnonymousEvent, ApiMessageReaction, ApiNotification, ApiWebhook, BannedUserEvent, BlockFriend, CategoryEvent, ChannelAppEvent, ChannelCanvas, ChannelCreatedEvent, ChannelDeletedEvent, ChannelPresenceEvent, ChannelUpdatedEvent, ClanDeletedEvent, ClanProfileUpdatedEvent, ClanUpdatedEvent, CustomStatusEvent, DeleteAccountEvent, EventEmoji, JoinChannelAppData, LastPinMessageEvent, LastSeenMessageEvent, ListActivity, ListChannelUsersBannedEvent, MarkAsRead, MeetParticipantEvent, MessageTypingEvent, PermissionChangedEvent, PermissionSet, QuickMenuEvent, RemoveFriend, RoleAssignedEvent, RoleEvent, SdTopicEvent, StatusPresenceEvent, StickerCreateEvent, StickerDeleteEvent, StickerUpdateEvent, StreamingEndedEvent, StreamingJoinedEvent, StreamingLeavedEvent, StreamingStartedEvent, TransferOwnershipEvent, UnblockFriend, UnmuteEvent, UnpinMessageEvent, UserChannelAddedEvent, UserChannelRemovedEvent, UserClanRemovedEvent, UserProfileUpdatedEvent, UserStatusEvent, VoiceEndedEvent, VoiceJoinedEvent, VoiceLeavedEvent, VoiceReactionSend, VoiceStartedEvent, WebrtcSignalingFwd, ChannelMessageList, Friends, ApiUpdateChannelDescRequest, ApiUpdateClanProfileRequest, ApiUpdateRoleRequest, ListDataSocket, IncomingCallPush, Channel, ClanJoin, Status } from "./types";
|
|
17
|
-
import { Session } from "./session";
|
|
18
17
|
import { ChannelMessageAck, DropdownBoxSelected, MessageButtonClicked, MultipartUploadAttachment, MultipartUploadAttachmentFinishRequest, TransportAdapter } from "mezon-js-protobuf";
|
|
19
18
|
export declare const ConnectionState: {
|
|
20
19
|
readonly DISCONNECTED: "disconnected";
|
|
@@ -124,343 +123,341 @@ export declare class Client {
|
|
|
124
123
|
* to perform actions before or after the refresh logic.
|
|
125
124
|
*/
|
|
126
125
|
onrefreshsession(session: ApiSession): void;
|
|
127
|
-
/** check session isexpired */
|
|
128
|
-
isexpired(session: Session): boolean;
|
|
129
126
|
/** Authenticate a user with a custom id against the server. */
|
|
130
|
-
authenticateMezon(token: string, create?: boolean, username?: string, isRemember?: boolean, vars?: Record<string, string>, options?: any): Promise<
|
|
127
|
+
authenticateMezon(token: string, create?: boolean, username?: string, isRemember?: boolean, vars?: Record<string, string>, options?: any): Promise<ApiSession>;
|
|
131
128
|
/** Authenticate a user with an email+otp against the server. */
|
|
132
129
|
authenticateSMSOTPRequest(phoneno: string, username?: string, vars?: Record<string, string>): Promise<ApiLinkAccountConfirmRequest>;
|
|
133
130
|
/** Authenticate a user with an email+otp against the server. */
|
|
134
131
|
authenticateEmailOTPRequest(email: string, username?: string, vars?: Record<string, string>): Promise<ApiLinkAccountConfirmRequest>;
|
|
135
|
-
confirmAuthenticateOTP(request: ApiLinkAccountConfirmRequest): Promise<
|
|
132
|
+
confirmAuthenticateOTP(request: ApiLinkAccountConfirmRequest): Promise<ApiSession>;
|
|
136
133
|
/** Authenticate a user with an email+password against the server. */
|
|
137
|
-
authenticateEmail(email: string, password: string, username?: string, vars?: Record<string, string>): Promise<
|
|
134
|
+
authenticateEmail(email: string, password: string, username?: string, vars?: Record<string, string>): Promise<ApiSession>;
|
|
138
135
|
/** set base path */
|
|
139
136
|
setBasePath(host: string, port: string, useSSL: boolean): void;
|
|
140
137
|
/** Add users to a channel, or accept their join requests. */
|
|
141
|
-
addChannelUsers(session:
|
|
138
|
+
addChannelUsers(session: ApiSession, channelId: string, ids?: Array<string>): Promise<boolean>;
|
|
142
139
|
/** Add friends by ID or username to a user's account. */
|
|
143
|
-
addFriends(session:
|
|
140
|
+
addFriends(session: ApiSession, ids?: Array<string>, usernames?: Array<string>): Promise<ApiAddFriendsResponse>;
|
|
144
141
|
/** Block one or more users by ID or username. */
|
|
145
|
-
blockFriends(session:
|
|
142
|
+
blockFriends(session: ApiSession, ids?: Array<string>, usernames?: Array<string>): Promise<boolean>;
|
|
146
143
|
/** Block one or more users by ID or username. */
|
|
147
|
-
unblockFriends(session:
|
|
144
|
+
unblockFriends(session: ApiSession, ids?: Array<string>, usernames?: Array<string>): Promise<boolean>;
|
|
148
145
|
/** Create a new group with the current user as the creator and superadmin. */
|
|
149
|
-
uploadOauthFile(session:
|
|
146
|
+
uploadOauthFile(session: ApiSession, request: ApiUploadAttachmentRequest): Promise<ApiUploadAttachment>;
|
|
150
147
|
/** Create a new group with the current user as the creator and superadmin. */
|
|
151
|
-
uploadAttachmentFile(session:
|
|
152
|
-
multipartUploadAttachmentFile(session:
|
|
153
|
-
multipartUploadAttachmentFileFinish(session:
|
|
148
|
+
uploadAttachmentFile(session: ApiSession, request: ApiUploadAttachmentRequest): Promise<ApiUploadAttachment>;
|
|
149
|
+
multipartUploadAttachmentFile(session: ApiSession, request: ApiUploadAttachmentRequest): Promise<MultipartUploadAttachment>;
|
|
150
|
+
multipartUploadAttachmentFileFinish(session: ApiSession, request: MultipartUploadAttachmentFinishRequest): Promise<any>;
|
|
154
151
|
/** Create a channel within clan */
|
|
155
|
-
createChannelDesc(session:
|
|
152
|
+
createChannelDesc(session: ApiSession, request: ApiCreateChannelDescRequest): Promise<ApiChannelDescription>;
|
|
156
153
|
/** Create a clan */
|
|
157
|
-
createClanDesc(session:
|
|
154
|
+
createClanDesc(session: ApiSession, request: ApiCreateClanDescRequest): Promise<ApiClanDesc>;
|
|
158
155
|
/** Check duplicate name/label */
|
|
159
|
-
checkDuplicateName(session:
|
|
156
|
+
checkDuplicateName(session: ApiSession, request: ApiCheckDuplicateNameRequest): Promise<ApiCheckDuplicateNameResponse>;
|
|
160
157
|
/** */
|
|
161
|
-
createCategoryDesc(session:
|
|
158
|
+
createCategoryDesc(session: ApiSession, request: ApiCreateCategoryDescRequest): Promise<ApiCategoryDesc>;
|
|
162
159
|
/** Create a new role for clan. */
|
|
163
|
-
createRole(session:
|
|
160
|
+
createRole(session: ApiSession, request: ApiCreateRoleRequest): Promise<ApiRole>;
|
|
164
161
|
/** Create a new event for clan. */
|
|
165
|
-
createEvent(session:
|
|
162
|
+
createEvent(session: ApiSession, request: ApiCreateEventRequest): Promise<ApiEventManagement>;
|
|
166
163
|
/** add role for channel. */
|
|
167
|
-
addRolesChannelDesc(session:
|
|
164
|
+
addRolesChannelDesc(session: ApiSession, request: ApiAddRoleChannelDescRequest): Promise<boolean>;
|
|
168
165
|
/** Update action role when delete role */
|
|
169
|
-
deleteRoleChannelDesc(session:
|
|
170
|
-
deleteApp(session:
|
|
166
|
+
deleteRoleChannelDesc(session: ApiSession, request: ApiDeleteRoleRequest): Promise<boolean>;
|
|
167
|
+
deleteApp(session: ApiSession, appId: string): Promise<boolean>;
|
|
171
168
|
/** Delete one or more users by ID or username. */
|
|
172
|
-
deleteFriends(session:
|
|
169
|
+
deleteFriends(session: ApiSession, ids?: Array<string>, usernames?: Array<string>): Promise<boolean>;
|
|
173
170
|
/** Delete a channel by ID. */
|
|
174
|
-
deleteChannelDesc(session:
|
|
171
|
+
deleteChannelDesc(session: ApiSession, clanId: string, channelId: string): Promise<boolean>;
|
|
175
172
|
/** Delete a clan desc by ID. */
|
|
176
|
-
deleteClanDesc(session:
|
|
173
|
+
deleteClanDesc(session: ApiSession, clanDescId: string): Promise<boolean>;
|
|
177
174
|
/** Delete a category by ID. */
|
|
178
|
-
deleteCategoryDesc(session:
|
|
175
|
+
deleteCategoryDesc(session: ApiSession, categoryId: string, clanId: string, categoryLabel?: string): Promise<boolean>;
|
|
179
176
|
/** Delete one or more notifications */
|
|
180
|
-
deleteNotifications(session:
|
|
177
|
+
deleteNotifications(session: ApiSession, ids?: Array<string>, category?: number): Promise<boolean>;
|
|
181
178
|
/** Delete a role by ID. */
|
|
182
|
-
deleteRole(session:
|
|
179
|
+
deleteRole(session: ApiSession, roleId: string, clanId: string, roleLabel?: string): Promise<boolean>;
|
|
183
180
|
/** Delete a event by ID. */
|
|
184
|
-
deleteEvent(session:
|
|
181
|
+
deleteEvent(session: ApiSession, eventId: string, clanId: string, creatorId: string, eventLabel?: string, channelId?: string): Promise<boolean>;
|
|
185
182
|
/** update user a event by ID. */
|
|
186
|
-
updateEventUser(session:
|
|
183
|
+
updateEventUser(session: ApiSession, request: ApiDeleteEventRequest): Promise<boolean>;
|
|
187
184
|
/** Submit an event for processing in the server's registered runtime custom events handler. */
|
|
188
|
-
emitEvent(session:
|
|
185
|
+
emitEvent(session: ApiSession, request: ApiEvent): Promise<boolean>;
|
|
189
186
|
/** Fetch the current user's account. */
|
|
190
|
-
getAccount(session:
|
|
187
|
+
getAccount(session: ApiSession): Promise<ApiAccount>;
|
|
191
188
|
/** Kick a set of users from a clan. */
|
|
192
|
-
removeClanUsers(session:
|
|
193
|
-
listBannedUsers(session:
|
|
189
|
+
removeClanUsers(session: ApiSession, clanId: string, ids?: Array<string>): Promise<boolean>;
|
|
190
|
+
listBannedUsers(session: ApiSession, clanId?: string, channelId?: string): Promise<ApiBannedUserList>;
|
|
194
191
|
/** Ban a set of users from a clan. */
|
|
195
|
-
unbanClanUsers(session:
|
|
192
|
+
unbanClanUsers(session: ApiSession, clanId: string, channelId?: string, userIds?: Array<string>): Promise<boolean>;
|
|
196
193
|
/** Ban a set of users from a clan. */
|
|
197
|
-
banClanUsers(session:
|
|
194
|
+
banClanUsers(session: ApiSession, clanId: string, channelId?: string, userIds?: Array<string>, banTime?: number): Promise<boolean>;
|
|
198
195
|
/** Kick users from a channel, or decline their join requests. */
|
|
199
|
-
removeChannelUsers(session:
|
|
196
|
+
removeChannelUsers(session: ApiSession, channelId: string, ids?: Array<string>): Promise<boolean>;
|
|
200
197
|
/** List a channel's message history. */
|
|
201
|
-
listChannelMessages(session:
|
|
198
|
+
listChannelMessages(session: ApiSession, clanId: string, channelId: string, messageId?: string, direction?: number, limit?: number, topicId?: string): Promise<ChannelMessageList>;
|
|
202
199
|
/** List a channel's users. */
|
|
203
|
-
listChannelVoiceUsers(session:
|
|
200
|
+
listChannelVoiceUsers(session: ApiSession, clanId: string, limit?: number): Promise<ApiVoiceChannelUserList>;
|
|
204
201
|
/** List a channel's users. */
|
|
205
|
-
listChannelUsers(session:
|
|
202
|
+
listChannelUsers(session: ApiSession, clanId: string, channelId: string, channelType: number, state?: number, limit?: number, cursor?: string): Promise<ApiChannelUserList>;
|
|
206
203
|
/** List a channel's attachment. */
|
|
207
|
-
listChannelAttachments(session:
|
|
204
|
+
listChannelAttachments(session: ApiSession, clanId: string, channelId: string, fileType: string, state?: number, limit?: number, before?: number, after?: number): Promise<ApiChannelAttachmentList>;
|
|
208
205
|
/** List a channel's users. */
|
|
209
|
-
listClanUsers(session:
|
|
206
|
+
listClanUsers(session: ApiSession, clanId: string): Promise<ApiClanUserList>;
|
|
210
207
|
/** List clan members' custom status strings (user_status). */
|
|
211
|
-
listClanUsersStatus(session:
|
|
212
|
-
listChannelDetail(session:
|
|
208
|
+
listClanUsersStatus(session: ApiSession, clanId: string): Promise<ApiClanUserStatusList>;
|
|
209
|
+
listChannelDetail(session: ApiSession, channelId: string): Promise<ApiChannelDescription>;
|
|
213
210
|
/** List channels. */
|
|
214
|
-
listChannelDescs(session:
|
|
211
|
+
listChannelDescs(session: ApiSession, limit?: number, state?: number, page?: number, clanId?: string, channelType?: number, isMobile?: boolean): Promise<ApiChannelDescList>;
|
|
215
212
|
/** List clans */
|
|
216
|
-
listClanDescs(session:
|
|
213
|
+
listClanDescs(session: ApiSession, limit?: number, state?: number, cursor?: string): Promise<ApiClanDescList>;
|
|
217
214
|
/** Paged channel badge/unread list (HTTP). */
|
|
218
|
-
listChannelBadgeCount(session:
|
|
215
|
+
listChannelBadgeCount(session: ApiSession, clanId: string, limit?: number, page?: number): Promise<ApiListChannelBadgeCountResponse>;
|
|
219
216
|
/** Paged online users in a clan (HTTP). */
|
|
220
|
-
listUserOnline(session:
|
|
217
|
+
listUserOnline(session: ApiSession, clanId: string, limit?: number, page?: number): Promise<ApiListUserOnlineResponse>;
|
|
221
218
|
/** List categories. */
|
|
222
|
-
listCategoryDescs(session:
|
|
219
|
+
listCategoryDescs(session: ApiSession, clanId: string, creatorId?: string, categoryName?: string): Promise<ApiCategoryDescList>;
|
|
223
220
|
/** List event */
|
|
224
|
-
listEvents(session:
|
|
221
|
+
listEvents(session: ApiSession, clanId?: string): Promise<ApiEventList>;
|
|
225
222
|
/** List permission */
|
|
226
|
-
getListPermission(session:
|
|
223
|
+
getListPermission(session: ApiSession): Promise<ApiPermissionList>;
|
|
227
224
|
/** List user roles */
|
|
228
|
-
listRolePermissions(session:
|
|
225
|
+
listRolePermissions(session: ApiSession, roleId: string): Promise<ApiPermissionList>;
|
|
229
226
|
/** List user roles */
|
|
230
|
-
listRoleUsers(session:
|
|
231
|
-
registFCMDeviceToken(session:
|
|
232
|
-
getUserProfileOnClan(session:
|
|
233
|
-
closeDirectMess(session:
|
|
234
|
-
openDirectMess(session:
|
|
235
|
-
confirmLinkMezonOTP(session:
|
|
227
|
+
listRoleUsers(session: ApiSession, roleId: string, limit?: number, cursor?: string): Promise<ApiRoleUserList>;
|
|
228
|
+
registFCMDeviceToken(session: ApiSession, tokenId: string, deviceId: string, platform: string, voipToken?: string): Promise<ApiRegistFcmDeviceTokenResponse>;
|
|
229
|
+
getUserProfileOnClan(session: ApiSession, clanId: string): Promise<ApiClanProfile>;
|
|
230
|
+
closeDirectMess(session: ApiSession, request: ApiDeleteChannelDescRequest): Promise<boolean>;
|
|
231
|
+
openDirectMess(session: ApiSession, request: ApiDeleteChannelDescRequest): Promise<boolean>;
|
|
232
|
+
confirmLinkMezonOTP(session: ApiSession, request: ApiLinkAccountConfirmRequest): Promise<ApiSession>;
|
|
236
233
|
/** Add a custom ID to the social profiles on the current user's account. */
|
|
237
|
-
linkSMS(session:
|
|
234
|
+
linkSMS(session: ApiSession, request: ApiLinkAccountMezon): Promise<ApiLinkAccountConfirmRequest>;
|
|
238
235
|
/** Add an email+password to the social profiles on the current user's account. */
|
|
239
|
-
linkEmail(session:
|
|
236
|
+
linkEmail(session: ApiSession, request: ApiAccountEmail): Promise<ApiLinkAccountConfirmRequest>;
|
|
240
237
|
/** List all friends for the current user. */
|
|
241
|
-
listFriends(session:
|
|
238
|
+
listFriends(session: ApiSession, state?: number, limit?: number, cursor?: string): Promise<Friends>;
|
|
242
239
|
/** Fetch list of notifications. */
|
|
243
|
-
listNotifications(session:
|
|
240
|
+
listNotifications(session: ApiSession, clanId: string, limit?: number, notificationId?: string, category?: number, direction?: number): Promise<ApiNotificationList>;
|
|
244
241
|
/** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
|
|
245
|
-
sessionLogout(session:
|
|
242
|
+
sessionLogout(session: ApiSession, token: string, refreshToken: string, deviceId: string, platform: string): Promise<boolean>;
|
|
246
243
|
/** Remove an email+password from the social profiles on the current user's account. */
|
|
247
|
-
unlinkEmail(session:
|
|
244
|
+
unlinkEmail(session: ApiSession, request: ApiAccountEmail): Promise<boolean>;
|
|
248
245
|
/** Update fields in the current user's account. */
|
|
249
|
-
updateUsername(session:
|
|
246
|
+
updateUsername(session: ApiSession, request: ApiUpdateUsernameRequest): Promise<ApiSession>;
|
|
250
247
|
/** Update fields in the current user's account. */
|
|
251
|
-
updateAccount(session:
|
|
248
|
+
updateAccount(session: ApiSession, request: ApiUpdateAccountRequest): Promise<boolean>;
|
|
252
249
|
/** Update fields in a given channel */
|
|
253
|
-
updateChannelDesc(session:
|
|
250
|
+
updateChannelDesc(session: ApiSession, channelId: string, request: ApiUpdateChannelDescRequest): Promise<boolean>;
|
|
254
251
|
/** Update fields in a given clan. */
|
|
255
|
-
updateClanDesc(session:
|
|
252
|
+
updateClanDesc(session: ApiSession, clanId: string, request: MezonUpdateClanDescBody): Promise<boolean>;
|
|
256
253
|
/** Update fields in a given category. */
|
|
257
|
-
updateCategory(session:
|
|
258
|
-
updateUserProfileByClan(session:
|
|
254
|
+
updateCategory(session: ApiSession, clanId: string, request: ApiUpdateCategoryDescRequest): Promise<boolean>;
|
|
255
|
+
updateUserProfileByClan(session: ApiSession, clanId: string, request: ApiUpdateClanProfileRequest): Promise<boolean>;
|
|
259
256
|
/** Update fields in a given role. */
|
|
260
|
-
updateRole(session:
|
|
257
|
+
updateRole(session: ApiSession, roleId: string, request: ApiUpdateRoleRequest): Promise<boolean>;
|
|
261
258
|
/** Update fields in a given event. */
|
|
262
|
-
updateEvent(session:
|
|
259
|
+
updateEvent(session: ApiSession, roleId: string, request: MezonUpdateEventBody): Promise<boolean>;
|
|
263
260
|
/** Update fields in a given event. */
|
|
264
|
-
updateApp(session:
|
|
261
|
+
updateApp(session: ApiSession, roleId: string, request: MezonUpdateAppBody): Promise<ApiApp>;
|
|
265
262
|
/** Update fields in a given clan profile. */
|
|
266
|
-
createLinkInviteUser(session:
|
|
263
|
+
createLinkInviteUser(session: ApiSession, request: ApiLinkInviteUserRequest): Promise<ApiLinkInviteUser>;
|
|
267
264
|
/** Get link invite user */
|
|
268
265
|
getLinkInvite(inviteId: string): Promise<ApiInviteUserRes>;
|
|
269
266
|
/** Get permission of user in the clan */
|
|
270
|
-
GetRoleOfUserInTheClan(session:
|
|
267
|
+
GetRoleOfUserInTheClan(session: ApiSession, clanId: string): Promise<ApiRoleList>;
|
|
271
268
|
/** invite user */
|
|
272
|
-
inviteUser(session:
|
|
269
|
+
inviteUser(session: ApiSession, inviteId: string): Promise<ApiInviteUserRes>;
|
|
273
270
|
/** Set default notification clan*/
|
|
274
|
-
setNotificationClan(session:
|
|
271
|
+
setNotificationClan(session: ApiSession, request: ApiSetDefaultNotificationRequest): Promise<boolean>;
|
|
275
272
|
/** Set notification channel*/
|
|
276
|
-
setNotificationChannel(session:
|
|
273
|
+
setNotificationChannel(session: ApiSession, request: ApiSetNotificationRequest): Promise<boolean>;
|
|
277
274
|
/** Set notification category*/
|
|
278
|
-
setMuteCategory(session:
|
|
275
|
+
setMuteCategory(session: ApiSession, request: ApiSetMuteRequest): Promise<boolean>;
|
|
279
276
|
/** Set notification channel*/
|
|
280
|
-
setMuteChannel(session:
|
|
277
|
+
setMuteChannel(session: ApiSession, request: ApiSetMuteRequest): Promise<boolean>;
|
|
281
278
|
/** update channel private*/
|
|
282
|
-
updateChannelPrivate(session:
|
|
279
|
+
updateChannelPrivate(session: ApiSession, request: ApiChangeChannelPrivateRequest): Promise<boolean>;
|
|
283
280
|
/** Set default notification category*/
|
|
284
|
-
setNotificationCategory(session:
|
|
285
|
-
deleteNotificationCategory(session:
|
|
286
|
-
deleteNotificationChannel(session:
|
|
281
|
+
setNotificationCategory(session: ApiSession, request: ApiSetNotificationRequest): Promise<boolean>;
|
|
282
|
+
deleteNotificationCategory(session: ApiSession, category_id: string): Promise<boolean>;
|
|
283
|
+
deleteNotificationChannel(session: ApiSession, channel_id: string): Promise<boolean>;
|
|
287
284
|
/** */
|
|
288
|
-
setNotificationReactMessage(session:
|
|
289
|
-
deleteNotiReactMessage(session:
|
|
285
|
+
setNotificationReactMessage(session: ApiSession, channel_id: string): Promise<boolean>;
|
|
286
|
+
deleteNotiReactMessage(session: ApiSession, channel_id: string): Promise<boolean>;
|
|
290
287
|
/** query message in elasticsearch */
|
|
291
|
-
searchMessage(session:
|
|
288
|
+
searchMessage(session: ApiSession, request: ApiSearchMessageRequest): Promise<ApiSearchMessageResponse>;
|
|
292
289
|
/** */
|
|
293
|
-
createMessage2Inbox(session:
|
|
290
|
+
createMessage2Inbox(session: ApiSession, request: ApiMessage2InboxRequest): Promise<ApiChannelMessageHeader>;
|
|
294
291
|
/** */
|
|
295
|
-
createPinMessage(session:
|
|
296
|
-
pinMessagesList(session:
|
|
297
|
-
deletePinMessage(session:
|
|
292
|
+
createPinMessage(session: ApiSession, request: ApiPinMessageRequest): Promise<ApiChannelMessageHeader>;
|
|
293
|
+
pinMessagesList(session: ApiSession, messageId: string, channelId: string, clanId: string): Promise<ApiPinMessagesList>;
|
|
294
|
+
deletePinMessage(session: ApiSession, id?: string, messageId?: string, channelId?: string, clanId?: string): Promise<boolean>;
|
|
298
295
|
/** create clan emoji */
|
|
299
|
-
createClanEmoji(session:
|
|
300
|
-
updateClanEmojiById(session:
|
|
301
|
-
deleteByIdClanEmoji(session:
|
|
302
|
-
generateWebhookLink(session:
|
|
303
|
-
listWebhookByChannelId(session:
|
|
304
|
-
updateWebhookById(session:
|
|
305
|
-
deleteWebhookById(session:
|
|
306
|
-
addClanSticker(session:
|
|
307
|
-
deleteClanStickerById(session:
|
|
308
|
-
updateClanStickerById(session:
|
|
309
|
-
changeChannelCategory(session:
|
|
296
|
+
createClanEmoji(session: ApiSession, request: ApiClanEmojiCreateRequest): Promise<boolean>;
|
|
297
|
+
updateClanEmojiById(session: ApiSession, id: string, request: MezonUpdateClanEmojiByIdBody): Promise<boolean>;
|
|
298
|
+
deleteByIdClanEmoji(session: ApiSession, id: string, clan_id: string, emojiLabel?: string): Promise<boolean>;
|
|
299
|
+
generateWebhookLink(session: ApiSession, request: ApiWebhookCreateRequest): Promise<ApiWebhookGenerateResponse>;
|
|
300
|
+
listWebhookByChannelId(session: ApiSession, channel_id: string, clan_id: string): Promise<ApiWebhookListResponse>;
|
|
301
|
+
updateWebhookById(session: ApiSession, id: string, request: MezonUpdateWebhookByIdBody): Promise<boolean>;
|
|
302
|
+
deleteWebhookById(session: ApiSession, id: string, request: MezonDeleteWebhookByIdBody): Promise<boolean>;
|
|
303
|
+
addClanSticker(session: ApiSession, request: ApiClanStickerAddRequest): Promise<boolean>;
|
|
304
|
+
deleteClanStickerById(session: ApiSession, id: string, clan_id: string, stickerLabel?: string): Promise<boolean>;
|
|
305
|
+
updateClanStickerById(session: ApiSession, id: string, request: MezonUpdateClanStickerByIdBody): Promise<boolean>;
|
|
306
|
+
changeChannelCategory(session: ApiSession, id: string, request: MezonChangeChannelCategoryBody): Promise<boolean>;
|
|
310
307
|
/** */
|
|
311
|
-
setRoleChannelPermission(session:
|
|
312
|
-
addApp(session:
|
|
313
|
-
getApp(session:
|
|
314
|
-
listApps(session:
|
|
315
|
-
addAppToClan(session:
|
|
316
|
-
getSystemMessagesList(session:
|
|
317
|
-
getSystemMessageByClanId(session:
|
|
318
|
-
createSystemMessage(session:
|
|
319
|
-
updateSystemMessage(session:
|
|
320
|
-
deleteSystemMessage(session:
|
|
321
|
-
updateCategoryOrder(session:
|
|
322
|
-
givecoffee(session:
|
|
323
|
-
sendToken(session:
|
|
308
|
+
setRoleChannelPermission(session: ApiSession, request: ApiUpdateRoleChannelRequest): Promise<boolean>;
|
|
309
|
+
addApp(session: ApiSession, request: ApiAddAppRequest): Promise<ApiApp>;
|
|
310
|
+
getApp(session: ApiSession, id: string): Promise<ApiApp>;
|
|
311
|
+
listApps(session: ApiSession): Promise<ApiAppList>;
|
|
312
|
+
addAppToClan(session: ApiSession, appId: string, clanId: string): Promise<boolean>;
|
|
313
|
+
getSystemMessagesList(session: ApiSession): Promise<ApiSystemMessagesList>;
|
|
314
|
+
getSystemMessageByClanId(session: ApiSession, clanId: string): Promise<ApiSystemMessage>;
|
|
315
|
+
createSystemMessage(session: ApiSession, request: ApiSystemMessageRequest): Promise<any>;
|
|
316
|
+
updateSystemMessage(session: ApiSession, clanId: string, request: MezonUpdateSystemMessageBody): Promise<any>;
|
|
317
|
+
deleteSystemMessage(session: ApiSession, clanId: string): Promise<any>;
|
|
318
|
+
updateCategoryOrder(session: ApiSession, request: ApiUpdateCategoryOrderRequest): Promise<any>;
|
|
319
|
+
givecoffee(session: ApiSession, request: ApiGiveCoffeeEvent): Promise<any>;
|
|
320
|
+
sendToken(session: ApiSession, request: ApiTokenSentEvent): Promise<any>;
|
|
324
321
|
/** List a channel's users. */
|
|
325
|
-
listStreamingChannelUsers(session:
|
|
326
|
-
registerStreamingChannel(session:
|
|
322
|
+
listStreamingChannelUsers(session: ApiSession, clanId: string, channelId: string, channelType: number, state?: number, limit?: number, cursor?: string): Promise<ApiStreamingChannelUserList>;
|
|
323
|
+
registerStreamingChannel(session: ApiSession, request: ApiRegisterStreamingChannelRequest): Promise<boolean>;
|
|
327
324
|
/** List a channel's users. */
|
|
328
|
-
listChannelApps(session:
|
|
329
|
-
getChannelCategoryNotiSettingsList(session:
|
|
330
|
-
getNotificationCategory(session:
|
|
331
|
-
getNotificationChannel(session:
|
|
332
|
-
getNotificationClan(session:
|
|
333
|
-
getNotificationReactMessage(session:
|
|
334
|
-
listChannelByUserId(session:
|
|
335
|
-
listChannelUsersUC(session:
|
|
336
|
-
getListEmojisByUserId(session:
|
|
337
|
-
emojiRecentList(session:
|
|
338
|
-
getListStickersByUserId(session:
|
|
339
|
-
listUserClansByUserId(session:
|
|
340
|
-
listRoles(session:
|
|
341
|
-
listUserPermissionInChannel(session:
|
|
342
|
-
getPermissionByRoleIdChannelId(session:
|
|
343
|
-
markAsRead(session:
|
|
325
|
+
listChannelApps(session: ApiSession, clanId: string): Promise<ApiListChannelAppsResponse>;
|
|
326
|
+
getChannelCategoryNotiSettingsList(session: ApiSession, clanId: string): Promise<ApiNotificationChannelCategorySettingList>;
|
|
327
|
+
getNotificationCategory(session: ApiSession, categoryId: string): Promise<ApiNotificationUserChannel>;
|
|
328
|
+
getNotificationChannel(session: ApiSession, channelId: string): Promise<ApiNotificationUserChannel>;
|
|
329
|
+
getNotificationClan(session: ApiSession, clanId: string): Promise<ApiNotificationSetting>;
|
|
330
|
+
getNotificationReactMessage(session: ApiSession, channelId: string): Promise<ApiNotifiReactMessage>;
|
|
331
|
+
listChannelByUserId(session: ApiSession): Promise<ApiChannelDescList>;
|
|
332
|
+
listChannelUsersUC(session: ApiSession, channel_id: string, limit: number): Promise<ApiAllUsersAddChannelResponse>;
|
|
333
|
+
getListEmojisByUserId(session: ApiSession): Promise<ApiEmojiListedResponse>;
|
|
334
|
+
emojiRecentList(session: ApiSession): Promise<ApiEmojiRecentList>;
|
|
335
|
+
getListStickersByUserId(session: ApiSession): Promise<ApiStickerListedResponse>;
|
|
336
|
+
listUserClansByUserId(session: ApiSession): Promise<ApiAllUserClans>;
|
|
337
|
+
listRoles(session: ApiSession, clanId?: string, limit?: number, state?: number, cursor?: string): Promise<ApiRoleListEventResponse>;
|
|
338
|
+
listUserPermissionInChannel(session: ApiSession, clanId?: string, channelId?: string): Promise<ApiUserPermissionInChannelListResponse>;
|
|
339
|
+
getPermissionByRoleIdChannelId(session: ApiSession, roleId?: string, channelId?: string, userId?: string): Promise<ApiPermissionRoleChannelListEventResponse>;
|
|
340
|
+
markAsRead(session: ApiSession, request: ApiMarkAsReadRequest): Promise<any>;
|
|
344
341
|
/** List Threads. */
|
|
345
|
-
listThreadDescs(session:
|
|
346
|
-
listChannelTimeline(session:
|
|
347
|
-
createChannelTimeline(session:
|
|
348
|
-
updateChannelTimeline(session:
|
|
349
|
-
detailChannelTimeline(session:
|
|
350
|
-
leaveThread(session:
|
|
342
|
+
listThreadDescs(session: ApiSession, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number): Promise<ApiChannelDescList>;
|
|
343
|
+
listChannelTimeline(session: ApiSession, request: ApiListChannelTimelineRequest): Promise<ApiListChannelTimelineResponse>;
|
|
344
|
+
createChannelTimeline(session: ApiSession, request: ApiCreateChannelTimelineRequest): Promise<ApiCreateChannelTimelineResponse>;
|
|
345
|
+
updateChannelTimeline(session: ApiSession, request: ApiUpdateChannelTimelineRequest): Promise<ApiUpdateChannelTimelineResponse>;
|
|
346
|
+
detailChannelTimeline(session: ApiSession, request: ApiDetailChannelTimelineRequest): Promise<ApiDetailChannelTimelineResponse>;
|
|
347
|
+
leaveThread(session: ApiSession, clanId: string, channelId: string): Promise<any>;
|
|
351
348
|
/** Archive a single channel/thread (active = 0). */
|
|
352
|
-
archiveChannel(session:
|
|
349
|
+
archiveChannel(session: ApiSession, clanId: string, channelId: string): Promise<any>;
|
|
353
350
|
/** List archived top-level channels in a clan. */
|
|
354
|
-
listArchivedChannelDescs(session:
|
|
355
|
-
getChannelSettingInClan(session:
|
|
356
|
-
getChannelCanvasList(session:
|
|
357
|
-
getChannelCanvasDetail(session:
|
|
358
|
-
editChannelCanvases(session:
|
|
359
|
-
deleteChannelCanvas(session:
|
|
360
|
-
addFavoriteChannel(session:
|
|
361
|
-
removeFavoriteChannel(session:
|
|
362
|
-
getListFavoriteChannel(session:
|
|
351
|
+
listArchivedChannelDescs(session: ApiSession, clanId: string): Promise<ApiChannelDescList>;
|
|
352
|
+
getChannelSettingInClan(session: ApiSession, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number, channelLabel?: string): Promise<ApiChannelSettingListResponse>;
|
|
353
|
+
getChannelCanvasList(session: ApiSession, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
|
|
354
|
+
getChannelCanvasDetail(session: ApiSession, id: string, clanId?: string, channelId?: string): Promise<any>;
|
|
355
|
+
editChannelCanvases(session: ApiSession, request: ApiEditChannelCanvasRequest): Promise<any>;
|
|
356
|
+
deleteChannelCanvas(session: ApiSession, canvasId: string, clanId?: string, channelId?: string): Promise<any>;
|
|
357
|
+
addFavoriteChannel(session: ApiSession, channelId: string, clanId: string): Promise<ApiAddFavoriteChannelResponse>;
|
|
358
|
+
removeFavoriteChannel(session: ApiSession, clanId: string, channelId: string): Promise<any>;
|
|
359
|
+
getListFavoriteChannel(session: ApiSession, clanId: string): Promise<any>;
|
|
363
360
|
/** List activity */
|
|
364
|
-
listActivity(session:
|
|
365
|
-
createActiviy(session:
|
|
361
|
+
listActivity(session: ApiSession): Promise<ApiListUserActivity>;
|
|
362
|
+
createActiviy(session: ApiSession, request: ApiCreateActivityRequest): Promise<ApiUserActivity>;
|
|
366
363
|
createQRLogin(requet: ApiLoginRequest): Promise<ApiLoginIDResponse>;
|
|
367
|
-
checkLoginRequest(requet: ApiConfirmLoginRequest): Promise<
|
|
368
|
-
confirmLogin(session:
|
|
369
|
-
getChanEncryptionMethod(session:
|
|
370
|
-
setChanEncryptionMethod(session:
|
|
371
|
-
getPubKeys(session:
|
|
372
|
-
pushPubKey(session:
|
|
373
|
-
getKeyServer(session:
|
|
374
|
-
listAuditLog(session:
|
|
375
|
-
listOnboarding(session:
|
|
376
|
-
getOnboardingDetail(session:
|
|
377
|
-
createOnboarding(session:
|
|
378
|
-
updateOnboarding(session:
|
|
379
|
-
deleteOnboarding(session:
|
|
380
|
-
generateClanWebhook(session:
|
|
381
|
-
listClanWebhook(session:
|
|
382
|
-
deleteClanWebhookById(session:
|
|
383
|
-
updateClanWebhookById(session:
|
|
384
|
-
listOnboardingStep(session:
|
|
385
|
-
updateOnboardingStepByClanId(session:
|
|
386
|
-
updateUserStatus(session:
|
|
364
|
+
checkLoginRequest(requet: ApiConfirmLoginRequest): Promise<ApiSession | null>;
|
|
365
|
+
confirmLogin(session: ApiSession, basePath: string, body: ApiConfirmLoginRequest): Promise<any>;
|
|
366
|
+
getChanEncryptionMethod(session: ApiSession, channelId: string): Promise<ApiChanEncryptionMethod>;
|
|
367
|
+
setChanEncryptionMethod(session: ApiSession, channelId: string, method: string): Promise<any>;
|
|
368
|
+
getPubKeys(session: ApiSession, userIds: Array<string>): Promise<ApiGetPubKeysResponse>;
|
|
369
|
+
pushPubKey(session: ApiSession, PK: ApiPubKey): Promise<ApiGetPubKeysResponse>;
|
|
370
|
+
getKeyServer(session: ApiSession): Promise<ApiGetKeyServerResp>;
|
|
371
|
+
listAuditLog(session: ApiSession, actionLog?: string, userId?: string, clanId?: string, date_log?: string): Promise<MezonapiListAuditLog>;
|
|
372
|
+
listOnboarding(session: ApiSession, clanId?: string, guideType?: number, limit?: number, page?: number): Promise<ApiListOnboardingResponse>;
|
|
373
|
+
getOnboardingDetail(session: ApiSession, id: string, clanId?: string): Promise<ApiOnboardingItem>;
|
|
374
|
+
createOnboarding(session: ApiSession, request: ApiCreateOnboardingRequest): Promise<ApiListOnboardingResponse>;
|
|
375
|
+
updateOnboarding(session: ApiSession, id: string, request: MezonUpdateOnboardingBody): Promise<boolean>;
|
|
376
|
+
deleteOnboarding(session: ApiSession, id: string, clanId?: string): Promise<any>;
|
|
377
|
+
generateClanWebhook(session: ApiSession, request: ApiGenerateClanWebhookRequest): Promise<ApiGenerateClanWebhookResponse>;
|
|
378
|
+
listClanWebhook(session: ApiSession, clan_id: string): Promise<ApiListClanWebhookResponse>;
|
|
379
|
+
deleteClanWebhookById(session: ApiSession, id: string, clan_id: string): Promise<boolean>;
|
|
380
|
+
updateClanWebhookById(session: ApiSession, id: string, request: MezonUpdateClanWebhookByIdBody): Promise<boolean>;
|
|
381
|
+
listOnboardingStep(session: ApiSession, clan_id?: string, limit?: number, page?: number): Promise<ApiListOnboardingStepResponse>;
|
|
382
|
+
updateOnboardingStepByClanId(session: ApiSession, clan_id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
|
|
383
|
+
updateUserStatus(session: ApiSession, request: ApiUserStatusUpdate): Promise<boolean>;
|
|
387
384
|
/** Update user custom status (user_status). */
|
|
388
|
-
updateUserCustomStatus(session:
|
|
389
|
-
getUserStatus(session:
|
|
390
|
-
listSdTopic(session:
|
|
391
|
-
createSdTopic(session:
|
|
392
|
-
getTopicDetail(session:
|
|
393
|
-
createRoomChannelApps(session:
|
|
385
|
+
updateUserCustomStatus(session: ApiSession, request: ApiUserStatusUpdate): Promise<boolean>;
|
|
386
|
+
getUserStatus(session: ApiSession): Promise<ApiUserStatus>;
|
|
387
|
+
listSdTopic(session: ApiSession, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
|
|
388
|
+
createSdTopic(session: ApiSession, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
|
|
389
|
+
getTopicDetail(session: ApiSession, topicId?: string): Promise<ApiSdTopic>;
|
|
390
|
+
createRoomChannelApps(session: ApiSession, body: MezonapiCreateRoomChannelApps): Promise<MezonapiCreateRoomChannelApps>;
|
|
394
391
|
/** Generate Meet Token */
|
|
395
|
-
generateMeetToken(session:
|
|
396
|
-
listMezonOauthClient(session:
|
|
397
|
-
getMezonOauthClient(session:
|
|
398
|
-
updateMezonOauthClient(session:
|
|
399
|
-
searchThread(session:
|
|
400
|
-
generateHashChannelApps(session:
|
|
401
|
-
registrationPassword(session:
|
|
392
|
+
generateMeetToken(session: ApiSession, body: ApiGenerateMeetTokenRequest): Promise<ApiGenerateMeetTokenResponse>;
|
|
393
|
+
listMezonOauthClient(session: ApiSession): Promise<ApiMezonOauthClientList>;
|
|
394
|
+
getMezonOauthClient(session: ApiSession, clientId?: string, clientName?: string): Promise<ApiMezonOauthClient>;
|
|
395
|
+
updateMezonOauthClient(session: ApiSession, body: ApiMezonOauthClient): Promise<ApiMezonOauthClient>;
|
|
396
|
+
searchThread(session: ApiSession, clanId?: string, channelId?: string, label?: string): Promise<ApiChannelDescList>;
|
|
397
|
+
generateHashChannelApps(session: ApiSession, appId?: string): Promise<ApiCreateHashChannelAppsResponse>;
|
|
398
|
+
registrationPassword(session: ApiSession, email?: string, password?: string, oldPassword?: string): Promise<ApiSession>;
|
|
402
399
|
/** Add user event */
|
|
403
|
-
addUserEvent(session:
|
|
400
|
+
addUserEvent(session: ApiSession, request: ApiUserEventRequest): Promise<any>;
|
|
404
401
|
/** Delete user event */
|
|
405
|
-
deleteUserEvent(session:
|
|
406
|
-
updateRoleOrder(session:
|
|
407
|
-
deleteAccount(session:
|
|
408
|
-
createExternalMezonMeet(session:
|
|
402
|
+
deleteUserEvent(session: ApiSession, clanId?: string, eventId?: string): Promise<any>;
|
|
403
|
+
updateRoleOrder(session: ApiSession, request: ApiUpdateRoleOrderRequest): Promise<any>;
|
|
404
|
+
deleteAccount(session: ApiSession): Promise<any>;
|
|
405
|
+
createExternalMezonMeet(session: ApiSession): Promise<ApiGenerateMezonMeetResponse>;
|
|
409
406
|
generateMeetTokenExternal(basePath: string, token: string, username?: string, metadata?: string, isGuest?: boolean): Promise<ApiGenerateMeetTokenExternalResponse>;
|
|
410
|
-
removeMezonMeetParticipant(session:
|
|
411
|
-
muteMezonMeetParticipant(session:
|
|
407
|
+
removeMezonMeetParticipant(session: ApiSession, request: ApiMeetParticipantRequest): Promise<any>;
|
|
408
|
+
muteMezonMeetParticipant(session: ApiSession, request: ApiMeetParticipantRequest): Promise<any>;
|
|
412
409
|
/** Update clan order to view. */
|
|
413
|
-
updateClanOrder(session:
|
|
410
|
+
updateClanOrder(session: ApiSession, request: ApiUpdateClanOrderRequest): Promise<boolean>;
|
|
414
411
|
/** list clan discover. */
|
|
415
412
|
listClanDiscover(basePath: string, request: ApiClanDiscoverRequest): Promise<ApiListClanDiscover>;
|
|
416
|
-
listQuickMenuAccess(session:
|
|
417
|
-
deleteQuickMenuAccess(session:
|
|
418
|
-
addQuickMenuAccess(session:
|
|
419
|
-
updateQuickMenuAccess(session:
|
|
420
|
-
listForSaleItems(session:
|
|
421
|
-
isFollower(session:
|
|
422
|
-
transferOwnership(session:
|
|
423
|
-
isBanned(session:
|
|
424
|
-
reportMessageAbuse(session:
|
|
425
|
-
updateMezonVoiceState(session:
|
|
426
|
-
sendChannelMessage(session:
|
|
427
|
-
updateChannelMessage(session:
|
|
428
|
-
deleteChannelMessage(session:
|
|
429
|
-
messageButtonClick(session:
|
|
430
|
-
dropdownBoxSelected(session:
|
|
431
|
-
activeArchivedThread(session:
|
|
432
|
-
addAgentToChannel(session:
|
|
433
|
-
disconnectAgent(session:
|
|
434
|
-
listMutedChannel(session:
|
|
435
|
-
channelMessageReact(session:
|
|
413
|
+
listQuickMenuAccess(session: ApiSession, botId: string, channelId: string, menuType: number): Promise<ApiQuickMenuAccessList>;
|
|
414
|
+
deleteQuickMenuAccess(session: ApiSession, id: string, clanId: string): Promise<any>;
|
|
415
|
+
addQuickMenuAccess(session: ApiSession, request: ApiQuickMenuAccessRequest): Promise<any>;
|
|
416
|
+
updateQuickMenuAccess(session: ApiSession, request: ApiQuickMenuAccessRequest): Promise<any>;
|
|
417
|
+
listForSaleItems(session: ApiSession, page?: number): Promise<ApiForSaleItemList>;
|
|
418
|
+
isFollower(session: ApiSession, req: ApiIsFollowerRequest): Promise<ApiIsFollowerResponse>;
|
|
419
|
+
transferOwnership(session: ApiSession, req: ApiTransferOwnershipRequest): Promise<any>;
|
|
420
|
+
isBanned(session: ApiSession, channelId: string): Promise<ApiIsBannedResponse>;
|
|
421
|
+
reportMessageAbuse(session: ApiSession, messageId?: string, abuseType?: string): Promise<any>;
|
|
422
|
+
updateMezonVoiceState(session: ApiSession, clanId?: string, channelId?: string, displayName?: string, roomName?: string, state?: number): Promise<any>;
|
|
423
|
+
sendChannelMessage(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: boolean, avatar?: string, code?: number, topicId?: string): Promise<ChannelMessageAck>;
|
|
424
|
+
updateChannelMessage(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topicId?: string, isUpdateMsgTopic?: boolean): Promise<any>;
|
|
425
|
+
deleteChannelMessage(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, hasAttachment?: boolean, topicId?: string, mentions?: Uint8Array, references?: Uint8Array): Promise<any>;
|
|
426
|
+
messageButtonClick(session: ApiSession, messageId?: string, channelId?: string, buttonId?: string, senderId?: string, userId?: string, extraData?: string): Promise<any>;
|
|
427
|
+
dropdownBoxSelected(session: ApiSession, messageId?: string, channelId?: string, selectboxId?: string, senderId?: string, userId?: string, values?: string[]): Promise<any>;
|
|
428
|
+
activeArchivedThread(session: ApiSession, clanId?: string, channelId?: string): Promise<any>;
|
|
429
|
+
addAgentToChannel(session: ApiSession, roomName?: string, channelId?: string): Promise<any>;
|
|
430
|
+
disconnectAgent(session: ApiSession, roomName?: string, channelId?: string): Promise<any>;
|
|
431
|
+
listMutedChannel(session: ApiSession, clanId: string): Promise<ApiMutedChannelList>;
|
|
432
|
+
channelMessageReact(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, emojiId: string, emoji: string, count: number, messageSenderId: string, actionDelete: boolean, topicId?: string, emojiRecentId?: string, senderName?: string): Promise<ChannelMessageAck>;
|
|
436
433
|
/** Create a poll in a channel. */
|
|
437
|
-
createPoll(session:
|
|
434
|
+
createPoll(session: ApiSession, request: ApiCreatePollRequest): Promise<ApiCreatePollResponse>;
|
|
438
435
|
/** Vote on a poll. */
|
|
439
|
-
votePoll(session:
|
|
436
|
+
votePoll(session: ApiSession, request: ApiVotePollRequest): Promise<ApiVotePollResponse>;
|
|
440
437
|
/** Close a poll (creator only). */
|
|
441
|
-
closePoll(session:
|
|
438
|
+
closePoll(session: ApiSession, request: ApiClosePollRequest): Promise<any>;
|
|
442
439
|
/** Get poll details. */
|
|
443
|
-
getPoll(session:
|
|
444
|
-
followUsers(session:
|
|
445
|
-
joinClanChat(session:
|
|
446
|
-
follower(session:
|
|
447
|
-
joinChat(session:
|
|
448
|
-
leaveChat(session:
|
|
449
|
-
removeChatMessage(session:
|
|
450
|
-
unfollowUsers(session:
|
|
451
|
-
updateChatMessage(session:
|
|
452
|
-
updateStatus(session:
|
|
453
|
-
writeQuickMenuEvent(session:
|
|
454
|
-
writeEphemeralMessage(session:
|
|
455
|
-
writeChatMessage(session:
|
|
456
|
-
writeMessageReaction(session:
|
|
457
|
-
writeMessageTyping(session:
|
|
458
|
-
writeLastSeenMessage(session:
|
|
459
|
-
writeLastPinMessage(session:
|
|
460
|
-
writeCustomStatus(session:
|
|
461
|
-
writeVoiceReaction(session:
|
|
462
|
-
forwardWebrtcSignaling(session:
|
|
463
|
-
makeCallPush(session:
|
|
464
|
-
writeChannelAppEvent(session:
|
|
465
|
-
listDataSocket(session:
|
|
440
|
+
getPoll(session: ApiSession, request: ApiGetPollRequest): Promise<ApiGetPollResponse>;
|
|
441
|
+
followUsers(session: ApiSession, userIds: string[]): Promise<Status>;
|
|
442
|
+
joinClanChat(session: ApiSession, clan_id: string): Promise<ClanJoin>;
|
|
443
|
+
follower(session: ApiSession): Promise<void>;
|
|
444
|
+
joinChat(session: ApiSession, clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
|
445
|
+
leaveChat(session: ApiSession, clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
|
|
446
|
+
removeChatMessage(session: ApiSession, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
|
|
447
|
+
unfollowUsers(session: ApiSession, user_ids: string[]): Promise<void>;
|
|
448
|
+
updateChatMessage(session: ApiSession, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
|
|
449
|
+
updateStatus(session: ApiSession, status?: string): Promise<void>;
|
|
450
|
+
writeQuickMenuEvent(session: ApiSession, menu_name: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
|
|
451
|
+
writeEphemeralMessage(session: ApiSession, receiver_ids: string[], clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string, id?: string): Promise<ChannelMessageAck>;
|
|
452
|
+
writeChatMessage(session: ApiSession, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
|
|
453
|
+
writeMessageReaction(session: ApiSession, id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string, sender_name?: string): Promise<ApiMessageReaction>;
|
|
454
|
+
writeMessageTyping(session: ApiSession, clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
|
|
455
|
+
writeLastSeenMessage(session: ApiSession, clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
|
456
|
+
writeLastPinMessage(session: ApiSession, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<ApiGetPollResponse>;
|
|
457
|
+
writeCustomStatus(session: ApiSession, clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
458
|
+
writeVoiceReaction(session: ApiSession, emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
|
459
|
+
forwardWebrtcSignaling(session: ApiSession, receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
|
460
|
+
makeCallPush(session: ApiSession, receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
|
|
461
|
+
writeChannelAppEvent(session: ApiSession, clan_id: string, channel_id: string, action: number): Promise<ChannelAppEvent>;
|
|
462
|
+
listDataSocket(session: ApiSession, request: ListDataSocket): Promise<any>;
|
|
466
463
|
}
|