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.
Files changed (215) hide show
  1. package/README.md +74 -39
  2. package/dist/chatroom/chatroom.js +253 -0
  3. package/dist/chatroom/chatroom.js.map +1 -0
  4. package/dist/chatroom_def/chatroom_def.js +120 -0
  5. package/dist/chatroom_def/chatroom_def.js.map +1 -0
  6. package/{js → dist}/loader.js +0 -0
  7. package/{js → dist}/loader.js.map +0 -0
  8. package/{js/api → dist/nim}/client.js +46 -8
  9. package/dist/nim/client.js.map +1 -0
  10. package/{js/api → dist/nim}/data_sync.js +2 -2
  11. package/dist/nim/data_sync.js.map +1 -0
  12. package/{js/api → dist/nim}/friend.js +62 -12
  13. package/dist/nim/friend.js.map +1 -0
  14. package/{js/api → dist/nim}/global.js +50 -8
  15. package/dist/nim/global.js.map +1 -0
  16. package/{js/api → dist/nim}/msglog.js +271 -52
  17. package/dist/nim/msglog.js.map +1 -0
  18. package/{js/api → dist/nim}/nos.js +54 -13
  19. package/dist/nim/nos.js.map +1 -0
  20. package/{js/api → dist/nim}/online_session.js +34 -6
  21. package/dist/nim/online_session.js.map +1 -0
  22. package/{js/api → dist/nim}/pass_through_proxy.js +10 -3
  23. package/dist/nim/pass_through_proxy.js.map +1 -0
  24. package/{js/api → dist/nim}/plugin.js +18 -4
  25. package/dist/nim/plugin.js.map +1 -0
  26. package/{js/api → dist/nim}/session.js +171 -28
  27. package/dist/nim/session.js.map +1 -0
  28. package/{js/api → dist/nim}/subscribe_event.js +53 -12
  29. package/dist/nim/subscribe_event.js.map +1 -0
  30. package/{js/api → dist/nim}/super_team.js +253 -47
  31. package/dist/nim/super_team.js.map +1 -0
  32. package/{js/api → dist/nim}/sysmsg.js +80 -12
  33. package/dist/nim/sysmsg.js.map +1 -0
  34. package/{js/api → dist/nim}/talk.js +10 -3
  35. package/dist/nim/talk.js.map +1 -0
  36. package/dist/nim/talkex.js +192 -0
  37. package/dist/nim/talkex.js.map +1 -0
  38. package/{js/api → dist/nim}/team.js +363 -87
  39. package/dist/nim/team.js.map +1 -0
  40. package/{js/api → dist/nim}/tool.js +21 -5
  41. package/dist/nim/tool.js.map +1 -0
  42. package/{js/api → dist/nim}/user.js +84 -16
  43. package/dist/nim/user.js.map +1 -0
  44. package/{js/def → dist/nim_def}/client_def.js +0 -0
  45. package/dist/nim_def/client_def.js.map +1 -0
  46. package/{js/def → dist/nim_def}/data_sync_def.js +0 -0
  47. package/dist/nim_def/data_sync_def.js.map +1 -0
  48. package/{js/def → dist/nim_def}/doc_trans_def.js +0 -0
  49. package/dist/nim_def/doc_trans_def.js.map +1 -0
  50. package/{js/def → dist/nim_def}/friend_def.js +0 -0
  51. package/dist/nim_def/friend_def.js.map +1 -0
  52. package/{js/def → dist/nim_def}/global_def.js +0 -0
  53. package/dist/nim_def/global_def.js.map +1 -0
  54. package/{js/def → dist/nim_def}/msglog_def.js +1 -1
  55. package/dist/nim_def/msglog_def.js.map +1 -0
  56. package/{js/def → dist/nim_def}/nos_def.js +0 -0
  57. package/dist/nim_def/nos_def.js.map +1 -0
  58. package/{js/def → dist/nim_def}/online_session_def.js +0 -0
  59. package/dist/nim_def/online_session_def.js.map +1 -0
  60. package/{js/def → dist/nim_def}/pass_through_proxy_def.js +0 -0
  61. package/dist/nim_def/pass_through_proxy_def.js.map +1 -0
  62. package/{js/def → dist/nim_def}/plugin_def.js +0 -0
  63. package/{js/def → dist/nim_def}/plugin_def.js.map +1 -1
  64. package/{js/def → dist/nim_def}/session_def.js +0 -0
  65. package/dist/nim_def/session_def.js.map +1 -0
  66. package/{js/def → dist/nim_def}/subscribe_event_def.js +0 -0
  67. package/dist/nim_def/subscribe_event_def.js.map +1 -0
  68. package/{js/def → dist/nim_def}/super_team_def.js +0 -0
  69. package/dist/nim_def/super_team_def.js.map +1 -0
  70. package/{js/def → dist/nim_def}/sysmsg_def.js +0 -0
  71. package/dist/nim_def/sysmsg_def.js.map +1 -0
  72. package/{js/def → dist/nim_def}/talk_def.js +0 -0
  73. package/{js/def → dist/nim_def}/talk_def.js.map +1 -1
  74. package/{js/def → dist/nim_def}/talkex_def.js +0 -0
  75. package/{js/def → dist/nim_def}/talkex_def.js.map +1 -1
  76. package/{js/def → dist/nim_def}/team_def.js +0 -0
  77. package/dist/nim_def/team_def.js.map +1 -0
  78. package/{js/def → dist/nim_def}/tool_def.js +0 -0
  79. package/dist/nim_def/tool_def.js.map +1 -0
  80. package/{js/def → dist/nim_def}/user_def.js +0 -0
  81. package/dist/nim_def/user_def.js.map +1 -0
  82. package/dist/node-nim.js +98 -0
  83. package/dist/node-nim.js.map +1 -0
  84. package/dist/qchat/attachment.js +75 -0
  85. package/dist/qchat/attachment.js.map +1 -0
  86. package/dist/qchat/channel.js +402 -0
  87. package/dist/qchat/channel.js.map +1 -0
  88. package/dist/qchat/channel_category.js +249 -0
  89. package/dist/qchat/channel_category.js.map +1 -0
  90. package/dist/qchat/instance.js +94 -0
  91. package/dist/qchat/instance.js.map +1 -0
  92. package/dist/qchat/message.js +325 -0
  93. package/dist/qchat/message.js.map +1 -0
  94. package/dist/qchat/role.js +562 -0
  95. package/dist/qchat/role.js.map +1 -0
  96. package/dist/qchat/server.js +515 -0
  97. package/dist/qchat/server.js.map +1 -0
  98. package/dist/qchat/system_notification.js +96 -0
  99. package/dist/qchat/system_notification.js.map +1 -0
  100. package/dist/qchat_def/attachment_def.js +3 -0
  101. package/dist/qchat_def/attachment_def.js.map +1 -0
  102. package/dist/qchat_def/channel_def.js +3 -0
  103. package/dist/qchat_def/channel_def.js.map +1 -0
  104. package/dist/qchat_def/instance_def.js +3 -0
  105. package/dist/qchat_def/instance_def.js.map +1 -0
  106. package/dist/qchat_def/message_def.js +3 -0
  107. package/dist/qchat_def/message_def.js.map +1 -0
  108. package/dist/qchat_def/public_def.js +584 -0
  109. package/dist/qchat_def/public_def.js.map +1 -0
  110. package/dist/qchat_def/role_def.js +3 -0
  111. package/dist/qchat_def/role_def.js.map +1 -0
  112. package/dist/qchat_def/server_def.js +3 -0
  113. package/dist/qchat_def/server_def.js.map +1 -0
  114. package/dist/qchat_def/system_notification_def.js +3 -0
  115. package/dist/qchat_def/system_notification_def.js.map +1 -0
  116. package/package.json +7 -6
  117. package/script/download-sdk.mjs +17 -16
  118. package/types/chatroom/chatroom.d.ts +54 -0
  119. package/types/chatroom_def/chatroom_def.d.ts +419 -0
  120. package/types/{api → nim}/client.d.ts +22 -23
  121. package/types/nim/data_sync.d.ts +12 -0
  122. package/types/{api → nim}/friend.d.ts +17 -17
  123. package/types/{api → nim}/global.d.ts +13 -13
  124. package/types/{api → nim}/msglog.d.ts +62 -62
  125. package/types/{api → nim}/nos.d.ts +21 -21
  126. package/types/{api → nim}/online_session.d.ts +12 -12
  127. package/types/{api → nim}/pass_through_proxy.d.ts +8 -8
  128. package/types/{api → nim}/plugin.d.ts +8 -6
  129. package/types/{api → nim}/session.d.ts +40 -40
  130. package/types/{api → nim}/subscribe_event.d.ts +19 -19
  131. package/types/{api → nim}/super_team.d.ts +51 -52
  132. package/types/{api → nim}/sysmsg.d.ts +20 -20
  133. package/types/{api → nim}/talk.d.ts +19 -19
  134. package/types/{api → nim}/talkex.d.ts +29 -27
  135. package/types/{api → nim}/team.d.ts +89 -88
  136. package/types/{api → nim}/tool.d.ts +9 -7
  137. package/types/{api → nim}/user.d.ts +23 -23
  138. package/types/{def → nim_def}/client_def.d.ts +86 -86
  139. package/types/{def → nim_def}/data_sync_def.d.ts +0 -0
  140. package/types/{def → nim_def}/doc_trans_def.d.ts +0 -0
  141. package/types/{def → nim_def}/friend_def.d.ts +17 -16
  142. package/types/{def → nim_def}/global_def.d.ts +14 -13
  143. package/types/{def → nim_def}/msglog_def.d.ts +152 -141
  144. package/types/nim_def/nos_def.d.ts +72 -0
  145. package/types/{def → nim_def}/online_session_def.d.ts +15 -15
  146. package/types/{def → nim_def}/pass_through_proxy_def.d.ts +2 -1
  147. package/types/{def → nim_def}/plugin_def.d.ts +3 -2
  148. package/types/{def → nim_def}/session_def.d.ts +49 -48
  149. package/types/nim_def/subscribe_event_def.d.ts +83 -0
  150. package/types/{def → nim_def}/super_team_def.d.ts +34 -34
  151. package/types/{def → nim_def}/sysmsg_def.d.ts +25 -25
  152. package/types/{def → nim_def}/talk_def.d.ts +24 -24
  153. package/types/nim_def/talkex_def.d.ts +112 -0
  154. package/types/{def → nim_def}/team_def.d.ts +37 -37
  155. package/types/{def → nim_def}/tool_def.d.ts +7 -6
  156. package/types/{def → nim_def}/user_def.d.ts +22 -21
  157. package/types/node-nim.d.ts +53 -0
  158. package/types/qchat/attachment.d.ts +40 -0
  159. package/types/qchat/channel.d.ts +133 -0
  160. package/types/qchat/channel_category.d.ts +82 -0
  161. package/types/qchat/instance.d.ts +46 -0
  162. package/types/qchat/message.d.ts +110 -0
  163. package/types/qchat/role.d.ts +161 -0
  164. package/types/qchat/server.d.ts +168 -0
  165. package/types/qchat/system_notification.d.ts +39 -0
  166. package/types/qchat_def/attachment_def.d.ts +71 -0
  167. package/types/qchat_def/channel_def.d.ts +624 -0
  168. package/types/qchat_def/instance_def.d.ts +212 -0
  169. package/types/qchat_def/message_def.d.ts +477 -0
  170. package/types/qchat_def/public_def.d.ts +774 -0
  171. package/types/qchat_def/role_def.d.ts +430 -0
  172. package/types/qchat_def/server_def.d.ts +451 -0
  173. package/types/qchat_def/system_notification_def.d.ts +170 -0
  174. package/js/api/client.js.map +0 -1
  175. package/js/api/data_sync.js.map +0 -1
  176. package/js/api/friend.js.map +0 -1
  177. package/js/api/global.js.map +0 -1
  178. package/js/api/msglog.js.map +0 -1
  179. package/js/api/nos.js.map +0 -1
  180. package/js/api/online_session.js.map +0 -1
  181. package/js/api/pass_through_proxy.js.map +0 -1
  182. package/js/api/plugin.js.map +0 -1
  183. package/js/api/session.js.map +0 -1
  184. package/js/api/subscribe_event.js.map +0 -1
  185. package/js/api/super_team.js.map +0 -1
  186. package/js/api/sysmsg.js.map +0 -1
  187. package/js/api/talk.js.map +0 -1
  188. package/js/api/talkex.js +0 -115
  189. package/js/api/talkex.js.map +0 -1
  190. package/js/api/team.js.map +0 -1
  191. package/js/api/tool.js.map +0 -1
  192. package/js/api/user.js.map +0 -1
  193. package/js/def/client_def.js.map +0 -1
  194. package/js/def/data_sync_def.js.map +0 -1
  195. package/js/def/doc_trans_def.js.map +0 -1
  196. package/js/def/friend_def.js.map +0 -1
  197. package/js/def/global_def.js.map +0 -1
  198. package/js/def/msglog_def.js.map +0 -1
  199. package/js/def/nos_def.js.map +0 -1
  200. package/js/def/online_session_def.js.map +0 -1
  201. package/js/def/pass_through_proxy_def.js.map +0 -1
  202. package/js/def/session_def.js.map +0 -1
  203. package/js/def/subscribe_event_def.js.map +0 -1
  204. package/js/def/super_team_def.js.map +0 -1
  205. package/js/def/sysmsg_def.js.map +0 -1
  206. package/js/def/team_def.js.map +0 -1
  207. package/js/def/tool_def.js.map +0 -1
  208. package/js/def/user_def.js.map +0 -1
  209. package/js/nim.js +0 -72
  210. package/js/nim.js.map +0 -1
  211. package/types/api/data_sync.d.ts +0 -13
  212. package/types/def/nos_def.d.ts +0 -71
  213. package/types/def/subscribe_event_def.d.ts +0 -82
  214. package/types/def/talkex_def.d.ts +0 -111
  215. package/types/nim.d.ts +0 -36
