node-nim 9.14.2 → 10.2.0

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