node-nim 9.2.8-rc.1 → 9.3.0-rc.2
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/README.md +74 -39
- package/dist/chatroom/chatroom.js +253 -0
- package/dist/chatroom/chatroom.js.map +1 -0
- package/dist/chatroom_def/chatroom_def.js +120 -0
- package/dist/chatroom_def/chatroom_def.js.map +1 -0
- package/{js → dist}/loader.js +0 -0
- package/{js → dist}/loader.js.map +0 -0
- package/{js/api → dist/nim}/client.js +46 -8
- package/dist/nim/client.js.map +1 -0
- package/{js/api → dist/nim}/data_sync.js +2 -2
- package/dist/nim/data_sync.js.map +1 -0
- package/{js/api → dist/nim}/friend.js +62 -12
- package/dist/nim/friend.js.map +1 -0
- package/{js/api → dist/nim}/global.js +50 -8
- package/dist/nim/global.js.map +1 -0
- package/{js/api → dist/nim}/msglog.js +271 -52
- package/dist/nim/msglog.js.map +1 -0
- package/{js/api → dist/nim}/nos.js +54 -13
- package/dist/nim/nos.js.map +1 -0
- package/{js/api → dist/nim}/online_session.js +34 -6
- package/dist/nim/online_session.js.map +1 -0
- package/{js/api → dist/nim}/pass_through_proxy.js +10 -3
- package/dist/nim/pass_through_proxy.js.map +1 -0
- package/{js/api → dist/nim}/plugin.js +18 -4
- package/dist/nim/plugin.js.map +1 -0
- package/{js/api → dist/nim}/session.js +171 -28
- package/dist/nim/session.js.map +1 -0
- package/{js/api → dist/nim}/subscribe_event.js +53 -12
- package/dist/nim/subscribe_event.js.map +1 -0
- package/{js/api → dist/nim}/super_team.js +253 -47
- package/dist/nim/super_team.js.map +1 -0
- package/{js/api → dist/nim}/sysmsg.js +80 -12
- package/dist/nim/sysmsg.js.map +1 -0
- package/{js/api → dist/nim}/talk.js +10 -3
- package/dist/nim/talk.js.map +1 -0
- package/dist/nim/talkex.js +192 -0
- package/dist/nim/talkex.js.map +1 -0
- package/{js/api → dist/nim}/team.js +363 -87
- package/dist/nim/team.js.map +1 -0
- package/{js/api → dist/nim}/tool.js +21 -5
- package/dist/nim/tool.js.map +1 -0
- package/{js/api → dist/nim}/user.js +84 -16
- package/dist/nim/user.js.map +1 -0
- package/{js/def → dist/nim_def}/client_def.js +0 -0
- package/dist/nim_def/client_def.js.map +1 -0
- package/{js/def → dist/nim_def}/data_sync_def.js +0 -0
- package/dist/nim_def/data_sync_def.js.map +1 -0
- package/{js/def → dist/nim_def}/doc_trans_def.js +0 -0
- package/dist/nim_def/doc_trans_def.js.map +1 -0
- package/{js/def → dist/nim_def}/friend_def.js +0 -0
- package/dist/nim_def/friend_def.js.map +1 -0
- package/{js/def → dist/nim_def}/global_def.js +0 -0
- package/dist/nim_def/global_def.js.map +1 -0
- package/{js/def → dist/nim_def}/msglog_def.js +1 -1
- package/dist/nim_def/msglog_def.js.map +1 -0
- package/{js/def → dist/nim_def}/nos_def.js +0 -0
- package/dist/nim_def/nos_def.js.map +1 -0
- package/{js/def → dist/nim_def}/online_session_def.js +0 -0
- package/dist/nim_def/online_session_def.js.map +1 -0
- package/{js/def → dist/nim_def}/pass_through_proxy_def.js +0 -0
- package/dist/nim_def/pass_through_proxy_def.js.map +1 -0
- package/{js/def → dist/nim_def}/plugin_def.js +0 -0
- package/{js/def → dist/nim_def}/plugin_def.js.map +1 -1
- package/{js/def → dist/nim_def}/session_def.js +0 -0
- package/dist/nim_def/session_def.js.map +1 -0
- package/{js/def → dist/nim_def}/subscribe_event_def.js +0 -0
- package/dist/nim_def/subscribe_event_def.js.map +1 -0
- package/{js/def → dist/nim_def}/super_team_def.js +0 -0
- package/dist/nim_def/super_team_def.js.map +1 -0
- package/{js/def → dist/nim_def}/sysmsg_def.js +0 -0
- package/dist/nim_def/sysmsg_def.js.map +1 -0
- package/{js/def → dist/nim_def}/talk_def.js +0 -0
- package/{js/def → dist/nim_def}/talk_def.js.map +1 -1
- package/{js/def → dist/nim_def}/talkex_def.js +0 -0
- package/{js/def → dist/nim_def}/talkex_def.js.map +1 -1
- package/{js/def → dist/nim_def}/team_def.js +0 -0
- package/dist/nim_def/team_def.js.map +1 -0
- package/{js/def → dist/nim_def}/tool_def.js +0 -0
- package/dist/nim_def/tool_def.js.map +1 -0
- package/{js/def → dist/nim_def}/user_def.js +0 -0
- package/dist/nim_def/user_def.js.map +1 -0
- package/dist/node-nim.js +98 -0
- package/dist/node-nim.js.map +1 -0
- package/dist/qchat/attachment.js +75 -0
- package/dist/qchat/attachment.js.map +1 -0
- package/dist/qchat/channel.js +402 -0
- package/dist/qchat/channel.js.map +1 -0
- package/dist/qchat/channel_category.js +249 -0
- package/dist/qchat/channel_category.js.map +1 -0
- package/dist/qchat/instance.js +94 -0
- package/dist/qchat/instance.js.map +1 -0
- package/dist/qchat/message.js +325 -0
- package/dist/qchat/message.js.map +1 -0
- package/dist/qchat/role.js +562 -0
- package/dist/qchat/role.js.map +1 -0
- package/dist/qchat/server.js +515 -0
- package/dist/qchat/server.js.map +1 -0
- package/dist/qchat/system_notification.js +96 -0
- package/dist/qchat/system_notification.js.map +1 -0
- package/dist/qchat_def/attachment_def.js +3 -0
- package/dist/qchat_def/attachment_def.js.map +1 -0
- package/dist/qchat_def/channel_def.js +3 -0
- package/dist/qchat_def/channel_def.js.map +1 -0
- package/dist/qchat_def/instance_def.js +3 -0
- package/dist/qchat_def/instance_def.js.map +1 -0
- package/dist/qchat_def/message_def.js +3 -0
- package/dist/qchat_def/message_def.js.map +1 -0
- package/dist/qchat_def/public_def.js +584 -0
- package/dist/qchat_def/public_def.js.map +1 -0
- package/dist/qchat_def/role_def.js +3 -0
- package/dist/qchat_def/role_def.js.map +1 -0
- package/dist/qchat_def/server_def.js +3 -0
- package/dist/qchat_def/server_def.js.map +1 -0
- package/dist/qchat_def/system_notification_def.js +3 -0
- package/dist/qchat_def/system_notification_def.js.map +1 -0
- package/package.json +7 -6
- package/script/download-sdk.mjs +17 -16
- package/types/chatroom/chatroom.d.ts +54 -0
- package/types/chatroom_def/chatroom_def.d.ts +419 -0
- package/types/{api → nim}/client.d.ts +22 -23
- package/types/nim/data_sync.d.ts +12 -0
- package/types/{api → nim}/friend.d.ts +17 -17
- package/types/{api → nim}/global.d.ts +13 -13
- package/types/{api → nim}/msglog.d.ts +62 -62
- package/types/{api → nim}/nos.d.ts +21 -21
- package/types/{api → nim}/online_session.d.ts +12 -12
- package/types/{api → nim}/pass_through_proxy.d.ts +8 -8
- package/types/{api → nim}/plugin.d.ts +8 -6
- package/types/{api → nim}/session.d.ts +40 -40
- package/types/{api → nim}/subscribe_event.d.ts +19 -19
- package/types/{api → nim}/super_team.d.ts +51 -52
- package/types/{api → nim}/sysmsg.d.ts +20 -20
- package/types/{api → nim}/talk.d.ts +19 -19
- package/types/{api → nim}/talkex.d.ts +29 -27
- package/types/{api → nim}/team.d.ts +89 -88
- package/types/{api → nim}/tool.d.ts +9 -7
- package/types/{api → nim}/user.d.ts +23 -23
- package/types/{def → nim_def}/client_def.d.ts +86 -86
- package/types/{def → nim_def}/data_sync_def.d.ts +0 -0
- package/types/{def → nim_def}/doc_trans_def.d.ts +0 -0
- package/types/{def → nim_def}/friend_def.d.ts +17 -16
- package/types/{def → nim_def}/global_def.d.ts +14 -13
- package/types/{def → nim_def}/msglog_def.d.ts +152 -141
- package/types/nim_def/nos_def.d.ts +72 -0
- package/types/{def → nim_def}/online_session_def.d.ts +15 -15
- package/types/{def → nim_def}/pass_through_proxy_def.d.ts +2 -1
- package/types/{def → nim_def}/plugin_def.d.ts +3 -2
- package/types/{def → nim_def}/session_def.d.ts +49 -48
- package/types/nim_def/subscribe_event_def.d.ts +83 -0
- package/types/{def → nim_def}/super_team_def.d.ts +34 -34
- package/types/{def → nim_def}/sysmsg_def.d.ts +25 -25
- package/types/{def → nim_def}/talk_def.d.ts +24 -24
- package/types/nim_def/talkex_def.d.ts +112 -0
- package/types/{def → nim_def}/team_def.d.ts +37 -37
- package/types/{def → nim_def}/tool_def.d.ts +7 -6
- package/types/{def → nim_def}/user_def.d.ts +22 -21
- package/types/node-nim.d.ts +53 -0
- package/types/qchat/attachment.d.ts +40 -0
- package/types/qchat/channel.d.ts +133 -0
- package/types/qchat/channel_category.d.ts +82 -0
- package/types/qchat/instance.d.ts +46 -0
- package/types/qchat/message.d.ts +110 -0
- package/types/qchat/role.d.ts +161 -0
- package/types/qchat/server.d.ts +168 -0
- package/types/qchat/system_notification.d.ts +39 -0
- package/types/qchat_def/attachment_def.d.ts +71 -0
- package/types/qchat_def/channel_def.d.ts +624 -0
- package/types/qchat_def/instance_def.d.ts +212 -0
- package/types/qchat_def/message_def.d.ts +477 -0
- package/types/qchat_def/public_def.d.ts +774 -0
- package/types/qchat_def/role_def.d.ts +430 -0
- package/types/qchat_def/server_def.d.ts +451 -0
- package/types/qchat_def/system_notification_def.d.ts +170 -0
- package/js/api/client.js.map +0 -1
- package/js/api/data_sync.js.map +0 -1
- package/js/api/friend.js.map +0 -1
- package/js/api/global.js.map +0 -1
- package/js/api/msglog.js.map +0 -1
- package/js/api/nos.js.map +0 -1
- package/js/api/online_session.js.map +0 -1
- package/js/api/pass_through_proxy.js.map +0 -1
- package/js/api/plugin.js.map +0 -1
- package/js/api/session.js.map +0 -1
- package/js/api/subscribe_event.js.map +0 -1
- package/js/api/super_team.js.map +0 -1
- package/js/api/sysmsg.js.map +0 -1
- package/js/api/talk.js.map +0 -1
- package/js/api/talkex.js +0 -115
- package/js/api/talkex.js.map +0 -1
- package/js/api/team.js.map +0 -1
- package/js/api/tool.js.map +0 -1
- package/js/api/user.js.map +0 -1
- package/js/def/client_def.js.map +0 -1
- package/js/def/data_sync_def.js.map +0 -1
- package/js/def/doc_trans_def.js.map +0 -1
- package/js/def/friend_def.js.map +0 -1
- package/js/def/global_def.js.map +0 -1
- package/js/def/msglog_def.js.map +0 -1
- package/js/def/nos_def.js.map +0 -1
- package/js/def/online_session_def.js.map +0 -1
- package/js/def/pass_through_proxy_def.js.map +0 -1
- package/js/def/session_def.js.map +0 -1
- package/js/def/subscribe_event_def.js.map +0 -1
- package/js/def/super_team_def.js.map +0 -1
- package/js/def/sysmsg_def.js.map +0 -1
- package/js/def/team_def.js.map +0 -1
- package/js/def/tool_def.js.map +0 -1
- package/js/def/user_def.js.map +0 -1
- package/js/nim.js +0 -72
- package/js/nim.js.map +0 -1
- package/types/api/data_sync.d.ts +0 -13
- package/types/def/nos_def.d.ts +0 -71
- package/types/def/subscribe_event_def.d.ts +0 -82
- package/types/def/talkex_def.d.ts +0 -111
- package/types/nim.d.ts +0 -36
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
export declare enum NIMQChatChannelType {
|
|
2
|
+
/** 普通文本频道 */
|
|
3
|
+
kNIMQChatChannelTypeText = 0,
|
|
4
|
+
/** RTC频道 */
|
|
5
|
+
kNIMQChatChannelTypeRTC = 1,
|
|
6
|
+
/** 自定义频道类型 */
|
|
7
|
+
kNIMQChatChannelTypeCustom = 100
|
|
8
|
+
}
|
|
9
|
+
export declare enum NIMQChatChannelMemberIdentifyType {
|
|
10
|
+
kNIMQChatWhite = 1,
|
|
11
|
+
kNIMQChatBlack = 2
|
|
12
|
+
}
|
|
13
|
+
export declare enum NIMQChatChannelMemberIdentifyOpeType {
|
|
14
|
+
kNIMQChatChannelMemberIdentifyOpeTypeAdd = 1,
|
|
15
|
+
kNIMQChatChannelMemberIdentifyOpeTypeRemove = 2
|
|
16
|
+
}
|
|
17
|
+
export declare enum NIMQChatChannelWhiteBlackType {
|
|
18
|
+
kNIMQChatChannelWhite = 1,
|
|
19
|
+
kNIMQChatChannelBlack = 2
|
|
20
|
+
}
|
|
21
|
+
export declare enum NIMQChatChannelWhiteBlackOpeType {
|
|
22
|
+
kNIMQChatChannelWhiteBlackOpeTypeAdd = 1,
|
|
23
|
+
kNIMQChatChannelWhiteBlackOpeTypeRemove = 2
|
|
24
|
+
}
|
|
25
|
+
export declare enum NIMQChatChannelViewMode {
|
|
26
|
+
/** 公开模式 */
|
|
27
|
+
kNIMQChatChannelViewModePublic = 0,
|
|
28
|
+
/** 私密模式 */
|
|
29
|
+
kNIMQChatChannelViewModePrivate = 1
|
|
30
|
+
}
|
|
31
|
+
export declare enum NIMQChatChannelSyncMode {
|
|
32
|
+
/** 不与频道分组同步 */
|
|
33
|
+
kNIMQChatChannelSyncModeNoSync = 0,
|
|
34
|
+
/** 与频道分组同步 */
|
|
35
|
+
kNIMQChatChannelSyncModeSync = 1
|
|
36
|
+
}
|
|
37
|
+
export declare enum NIMQChatSubscribeOpeType {
|
|
38
|
+
/** 订阅 */
|
|
39
|
+
kNIMQChatSubscribeOpeTypeSubscribe = 1,
|
|
40
|
+
/** 取消订阅 */
|
|
41
|
+
kNIMQChatSubscribeOpeTypeUnsubscribe = 2
|
|
42
|
+
}
|
|
43
|
+
export declare enum NIMQChatSubscribeType {
|
|
44
|
+
/** 未知 */
|
|
45
|
+
kNIMQChatSubscribeTypeUnknow = 0,
|
|
46
|
+
/** 订阅某个channel的【消息】/【通知】 */
|
|
47
|
+
kNIMQChatSubscribeTypeMsg = 1,
|
|
48
|
+
/** 订阅某个channel的【消息未读数】/【通知】 */
|
|
49
|
+
kNIMQChatSubscribeTypeUnreadCount = 2,
|
|
50
|
+
/** 订阅某个channel的【消息未读状态】/【通知】 */
|
|
51
|
+
kNIMQChatSubscribeTypeUnreadStatus = 3,
|
|
52
|
+
/** 订阅某个server的【通知】 */
|
|
53
|
+
kNIMQChatSubscribeTypeServerNotification = 4,
|
|
54
|
+
/** 订阅某个channel的【正在输入事件】 */
|
|
55
|
+
kNIMQChatSubscribeTypeTypingEvent = 5
|
|
56
|
+
}
|
|
57
|
+
export declare enum NIMQChatDownloadResType {
|
|
58
|
+
/** 原文件 */
|
|
59
|
+
NIMQChatDownloadResTypeSource = 1,
|
|
60
|
+
/** 图片缩略图 */
|
|
61
|
+
NIMQChatDownloadResTypeImageThumnail = 2,
|
|
62
|
+
/** 视频封面 */
|
|
63
|
+
NIMQChatDownloadResTypeVideoCover = 3
|
|
64
|
+
}
|
|
65
|
+
export declare enum NIMQChatBanMemberOpeType {
|
|
66
|
+
/** 封禁 */
|
|
67
|
+
kNIMQChatBanMemberOpeTypeBan = 1,
|
|
68
|
+
/** 解除封禁 */
|
|
69
|
+
kNIMQChatBanMemberOpeTypeUnban = 2
|
|
70
|
+
}
|
|
71
|
+
export declare enum NIMQChatSearchOrder {
|
|
72
|
+
/** 按时间正序 */
|
|
73
|
+
kNIMQChatSearchOrderAsc = 1,
|
|
74
|
+
/** 按时间倒序 */
|
|
75
|
+
kNIMQChatSearchOrderDesc = 2
|
|
76
|
+
}
|
|
77
|
+
export declare enum NIMQChatServerSearchSort {
|
|
78
|
+
/** 自定义权重排序(详见服务器端文档) */
|
|
79
|
+
kNIMQChatServerSearchSortCustom = 0,
|
|
80
|
+
/** 创建时间排序 */
|
|
81
|
+
kNIMQChatServerSearchSortCreateTime = 1,
|
|
82
|
+
/** 服务器总人数排序 */
|
|
83
|
+
kNIMQChatServerSearchSortMemberCOunt = 2
|
|
84
|
+
}
|
|
85
|
+
export declare enum NIMQChatChannelSearchSort {
|
|
86
|
+
/** 自定义权重排序(详见服务器端文档) */
|
|
87
|
+
kNIMQChatChannelSearchSortCustom = 0,
|
|
88
|
+
/** 创建时间排序 */
|
|
89
|
+
kNIMQChatChannelSearchSortCreateTime = 1
|
|
90
|
+
}
|
|
91
|
+
export declare enum NIMResCode {
|
|
92
|
+
/** 错误 */
|
|
93
|
+
kNIMResError = 0,
|
|
94
|
+
/** 没有错误,一切正常 */
|
|
95
|
+
kNIMResSuccess = 200,
|
|
96
|
+
/** 客户端版本不正确 */
|
|
97
|
+
kNIMResVersionError = 201,
|
|
98
|
+
/** 用户名或密码错误 */
|
|
99
|
+
kNIMResUidPassError = 302,
|
|
100
|
+
/** 禁止操作 */
|
|
101
|
+
kNIMResForbidden = 403,
|
|
102
|
+
/** 请求的目标(用户或对象)不存在 */
|
|
103
|
+
kNIMResNotExist = 404,
|
|
104
|
+
/** 数据自上次查询以来未发生变化(用于增量更新) */
|
|
105
|
+
kNIMResNoModify = 406,
|
|
106
|
+
/** 请求过程超时 */
|
|
107
|
+
kNIMResTimeoutError = 408,
|
|
108
|
+
/** 参数错误 */
|
|
109
|
+
kNIMResParameterError = 414,
|
|
110
|
+
/** 网络连接出现错误 */
|
|
111
|
+
kNIMResConnectionError = 415,
|
|
112
|
+
/** 操作太过频繁 */
|
|
113
|
+
kNIMResFrequently = 416,
|
|
114
|
+
/** 对象已经存在/重复操作 */
|
|
115
|
+
kNIMResExist = 417,
|
|
116
|
+
/** 超限 */
|
|
117
|
+
kNIMResOverrun = 419,
|
|
118
|
+
/** 帐号被禁用 */
|
|
119
|
+
kNIMResAccountBlock = 422,
|
|
120
|
+
/** 未知错误,或者不方便告诉你 */
|
|
121
|
+
kNIMResUnknownError = 500,
|
|
122
|
+
/** 服务器数据错误 */
|
|
123
|
+
kNIMResServerDataError = 501,
|
|
124
|
+
/** 服务器太忙 */
|
|
125
|
+
kNIMResTooBuzy = 503,
|
|
126
|
+
/** 超过配置有效期 */
|
|
127
|
+
kNIMResExceedLimit = 508,
|
|
128
|
+
/** 协议无效, 不允许访问的协议 */
|
|
129
|
+
kNIMResInvalid = 509,
|
|
130
|
+
/** 已达到人数限制 */
|
|
131
|
+
kNIMResTeamECountLimit = 801,
|
|
132
|
+
/** 没有权限 */
|
|
133
|
+
kNIMResTeamENAccess = 802,
|
|
134
|
+
/** 群不存在 */
|
|
135
|
+
kNIMResTeamENotExist = 803,
|
|
136
|
+
/** 用户不在兴趣组里面 */
|
|
137
|
+
kNIMResTeamEMemberNotExist = 804,
|
|
138
|
+
/** 群类型不对 */
|
|
139
|
+
kNIMResTeamErrType = 805,
|
|
140
|
+
/** 创建群数量限制 */
|
|
141
|
+
kNIMResTeamLimit = 806,
|
|
142
|
+
/** 群成员状态不对 */
|
|
143
|
+
kNIMResTeamUserStatusErr = 807,
|
|
144
|
+
/** 申请成功 */
|
|
145
|
+
kNIMResTeamApplySuccess = 808,
|
|
146
|
+
/** 已经在群里 */
|
|
147
|
+
kNIMResTeamAlreadyIn = 809,
|
|
148
|
+
/** 邀请成功 */
|
|
149
|
+
kNIMResTeamInviteSuccess = 810,
|
|
150
|
+
/** 强推列表账号数量超限 */
|
|
151
|
+
kNIMResForcePushCountLimit = 811,
|
|
152
|
+
/** 操作成功,但部分成员的群数量超限 */
|
|
153
|
+
kNIMResTeamMemberLimit = 813,
|
|
154
|
+
/** 协议已失效 */
|
|
155
|
+
kNIMResInvalidProtocol = 997,
|
|
156
|
+
/** 解包错误 */
|
|
157
|
+
kNIMResEUnpacket = 998,
|
|
158
|
+
/** 打包错误 */
|
|
159
|
+
kNIMResEPacket = 999,
|
|
160
|
+
/** 被接收方加入黑名单 SDK版本大于2.5.0支持 */
|
|
161
|
+
kNIMResInBlack = 7101,
|
|
162
|
+
/** 值大于该错误号的都是客户端自定义的错误号。不能随意更改其值! */
|
|
163
|
+
kNIMLocalRes = 10000,
|
|
164
|
+
/** 客户端本地错误号,需要重新向IM服务器获取进入聊天室权限 */
|
|
165
|
+
kNIMResRoomLocalNeedRequestAgain = 10001,
|
|
166
|
+
/** 客户端本地错误号,本地网络错误,需要检查本地网络 */
|
|
167
|
+
kNIMLocalResNetworkError = 10010,
|
|
168
|
+
/** (发送文件消息或者stop_upload_ex)HTTP upload to NOS上传暂停 */
|
|
169
|
+
kNIMLocalResMsgNosUploadCancel = 10200,
|
|
170
|
+
/** (收到文件消息或者stop_download_ex)HTTP download from NOS下载暂停 */
|
|
171
|
+
kNIMLocalResMsgNosDownloadCancel = 10206,
|
|
172
|
+
/** 收到文件消息,NOS下载完成后本地文件检查错误,一般为下载的文件大小与文件信息不符 */
|
|
173
|
+
kNIMLocalResMsgNosDownloadCheckError = 10207,
|
|
174
|
+
/** 禁止访问 */
|
|
175
|
+
kNIMLocalResMsgAccessDenied = 10403,
|
|
176
|
+
/** 本地资源不存在 */
|
|
177
|
+
kNIMLocalResMsgFileNotExist = 10404,
|
|
178
|
+
/** 本地错误码,参数错误,(收到消息,资源下载地址无效,无法下载) */
|
|
179
|
+
kNIMLocalResParameterError = 10414,
|
|
180
|
+
/** 本地错误码,操作太过频繁 */
|
|
181
|
+
kNIMLocalResFrequently = 10416,
|
|
182
|
+
/** 本地错误码,对象已经存在/重复操作,(收到消息,本地资源已存在,不需要重复下载) */
|
|
183
|
+
kNIMLocalResExist = 10417,
|
|
184
|
+
/** 发送消息,上传NOS失败 */
|
|
185
|
+
kNIMLocalResMsgSendNosError = 10502,
|
|
186
|
+
/** 本地错误码,超过配置有效期或者所需参数不存在 */
|
|
187
|
+
kNIMLocalResExceedLimit = 10508,
|
|
188
|
+
/** 导入消息历史时验证身份和加密密钥不通过 */
|
|
189
|
+
kNIMLocalResCheckMsgDBFailed = 10600,
|
|
190
|
+
/** 导入消息历史时写记录失败 */
|
|
191
|
+
kNIMLocalResImportMsgDBFailed = 10601,
|
|
192
|
+
/** rts会话 未知错误 */
|
|
193
|
+
kNIMLocalResRtsError = 11100,
|
|
194
|
+
/** rts会话 id不存在 */
|
|
195
|
+
kNIMLocalResRtsIdNotExist = 11101,
|
|
196
|
+
/** rts会话 音视频已存在 */
|
|
197
|
+
kNIMLocalResRtsVChatExist = 11417,
|
|
198
|
+
/** rts会话 通道状态不正确 */
|
|
199
|
+
kNIMLocalResRtsStatusError = 11501,
|
|
200
|
+
/** rts会话 通道不存在 */
|
|
201
|
+
kNIMLocalResRtsChannelNotExist = 11510,
|
|
202
|
+
/** 主链接错误 */
|
|
203
|
+
kNIMResRoomLinkError = 13001,
|
|
204
|
+
/** 聊天室状态异常 */
|
|
205
|
+
kNIMResRoomError = 13002,
|
|
206
|
+
/** 黑名单用户禁止进入 */
|
|
207
|
+
kNIMResRoomBlackBeOut = 13003,
|
|
208
|
+
/** 被禁言 */
|
|
209
|
+
kNIMResRoomBeMuted = 13004,
|
|
210
|
+
/** 聊天室处于整体禁言状态,只有管理员能发言 */
|
|
211
|
+
kNIMResRoomAllMuted = 13006,
|
|
212
|
+
/** 还未初始化或初始化未正常完成 */
|
|
213
|
+
kNIMLocalResAPIErrorInitUndone = 20000,
|
|
214
|
+
/** 还未登陆或登录未完成 */
|
|
215
|
+
kNIMLocalResAPIErrorLoginUndone = 20001,
|
|
216
|
+
/** 已经登录 */
|
|
217
|
+
kNIMLocalResAPIErrorLogined = 20002,
|
|
218
|
+
/** SDK版本不对,可能会引发其他问题 */
|
|
219
|
+
kNIMLocalResAPIErrorVersionError = 20003,
|
|
220
|
+
/** 聊天室模式混用错误,不支持同时以登陆状态和匿名状态登陆聊天室 */
|
|
221
|
+
kNIMLocalResAPIErrorChatroomMixError = 20004,
|
|
222
|
+
/** 连接地址用完了 */
|
|
223
|
+
kNIMLocalResAPIErrorRunOutOfLinkAddress = 20005
|
|
224
|
+
}
|
|
225
|
+
export declare enum NIMQChatPermissions {
|
|
226
|
+
/** 管理服务器,Server */
|
|
227
|
+
kPermissionManageServer = 1,
|
|
228
|
+
/** 管理频道,Server/Channel */
|
|
229
|
+
kPermissionManageChannel = 2,
|
|
230
|
+
/** 管理角色,Server/Channel */
|
|
231
|
+
kPermissionManageRole = 3,
|
|
232
|
+
/** 发送消息,Server/Channel */
|
|
233
|
+
kPermissionSendMessage = 4,
|
|
234
|
+
/** 修改自己信息,Server */
|
|
235
|
+
kPermissionUpdateMyInfo = 5,
|
|
236
|
+
/** 邀请他人,Server */
|
|
237
|
+
kPermissionIviteMember = 6,
|
|
238
|
+
/** 踢除他人,Server */
|
|
239
|
+
kPermissionKickMember = 7,
|
|
240
|
+
/** 修改他人信息,Server */
|
|
241
|
+
kPermissionUpdateMemberInfo = 8,
|
|
242
|
+
/** 撤回他人信息,Server/Channel */
|
|
243
|
+
kPermissionRevokeMemberMessage = 9,
|
|
244
|
+
/** 删除他人消息,Server/Channel */
|
|
245
|
+
kPermissionDeleteMemberMessage = 10,
|
|
246
|
+
/** @ 他人,Server/Channel */
|
|
247
|
+
kPermissionAtMember = 11,
|
|
248
|
+
/** @ 所有人,Server/Channel */
|
|
249
|
+
kPermissionAtAll = 12,
|
|
250
|
+
/** 管理白/黑名单,Server/Channel */
|
|
251
|
+
kPermissionManageBlackWhiteList = 13,
|
|
252
|
+
/** 封禁他人,Server */
|
|
253
|
+
kPermissionBanServerMember = 14,
|
|
254
|
+
/** RTC频道: 连接的权限,Server/Channel */
|
|
255
|
+
kPermissionRTCConnect = 15,
|
|
256
|
+
/** RTC频道: 断开他人连接的权限,Server/Channel */
|
|
257
|
+
kPermissionRTCDisconnectOther = 16,
|
|
258
|
+
/** RTC频道: 开启自己麦克风的权限,Server/Channel */
|
|
259
|
+
kPermissionRTCOpenMic = 17,
|
|
260
|
+
/** RTC频道: 开启自己摄像头的权限,Server/Channel */
|
|
261
|
+
kPermissionRTCOpenCamera = 18,
|
|
262
|
+
/** RTC频道: 禁用/解禁他人麦克风的权限,Server/Channel */
|
|
263
|
+
kPermissionRTCOpenMuteOthersMic = 19,
|
|
264
|
+
/** RTC频道: 禁用/解禁他人摄像头的权限,Server/Channel */
|
|
265
|
+
kPermissionRTCOpenMuteOthersCamera = 20,
|
|
266
|
+
/** RTC频道: 禁用/解禁全员麦克风的权限,Server/Channel */
|
|
267
|
+
kPermissionRTCOpenMuteAllMic = 21,
|
|
268
|
+
/** RTC频道: 禁用/解禁全员摄像头的权限,Server/Channel */
|
|
269
|
+
kPermissionRTCOpenMuteAllCamera = 22,
|
|
270
|
+
/** RTC频道: 打开自己共享屏幕的权限,Server/Channel */
|
|
271
|
+
kPermissionRTCOpenScreenShare = 23,
|
|
272
|
+
/** RTC频道: 关闭他人共享屏幕的权限,Server/Channel */
|
|
273
|
+
kPermissionRTCCloseOthersScreenShare = 24,
|
|
274
|
+
/** 服务器申请处理权限,Server */
|
|
275
|
+
kPermissionServerHandleApply = 25,
|
|
276
|
+
/** 申请邀请历史查看权限,有这个权限才可以查询server级别的申请/邀请记录,Server */
|
|
277
|
+
kPermissionGetServerInviteApplyRecords = 26
|
|
278
|
+
}
|
|
279
|
+
export declare enum NIMQChatRoleType {
|
|
280
|
+
/** 未知 */
|
|
281
|
+
kRoleTypeUnkonwn = 0,
|
|
282
|
+
/** 默认 Everyone 身份组 */
|
|
283
|
+
kRoleTypeEveryone = 1,
|
|
284
|
+
/** 自定义身份组 */
|
|
285
|
+
kRoleTypeCustom = 2
|
|
286
|
+
}
|
|
287
|
+
export declare enum NIMQChatPermissionsOption {
|
|
288
|
+
/** 拒绝 */
|
|
289
|
+
kPermissionSwitchDeny = -1,
|
|
290
|
+
/** 继承 */
|
|
291
|
+
kPermissionSwitchExtend = 0,
|
|
292
|
+
/** 允许 */
|
|
293
|
+
kPermissionSwitchAllow = 1
|
|
294
|
+
}
|
|
295
|
+
export declare enum NIMQChatLoginAuthType {
|
|
296
|
+
/** 默认login token鉴权方式 */
|
|
297
|
+
kNIMQChatLoginAuthTypeDefault = 0,
|
|
298
|
+
/** app secret鉴权方式 */
|
|
299
|
+
kNIMQChatLoginAuthTypeAppSecret = 1,
|
|
300
|
+
/** 基于第三方回调的token鉴权方式, 圈组暂不支持 */
|
|
301
|
+
kNIMQChatLoginAuthTypeAppThirdParty = 2
|
|
302
|
+
}
|
|
303
|
+
export declare enum NIMQChatClientType {
|
|
304
|
+
kQChatClientTypeUnknown = 0,
|
|
305
|
+
/** Android */
|
|
306
|
+
kQChatClientTypeAOS = 1,
|
|
307
|
+
/** iOS */
|
|
308
|
+
kQChatClientTypeIOS = 2,
|
|
309
|
+
/** Desktop PC (Windows/macOS/Linux) */
|
|
310
|
+
kQChatClientTypePC = 4,
|
|
311
|
+
/** WP */
|
|
312
|
+
kQChatClientTypeWP = 8,
|
|
313
|
+
/** Web */
|
|
314
|
+
kQChatClientTypeWeb = 16,
|
|
315
|
+
/** macOS */
|
|
316
|
+
kQChatClientTypeMacOS = 64
|
|
317
|
+
}
|
|
318
|
+
export declare enum NIMQChatLoginStep {
|
|
319
|
+
/** 连接 Link 地址阶段 */
|
|
320
|
+
kLoginStepLink = 0,
|
|
321
|
+
kLoginStepAuth = 1
|
|
322
|
+
}
|
|
323
|
+
export declare enum NIMQChatLoginStatus {
|
|
324
|
+
kLoginStatusUnlogin = 0,
|
|
325
|
+
kLoginStatusLogging = 1,
|
|
326
|
+
kLoginStatusLogin = 2,
|
|
327
|
+
kLoginStatusKicked = 3
|
|
328
|
+
}
|
|
329
|
+
export declare enum NIMQChatExchangeKeyEncryptionAlgorithm {
|
|
330
|
+
/** RSA 加密 */
|
|
331
|
+
kNIMQChatEncryptionAlgorithmRSA = 1,
|
|
332
|
+
/** SM2 加密 */
|
|
333
|
+
kNIMQChatEncryptionAlgorithmSM2 = 2
|
|
334
|
+
}
|
|
335
|
+
export declare enum NIMQChatCommEncryptionAlgorithm {
|
|
336
|
+
kNIMQChatCommEncryptionAlgorithmBase = 1,
|
|
337
|
+
/** RC4 加密 */
|
|
338
|
+
kNIMQChatCommEncryptionAlgorithmRC4 = 1,
|
|
339
|
+
/** AES128 加密 */
|
|
340
|
+
kNIMQChatCommEncryptionAlgorithmAES128 = 2,
|
|
341
|
+
kNIMQChatCommEncryptionAlgorithmSM4 = 4
|
|
342
|
+
}
|
|
343
|
+
export declare enum NIMQChatHandShakeType {
|
|
344
|
+
/** 支持配置多种对称与非对称加密算法 */
|
|
345
|
+
kNIMQChatHandShakeTypeMulti = 0,
|
|
346
|
+
kNIMQChatHandShakeTypeRASRC4 = 1
|
|
347
|
+
}
|
|
348
|
+
export declare enum NIMQChatFCSAuthenticationType {
|
|
349
|
+
kNIMQChatFCSAuthenticationTypeRefer = 1,
|
|
350
|
+
kNIMQChatFCSAuthenticationTypeToken = 2,
|
|
351
|
+
kNIMQChatFCSAuthenticationTypeURLToken = 3,
|
|
352
|
+
kNIMQChatFCSAuthenticationTypeCustom = 4
|
|
353
|
+
}
|
|
354
|
+
export declare enum NIMQChatMessageStatus {
|
|
355
|
+
/** 普通消息状态 */
|
|
356
|
+
kMsgStatusNormal = 0,
|
|
357
|
+
/** 被撤回的消息 */
|
|
358
|
+
kMsgStatusRevoke = 1,
|
|
359
|
+
/** 被删除的消息 */
|
|
360
|
+
kMsgStatusDelete = 2,
|
|
361
|
+
kMsgStatusUser = 10000
|
|
362
|
+
}
|
|
363
|
+
export declare enum NIMQChatMessageNotifyReason {
|
|
364
|
+
/** 未知原因 */
|
|
365
|
+
kMessageNotifyReasonUnkonw = 0,
|
|
366
|
+
/** 本消息发给了channel里的所有人 */
|
|
367
|
+
kMessageNotifyReasonNotifyAll = 1,
|
|
368
|
+
/** 本消息发给了channel里的订阅者 */
|
|
369
|
+
kMessageNotifyReasonNotifySubscribe = 2
|
|
370
|
+
}
|
|
371
|
+
export declare enum NIMQChatMsgType {
|
|
372
|
+
/** 文本类型消息 */
|
|
373
|
+
kNIMQChatMsgTypeText = 0,
|
|
374
|
+
/** 图片类型消息 */
|
|
375
|
+
kNIMQChatMsgTypeImage = 1,
|
|
376
|
+
/** 声音类型消息 */
|
|
377
|
+
kNIMQChatMsgTypeAudio = 2,
|
|
378
|
+
/** 视频类型消息 */
|
|
379
|
+
kNIMQChatMsgTypeVideo = 3,
|
|
380
|
+
/** 位置类型消息 */
|
|
381
|
+
kNIMQChatMsgTypeLocation = 4,
|
|
382
|
+
/** 通知类型消息 */
|
|
383
|
+
kNIMQChatMsgTypeNotification = 5,
|
|
384
|
+
/** 文件类型消息 */
|
|
385
|
+
kNIMQChatMsgTypeFile = 6,
|
|
386
|
+
/** 提醒类型消息 */
|
|
387
|
+
kNIMQChatMsgTypeTips = 10,
|
|
388
|
+
/** 自定义消息 */
|
|
389
|
+
kNIMQChatMsgTypeCustom = 100,
|
|
390
|
+
/** 未知类型消息,作为默认值 */
|
|
391
|
+
kNIMQChatMsgTypeUnknown = 1000
|
|
392
|
+
}
|
|
393
|
+
export declare enum NIMQChatQuickCommentOperation {
|
|
394
|
+
/** 添加 */
|
|
395
|
+
kNIMQChatQuickCommentAdd = 1,
|
|
396
|
+
/** 删除 */
|
|
397
|
+
kNIMQChatQuickCommentRemove = 2
|
|
398
|
+
}
|
|
399
|
+
export declare enum NIMQChatGetReferMessageType {
|
|
400
|
+
/** 获取被回复的消息 */
|
|
401
|
+
kNIMQChatGetReferMessageTypeReply = 1,
|
|
402
|
+
/** 获取 thread 根消息 */
|
|
403
|
+
kNIMQChatGetReferMessageTypeThreadRoot = 2,
|
|
404
|
+
/** 获取以上两个条件的消息 */
|
|
405
|
+
kNIMQChatGetReferMessageTypeAll = 3
|
|
406
|
+
}
|
|
407
|
+
export declare enum NIMQChatServerInviteMode {
|
|
408
|
+
/** 需要验证 */
|
|
409
|
+
kNIMQChatServerInviteModeNeedConfirm = 0,
|
|
410
|
+
kNIMQChatServerInviteModeNormal = 1
|
|
411
|
+
}
|
|
412
|
+
export declare enum NIMQChatServerApplyMode {
|
|
413
|
+
/** 不需要验证 */
|
|
414
|
+
kNIMQChatServerApplyModeNormal = 0,
|
|
415
|
+
/** 需要验证 */
|
|
416
|
+
kNIMQChatServerApplyModeNeedConfirm = 1
|
|
417
|
+
}
|
|
418
|
+
export declare enum NIMQChatServerInviteFailReason {
|
|
419
|
+
/** 服务器人数超过限制 */
|
|
420
|
+
kNIMQChatServerInviteFailReasonExceedLimit = 1,
|
|
421
|
+
/** 被封禁 */
|
|
422
|
+
kNIMQChatServerInviteFailReasonBanned = 2
|
|
423
|
+
}
|
|
424
|
+
export declare enum NIMQChatServerSearchType {
|
|
425
|
+
/** 广场搜索 */
|
|
426
|
+
kNIMQChatServerSearchTypeSquare = 1,
|
|
427
|
+
/** 个人服务器搜索 */
|
|
428
|
+
kNIMQChatServerSearchTypePersonal = 2
|
|
429
|
+
}
|
|
430
|
+
export declare enum NIMQChatInviteApplyRecordType {
|
|
431
|
+
/** 申请 */
|
|
432
|
+
kNIMQChatInviteApplyRecordTypeApply = 1,
|
|
433
|
+
/** 邀请 */
|
|
434
|
+
kNIMQChatInviteApplyRecordTypeInvite = 2,
|
|
435
|
+
/** 被邀请 */
|
|
436
|
+
kNIMQChatInviteApplyRecordTypeBeInvited = 3,
|
|
437
|
+
/** 生成邀请码 */
|
|
438
|
+
kNIMQChatInviteApplyRecordTypeGenerateInviteCode = 4,
|
|
439
|
+
/** 通过邀请码加入 */
|
|
440
|
+
kNIMQChatInviteApplyRecordTypeJoinByInviteCode = 5
|
|
441
|
+
}
|
|
442
|
+
export declare enum NIMQChatInviteApplyRecordStatus {
|
|
443
|
+
/** 初始状态 */
|
|
444
|
+
kNIMQChatInviteApplyRecordStatusInitial = 0,
|
|
445
|
+
/** 同意 */
|
|
446
|
+
kNIMQChatInviteApplyRecordStatusApprove = 1,
|
|
447
|
+
/** 拒绝 */
|
|
448
|
+
kNIMQChatInviteApplyRecordStatusReject = 2,
|
|
449
|
+
/** 通过其他请求同意 */
|
|
450
|
+
kNIMQChatInviteApplyRecordStatusApproveByOtherRequest = 3,
|
|
451
|
+
/** 通过其他请求拒绝 */
|
|
452
|
+
kNIMQChatInviteApplyRecordStatusRejectByOtherRequest = 4,
|
|
453
|
+
/** 邀请/申请时自动加入 */
|
|
454
|
+
kNIMQChatInviteApplyRecordStatusAutoJoin = 5,
|
|
455
|
+
/** 过期 */
|
|
456
|
+
kNIMQChatInviteApplyRecordStatusExpired = 6
|
|
457
|
+
}
|
|
458
|
+
export declare enum NIMQChatSystemNotificationType {
|
|
459
|
+
/** 未知类型系统通知 */
|
|
460
|
+
kNIMQChatSystemNotificationTypeUnkonwn = 0,
|
|
461
|
+
/** 服务器成员邀请 msg_data: NULL */
|
|
462
|
+
kNIMQChatSystemNotificationTypeMemberInvite = 1,
|
|
463
|
+
/** 服务器成员邀请被拒绝 msg_data: NULL */
|
|
464
|
+
kNIMQChatSystemNotificationTypeMemberInviteReject = 2,
|
|
465
|
+
/** 服务器成员申请 msg_data: NULL */
|
|
466
|
+
kNIMQChatSystemNotificationTypeMemberApply = 3,
|
|
467
|
+
/** 服务器成员申请被拒绝 msg_data: NULL */
|
|
468
|
+
kNIMQChatSystemNotificationTypeMemberApplyReject = 4,
|
|
469
|
+
/** 服务器创建 msg_data: NIMQChatSystemNotificationDataServerCreate */
|
|
470
|
+
kNIMQChatSystemNotificationTypeServerCreate = 5,
|
|
471
|
+
/** 服务器解散 msg_data: NULL */
|
|
472
|
+
kNIMQChatSystemNotificationTypeServerRemove = 6,
|
|
473
|
+
/** 服务器更新 msg_data: NIMQChatSystemNotificationDataServerUpdate */
|
|
474
|
+
kNIMQChatSystemNotificationTypeServerUpdate = 7,
|
|
475
|
+
/** 服务器成员邀请完成 msg_data: NIMQChatSystemNotificationDataMemberInviteDone */
|
|
476
|
+
kNIMQChatSystemNotificationTypeMemberInviteDone = 8,
|
|
477
|
+
/** 服务器成员邀请被接受 msg_data: NIMQChatSystemNotificationDataMemberInviteAccept */
|
|
478
|
+
kNIMQChatSystemNotificationTypeMemberInviteAccept = 9,
|
|
479
|
+
/** 服务器成员申请完成 msg_data: NIMQChatSystemNotificationDataMemberApplyDone */
|
|
480
|
+
kNIMQChatSystemNotificationTypeMemberApplyDone = 10,
|
|
481
|
+
/** 服务器成员申请被接受 msg_data: NIMQChatSystemNotificationDataMemberApplyAccept */
|
|
482
|
+
kNIMQChatSystemNotificationTypeMemberApplyAccept = 11,
|
|
483
|
+
/** 服务器成员被踢出 msg_data: NIMQChatSystemNotificationDataMemberKick */
|
|
484
|
+
kNIMQChatSystemNotificationTypeMemberKick = 12,
|
|
485
|
+
/** 服务器成员离开 msg_data: NIMQChatSystemNotificationDataMemberLeave */
|
|
486
|
+
kNIMQChatSystemNotificationTypeMemberLeave = 13,
|
|
487
|
+
/** 服务器成员更新 msg_data: NIMQChatSystemNotificationDataMemberUpdate */
|
|
488
|
+
kNIMQChatSystemNotificationTypeMemberUpdate = 14,
|
|
489
|
+
/** 频道创建 msg_data: NIMQChatSystemNotificationDataChannelCreate */
|
|
490
|
+
kNIMQChatSystemNotificationTypeChannelCreate = 15,
|
|
491
|
+
/** 频道解散 msg_data: NULL */
|
|
492
|
+
kNIMQChatSystemNotificationTypeChannelDelete = 16,
|
|
493
|
+
/** 频道更新 msg_data: NIMQChatSystemNotificationDataChannelUpdate */
|
|
494
|
+
kNIMQChatSystemNotificationTypeChannelUpdate = 17,
|
|
495
|
+
/** 频道白/黑名单身份组更新 msg_data: NIMQChatSystemNotificationDataWhiteBlackRoleUpdate */
|
|
496
|
+
kNIMQChatSystemNotificationTypeWhiteBlackRoleUpdate = 18,
|
|
497
|
+
/** 频道白/黑名单成员更新 msg_data: NIMQChatSystemNotificationDataWhiteBlackMembersUpdate */
|
|
498
|
+
kNIMQChatSystemNotificationTypeWhiteBlackMembersUpdate = 19,
|
|
499
|
+
/** 添加或删除快捷评论通知 msg_data: NIMQChatSystemNotificationQuickCommentChanged */
|
|
500
|
+
kNIMQChatSystemNotificationTypeQuickCommentChanged = 20,
|
|
501
|
+
/** 创建频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryCreate */
|
|
502
|
+
kNIMQChatSystemNotificationTypeChannelCategoryCreate = 21,
|
|
503
|
+
/** 删除频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryRemove */
|
|
504
|
+
kNIMQChatSystemNotificationTypeChannelCategoryRemove = 22,
|
|
505
|
+
/** 更新频道分组 msg_data: NIMQChatSystemNotificationDataChannelCategoryUpdate */
|
|
506
|
+
kNIMQChatSystemNotificationTypeChannelCategoryUpdate = 23,
|
|
507
|
+
/** 频道分组白/黑名单身份组更新 msg_data: NIMQChatSystemNotificationDataChannelCategoryWhiteBlackRoleUpdate */
|
|
508
|
+
kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackRoleUpdate = 24,
|
|
509
|
+
/** 频道分组白/黑名单成员更新 msg_data: NIMQChatSystemNotificationDataChannelCategoryWhiteBlackMembersUpdate */
|
|
510
|
+
kNIMQChatSystemNotificationTypeChannelCategoryWhiteBlackMembersUpdate = 25,
|
|
511
|
+
/** 服务器身份组加入成员 msg_data: NIMQChatSystemNotificationDataServerRoleAddMember */
|
|
512
|
+
kNIMQChatSystemNotificationTypeServerRoleAddMember = 26,
|
|
513
|
+
/** 服务器身份组移出成员 msg_data: NIMQChatSystemNotificationDataServerRoleRemoveMember */
|
|
514
|
+
kNIMQChatSystemNotificationTypeServerRoleRemoveMember = 27,
|
|
515
|
+
/** 服务器身份组权限变更 msg_data: NIMQChatSystemNotificationDataServerRolePermissionChange */
|
|
516
|
+
kNIMQChatSystemNotificationTypeServerRolePermissionChange = 28,
|
|
517
|
+
/** 频道定制身份组权限变更 msg_data: NIMQChatSystemNotificationDataChannelRolePermissionChange */
|
|
518
|
+
kNIMQChatSystemNotificationTypeChannelRolePermissionChange = 29,
|
|
519
|
+
/** 频道个人定制权限变更 msg_data: NIMQChatSystemNotificationDataMemberRolePermissionChange */
|
|
520
|
+
kNIMQChatSystemNotificationTypeMemberRolePermissionChange = 30,
|
|
521
|
+
/** 频道对当前用户可见性变更 msg_data: NIMQChatSystemNotificationDataChannelVisibilityChange */
|
|
522
|
+
kNIMQChatSystemNotificationTypeChannelVisibilityChange = 31,
|
|
523
|
+
/** 当前用户进入/离开服务器 msg_data: NIMQChatSystemNotificationDataServerEnterLeave */
|
|
524
|
+
kNIMQChatSystemNotificationTypeServerEnterLeave = 32,
|
|
525
|
+
/** 用户通过邀请码加入服务器 msg_data: NIMQChatSystemNotificationDataServerJoinByInviteCode */
|
|
526
|
+
kNIMQChatSystemNotificationTypeServerJoinByInviteCode = 33,
|
|
527
|
+
/** 自定义系统通知 msg_data: NULL */
|
|
528
|
+
kNIMQChatSystemNotificationTypeCustom = 100
|
|
529
|
+
}
|
|
530
|
+
export declare enum NIMQChatSystemNotificationStatus {
|
|
531
|
+
/** 普通状态 */
|
|
532
|
+
kNIMQChatSystemNotificationNormal = 0,
|
|
533
|
+
kNIMQChatSystemNotificationUser = 10000
|
|
534
|
+
}
|
|
535
|
+
export declare type QChatPermission = Map<NIMQChatPermissions, NIMQChatPermissionsOption>;
|
|
536
|
+
export declare type QChatBaseCallback = (resp: QChatBaseResp) => void;
|
|
537
|
+
export interface NIMQChatChannelIDInfo {
|
|
538
|
+
/** server id */
|
|
539
|
+
server_id?: number;
|
|
540
|
+
/** channel id */
|
|
541
|
+
channel_id?: number;
|
|
542
|
+
}
|
|
543
|
+
export interface QChatBaseResp {
|
|
544
|
+
/** 操作结果, 参考NIMResCode */
|
|
545
|
+
res_code?: NIMResCode;
|
|
546
|
+
}
|
|
547
|
+
export interface QChatPageInfo {
|
|
548
|
+
/** 是否还有更多 */
|
|
549
|
+
has_more?: boolean;
|
|
550
|
+
/** 下一次分页起始时间 */
|
|
551
|
+
next_timestamp?: number;
|
|
552
|
+
/** 下一次分页起始游标 */
|
|
553
|
+
cursor?: string;
|
|
554
|
+
}
|
|
555
|
+
export interface QChatBusinessAntiSpamInfo {
|
|
556
|
+
/** 反垃圾文本业务id */
|
|
557
|
+
text_bid?: string;
|
|
558
|
+
/** 反垃圾图片业务id */
|
|
559
|
+
pic_bid?: string;
|
|
560
|
+
}
|
|
561
|
+
export interface QChatMemberInfo {
|
|
562
|
+
/** server id */
|
|
563
|
+
server_id?: number;
|
|
564
|
+
/** 用户accid */
|
|
565
|
+
accid?: string;
|
|
566
|
+
/** 昵称 */
|
|
567
|
+
nick?: string;
|
|
568
|
+
/** 头像url */
|
|
569
|
+
avatar?: string;
|
|
570
|
+
/** 自定义字段 */
|
|
571
|
+
custom?: string;
|
|
572
|
+
/** 用户类型,0:普通用户 1:所有者 */
|
|
573
|
+
type?: number;
|
|
574
|
+
/** 加入时间 */
|
|
575
|
+
join_time?: number;
|
|
576
|
+
/** 邀请人 */
|
|
577
|
+
inviter?: string;
|
|
578
|
+
/** 有效标记,false:无效 true:有效 */
|
|
579
|
+
valid_flag?: boolean;
|
|
580
|
+
/** 创建时间 */
|
|
581
|
+
create_time?: number;
|
|
582
|
+
/** 更新时间 */
|
|
583
|
+
update_time?: number;
|
|
584
|
+
}
|
|
585
|
+
export interface QChatServerRoleInfo {
|
|
586
|
+
/** 服务器ID */
|
|
587
|
+
server_id?: number;
|
|
588
|
+
/** 身份组id */
|
|
589
|
+
role_id?: number;
|
|
590
|
+
/** 身份组名称 */
|
|
591
|
+
role_name?: string;
|
|
592
|
+
/** 身份组图片 URL */
|
|
593
|
+
role_icon?: string;
|
|
594
|
+
/** 身份组扩展字段 */
|
|
595
|
+
extension?: string;
|
|
596
|
+
/** 身份组权限设定 */
|
|
597
|
+
permissions?: QChatPermission;
|
|
598
|
+
/** 身份组类型 1 表示 Everyone,2 表示定制身份组 */
|
|
599
|
+
role_type?: NIMQChatRoleType;
|
|
600
|
+
/** 身份组创建时间 */
|
|
601
|
+
create_time?: number;
|
|
602
|
+
/** 身份组修改时间 */
|
|
603
|
+
update_time?: number;
|
|
604
|
+
/** 该身份组的成员数量,Everyone 身份组数量为 -1 */
|
|
605
|
+
member_count?: number;
|
|
606
|
+
/** 身份组优先级,Everyone 最高为 0,数字越大优先级越低,自定义优先级区间 1~9007199254740991 */
|
|
607
|
+
priority?: number;
|
|
608
|
+
}
|
|
609
|
+
export interface QChatChannelRoleInfo {
|
|
610
|
+
/** 服务器ID */
|
|
611
|
+
server_id?: number;
|
|
612
|
+
/** 身份组id */
|
|
613
|
+
role_id?: number;
|
|
614
|
+
/** 身份组名称 */
|
|
615
|
+
role_name?: string;
|
|
616
|
+
/** 身份组图片 URL */
|
|
617
|
+
role_icon?: string;
|
|
618
|
+
/** 身份组扩展字段 */
|
|
619
|
+
extension?: string;
|
|
620
|
+
/** 身份组权限设定 */
|
|
621
|
+
permissions?: QChatPermission;
|
|
622
|
+
/** 身份组类型 1 表示 Everyone,2 表示定制身份组 */
|
|
623
|
+
role_type?: NIMQChatRoleType;
|
|
624
|
+
/** 身份组创建时间 */
|
|
625
|
+
create_time?: number;
|
|
626
|
+
/** 身份组修改时间 */
|
|
627
|
+
update_time?: number;
|
|
628
|
+
/** 频道 ID */
|
|
629
|
+
channel_id?: number;
|
|
630
|
+
/** 继承的服务器身份组 ID */
|
|
631
|
+
parent_role_id?: number;
|
|
632
|
+
}
|
|
633
|
+
export interface QChatChannelCategoryRoleInfo {
|
|
634
|
+
/** 服务器ID */
|
|
635
|
+
server_id?: number;
|
|
636
|
+
/** 身份组id */
|
|
637
|
+
role_id?: number;
|
|
638
|
+
/** 身份组名称 */
|
|
639
|
+
role_name?: string;
|
|
640
|
+
/** 身份组图片 URL */
|
|
641
|
+
role_icon?: string;
|
|
642
|
+
/** 身份组扩展字段 */
|
|
643
|
+
extension?: string;
|
|
644
|
+
/** 身份组权限设定 */
|
|
645
|
+
permissions?: QChatPermission;
|
|
646
|
+
/** 身份组类型 1 表示 Everyone,2 表示定制身份组 */
|
|
647
|
+
role_type?: NIMQChatRoleType;
|
|
648
|
+
/** 身份组创建时间 */
|
|
649
|
+
create_time?: number;
|
|
650
|
+
/** 身份组修改时间 */
|
|
651
|
+
update_time?: number;
|
|
652
|
+
/** 频道分组 ID */
|
|
653
|
+
category_id?: number;
|
|
654
|
+
/** 继承的服务器身份组 ID */
|
|
655
|
+
parent_role_id?: number;
|
|
656
|
+
/** 有效标志 */
|
|
657
|
+
valid_flag?: boolean;
|
|
658
|
+
}
|
|
659
|
+
export interface QChatMemberRoleInfo {
|
|
660
|
+
/** 该定制权限所在的频道 ID */
|
|
661
|
+
channel_id?: number;
|
|
662
|
+
/** 该定制权限所在的身份组 ID */
|
|
663
|
+
role_id?: number;
|
|
664
|
+
/** 定制权限的用户信息 */
|
|
665
|
+
member_info?: QChatMemberInfo;
|
|
666
|
+
/** 身份组权限设定 */
|
|
667
|
+
permissions?: QChatPermission;
|
|
668
|
+
/** 身份组创建时间 */
|
|
669
|
+
create_time?: number;
|
|
670
|
+
/** 身份组修改时间 */
|
|
671
|
+
update_time?: number;
|
|
672
|
+
}
|
|
673
|
+
export interface QChatChannelCategoryMemberRoleInfo {
|
|
674
|
+
/** 频道分组 ID */
|
|
675
|
+
category_id?: number;
|
|
676
|
+
/** 该定制权限所在的身份组 ID */
|
|
677
|
+
role_id?: number;
|
|
678
|
+
/** 定制权限的用户信息 */
|
|
679
|
+
member_info?: QChatMemberInfo;
|
|
680
|
+
/** 身份组权限设定 */
|
|
681
|
+
permissions?: QChatPermission;
|
|
682
|
+
/** 身份组创建时间 */
|
|
683
|
+
create_time?: number;
|
|
684
|
+
/** 身份组修改时间 */
|
|
685
|
+
update_time?: number;
|
|
686
|
+
}
|
|
687
|
+
export interface NIMQChatUnreadInfo {
|
|
688
|
+
/** 服务器ID */
|
|
689
|
+
server_id?: number;
|
|
690
|
+
/** 频道ID */
|
|
691
|
+
channel_id?: number;
|
|
692
|
+
/** 已读时间戳 */
|
|
693
|
+
ack_timestamp?: number;
|
|
694
|
+
/** 未读数 */
|
|
695
|
+
unread_count?: number;
|
|
696
|
+
/** 被@未读数 */
|
|
697
|
+
mentioned_unread_count?: number;
|
|
698
|
+
/** 订阅未读数时的最大未读数 */
|
|
699
|
+
max_unread_count?: number;
|
|
700
|
+
/** 最后一条消息时间戳 */
|
|
701
|
+
last_msg_timestamp?: number;
|
|
702
|
+
}
|
|
703
|
+
export interface QChatRoleMemberInfo {
|
|
704
|
+
/** member_info */
|
|
705
|
+
member_info?: QChatMemberInfo;
|
|
706
|
+
/** 所在身份组role id */
|
|
707
|
+
role_id?: number;
|
|
708
|
+
}
|
|
709
|
+
export interface QChatServerInfo {
|
|
710
|
+
/** server id */
|
|
711
|
+
server_id?: number;
|
|
712
|
+
/** 用户自定义服务器类别, 0表示无类别 */
|
|
713
|
+
server_type?: number;
|
|
714
|
+
/** 是否能被搜索 */
|
|
715
|
+
searchable?: boolean;
|
|
716
|
+
/** 名称 */
|
|
717
|
+
name?: string;
|
|
718
|
+
/** 图标url */
|
|
719
|
+
icon?: string;
|
|
720
|
+
/** 自定义字段 */
|
|
721
|
+
custom?: string;
|
|
722
|
+
/** 所有者id */
|
|
723
|
+
owner_id?: string;
|
|
724
|
+
/** 成员数量 */
|
|
725
|
+
member_count?: number;
|
|
726
|
+
/** 邀请模式 */
|
|
727
|
+
invite_mode?: NIMQChatServerInviteMode;
|
|
728
|
+
/** 申请模式 */
|
|
729
|
+
apply_mode?: NIMQChatServerApplyMode;
|
|
730
|
+
/** 有效标记,false:无效 true:有效 */
|
|
731
|
+
valid_flag?: boolean;
|
|
732
|
+
/** 总频道数量 */
|
|
733
|
+
channel_count?: number;
|
|
734
|
+
/** 总频道分组数量 */
|
|
735
|
+
channel_category_count?: number;
|
|
736
|
+
/** 创建时间 */
|
|
737
|
+
create_time?: number;
|
|
738
|
+
/** 更新时间 */
|
|
739
|
+
update_time?: number;
|
|
740
|
+
/** 自定义排序权重值 */
|
|
741
|
+
reorder_weight?: number;
|
|
742
|
+
}
|
|
743
|
+
export interface QChatInviteUserInfo {
|
|
744
|
+
/** accid */
|
|
745
|
+
accid?: string;
|
|
746
|
+
/** 更新附言 */
|
|
747
|
+
update_postscript?: string;
|
|
748
|
+
/** 状态 */
|
|
749
|
+
status?: NIMQChatInviteApplyRecordStatus;
|
|
750
|
+
/** 更新时间 */
|
|
751
|
+
update_time?: number;
|
|
752
|
+
}
|
|
753
|
+
export interface QChatInviteApplyRecord {
|
|
754
|
+
/** accid */
|
|
755
|
+
accid?: string;
|
|
756
|
+
/** type */
|
|
757
|
+
type?: NIMQChatInviteApplyRecordType;
|
|
758
|
+
/** 服务器ID */
|
|
759
|
+
server_id?: number;
|
|
760
|
+
/** 状态 */
|
|
761
|
+
status?: NIMQChatInviteApplyRecordStatus;
|
|
762
|
+
/** 请求ID */
|
|
763
|
+
request_id?: number;
|
|
764
|
+
/** 记录ID */
|
|
765
|
+
record_id?: number;
|
|
766
|
+
/** 创建时间 */
|
|
767
|
+
create_time?: number;
|
|
768
|
+
/** 更新时间 */
|
|
769
|
+
update_time?: number;
|
|
770
|
+
/** 过期时间 */
|
|
771
|
+
expire_time?: number;
|
|
772
|
+
/** 邀请申请信息原始Json数据 */
|
|
773
|
+
raw_data?: string;
|
|
774
|
+
}
|