@@ -58,53 +58,53 @@ export declare enum NIMTeamQueryType {
58
58
  kNIMTeamQueryByTeamName = 2 /** < 仅匹配群组名称 */
59
59
  }
60
60
  export interface TeamEvent {
61
- res_code_: NIMResCode; /**< 错误码 */
62
- notification_id_: NIMNotificationId; /**< 通知类型ID */
63
- team_id_: string; /**< 群组ID */
64
- ids_: Array<string>; /**< 通知可能涉及到的群成员ID */
65
- invalid_ids_: Array<string>; /**< 通知可能涉及到的失效的群成员ID,比如邀请入群的成员的群数量超限导致当次邀请失败 */
66
- namecards_: Array<UserNameCard>; /**< 通知可能涉及到的群成员的用户名片 */
67
- team_info_: TeamInfo; /**< 通知可能涉及到的群信息 */
68
- member_property_: TeamMemberProperty; /**< 群成员属性 */
69
- opt_: boolean; /**< 操作 */
70
- attach_: string; /**< 扩展字段,目前仅kick和invite事件可选 */
71
- src_data_: string; /**< 未解析过的原信息,目前仅支持群消息未读数相关事件 */
61
+ res_code_?: NIMResCode; /**< 错误码 */
62
+ notification_id_?: NIMNotificationId; /**< 通知类型ID */
63
+ team_id_?: string; /**< 群组ID */
64
+ ids_?: Array<string>; /**< 通知可能涉及到的群成员ID */
65
+ invalid_ids_?: Array<string>; /**< 通知可能涉及到的失效的群成员ID,比如邀请入群的成员的群数量超限导致当次邀请失败 */
66
+ namecards_?: Array<UserNameCard>; /**< 通知可能涉及到的群成员的用户名片 */
67
+ team_info_?: TeamInfo; /**< 通知可能涉及到的群信息 */
68
+ member_property_?: TeamMemberProperty; /**< 群成员属性 */
69
+ opt_?: boolean; /**< 操作 */
70
+ attach_?: string; /**< 扩展字段,目前仅kick和invite事件可选 */
71
+ src_data_?: string; /**< 未解析过的原信息,目前仅支持群消息未读数相关事件 */
72
72
  }
