node-nim 9.9.2 → 9.11.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.
@@ -1 +1 @@
1
- {"version":3,"file":"msglog_def.js","sourceRoot":"","sources":["../../ts/nim_def/msglog_def.ts"],"names":[],"mappings":";;;AAEA,mCAAmC;AACnC,IAAY,iBA+DX;AA/DD,WAAY,iBAAiB;IACzB,yGAAgC,CAAA,CAAC;qEACgC;IACjE,qGAA8B,CAAA,CAAC;qEACkC;IACjE,uGAA+B,CAAA,CAAC,qEAAqE;IACrG,yGAAgC,CAAA,CAAC,iFAAiF;IAClH,2GAAiC,CAAA,CAAC,yDAAyD;IAC3F,+GAAmC,CAAA,CAAC,yEAAyE;IAC7G,uHAAuC,CAAA,CAAC,0FAA0F;IAClI,iHAAoC,CAAA,CAAC,6EAA6E;IAClH,uHAAuC,CAAA,CAAC,6EAA6E;IACrH,qHAAsC,CAAA,CAAC,yEAAyE;IAChH,kHAAqC,CAAA,CAAC;gDACM;IAE5C,6GAAmC,CAAA,CAAC;mDACW;IAC/C,6GAAmC,CAAA,CAAC;mDACW;IAE/C,iBAAiB;IACjB,oHAAuC,CAAA,CAAC,6FAA6F;IACrI,0HAA0C,CAAA,CAAC;iFACkC;IAC7E,gJAAqD,CAAA,CAAC;+EACqB;IAE3E,iBAAiB;IACjB,sHAAwC,CAAA,CAAC,sCAAsC;IAC/E,oHAAuC,CAAA,CAAC,oBAAoB;IAC5D,wHAAyC,CAAA,CAAC,4BAA4B;IACtE,0HAA0C,CAAA,CAAC,4BAA4B;IACvE,0IAAkD,CAAA,CAAC,wDAAwD;IAC3G,gIAA6C,CAAA,CAAC,2BAA2B;IACzE,wHAAyC,CAAA,CAAC,yCAAyC;IACnF,wHAAyC,CAAA,CAAC,qBAAqB;IAC/D,sHAAwC,CAAA,CAAC,iDAAiD;IAC1F,0GAAkC,CAAA,CAAC,oBAAoB;IACvD,4IAAmD,CAAA,CAAC,uFAAuF;I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U,QAIrB;AA2HD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,iHAAgC,CAAA;IAChC,mHAAiC,CAAA;IACjC,6HAAsC,CAAA;AAC1C,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-nim",
3
- "version": "9.9.2",
3
+ "version": "9.11.0",
4
4
  "description": "NetEase IM nodejs wrapper based on NetEase IM C++ SDK",
5
5
  "main": "dist/node-nim.js",
6
6
  "bin": {
@@ -30,30 +30,30 @@
30
30
  ]
31
31
  },
32
32
  "dependencies": {
33
- "compare-versions": "^4.1.3",
33
+ "compare-versions": "^4.1.4",
34
34
  "download": "^8.0.0",
35
35
  "eventemitter3": "^4.0.7",
36
- "node-fetch": "^2.6.5"
36
+ "node-fetch": "^2.6.9"
37
37
  },
38
38
  "optionalDependencies": {
39
39
  "commander": "^8.3.0",
40
- "hawk-web": "^1.3.2"
40
+ "hawk-web": "latest"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/node": "^16.10.5",
44
- "@typescript-eslint/eslint-plugin": "^5.17.0",
45
- "@typescript-eslint/parser": "^5.17.0",
43
+ "@types/node": "^16.18.23",
44
+ "@typescript-eslint/eslint-plugin": "^5.58.0",
45
+ "@typescript-eslint/parser": "^5.58.0",
46
46
  "bluebird": "^3.7.2",
47
- "cmake-js": "^6.3.0",
47
+ "cmake-js": "^6.3.2",
48
48
  "eslint": "^7.32.0",
49
- "git-describe": "^4.1.0",
50
- "mocha": "^9.1.1",
49
+ "git-describe": "^4.1.1",
50
+ "mocha": "^9.2.2",
51
51
  "node-addon-api": "^4.3.0",
52
52
  "nyc": "^15.1.0",
53
- "typedoc": "^0.23.6",
54
- "typedoc-github-wiki-theme": "^1.0.1",
55
- "typedoc-plugin-markdown": "^3.13.3",
56
- "typescript": "^4.3.5"
53
+ "typedoc": "^0.24.1",
54
+ "typedoc-github-wiki-theme": "^1.1.0",
55
+ "typedoc-plugin-markdown": "^3.15.1",
56
+ "typescript": "^4.9.5"
57
57
  },
