node-nim 9.14.3 → 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 (182) 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 -615
  17. package/dist/nim/super_team.js.map +1 -1
  18. package/dist/nim/sysmsg.js +194 -194
  19. package/dist/nim/talk.js +209 -209
  20. package/dist/nim/talk.js.map +1 -1
  21. package/dist/nim/talkex.js +191 -191
  22. package/dist/nim/team.js +818 -830
  23. package/dist/nim/team.js.map +1 -1
  24. package/dist/nim/tool.js +119 -119
  25. package/dist/nim/user.js +201 -201
  26. package/dist/nim_def/client_def.js +245 -245
  27. package/dist/nim_def/client_def.js.map +1 -1
  28. package/dist/nim_def/data_sync_def.js +20 -20
  29. package/dist/nim_def/doc_trans_def.js +16 -16
  30. package/dist/nim_def/friend_def.js +37 -37
  31. package/dist/nim_def/global_def.js +39 -39
  32. package/dist/nim_def/msglog_def.js +148 -148
  33. package/dist/nim_def/nos_def.js +16 -16
  34. package/dist/nim_def/online_session_def.js +2 -2
  35. package/dist/nim_def/pass_through_proxy_def.js +10 -10
  36. package/dist/nim_def/plugin_def.js +2 -2
  37. package/dist/nim_def/session_def.js +26 -26
  38. package/dist/nim_def/subscribe_event_def.js +52 -52
  39. package/dist/nim_def/super_team_def.js +64 -71
  40. package/dist/nim_def/super_team_def.js.map +1 -1
  41. package/dist/nim_def/sysmsg_def.js +28 -28
  42. package/dist/nim_def/talk_def.js +2 -2
  43. package/dist/nim_def/talkex_def.js +2 -2
  44. package/dist/nim_def/team_def.js +69 -76
  45. package/dist/nim_def/team_def.js.map +1 -1
  46. package/dist/nim_def/tool_def.js +11 -11
  47. package/dist/nim_def/user_def.js +22 -22
  48. package/dist/node-nim.js +171 -171
  49. package/dist/node-nim.js.map +1 -1
  50. package/dist/qchat/attachment.js +63 -63
  51. package/dist/qchat/channel.js +314 -314
  52. package/dist/qchat/channel_category.js +187 -187
  53. package/dist/qchat/instance.js +77 -77
  54. package/dist/qchat/message.js +285 -285
  55. package/dist/qchat/role.js +423 -423
  56. package/dist/qchat/server.js +453 -453
  57. package/dist/qchat/system_notification.js +74 -74
  58. package/dist/qchat_def/attachment_def.js +2 -2
  59. package/dist/qchat_def/channel_def.js +2 -2
  60. package/dist/qchat_def/instance_def.js +2 -2
  61. package/dist/qchat_def/message_def.js +2 -2
  62. package/dist/qchat_def/public_def.js +649 -649
  63. package/dist/qchat_def/public_def.js.map +1 -1
  64. package/dist/qchat_def/role_def.js +2 -2
  65. package/dist/qchat_def/server_def.js +2 -2
  66. package/dist/qchat_def/system_notification_def.js +2 -2
  67. package/dist/v2/v2_nim_chatroom_client.js +135 -0
  68. package/dist/v2/v2_nim_chatroom_client.js.map +1 -0
  69. package/dist/v2/v2_nim_chatroom_service.js +244 -0
  70. package/dist/v2/v2_nim_chatroom_service.js.map +1 -0
  71. package/dist/v2/v2_nim_client.js +138 -0
  72. package/dist/v2/v2_nim_client.js.map +1 -0
  73. package/dist/v2/v2_nim_conversation_group_service.js +116 -0
  74. package/dist/v2/v2_nim_conversation_group_service.js.map +1 -0
  75. package/dist/v2/v2_nim_conversation_service.js +236 -0
  76. package/dist/v2/v2_nim_conversation_service.js.map +1 -0
  77. package/dist/v2/v2_nim_friend_service.js +128 -0
  78. package/dist/v2/v2_nim_friend_service.js.map +1 -0
  79. package/dist/v2/v2_nim_login_service.js +119 -123
  80. package/dist/v2/v2_nim_login_service.js.map +1 -1
  81. package/dist/v2/v2_nim_message_service.js +382 -0
  82. package/dist/v2/v2_nim_message_service.js.map +1 -0
  83. package/dist/v2/v2_nim_notification_service.js +30 -0
  84. package/dist/v2/v2_nim_notification_service.js.map +1 -0
  85. package/dist/v2/v2_nim_setting_service.js +86 -0
  86. package/dist/v2/v2_nim_setting_service.js.map +1 -0
  87. package/dist/v2/v2_nim_storage_service.js +58 -0
  88. package/dist/v2/v2_nim_storage_service.js.map +1 -0
  89. package/dist/v2/v2_nim_team_service.js +360 -0
  90. package/dist/v2/v2_nim_team_service.js.map +1 -0
  91. package/dist/v2/v2_nim_user_service.js +76 -0
  92. package/dist/v2/v2_nim_user_service.js.map +1 -0
  93. package/dist/v2/v2_nim_utilities.js +276 -0
  94. package/dist/v2/v2_nim_utilities.js.map +1 -0
  95. package/dist/v2_def/v2_nim_callback_def.js +2 -2
  96. package/dist/v2_def/v2_nim_enum_def.js +1087 -325
  97. package/dist/v2_def/v2_nim_enum_def.js.map +1 -1
  98. package/dist/v2_def/v2_nim_struct_def.js +2 -2
  99. package/package.json +1 -1
  100. package/script/download-sdk.js +2 -2
  101. package/script/publish-to-netease-npm.js +3 -2
  102. package/types/loader.d.ts +2 -2
  103. package/types/nim/client.d.ts +123 -123
  104. package/types/nim/data_sync.d.ts +12 -12
  105. package/types/nim/friend.d.ts +82 -82
  106. package/types/nim/global.d.ts +69 -69
  107. package/types/nim/msglog.d.ts +392 -392
  108. package/types/nim/nos.d.ts +118 -118
  109. package/types/nim/online_session.d.ts +44 -44
  110. package/types/nim/pass_through_proxy.d.ts +24 -24
  111. package/types/nim/plugin.d.ts +39 -39
  112. package/types/nim/session.d.ts +212 -212
  113. package/types/nim/subscribe_event.d.ts +87 -87
  114. package/types/nim/super_team.d.ts +331 -342
  115. package/types/nim/sysmsg.d.ts +105 -105
  116. package/types/nim/talk.d.ts +94 -94
  117. package/types/nim/talkex.d.ts +95 -95
  118. package/types/nim/team.d.ts +461 -467
  119. package/types/nim/tool.d.ts +77 -77
  120. package/types/nim/user.d.ts +111 -111
  121. package/types/nim_def/client_def.d.ts +284 -284
  122. package/types/nim_def/data_sync_def.d.ts +19 -19
  123. package/types/nim_def/doc_trans_def.d.ts +11 -11
  124. package/types/nim_def/friend_def.d.ts +65 -65
  125. package/types/nim_def/global_def.d.ts +62 -62
  126. package/types/nim_def/msglog_def.d.ts +373 -373
  127. package/types/nim_def/nos_def.d.ts +72 -72
  128. package/types/nim_def/online_session_def.d.ts +34 -34
  129. package/types/nim_def/pass_through_proxy_def.d.ts +13 -13
  130. package/types/nim_def/plugin_def.d.ts +8 -8
  131. package/types/nim_def/session_def.d.ts +114 -114
  132. package/types/nim_def/subscribe_event_def.d.ts +83 -83
  133. package/types/nim_def/super_team_def.d.ts +144 -163
  134. package/types/nim_def/sysmsg_def.d.ts +70 -70
  135. package/types/nim_def/talk_def.d.ts +96 -96
  136. package/types/nim_def/talkex_def.d.ts +112 -112
  137. package/types/nim_def/team_def.d.ts +167 -184
  138. package/types/nim_def/tool_def.d.ts +28 -28
  139. package/types/nim_def/user_def.d.ts +59 -59
  140. package/types/node-nim.d.ts +90 -93
  141. package/types/qchat/attachment.d.ts +40 -40
  142. package/types/qchat/channel.d.ts +139 -139
  143. package/types/qchat/channel_category.d.ts +82 -82
  144. package/types/qchat/instance.d.ts +46 -46
  145. package/types/qchat/message.d.ts +128 -128
  146. package/types/qchat/role.d.ts +166 -166
  147. package/types/qchat/server.d.ts +198 -198
  148. package/types/qchat/system_notification.d.ts +39 -39
  149. package/types/qchat_def/attachment_def.d.ts +71 -71
  150. package/types/qchat_def/channel_def.d.ts +643 -643
  151. package/types/qchat_def/instance_def.d.ts +214 -214
  152. package/types/qchat_def/message_def.d.ts +565 -565
  153. package/types/qchat_def/public_def.d.ts +754 -754
  154. package/types/qchat_def/role_def.d.ts +413 -413
  155. package/types/qchat_def/server_def.d.ts +529 -529
  156. package/types/qchat_def/system_notification_def.d.ts +172 -172
  157. package/types/v2/v2_nim_chatroom_client.d.ts +73 -0
  158. package/types/v2/v2_nim_chatroom_service.d.ts +114 -0
  159. package/types/v2/v2_nim_client.d.ts +75 -0
  160. package/types/v2/v2_nim_conversation_group_service.d.ts +54 -0
  161. package/types/v2/v2_nim_conversation_service.d.ts +110 -0
  162. package/types/v2/v2_nim_friend_service.d.ts +58 -0
  163. package/types/v2/v2_nim_login_service.d.ts +80 -96
  164. package/types/v2/v2_nim_message_service.d.ts +143 -0
  165. package/types/v2/v2_nim_notification_service.d.ts +18 -0
  166. package/types/v2/v2_nim_setting_service.d.ts +43 -0
  167. package/types/v2/v2_nim_storage_service.d.ts +28 -0
  168. package/types/v2/v2_nim_team_service.d.ts +184 -0
  169. package/types/v2/v2_nim_user_service.d.ts +34 -0
  170. package/types/v2/v2_nim_utilities.d.ts +168 -0
  171. package/types/v2_def/v2_nim_callback_def.d.ts +7 -20
  172. package/types/v2_def/v2_nim_enum_def.d.ts +1009 -300
  173. package/types/v2_def/v2_nim_struct_def.d.ts +1539 -338
  174. package/dist/chatroom/chatroom.js +0 -263
  175. package/dist/chatroom/chatroom.js.map +0 -1
  176. package/dist/chatroom_def/chatroom_def.js +0 -120
  177. package/dist/chatroom_def/chatroom_def.js.map +0 -1
  178. package/dist/v2/v2_nim_instance.js +0 -44
  179. package/dist/v2/v2_nim_instance.js.map +0 -1
  180. package/types/chatroom/chatroom.d.ts +0 -55
  181. package/types/chatroom_def/chatroom_def.d.ts +0 -448
  182. package/types/v2/v2_nim_instance.d.ts +0 -25
