node-nim 9.14.2 → 9.14.4

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 (132) hide show
  1. package/dist/chatroom/chatroom.js +262 -262
  2. package/dist/chatroom_def/chatroom_def.js +119 -119
  3. package/dist/loader.js +35 -35
  4. package/dist/nim/client.js +184 -184
  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 +180 -180
  10. package/dist/nim/online_session.js +85 -85
  11. package/dist/nim/pass_through_proxy.js +39 -39
  12. package/dist/nim/plugin.js +65 -65
  13. package/dist/nim/session.js +392 -392
  14. package/dist/nim/subscribe_event.js +142 -142
  15. package/dist/nim/super_team.js +651 -592
  16. package/dist/nim/super_team.js.map +1 -1
  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 +866 -818
  22. package/dist/nim/team.js.map +1 -1
  23. package/dist/nim/tool.js +119 -119
  24. package/dist/nim/user.js +201 -201
  25. package/dist/nim_def/client_def.js +245 -245
  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 +71 -64
  38. package/dist/nim_def/super_team_def.js.map +1 -1
  39. package/dist/nim_def/sysmsg_def.js +28 -28
  40. package/dist/nim_def/talk_def.js +2 -2
  41. package/dist/nim_def/talkex_def.js +2 -2
  42. package/dist/nim_def/team_def.js +76 -69
  43. package/dist/nim_def/team_def.js.map +1 -1
  44. package/dist/nim_def/tool_def.js +11 -11
  45. package/dist/nim_def/user_def.js +22 -22
  46. package/dist/node-nim.js +171 -171
  47. package/dist/qchat/attachment.js +63 -63
  48. package/dist/qchat/channel.js +314 -314
  49. package/dist/qchat/channel_category.js +187 -187
  50. package/dist/qchat/instance.js +77 -77
  51. package/dist/qchat/message.js +285 -285
  52. package/dist/qchat/role.js +423 -423
  53. package/dist/qchat/server.js +453 -453
  54. package/dist/qchat/system_notification.js +74 -74
  55. package/dist/qchat_def/attachment_def.js +2 -2
  56. package/dist/qchat_def/channel_def.js +2 -2
  57. package/dist/qchat_def/instance_def.js +2 -2
  58. package/dist/qchat_def/message_def.js +2 -2
  59. package/dist/qchat_def/public_def.js +649 -649
  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_instance.js +43 -43
  64. package/dist/v2/v2_nim_login_service.js +123 -123
  65. package/dist/v2_def/v2_nim_callback_def.js +2 -2
  66. package/dist/v2_def/v2_nim_enum_def.js +325 -325
  67. package/dist/v2_def/v2_nim_struct_def.js +2 -2
  68. package/package.json +74 -74
  69. package/script/download-sdk.js +78 -78
  70. package/script/exec-node-nim-tester.js +17 -17
  71. package/types/chatroom/chatroom.d.ts +55 -55
  72. package/types/chatroom_def/chatroom_def.d.ts +448 -448
  73. package/types/loader.d.ts +2 -2
  74. package/types/nim/client.d.ts +123 -123
  75. package/types/nim/data_sync.d.ts +12 -12
  76. package/types/nim/friend.d.ts +82 -82
  77. package/types/nim/global.d.ts +69 -69
  78. package/types/nim/msglog.d.ts +392 -392
  79. package/types/nim/nos.d.ts +118 -118
  80. package/types/nim/online_session.d.ts +44 -44
  81. package/types/nim/pass_through_proxy.d.ts +24 -24
  82. package/types/nim/plugin.d.ts +39 -39
  83. package/types/nim/session.d.ts +212 -212
  84. package/types/nim/subscribe_event.d.ts +87 -87
  85. package/types/nim/super_team.d.ts +356 -331
  86. package/types/nim/sysmsg.d.ts +105 -105
  87. package/types/nim/talk.d.ts +94 -94
  88. package/types/nim/talkex.d.ts +95 -95
  89. package/types/nim/team.d.ts +481 -461
  90. package/types/nim/tool.d.ts +77 -77
  91. package/types/nim/user.d.ts +111 -111
  92. package/types/nim_def/client_def.d.ts +284 -284
  93. package/types/nim_def/data_sync_def.d.ts +19 -19
  94. package/types/nim_def/doc_trans_def.d.ts +11 -11
  95. package/types/nim_def/friend_def.d.ts +65 -65
  96. package/types/nim_def/global_def.d.ts +62 -62
  97. package/types/nim_def/msglog_def.d.ts +373 -373
  98. package/types/nim_def/nos_def.d.ts +72 -72
  99. package/types/nim_def/online_session_def.d.ts +34 -34
  100. package/types/nim_def/pass_through_proxy_def.d.ts +13 -13
  101. package/types/nim_def/plugin_def.d.ts +8 -8
  102. package/types/nim_def/session_def.d.ts +114 -114
  103. package/types/nim_def/subscribe_event_def.d.ts +83 -83
  104. package/types/nim_def/super_team_def.d.ts +165 -137
  105. package/types/nim_def/sysmsg_def.d.ts +70 -70
  106. package/types/nim_def/talk_def.d.ts +96 -96
  107. package/types/nim_def/talkex_def.d.ts +112 -112
  108. package/types/nim_def/team_def.d.ts +186 -167
  109. package/types/nim_def/tool_def.d.ts +28 -28
  110. package/types/nim_def/user_def.d.ts +59 -59
  111. package/types/node-nim.d.ts +93 -93
  112. package/types/qchat/attachment.d.ts +40 -40
  113. package/types/qchat/channel.d.ts +139 -139
  114. package/types/qchat/channel_category.d.ts +82 -82
  115. package/types/qchat/instance.d.ts +46 -46
  116. package/types/qchat/message.d.ts +128 -128
  117. package/types/qchat/role.d.ts +166 -166
  118. package/types/qchat/server.d.ts +198 -198
  119. package/types/qchat/system_notification.d.ts +39 -39
  120. package/types/qchat_def/attachment_def.d.ts +71 -71
  121. package/types/qchat_def/channel_def.d.ts +643 -643
  122. package/types/qchat_def/instance_def.d.ts +214 -214
  123. package/types/qchat_def/message_def.d.ts +565 -565
  124. package/types/qchat_def/public_def.d.ts +754 -754
  125. package/types/qchat_def/role_def.d.ts +413 -413
  126. package/types/qchat_def/server_def.d.ts +529 -529
  127. package/types/qchat_def/system_notification_def.d.ts +172 -172
  128. package/types/v2/v2_nim_instance.d.ts +25 -25
  129. package/types/v2/v2_nim_login_service.d.ts +96 -96
  130. package/types/v2_def/v2_nim_callback_def.d.ts +20 -20
  131. package/types/v2_def/v2_nim_enum_def.d.ts +300 -300
  132. package/types/v2_def/v2_nim_struct_def.d.ts +338 -338