73
73
  export interface TeamInfoJsonValue {
74
- tid: string;
75
- name: string;
76
- type: NIMTeamType;
74
+ tid?: string;
75
+ name?: string;
76
+ type?: NIMTeamType;
77
77
  readonly creator: string;
78
- member_max_count: number;
79
- prop: string;
78
+ member_max_count?: number;
79
+ prop?: string;
80
80
  readonly valid: boolean;
81
81
  readonly member_count: number;
82
82
  readonly list_timetag: number;
83
83
  readonly create_timetag: number;
84
84
  readonly update_timetag: number;
85
- member_valid: number; /**< 1:有效,0:无效 */
86
- intro: string;
87
- announcement: string;
88
- join_mode: NIMTeamJoinMode;
89
- custom: string;
85
+ member_valid?: number; /**< 1:有效,0:无效 */
86
+ intro?: string;
87
+ announcement?: string;
88
+ join_mode?: NIMTeamJoinMode;
89
+ custom?: string;
90
90
  readonly server_custom: string;
91
- icon: string;
92
- be_invite_mode: NIMTeamBeInviteMode;
93
- invite_mode: NIMTeamInviteMode;
94
- update_info_mode: NIMTeamUpdateInfoMode;
95
- update_custom_mode: NIMTeamUpdateCustomMode;
96
- mute_type: NIMTeamMuteType;
91
+ icon?: string;
92
+ be_invite_mode?: NIMTeamBeInviteMode;
93
+ invite_mode?: NIMTeamInviteMode;
94
+ update_info_mode?: NIMTeamUpdateInfoMode;
95
+ update_custom_mode?: NIMTeamUpdateCustomMode;
96
+ mute_type?: NIMTeamMuteType;
97
97
  }
98
98
  export interface TeamInfo {
99
- team_info_json_value_: TeamInfoJsonValue;
99
+ team_info_json_value_?: TeamInfoJsonValue;
100
100
  }