@@ -1,82 +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
- }
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
+ }
@@ -1,46 +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
- }
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
+ }
@@ -1,128 +1,128 @@
1
- import { EventEmitter } from 'eventemitter3';
2
- import { QChatSendMessageParam, QChatUpdateMessageParam, QChatRevokeMessageParam, QChatDeleteMessageParam, QChatGetMessagesParam, QChatGetMessagesCacheParam, QChatGetLastMessagesParam, QChatMarkMessageReadParam, QChatReplyMessageParam, QChatGetMessageHistoryByIdsParam, QChatGetReferMessagesParam, QChatGetThreadMessagesParam, QChatGetThreadRootMessagesMetaParam, QChatAddQuickCommentParam, QChatRemoveQuickCommentParam, QChatGetQuickCommentsParam, QChatAddQuickCommentResp, QChatGetLastMessagesResp, QChatGetMessageHistoryByIdsResp, QChatGetMessagesCacheResp, QChatGetMessagesResp, QChatGetQuickCommentsResp, QChatGetReferMessagesResp, QChatGetThreadMessagesResp, QChatGetThreadRootMessagesMetaResp, QChatMarkMessageReadResp, QChatRemoveQuickCommentResp, QChatReplyMessageResp, QChatSendMessageResp, QChatUpdateMessageResp, QChatMsgUpdatedResp, QChatRecvMsgResp, QChatMessageSearchPageParam, QChatMessageSearchPageResp, QChatAreMentionedMeMessagesParam, QChatAreMentionedMeMessagesResp, QChatGetMentionedMeMessagesParam, QChatGetMentionedMeMessagesResp } from '../qchat_def/message_def';
3
- export declare interface QChatMessageEvents {
4
- /** 新消息通知 */
5
- message: [QChatRecvMsgResp];
6
- /** 消息变更通知 */
7
- update: [QChatMsgUpdatedResp];
8
- }
9
- export declare class QChatMessageModule extends EventEmitter<QChatMessageEvents> {
10
- instance: any;
11
- constructor();
12
- /** 注册全局回调 */
13
- initEventHandlers(): void;
14
- /** @fn send(param: QChatSendMessageParam)
15
- * 发送消息
16
- * @param[in] param 接口参数 @see QChatSendMessageParam
17
- * @return void
18
- */
19
- send(param: QChatSendMessageParam): Promise<QChatSendMessageResp>;
20
- /** @fn update(param: QChatUpdateMessageParam)
21
- * 更新消息
22
- * @param[in] param 接口参数 @see QChatUpdateMessageParam
23
- */
24
- update(param: QChatUpdateMessageParam): Promise<QChatUpdateMessageResp>;
25
- /** @fn revoke(param: QChatRevokeMessageParam)
26
- * 撤回消息,撤回未读消息不影响未读数
27
- * @param[in] param 接口参数 @see QChatRevokeMessageParam
28
- * @return void
29
- */
30
- revoke(param: QChatRevokeMessageParam): Promise<QChatUpdateMessageResp>;
31
- /** @fn delete(param: QChatDeleteMessageParam)
32
- * 删除消息,删除未读消息影响未读数
33
- * @param[in] param 接口参数 @see QChatDeleteMessageParam
34
- * @return void
35
- */
36
- delete(param: QChatDeleteMessageParam): Promise<QChatUpdateMessageResp>;
37
- /** @fn getMessages(param: QChatGetMessagesParam)
38
- * 查询历史消息
39
- * @param[in] param 接口参数 @see QChatGetMessagesParam
40
- * @return void
41
- */
42
- getMessages(param: QChatGetMessagesParam): Promise<QChatGetMessagesResp>;
43
- /** @fn getMessagesCache(param: QChatGetMessagesCacheParam)
44
- * @brief 查询本地消息历史缓存, 仅用于无网络情况或加速页面显示时使用,恢复通信后应使用GetMessages的结果进行覆盖
45
- *
46
- * @param param 要查询的服务器、频道信息 @see QChatGetMessagesCacheParam
47
- * @return void
48
- */
49
- getMessagesCache(param: QChatGetMessagesCacheParam): Promise<QChatGetMessagesCacheResp>;
50
- /** @fn getLastMessages(param: QChatGetLastMessagesParam)
51
- * 查询频道最后一条消息
52
- * @param[in] param 接口参数 @see QChatGetLastMessagesParam
53
- * @return void
54
- */
55
- getLastMessages(param: QChatGetLastMessagesParam): Promise<QChatGetLastMessagesResp>;
56
- /** @fn markRead(param: QChatMarkMessageReadParam)
57
- * 标记消息已读
58
- * @param[in] param 接口参数 @see QChatMarkMessageReadParam
59
- * @return void
60
- */
61
- markRead(param: QChatMarkMessageReadParam): Promise<QChatMarkMessageReadResp>;
62
- /** @fn reply(param: QChatReplyMessageParam)
63
- * @brief 回复指定消息
64
- * @since v9.1.0
65
- * @param[in] param 接口参数 @see QChatReplyMessageParam
66
- */
67
- reply(param: QChatReplyMessageParam): Promise<QChatReplyMessageResp>;
68
- /** @fn getMessageHistoryByIds(param: QChatGetMessageHistoryByIdsParam)
69
- * @brief 通过一组消息 ID 查询消息详情
70
- * @since v9.1.0
71
- * @param param 接口参数 @see QChatGetMessageHistoryByIdsParam
72
- */
73
- getMessageHistoryByIds(param: QChatGetMessageHistoryByIdsParam): Promise<QChatGetMessageHistoryByIdsResp>;
74
- /** @fn getReferMessages(param: QChatGetReferMessagesParam)
75
- * @brief 获取指定消息的引用消息内容
76
- * @since v9.1.0
77
- * @param param 接口参数 @see QChatGetReferMessagesParam
78
- */
79
- getReferMessages(param: QChatGetReferMessagesParam): Promise<QChatGetReferMessagesResp>;
80
- /** @fn getThreadMessages(param: QChatGetThreadMessagesParam)
81
- * @brief 分页获取一个 thread 消息得详细回复消息列表
82
- * @since v9.1.0
83
- * @param param 接口参数 @see QChatGetThreadMessagesParam
84
- */
85
- getThreadMessages(param: QChatGetThreadMessagesParam): Promise<QChatGetThreadMessagesResp>;
86
- /** @fn getThreadRootMessagesMeta(param: QChatGetThreadRootMessagesMetaParam)
87
- * @brief 获取一批 thread root 消息的基本信息(回复次数,最后回复时间)
88
- * @since v9.1.0
89
- * @param param 接口参数 @see QChatGetThreadRootMessagesMetaParam
90
- */
91
- getThreadRootMessagesMeta(param: QChatGetThreadRootMessagesMetaParam): Promise<QChatGetThreadRootMessagesMetaResp>;
92
- /** @fn getMentionedMeMessages(param: QChatGetMentionedMeMessagesParam)
93
- * @brief 查询未读消息中 @ 当前用户的消息
94
- * @since v9.9.0
95
- * @param param 接口参数 @see QChatGetMentionedMeMessagesParam
96
- */
97
- getMentionedMeMessages(param: QChatGetMentionedMeMessagesParam): Promise<QChatGetMentionedMeMessagesResp>;
98
- /** @fn areMentionedMeMessages(param: QChatAreMentionedMeMessagesParam)
99
- * @brief 查询指定消息中是否有 @ 当前用户的消息
100
- * @since v9.9.0
101
- * @param param 接口参数 @see QChatAreMentionedMeMessagesParam
102
- */
103
- areMentionedMeMessages(param: QChatAreMentionedMeMessagesParam): Promise<QChatAreMentionedMeMessagesResp>;
104
- /** @fn addQuickComment(param: QChatAddQuickCommentParam)
105
- * @brief 对指定消息添加快捷评论
106
- * @since v9.1.0
107
- * @param param 接口参数 @see QChatAddQuickCommentParam
108
- */
109
- addQuickComment(param: QChatAddQuickCommentParam): Promise<QChatAddQuickCommentResp>;
110
- /** @fn removeQuickComment(param: QChatRemoveQuickCommentParam)
111
- * @brief 从某个消息上移除快捷评论
112
- * @since v9.1.0
113
- * @param param 接口参数 @see QChatRemoveQuickComm entParam
114
- */
115
- removeQuickComment(param: QChatRemoveQuickCommentParam): Promise<QChatRemoveQuickCommentResp>;
116
- /** @fn getQuickComments(param: QChatGetQuickCommentsParam)
117
- * @brief 获取指定消息包含的快捷评论列表
118
- * @since v9.1.0
119
- * @param param 接口参数 @see QChatGetQuickCommentsParam
120
- */
121
- getQuickComments(param: QChatGetQuickCommentsParam): Promise<QChatGetQuickCommentsResp>;
122
- /** @fn searchMsgByPage(param: QChatMessageSearchPageParam)
123
- * @brief 分页搜索消息
124
- * @since v9.4.0
125
- * @param param 接口参数 @see QChatSearchMsgByPageParam
126
- */
127
- searchMsgByPage(param: QChatMessageSearchPageParam): Promise<QChatMessageSearchPageResp>;
128
- }
1
+ import { EventEmitter } from 'eventemitter3';
2
+ import { QChatSendMessageParam, QChatUpdateMessageParam, QChatRevokeMessageParam, QChatDeleteMessageParam, QChatGetMessagesParam, QChatGetMessagesCacheParam, QChatGetLastMessagesParam, QChatMarkMessageReadParam, QChatReplyMessageParam, QChatGetMessageHistoryByIdsParam, QChatGetReferMessagesParam, QChatGetThreadMessagesParam, QChatGetThreadRootMessagesMetaParam, QChatAddQuickCommentParam, QChatRemoveQuickCommentParam, QChatGetQuickCommentsParam, QChatAddQuickCommentResp, QChatGetLastMessagesResp, QChatGetMessageHistoryByIdsResp, QChatGetMessagesCacheResp, QChatGetMessagesResp, QChatGetQuickCommentsResp, QChatGetReferMessagesResp, QChatGetThreadMessagesResp, QChatGetThreadRootMessagesMetaResp, QChatMarkMessageReadResp, QChatRemoveQuickCommentResp, QChatReplyMessageResp, QChatSendMessageResp, QChatUpdateMessageResp, QChatMsgUpdatedResp, QChatRecvMsgResp, QChatMessageSearchPageParam, QChatMessageSearchPageResp, QChatAreMentionedMeMessagesParam, QChatAreMentionedMeMessagesResp, QChatGetMentionedMeMessagesParam, QChatGetMentionedMeMessagesResp } from '../qchat_def/message_def';
3
+ export declare interface QChatMessageEvents {
4
+ /** 新消息通知 */
5
+ message: [QChatRecvMsgResp];
6
+ /** 消息变更通知 */
7
+ update: [QChatMsgUpdatedResp];
8
+ }
9
+ export declare class QChatMessageModule extends EventEmitter<QChatMessageEvents> {
10
+ instance: any;
11
+ constructor();
12
+ /** 注册全局回调 */
13
+ initEventHandlers(): void;
14
+ /** @fn send(param: QChatSendMessageParam)
15
+ * 发送消息
16
+ * @param[in] param 接口参数 @see QChatSendMessageParam
17
+ * @return void
18
+ */
19
+ send(param: QChatSendMessageParam): Promise<QChatSendMessageResp>;
20
+ /** @fn update(param: QChatUpdateMessageParam)
21
+ * 更新消息
22
+ * @param[in] param 接口参数 @see QChatUpdateMessageParam
23
+ */
24
+ update(param: QChatUpdateMessageParam): Promise<QChatUpdateMessageResp>;
25
+ /** @fn revoke(param: QChatRevokeMessageParam)
26
+ * 撤回消息,撤回未读消息不影响未读数
27
+ * @param[in] param 接口参数 @see QChatRevokeMessageParam
28
+ * @return void
29
+ */
30
+ revoke(param: QChatRevokeMessageParam): Promise<QChatUpdateMessageResp>;
31
+ /** @fn delete(param: QChatDeleteMessageParam)
32
+ * 删除消息,删除未读消息影响未读数
33
+ * @param[in] param 接口参数 @see QChatDeleteMessageParam
34
+ * @return void
35
+ */
36
+ delete(param: QChatDeleteMessageParam): Promise<QChatUpdateMessageResp>;
37
+ /** @fn getMessages(param: QChatGetMessagesParam)
38
+ * 查询历史消息
39
+ * @param[in] param 接口参数 @see QChatGetMessagesParam
40
+ * @return void
41
+ */
42
+ getMessages(param: QChatGetMessagesParam): Promise<QChatGetMessagesResp>;
43
+ /** @fn getMessagesCache(param: QChatGetMessagesCacheParam)
44
+ * @brief 查询本地消息历史缓存, 仅用于无网络情况或加速页面显示时使用,恢复通信后应使用GetMessages的结果进行覆盖
45
+ *
46
+ * @param param 要查询的服务器、频道信息 @see QChatGetMessagesCacheParam
47
+ * @return void
48
+ */
49
+ getMessagesCache(param: QChatGetMessagesCacheParam): Promise<QChatGetMessagesCacheResp>;
50
+ /** @fn getLastMessages(param: QChatGetLastMessagesParam)
51
+ * 查询频道最后一条消息
52
+ * @param[in] param 接口参数 @see QChatGetLastMessagesParam
53
+ * @return void
54
+ */
55
+ getLastMessages(param: QChatGetLastMessagesParam): Promise<QChatGetLastMessagesResp>;
56
+ /** @fn markRead(param: QChatMarkMessageReadParam)
57
+ * 标记消息已读
58
+ * @param[in] param 接口参数 @see QChatMarkMessageReadParam
59
+ * @return void
60
+ */
61
+ markRead(param: QChatMarkMessageReadParam): Promise<QChatMarkMessageReadResp>;
62
+ /** @fn reply(param: QChatReplyMessageParam)
63
+ * @brief 回复指定消息
64
+ * @since v9.1.0
65
+ * @param[in] param 接口参数 @see QChatReplyMessageParam
66
+ */
67
+ reply(param: QChatReplyMessageParam): Promise<QChatReplyMessageResp>;
68
+ /** @fn getMessageHistoryByIds(param: QChatGetMessageHistoryByIdsParam)
69
+ * @brief 通过一组消息 ID 查询消息详情
70
+ * @since v9.1.0
71
+ * @param param 接口参数 @see QChatGetMessageHistoryByIdsParam
72
+ */
73
+ getMessageHistoryByIds(param: QChatGetMessageHistoryByIdsParam): Promise<QChatGetMessageHistoryByIdsResp>;
74
+ /** @fn getReferMessages(param: QChatGetReferMessagesParam)
75
+ * @brief 获取指定消息的引用消息内容
76
+ * @since v9.1.0
77
+ * @param param 接口参数 @see QChatGetReferMessagesParam
78
+ */
79
+ getReferMessages(param: QChatGetReferMessagesParam): Promise<QChatGetReferMessagesResp>;
80
+ /** @fn getThreadMessages(param: QChatGetThreadMessagesParam)
81
+ * @brief 分页获取一个 thread 消息得详细回复消息列表
82
+ * @since v9.1.0
83
+ * @param param 接口参数 @see QChatGetThreadMessagesParam
84
+ */
85
+ getThreadMessages(param: QChatGetThreadMessagesParam): Promise<QChatGetThreadMessagesResp>;
86
+ /** @fn getThreadRootMessagesMeta(param: QChatGetThreadRootMessagesMetaParam)
87
+ * @brief 获取一批 thread root 消息的基本信息(回复次数,最后回复时间)
88
+ * @since v9.1.0
89
+ * @param param 接口参数 @see QChatGetThreadRootMessagesMetaParam
90
+ */
91
+ getThreadRootMessagesMeta(param: QChatGetThreadRootMessagesMetaParam): Promise<QChatGetThreadRootMessagesMetaResp>;
92
+ /** @fn getMentionedMeMessages(param: QChatGetMentionedMeMessagesParam)
93
+ * @brief 查询未读消息中 @ 当前用户的消息
94
+ * @since v9.9.0
95
+ * @param param 接口参数 @see QChatGetMentionedMeMessagesParam
96
+ */
97
+ getMentionedMeMessages(param: QChatGetMentionedMeMessagesParam): Promise<QChatGetMentionedMeMessagesResp>;
98
+ /** @fn areMentionedMeMessages(param: QChatAreMentionedMeMessagesParam)
99
+ * @brief 查询指定消息中是否有 @ 当前用户的消息
100
+ * @since v9.9.0
101
+ * @param param 接口参数 @see QChatAreMentionedMeMessagesParam
102
+ */
103
+ areMentionedMeMessages(param: QChatAreMentionedMeMessagesParam): Promise<QChatAreMentionedMeMessagesResp>;
104
+ /** @fn addQuickComment(param: QChatAddQuickCommentParam)
105
+ * @brief 对指定消息添加快捷评论
106
+ * @since v9.1.0
107
+ * @param param 接口参数 @see QChatAddQuickCommentParam
108
+ */
109
+ addQuickComment(param: QChatAddQuickCommentParam): Promise<QChatAddQuickCommentResp>;
110
+ /** @fn removeQuickComment(param: QChatRemoveQuickCommentParam)
111
+ * @brief 从某个消息上移除快捷评论
112
+ * @since v9.1.0
113
+ * @param param 接口参数 @see QChatRemoveQuickComm entParam
114
+ */
115
+ removeQuickComment(param: QChatRemoveQuickCommentParam): Promise<QChatRemoveQuickCommentResp>;
116
+ /** @fn getQuickComments(param: QChatGetQuickCommentsParam)
117
+ * @brief 获取指定消息包含的快捷评论列表
118
+ * @since v9.1.0
119
+ * @param param 接口参数 @see QChatGetQuickCommentsParam
120
+ */
121
+ getQuickComments(param: QChatGetQuickCommentsParam): Promise<QChatGetQuickCommentsResp>;
122
+ /** @fn searchMsgByPage(param: QChatMessageSearchPageParam)
123
+ * @brief 分页搜索消息
124
+ * @since v9.4.0
125
+ * @param param 接口参数 @see QChatSearchMsgByPageParam
126
+ */
127
+ searchMsgByPage(param: QChatMessageSearchPageParam): Promise<QChatMessageSearchPageResp>;
128
+ }