mezon-js 2.15.56 → 2.15.58

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 CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
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, ChannelArchiveEvent, 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, IncomingCallPush, Channel, ClanJoin, Status, ApiListClanBadgeCountResponse } from "./types";
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, ChannelArchiveEvent, 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, IncomingCallPush, Channel, ClanJoin, Status, ApiListClanBadgeCountResponse, TopicInMessageEvent } from "./types";
17
17
  import { ChannelMessageAck, DropdownBoxSelected, LogedDeviceList, MessageButtonClicked, MultipartUploadAttachment, MultipartUploadAttachmentFinishRequest } from "mezon-js-protobuf";
18
18
  export declare const ConnectionState: {
19
19
  readonly DISCONNECTED: "disconnected";
@@ -146,6 +146,7 @@ export declare class Client {
146
146
  * to perform actions before or after the refresh logic.
147
147
  */
148
148
  onrefreshsession(session: ApiSession): void;
149
+ ontopicinmessage(event: TopicInMessageEvent): void;
149
150
  /** Authenticate a user with a custom id against the server. */
150
151
  authenticateMezon(token: string, create?: boolean, username?: string, isRemember?: boolean, vars?: Record<string, string>, options?: any): Promise<ApiSession>;
151
152
  /** Authenticate a user with an email+otp against the server. */
@@ -467,7 +468,7 @@ export declare class Client {
467
468
  unfollowUsers(session: ApiSession, user_ids: string[]): Promise<void>;
468
469
  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>;
469
470
  updateStatus(session: ApiSession, status?: string): Promise<void>;
470
- 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>;
471
+ 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, message_id?: string, message_sender_id?: string): Promise<QuickMenuEvent>;
471
472
  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>;
472
473
  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>;
473
474
  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>;