mezon-js 2.15.15 → 2.15.17
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/api.d.ts +25 -0
- package/dist/client.d.ts +7 -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/socket.d.ts +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -717,6 +717,16 @@ export interface ApiChannelUserList {
|
|
|
717
717
|
export interface ApiCheckDuplicateClanNameResponse {
|
|
718
718
|
is_duplicate?: boolean;
|
|
719
719
|
}
|
|
720
|
+
/** Request for CheckDuplicateName; type 0–5 matches server TypeCheck iota. */
|
|
721
|
+
export interface ApiCheckDuplicateNameRequest {
|
|
722
|
+
name?: string;
|
|
723
|
+
type?: number;
|
|
724
|
+
condition_id?: string;
|
|
725
|
+
}
|
|
726
|
+
/** Response for CheckDuplicateName. */
|
|
727
|
+
export interface ApiCheckDuplicateNameResponse {
|
|
728
|
+
is_duplicate?: boolean;
|
|
729
|
+
}
|
|
720
730
|
/** */
|
|
721
731
|
export interface ApiClanDesc {
|
|
722
732
|
banner?: string;
|
|
@@ -808,6 +818,15 @@ export interface ApiClanUserList {
|
|
|
808
818
|
clan_users?: Array<ClanUserListClanUser>;
|
|
809
819
|
cursor?: string;
|
|
810
820
|
}
|
|
821
|
+
/** One clan member's custom status (user_status) keyed by user id. */
|
|
822
|
+
export interface ApiClanUserStatusEntry {
|
|
823
|
+
user_id?: string;
|
|
824
|
+
user_status?: string;
|
|
825
|
+
}
|
|
826
|
+
/** List of clan members' custom statuses for a clan. */
|
|
827
|
+
export interface ApiClanUserStatusList {
|
|
828
|
+
clan_user_statuses?: Array<ApiClanUserStatusEntry>;
|
|
829
|
+
}
|
|
811
830
|
/** */
|
|
812
831
|
export interface ApiConfirmLoginRequest {
|
|
813
832
|
is_remember?: boolean;
|
|
@@ -2260,8 +2279,12 @@ export declare class MezonApi {
|
|
|
2260
2279
|
banClanUsers(bearerToken: string, clanId: string, channelId?: string, userIds?: Array<string>, banTime?: number, options?: {}): Promise<any>;
|
|
2261
2280
|
/** List all users that are part of a clan. */
|
|
2262
2281
|
listClanUsers(bearerToken: string, clanId: string, options?: {}): Promise<ApiClanUserList>;
|
|
2282
|
+
/** List clan members' custom status strings (user_status). */
|
|
2283
|
+
listClanUsersStatus(bearerToken: string, clanId: string, options?: {}): Promise<ApiClanUserStatusList>;
|
|
2263
2284
|
/** */
|
|
2264
2285
|
createCategoryDesc(bearerToken: string, body: ApiCreateCategoryDescRequest, options?: {}): Promise<ApiCategoryDesc>;
|
|
2286
|
+
/** Check whether a clan/category/channel/thread/nickname/username already exists. */
|
|
2287
|
+
checkDuplicateName(bearerToken: string, body: ApiCheckDuplicateNameRequest, options?: {}): Promise<ApiCheckDuplicateNameResponse>;
|
|
2265
2288
|
/** */
|
|
2266
2289
|
deleteCategoryDesc(bearerToken: string, categoryId: string, clanId: string, categoryLabel?: string, options?: {}): Promise<any>;
|
|
2267
2290
|
/** regist fcm device token */
|
|
@@ -2450,6 +2473,8 @@ export declare class MezonApi {
|
|
|
2450
2473
|
getUserStatus(bearerToken: string, options?: {}): Promise<ApiUserStatus>;
|
|
2451
2474
|
/** Update user status */
|
|
2452
2475
|
updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: {}): Promise<any>;
|
|
2476
|
+
/** Update user custom status (user_status). */
|
|
2477
|
+
updateUserCustomStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: {}): Promise<any>;
|
|
2453
2478
|
/** create webhook */
|
|
2454
2479
|
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: {}): Promise<any>;
|
|
2455
2480
|
/** update webhook name by id */
|
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, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, 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, ApiUser, ApiFriend, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ChannelMessage, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiListChannelTimelineRequest, ApiListChannelTimelineResponse, ApiCreateChannelTimelineRequest, ApiCreateChannelTimelineResponse, ApiUpdateChannelTimelineRequest, ApiUpdateChannelTimelineResponse, ApiDetailChannelTimelineRequest, ApiDetailChannelTimelineResponse, ApiMutedChannelList } from "./api";
|
|
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, ApiUser, ApiFriend, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ChannelMessage, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiListChannelTimelineRequest, ApiListChannelTimelineResponse, ApiCreateChannelTimelineRequest, ApiCreateChannelTimelineResponse, ApiUpdateChannelTimelineRequest, ApiUpdateChannelTimelineResponse, ApiDetailChannelTimelineRequest, ApiDetailChannelTimelineResponse, ApiMutedChannelList } from "./api";
|
|
17
17
|
import { Session } from "./session";
|
|
18
18
|
import { Socket, ChannelMessageAck } from "./socket";
|
|
19
19
|
import { MultipartUploadAttachment, MultipartUploadAttachmentFinishRequest, WebSocketAdapter } from "mezon-js-protobuf";
|
|
@@ -234,6 +234,8 @@ export declare class Client {
|
|
|
234
234
|
createChannelDesc(session: Session, request: ApiCreateChannelDescRequest): Promise<ApiChannelDescription>;
|
|
235
235
|
/** Create a clan */
|
|
236
236
|
createClanDesc(session: Session, request: ApiCreateClanDescRequest): Promise<ApiClanDesc>;
|
|
237
|
+
/** Check duplicate name/label */
|
|
238
|
+
checkDuplicateName(session: Session, request: ApiCheckDuplicateNameRequest): Promise<ApiCheckDuplicateNameResponse>;
|
|
237
239
|
/** */
|
|
238
240
|
createCategoryDesc(session: Session, request: ApiCreateCategoryDescRequest): Promise<ApiCategoryDesc>;
|
|
239
241
|
/** Create a new role for clan. */
|
|
@@ -286,6 +288,8 @@ export declare class Client {
|
|
|
286
288
|
listChannelAttachments(session: Session, clanId: string, channelId: string, fileType: string, state?: number, limit?: number, before?: number, after?: number): Promise<ApiChannelAttachmentList>;
|
|
287
289
|
/** List a channel's users. */
|
|
288
290
|
listClanUsers(session: Session, clanId: string): Promise<ApiClanUserList>;
|
|
291
|
+
/** List clan members' custom status strings (user_status). */
|
|
292
|
+
listClanUsersStatus(session: Session, clanId: string): Promise<ApiClanUserStatusList>;
|
|
289
293
|
listChannelDetail(session: Session, channelId: string): Promise<ApiChannelDescription>;
|
|
290
294
|
/** List channels. */
|
|
291
295
|
listChannelDescs(session: Session, limit?: number, state?: number, page?: number, clanId?: string, channelType?: number, isMobile?: boolean): Promise<ApiChannelDescList>;
|
|
@@ -459,6 +463,8 @@ export declare class Client {
|
|
|
459
463
|
listOnboardingStep(session: Session, clan_id?: string, limit?: number, page?: number): Promise<ApiListOnboardingStepResponse>;
|
|
460
464
|
updateOnboardingStepByClanId(session: Session, clan_id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
|
|
461
465
|
updateUserStatus(session: Session, request: ApiUserStatusUpdate): Promise<boolean>;
|
|
466
|
+
/** Update user custom status (user_status). */
|
|
467
|
+
updateUserCustomStatus(session: Session, request: ApiUserStatusUpdate): Promise<boolean>;
|
|
462
468
|
getUserStatus(session: Session): Promise<ApiUserStatus>;
|
|
463
469
|
listSdTopic(session: Session, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
|
|
464
470
|
createSdTopic(session: Session, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
|