@@ -1,93 +1,93 @@
1
- import { NIMClient } from './nim/client';
2
- import { NIMDataSync } from './nim/data_sync';
3
- import { NIMFriend } from './nim/friend';
4
- import { NIMGlobal } from './nim/global';
5
- import { NIMMsgLog } from './nim/msglog';
6
- import { NIMNOS } from './nim/nos';
7
- import { NIMOnlineSession } from './nim/online_session';
8
- import { NIMPassThroughProxy } from './nim/pass_through_proxy';
9
- import { NIMSession } from './nim/session';
10
- import { NIMSubscribeEvent } from './nim/subscribe_event';
11
- import { NIMSuperTeam } from './nim/super_team';
12
- import { NIMSysMsg } from './nim/sysmsg';
13
- import { NIMTalk } from './nim/talk';
14
- import { NIMTeam } from './nim/team';
15
- import { NIMTool } from './nim/tool';
16
- import { NIMUser } from './nim/user';
17
- import { NIMPlugin } from './nim/plugin';
18
- import { NIMTalkEx } from './nim/talkex';
19
- import { ChatRoomModule } from './chatroom/chatroom';
20
- import { QChatInstanceModule } from './qchat/instance';
21
- import { QChatServerModule } from './qchat/server';
22
- import { QChatChannelModule } from './qchat/channel';
23
- import { QChatChannelCategoryModule } from './qchat/channel_category';
24
- import { QChatMessageModule } from './qchat/message';
25
- import { QChatSystemNotificationModule } from './qchat/system_notification';
26
- import { QChatAttachmentModule } from './qchat/attachment';
27
- import { QChatRoleModule } from './qchat/role';
28
- import { V2NIMInstance } from './v2/v2_nim_instance';
29
- export { NIMClient, NIMDataSync, NIMFriend, NIMGlobal, NIMMsgLog, NIMNOS, NIMOnlineSession, NIMPassThroughProxy, NIMSession, NIMSubscribeEvent, NIMSuperTeam, NIMSysMsg, NIMTalk, NIMTeam, NIMTool, NIMUser, NIMPlugin, NIMTalkEx, ChatRoomModule, QChatInstanceModule, QChatServerModule, QChatChannelModule, QChatChannelCategoryModule, QChatMessageModule, QChatSystemNotificationModule, QChatAttachmentModule, QChatRoleModule };
30
- export * from './nim_def/client_def';
31
- export * from './nim_def/data_sync_def';
32
- export * from './nim_def/friend_def';
33
- export * from './nim_def/global_def';
34
- export * from './nim_def/msglog_def';
35
- export * from './nim_def/nos_def';
36
- export * from './nim_def/online_session_def';
37
- export * from './nim_def/pass_through_proxy_def';
38
- export * from './nim_def/session_def';
39
- export * from './nim_def/subscribe_event_def';
40
- export * from './nim_def/super_team_def';
41
- export * from './nim_def/sysmsg_def';
42
- export * from './nim_def/talk_def';
43
- export * from './nim_def/team_def';
44
- export * from './nim_def/tool_def';
45
- export * from './nim_def/user_def';
46
- export * from './nim_def/plugin_def';
47
- export * from './nim_def/talkex_def';
48
- export * from './chatroom_def/chatroom_def';
49
- export * from './qchat_def/instance_def';
50
- export * from './qchat_def/server_def';
51
- export * from './qchat_def/channel_def';
52
- export * from './qchat_def/message_def';
53
- export * from './qchat_def/system_notification_def';
54
- export * from './qchat_def/attachment_def';
55
- export * from './qchat_def/role_def';
56
- export declare class NIM {
57
- client: NIMClient;
58
- dataSync: NIMDataSync;
59
- friend: NIMFriend;
60
- global: NIMGlobal;
61
- msgLog: NIMMsgLog;
62
- nos: NIMNOS;
63
- onlineSession: NIMOnlineSession;
64
- passThroughProxy: NIMPassThroughProxy;
65
- session: NIMSession;
66
- subscribeEvent: NIMSubscribeEvent;
67
- superTeam: NIMSuperTeam;
68
- sysMsg: NIMSysMsg;
69
- talk: NIMTalk;
70
- team: NIMTeam;
71
- tool: NIMTool;
72
- user: NIMUser;
73
- plugin: NIMPlugin;
74
- talkEx: NIMTalkEx;
75
- initEventHandlers(): void;
76
- }
77
- export declare class ChatRoom extends ChatRoomModule {
78
- }
79
- export declare class QChat {
80
- instance: QChatInstanceModule;
81
- server: QChatServerModule;
82
- channel: QChatChannelModule;
83
- channelCategory: QChatChannelCategoryModule;
84
- message: QChatMessageModule;
85
- systemNotification: QChatSystemNotificationModule;
86
- attachment: QChatAttachmentModule;
87
- role: QChatRoleModule;
88
- initEventHandlers(): void;
89
- }
90
- export declare const nim: NIM;
91
- export declare const chatroom: ChatRoom;
92
- export declare const qchat: QChat;
93
- export declare const v2: V2NIMInstance;
1
+ import { NIMClient } from './nim/client';
2
+ import { NIMDataSync } from './nim/data_sync';
3
+ import { NIMFriend } from './nim/friend';
4
+ import { NIMGlobal } from './nim/global';
5
+ import { NIMMsgLog } from './nim/msglog';
6
+ import { NIMNOS } from './nim/nos';
7
+ import { NIMOnlineSession } from './nim/online_session';
8
+ import { NIMPassThroughProxy } from './nim/pass_through_proxy';
9
+ import { NIMSession } from './nim/session';
10
+ import { NIMSubscribeEvent } from './nim/subscribe_event';
11
+ import { NIMSuperTeam } from './nim/super_team';
12
+ import { NIMSysMsg } from './nim/sysmsg';
13
+ import { NIMTalk } from './nim/talk';
14
+ import { NIMTeam } from './nim/team';
15
+ import { NIMTool } from './nim/tool';
16
+ import { NIMUser } from './nim/user';
17
+ import { NIMPlugin } from './nim/plugin';
18
+ import { NIMTalkEx } from './nim/talkex';
19
+ import { ChatRoomModule } from './chatroom/chatroom';
20
+ import { QChatInstanceModule } from './qchat/instance';
21
+ import { QChatServerModule } from './qchat/server';
22
+ import { QChatChannelModule } from './qchat/channel';
23
+ import { QChatChannelCategoryModule } from './qchat/channel_category';
24
+ import { QChatMessageModule } from './qchat/message';
25
+ import { QChatSystemNotificationModule } from './qchat/system_notification';
26
+ import { QChatAttachmentModule } from './qchat/attachment';
27
+ import { QChatRoleModule } from './qchat/role';
28
+ import { V2NIMInstance } from './v2/v2_nim_instance';
29
+ export { NIMClient, NIMDataSync, NIMFriend, NIMGlobal, NIMMsgLog, NIMNOS, NIMOnlineSession, NIMPassThroughProxy, NIMSession, NIMSubscribeEvent, NIMSuperTeam, NIMSysMsg, NIMTalk, NIMTeam, NIMTool, NIMUser, NIMPlugin, NIMTalkEx, ChatRoomModule, QChatInstanceModule, QChatServerModule, QChatChannelModule, QChatChannelCategoryModule, QChatMessageModule, QChatSystemNotificationModule, QChatAttachmentModule, QChatRoleModule };
30
+ export * from './nim_def/client_def';
31
+ export * from './nim_def/data_sync_def';
32
+ export * from './nim_def/friend_def';
33
+ export * from './nim_def/global_def';
34
+ export * from './nim_def/msglog_def';
35
+ export * from './nim_def/nos_def';
36
+ export * from './nim_def/online_session_def';
37
+ export * from './nim_def/pass_through_proxy_def';
38
+ export * from './nim_def/session_def';
39
+ export * from './nim_def/subscribe_event_def';
40
+ export * from './nim_def/super_team_def';
41
+ export * from './nim_def/sysmsg_def';
42
+ export * from './nim_def/talk_def';
43
+ export * from './nim_def/team_def';
44
+ export * from './nim_def/tool_def';
45
+ export * from './nim_def/user_def';
46
+ export * from './nim_def/plugin_def';
47
+ export * from './nim_def/talkex_def';
48
+ export * from './chatroom_def/chatroom_def';
49
+ export * from './qchat_def/instance_def';
50
+ export * from './qchat_def/server_def';
51
+ export * from './qchat_def/channel_def';
52
+ export * from './qchat_def/message_def';
53
+ export * from './qchat_def/system_notification_def';
54
+ export * from './qchat_def/attachment_def';
55
+ export * from './qchat_def/role_def';
56
+ export declare class NIM {
57
+ client: NIMClient;
58
+ dataSync: NIMDataSync;
59
+ friend: NIMFriend;
60
+ global: NIMGlobal;
61
+ msgLog: NIMMsgLog;
62
+ nos: NIMNOS;
63
+ onlineSession: NIMOnlineSession;
64
+ passThroughProxy: NIMPassThroughProxy;
65
+ session: NIMSession;
66
+ subscribeEvent: NIMSubscribeEvent;
67
+ superTeam: NIMSuperTeam;
68
+ sysMsg: NIMSysMsg;
69
+ talk: NIMTalk;
70
+ team: NIMTeam;
71
+ tool: NIMTool;
72
+ user: NIMUser;
73
+ plugin: NIMPlugin;
74
+ talkEx: NIMTalkEx;
75
+ initEventHandlers(): void;
76
+ }
77
+ export declare class ChatRoom extends ChatRoomModule {
78
+ }
79
+ export declare class QChat {
80
+ instance: QChatInstanceModule;
81
+ server: QChatServerModule;
82
+ channel: QChatChannelModule;
83
+ channelCategory: QChatChannelCategoryModule;
84
+ message: QChatMessageModule;
85
+ systemNotification: QChatSystemNotificationModule;
86
+ attachment: QChatAttachmentModule;
87
+ role: QChatRoleModule;
88
+ initEventHandlers(): void;
89
+ }
90
+ export declare const nim: NIM;
91
+ export declare const chatroom: ChatRoom;
92
+ export declare const qchat: QChat;
93
+ export declare const v2: V2NIMInstance;
@@ -1,40 +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
- }
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
+ }
@@ -1,139 +1,139 @@
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, QChatChannelSubscribeAsVisitorParam, QChatChannelSubscribeAsVisitorResp } 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 subscribeAsVisitor(param: QChatChannelSubscribeAsVisitorParam)
43
- * 以游客模式订阅频道未读状态、未读数或未读消息、事件
44
- * @param[in] param 接口参数
45
- * @return void
46
- */
47
- subscribeAsVisitor(param: QChatChannelSubscribeAsVisitorParam): Promise<QChatChannelSubscribeAsVisitorResp>;
48
- /** @fn queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam)
49
- * 查询消息未读数
50
- * @param[in] param 接口参数
51
- * @return void
52
- */
53
- queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam): Promise<QChatChannelQueryUnreadInfoResp>;
54
- /** @fn getChannels(param: QChatChannelGetChannelsParam)
55
- * 查询频道列表
56
- * @param[in] param 接口参数
57
- * @return void
58
- */
59
- getChannels(param: QChatChannelGetChannelsParam): Promise<QChatChannelGetChannelsResp>;
60
- /** @fn getChannelsByPage(param: QChatChannelGetChannelsPageParam)
61
- * 查询频道列表(分页)
62
- * @param[in] param 接口参数
63
- * @return void
64
- */
65
- getChannelsByPage(param: QChatChannelGetChannelsPageParam): Promise<QChatChannelGetChannelsPageResp>;
66
- /** @fn getMembersByPage(param: QChatChannelGetMembersPageParam)
67
- * 查询频道用户列表(分页),与查询服务器成员不同,查询频道成员指可以查看该频道的成员信息,取决于频道的白/黑名单设置
68
- * 私有频道设置的白名单用户为该频道下的成员,公共频道除了黑名单中的成员均可以访问该频道
69
- * @param[in] param 接口参数
70
- * @return void
71
- */
72
- getMembersByPage(param: QChatChannelGetMembersPageParam): Promise<QChatChannelGetMembersPageResp>;
73
- /** @fn updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam)
74
- * 更新频道白/黑名单身份组,公开频道:黑名单,私有频道:白名单
75
- * @param[in] param 接口参数
76
- * @return void
77
- */
78
- updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam): Promise<QChatChannelUpdateWhiteBlackRoleResp>;
79
- /** @fn updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam)
80
- * 更新频道白/黑名单成员,公开频道:黑名单,私有频道:白名单
81
- * @param[in] param 接口参数
82
- * @return void
83
- */
84
- updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam): Promise<QChatChannelUpdateWhiteBlackMembersResp>;
85
- /** @fn getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam)
86
- * 查询频道白/黑名单身份组列表(分页)
87
- * @param[in] param 接口参数
88
- * @return void
89
- */
90
- getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam): Promise<QChatChannelGetWhiteBlackRolesPageResp>;
91
- /** @fn getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam)
92
- * 查询频道白/黑名单成员列表(分页)
93
- * @param[in] param 接口参数
94
- * @return void
95
- */
96
- getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam): Promise<QChatChannelGetWhiteBlackMembersPageResp>;
97
- /** @fn getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam)
98
- * 根据身份组ID查询已存在的白/黑名单身份组
99
- * @param[in] param 接口参数
100
- * @return void
101
- */
102
- getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam): Promise<QChatChannelGetExistingWhiteBlackRolesResp>;
103
- /** @fn getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam)
104
- * 根据成员ID查询已存在的白/黑名单成员
105
- * @param[in] param 接口参数
106
- * @return void
107
- */
108
- getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam): Promise<QChatChannelGetExistingWhiteBlackMembersResp>;
109
- /** @fn channelSearchByPage(param: QChatChannelSearchByPageParam)
110
- * 根据关键字搜索频道列表(分页)
111
- * @param[in] param 接口参数
112
- * @return void
113
- */
114
- channelSearchByPage(param: QChatChannelSearchPageParam): Promise<QChatChannelSearchPageResp>;
115
- /** @fn channelMemberSearch(param: QChatChannelMemberSearchParam)
116
- * 根据关键字搜索频道成员列表
117
- * @param[in] param 接口参数
118
- * @return void
119
- */
120
- channelMemberSearch(param: QChatChannelMemberSearchParam): Promise<QChatChannelMemberSearchResp>;
121
- /** @fn updateRTCInfo(param: QChatChannelUpdateRTCInfoParam)
122
- * 更新频道RTC信息
123
- * @param[in] param 接口参数
124
- * @return void
125
- */
126
- updateRTCInfo(param: QChatChannelUpdateRTCInfoParam): Promise<QChatChannelUpdateRTCInfoResp>;
127
- /** @fn getRTCInfo(param: QChatChannelGetRTCInfoParam)
128
- * 查询频道RTC信息
129
- * @param[in] param 接口参数
130
- * @return void
131
- */
132
- getRTCInfo(param: QChatChannelGetRTCInfoParam): Promise<QChatChannelGetRTCInfoResp>;
133
- /** @fn getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam)
134
- * 查询频道RTC在线成员列表
135
- * @param[in] param 接口参数
136
- * @return void
137
- */
138
- getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam): Promise<QChatChannelGetRTCOnlineMembersResp>;
139
- }
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, QChatChannelSubscribeAsVisitorParam, QChatChannelSubscribeAsVisitorResp } 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 subscribeAsVisitor(param: QChatChannelSubscribeAsVisitorParam)
43
+ * 以游客模式订阅频道未读状态、未读数或未读消息、事件
44
+ * @param[in] param 接口参数
45
+ * @return void
46
+ */
47
+ subscribeAsVisitor(param: QChatChannelSubscribeAsVisitorParam): Promise<QChatChannelSubscribeAsVisitorResp>;
48
+ /** @fn queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam)
49
+ * 查询消息未读数
50
+ * @param[in] param 接口参数
51
+ * @return void
52
+ */
53
+ queryUnreadInfo(param: QChatChannelQueryUnreadInfoParam): Promise<QChatChannelQueryUnreadInfoResp>;
54
+ /** @fn getChannels(param: QChatChannelGetChannelsParam)
55
+ * 查询频道列表
56
+ * @param[in] param 接口参数
57
+ * @return void
58
+ */
59
+ getChannels(param: QChatChannelGetChannelsParam): Promise<QChatChannelGetChannelsResp>;
60
+ /** @fn getChannelsByPage(param: QChatChannelGetChannelsPageParam)
61
+ * 查询频道列表(分页)
62
+ * @param[in] param 接口参数
63
+ * @return void
64
+ */
65
+ getChannelsByPage(param: QChatChannelGetChannelsPageParam): Promise<QChatChannelGetChannelsPageResp>;
66
+ /** @fn getMembersByPage(param: QChatChannelGetMembersPageParam)
67
+ * 查询频道用户列表(分页),与查询服务器成员不同,查询频道成员指可以查看该频道的成员信息,取决于频道的白/黑名单设置
68
+ * 私有频道设置的白名单用户为该频道下的成员,公共频道除了黑名单中的成员均可以访问该频道
69
+ * @param[in] param 接口参数
70
+ * @return void
71
+ */
72
+ getMembersByPage(param: QChatChannelGetMembersPageParam): Promise<QChatChannelGetMembersPageResp>;
73
+ /** @fn updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam)
74
+ * 更新频道白/黑名单身份组,公开频道:黑名单,私有频道:白名单
75
+ * @param[in] param 接口参数
76
+ * @return void
77
+ */
78
+ updateWhiteBlackRole(param: QChatChannelUpdateWhiteBlackRoleParam): Promise<QChatChannelUpdateWhiteBlackRoleResp>;
79
+ /** @fn updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam)
80
+ * 更新频道白/黑名单成员,公开频道:黑名单,私有频道:白名单
81
+ * @param[in] param 接口参数
82
+ * @return void
83
+ */
84
+ updateWhiteBlackMembers(param: QChatChannelUpdateWhiteBlackMembersParam): Promise<QChatChannelUpdateWhiteBlackMembersResp>;
85
+ /** @fn getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam)
86
+ * 查询频道白/黑名单身份组列表(分页)
87
+ * @param[in] param 接口参数
88
+ * @return void
89
+ */
90
+ getWhiteBlackRolesPage(param: QChatChannelGetWhiteBlackRolesPageParam): Promise<QChatChannelGetWhiteBlackRolesPageResp>;
91
+ /** @fn getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam)
92
+ * 查询频道白/黑名单成员列表(分页)
93
+ * @param[in] param 接口参数
94
+ * @return void
95
+ */
96
+ getWhiteBlackMembersPage(param: QChatChannelGetWhiteBlackMembersPageParam): Promise<QChatChannelGetWhiteBlackMembersPageResp>;
97
+ /** @fn getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam)
98
+ * 根据身份组ID查询已存在的白/黑名单身份组
99
+ * @param[in] param 接口参数
100
+ * @return void
101
+ */
102
+ getExistingWhiteBlackRoles(param: QChatChannelGetExistingWhiteBlackRolesParam): Promise<QChatChannelGetExistingWhiteBlackRolesResp>;
103
+ /** @fn getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam)
104
+ * 根据成员ID查询已存在的白/黑名单成员
105
+ * @param[in] param 接口参数
106
+ * @return void
107
+ */
108
+ getExistingWhiteBlackMembers(param: QChatChannelGetExistingWhiteBlackMembersParam): Promise<QChatChannelGetExistingWhiteBlackMembersResp>;
109
+ /** @fn channelSearchByPage(param: QChatChannelSearchByPageParam)
110
+ * 根据关键字搜索频道列表(分页)
111
+ * @param[in] param 接口参数
112
+ * @return void
113
+ */
114
+ channelSearchByPage(param: QChatChannelSearchPageParam): Promise<QChatChannelSearchPageResp>;
115
+ /** @fn channelMemberSearch(param: QChatChannelMemberSearchParam)
116
+ * 根据关键字搜索频道成员列表
117
+ * @param[in] param 接口参数
118
+ * @return void
119
+ */
120
+ channelMemberSearch(param: QChatChannelMemberSearchParam): Promise<QChatChannelMemberSearchResp>;
121
+ /** @fn updateRTCInfo(param: QChatChannelUpdateRTCInfoParam)
122
+ * 更新频道RTC信息
123
+ * @param[in] param 接口参数
124
+ * @return void
125
+ */
126
+ updateRTCInfo(param: QChatChannelUpdateRTCInfoParam): Promise<QChatChannelUpdateRTCInfoResp>;
127
+ /** @fn getRTCInfo(param: QChatChannelGetRTCInfoParam)
128
+ * 查询频道RTC信息
129
+ * @param[in] param 接口参数
130
+ * @return void
131
+ */
132
+ getRTCInfo(param: QChatChannelGetRTCInfoParam): Promise<QChatChannelGetRTCInfoResp>;
133
+ /** @fn getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam)
134
+ * 查询频道RTC在线成员列表
135
+ * @param[in] param 接口参数
136
+ * @return void
137
+ */
138
+ getRTCOnlineMembers(param: QChatChannelGetRTCOnlineMembersParam): Promise<QChatChannelGetRTCOnlineMembersResp>;
139
+ }