@fork-anyone/node-nim
Version:
NetEase IM nodejs wrapper based on NetEase IM C++ SDK
651 lines • 55.1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NIMQChatSystemNotificationStatus = exports.NIMQChatSystemNotificationType = exports.NIMQChatSystemNotificationToType = exports.NIMQChatInviteApplyRecordStatus = exports.NIMQChatInviteApplyRecordType = exports.NIMQChatServerSearchType = exports.NIMQChatServerInviteFailReason = exports.NIMQChatServerApplyMode = exports.NIMQChatServerInviteMode = exports.NIMQChatGetReferMessageType = exports.NIMQChatQuickCommentOperation = exports.NIMQChatMsgType = exports.NIMQChatMessageNotifyReason = exports.NIMQChatMessageStatus = exports.NIMQChatFCSAuthenticationType = exports.NIMQChatHandShakeType = exports.NIMQChatCommEncryptionAlgorithm = exports.NIMQChatExchangeKeyEncryptionAlgorithm = exports.NIMQChatLoginStatus = exports.NIMQChatLoginStep = exports.NIMQChatClientType = exports.NIMQChatLoginAuthType = exports.NIMQChatPermissionsOption = exports.NIMQChatRoleType = exports.NIMQChatPermissions = exports.NIMResCode = exports.NIMQChatChannelSearchSort = exports.NIMQChatServerSearchSort = exports.NIMQChatMessageSearchSort = exports.NIMQChatSearchOrder = exports.NIMQChatSortType = exports.NIMQChatBanMemberOpeType = exports.NIMQChatDownloadResType = exports.NIMQChatSubscribeType = exports.NIMQChatSubscribeOpeType = exports.NIMQChatChannelSyncMode = exports.NIMQChatChannelVisitorMode = exports.NIMQChatChannelViewMode = exports.NIMQChatChannelWhiteBlackOpeType = exports.NIMQChatChannelWhiteBlackType = exports.NIMQChatChannelMemberIdentifyOpeType = exports.NIMQChatChannelMemberIdentifyType = exports.NIMQChatChannelType = void 0;
var NIMQChatChannelType;
(function (NIMQChatChannelType) {
/** 普通文本频道 */
NIMQChatChannelType[NIMQChatChannelType["kNIMQChatChannelTypeText"] = 0] = "kNIMQChatChannelTypeText";
/** RTC频道 */
NIMQChatChannelType[NIMQChatChannelType["kNIMQChatChannelTypeRTC"] = 1] = "kNIMQChatChannelTypeRTC";
/** 自定义频道类型 */
NIMQChatChannelType[NIMQChatChannelType["kNIMQChatChannelTypeCustom"] = 100] = "kNIMQChatChannelTypeCustom";
})(NIMQChatChannelType = exports.NIMQChatChannelType || (exports.NIMQChatChannelType = {}));
var NIMQChatChannelMemberIdentifyType;
(function (NIMQChatChannelMemberIdentifyType) {
NIMQChatChannelMemberIdentifyType[NIMQChatChannelMemberIdentifyType["kNIMQChatWhite"] = 1] = "kNIMQChatWhite";
NIMQChatChannelMemberIdentifyType[NIMQChatChannelMemberIdentifyType["kNIMQChatBlack"] = 2] = "kNIMQChatBlack";
})(NIMQChatChannelMemberIdentifyType = exports.NIMQChatChannelMemberIdentifyType || (exports.NIMQChatChannelMemberIdentifyType = {}));
var NIMQChatChannelMemberIdentifyOpeType;
(function (NIMQChatChannelMemberIdentifyOpeType) {
NIMQChatChannelMemberIdentifyOpeType[NIMQChatChannelMemberIdentifyOpeType["kNIMQChatChannelMemberIdentifyOpeTypeAdd"] = 1] = "kNIMQChatChannelMemberIdentifyOpeTypeAdd";
NIMQChatChannelMemberIdentifyOpeType[NIMQChatChannelMemberIdentifyOpeType["kNIMQChatChannelMemberIdentifyOpeTypeRemove"] = 2] = "kNIMQChatChannelMemberIdentifyOpeTypeRemove";
})(NIMQChatChannelMemberIdentifyOpeType = exports.NIMQChatChannelMemberIdentifyOpeType || (exports.NIMQChatChannelMemberIdentifyOpeType = {}));
var NIMQChatChannelWhiteBlackType;
(function (NIMQChatChannelWhiteBlackType) {
NIMQChatChannelWhiteBlackType[NIMQChatChannelWhiteBlackType["kNIMQChatChannelWhite"] = 1] = "kNIMQChatChannelWhite";
NIMQChatChannelWhiteBlackType[NIMQChatChannelWhiteBlackType["kNIMQChatChannelBlack"] = 2] = "kNIMQChatChannelBlack";
})(NIMQChatChannelWhiteBlackType = exports.NIMQChatChannelWhiteBlackType || (exports.NIMQChatChannelWhiteBlackType = {}));
var NIMQChatChannelWhiteBlackOpeType;
(function (NIMQChatChannelWhiteBlackOpeType) {
NIMQChatChannelWhiteBlackOpeType[NIMQChatChannelWhiteBlackOpeType["kNIMQChatChannelWhiteBlackOpeTypeAdd"] = 1] = "kNIMQChatChannelWhiteBlackOpeTypeAdd";
NIMQChatChannelWhiteBlackOpeType[NIMQChatChannelWhiteBlackOpeType["kNIMQChatChannelWhiteBlackOpeTypeRemove"] = 2] = "kNIMQChatChannelWhiteBlackOpeTypeRemove";
})(NIMQChatChannelWhiteBlackOpeType = exports.NIMQChatChannelWhiteBlackOpeType || (exports.NIMQChatChannelWhiteBlackOpeType = {}));
var NIMQChatChannelViewMode;
(function (NIMQChatChannelViewMode) {
/** 公开模式 */
NIMQChatChannelViewMode[NIMQChatChannelViewMode["kNIMQChatChannelViewModePublic"] = 0] = "kNIMQChatChannelViewModePublic";
/** 私密模式 */
NIMQChatChannelViewMode[NIMQChatChannelViewMode["kNIMQChatChannelViewModePrivate"] = 1] = "kNIMQChatChannelViewModePrivate";
})(NIMQChatChannelViewMode = exports.NIMQChatChannelViewMode || (exports.NIMQChatChannelViewMode = {}));
var NIMQChatChannelVisitorMode;
(function (NIMQChatChannelVisitorMode) {
/** 游客可见 */
NIMQChatChannelVisitorMode[NIMQChatChannelVisitorMode["kNIMQChatChannelVisitorModeVisible"] = 0] = "kNIMQChatChannelVisitorModeVisible";
/** 游客不可见 */
NIMQChatChannelVisitorMode[NIMQChatChannelVisitorMode["kNIMQChatChannelVisitorModeInvisible"] = 1] = "kNIMQChatChannelVisitorModeInvisible";
/** 跟随模式, 频道公开游客可见, 频道私密游客不可见 */
NIMQChatChannelVisitorMode[NIMQChatChannelVisitorMode["kNIMQChatChannelVisitorModeFollow"] = 2] = "kNIMQChatChannelVisitorModeFollow";
})(NIMQChatChannelVisitorMode = exports.NIMQChatChannelVisitorMode || (exports.NIMQChatChannelVisitorMode = {}));
var NIMQChatChannelSyncMode;
(function (NIMQChatChannelSyncMode) {
/** 不与频道分组同步 */
NIMQChatChannelSyncMode[NIMQChatChannelSyncMode["kNIMQChatChannelSyncModeNoSync"] = 0] = "kNIMQChatChannelSyncModeNoSync";
/** 与频道分组同步 */
NIMQChatChannelSyncMode[NIMQChatChannelSyncMode["kNIMQChatChannelSyncModeSync"] = 1] = "kNIMQChatChannelSyncModeSync";
})(NIMQChatChannelSyncMode = exports.NIMQChatChannelSyncMode || (exports.NIMQChatChannelSyncMode = {}));
var NIMQChatSubscribeOpeType;
(function (NIMQChatSubscribeOpeType) {
/** 订阅 */
NIMQChatSubscribeOpeType[NIMQChatSubscribeOpeType["kNIMQChatSubscribeOpeTypeSubscribe"] = 1] = "kNIMQChatSubscribeOpeTypeSubscribe";
/** 取消订阅 */
NIMQChatSubscribeOpeType[NIMQChatSubscribeOpeType["kNIMQChatSubscribeOpeTypeUnsubscribe"] = 2] = "kNIMQChatSubscribeOpeTypeUnsubscribe";
})(NIMQChatSubscribeOpeType = exports.NIMQChatSubscribeOpeType || (exports.NIMQChatSubscribeOpeType = {}));
var NIMQChatSubscribeType;
(function (NIMQChatSubscribeType) {
/** 未知 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeUnknow"] = 0] = "kNIMQChatSubscribeTypeUnknow";
/** 订阅某个channel的【消息】/【通知】 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeMsg"] = 1] = "kNIMQChatSubscribeTypeMsg";
/** 订阅某个channel的【消息未读数】/【通知】 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeUnreadCount"] = 2] = "kNIMQChatSubscribeTypeUnreadCount";
/** 订阅某个channel的【消息未读状态】/【通知】 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeUnreadStatus"] = 3] = "kNIMQChatSubscribeTypeUnreadStatus";
/** 订阅某个server的【通知】 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeServerNotification"] = 4] = "kNIMQChatSubscribeTypeServerNotification";
/** 订阅某个channel的【正在输入事件】 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeTypingEvent"] = 5] = "kNIMQChatSubscribeTypeTypingEvent";
/** 以游客身份订阅某个channel的【消息】/【通知】 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeVisitorMsg"] = 6] = "kNIMQChatSubscribeTypeVisitorMsg";
/** 以游客身份订阅某个server的【消息】/【通知】 */
NIMQChatSubscribeType[NIMQChatSubscribeType["kNIMQChatSubscribeTypeVisitorServerNotification"] = 7] = "kNIMQChatSubscribeTypeVisitorServerNotification";
})(NIMQChatSubscribeType = exports.NIMQChatSubscribeType || (exports.NIMQChatSubscribeType = {}));
var NIMQChatDownloadResType;
(function (NIMQChatDownloadResType) {
/** 原文件 */
NIMQChatDownloadResType[NIMQChatDownloadResType["NIMQChatDownloadResTypeSource"] = 1] = "NIMQChatDownloadResTypeSource";
/** 图片缩略图 */
NIMQChatDownloadResType[NIMQChatDownloadResType["NIMQChatDownloadResTypeImageThumnail"] = 2] = "NIMQChatDownloadResTypeImageThumnail";
/** 视频封面 */
NIMQChatDownloadResType[NIMQChatDownloadResType["NIMQChatDownloadResTypeVideoCover"] = 3] = "NIMQChatDownloadResTypeVideoCover";
})(NIMQChatDownloadResType = exports.NIMQChatDownloadResType || (exports.NIMQChatDownloadResType = {}));
var NIMQChatBanMemberOpeType;
(function (NIMQChatBanMemberOpeType) {
/** 封禁 */
NIMQChatBanMemberOpeType[NIMQChatBanMemberOpeType["kNIMQChatBanMemberOpeTypeBan"] = 1] = "kNIMQChatBanMemberOpeTypeBan";
/** 解除封禁 */
NIMQChatBanMemberOpeType[NIMQChatBanMemberOpeType["kNIMQChatBanMemberOpeTypeUnban"] = 2] = "kNIMQChatBanMemberOpeTypeUnban";
})(NIMQChatBanMemberOpeType = exports.NIMQChatBanMemberOpeType || (exports.NIMQChatBanMemberOpeType = {}));
var NIMQChatSortType;
(function (NIMQChatSortType) {
/** 按时间排序 */
NIMQChatSortType[NIMQChatSortType["kNIMQChatSortByCreateTime"] = 1] = "kNIMQChatSortByCreateTime";
/** 按优先级排序 */
NIMQChatSortType[NIMQChatSortType["kNIMQChatSortByPriority"] = 2] = "kNIMQChatSortByPriority";
})(NIMQChatSortType = exports.NIMQChatSortType || (exports.NIMQChatSortType = {}));
var NIMQChatSearchOrder;
(function (NIMQChatSearchOrder) {
/** 按时间正序 */
NIMQChatSearchOrder[NIMQChatSearchOrder["kNIMQChatSearchOrderAsc"] = 1] = "kNIMQChatSearchOrderAsc";
/** 按时间倒序 */
NIMQChatSearchOrder[NIMQChatSearchOrder["kNIMQChatSearchOrderDesc"] = 2] = "kNIMQChatSearchOrderDesc";
})(NIMQChatSearchOrder = exports.NIMQChatSearchOrder || (exports.NIMQChatSearchOrder = {}));
var NIMQChatMessageSearchSort;
(function (NIMQChatMessageSearchSort) {
/** 创建时间排序 */
NIMQChatMessageSearchSort[NIMQChatMessageSearchSort["kNIMQChatMessageSearchSortCreateTime"] = 1] = "kNIMQChatMessageSearchSortCreateTime";
})(NIMQChatMessageSearchSort = exports.NIMQChatMessageSearchSort || (exports.NIMQChatMessageSearchSort = {}));
var NIMQChatServerSearchSort;
(function (NIMQChatServerSearchSort) {
/** 自定义权重排序(详见服务器端文档) */
NIMQChatServerSearchSort[NIMQChatServerSearchSort["kNIMQChatServerSearchSortCustom"] = 0] = "kNIMQChatServerSearchSortCustom";
/** 创建时间排序 */
NIMQChatServerSearchSort[NIMQChatServerSearchSort["kNIMQChatServerSearchSortCreateTime"] = 1] = "kNIMQChatServerSearchSortCreateTime";
/** 服务器总人数排序 */
NIMQChatServerSearchSort[NIMQChatServerSearchSort["kNIMQChatServerSearchSortMemberCOunt"] = 2] = "kNIMQChatServerSearchSortMemberCOunt";
})(NIMQChatServerSearchSort = exports.NIMQChatServerSearchSort || (exports.NIMQChatServerSearchSort = {}));
var NIMQChatChannelSearchSort;
(function (NIMQChatChannelSearchSort) {
/** 自定义权重排序(详见服务器端文档) */
NIMQChatChannelSearchSort[NIMQChatChannelSearchSort["kNIMQChatChannelSearchSortCustom"] = 0] = "kNIMQChatChannelSearchSortCustom";
/** 创建时间排序 */
NIMQChatChannelSearchSort[NIMQChatChannelSearchSort["kNIMQChatChannelSearchSortCreateTime"] = 1] = "kNIMQChatChannelSearchSortCreateTime";
})(NIMQChatChannelSearchSort = exports.NIMQChatChannelSearchSort || (exports.NIMQChatChannelSearchSort = {}));
var NIMResCode;
(function (NIMResCode) {
// 通用错误码
/// 错误
NIMResCode[NIMResCode["kNIMResError"] = 0] = "kNIMResError";
/// 没有错误,一切正常
NIMResCode[NIMResCode["kNIMResSuccess"] = 200] = "kNIMResSuccess";
/// 客户端版本不正确
NIMResCode[NIMResCode["kNIMResVersionError"] = 201] = "kNIMResVersionError";
/// 用户名或密码错误
NIMResCode[NIMResCode["kNIMResUidPassError"] = 302] = "kNIMResUidPassError";
/// 禁止操作
NIMResCode[NIMResCode["kNIMResForbidden"] = 403] = "kNIMResForbidden";
/// 请求的目标(用户或对象)不存在
NIMResCode[NIMResCode["kNIMResNotExist"] = 404] = "kNIMResNotExist";
/// 数据自上次查询以来未发生变化(用于增量更新)
NIMResCode[NIMResCode["kNIMResNoModify"] = 406] = "kNIMResNoModify";
/// 请求过程超时
NIMResCode[NIMResCode["kNIMResTimeoutError"] = 408] = "kNIMResTimeoutError";
/// 参数错误
NIMResCode[NIMResCode["kNIMResParameterError"] = 414] = "kNIMResParameterError";
/// 网络连接出现错误
NIMResCode[NIMResCode["kNIMResConnectionError"] = 415] = "kNIMResConnectionError";
/// 操作太过频繁
NIMResCode[NIMResCode["kNIMResFrequently"] = 416] = "kNIMResFrequently";
/// 对象已经存在/重复操作
NIMResCode[NIMResCode["kNIMResExist"] = 417] = "kNIMResExist";
/// 超限
NIMResCode[NIMResCode["kNIMResOverrun"] = 419] = "kNIMResOverrun";
/// 帐号被禁用
NIMResCode[NIMResCode["kNIMResAccountBlock"] = 422] = "kNIMResAccountBlock";
/// 未知错误,或者不方便告诉你
NIMResCode[NIMResCode["kNIMResUnknownError"] = 500] = "kNIMResUnknownError";
/// 服务器数据错误
NIMResCode[NIMResCode["kNIMResServerDataError"] = 501] = "kNIMResServerDataError";
/// 服务器太忙
NIMResCode[NIMResCode["kNIMResTooBuzy"] = 503] = "kNIMResTooBuzy";
/// 超过配置有效期
NIMResCode[NIMResCode["kNIMResExceedLimit"] = 508] = "kNIMResExceedLimit";
/// 协议无效, 不允许访问的协议
NIMResCode[NIMResCode["kNIMResInvalid"] = 509] = "kNIMResInvalid";
// 群错误码
/// 已达到人数限制
NIMResCode[NIMResCode["kNIMResTeamECountLimit"] = 801] = "kNIMResTeamECountLimit";
/// 没有权限
NIMResCode[NIMResCode["kNIMResTeamENAccess"] = 802] = "kNIMResTeamENAccess";
/// 群不存在
NIMResCode[NIMResCode["kNIMResTeamENotExist"] = 803] = "kNIMResTeamENotExist";
/// 用户不在兴趣组里面
NIMResCode[NIMResCode["kNIMResTeamEMemberNotExist"] = 804] = "kNIMResTeamEMemberNotExist";
/// 群类型不对
NIMResCode[NIMResCode["kNIMResTeamErrType"] = 805] = "kNIMResTeamErrType";
/// 创建群数量限制
NIMResCode[NIMResCode["kNIMResTeamLimit"] = 806] = "kNIMResTeamLimit";
/// 群成员状态不对
NIMResCode[NIMResCode["kNIMResTeamUserStatusErr"] = 807] = "kNIMResTeamUserStatusErr";
/// 申请成功
NIMResCode[NIMResCode["kNIMResTeamApplySuccess"] = 808] = "kNIMResTeamApplySuccess";
/// 已经在群里
NIMResCode[NIMResCode["kNIMResTeamAlreadyIn"] = 809] = "kNIMResTeamAlreadyIn";
/// 邀请成功
NIMResCode[NIMResCode["kNIMResTeamInviteSuccess"] = 810] = "kNIMResTeamInviteSuccess";
/// 强推列表账号数量超限
NIMResCode[NIMResCode["kNIMResForcePushCountLimit"] = 811] = "kNIMResForcePushCountLimit";
/// 操作成功,但部分成员的群数量超限
NIMResCode[NIMResCode["kNIMResTeamMemberLimit"] = 813] = "kNIMResTeamMemberLimit";
/// 批量查询群信息部分成功
NIMResCode[NIMResCode["kNIMResTeamGetInfoListPartSuccess"] = 816] = "kNIMResTeamGetInfoListPartSuccess";
// 数据解编错误代码
/// 协议已失效
NIMResCode[NIMResCode["kNIMResInvalidProtocol"] = 997] = "kNIMResInvalidProtocol";
/// 解包错误
NIMResCode[NIMResCode["kNIMResEUnpacket"] = 998] = "kNIMResEUnpacket";
/// 打包错误
NIMResCode[NIMResCode["kNIMResEPacket"] = 999] = "kNIMResEPacket";
/// 被接收方加入黑名单 SDK版本大于2.5.0支持
NIMResCode[NIMResCode["kNIMResInBlack"] = 7101] = "kNIMResInBlack";
// 独立信令错误代码
/// 房间不存在
NIMResCode[NIMResCode["kNIMResRoomNotExists"] = 10404] = "kNIMResRoomNotExists";
/// 房间已存在
NIMResCode[NIMResCode["kNIMResRoomHasExists"] = 10405] = "kNIMResRoomHasExists";
/// 不在房间内
NIMResCode[NIMResCode["kNIMResRoomMemberNotExists"] = 10406] = "kNIMResRoomMemberNotExists";
/// 已经在房间内
NIMResCode[NIMResCode["kNIMResRoomMemberHasExists"] = 10407] = "kNIMResRoomMemberHasExists";
/// 邀请不存在或已过期
NIMResCode[NIMResCode["kNIMResRoomInviteNotExists"] = 10408] = "kNIMResRoomInviteNotExists";
/// 邀请已经拒绝
NIMResCode[NIMResCode["kNIMResRoomInviteHasReject"] = 10409] = "kNIMResRoomInviteHasReject";
/// 邀请已经接受了
NIMResCode[NIMResCode["kNIMResRoomInviteHasAccept"] = 10410] = "kNIMResRoomInviteHasAccept";
/// 对方云信不在线
NIMResCode[NIMResCode["kNIMResPeerNimOffline"] = 10201] = "kNIMResPeerNimOffline";
/// 对方推送亦不可达
NIMResCode[NIMResCode["kNIMResPeerPushOffline"] = 10202] = "kNIMResPeerPushOffline";
/// uid冲突
NIMResCode[NIMResCode["kNIMResRoomUidConflict"] = 10417] = "kNIMResRoomUidConflict";
/// 房间人数超限
NIMResCode[NIMResCode["kNIMResRoomMemberExceed"] = 10419] = "kNIMResRoomMemberExceed";
/// 已经在房间内(自己的其他端)
NIMResCode[NIMResCode["kNIMResRoomMemberHasExistsOtherClient"] = 10420] = "kNIMResRoomMemberHasExistsOtherClient";
// 客户端自定义的错误号
/// 值大于该错误号的都是客户端自定义的错误号。不能随意更改其值!
NIMResCode[NIMResCode["kNIMLocalRes"] = 10000] = "kNIMLocalRes";
/// 客户端本地错误号,需要重新向IM服务器获取进入聊天室权限
NIMResCode[NIMResCode["kNIMResRoomLocalNeedRequestAgain"] = 10001] = "kNIMResRoomLocalNeedRequestAgain";
/// 客户端本地错误号,本地网络错误,需要检查本地网络
NIMResCode[NIMResCode["kNIMLocalResNetworkError"] = 10010] = "kNIMLocalResNetworkError";
// 客户端自定义的消息错误号
/// (发送文件消息或者stop_upload_ex)HTTP upload to NOS上传暂停
NIMResCode[NIMResCode["kNIMLocalResMsgNosUploadCancel"] = 10200] = "kNIMLocalResMsgNosUploadCancel";
/// (收到文件消息或者stop_download_ex)HTTP download from NOS下载暂停
NIMResCode[NIMResCode["kNIMLocalResMsgNosDownloadCancel"] = 10206] = "kNIMLocalResMsgNosDownloadCancel";
/// 收到文件消息,NOS下载完成后本地文件检查错误,一般为下载的文件大小与文件信息不符
NIMResCode[NIMResCode["kNIMLocalResMsgNosDownloadCheckError"] = 10207] = "kNIMLocalResMsgNosDownloadCheckError";
/// 本地文件无访问权限
NIMResCode[NIMResCode["kNIMLocalResMsgAccessDenied"] = 10403] = "kNIMLocalResMsgAccessDenied";
/// 本地资源不存在
NIMResCode[NIMResCode["kNIMLocalResMsgFileNotExist"] = 10404] = "kNIMLocalResMsgFileNotExist";
/// 本地错误码,参数错误,(收到消息,资源下载地址无效,无法下载)
NIMResCode[NIMResCode["kNIMLocalResParameterError"] = 10414] = "kNIMLocalResParameterError";
/// 本地错误码,操作太过频繁
NIMResCode[NIMResCode["kNIMLocalResFrequently"] = 10416] = "kNIMLocalResFrequently";
/// 本地错误码,对象已经存在/重复操作,(收到消息,本地资源已存在,不需要重复下载)
NIMResCode[NIMResCode["kNIMLocalResExist"] = 10417] = "kNIMLocalResExist";
/// 调用api,传入的参数有误
NIMResCode[NIMResCode["kNIMLocalResParaError"] = 10450] = "kNIMLocalResParaError";
/// 发送消息,上传NOS失败
NIMResCode[NIMResCode["kNIMLocalResMsgSendNosError"] = 10502] = "kNIMLocalResMsgSendNosError";
/// 本地错误码,超过配置有效期或者所需参数不存在
NIMResCode[NIMResCode["kNIMLocalResExceedLimit"] = 10508] = "kNIMLocalResExceedLimit";
/// 导入消息历史时验证身份和加密密钥不通过
NIMResCode[NIMResCode["kNIMLocalResCheckMsgDBFailed"] = 10600] = "kNIMLocalResCheckMsgDBFailed";
/// 导入消息历史时写记录失败
NIMResCode[NIMResCode["kNIMLocalResImportMsgDBFailed"] = 10601] = "kNIMLocalResImportMsgDBFailed";
/// 群成员尚同步完成
NIMResCode[NIMResCode["kNIMLocalResTMembersSyncUndone"] = 10602] = "kNIMLocalResTMembersSyncUndone";
// 客户端自定义的RTS错误号
/// rts会话 未知错误
NIMResCode[NIMResCode["kNIMLocalResRtsError"] = 11100] = "kNIMLocalResRtsError";
/// rts会话 id不存在
NIMResCode[NIMResCode["kNIMLocalResRtsIdNotExist"] = 11101] = "kNIMLocalResRtsIdNotExist";
/// rts会话 音视频已存在
NIMResCode[NIMResCode["kNIMLocalResRtsVChatExist"] = 11417] = "kNIMLocalResRtsVChatExist";
/// rts会话 通道状态不正确
NIMResCode[NIMResCode["kNIMLocalResRtsStatusError"] = 11501] = "kNIMLocalResRtsStatusError";
/// rts会话 通道不存在
NIMResCode[NIMResCode["kNIMLocalResRtsChannelNotExist"] = 11510] = "kNIMLocalResRtsChannelNotExist";
/// 主链接错误
NIMResCode[NIMResCode["kNIMResRoomLinkError"] = 13001] = "kNIMResRoomLinkError";
/// 聊天室状态异常
NIMResCode[NIMResCode["kNIMResRoomError"] = 13002] = "kNIMResRoomError";
/// 黑名单用户禁止进入
NIMResCode[NIMResCode["kNIMResRoomBlackBeOut"] = 13003] = "kNIMResRoomBlackBeOut";
/// 被禁言
NIMResCode[NIMResCode["kNIMResRoomBeMuted"] = 13004] = "kNIMResRoomBeMuted";
/// 聊天室处于整体禁言状态,只有管理员能发言
NIMResCode[NIMResCode["kNIMResRoomAllMuted"] = 13006] = "kNIMResRoomAllMuted";
// 客户端自定义的api调用问题
/// 还未初始化或初始化未正常完成
NIMResCode[NIMResCode["kNIMLocalResAPIErrorInitUndone"] = 20000] = "kNIMLocalResAPIErrorInitUndone";
/// 还未登陆或登录未完成
NIMResCode[NIMResCode["kNIMLocalResAPIErrorLoginUndone"] = 20001] = "kNIMLocalResAPIErrorLoginUndone";
/// 已经登录
NIMResCode[NIMResCode["kNIMLocalResAPIErrorLogined"] = 20002] = "kNIMLocalResAPIErrorLogined";
/// SDK版本不对,可能会引发其他问题
NIMResCode[NIMResCode["kNIMLocalResAPIErrorVersionError"] = 20003] = "kNIMLocalResAPIErrorVersionError";
/// 聊天室模式混用错误,不支持同时以登陆状态和匿名状态登陆聊天室
NIMResCode[NIMResCode["kNIMLocalResAPIErrorChatroomMixError"] = 20005] = "kNIMLocalResAPIErrorChatroomMixError";
/// 登录失败,超过重试次数
NIMResCode[NIMResCode["kNIMLocalResAPIErrorLoginExceedRetryCount"] = 20006] = "kNIMLocalResAPIErrorLoginExceedRetryCount";
/// 连接地址用完了
NIMResCode[NIMResCode["kNIMLocalResAPIErrorRunOutOfLinkAddress"] = 20007] = "kNIMLocalResAPIErrorRunOutOfLinkAddress";
})(NIMResCode = exports.NIMResCode || (exports.NIMResCode = {}));
var NIMQChatPermissions;
(function (NIMQChatPermissions) {
/** 管理服务器,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionManageServer"] = 1] = "kPermissionManageServer";
/** 管理频道,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionManageChannel"] = 2] = "kPermissionManageChannel";
/** 管理角色,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionManageRole"] = 3] = "kPermissionManageRole";
/** 发送消息,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionSendMessage"] = 4] = "kPermissionSendMessage";
/** 修改自己信息,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionUpdateMyInfo"] = 5] = "kPermissionUpdateMyInfo";
/** 邀请他人,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionIviteMember"] = 6] = "kPermissionIviteMember";
/** 踢除他人,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionKickMember"] = 7] = "kPermissionKickMember";
/** 修改他人信息,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionUpdateMemberInfo"] = 8] = "kPermissionUpdateMemberInfo";
/** 撤回他人信息,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRevokeMemberMessage"] = 9] = "kPermissionRevokeMemberMessage";
/** 删除他人消息,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionDeleteMemberMessage"] = 10] = "kPermissionDeleteMemberMessage";
/** @ 他人,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionAtMember"] = 11] = "kPermissionAtMember";
/** @ 所有人,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionAtAll"] = 12] = "kPermissionAtAll";
/** 管理白/黑名单,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionManageBlackWhiteList"] = 13] = "kPermissionManageBlackWhiteList";
/** 封禁他人,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionBanServerMember"] = 14] = "kPermissionBanServerMember";
/** RTC频道: 连接的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCConnect"] = 15] = "kPermissionRTCConnect";
/** RTC频道: 断开他人连接的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCDisconnectOther"] = 16] = "kPermissionRTCDisconnectOther";
/** RTC频道: 开启自己麦克风的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCOpenMic"] = 17] = "kPermissionRTCOpenMic";
/** RTC频道: 开启自己摄像头的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCOpenCamera"] = 18] = "kPermissionRTCOpenCamera";
/** RTC频道: 禁用/解禁他人麦克风的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCOpenMuteOthersMic"] = 19] = "kPermissionRTCOpenMuteOthersMic";
/** RTC频道: 禁用/解禁他人摄像头的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCOpenMuteOthersCamera"] = 20] = "kPermissionRTCOpenMuteOthersCamera";
/** RTC频道: 禁用/解禁全员麦克风的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCOpenMuteAllMic"] = 21] = "kPermissionRTCOpenMuteAllMic";
/** RTC频道: 禁用/解禁全员摄像头的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCOpenMuteAllCamera"] = 22] = "kPermissionRTCOpenMuteAllCamera";
/** RTC频道: 打开自己共享屏幕的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCOpenScreenShare"] = 23] = "kPermissionRTCOpenScreenShare";
/** RTC频道: 关闭他人共享屏幕的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionRTCCloseOthersScreenShare"] = 24] = "kPermissionRTCCloseOthersScreenShare";
/** 服务器申请处理权限,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionServerHandleApply"] = 25] = "kPermissionServerHandleApply";
/** 申请邀请历史查看权限,有这个权限才可以查询server级别的申请/邀请记录,Server */
NIMQChatPermissions[NIMQChatPermissions["kPermissionGetServerInviteApplyRecords"] = 26] = "kPermissionGetServerInviteApplyRecords";
/** @ 身份组的权限,Server/Channel */
NIMQChatPermissions[NIMQChatPermissions["kPermissionMentionRole"] = 27] = "kPermissionMentionRole";
})(NIMQChatPermissions = exports.NIMQChatPermissions || (exports.NIMQChatPermissions = {}));
var NIMQChatRoleType;
(function (NIMQChatRoleType) {
/** 未知 */
NIMQChatRoleType[NIMQChatRoleType["kRoleTypeUnkonwn"] = 0] = "kRoleTypeUnkonwn";
/** 默认 Everyone 身份组 */
NIMQChatRoleType[NIMQChatRoleType["kRoleTypeEveryone"] = 1] = "kRoleTypeEveryone";
/** 自定义身份组 */
NIMQChatRoleType[NIMQChatRoleType["kRoleTypeCustom"] = 2] = "kRoleTypeCustom";
})(NIMQChatRoleType = exports.NIMQChatRoleType || (exports.NIMQChatRoleType = {}));
var NIMQChatPermissionsOption;
(function (NIMQChatPermissionsOption) {
/** 拒绝 */
NIMQChatPermissionsOption[NIMQChatPermissionsOption["kPermissionSwitchDeny"] = -1] = "kPermissionSwitchDeny";
/** 继承 */
NIMQChatPermissionsOption[NIMQChatPermissionsOption["kPermissionSwitchExtend"] = 0] = "kPermissionSwitchExtend";
/** 允许 */
NIMQChatPermissionsOption[NIMQChatPermissionsOption["kPermissionSwitchAllow"] = 1] = "kPermissionSwitchAllow";
})(NIMQChatPermissionsOption = exports.NIMQChatPermissionsOption || (exports.NIMQChatPermissionsOption = {}));
var NIMQChatLoginAuthType;
(function (NIMQChatLoginAuthType) {
/** 默认login token鉴权方式 */
NIMQChatLoginAuthType[NIMQChatLoginAuthType["kNIMQChatLoginAuthTypeDefault"] = 0] = "kNIMQChatLoginAuthTypeDefault";
/** app secret鉴权方式 */
NIMQChatLoginAuthType[NIMQChatLoginAuthType["kNIMQChatLoginAuthTypeAppSecret"] = 1] = "kNIMQChatLoginAuthTypeAppSecret";
/** 基于第三方回调的token鉴权方式, 圈组暂不支持 */
NIMQChatLoginAuthType[NIMQChatLoginAuthType["kNIMQChatLoginAuthTypeAppThirdParty"] = 2] = "kNIMQChatLoginAuthTypeAppThirdParty";
})(NIMQChatLoginAuthType = exports.NIMQChatLoginAuthType || (exports.NIMQChatLoginAuthType = {}));
var NIMQChatClientType;
(function (NIMQChatClientType) {
NIMQChatClientType[NIMQChatClientType["kQChatClientTypeUnknown"] = 0] = "kQChatClientTypeUnknown";
/** Android */
NIMQChatClientType[NIMQChatClientType["kQChatClientTypeAOS"] = 1] = "kQChatClientTypeAOS";
/** iOS */
NIMQChatClientType[NIMQChatClientType["kQChatClientTypeIOS"] = 2] = "kQChatClientTypeIOS";
/** Desktop PC (Windows/macOS/Linux) */
NIMQChatClientType[NIMQChatClientType["kQChatClientTypePC"] = 4] = "kQChatClientTypePC";
/** WP */
NIMQChatClientType[NIMQChatClientType["kQChatClientTypeWP"] = 8] = "kQChatClientTypeWP";
/** Web */
NIMQChatClientType[NIMQChatClientType["kQChatClientTypeWeb"] = 16] = "kQChatClientTypeWeb";
/** macOS */
NIMQChatClientType[NIMQChatClientType["kQChatClientTypeMacOS"] = 64] = "kQChatClientTypeMacOS";
/** HarmonyOS */
NIMQChatClientType[NIMQChatClientType["kQChatClientTypeHarmonyOS"] = 65] = "kQChatClientTypeHarmonyOS";
})(NIMQChatClientType = exports.NIMQChatClientType || (exports.NIMQChatClientType = {}));
var NIMQChatLoginStep;
(function (NIMQChatLoginStep) {
/** 连接 Link 地址阶段 */
NIMQChatLoginStep[NIMQChatLoginStep["kLoginStepLink"] = 0] = "kLoginStepLink";
NIMQChatLoginStep[NIMQChatLoginStep["kLoginStepAuth"] = 1] = "kLoginStepAuth"; // 认证阶段
})(NIMQChatLoginStep = exports.NIMQChatLoginStep || (exports.NIMQChatLoginStep = {}));
var NIMQChatLoginStatus;
(function (NIMQChatLoginStatus) {
NIMQChatLoginStatus[NIMQChatLoginStatus["kLoginStatusUnlogin"] = 0] = "kLoginStatusUnlogin";
NIMQChatLoginStatus[NIMQChatLoginStatus["kLoginStatusLogging"] = 1] = "kLoginStatusLogging";
NIMQChatLoginStatus[NIMQChatLoginStatus["kLoginStatusLogin"] = 2] = "kLoginStatusLogin";
NIMQChatLoginStatus[NIMQChatLoginStatus["kLoginStatusKicked"] = 3] = "kLoginStatusKicked";
})(NIMQChatLoginStatus = exports.NIMQChatLoginStatus || (exports.NIMQChatLoginStatus = {}));
var NIMQChatExchangeKeyEncryptionAlgorithm;
(function (NIMQChatExchangeKeyEncryptionAlgorithm) {
/** RSA 加密 */
NIMQChatExchangeKeyEncryptionAlgorithm[NIMQChatExchangeKeyEncryptionAlgorithm["kNIMQChatEncryptionAlgorithmRSA"] = 1] = "kNIMQChatEncryptionAlgorithmRSA";
/** SM2 加密 */
NIMQChatExchangeKeyEncryptionAlgorithm[NIMQChatExchangeKeyEncryptionAlgorithm["kNIMQChatEncryptionAlgorithmSM2"] = 2] = "kNIMQChatEncryptionAlgorithmSM2";
})(NIMQChatExchangeKeyEncryptionAlgorithm = exports.NIMQChatExchangeKeyEncryptionAlgorithm || (exports.NIMQChatExchangeKeyEncryptionAlgorithm = {}));
var NIMQChatCommEncryptionAlgorithm;
(function (NIMQChatCommEncryptionAlgorithm) {
NIMQChatCommEncryptionAlgorithm[NIMQChatCommEncryptionAlgorithm["kNIMQChatCommEncryptionAlgorithmBase"] = 1] = "kNIMQChatCommEncryptionAlgorithmBase";
/** RC4 加密 */
NIMQChatCommEncryptionAlgorithm[NIMQChatCommEncryptionAlgorithm["kNIMQChatCommEncryptionAlgorithmRC4"] = 1] = "kNIMQChatCommEncryptionAlgorithmRC4";
/** AES128 加密 */
NIMQChatCommEncryptionAlgorithm[NIMQChatCommEncryptionAlgorithm["kNIMQChatCommEncryptionAlgorithmAES128"] = 2] = "kNIMQChatCommEncryptionAlgorithmAES128";
NIMQChatCommEncryptionAlgorithm[NIMQChatCommEncryptionAlgorithm["kNIMQChatCommEncryptionAlgorithmSM4"] = 4] = "kNIMQChatCommEncryptionAlgorithmSM4"; // SM4 加密
})(NIMQChatCommEncryptionAlgorithm = exports.NIMQChatCommEncryptionAlgorithm || (exports.NIMQChatCommEncryptionAlgorithm = {}));
var NIMQChatHandShakeType;
(function (NIMQChatHandShakeType) {
/** 支持配置多种对称与非对称加密算法 */
NIMQChatHandShakeType[NIMQChatHandShakeType["kNIMQChatHandShakeTypeMulti"] = 0] = "kNIMQChatHandShakeTypeMulti";
NIMQChatHandShakeType[NIMQChatHandShakeType["kNIMQChatHandShakeTypeRASRC4"] = 1] = "kNIMQChatHandShakeTypeRASRC4"; // 支持RAS + RC4
})(NIMQChatHandShakeType = exports.NIMQChatHandShakeType || (exports.NIMQChatHandShakeType = {}));
var NIMQChatFCSAuthenticationType;
(function (NIMQChatFCSAuthenticationType) {
NIMQChatFCSAuthenticationType[NIMQChatFCSAuthenticationType["kNIMQChatFCSAuthenticationTypeRefer"] = 1] = "kNIMQChatFCSAuthenticationTypeRefer";
NIMQChatFCSAuthenticationType[NIMQChatFCSAuthenticationType["kNIMQChatFCSAuthenticationTypeToken"] = 2] = "kNIMQChatFCSAuthenticationTypeToken";
NIMQChatFCSAuthenticationType[NIMQChatFCSAuthenticationType["kNIMQChatFCSAuthenticationTypeURLToken"] = 3] = "kNIMQChatFCSAuthenticationTypeURLToken";
NIMQChatFCSAuthenticationType[NIMQChatFCSAuthenticationType["kNIMQChatFCSAuthenticationTypeCustom"] = 4] = "kNIMQChatFCSAuthenticationTypeCustom";
})(NIMQChatFCSAuthenticationType = exports.NIMQChatFCSAuthenticationType || (exports.NIMQChatFCSAuthenticationType = {}));
var NIMQChatMessageStatus;
(function (NIMQChatMessageStatus) {
/** 普通消息状态 */
NIMQChatMessageStatus[NIMQChatMessageStatus["kMsgStatusNormal"] = 0] = "kMsgStatusNormal";
/** 被撤回的消息 */
NIMQChatMessageStatus[NIMQChatMessageStatus["kMsgStatusRevoke"] = 1] = "kMsgStatusRevoke";
/** 被删除的消息 */
NIMQChatMessageStatus[NIMQChatMessageStatus["kMsgStatusDelete"] = 2] = "kMsgStatusDelete";
NIMQChatMessageStatus[NIMQChatMessageStatus["kMsgStatusUser"] = 10000] = "kMsgStatusUser"; // 大于10000为用户自定义状态
})(NIMQChatMessageStatus = exports.NIMQChatMessageStatus || (exports.NIMQChatMessageStatus = {}));
var NIMQChatMessageNotifyReason;
(function (NIMQChatMessageNotifyReason) {
/** 未知原因 */
NIMQChatMessageNotifyReason[NIMQChatMessageNotifyReason["kMessageNotifyReasonUnkonw"] = 0] = "kMessageNotifyReasonUnkonw";
/** 本消息发给了channel里的所有人 */
NIMQChatMessageNotifyReason[NIMQChatMessageNotifyReason["kMessageNotifyReasonNotifyAll"] = 1] = "kMessageNotifyReasonNotifyAll";
/** 本消息发给了channel里的订阅者 */
NIMQChatMessageNotifyReason[NIMQChatMessageNotifyReason["kMessageNotifyReasonNotifySubscribe"] = 2] = "kMessageNotifyReasonNotifySubscribe";
})(NIMQChatMessageNotifyReason = exports.NIMQChatMessageNotifyReason || (exports.NIMQChatMessageNotifyReason = {}));
var NIMQChatMsgType;
(function (NIMQChatMsgType) {
/** 文本类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeText"] = 0] = "kNIMQChatMsgTypeText";
/** 图片类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeImage"] = 1] = "kNIMQChatMsgTypeImage";
/** 声音类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeAudio"] = 2] = "kNIMQChatMsgTypeAudio";
/** 视频类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeVideo"] = 3] = "kNIMQChatMsgTypeVideo";
/** 位置类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeLocation"] = 4] = "kNIMQChatMsgTypeLocation";
/** 通知类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeNotification"] = 5] = "kNIMQChatMsgTypeNotification";
/** 文件类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeFile"] = 6] = "kNIMQChatMsgTypeFile";
/** 提醒类型消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeTips"] = 10] = "kNIMQChatMsgTypeTips";
/** 自定义消息 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeCustom"] = 100] = "kNIMQChatMsgTypeCustom";
/** 未知类型消息,作为默认值 */
NIMQChatMsgType[NIMQChatMsgType["kNIMQChatMsgTypeUnknown"] = 1000] = "kNIMQChatMsgTypeUnknown";
})(NIMQChatMsgType = exports.NIMQChatMsgType || (exports.NIMQChatMsgType = {}));
var NIMQChatQuickCommentOperation;
(function (NIMQChatQuickCommentOperation) {
/** 添加 */
NIMQChatQuickCommentOperation[NIMQChatQuickCommentOperation["kNIMQChatQuickCommentAdd"] = 1] = "kNIMQChatQuickCommentAdd";
/** 删除 */
NIMQChatQuickCommentOperation[NIMQChatQuickCommentOperation["kNIMQChatQuickCommentRemove"] = 2] = "kNIMQChatQuickCommentRemove";
})(NIMQChatQuickCommentOperation = exports.NIMQChatQuickCommentOperation || (exports.NIMQChatQuickCommentOperation = {}));
var NIMQChatGetReferMessageType;
(function (NIMQChatGetReferMessageType) {
/** 获取被回复的消息 */
NIMQChatGetReferMessageType[NIMQChatGetReferMessageType["kNIMQChatGetReferMessageTypeReply"] = 1] = "kNIMQChatGetReferMessageTypeReply";
/** 获取 thread 根消息 */
NIMQChatGetReferMessageType[NIMQChatGetReferMessageType["kNIMQChatGetReferMessageTypeThreadRoot"] = 2] = "kNIMQChatGetReferMessageTypeThreadRoot";
/** 获取以上两个条件的消息 */
NIMQChatGetReferMessageType[NIMQChatGetReferMessageType["kNIMQChatGetReferMessageTypeAll"] = 3] = "kNIMQChatGetReferMessageTypeAll";
})(NIMQChatGetReferMessageType = exports.NIMQChatGetReferMessageType || (exports.NIMQChatGetReferMessageType = {}));
var NIMQChatServerInviteMode;
(function (NIMQChatServerInviteMode) {
/** 需要验证 */
NIMQChatServerInviteMode[NIMQChatServerInviteMode["kNIMQChatServerInviteModeNeedConfirm"] = 0] = "kNIMQChatServerInviteModeNeedConfirm";
NIMQChatServerInviteMode[NIMQChatServerInviteMode["kNIMQChatServerInviteModeNormal"] = 1] = "kNIMQChatServerInviteModeNormal"; // 不需要验证
})(NIMQChatServerInviteMode = exports.NIMQChatServerInviteMode || (exports.NIMQChatServerInviteMode = {}));
var NIMQChatServerApplyMode;
(function (NIMQChatServerApplyMode) {
/** 不需要验证 */
NIMQChatServerApplyMode[NIMQChatServerApplyMode["kNIMQChatServerApplyModeNormal"] = 0] = "kNIMQChatServerApplyModeNormal";
/** 需要验证 */
NIMQChatServerApplyMode[NIMQChatServerApplyMode["kNIMQChatServerApplyModeNeedConfirm"] = 1] = "kNIMQChatServerApplyModeNeedConfirm";
})(NIMQChatServerApplyMode = exports.NIMQChatServerApplyMode || (exports.NIMQChatServerApplyMode = {}));
var NIMQChatServerInviteFailReason;
(function (NIMQChatServerInviteFailReason) {
/** 服务器人数超过限制 */
NIMQChatServerInviteFailReason[NIMQChatServerInviteFailReason["kNIMQChatServerInviteFailReasonExceedLimit"] = 1] = "kNIMQChatServerInviteFailReasonExceedLimit";
/** 被封禁 */
NIMQChatServerInviteFailReason[NIMQChatServerInviteFailReason["kNIMQChatServerInviteFailReasonBanned"] = 2] = "kNIMQChatServerInviteFailReasonBanned";
})(NIMQChatServerInviteFailReason = exports.NIMQChatServerInviteFailReason || (exports.NIMQChatServerInviteFailReason = {}));
var NIMQChatServerSearchType;
(function (NIMQChatServerSearchType) {
/** 广场搜索 */
NIMQChatServerSearchType[NIMQChatServerSearchType["kNIMQChatServerSearchTypeSquare"] = 1] = "kNIMQChatServerSearchTypeSquare";
/** 个人服务器搜索 */
NIMQChatServerSearchType[NIMQChatServerSearchType["kNIMQChatServerSearchTypePersonal"] = 2] = "kNIMQChatServerSearchTypePersonal";
})(NIMQChatServerSearchType = exports.NIMQChatServerSearchType || (exports.NIMQChatServerSearchType = {}));
var NIMQChatInviteApplyRecordType;
(function (NIMQChatInviteApplyRecordType) {
/** 申请 */
NIMQChatInviteApplyRecordType[NIMQChatInviteApplyRecordType["kNIMQChatInviteApplyRecordTypeApply"] = 1] = "kNIMQChatInviteApplyRecordTypeApply";
/** 邀请 */
NIMQChatInviteApplyRecordType[NIMQChatInviteApplyRecordType["kNIMQChatInviteApplyRecordTypeInvite"] = 2] = "kNIMQChatInviteApplyRecordTypeInvite";
/** 被邀请 */
NIMQChatInviteApplyRecordType[NIMQChatInviteApplyRecordType["kNIMQChatInviteApplyRecordTypeBeInvited"] = 3] = "kNIMQChatInviteApplyRecordTypeBeInvited";
/** 生成邀请码 */
NIMQChatInviteApplyRecordType[NIMQChatInviteApplyRecordType["kNIMQChatInviteApplyRecordTypeGenerateInviteCode"] = 4] = "kNIMQChatInviteApplyRecordTypeGenerateInviteCode";
/** 通过邀请码加入 */
NIMQChatInviteApplyRecordType[NIMQChatInviteApplyRecordType["kNIMQChatInviteApplyRecordTypeJoinByInviteCode"] = 5] = "kNIMQChatInviteApplyRecordTypeJoinByInviteCode";
})(NIMQChatInviteApplyRecordType = exports.NIMQChatInviteApplyRecordType || (exports.NIMQChatInviteApplyRecordType = {}));
var NIMQChatInviteApplyRecordStatus;
(function (NIMQChatInviteApplyRecordStatus) {
/** 初始状态 */
NIMQChatInviteApplyRecordStatus[NIMQChatInviteApplyRecordStatus["kNIMQChatInviteApplyRecordStatusInitial"] = 0] = "kNIMQChatInviteApplyRecordStatusInitial";
/** 同意 */
NIMQChatInviteApplyRecordStatus[NIMQChatInviteApplyRecordStatus["kNIMQChatInviteApplyRecordStatusApprove"] = 1] = "kNIMQChatInviteApplyRecordStatusApprove";
/** 拒绝 */
NIMQChatInviteApplyRecordStatus[NIMQChatInviteApplyRecordStatus["kNIMQChatInviteApplyRecordStatusReject"] = 2] = "kNIMQChatInviteApplyRecordStatusReject";
/** 通过其他请求同意 */
NIMQChatInviteApplyRecordStatus[NIMQChatInviteApplyRecordStatus["kNIMQChatInviteApplyRecordStatusApproveByOtherRequest"] = 3] = "kNIMQChatInviteApplyRecordStatusApproveByOtherRequest";
/** 通过其他请求拒绝 */
NIMQChatInviteApplyRecordStatus[NIMQChatInviteApplyRecordStatus["kNIMQChatInviteApplyRecordStatusRejectByOtherRequest"] = 4] = "kNIMQChatInviteApplyRecordStatusRejectByOtherRequest";
/** 邀请/申请时自动加入 */
NIMQChatInviteApplyRecordStatus[NIMQChatInviteApplyRecordStatus["kNIMQChatInviteApplyRecordStatusAutoJoin"] = 5] = "kNIMQChatInviteApplyRecordStatusAutoJoin";
/** 过期 */
NIMQChatInviteApplyRecordStatus[NIMQChatInviteApplyRecordStatus["kNIMQChatInviteApplyRecordStatusExpired"] = 6] = "kNIMQChatInviteApplyRecordStatusExpired";
})(NIMQChatInviteApplyRecordStatus = exports.NIMQChatInviteApplyRecordStatus || (exports.NIMQChatInviteApplyRecordStatus = {}));
var NIMQChatSystemNotificationToType;
(function (NIMQChatSystemNotificationToType) {
NIMQChatSystemNotificationToType[NIMQChatSystemNotificationToType["kNIMQChatSystemNotificationToTypeUnknown"] = 0] = "kNIMQChatSystemNotificationToTypeUnknown"; /**< 默认值,需要由用户修改,否则报错 10414 参数错误 */
NIMQChatSystemNotificationToType[NIMQChatSystemNotificationToType["kNIMQChatSystemNotificationToTypeServer"] = 1] = "kNIMQChatSystemNotificationToTypeServer"; /**< 发送到 Server,server_id 必填 */
NIMQChatSystemNotificationToType[NIMQChatSystemNotificationToType["kNIMQChatSystemNotificationToTypeChannel"] = 2] = "kNIMQChatSystemNotificationToTypeChannel"; /**< 发送到 Channel,server_id 和 channel_id 必填 */
NIMQChatSystemNotificationToType[NIMQChatSystemNotificationToType["kNIMQChatSystemNotificationToTypeServerAccids"] = 3] = "kNIMQChatSystemNotificationToTypeServerAccids"; /**< 发送到 Server 中的指定用户,server_id 和 to_accids 必填 */
NIMQChatSystemNotificationToType[NIMQChatSystemNotificationToType["kNIMQChatSystemNotificationToTypeChannelAccids"] = 4] = "kNIMQChatSystemNotificationToTypeChannelAccids"; /**<发送到 Channel 中的指定用户,server_id、channel_id 和 to_accids 必填 */
NIMQChatSystemNotificationToType[NIMQChatSystemNotificationToType["kNIMQChatSystemNotificationToTypeAccids"] = 5] = "kNIMQChatSystemNotificationToTypeAccids"; /**< 发送给指定用户,to_accids 必填 */
})(NIMQChatSystemNotificationToType = exports.NIMQChatSystemNotificationToType || (exports.NIMQChatSystemNotificationToType = {}));
var NIMQChatSystemNotificationType;
(function (NIMQChatSystemNotificationType) {
/** 未知类型系统通知 */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeUnkonwn"] = 0] = "kNIMQChatSystemNotificationTypeUnkonwn";
/** 服务器成员邀请 msg_data: NULL */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberInvite"] = 1] = "kNIMQChatSystemNotificationTypeMemberInvite";
/** 服务器成员邀请被拒绝 msg_data: NULL */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberInviteReject"] = 2] = "kNIMQChatSystemNotificationTypeMemberInviteReject";
/** 服务器成员申请 msg_data: NULL */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberApply"] = 3] = "kNIMQChatSystemNotificationTypeMemberApply";
/** 服务器成员申请被拒绝 msg_data: NULL */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberApplyReject"] = 4] = "kNIMQChatSystemNotificationTypeMemberApplyReject";
/** 服务器创建 msg_data: NIMQChatSystemNotificationDataServerCreate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerCreate"] = 5] = "kNIMQChatSystemNotificationTypeServerCreate";
/** 服务器解散 msg_data: NULL */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerRemove"] = 6] = "kNIMQChatSystemNotificationTypeServerRemove";
/** 服务器更新 msg_data: NIMQChatSystemNotificationDataServerUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerUpdate"] = 7] = "kNIMQChatSystemNotificationTypeServerUpdate";
/** 服务器成员邀请完成 msg_data: NIMQChatSystemNotificationDataMemberInviteDone */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberInviteDone"] = 8] = "kNIMQChatSystemNotificationTypeMemberInviteDone";
/** 服务器成员邀请被接受 msg_data: NIMQChatSystemNotificationDataMemberInviteAccept */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberInviteAccept"] = 9] = "kNIMQChatSystemNotificationTypeMemberInviteAccept";
/** 服务器成员申请完成 msg_data: NIMQChatSystemNotificationDataMemberApplyDone */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberApplyDone"] = 10] = "kNIMQChatSystemNotificationTypeMemberApplyDone";
/** 服务器成员申请被接受 msg_data: NIMQChatSystemNotificationDataMemberApplyAccept */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberApplyAccept"] = 11] = "kNIMQChatSystemNotificationTypeMemberApplyAccept";
/** 服务器成员被踢出 msg_data: NIMQChatSystemNotificationDataMemberKick */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberKick"] = 12] = "kNIMQChatSystemNotificationTypeMemberKick";
/** 服务器成员离开 msg_data: NIMQChatSystemNotificationDataMemberLeave */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberLeave"] = 13] = "kNIMQChatSystemNotificationTypeMemberLeave";
/** 服务器成员更新 msg_data: NIMQChatSystemNotificationDataMemberUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberUpdate"] = 14] = "kNIMQChatSystemNotificationTypeMemberUpdate";
/** 频道创建 msg_data: NIMQChatSystemNotificationDataChannelCreate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelCreate"] = 15] = "kNIMQChatSystemNotificationTypeChannelCreate";
/** 频道解散 msg_data: NULL */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelDelete"] = 16] = "kNIMQChatSystemNotificationTypeChannelDelete";
/** 频道更新 msg_data: NIMQChatSystemNotificationDataChannelUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelUpdate"] = 17] = "kNIMQChatSystemNotificationTypeChannelUpdate";
/** 频道白/黑名单身份组更新 msg_data: NIMQChatSystemNotificationDataWhiteBlackRoleUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeWhiteBlackRoleUpdate"] = 18] = "kNIMQChatSystemNotificationTypeWhiteBlackRoleUpdate";
/** 频道白/黑名单成员更新 msg_data: NIMQChatSystemNotificationDataWhiteBlackMembersUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeWhiteBlackMembersUpdate"] = 19] = "kNIMQChatSystemNotificationTypeWhiteBlackMembersUpdate";
/** 添加或删除快捷评论通知 msg_data: NIMQChatSystemNotificationQuickCommentChanged */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeQuickCommentChanged"] = 20] = "kNIMQChatSystemNotificationTypeQuickCommentChanged";
/** 创建频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryCreate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelCategoryCreate"] = 21] = "kNIMQChatSystemNotificationTypeChannelCategoryCreate";
/** 删除频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryRemove */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelCategoryRemove"] = 22] = "kNIMQChatSystemNotificationTypeChannelCategoryRemove";
/** 更新频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelCategoryUpdate"] = 23] = "kNIMQChatSystemNotificationTypeChannelCategoryUpdate";
/** 频道分组白/黑名单身份组更新 msg_data: NIMQChatSystemNotificationDataChannelCategoryWhiteBlackRoleUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackRoleUpdate"] = 24] = "kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackRoleUpdate";
/** 频道分组白/黑名单成员更新 msg_data: NIMQChatSystemNotificationDataChannelCategoryWhiteBlackMembersUpdate */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackMembersUpdate"] = 25] = "kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackMembersUpdate";
/** 服务器身份组加入成员 msg_data: NIMQChatSystemNotificationDataServerRoleAddMember */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerRoleAddMember"] = 26] = "kNIMQChatSystemNotificationTypeServerRoleAddMember";
/** 服务器身份组移出成员 msg_data: NIMQChatSystemNotificationDataServerRoleRemoveMember */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerRoleRemoveMember"] = 27] = "kNIMQChatSystemNotificationTypeServerRoleRemoveMember";
/** 服务器身份组权限变更 msg_data: NIMQChatSystemNotificationDataServerRolePermissionChange */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerRolePermissionChange"] = 28] = "kNIMQChatSystemNotificationTypeServerRolePermissionChange";
/** 频道定制身份组权限变更 msg_data: NIMQChatSystemNotificationDataChannelRolePermissionChange */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelRolePermissionChange"] = 29] = "kNIMQChatSystemNotificationTypeChannelRolePermissionChange";
/** 频道个人定制权限变更 msg_data: NIMQChatSystemNotificationDataMemberRolePermissionChange */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMemberRolePermissionChange"] = 30] = "kNIMQChatSystemNotificationTypeMemberRolePermissionChange";
/** 频道对当前用户可见性变更 msg_data: NIMQChatSystemNotificationDataChannelVisibilityChange */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelVisibilityChange"] = 31] = "kNIMQChatSystemNotificationTypeChannelVisibilityChange";
/** 当前用户进入/离开服务器 msg_data: NIMQChatSystemNotificationDataServerEnterLeave */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerEnterLeave"] = 32] = "kNIMQChatSystemNotificationTypeServerEnterLeave";
/** 用户通过邀请码加入服务器 msg_data: NIMQChatSystemNotificationDataServerJoinByInviteCode */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeServerJoinByInviteCode"] = 33] = "kNIMQChatSystemNotificationTypeServerJoinByInviteCode";
/** 频道对游客可见性变更 msg_data: NIMQChatSystemNotificationDataChannelGuestVisibilityChange */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeChannelVisitorVisibilityChange"] = 34] = "kNIMQChatSystemNotificationTypeChannelVisitorVisibilityChange";
/** 当前用户服务器成员信息对IM资料的联动变更 msg_data: NIMQChatSystemNotificationDataMyMemberInfoUpdated */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTypeMyMemberInfoUpdated"] = 35] = "kNIMQChatSystemNotificationTypeMyMemberInfoUpdated";
/** 自定义系统通知 msg_data: NULL */
NIMQChatSystemNotificationType[NIMQChatSystemNotificationType["kNIMQChatSystemNotificationTyp