node-nim 9.2.8-rc.1 → 9.3.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -39
- package/dist/chatroom/chatroom.js +253 -0
- package/dist/chatroom/chatroom.js.map +1 -0
- package/dist/chatroom_def/chatroom_def.js +120 -0
- package/dist/chatroom_def/chatroom_def.js.map +1 -0
- package/{js → dist}/loader.js +0 -0
- package/{js → dist}/loader.js.map +0 -0
- package/{js/api → dist/nim}/client.js +46 -8
- package/dist/nim/client.js.map +1 -0
- package/{js/api → dist/nim}/data_sync.js +2 -2
- package/dist/nim/data_sync.js.map +1 -0
- package/{js/api → dist/nim}/friend.js +62 -12
- package/dist/nim/friend.js.map +1 -0
- package/{js/api → dist/nim}/global.js +50 -8
- package/dist/nim/global.js.map +1 -0
- package/{js/api → dist/nim}/msglog.js +271 -52
- package/dist/nim/msglog.js.map +1 -0
- package/{js/api → dist/nim}/nos.js +54 -13
- package/dist/nim/nos.js.map +1 -0
- package/{js/api → dist/nim}/online_session.js +34 -6
- package/dist/nim/online_session.js.map +1 -0
- package/{js/api → dist/nim}/pass_through_proxy.js +10 -3
- package/dist/nim/pass_through_proxy.js.map +1 -0
- package/{js/api → dist/nim}/plugin.js +18 -4
- package/dist/nim/plugin.js.map +1 -0
- package/{js/api → dist/nim}/session.js +171 -28
- package/dist/nim/session.js.map +1 -0
- package/{js/api → dist/nim}/subscribe_event.js +53 -12
- package/dist/nim/subscribe_event.js.map +1 -0
- package/{js/api → dist/nim}/super_team.js +253 -47
- package/dist/nim/super_team.js.map +1 -0
- package/{js/api → dist/nim}/sysmsg.js +80 -12
- package/dist/nim/sysmsg.js.map +1 -0
- package/{js/api → dist/nim}/talk.js +10 -3
- package/dist/nim/talk.js.map +1 -0
- package/dist/nim/talkex.js +192 -0
- package/dist/nim/talkex.js.map +1 -0
- package/{js/api → dist/nim}/team.js +363 -87
- package/dist/nim/team.js.map +1 -0
- package/{js/api → dist/nim}/tool.js +21 -5
- package/dist/nim/tool.js.map +1 -0
- package/{js/api → dist/nim}/user.js +84 -16
- package/dist/nim/user.js.map +1 -0
- package/{js/def → dist/nim_def}/client_def.js +0 -0
- package/dist/nim_def/client_def.js.map +1 -0
- package/{js/def → dist/nim_def}/data_sync_def.js +0 -0
- package/dist/nim_def/data_sync_def.js.map +1 -0
- package/{js/def → dist/nim_def}/doc_trans_def.js +0 -0
- package/dist/nim_def/doc_trans_def.js.map +1 -0
- package/{js/def → dist/nim_def}/friend_def.js +0 -0
- package/dist/nim_def/friend_def.js.map +1 -0
- package/{js/def → dist/nim_def}/global_def.js +0 -0
- package/dist/nim_def/global_def.js.map +1 -0
- package/{js/def → dist/nim_def}/msglog_def.js +1 -1
- package/dist/nim_def/msglog_def.js.map +1 -0
- package/{js/def → dist/nim_def}/nos_def.js +0 -0
- package/dist/nim_def/nos_def.js.map +1 -0
- package/{js/def → dist/nim_def}/online_session_def.js +0 -0
- package/dist/nim_def/online_session_def.js.map +1 -0
- package/{js/def → dist/nim_def}/pass_through_proxy_def.js +0 -0
- package/dist/nim_def/pass_through_proxy_def.js.map +1 -0
- package/{js/def → dist/nim_def}/plugin_def.js +0 -0
- package/{js/def → dist/nim_def}/plugin_def.js.map +1 -1
- package/{js/def → dist/nim_def}/session_def.js +0 -0
- package/dist/nim_def/session_def.js.map +1 -0
- package/{js/def → dist/nim_def}/subscribe_event_def.js +0 -0
- package/dist/nim_def/subscribe_event_def.js.map +1 -0
- package/{js/def → dist/nim_def}/super_team_def.js +0 -0
- package/dist/nim_def/super_team_def.js.map +1 -0
- package/{js/def → dist/nim_def}/sysmsg_def.js +0 -0
- package/dist/nim_def/sysmsg_def.js.map +1 -0
- package/{js/def → dist/nim_def}/talk_def.js +0 -0
- package/{js/def → dist/nim_def}/talk_def.js.map +1 -1
- package/{js/def → dist/nim_def}/talkex_def.js +0 -0
- package/{js/def → dist/nim_def}/talkex_def.js.map +1 -1
- package/{js/def → dist/nim_def}/team_def.js +0 -0
- package/dist/nim_def/team_def.js.map +1 -0
- package/{js/def → dist/nim_def}/tool_def.js +0 -0
- package/dist/nim_def/tool_def.js.map +1 -0
- package/{js/def → dist/nim_def}/user_def.js +0 -0
- package/dist/nim_def/user_def.js.map +1 -0
- package/dist/node-nim.js +98 -0
- package/dist/node-nim.js.map +1 -0
- package/dist/qchat/attachment.js +75 -0
- package/dist/qchat/attachment.js.map +1 -0
- package/dist/qchat/channel.js +402 -0
- package/dist/qchat/channel.js.map +1 -0
- package/dist/qchat/channel_category.js +249 -0
- package/dist/qchat/channel_category.js.map +1 -0
- package/dist/qchat/instance.js +94 -0
- package/dist/qchat/instance.js.map +1 -0
- package/dist/qchat/message.js +325 -0
- package/dist/qchat/message.js.map +1 -0
- package/dist/qchat/role.js +562 -0
- package/dist/qchat/role.js.map +1 -0
- package/dist/qchat/server.js +515 -0
- package/dist/qchat/server.js.map +1 -0
- package/dist/qchat/system_notification.js +96 -0
- package/dist/qchat/system_notification.js.map +1 -0
- package/dist/qchat_def/attachment_def.js +3 -0
- package/dist/qchat_def/attachment_def.js.map +1 -0
- package/dist/qchat_def/channel_def.js +3 -0
- package/dist/qchat_def/channel_def.js.map +1 -0
- package/dist/qchat_def/instance_def.js +3 -0
- package/dist/qchat_def/instance_def.js.map +1 -0
- package/dist/qchat_def/message_def.js +3 -0
- package/dist/qchat_def/message_def.js.map +1 -0
- package/dist/qchat_def/public_def.js +584 -0
- package/dist/qchat_def/public_def.js.map +1 -0
- package/dist/qchat_def/role_def.js +3 -0
- package/dist/qchat_def/role_def.js.map +1 -0
- package/dist/qchat_def/server_def.js +3 -0
- package/dist/qchat_def/server_def.js.map +1 -0
- package/dist/qchat_def/system_notification_def.js +3 -0
- package/dist/qchat_def/system_notification_def.js.map +1 -0
- package/package.json +7 -6
- package/script/download-sdk.mjs +17 -16
- package/types/chatroom/chatroom.d.ts +54 -0
- package/types/chatroom_def/chatroom_def.d.ts +419 -0
- package/types/{api → nim}/client.d.ts +22 -23
- package/types/nim/data_sync.d.ts +12 -0
- package/types/{api → nim}/friend.d.ts +17 -17
- package/types/{api → nim}/global.d.ts +13 -13
- package/types/{api → nim}/msglog.d.ts +62 -62
- package/types/{api → nim}/nos.d.ts +21 -21
- package/types/{api → nim}/online_session.d.ts +12 -12
- package/types/{api → nim}/pass_through_proxy.d.ts +8 -8
- package/types/{api → nim}/plugin.d.ts +8 -6
- package/types/{api → nim}/session.d.ts +40 -40
- package/types/{api → nim}/subscribe_event.d.ts +19 -19
- package/types/{api → nim}/super_team.d.ts +51 -52
- package/types/{api → nim}/sysmsg.d.ts +20 -20
- package/types/{api → nim}/talk.d.ts +19 -19
- package/types/{api → nim}/talkex.d.ts +29 -27
- package/types/{api → nim}/team.d.ts +89 -88
- package/types/{api → nim}/tool.d.ts +9 -7
- package/types/{api → nim}/user.d.ts +23 -23
- package/types/{def → nim_def}/client_def.d.ts +86 -86
- package/types/{def → nim_def}/data_sync_def.d.ts +0 -0
- package/types/{def → nim_def}/doc_trans_def.d.ts +0 -0
- package/types/{def → nim_def}/friend_def.d.ts +17 -16
- package/types/{def → nim_def}/global_def.d.ts +14 -13
- package/types/{def → nim_def}/msglog_def.d.ts +152 -141
- package/types/nim_def/nos_def.d.ts +72 -0
- package/types/{def → nim_def}/online_session_def.d.ts +15 -15
- package/types/{def → nim_def}/pass_through_proxy_def.d.ts +2 -1
- package/types/{def → nim_def}/plugin_def.d.ts +3 -2
- package/types/{def → nim_def}/session_def.d.ts +49 -48
- package/types/nim_def/subscribe_event_def.d.ts +83 -0
- package/types/{def → nim_def}/super_team_def.d.ts +34 -34
- package/types/{def → nim_def}/sysmsg_def.d.ts +25 -25
- package/types/{def → nim_def}/talk_def.d.ts +24 -24
- package/types/nim_def/talkex_def.d.ts +112 -0
- package/types/{def → nim_def}/team_def.d.ts +37 -37
- package/types/{def → nim_def}/tool_def.d.ts +7 -6
- package/types/{def → nim_def}/user_def.d.ts +22 -21
- package/types/node-nim.d.ts +53 -0
- package/types/qchat/attachment.d.ts +40 -0
- package/types/qchat/channel.d.ts +133 -0
- package/types/qchat/channel_category.d.ts +82 -0
- package/types/qchat/instance.d.ts +46 -0
- package/types/qchat/message.d.ts +110 -0
- package/types/qchat/role.d.ts +161 -0
- package/types/qchat/server.d.ts +168 -0
- package/types/qchat/system_notification.d.ts +39 -0
- package/types/qchat_def/attachment_def.d.ts +71 -0
- package/types/qchat_def/channel_def.d.ts +624 -0
- package/types/qchat_def/instance_def.d.ts +212 -0
- package/types/qchat_def/message_def.d.ts +477 -0
- package/types/qchat_def/public_def.d.ts +774 -0
- package/types/qchat_def/role_def.d.ts +430 -0
- package/types/qchat_def/server_def.d.ts +451 -0
- package/types/qchat_def/system_notification_def.d.ts +170 -0
- package/js/api/client.js.map +0 -1
- package/js/api/data_sync.js.map +0 -1
- package/js/api/friend.js.map +0 -1
- package/js/api/global.js.map +0 -1
- package/js/api/msglog.js.map +0 -1
- package/js/api/nos.js.map +0 -1
- package/js/api/online_session.js.map +0 -1
- package/js/api/pass_through_proxy.js.map +0 -1
- package/js/api/plugin.js.map +0 -1
- package/js/api/session.js.map +0 -1
- package/js/api/subscribe_event.js.map +0 -1
- package/js/api/super_team.js.map +0 -1
- package/js/api/sysmsg.js.map +0 -1
- package/js/api/talk.js.map +0 -1
- package/js/api/talkex.js +0 -115
- package/js/api/talkex.js.map +0 -1
- package/js/api/team.js.map +0 -1
- package/js/api/tool.js.map +0 -1
- package/js/api/user.js.map +0 -1
- package/js/def/client_def.js.map +0 -1
- package/js/def/data_sync_def.js.map +0 -1
- package/js/def/doc_trans_def.js.map +0 -1
- package/js/def/friend_def.js.map +0 -1
- package/js/def/global_def.js.map +0 -1
- package/js/def/msglog_def.js.map +0 -1
- package/js/def/nos_def.js.map +0 -1
- package/js/def/online_session_def.js.map +0 -1
- package/js/def/pass_through_proxy_def.js.map +0 -1
- package/js/def/session_def.js.map +0 -1
- package/js/def/subscribe_event_def.js.map +0 -1
- package/js/def/super_team_def.js.map +0 -1
- package/js/def/sysmsg_def.js.map +0 -1
- package/js/def/team_def.js.map +0 -1
- package/js/def/tool_def.js.map +0 -1
- package/js/def/user_def.js.map +0 -1
- package/js/nim.js +0 -72
- package/js/nim.js.map +0 -1
- package/types/api/data_sync.d.ts +0 -13
- package/types/def/nos_def.d.ts +0 -71
- package/types/def/subscribe_event_def.d.ts +0 -82
- package/types/def/talkex_def.d.ts +0 -111
- package/types/nim.d.ts +0 -36
|
@@ -58,53 +58,53 @@ export declare enum NIMTeamQueryType {
|
|
|
58
58
|
kNIMTeamQueryByTeamName = 2 /** < 仅匹配群组名称 */
|
|
59
59
|
}
|
|
60
60
|
export interface TeamEvent {
|
|
61
|
-
res_code_
|
|
62
|
-
notification_id_
|
|
63
|
-
team_id_
|
|
64
|
-
ids_
|
|
65
|
-
invalid_ids_
|
|
66
|
-
namecards_
|
|
67
|
-
team_info_
|
|
68
|
-
member_property_
|
|
69
|
-
opt_
|
|
70
|
-
attach_
|
|
71
|
-
src_data_
|
|
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
|
|
75
|
-
name
|
|
76
|
-
type
|
|
74
|
+
tid?: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
type?: NIMTeamType;
|
|
77
77
|
readonly creator: string;
|
|
78
|
-
member_max_count
|
|
79
|
-
prop
|
|
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
|
|
86
|
-
intro
|
|
87
|
-
announcement
|
|
88
|
-
join_mode
|
|
89
|
-
custom
|
|
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
|
|
92
|
-
be_invite_mode
|
|
93
|
-
invite_mode
|
|
94
|
-
update_info_mode
|
|
95
|
-
update_custom_mode
|
|
96
|
-
mute_type
|
|
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_
|
|
99
|
+
team_info_json_value_?: TeamInfoJsonValue;
|
|
100
100
|
}
|
|
101
101
|
export interface TeamMemberPropertyJsonValue {
|
|
102
|
-
type
|
|
103
|
-
nick
|
|
104
|
-
bits
|
|
105
|
-
custom
|
|
106
|
-
tid
|
|
107
|
-
accid
|
|
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_
|
|
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:
|
|
125
|
-
export declare type QueryTeamMembersInvitorCallback = (rescode:
|
|
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_
|
|
10
|
-
samplerate_
|
|
11
|
-
url_
|
|
12
|
-
duration_
|
|
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:
|
|
15
|
-
export declare type FilterClientAntispamCallback = (succeed: boolean, rescode:
|
|
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_
|
|
19
|
-
set_black_
|
|
20
|
-
set_mute_
|
|
21
|
-
create_timetag_
|
|
22
|
-
update_timetag_
|
|
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_
|
|
26
|
-
nickname_
|
|
27
|
-
icon_url_
|
|
28
|
-
signature_
|
|
29
|
-
gender_
|
|
30
|
-
email_
|
|
31
|
-
birth_
|
|
32
|
-
mobile_
|
|
33
|
-
expand_
|
|
34
|
-
create_timetag_
|
|
35
|
-
update_timetag_
|
|
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_
|
|
39
|
-
content_
|
|
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:
|
|
44
|
-
export declare type GetSpecialListCallback = (rescode:
|
|
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:
|
|
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
|
+
}
|