58
58
  "keywords": [
59
59
  "netease",
@@ -55,7 +55,7 @@ export declare class NIMMsgLog extends EventEmitter<NIMMsgLogEvents> {
55
55
  * @return void
56
56
  * @note 错误码 200:成功
57
57
  */
58
- getMessagesDynamically(session_id: string, to_type: NIMSessionType, from_time: number, to_time: number, limit_count: number, anchor_client_msg_id: string, anchor_server_msg_id: number, direction: NIMMsglogSearchDirection, cb: GetMessagesDynamicallyCallback | null, jsonExtension: string): Promise<[GetMessagesResult] | null>;
58
+ getMessagesDynamically(session_id: string, to_type: NIMSessionType, from_time: number, to_time: number, limit_count: number, anchor_client_msg_id: string, anchor_server_msg_id: string, direction: NIMMsglogSearchDirection, cb: GetMessagesDynamicallyCallback | null, jsonExtension: string): Promise<[GetMessagesResult] | null>;
59
59
  /** 在线查询消息(不包括系统消息)
60
60
  * @param param 查询参数
61
61
  * @param cb 在线查询消息的回调函数
@@ -47,7 +47,7 @@ export declare class NIMSysMsg extends EventEmitter<NIMSysMsgEvents> {
47
47
  * 200:成功
48
48
  * </pre>
49
49
  */
50
- setStatusAsync(msg_id: number, status: NIMSysMsgStatus, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): Promise<[NIMResCode, number, number] | null>;
50
+ setStatusAsync(msg_id: string, status: NIMSysMsgStatus, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): Promise<[NIMResCode, number, number] | null>;
51
51
  /** 设置全部消息为已读
52
52
  * @param jsonExtension json扩展参数(备用,目前不需要)
53
53
  * @param cb 设置全部消息为已读的回调函数
@@ -68,7 +68,7 @@ export declare class NIMSysMsg extends EventEmitter<NIMSysMsgEvents> {
68
68
  * 200:成功
69
69
  * </pre>
70
70
  */
71
- deleteAsync(msg_id: number, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): Promise<[NIMResCode, number, number] | null>;
71
+ deleteAsync(msg_id: string, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): Promise<[NIMResCode, number, number] | null>;
72
72
  /** 全部删除
73
73
  * @param jsonExtension json扩展参数(备用,目前不需要)
74
74
  * @param cb 删除消息的回调函数
@@ -182,7 +182,7 @@ export interface SDKConfig {
182
182
  ip_protocol_version_?: number; /**< int IP地址族设置 0:ipv4 1:ipv6 2:auto,经SDK测试后,自行选择,会有少许性能损耗。缺省 0(ipv4) */
183
183
  /***********地址族相关设置 end************/
184
184
  dedicated_cluste_flag_?: boolean; /**< boolean 是否为专属集群 {true,false} def:false */
185
- hand_shake_type_?: number; /**< int 登录时使用的握手协议类型 0:支持配置多种对称与非对称加密算法,1:只支持RAS + RC4,缺省 1 */
185
+ hand_shake_type_?: number; /**< int 登录时使用的握手协议类型 0:支持配置多种对称与非对称加密算法,1:只支持RAS + RC4,缺省 0 */
186
186
  nego_key_neca_?: number; /**< int "交换密钥"协议加密算法 {1(RSA),2(SM2)}, def:1(RSA) 非对称加密 */
187
187
  comm_neca_?: number; /**< int 通信加密算法 {1(RC4),2(AES128),4(SM4)} def:1(RC4) 对称加密 */
188
188
  server_conf_file_path_?: string; /**< string 私有云服务器相关地址配置文件本地绝对路径,如果不填默认执行文件目录下的server_conf.txt */
@@ -132,7 +132,7 @@ export interface QueryMsgOnlineAsyncParam {
132
132
  limit_count_?: number; /**< number 本次查询的消息条数上限(最多100条) */
133
133
  from_time_?: number; /**< number 起始时间点,单位:毫秒 */
134
134
  end_time_?: number; /**< number 结束时间点,单位:毫秒 */
135
- end_msg_id_?: number; /**< number 结束查询的最后一条消息的server_msg_id(不包含在查询结果中) */
135
+ end_msg_id_?: string; /**< number 结束查询的最后一条消息的server_msg_id(不包含在查询结果中) */
136
136
  reverse_?: boolean; /**< boolean true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false) */
137
137
  need_save_to_local_?: boolean; /**< boolean 将在线查询结果保存到本地,false: 不保存 */
138
138
  auto_download_attachment_?: boolean; /**< boolean 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要 */
@@ -157,6 +157,7 @@ export interface MessageSetting {
157
157
  push_need_badge_?: BoolStatus; /**< 是否要做消息计数 */
158
158
  push_need_prefix_?: BoolStatus; /**< 需要推送昵称 */
159
159
  routable_?: BoolStatus; /**< 是否要抄送 */
160
+ is_blacklisted_?: BoolStatus; /**< 是否被拉黑 */
160
161
  need_offline_?: BoolStatus; /**< 是否支持离线消息 */
161
162
  push_payload_?: object; /**< 第三方自定义的推送属性,长度2048, json object */
162
163
  push_content_?: string; /**< 自定义推送文案,长度限制200字节 */
@@ -183,15 +184,21 @@ export interface IMMessageThreadInfo {
183
184
  reply_msg_from_account_?: string;
184
185
  reply_msg_to_account_?: string;
185
186
  reply_msg_time_?: number;
186
- reply_msg_id_server_?: number;
187
+ reply_msg_id_server_?: string;
187
188
  reply_msg_id_client_?: string;
188
189
  thread_msg_from_account_?: string;
189
190
  thread_msg_to_account_?: string;
190
191
  thread_msg_time_?: number;
191
- thread_msg_id_server_?: number;
192
+ thread_msg_id_server_?: string;
192
193
  thread_msg_id_client_?: string;
193
194
  deleted_?: number;
194
195
  }
196
+ export interface IMMessageRobotInfo {
197
+ function_?: string;
198
+ topic_?: string;
199
+ custom_content_?: string;
200
+ account_?: string;
201
+ }
195
202
  export interface IMMessage {
196
203
  rescode_?: NIMResCode; /**< 错误码 */
197
204
  feature_?: NIMMessageFeature; /**< 消息属性 */
@@ -211,24 +218,25 @@ export interface IMMessage {
211
218
  local_res_id_?: string; /**< 媒体文件ID(客户端) */
212
219
  status_?: NIMMsgLogStatus; /**< 消息状态(客户端) */
213
220
  sub_status_?: NIMMsgLogSubStatus; /**< 消息子状态(客户端) */
214
- thread_info_?: IMMessageThreadInfo;
221
+ thread_info_?: IMMessageThreadInfo; /**< thread消息信息 */
222
+ robot_info_?: IMMessageRobotInfo; /**< 机器人消息信息 */
215
223
  readonly_sender_client_type_?: NIMClientType; /**< 发送者客户端类型(只读) */
216
224
  readonly_sender_device_id_?: string; /**< 发送者客户端设备ID(只读) */
217
225
  readonly_sender_nickname_?: string; /**< 发送者昵称(只读) */
218
- readonly_server_id_?: number; /**< 消息ID(服务器,只读) */
226
+ readonly_server_id_?: string; /**< 消息ID(服务器,只读) */
219
227
  }
220
228
  export interface QueryMsgAsyncParam {
221
229
  to_type_?: NIMSessionType; /**< enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h) */
222
230
  from_account?: string; /**< string 消息的发送方 */
223
231
  to_account?: string; /**< string 消息的接收方 */
224
- server_id?: number; /**< number 消息的服务端id */
232
+ server_id?: string; /**< number 消息的服务端id */
225
233
  client_id?: string; /**< string 消息的客户端id */
226
234
  time?: number; /**< number 消息时间戳 */
227
235
  }
228
236
  export interface QueryThreadHistoryMsgAsyncParam {
229
237
  from_time?: number; /**< number 起始时间 缺省0 */
230
238
  to_time?: number; /**< number 结束时间 缺省0 */
231
- exclude_msg_id?: number; /**< number 截至消息的服务端id,不包含在查询结果中 缺省0 */
239
+ exclude_msg_id?: string; /**< string 截至消息的服务端id,不包含在查询结果中 缺省0 */
232
240
  limit?: number; /**< number 查询条数限制 缺省100 */
233
241
  reverse?: number; /**< number 排序 缺省0 false */
234
242
  }
@@ -330,7 +338,7 @@ export interface NIMMsgLogAPI {
330
338
  InitEventHandlers(): void;
331
339
  QueryMsgByIDAysnc(clientMsgId: string, cb: QuerySingleMsgCallback | null, jsonExtension: string): boolean;
332
340
  QueryMsgAsync(accid: string, to_type: NIMSessionType, limit_count: number, anchor_msg_time: number, cb: QueryMsgCallback | null, jsonExtension: string): boolean;
333
- GetMessagesDynamically(session_id: string, to_type: NIMSessionType, from_time: number, to_time: number, limit_count: number, anchor_client_msg_id: string, anchor_server_msg_id: number, direction: NIMMsglogSearchDirection, cb: GetMessagesDynamicallyCallback | null, jsonExtension: string): void;
341
+ GetMessagesDynamically(session_id: string, to_type: NIMSessionType, from_time: number, to_time: number, limit_count: number, anchor_client_msg_id: string, anchor_server_msg_id: string, direction: NIMMsglogSearchDirection, cb: GetMessagesDynamicallyCallback | null, jsonExtension: string): void;
334
342
  QueryMsgOnlineAsync(param: QueryMsgOnlineAsyncParam, cb: QueryMsgCallback | null): boolean;
335
343
  QueryMsgByKeywordOnlineAsync(param: QueryMsgByKeywordOnlineParam, cb: QueryMsgCallback | null): boolean;
336
344
  QueryMsgOfSpecifiedTypeInASessionAsync(to_type: NIMSessionType, id: string, limit_count: number, fromTime: number, endTime: number, endClientMsgId: string, reverse: boolean, msgType: Array<NIMMessageType>, cb: QueryMsgCallback | null, jsonExtension: string): boolean;
@@ -71,7 +71,7 @@ export interface SessionMainTagInfo {
71
71
  export interface SessionRoamMsgHasMoreTagInfo {
72
72
  session_tag_info?: SessionMainTagInfo;
73
73
  message_time_tag?: number;
74
- message_server_id?: number;
74
+ message_server_id?: string;
75
75
  }
76
76
  export type SessionChangeCallback = (rescode: NIMResCode, result: SessionData, count: number) => void;
77
77
  export type DeleteSessionRoamingMessageCallback = (rescode: NIMResCode, to_type: number, session_id: string) => void;
@@ -31,7 +31,7 @@ export interface SysMessage {
31
31
  sender_accid_?: string; /**< 发送者ID */
32
32
  content_?: string; /**< 只读,SDK不转发该字段 */
33
33
  attach_?: string; /**< 通知附件 */
34
- id_?: number; /**< 通知ID */
34
+ id_?: string; /**< 通知ID */
35
35
  status_?: NIMSysMsgStatus; /**< 通知状态 */
36
36
  msg_setting_?: SysMessageSetting; /**< 消息属性设置 */
37
37
  rescode_?: NIMResCode; /**< 通知错误码 */
@@ -61,9 +61,9 @@ export interface NIMSysMsgAPI {
61
61
  SendCustomNotificationMsg(msg: SysMessage): void;
62
62
  QueryMsgAsync(limit_count: number, last_time: number, cb: QuerySysmsgCallback | null, jsonExtension: string): boolean;
63
63
  QueryUnreadCount(cb: NotifySysmsgResCallback | null, jsonExtension: string): void;
64
- SetStatusAsync(msg_id: number, status: NIMSysMsgStatus, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): boolean;
64
+ SetStatusAsync(msg_id: string, status: NIMSysMsgStatus, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): boolean;
65
65
  ReadAllAsync(cb: NotifySysmsgResCallback | null, jsonExtension: string): void;
66
- DeleteAsync(msg_id: number, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): boolean;
66
+ DeleteAsync(msg_id: string, cb: NotifySingleSysmsgCallback | null, jsonExtension: string): boolean;
67
67
  DeleteAllAsync(cb: NotifySysmsgResCallback | null, jsonExtension: string): boolean;
68
68
  SetStatusByTypeAsync(type: NIMSysMsgType, status: NIMSysMsgStatus, cb: NotifySysmsgResCallback | null, jsonExtension: string): boolean;
69
69
  DeleteByTypeAsync(type: NIMSysMsgType, cb: NotifySysmsgResCallback | null, jsonExtension: string): boolean;
@@ -4,7 +4,7 @@ import { NIMSessionType } from './session_def';
4
4
  export interface SendMessageArc {
5
5
  talk_id_?: string; /**< 会话ID */
6
6
  msg_id_?: string; /**< 消息ID */
7
- msg_id_server_?: number; /**< 服务器端消息ID */
7
+ msg_id_server_?: string; /**< 服务器端消息ID */
8
8
  rescode_?: NIMResCode; /**< 错误码 */
9
9
  msg_timetag_?: number; /**< 消息时间戳 */
10
10
  third_party_callback_ext_?: string; /**< 第三方回调回来的自定义扩展字段 */
@@ -13,7 +13,7 @@ export interface SendMessageArc {
13
13
  export interface BroadcastMessage {
14
14
  body_?: string;
15
15
  time_?: number;
16
- id_?: number;
16
+ id_?: string;
17
17
  from_id_?: string;
18
18
  }
19
19
  export interface RecallMsgNotify {
@@ -2,7 +2,7 @@ import { NIMResCode } from './client_def';
2
2
  import { IMMessage } from './msglog_def';
3
3
  import { NIMSessionType } from './session_def';
4
4
  export interface CollectInfo {
5
- id?: number; /**< id */
5
+ id?: string; /**< id */
6
6
  type?: number; /**< number 类型,开发者可根据业务自定义其含意 */
7
7
  data?: string; /**<数据,string,最大20480 */
8
8
  ext?: string; /**< 扩展字段,string,最大1024 */
@@ -18,12 +18,12 @@ export interface RemoveCollectsParm {
18
18
  }
19
19
  export interface MatchCollectParm {
20
20
  create_time?: number; /**<创建时间 */
21
- id?: number; /**< id */
21
+ id?: string; /**< id */
22
22
  }
23
23
  export interface QueryCollectsParm {
24
24
  from_time?: number; /**<起始时间,默认0 */
25
25
  to_time?: number; /**<结束时间,推荐当前时间+1小时 */
26
- exclude_id?: number; /**<结束查询的最后一条收藏的id(不包含在查询结果中)缺省 可填0 */
26
+ exclude_id?: string; /**<结束查询的最后一条收藏的id(不包含在查询结果中)缺省 可填0 */
27
27
  limit?: number; /**< 本次查询的上限(最多100条) */
28
28
  reverse?: boolean; /**<反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false) */
29
29
  type?: number; /**< 收藏类型,缺省表示所有类型 */
@@ -33,7 +33,7 @@ export interface QuickCommentInfo {
33
33
  from_account?: string;
34
34
  reply_type?: number; /**< 开发者自定义的回复类型 */
35
35
  client_id?: string; /**< 被回复消息的客户端ID */
36
- server_id?: number; /**< 被回复消息的服务端ID */
36
+ server_id?: string; /**< 被回复消息的服务端ID */
37
37
  time?: number; /**< 回复的时间戳 */
38
38
  ext?: string; /**< 自定义扩展字段,最大8字符 */
39
39
  need_push?: boolean; /**< 是否需要推送,0表示不需要,1表示需要,默认0 */
@@ -60,7 +60,7 @@ export interface QueryQuickCommentsResponse {
60
60
  export interface PinMessageInfo {
61
61
  id?: string; /**< Pin Message的ID 客户端生成服务端没有 */
62
62
  session_id?: string; /**< Pin Message对应的会话ID (客户端数据) */
63
- server_id?: number; /**< 被 Pin 消息的服务端ID */
63
+ server_id?: string; /**< 被 Pin 消息的服务端ID */
64
64
  client_id?: string; /**< 被 pin 消息的客户商dID */
65
65
  to_type?: number; /**< 被 pin 消息的会话类型 */
66
66
  from_account?: string; /**< 被 pin 消息的发送方ID */
@@ -2,9 +2,9 @@ import { NIMQChatChannelType, NIMQChatChannelViewMode, NIMQChatChannelSyncMode,
2
2
  import { QChatServerGetMembersPageResp, QChatServerGetMembersResp, ServerGetMembersCallback } from './server_def';
3
3
  export interface QChatChannelInfo {
4
4
  /** server id */
5
- server_id?: number;
5
+ server_id?: string;
6
6
  /** channel id */
7
- channel_id?: number;
7
+ channel_id?: string;
8
8
  /** 名称 */
9
9
  name?: string;
10
10
  /** 主题 */
@@ -26,7 +26,7 @@ export interface QChatChannelInfo {
26
26
  /** 更新时间 */
27
27
  update_time?: number;
28
28
  /** 频道分组ID */
29
- category_id?: number;
29
+ category_id?: string;
30
30
  /** 频道分组同步模式 */
31
31
  sync_mode?: NIMQChatChannelSyncMode;
32
32
  /** 自定义排序权重值 */
@@ -56,9 +56,9 @@ export interface QChatChannelRTCInfo {
56
56
  }
57
57
  export interface QChatChannelCategoryInfo {
58
58
  /** server id */
59
- server_id?: number;
59
+ server_id?: string;
60
60
  /** category id */
61
- category_id?: number;
61
+ category_id?: string;
62
62
  /** 名称 */
63
63
  name?: string;
64
64
  /** 自定义字段 */
@@ -319,12 +319,12 @@ export interface QChatChannelCreateParam {
319
319
  /** @interface QChatChannelDeleteParam */
320
320
  export interface QChatChannelDeleteParam {
321
321
  /** 频道ID */
322
- channel_id?: number;
322
+ channel_id?: string;
323
323
  }
324
324
  /** @interface QChatChannelUpdateParam */
325
325
  export interface QChatChannelUpdateParam {
326
326
  /** 频道ID */
327
- channel_id?: number;
327
+ channel_id?: string;
328
328
  /** 名称 */
329
329
  name?: string;
330
330
  /** 主题 */
@@ -341,21 +341,21 @@ export interface QChatChannelUpdateParam {
341
341
  /** @interface QChatChannelUpdateCategoryInfoParam */
342
342
  export interface QChatChannelUpdateCategoryInfoParam {
343
343
  /** 频道ID */
344
- channel_id?: number;
344
+ channel_id?: string;
345
345
  /** 频道分组ID */
346
- category_id?: number;
346
+ category_id?: string;
347
347
  /** 频道分组同步模式 */
348
348
  sync_mode?: NIMQChatChannelSyncMode;
349
349
  }
350
350
  /** @interface QChatChannelGetChannelsParam */
351
351
  export interface QChatChannelGetChannelsParam {
352
352
  /** 频道id列表 */
353
- channel_ids?: Array<number>;
353
+ channel_ids?: Array<string>;
354
354
  }
355
355
  /** @interface QChatChannelGetChannelsPageParam */
356
356
  export interface QChatChannelGetChannelsPageParam {
357
357
  /** 服务器ID */
358
- server_id?: number;
358
+ server_id?: string;
359
359
  /** 时间戳 */
360
360
  timestamp?: number;
361
361
  /** 查询条数 */
@@ -364,9 +364,9 @@ export interface QChatChannelGetChannelsPageParam {
364
364
  /** @interface QChatChannelGetMembersPageParam */
365
365
  export interface QChatChannelGetMembersPageParam {
366
366
  /** 服务器ID */
367
- server_id?: number;
367
+ server_id?: string;
368
368
  /** 频道ID */
369
- channel_id?: number;
369
+ channel_id?: string;
370
370
  /** 时间戳 */
371
371
  timestamp?: number;
372
372
  /** 查询条数 */
@@ -375,11 +375,11 @@ export interface QChatChannelGetMembersPageParam {
375
375
  /** @interface QChatChannelUpdateWhiteBlackRoleParam */
376
376
  export interface QChatChannelUpdateWhiteBlackRoleParam {
377
377
  /** 服务器ID */
378
- server_id?: number;
378
+ server_id?: string;
379
379
  /** 频道ID */
380
- channel_id?: number;
380
+ channel_id?: string;
381
381
  /** 身份组id */
382
- role_id?: number;
382
+ role_id?: string;
383
383
  /** 白/黑名单类型 */
384
384
  type?: NIMQChatChannelWhiteBlackType;
385
385
  /** 操作类型 */
@@ -388,9 +388,9 @@ export interface QChatChannelUpdateWhiteBlackRoleParam {
388
388
  /** @interface QChatChannelUpdateWhiteBlackMembersParam */
389
389
  export interface QChatChannelUpdateWhiteBlackMembersParam {
390
390
  /** 服务器ID */
391
- server_id?: number;
391
+ server_id?: string;
392
392
  /** 频道ID */
393
- channel_id?: number;
393
+ channel_id?: string;
394
394
  /** 用户accid列表 */
395
395
  accids?: Array<string>;
396
396
  /** 白/黑名单类型 */
@@ -401,9 +401,9 @@ export interface QChatChannelUpdateWhiteBlackMembersParam {
401
401
  /** @interface QChatChannelGetWhiteBlackRolesPageParam */
402
402
  export interface QChatChannelGetWhiteBlackRolesPageParam {
403
403
  /** 服务器ID */
404
- server_id?: number;
404
+ server_id?: string;
405
405
  /** 频道ID */
406
- channel_id?: number;
406
+ channel_id?: string;
407
407
  /** 白/黑名单类型 */
408
408
  type?: NIMQChatChannelWhiteBlackType;
409
409
  /** 时间戳 */
@@ -414,9 +414,9 @@ export interface QChatChannelGetWhiteBlackRolesPageParam {
414
414
  /** @interface QChatChannelGetWhiteBlackMembersPageParam */
415
415
  export interface QChatChannelGetWhiteBlackMembersPageParam {
416
416
  /** 服务器ID */
417
- server_id?: number;
417
+ server_id?: string;
418
418
  /** 频道ID */
419
- channel_id?: number;
419
+ channel_id?: string;
420
420
  /** 白/黑名单类型 */
421
421
  type?: NIMQChatChannelWhiteBlackType;
422
422
  /** 时间戳 */
@@ -427,20 +427,20 @@ export interface QChatChannelGetWhiteBlackMembersPageParam {
427
427
  /** @interface QChatChannelGetExistingWhiteBlackRolesParam */
428
428
  export interface QChatChannelGetExistingWhiteBlackRolesParam {
429
429
  /** 服务器ID */
430
- server_id?: number;
430
+ server_id?: string;
431
431
  /** 频道ID */
432
- channel_id?: number;
432
+ channel_id?: string;
433
433
  /** 白/黑名单类型 */
434
434
  type?: NIMQChatChannelWhiteBlackType;
435
435
  /** 身份组id列表 */
436
- role_ids?: Array<number>;
436
+ role_ids?: Array<string>;
437
437
  }
438
438
  /** @interface QChatChannelGetExistingWhiteBlackMembersParam */
439
439
  export interface QChatChannelGetExistingWhiteBlackMembersParam {
440
440
  /** 服务器ID */
441
- server_id?: number;
441
+ server_id?: string;
442
442
  /** 频道ID */
443
- channel_id?: number;
443
+ channel_id?: string;
444
444
  /** 白/黑名单类型 */
445
445
  type?: NIMQChatChannelWhiteBlackType;
446
446
  /** 用户accid列表 */
@@ -449,7 +449,7 @@ export interface QChatChannelGetExistingWhiteBlackMembersParam {
449
449
  /** @interface QChatChannelSearchPageParam */
450
450
  export interface QChatChannelSearchPageParam {
451
451
  /** 服务器 id, 若为空则表示在所有服务器下可见频道中搜索 */
452
- server_id?: number;
452
+ server_id?: string;
453
453
  /** 搜索内容 */
454
454
  keyword?: string;
455
455
  /** 起始时间 */
@@ -468,9 +468,9 @@ export interface QChatChannelSearchPageParam {
468
468
  /** @interface QChatChannelMemberSearchParam */
469
469
  export interface QChatChannelMemberSearchParam {
470
470
  /** 服务器 id */
471
- server_id?: number;
471
+ server_id?: string;
472
472
  /** 频道 id */
473
- channel_id?: number;
473
+ channel_id?: string;
474
474
  /** 搜索内容 */
475
475
  keyword?: string;
476
476
  /** 查询条数 */
@@ -479,7 +479,7 @@ export interface QChatChannelMemberSearchParam {
479
479
  /** @interface QChatChannelCategoryCreateParam */
480
480
  export interface QChatChannelCategoryCreateParam {
481
481
  /** 服务器 id */
482
- server_id?: number;
482
+ server_id?: string;
483
483
  /** 名称 */
484
484
  name?: string;
485
485
  /** 自定义字段 */
@@ -490,12 +490,12 @@ export interface QChatChannelCategoryCreateParam {
490
490
  /** @interface QChatChannelCategoryRemoveParam */
491
491
  export interface QChatChannelCategoryRemoveParam {
492
492
  /** 频道分组 ID */
493
- category_id?: number;
493
+ category_id?: string;
494
494
  }
495
495
  /** @interface QChatChannelCategoryUpdateParam */
496
496
  export interface QChatChannelCategoryUpdateParam {
497
497
  /** 分组 id */
498
- category_id?: number;
498
+ category_id?: string;
499
499
  /** 名称 */
500
500
  name?: string;
501
501
  /** 自定义字段 */
@@ -506,12 +506,12 @@ export interface QChatChannelCategoryUpdateParam {
506
506
  /** @interface QChatChannelGetCategoriesByIDParam */
507
507
  export interface QChatChannelGetCategoriesByIDParam {
508
508
  /** 分组ID列表 */
509
- category_ids?: Array<number>;
509
+ category_ids?: Array<string>;
510
510
  }
511
511
  /** @interface QChatChannelGetCategoriesPageParam */
512
512
  export interface QChatChannelGetCategoriesPageParam {
513
513
  /** 服务器 id */
514
- server_id?: number;
514
+ server_id?: string;
515
515
  /** 时间戳 */
516
516
  timestamp?: number;
517
517
  /** 查询条数 */
@@ -520,9 +520,9 @@ export interface QChatChannelGetCategoriesPageParam {
520
520
  /** @interface QChatChannelGetCategoryChannelsPageParam */
521
521
  export interface QChatChannelGetCategoryChannelsPageParam {
522
522
  /** 服务器 id */
523
- server_id?: number;
523
+ server_id?: string;
524
524
  /** 分组 id */
525
- category_id?: number;
525
+ category_id?: string;
526
526
  /** 时间戳 */
527
527
  timestamp?: number;
528
528
  /** 查询条数 */
@@ -531,11 +531,11 @@ export interface QChatChannelGetCategoryChannelsPageParam {
531
531
  /** @interface QChatChannelCategoryUpdateWhiteBlackRoleParam */
532
532
  export interface QChatChannelCategoryUpdateWhiteBlackRoleParam {
533
533
  /** 服务器 id */
534
- server_id?: number;
534
+ server_id?: string;
535
535
  /** 分组 id */
536
- category_id?: number;
536
+ category_id?: string;
537
537
  /** 身份组 id */
538
- role_id?: number;
538
+ role_id?: string;
539
539
  /** 白/黑名单类型 */
540
540
  type?: NIMQChatChannelWhiteBlackType;
541
541
  /** 操作类型 */
@@ -546,9 +546,9 @@ export interface QChatChannelCategoryGetWhiteBlackRolesPageParam {
546
546
  /** 获取频道分组白/黑名单身份组回调 */
547
547
  cb?: ChannelCategoryGetWhiteBlackRolesPageCallback;
548
548
  /** 服务器 ID */
549
- server_id?: number;
549
+ server_id?: string;
550
550
  /** 分组ID */
551
- category_id?: number;
551
+ category_id?: string;
552
552
  /** 白/黑名单类型 */
553
553
  type?: NIMQChatChannelWhiteBlackType;
554
554
  /** 时间戳 */
@@ -561,22 +561,22 @@ export interface QChatChannelCategoryGetExistingWhiteBlackRolesParam {
561
561
  /** 获取频道分组白/黑名单身份组回调 */
562
562
  cb?: ChannelCategoryGetExistingWhiteBlackRolesCallback;
563
563
  /** 服务器 ID */
564
- server_id?: number;
564
+ server_id?: string;
565
565
  /** 分组ID */
566
- category_id?: number;
566
+ category_id?: string;
567
567
  /** 白/黑名单类型 */
568
568
  type?: NIMQChatChannelWhiteBlackType;
569
569
  /** 身份组ID列表 */
570
- role_ids?: Array<number>;
570
+ role_ids?: Array<string>;
571
571
  }
572
572
  /** @interface QChatChannelCategoryUpdateWhiteBlackMembersParam */
573
573
  export interface QChatChannelCategoryUpdateWhiteBlackMembersParam {
574
574
  /** 更新频道分组白/黑名单成员回调 */
575
575
  cb?: ChannelCategoryUpdateWhiteBlackMembersCallback;
576
576
  /** 服务器 ID */
577
- server_id?: number;
577
+ server_id?: string;
578
578
  /** 分组ID */
579
- category_id?: number;
579
+ category_id?: string;
580
580
  /** 成员ID列表 */
581
581
  accids?: Array<string>;
582
582
  /** 白/黑名单类型 */
@@ -589,9 +589,9 @@ export interface QChatChannelCategoryGetWhiteBlackMembersPageParam {
589
589
  /** 获取频道分组白/黑名单成员回调 */
590
590
  cb?: ChannelCategoryGetWhiteBlackMembersPageCallback;
591
591
  /** 服务器 ID */
592
- server_id?: number;
592
+ server_id?: string;
593
593
  /** 分组ID */
594
- category_id?: number;
594
+ category_id?: string;
595
595
  /** 白/黑名单类型 */
596
596
  type?: NIMQChatChannelWhiteBlackType;
597
597
  /** 时间戳 */
@@ -604,9 +604,9 @@ export interface QChatChannelCategoryGetExistingWhiteBlackMembersParam {
604
604
  /** 获取频道分组白/黑名单成员回调 */
605
605
  cb?: ChannelCategoryGetExistingWhiteBlackMembersCallback;
606
606
  /** 服务器 ID */
607
- server_id?: number;
607
+ server_id?: string;
608
608
  /** 分组ID */
609
- category_id?: number;
609
+ category_id?: string;
610
610
  /** 白/黑名单类型 */
611
611
  type?: NIMQChatChannelWhiteBlackType;
612
612
  /** 成员ID列表 */
@@ -617,9 +617,9 @@ export interface QChatChannelUpdateRTCInfoParam {
617
617
  /** 修改RTC频道参数回调 */
618
618
  cb?: ChannelUpdateRTCInfoCallback;
619
619
  /** 服务器 ID */
620
- server_id?: number;
620
+ server_id?: string;
621
621
  /** 频道 ID */
622
- channel_id?: number;
622
+ channel_id?: string;
623
623
  /** RTC频道参数 */
624
624
  rtc_info?: QChatChannelRTCInfo;
625
625
  }
@@ -628,16 +628,16 @@ export interface QChatChannelGetRTCInfoParam {
628
628
  /** 查询RTC频道参数回调 */
629
629
  cb?: ChannelGetRTCInfoCallback;
630
630
  /** 服务器 ID */
631
- server_id?: number;
631
+ server_id?: string;
632
632
  /** 频道 ID */
633
- channel_id?: number;
633
+ channel_id?: string;
634
634
  }
635
635
  /** @interface QChatChannelGetRTCOnlineMembersParam */
636
636
  export interface QChatChannelGetRTCOnlineMembersParam {
637
637
  /** 获取RTC在线成员列表回调 */
638
638
  cb?: ChannelGetRTCOnlineMembersCallback;
639
639
  /** 服务器 ID */
640
- server_id?: number;
640
+ server_id?: string;
641
641
  /** 频道 ID */
642
- channel_id?: number;
642
+ channel_id?: string;
643
643
  }