mezon-js 2.16.18 → 2.16.19
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 +11 -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 +11 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
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, ApiSearchCtrlKRequest, ApiSearchCtrlKResponse, ApiSearchMentionUsersRequest, ApiSearchMentionUsersResponse, ApiGenerateCDNSignatureRequest, ApiGenerateCDNSignatureResponse, ApiGetOverrideEveryoneChannelRequest, ApiGetOverrideEveryoneChannelResponse, ApiDMSetting, ApiGetStreamPlaybackRequest, ApiGetStreamPlaybackResponse, ApiSetOverrideEveryoneChannelRequest, ApiUpdateDMSettingRequest, 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, StreamingViewerCountEvent, 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, VoiceInteractiveEvent, ApiUploadBatchAttachment, ApiUploadBatchAttachmentRequest, ApiSessionRefreshRequest } from "./types";
|
|
17
|
-
import { ChannelMessageAck, DropdownBoxSelected, LogedDeviceList, MessageButtonClicked, MultipartUploadAttachment, MultipartUploadAttachmentFinishRequest } from "mezon-js-protobuf";
|
|
17
|
+
import { ChannelMessageAck, DropdownBoxSelected, LogedDeviceList, MessageButtonClicked, MultipartUploadAttachment, MultipartUploadAttachmentFinishRequest, LinkCDNFileRequest, DeleteSdTopicRequest, SfuBreakoutMergeRequest, SfuBreakoutRoomEvent, SfuBreakoutRoomRequest, SfuBreakoutRoomResponse } from "mezon-js-protobuf";
|
|
18
18
|
import { ScreenShareEvent } from "packages/mezon-js-protobuf/rtapi/realtime";
|
|
19
19
|
export declare const ConnectionState: {
|
|
20
20
|
readonly DISCONNECTED: "disconnected";
|
|
@@ -133,6 +133,7 @@ export declare class Client {
|
|
|
133
133
|
onwebrtcsignalingfwd(event: WebrtcSignalingFwd): void;
|
|
134
134
|
onactivityupdated(list_activity: ListActivity): void;
|
|
135
135
|
onsdtopicevent(sd_topic_event: SdTopicEvent): void;
|
|
136
|
+
onsfubreakoutroomevent(sfu_breakout_room_event: SfuBreakoutRoomEvent): void;
|
|
136
137
|
onchannelappevent(event: ChannelAppEvent): void;
|
|
137
138
|
onuserstatusevent(user_status_event: UserStatusEvent): void;
|
|
138
139
|
onjoinchannelappevent(join_channel_app_data: JoinChannelAppData): void;
|
|
@@ -177,6 +178,12 @@ export declare class Client {
|
|
|
177
178
|
uploadBatchAttachmentFile(session: ApiSession, request: ApiUploadBatchAttachmentRequest): Promise<ApiUploadBatchAttachment>;
|
|
178
179
|
multipartUploadAttachmentFile(session: ApiSession, request: ApiUploadAttachmentRequest): Promise<MultipartUploadAttachment>;
|
|
179
180
|
multipartUploadAttachmentFileFinish(session: ApiSession, request: MultipartUploadAttachmentFinishRequest): Promise<any>;
|
|
181
|
+
/** Copy an already uploaded CDN object to another path. */
|
|
182
|
+
linkCDNFile(session: ApiSession, request: LinkCDNFileRequest): Promise<any>;
|
|
183
|
+
/** Split a voice channel into breakout rooms. */
|
|
184
|
+
sfuBreakoutRoom(session: ApiSession, request: SfuBreakoutRoomRequest): Promise<SfuBreakoutRoomResponse>;
|
|
185
|
+
/** Merge a breakout room back into its parent voice channel. */
|
|
186
|
+
sfuBreakoutMerge(session: ApiSession, request: SfuBreakoutMergeRequest): Promise<any>;
|
|
180
187
|
/** Create a channel within clan */
|
|
181
188
|
createChannelDesc(session: ApiSession, request: ApiCreateChannelDescRequest): Promise<ApiChannelDescription>;
|
|
182
189
|
/** Create a clan */
|
|
@@ -272,6 +279,8 @@ export declare class Client {
|
|
|
272
279
|
sessionLogout(session: ApiSession, token: string, refreshToken: string, deviceId: string, platform: string): Promise<boolean>;
|
|
273
280
|
/** Remove an email+password from the social profiles on the current user's account. */
|
|
274
281
|
unlinkEmail(session: ApiSession, request: ApiAccountEmail): Promise<boolean>;
|
|
282
|
+
/** Remove the mezon phone number from the social profiles on the current user's account. */
|
|
283
|
+
unlinkMezon(session: ApiSession, request: ApiLinkAccountMezon): Promise<boolean>;
|
|
275
284
|
/** Update fields in the current user's account. */
|
|
276
285
|
updateUsername(session: ApiSession, request: ApiUpdateUsernameRequest): Promise<ApiSession>;
|
|
277
286
|
/** Update fields in the current user's account. */
|
|
@@ -430,6 +439,7 @@ export declare class Client {
|
|
|
430
439
|
getUserStatus(session: ApiSession): Promise<ApiUserStatus>;
|
|
431
440
|
listSdTopic(session: ApiSession, clanId?: string, limit?: number, page?: number): Promise<ApiSdTopicList>;
|
|
432
441
|
createSdTopic(session: ApiSession, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
|
|
442
|
+
deleteSdTopic(session: ApiSession, request: DeleteSdTopicRequest): Promise<any>;
|
|
433
443
|
getTopicDetail(session: ApiSession, topicId?: string): Promise<ApiSdTopic>;
|
|
434
444
|
createRoomChannelApps(session: ApiSession, body: MezonapiCreateRoomChannelApps): Promise<MezonapiCreateRoomChannelApps>;
|
|
435
445
|
/** Generate Meet Token */
|