UNPKG

@fork-anyone/node-nim

Version:

NetEase IM nodejs wrapper based on NetEase IM C++ SDK

301 lines 24.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NIMFullTextSearchRule = exports.NIMStreamingMessageStatus = exports.NIMAIStreamingMessageStatus = exports.NIMAIMessageStatus = exports.BoolStatus = exports.NIMMsglogQuerySource = exports.NIMBuildingMsglogIndexesCompleteReason = exports.NIMMsglogSearchSegmentEngine = exports.NIMMsglogSearchDirection = exports.NIMMsgLogQueryRange = exports.NIMMsgLogSubStatus = exports.NIMMsgLogStatus = exports.NIMMessageFeature = exports.NIMMessageType = exports.NIMNotificationId = void 0; /** @enum NIMNotificationId 通知类型 */ var NIMNotificationId; (function (NIMNotificationId) { /** 普通群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInvite"] = 0] = "kNIMNotificationIdTeamInvite"; /** 普通群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamKick"] = 1] = "kNIMNotificationIdTeamKick"; /** 退出群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamLeave"] = 2] = "kNIMNotificationIdTeamLeave"; /** 群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamUpdate"] = 3] = "kNIMNotificationIdTeamUpdate"; /** 群解散,{"user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamDismiss"] = 4] = "kNIMNotificationIdTeamDismiss"; /** 高级群申请加入成功,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamApplyPass"] = 5] = "kNIMNotificationIdTeamApplyPass"; /** 高级群移交群主,{"id":"a1", "leave" : boolean,"user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamOwnerTransfer"] = 6] = "kNIMNotificationIdTeamOwnerTransfer"; /** 增加管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamAddManager"] = 7] = "kNIMNotificationIdTeamAddManager"; /** 删除管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamRemoveManager"] = 8] = "kNIMNotificationIdTeamRemoveManager"; /** 高级群接受邀请进群,{"id":"a1","user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamInviteAccept"] = 9] = "kNIMNotificationIdTeamInviteAccept"; /** 禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1","mute":1-禁言,0-解禁} */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMuteMember"] = 10] = "kNIMNotificationIdTeamMuteMember"; /** 未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"], "time":1430995380471}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallMiss"] = 101] = "kNIMNotificationIdNetcallMiss"; /** 话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],"time":1430995117398}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdNetcallBill"] = 102] = "kNIMNotificationIdNetcallBill"; /** 创建群 {"team_info" : team_info} //群组信息(Keys SEE MORE `nim_team_def.h` 『群组信息 Json Keys』)*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncCreate"] = 1000] = "kNIMNotificationIdTeamSyncCreate"; /** 群成员变更{"team_member" : team_member_info} //群组成员信息(不包括自己)(Keys SEE MORE `nim_team_def.h` 『群组成员信息 Json Keys』)*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamMemberChanged"] = 1001] = "kNIMNotificationIdTeamMemberChanged"; /** 同步通知:修改群成员属性(可能是自己的或别人的){"team_member" : team_member_info} 目前只需kNIMTeamUserKeyNick和kNIMTeamUserKeyBits*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdTeamSyncUpdateMemberProperty"] = 1002] = "kNIMNotificationIdTeamSyncUpdateMemberProperty"; /** 本地操作创建群 {"ids" : ["a1", "a2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalCreateTeam"] = 2000] = "kNIMNotificationIdLocalCreateTeam"; /** 本地操作申请加入群 {}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalApplyTeam"] = 2001] = "kNIMNotificationIdLocalApplyTeam"; /** 本地操作拒绝申请 {"id":"a1"}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectApply"] = 2002] = "kNIMNotificationIdLocalRejectApply"; /** 本地操作拒绝邀请 {"id":"a1"}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalRejectInvite"] = 2003] = "kNIMNotificationIdLocalRejectInvite"; /** 本地操作更新群成员属性 {"team_member" : team_member_info} */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateMemberProperty"] = 2004] = "kNIMNotificationIdLocalUpdateMemberProperty"; /** 本地操作更新他人nickname {}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalUpdateOtherNick"] = 2005] = "kNIMNotificationIdLocalUpdateOtherNick"; /** 本地操作获取群信息 {"team_info":team_info}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamInfo"] = 2006] = "kNIMNotificationIdLocalGetTeamInfo"; /** 本地操作获取群成员信息结束*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamList"] = 2007] = "kNIMNotificationIdLocalGetTeamList"; /** 本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁} */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMuteMember"] = 2008] = "kNIMNotificationIdLocalMuteMember"; /** 本地操作对群禁言 {} */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalMute"] = 2009] = "kNIMNotificationIdLocalMute"; /** 获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadCount"] = 2010] = "kNIMNotificationIdLocalGetTeamMsgUnreadCount"; /** 获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalGetTeamMsgUnreadList"] = 2011] = "kNIMNotificationIdLocalGetTeamMsgUnreadList"; /** 拒绝电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallReject"] = 3103] = "kNIMNotificationIdLocalNetcallReject"; /** 无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallNoResponse"] = 3104] = "kNIMNotificationIdLocalNetcallNoResponse"; /** 未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdLocalNetcallCanceled"] = 3105] = "kNIMNotificationIdLocalNetcallCanceled"; /** 超大群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInvite"] = 401] = "kNIMNotificationIdSuperTeamInvite"; /** 超大群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""} attach为可选字段,作为应用自定义扩展字段,解析前需要判断有没有这个字段 */ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamKick"] = 402] = "kNIMNotificationIdSuperTeamKick"; /** 退出超大群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamLeave"] = 403] = "kNIMNotificationIdSuperTeamLeave"; /** 超大群群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamUpdate"] = 404] = "kNIMNotificationIdSuperTeamUpdate"; /** 超大群解散,{"user_namecards":["namecard1", "namecard2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamDismiss"] = 405] = "kNIMNotificationIdSuperTeamDismiss"; /** 超大群移交群主,{"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamOwnerTransfer"] = 406] = "kNIMNotificationIdSuperTeamOwnerTransfer"; /** 超大群增加管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamAddManager"] = 407] = "kNIMNotificationIdSuperTeamAddManager"; /** 超大群删除管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamRemoveManager"] = 408] = "kNIMNotificationIdSuperTeamRemoveManager"; /** 超大群禁言/解禁群成员,{"uinfos":["uinfo1", "uinfo2"],“tinfo”:tinfo,"id":"a1","mute":1-禁言,0-解禁}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamMuteMember"] = 409] = "kNIMNotificationIdSuperTeamMuteMember"; /** 超大群申请加入成功,{"tinfo":tinfo,"id":"a1","uinfos":["uinfo1", "uinfo2"]}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamApplyPass"] = 410] = "kNIMNotificationIdSuperTeamApplyPass"; /** 超大群接受邀请进群,{"tinfo":tinfo,"id":"a1"}*/ NIMNotificationId[NIMNotificationId["kNIMNotificationIdSuperTeamInviteAccept"] = 411] = "kNIMNotificationIdSuperTeamInviteAccept"; })(NIMNotificationId = exports.NIMNotificationId || (exports.NIMNotificationId = {})); /** @enum NIMMessageType Message Type */ var NIMMessageType; (function (NIMMessageType) { /** 文本类型消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeText"] = 0] = "kNIMMessageTypeText"; /** 图片类型消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeImage"] = 1] = "kNIMMessageTypeImage"; /** 声音类型消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeAudio"] = 2] = "kNIMMessageTypeAudio"; /** 视频类型消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeVideo"] = 3] = "kNIMMessageTypeVideo"; /** 位置类型消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeLocation"] = 4] = "kNIMMessageTypeLocation"; /** 系统类型通知(包括入群出群通知等) NIMNotificationId*/ NIMMessageType[NIMMessageType["kNIMMessageTypeNotification"] = 5] = "kNIMMessageTypeNotification"; /** 文件类型消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeFile"] = 6] = "kNIMMessageTypeFile"; /** 提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段*/ NIMMessageType[NIMMessageType["kNIMMessageTypeTips"] = 10] = "kNIMMessageTypeTips"; /** 波特机器人消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeRobot"] = 11] = "kNIMMessageTypeRobot"; /** G2话单消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeG2NetCall"] = 12] = "kNIMMessageTypeG2NetCall"; /** 自定义消息*/ NIMMessageType[NIMMessageType["kNIMMessageTypeCustom"] = 100] = "kNIMMessageTypeCustom"; /** 未知类型消息,本地使用,发送时勿使用,作为默认值*/ NIMMessageType[NIMMessageType["kNIMMessageTypeUnknown"] = 1000] = "kNIMMessageTypeUnknown"; })(NIMMessageType = exports.NIMMessageType || (exports.NIMMessageType = {})); /** @enum NIMMessageFeature 消息种类 */ var NIMMessageFeature; (function (NIMMessageFeature) { /** 默认*/ NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureDefault"] = 0] = "kNIMMessageFeatureDefault"; /** 离线消息*/ NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureLeaveMsg"] = 1] = "kNIMMessageFeatureLeaveMsg"; /** 漫游消息*/ NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureRoamMsg"] = 2] = "kNIMMessageFeatureRoamMsg"; /** 同步消息*/ NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureSyncMsg"] = 3] = "kNIMMessageFeatureSyncMsg"; /** 透传消息*/ NIMMessageFeature[NIMMessageFeature["kNIMMessageFeatureCustomizedMsg"] = 4] = "kNIMMessageFeatureCustomizedMsg"; })(NIMMessageFeature = exports.NIMMessageFeature || (exports.NIMMessageFeature = {})); /** @enum NIMMsgLogStatus 消息状态 */ var NIMMsgLogStatus; (function (NIMMsgLogStatus) { /** 默认,不能当查询条件,意义太多*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusNone"] = 0] = "kNIMMsgLogStatusNone"; /** 收到消息,未读*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusUnread"] = 1] = "kNIMMsgLogStatusUnread"; /** 收到消息,已读*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRead"] = 2] = "kNIMMsgLogStatusRead"; /** 已删*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDeleted"] = 3] = "kNIMMsgLogStatusDeleted"; /** 发送中*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSending"] = 4] = "kNIMMsgLogStatusSending"; /** 发送失败*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendFailed"] = 5] = "kNIMMsgLogStatusSendFailed"; /** 已发送*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSent"] = 6] = "kNIMMsgLogStatusSent"; /** 对方已读发送的内容*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusReceipt"] = 7] = "kNIMMsgLogStatusReceipt"; /** 草稿*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusDraft"] = 8] = "kNIMMsgLogStatusDraft"; /** 发送取消*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusSendCancel"] = 9] = "kNIMMsgLogStatusSendCancel"; /** 被对方拒绝,比如被对方加入黑名单等等*/ NIMMsgLogStatus[NIMMsgLogStatus["kNIMMsgLogStatusRefused"] = 10] = "kNIMMsgLogStatusRefused"; })(NIMMsgLogStatus = exports.NIMMsgLogStatus || (exports.NIMMsgLogStatus = {})); /** @enum NIMMsgLogSubStatus 消息子状态 */ var NIMMsgLogSubStatus; (function (NIMMsgLogSubStatus) { /** 默认状态*/ NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNone"] = 0] = "kNIMMsgLogSubStatusNone"; /** 未播放*/ NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusNotPlaying"] = 20] = "kNIMMsgLogSubStatusNotPlaying"; /** 已播放*/ NIMMsgLogSubStatus[NIMMsgLogSubStatus["kNIMMsgLogSubStatusPlayed"] = 21] = "kNIMMsgLogSubStatusPlayed"; })(NIMMsgLogSubStatus = exports.NIMMsgLogSubStatus || (exports.NIMMsgLogSubStatus = {})); /** @enum NIMMsgLogQueryRange 消息历史的检索范围 */ var NIMMsgLogQueryRange; (function (NIMMsgLogQueryRange) { /** 指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeP2P"] = 0] = "kNIMMsgLogQueryRangeP2P"; /** 指定的群组(注意:暂不支持指定多个群组的检索!)*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeTeam"] = 1] = "kNIMMsgLogQueryRangeTeam"; /** 指定的超大群组(注意:暂不支持指定多个群组的检索!)*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeSuperTeam"] = 5] = "kNIMMsgLogQueryRangeSuperTeam"; /** 全部*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAll"] = 100] = "kNIMMsgLogQueryRangeAll"; /** 所有个人会话*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllP2P"] = 101] = "kNIMMsgLogQueryRangeAllP2P"; /** 所有群组*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllTeam"] = 102] = "kNIMMsgLogQueryRangeAllTeam"; /** 所有超大群组*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeAllSuperTeam"] = 103] = "kNIMMsgLogQueryRangeAllSuperTeam"; /** 未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)*/ NIMMsgLogQueryRange[NIMMsgLogQueryRange["kNIMMsgLogQueryRangeUnknown"] = 200] = "kNIMMsgLogQueryRangeUnknown"; })(NIMMsgLogQueryRange = exports.NIMMsgLogQueryRange || (exports.NIMMsgLogQueryRange = {})); /** @enum NIMMsglogSearchDirection 消息历史查询方向 */ var NIMMsglogSearchDirection; (function (NIMMsglogSearchDirection) { /** 以时间点为准向前搜索 */ NIMMsglogSearchDirection[NIMMsglogSearchDirection["kForward"] = 0] = "kForward"; /** 以时间点为准向后搜索 */ NIMMsglogSearchDirection[NIMMsglogSearchDirection["kBackward"] = 1] = "kBackward"; })(NIMMsglogSearchDirection = exports.NIMMsglogSearchDirection || (exports.NIMMsglogSearchDirection = {})); var NIMMsglogSearchSegmentEngine; (function (NIMMsglogSearchSegmentEngine) { /** 不使用分词逻辑 */ NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineDefault"] = 0] = "kSegmentEngineDefault"; /** 单字分词逻辑,默认 */ NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineSimple"] = 1] = "kSegmentEngineSimple"; /** Jieba 分词,使用 HMM 模型 */ NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutWithHMM"] = 2] = "kSegmentEngineJiebaCutWithHMM"; /** Jieba 分词,不使用 HMM 模型 */ NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutWithoutHMM"] = 3] = "kSegmentEngineJiebaCutWithoutHMM"; /** Jieba 分词,使用全模式 */ NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutAll"] = 4] = "kSegmentEngineJiebaCutAll"; /** Jieba 分词,搜索引擎模式 */ NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutForSearch"] = 5] = "kSegmentEngineJiebaCutForSearch"; /** Jieba 分词,使用 HMM 模型 */ NIMMsglogSearchSegmentEngine[NIMMsglogSearchSegmentEngine["kSegmentEngineJiebaCutHMM"] = 6] = "kSegmentEngineJiebaCutHMM"; })(NIMMsglogSearchSegmentEngine = exports.NIMMsglogSearchSegmentEngine || (exports.NIMMsglogSearchSegmentEngine = {})); var NIMBuildingMsglogIndexesCompleteReason; (function (NIMBuildingMsglogIndexesCompleteReason) { /** 构建消息索引表完成 */ NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesCompleted"] = 0] = "kBuildingMsglogIndexesCompleted"; /** 用户取消 */ NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesCanceled"] = 1] = "kBuildingMsglogIndexesCanceled"; /** 构建失败 */ NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesError"] = 2] = "kBuildingMsglogIndexesError"; /** 磁盘空间不足 */ NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesFullDisk"] = 3] = "kBuildingMsglogIndexesFullDisk"; /** 当前正在构建中,请勿频繁操作 */ NIMBuildingMsglogIndexesCompleteReason[NIMBuildingMsglogIndexesCompleteReason["kBuildingMsglogIndexesInProgress"] = 4] = "kBuildingMsglogIndexesInProgress"; })(NIMBuildingMsglogIndexesCompleteReason = exports.NIMBuildingMsglogIndexesCompleteReason || (exports.NIMBuildingMsglogIndexesCompleteReason = {})); /** @enum NIMMsglogQuerySource 消息历史查询来源 */ var NIMMsglogQuerySource; (function (NIMMsglogQuerySource) { /** 本地查询*/ NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceLocal"] = 0] = "kNIMMsglogQuerySourceLocal"; /** 云端查询*/ NIMMsglogQuerySource[NIMMsglogQuerySource["kNIMMsglogQuerySourceServer"] = 1] = "kNIMMsglogQuerySourceServer"; })(NIMMsglogQuerySource = exports.NIMMsglogQuerySource || (exports.NIMMsglogQuerySource = {})); var BoolStatus; (function (BoolStatus) { /** 未初始化 */ BoolStatus[BoolStatus["BS_NOT_INIT"] = -1] = "BS_NOT_INIT"; /** false */ BoolStatus[BoolStatus["BS_FALSE"] = 0] = "BS_FALSE"; /** true */ BoolStatus[BoolStatus["BS_TRUE"] = 1] = "BS_TRUE"; })(BoolStatus = exports.BoolStatus || (exports.BoolStatus = {})); /** @brief AI 数字人消息状态 */ var NIMAIMessageStatus; (function (NIMAIMessageStatus) { /** 默认 */ NIMAIMessageStatus[NIMAIMessageStatus["kNIMMessageAIStatusUnknown"] = 0] = "kNIMMessageAIStatusUnknown"; /** 表示是一个艾特数字人的消息 */ NIMAIMessageStatus[NIMAIMessageStatus["kNIMMessageAIStatusAt"] = 1] = "kNIMMessageAIStatusAt"; /** 表示是数字人响应艾特的消息 */ NIMAIMessageStatus[NIMAIMessageStatus["kNIMMessageAIStatusResponse"] = 2] = "kNIMMessageAIStatusResponse"; })(NIMAIMessageStatus = exports.NIMAIMessageStatus || (exports.NIMAIMessageStatus = {})); /** @brief AI 流式消息状态 @since v10.8.30 */ var NIMAIStreamingMessageStatus; (function (NIMAIStreamingMessageStatus) { /** 流式过程中(本地状态,其他为服务器状态) */ NIMAIStreamingMessageStatus[NIMAIStreamingMessageStatus["kNIMAIStreamingMessageStreaming"] = -1] = "kNIMAIStreamingMessageStreaming"; /** 非流式状态 */ NIMAIStreamingMessageStatus[NIMAIStreamingMessageStatus["kNIMAIStreamingMessageNone"] = 0] = "kNIMAIStreamingMessageNone"; /** 占位 */ NIMAIStreamingMessageStatus[NIMAIStreamingMessageStatus["kNIMAIStreamingMessagePlaceholder"] = 1] = "kNIMAIStreamingMessagePlaceholder"; /** 停止输出 */ NIMAIStreamingMessageStatus[NIMAIStreamingMessageStatus["kNIMAIStreamingMessageCancelled"] = 2] = "kNIMAIStreamingMessageCancelled"; /** 停止并更新 */ NIMAIStreamingMessageStatus[NIMAIStreamingMessageStatus["kNIMAIStreamingMessageUpdated"] = 3] = "kNIMAIStreamingMessageUpdated"; /** 输出完成 */ NIMAIStreamingMessageStatus[NIMAIStreamingMessageStatus["kNIMAIStreamingMessageCompleted"] = 4] = "kNIMAIStreamingMessageCompleted"; /** 服务器异常终止 */ NIMAIStreamingMessageStatus[NIMAIStreamingMessageStatus["kNIMAIStreamingMessageAborted"] = 5] = "kNIMAIStreamingMessageAborted"; })(NIMAIStreamingMessageStatus = exports.NIMAIStreamingMessageStatus || (exports.NIMAIStreamingMessageStatus = {})); /** @brief AI 流式消息状态 @since v10.9.10 */ var NIMStreamingMessageStatus; (function (NIMStreamingMessageStatus) { /** 流式过程中(本地状态,其他为服务器状态) */ NIMStreamingMessageStatus[NIMStreamingMessageStatus["kNIMAIStreamingMessageStreaming"] = -1] = "kNIMAIStreamingMessageStreaming"; /** 非流式状态 */ NIMStreamingMessageStatus[NIMStreamingMessageStatus["kNIMAIStreamingMessageNone"] = 0] = "kNIMAIStreamingMessageNone"; /** 占位 */ NIMStreamingMessageStatus[NIMStreamingMessageStatus["kNIMAIStreamingMessagePlaceholder"] = 1] = "kNIMAIStreamingMessagePlaceholder"; /** 停止输出 */ NIMStreamingMessageStatus[NIMStreamingMessageStatus["kNIMAIStreamingMessageCancelled"] = 2] = "kNIMAIStreamingMessageCancelled"; /** 停止并更新 */ NIMStreamingMessageStatus[NIMStreamingMessageStatus["kNIMAIStreamingMessageUpdated"] = 3] = "kNIMAIStreamingMessageUpdated"; /** 输出完成 */ NIMStreamingMessageStatus[NIMStreamingMessageStatus["kNIMAIStreamingMessageCompleted"] = 4] = "kNIMAIStreamingMessageCompleted"; /** 服务器异常终止 */ NIMStreamingMessageStatus[NIMStreamingMessageStatus["kNIMAIStreamingMessageAborted"] = 5] = "kNIMAIStreamingMessageAborted"; })(NIMStreamingMessageStatus = exports.NIMStreamingMessageStatus || (exports.NIMStreamingMessageStatus = {})); /** @enum NIMFullTextSearchRule 全文检索规则 */ var NIMFullTextSearchRule; (function (NIMFullTextSearchRule) { /** 降序排列 */ NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByAsc"] = 1] = "kNIMFullTextSearchOrderByAsc"; /** 升序排列 */ NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchOrderByDesc"] = 2] = "kNIMFullTextSearchOrderByDesc"; /** 按会话排序 */ NIMFullTextSearchRule[NIMFullTextSearchRule["kNIMFullTextSearchNoGroupBySession"] = 4] = "kNIMFullTextSearchNoGroupBySession"; })(NIMFullTextSearchRule = exports.NIMFullTextSearchRule || (exports.NIMFullTextSearchRule = {})); //# sourceMappingURL=msglog_def.js.map