101
101
  export interface TeamMemberPropertyJsonValue {
102
- type: NIMTeamUserType;
103
- nick: string;
104
- bits: number;
105
- custom: string;
106
- tid: string;
107
- accid: string;
102
+ type?: NIMTeamUserType;
103
+ nick?: string;
104
+ bits?: number;
105
+ custom?: string;
106
+ tid?: string;
107
+ accid?: string;
108
108
  readonly valid: boolean;
109
109
  readonly create_timetag: number;
110
110
  readonly update_timetag: number;
@@ -112,7 +112,7 @@ export interface TeamMemberPropertyJsonValue {
112
112
  readonly invitor_accid: string;
113
113
  }
114
114
  export interface TeamMemberProperty {
115
- member_info_json_value_: TeamMemberPropertyJsonValue;
115
+ member_info_json_value_?: TeamMemberPropertyJsonValue;
116
116
  }
117
117
  export declare type TeamEventCallback = (result: TeamEvent) => void;
118
118
  export declare type QueryAllMyTeamsCallback = (count: number, result: Array<string>) => void;
@@ -121,8 +121,8 @@ export declare type QueryTeamMyAllMemberInfosCallback = (count: number, result:
121
121
  export declare type QueryTeamMembersCallback = (tid: string, count: number, result: Array<TeamMemberProperty>) => void;
122
122
  export declare type QueryTeamMemberCallback = (result: TeamMemberProperty) => void;
123
123
  export declare type QueryTeamInfoCallback = (tid: string, result: TeamInfo) => void;
124
- export declare type QueryTeamMembersOnlineCallback = (rescode: number, count: number, result: Array<TeamMemberProperty>) => void;
125
- export declare type QueryTeamMembersInvitorCallback = (rescode: number, count: number, result: Map<string, string>) => void;
124
+ export declare type QueryTeamMembersOnlineCallback = (rescode: NIMResCode, count: number, result: Array<TeamMemberProperty>) => void;
125
+ export declare type QueryTeamMembersInvitorCallback = (rescode: NIMResCode, count: number, result: Map<string, string>) => void;
126
126
  export declare type QueryTeamsInfoCallback = (count: number, result: Array<TeamInfo>) => void;
127
127
  export declare type TeamMsgAckReadCallback = (tid: string, success_ids: Array<string>, failure_ids: Array<string>, ignored_ids: Array<string>) => void;
128
128
  export declare type UpdateTInfoLocalCallback = (success_ids: Array<string>, failure_ids: Array<string>) => void;
@@ -1,3 +1,4 @@
1
+ import { NIMResCode } from './client_def';
1
2
  /** @enum NIMAppDataType AppData类型 */
2
3
  export declare enum NIMAppDataType {
3
4
  kNIMAppDataTypeUnknownOtherRes = 0 /** < 其他资源文件(除了消息历史文件和已知类型之外的消息数据缓存文件) */,
@@ -6,13 +7,13 @@ export declare enum NIMAppDataType {
6
7
  kNIMAppDataTypeVideo = 3 /** < 视频消息文件 */
7
8
  }
8
9
  export interface AudioInfo {
9
- mime_type_: string; /** < string 语音类型 */
10
- samplerate_: string; /** < string 语音采样率 */
11
- url_: string; /** < string 语音url*/
12
- duration_: number; /** < long 语音时长,毫秒*/
10
+ mime_type_?: string; /** < string 语音类型 */
11
+ samplerate_?: string; /** < string 语音采样率 */
12
+ url_?: string; /** < string 语音url*/
13
+ duration_?: number; /** < long 语音时长,毫秒*/
13
14
  }
14
- export declare type GetAudioTextCallback = (rescode: number, text: string) => void;
15
- export declare type FilterClientAntispamCallback = (succeed: boolean, rescode: number, text: string) => void;
15
+ export declare type GetAudioTextCallback = (rescode: NIMResCode, text: string) => void;
16
+ export declare type FilterClientAntispamCallback = (succeed: boolean, rescode: NIMResCode, text: string) => void;
16
17
  export interface NIMToolAPI {
17
18
  InitEventHandlers(): void;
18
19
  GetUserAppdataDir(appAccount: string): string;
@@ -1,3 +1,4 @@
1
+ import { NIMResCode } from './client_def';
1
2
  /** @enum NIMUserSpecialRelationshipChangeType 用户特殊关系数据变更类型 */
2
3
  export declare enum NIMUserSpecialRelationshipChangeType {
3
4
  kNIMUserSpecialRelationshipChangeTypeMarkBlack = 1 /** < 添加删除黑名单 */,
@@ -15,35 +16,35 @@ export declare enum NINPushType {
15
16
  kNIMPushTypePushKit = 1 /** < pushkit,仅iOS */
16
17
  }
17
18
  export interface BlackMuteListInfo {
18
- accid_: string; /**< 用户ID */
19
- set_black_: boolean; /**< 是否黑名单 */
20
- set_mute_: boolean; /**< 是否被静音 */
21
- create_timetag_: number; /**< 档案创建时间(毫秒) */
22
- update_timetag_: number; /**< 档案更新时间(毫秒) */
19
+ accid_?: string; /**< 用户ID */
20
+ set_black_?: boolean; /**< 是否黑名单 */
21
+ set_mute_?: boolean; /**< 是否被静音 */
22
+ create_timetag_?: number; /**< 档案创建时间(毫秒) */
23
+ update_timetag_?: number; /**< 档案更新时间(毫秒) */
23
24
  }
24
25
  export interface UserNameCard {
25
- accid_: string; /**< 用户ID */
26
- nickname_: string; /**< 用户昵称 */
27
- icon_url_: string; /**< 用户头像下载地址 */
28
- signature_: string; /**< 用户签名 */
29
- gender_: number; /**< 用户性别 */
30
- email_: string; /**< 用户邮箱 */
31
- birth_: string; /**< 用户生日 */
32
- mobile_: string; /**< 用户电话 */
33
- expand_: string; /**< 用户扩展数据 */
34
- create_timetag_: number; /**< 用户档案创建时间戳(毫秒) */
35
- update_timetag_: number; /**< 用户档案更新时间戳(毫秒) */
26
+ accid_?: string; /**< 用户ID */
27
+ nickname_?: string; /**< 用户昵称 */
28
+ icon_url_?: string; /**< 用户头像下载地址 */
29
+ signature_?: string; /**< 用户签名 */
30
+ gender_?: number; /**< 用户性别 */
31
+ email_?: string; /**< 用户邮箱 */
32
+ birth_?: string; /**< 用户生日 */
33
+ mobile_?: string; /**< 用户电话 */
34
+ expand_?: string; /**< 用户扩展数据 */
35
+ create_timetag_?: number; /**< 用户档案创建时间戳(毫秒) */
36
+ update_timetag_?: number; /**< 用户档案更新时间戳(毫秒) */
36
37
  }
37
38
  export interface SpecialRelationshipChangeEvent {
38
- type_: NIMUserSpecialRelationshipChangeType; /**< 黑名单/静音名单更新事件类型 */
39
- content_: object; /**< 黑名单/静音名单更新事件内容 */
39
+ type_?: NIMUserSpecialRelationshipChangeType; /**< 黑名单/静音名单更新事件类型 */
40
+ content_?: object; /**< 黑名单/静音名单更新事件内容 */
40
41
  }
41
42
  export declare type SpecialRelationshipChangedCallback = (result: SpecialRelationshipChangeEvent) => void;
42
43
  export declare type UserNameCardChangedCallback = (result: Array<UserNameCard>) => void;
43
- export declare type SetRelationCallback = (rescode: number, accid: string, setOpt: boolean) => void;
44
- export declare type GetSpecialListCallback = (rescode: number, result: Array<BlackMuteListInfo>) => void;
44
+ export declare type SetRelationCallback = (rescode: NIMResCode, accid: string, setOpt: boolean) => void;
45
+ export declare type GetSpecialListCallback = (rescode: NIMResCode, result: Array<BlackMuteListInfo>) => void;
45
46
  export declare type GetUserNameCardCallback = (result: Array<UserNameCard>) => void;
46
- export declare type UpdateMyUserNameCardCallback = (rescode: number) => void;
47
+ export declare type UpdateMyUserNameCardCallback = (rescode: NIMResCode) => void;
47
48
  export interface NIMUserAPI {
48
49
  InitEventHandlers(): void;
49
50
  SetBlack(accid: string, setBlack: boolean, cb: SetRelationCallback, jsonExtension: string): boolean;
@@ -0,0 +1,53 @@
1
+ export { NIMClient } from './nim/client';
2
+ export { NIMDataSync } from './nim/data_sync';
3
+ export { NIMFriend } from './nim/friend';
4
+ export { NIMGlobal } from './nim/global';
5
+ export { NIMMsgLog } from './nim/msglog';
6
+ export { NIMNOS } from './nim/nos';
7
+ export { NIMOnlineSession } from './nim/online_session';
8
+ export { NIMPassThroughProxy } from './nim/pass_through_proxy';
9
+ export { NIMSession } from './nim/session';
10
+ export { NIMSubscribeEvent } from './nim/subscribe_event';
11
+ export { NIMSuperTeam } from './nim/super_team';
12
+ export { NIMSysMsg } from './nim/sysmsg';
13
+ export { NIMTalk } from './nim/talk';
14
+ export { NIMTeam } from './nim/team';
15
+ export { NIMTool } from './nim/tool';
16
+ export { NIMUser } from './nim/user';
17
+ export { NIMPlugin } from './nim/plugin';
18
+ export { NIMTalkEx } from './nim/talkex';
19
+ export { ChatRoomModule } from './chatroom/chatroom';
20
+ export { QChatInstanceModule } from './qchat/instance';
21
+ export { QChatServerModule } from './qchat/server';
22
+ export { QChatChannelModule } from './qchat/channel';
23
+ export { QChatChannelCategoryModule } from './qchat/channel_category';
24
+ export { QChatMessageModule } from './qchat/message';
25
+ export { QChatSystemNotificationModule } from './qchat/system_notification';
26
+ export { QChatAttachmentModule } from './qchat/attachment';
27
+ export { QChatRoleModule } from './qchat/role';
28
+ export * from './nim_def/client_def';
29
+ export * from './nim_def/data_sync_def';
30
+ export * from './nim_def/friend_def';
31
+ export * from './nim_def/global_def';
32
+ export * from './nim_def/msglog_def';
33
+ export * from './nim_def/nos_def';
34
+ export * from './nim_def/online_session_def';
35
+ export * from './nim_def/pass_through_proxy_def';
36
+ export * from './nim_def/session_def';
37
+ export * from './nim_def/subscribe_event_def';
38
+ export * from './nim_def/super_team_def';
39
+ export * from './nim_def/sysmsg_def';
40
+ export * from './nim_def/talk_def';
41
+ export * from './nim_def/team_def';
42
+ export * from './nim_def/tool_def';
43
+ export * from './nim_def/user_def';
44
+ export * from './nim_def/plugin_def';
45
+ export * from './nim_def/talkex_def';
46
+ export * from './chatroom_def/chatroom_def';
47
+ export * from './qchat_def/instance_def';
48
+ export * from './qchat_def/server_def';
49
+ export * from './qchat_def/channel_def';
50
+ export * from './qchat_def/message_def';
51
+ export * from './qchat_def/system_notification_def';
52
+ export * from './qchat_def/attachment_def';
53
+ export * from './qchat_def/role_def';
@@ -0,0 +1,40 @@
1
+ import { EventEmitter } from 'eventemitter3';
2
+ import { QChatAttachmentUploadParam, QChatAttachmentStopUploadParam, QChatAttachmentDownloadParam, QChatAttachmentStopDownloadParam, QChatAttachmentDownloadResp, QChatAttachmentUploadResp } from '../qchat_def/attachment_def';
3
+ export declare interface QChatAttachmentEvents {
4
+ /** 上传全局回调,例如发送多媒体消息自动上传时会触发此回调 */
5
+ upload: [QChatAttachmentUploadResp];
6
+ /** 下载全局回调,例如接收多媒体消息自动下载时会触发此回调 */
7
+ download: [QChatAttachmentDownloadResp];
8
+ /** 上传/下载全局进度回调,例如多媒体消息自动上传/下载时会触发此回调 */
9
+ progress: [QChatAttachmentDownloadResp];
10
+ }
11
+ export declare class QChatAttachmentModule extends EventEmitter<QChatAttachmentEvents> {
12
+ instance: any;
13
+ constructor();
14
+ /** 注册全局回调 */
15
+ initEventHandlers(): void;
16
+ /** @fn upload(param: QChatAttachmentUploadParam)
17
+ * 上传附件
18
+ * @param[in] param 接口参数
19
+ * @return void
20
+ */
21
+ upload(param: QChatAttachmentUploadParam): Promise<QChatAttachmentUploadResp>;
22
+ /** @fn void StopUpload(const std::string& task_id)
23
+ * 停止上传附件
24
+ * @param[in] param 接口参数
25
+ * @return void
26
+ */
27
+ stopUpload(param: QChatAttachmentStopUploadParam): void;
28
+ /** @fn download(param: QChatAttachmentDownloadParam)
29
+ * 下载附件
30
+ * @param[in] param 接口参数
31
+ * @return void
32
+ */
33
+ download(param: QChatAttachmentDownloadParam): Promise<QChatAttachmentDownloadResp>;
34
+ /** @fn stopDownload(param: QChatAttachmentStopDownloadParam)
35
+ * 停止下载附件
36
+ * @param[in] param 接口参数
37
+ * @return void
38
+ */
39
+ stopDownload(param: QChatAttachmentStopDownloadParam): void;
40
+ }
@@ -0,0 +1,133 @@
1
+ import { EventEmitter } from 'eventemitter3';
2
+ import { QChatChannelCreateParam, QChatChannelDeleteParam, QChatChannelUpdateParam, QChatChannelUpdateCategoryInfoParam, QChatChannelSubscribeParam, QChatChannelQueryUnreadInfoParam, QChatChannelGetChannelsParam, QChatChannelGetChannelsPageParam, QChatChannelGetMembersPageParam, QChatChannelUpdateWhiteBlackRoleParam, QChatChannelUpdateWhiteBlackMembersParam, QChatChannelGetWhiteBlackRolesPageParam, QChatChannelGetWhiteBlackMembersPageParam, QChatChannelGetExistingWhiteBlackRolesParam, QChatChannelGetExistingWhiteBlackMembersParam, QChatChannelSearchPageParam, QChatChannelMemberSearchParam, QChatChannelUpdateRTCInfoParam, QChatChannelGetRTCInfoParam, QChatChannelGetRTCOnlineMembersParam, QChatChannelCreateResp, QChatChannelDeleteResp, QChatChannelGetChannelsPageResp, QChatChannelGetChannelsResp, QChatChannelGetExistingWhiteBlackMembersResp, QChatChannelGetExistingWhiteBlackRolesResp, QChatChannelGetMembersPageResp, QChatChannelGetRTCInfoResp, QChatChannelGetRTCOnlineMembersResp, QChatChannelGetWhiteBlackMembersPageResp, QChatChannelGetWhiteBlackRolesPageResp, QChatChannelMemberSearchResp, QChatChannelQueryUnreadInfoResp, QChatChannelSearchPageResp, QChatChannelSubscribeResp, QChatChannelUpdateCategoryInfoResp, QChatChannelUpdateResp, QChatChannelUpdateRTCInfoResp, QChatChannelUpdateWhiteBlackMembersResp, QChatChannelUpdateWhiteBlackRoleResp, QChatChannelUnreadResp } from '../qchat_def/channel_def';
3
+ export declare interface QChatChannelEvents {
4
+ /** 频道未读数 */
5
+ unread: [QChatChannelUnreadResp];
6
+ }
7
+ export declare class QChatChannelModule extends EventEmitter<QChatChannelEvents> {
8
+ instance: any;
9
+ constructor();
10
+ /** 注册全局回调 */
11
+ initEventHandlers(): void;
12
+ /** @fn createChannel(param: QChatChannelCreateParam)
13
+ * 创建频道
14
+ * @param[in] param 接口参数
15
+ * @return void
16
+ */
17
+ createChannel(param: QChatChannelCreateParam): Promise<QChatChannelCreateResp>;
18
+ /** @fn deleteChannel(param: QChatChannelDeleteParam)
19
+ * 删除频道
20
+ * @param[in] param 接口参数
21
+ * @return void
22
+ */
23
+ deleteChannel(param: QChatChannelDeleteParam): Promise<QChatChannelDeleteResp>;
24
+ /** @fn updateChannel(param: QChatChannelUpdateParam)
25
+ * 更新频道
26
+ * @param[in] param 接口参数
27
+ * @return void
28
+ */
29
+ updateChannel(param: QChatChannelUpdateParam): Promise<QChatChannelUpdateResp>;
30
+ /** @fn updateCategoryInfo(param: QChatChannelUpdateCategoryInfoParam)
31
+ * 更新频道的分组信息
32
+ * @param[in] param 接口参数
33
+ * @return void
34
+ */
35
+ updateCategoryInfo(param: QChatChannelUpdateCategoryInfoParam): Promise<QChatChannelUpdateCategoryInfoResp>;
36
+ /** @fn subscribe(param: QChatChannelSubscribeParam)
37
+ * 订阅频道未读状态、未读数或未读消息、事件
38
+ * @param[in] param 接口参数
39
+ * @return void
40
+ */
41
+ subscribe(param: QChatChannelSubscribeParam): Promise<QChatChannelSubscribeResp>;
42
+ /** @fn queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam)
43
+ * 查询消息未读数
44
+ * @param[in] param 接口参数
45
+ * @return void
46
+ */
47
+ queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam): Promise<QChatChannelQueryUnreadInfoResp>;
48
+ /** @fn getChannels(param: QChatChannelGetChannelsParam)
49
+ * 查询频道列表
50
+ * @param[in] param 接口参数
51
+ * @return void
52
+ */
53
+ getChannels(param: QChatChannelGetChannelsParam): Promise<QChatChannelGetChannelsResp>;
54
+ /** @fn getChannelsByPage(param: QChatChannelGetChannelsPageParam)
55
+ * 查询频道列表(分页)
56
+ * @param[in] param 接口参数
57
+ * @return void
58
+ */
59
+ getChannelsByPage(param: QChatChannelGetChannelsPageParam): Promise<QChatChannelGetChannelsPageResp>;
60
+ /** @fn getMembersByPage(param: QChatChannelGetMembersPageParam)
61
+ * 查询频道用户列表(分页),与查询服务器成员不同,查询频道成员指可以查看该频道的成员信息,取决于频道的白/黑名单设置
62
+ * 私有频道设置的白名单用户为该频道下的成员,公共频道除了黑名单中的成员均可以访问该频道
63
+ * @param[in] param 接口参数
64
+ * @return void
65
+ */
66
+ getMembersByPage(param: QChatChannelGetMembersPageParam): Promise<QChatChannelGetMembersPageResp>;
67
+ /** @fn updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam)
68
+ * 更新频道白/黑名单身份组,公开频道:黑名单,私有频道:白名单
69
+ * @param[in] param 接口参数
70
+ * @return void
71
+ */
72
+ updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam): Promise<QChatChannelUpdateWhiteBlackRoleResp>;
73
+ /** @fn updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam)
74
+ * 更新频道白/黑名单成员,公开频道:黑名单,私有频道:白名单
75
+ * @param[in] param 接口参数
76
+ * @return void
77
+ */
78
+ updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam): Promise<QChatChannelUpdateWhiteBlackMembersResp>;
79
+ /** @fn getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam)
80
+ * 查询频道白/黑名单身份组列表(分页)
81
+ * @param[in] param 接口参数
82
+ * @return void
83
+ */
84
+ getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam): Promise<QChatChannelGetWhiteBlackRolesPageResp>;
85
+ /** @fn getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam)
86
+ * 查询频道白/黑名单成员列表(分页)
87
+ * @param[in] param 接口参数
88
+ * @return void
89
+ */
90
+ getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam): Promise<QChatChannelGetWhiteBlackMembersPageResp>;
91
+ /** @fn getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam)
92
+ * 根据身份组ID查询已存在的白/黑名单身份组
93
+ * @param[in] param 接口参数
94
+ * @return void
95
+ */
96
+ getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam): Promise<QChatChannelGetExistingWhiteBlackRolesResp>;
97
+ /** @fn getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam)
98
+ * 根据成员ID查询已存在的白/黑名单成员
99
+ * @param[in] param 接口参数
100
+ * @return void
101
+ */
102
+ getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam): Promise<QChatChannelGetExistingWhiteBlackMembersResp>;
103
+ /** @fn channelSearchByPage(param: QChatChannelSearchByPageParam)
104
+ * 根据关键字搜索频道列表(分页)
105
+ * @param[in] param 接口参数
106
+ * @return void
107
+ */
108
+ channelSearchByPage(param: QChatChannelSearchPageParam): Promise<QChatChannelSearchPageResp>;
109
+ /** @fn channelMemberSearch(param: QChatChannelMemberSearchParam)
110
+ * 根据关键字搜索频道成员列表
111
+ * @param[in] param 接口参数
112
+ * @return void
113
+ */
114
+ channelMemberSearch(param: QChatChannelMemberSearchParam): Promise<QChatChannelMemberSearchResp>;
115
+ /** @fn updateRTCInfo(param: QChatChannelUpdateRTCInfoParam)
116
+ * 更新频道RTC信息
117
+ * @param[in] param 接口参数
118
+ * @return void
119
+ */
120
+ updateRTCInfo(param: QChatChannelUpdateRTCInfoParam): Promise<QChatChannelUpdateRTCInfoResp>;
121
+ /** @fn getRTCInfo(param: QChatChannelGetRTCInfoParam)
122
+ * 查询频道RTC信息
123
+ * @param[in] param 接口参数
124
+ * @return void
125
+ */
126
+ getRTCInfo(param: QChatChannelGetRTCInfoParam): Promise<QChatChannelGetRTCInfoResp>;
127
+ /** @fn getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam)
128
+ * 查询频道RTC在线成员列表
129
+ * @param[in] param 接口参数
130
+ * @return void
131
+ */
132
+ getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam): Promise<QChatChannelGetRTCOnlineMembersResp>;
133
+ }
@@ -0,0 +1,82 @@
1
+ import { EventEmitter } from 'eventemitter3';
2
+ import { QChatChannelCategoryCreateParam, QChatChannelCategoryUpdateParam, QChatChannelCategoryRemoveParam, QChatChannelGetCategoriesByIDParam, QChatChannelGetCategoriesPageParam, QChatChannelGetCategoryChannelsPageParam, QChatChannelCategoryUpdateWhiteBlackRoleParam, QChatChannelCategoryGetExistingWhiteBlackRolesParam, QChatChannelCategoryGetWhiteBlackRolesPageParam, QChatChannelCategoryUpdateWhiteBlackMembersParam, QChatChannelCategoryGetExistingWhiteBlackMembersParam, QChatChannelCategoryGetWhiteBlackMembersPageParam, QChatChannelCategoryCreateResp, QChatChannelCategoryGetExistingWhiteBlackMembersResp, QChatChannelCategoryGetExistingWhiteBlackRolesResp, QChatChannelCategoryGetWhiteBlackMembersPageResp, QChatChannelCategoryGetWhiteBlackRolesPageResp, QChatChannelCategoryRemoveResp, QChatChannelCategoryUpdateResp, QChatChannelCategoryUpdateWhiteBlackMembersResp, QChatChannelCategoryUpdateWhiteBlackRoleResp, QChatChannelGetCategoriesByIDResp, QChatChannelGetCategoriesPageResp, QChatChannelGetCategoryChannelsPageResp } from '../qchat_def/channel_def';
3
+ export declare interface QChatChannelCategoryEvents {
4
+ }
5
+ export declare class QChatChannelCategoryModule extends EventEmitter<QChatChannelCategoryEvents> {
6
+ instance: any;
7
+ constructor();
8
+ /** 注册全局回调 */
9
+ initEventHandlers(): void;
10
+ /** @fn createChannelCategory(param: QChatChannelCategoryCreateParam)
11
+ * 创建频道分组
12
+ * @param[in] param 接口参数
13
+ * @return void
14
+ */
15
+ createChannelCategory(param: QChatChannelCategoryCreateParam): Promise<QChatChannelCategoryCreateResp>;
16
+ /** @fn updateChannelCategory(param: QChatChannelCategoryUpdateParam)
17
+ * 更新频道分组
18
+ * @param[in] param 接口参数
19
+ * @return void
20
+ */
21
+ updateChannelCategory(param: QChatChannelCategoryUpdateParam): Promise<QChatChannelCategoryUpdateResp>;
22
+ /** @fn removeChannelCategory(param: QChatChannelCategoryRemoveParam)
23
+ * 删除频道分组
24
+ * @param[in] param 接口参数
25
+ * @return void
26
+ */
27
+ removeChannelCategory(param: QChatChannelCategoryRemoveParam): Promise<QChatChannelCategoryRemoveResp>;
28
+ /** @fn getChannelCategoriesByID(param: QChatChannelGetCategoriesByIDParam)
29
+ * 根据分组ID查询频道分组
30
+ * @param[in] param 接口参数
31
+ * @return void
32
+ */
33
+ getChannelCategoriesByID(param: QChatChannelGetCategoriesByIDParam): Promise<QChatChannelGetCategoriesByIDResp>;
34
+ /** @fn getChannelCategoriesPage(param: QChatChannelGetCategoriesPageParam)
35
+ * 查询频道分组列表(分页)
36
+ * @param[in] param 接口参数
37
+ * @return void
38
+ */
39
+ getChannelCategoriesPage(param: QChatChannelGetCategoriesPageParam): Promise<QChatChannelGetCategoriesPageResp>;
40
+ /** @fn getChannelCategoryChannelsPage(param: QChatChannelGetCategoryChannelsPageParam)
41
+ * 查询频道分组下频道列表(分页)
42
+ * @param[in] param 接口参数
43
+ * @return void
44
+ */
45
+ getChannelCategoryChannelsPage(param: QChatChannelGetCategoryChannelsPageParam): Promise<QChatChannelGetCategoryChannelsPageResp>;
46
+ /** @fn updateChannelCategoryWhiteBlackRole(param: QChatChannelCategoryUpdateWhiteBlackRoleParam)
47
+ * 更新频道分组白/黑名单身份组
48
+ * @param[in] param 接口参数
49
+ * @return void
50
+ */
51
+ updateChannelCategoryWhiteBlackRole(param: QChatChannelCategoryUpdateWhiteBlackRoleParam): Promise<QChatChannelCategoryUpdateWhiteBlackRoleResp>;
52
+ /** @fn getExistingChannelCategoryWhiteBlackRoles(param: QChatChannelCategoryGetExistingWhiteBlackRolesParam)
53
+ * 根据身份组ID查询频道分组白/黑名单身份组列表
54
+ * @param[in] param 接口参数
55
+ * @return void
56
+ */
57
+ getExistingChannelCategoryWhiteBlackRoles(param: QChatChannelCategoryGetExistingWhiteBlackRolesParam): Promise<QChatChannelCategoryGetExistingWhiteBlackRolesResp>;
58
+ /** @fn getChannelCategoryWhiteBlackRolesPage(param: QChatChannelCategoryGetWhiteBlackRolesPageParam)
59
+ * 查询频道分组白/黑名单身份组列表(分页)
60
+ * @param[in] param 接口参数
61
+ * @return void
62
+ */
63
+ getChannelCategoryWhiteBlackRolesPage(param: QChatChannelCategoryGetWhiteBlackRolesPageParam): Promise<QChatChannelCategoryGetWhiteBlackRolesPageResp>;
64
+ /** @fn updateChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryUpdateWhiteBlackMembersParam)
65
+ * 更新频道分组白/黑名单成员
66
+ * @param[in] param 接口参数
67
+ * @return void
68
+ */
69
+ updateChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryUpdateWhiteBlackMembersParam): Promise<QChatChannelCategoryUpdateWhiteBlackMembersResp>;
70
+ /** @fn getExistingChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryGetExistingWhiteBlackMembersParam)
71
+ * 根据成员ID查询频道分组白/黑名单成员列表
72
+ * @param[in] param 接口参数
73
+ * @return void
74
+ */
75
+ getExistingChannelCategoryWhiteBlackMembers(param: QChatChannelCategoryGetExistingWhiteBlackMembersParam): Promise<QChatChannelCategoryGetExistingWhiteBlackMembersResp>;
76
+ /** @fn getChannelCategoryWhiteBlackMembersPage(param: QChatChannelCategoryGetWhiteBlackMembersPageParam)
77
+ * 查询频道分组白/黑名单成员列表(分页)
78
+ * @param[in] param 接口参数
79
+ * @return void
80
+ */
81
+ getChannelCategoryWhiteBlackMembersPage(param: QChatChannelCategoryGetWhiteBlackMembersPageParam): Promise<QChatChannelCategoryGetWhiteBlackMembersPageResp>;
82
+ }
@@ -0,0 +1,46 @@
1
+ import { EventEmitter } from 'eventemitter3';
2
+ import { QChatInitParam, QChatCleanupParam, QChatLoginParam, QChatLogoutParam, QChatKickParam, QChatLoginResp, QChatKickResp, QChatLogoutResp, QChatKickedResp, QChatMultispotLoginResp } from '../qchat_def/instance_def';
3
+ export declare interface QChatInstanceEvents {
4
+ /** 登录状态 */
5
+ loginStatus: [QChatLoginResp];
6
+ /** 被踢 */
7
+ kickedOut: [QChatKickedResp];
8
+ /** 多端登录通知 */
9
+ multispotLogin: [QChatMultispotLoginResp];
10
+ }
11
+ export declare class QChatInstanceModule extends EventEmitter<QChatInstanceEvents> {
12
+ instance: any;
13
+ constructor();
14
+ /** 注册全局回调 */
15
+ initEventHandlers(): void;
16
+ /** @fn init(param: QChatInitParam)
17
+ * 圈组模块初始化(SDK初始化时调用一次)
18
+ * @param[in] param 接口参数
19
+ * @return boolean 模块加载结果
20
+ */
21
+ init(param: QChatInitParam): boolean;
22
+ /** @fn cleanup(param: QChatCleanupParam)
23
+ * 圈组模块清理(卸载SDK时调用一次)
24
+ * @param[in] param 接口参数
25
+ * @return boolean 模块清理结果
26
+ */
27
+ cleanup(param: QChatCleanupParam): boolean;
28
+ /** @fn login(param: QChatLoginParam)
29
+ * 登录圈组
30
+ * @param[in] param 接口参数
31
+ * @return void
32
+ */
33
+ login(param: QChatLoginParam): Promise<QChatLoginResp>;
34
+ /** @fn logout(param: QChatLogoutParam)
35
+ * 登出圈组
36
+ * @param[in] param 接口参数
37
+ * @return void
38
+ */
39
+ logout(param: QChatLogoutParam): Promise<QChatLogoutResp>;
40
+ /** @fn kickOtherClients(param: QChatKickParam)
41
+ * 踢掉自己指定的一个其他端
42
+ * @param[in] param 接口参数
43
+ * @return void
44
+ */
45
+ kickOtherClients(param: QChatKickParam): Promise<QChatKickResp>;
46
+ }