node-nim 10.2.0 → 10.2.2-beta.1

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 (44) hide show
  1. package/README.md +0 -6
  2. package/dist/nim/msglog.js +34 -14
  3. package/dist/nim/msglog.js.map +1 -1
  4. package/dist/nim/super_team.js +59 -0
  5. package/dist/nim/super_team.js.map +1 -1
  6. package/dist/nim/talk.js +5 -5
  7. package/dist/nim/talk.js.map +1 -1
  8. package/dist/nim/team.js +48 -0
  9. package/dist/nim/team.js.map +1 -1
  10. package/dist/nim_def/client_def.js +1 -0
  11. package/dist/nim_def/client_def.js.map +1 -1
  12. package/dist/nim_def/super_team_def.js +8 -1
  13. package/dist/nim_def/super_team_def.js.map +1 -1
  14. package/dist/nim_def/team_def.js +8 -1
  15. package/dist/nim_def/team_def.js.map +1 -1
  16. package/dist/qchat/message.js +39 -0
  17. package/dist/qchat/message.js.map +1 -1
  18. package/dist/qchat_def/public_def.js +2 -0
  19. package/dist/qchat_def/public_def.js.map +1 -1
  20. package/dist/v2/v2_nim_friend_service.js +41 -0
  21. package/dist/v2/v2_nim_friend_service.js.map +1 -1
  22. package/dist/v2/v2_nim_user_service.js +20 -0
  23. package/dist/v2/v2_nim_user_service.js.map +1 -1
  24. package/dist/v2_def/v2_nim_enum_def.js +26 -0
  25. package/dist/v2_def/v2_nim_enum_def.js.map +1 -1
  26. package/package.json +5 -2
  27. package/script/publish-to-netease-npm.js +2 -2
  28. package/types/nim/client.d.ts +5 -5
  29. package/types/nim/msglog.d.ts +23 -12
  30. package/types/nim/super_team.d.ts +26 -1
  31. package/types/nim/talk.d.ts +4 -4
  32. package/types/nim/team.d.ts +21 -1
  33. package/types/nim_def/client_def.d.ts +2 -1
  34. package/types/nim_def/msglog_def.d.ts +2 -1
  35. package/types/nim_def/super_team_def.d.ts +28 -0
  36. package/types/nim_def/talk_def.d.ts +1 -1
  37. package/types/nim_def/team_def.d.ts +19 -0
  38. package/types/qchat/message.d.ts +16 -1
  39. package/types/qchat_def/message_def.d.ts +36 -0
  40. package/types/qchat_def/public_def.d.ts +3 -1
  41. package/types/v2/v2_nim_friend_service.d.ts +13 -1
  42. package/types/v2/v2_nim_user_service.d.ts +7 -1
  43. package/types/v2_def/v2_nim_enum_def.d.ts +17 -2
  44. package/types/v2_def/v2_nim_struct_def.d.ts +24 -0
@@ -53,6 +53,10 @@ export declare enum NIMSuperTeamMuteType {
53
53
  kNIMSuperTeamMuteTypeNomalMute = 1 /**< 普通成员禁言 */,
54
54
  kNIMSuperTeamMuteTypeAllMute = 3 /**< 全部禁言 */
55
55
  }
56
+ export declare enum SuperTeamQueryOrder {
57
+ kSuperTeamQueryOrderDesc = 0,
58
+ kSuperTeamQueryOrderAsc = 1
59
+ }
56
60
  export interface SuperTeamEvent {
57
61
  res_code_?: NIMResCode; /**< 错误码 */
58
62
  notification_id_?: NIMNotificationId; /**< 通知类型ID */
@@ -107,6 +111,24 @@ export interface SuperTeamMemberPropertyJsonValue {
107
111
  export interface SuperTeamMemberProperty {
108
112
  member_info_json_value_?: SuperTeamMemberPropertyJsonValue;
109
113
  }
114
+ export interface SuperTeamMemberSerachResult {
115
+ team_member_propertys_?: Array<SuperTeamMemberProperty>;
116
+ offset_?: number;
117
+ finished_?: boolean;
118
+ }
119
+ export interface SuperTeamMemberKeywordSearchOption {
120
+ team_id_?: string;
121
+ keyword_?: string;
122
+ offset_?: number;
123
+ order_?: SuperTeamQueryOrder;
124
+ limit_?: number;
125
+ }
126
+ export interface SuperTeamMemberRoleTypeSearchOption {
127
+ role_types_?: Array<NIMSuperTeamUserType>;
128
+ offset_?: number;
129
+ order_?: SuperTeamQueryOrder;
130
+ limit_?: number;
131
+ }
110
132
  export type SuperTeamEventCallback = (result: SuperTeamEvent) => void;
111
133
  export type QueryAllMySuperTeamsCallback = (count: number, result: Array<string>) => void;
112
134
  export type QueryAllMySuperTeamsInfoCallback = (count: number, result: Array<SuperTeamInfo>) => void;
@@ -115,6 +137,8 @@ export type QuerySuperTeamMembersCallback = (rescode: NIMResCode, tid: string, c
115
137
  export type QuerySuperTeamMemberCallback = (result: SuperTeamMemberProperty) => void;
116
138
  export type QuerySuperTeamInfoCallback = (tid: string, result: SuperTeamInfo) => void;
117
139
  export type QuerySuperTeamMembersOnlineCallback = (rescode: NIMResCode, count: number, result: Array<SuperTeamMemberProperty>) => void;
140
+ export type SuperTeamMemberSerachCallback = (result: SuperTeamMemberSerachResult) => void;
141
+ export type SuperTeamGetMemberListCallback = (result: SuperTeamMemberSerachResult) => void;
118
142
  export interface NIMSuperTeamAPI {
119
143
  InitEventHandlers(): void;
120
144
  InviteAsync(tid: string, ids: Array<string>, invitationPostscript: string, invitationAttachment: string, cb: SuperTeamEventCallback | null, jsonExtension: string): boolean;
@@ -141,4 +165,8 @@ export interface NIMSuperTeamAPI {
141
165
  MuteMemberAsync(tid: string, member_id: string, set_mute: boolean, cb: SuperTeamEventCallback | null, jsonExtension: string): boolean;
142
166
  MuteAsync(tid: string, set_mute: boolean, cb: SuperTeamEventCallback | null, jsonExtension: string): boolean;
143
167
  QuerySuperTeamsInfoByKeywordAsync(keyword: string, cb: QueryAllMySuperTeamsInfoCallback | null, jsonExtension: string): void;
168
+ SearchTeamMembers(option: SuperTeamMemberKeywordSearchOption, cb: SuperTeamMemberSerachCallback | null): void;
169
+ GetTeamMemberList(tid: string, option: SuperTeamMemberRoleTypeSearchOption, cb: SuperTeamGetMemberListCallback | null): void;
170
+ AddTeamMembersFollow(tid: string, account_ids: Array<string>, cb: SuperTeamEventCallback | null): boolean;
171
+ RemoveTeamMembersFollow(tid: string, account_ids: Array<string>, cb: SuperTeamEventCallback | null): boolean;
144
172
  }
@@ -89,7 +89,7 @@ export interface NIMTalkAPI {
89
89
  StopSendMsg(clientMsgId: string, type: NIMMessageType, jsonExtension: string): void;
90
90
  RecallMsg(msg: IMMessage, notify_msg: string, cb: RecallMsgsCallback | null, apnstext: string, pushpayloadconst: string, jsonExtension: string): void;
91
91
  GetAttachmentPathFromMsg(msg: IMMessage): string;
92
- ReplyMessage(msg: IMMessage, json_reply_msg: string): void;
92
+ ReplyMessage(formerMsg: IMMessage, replyMsg: IMMessage, progressCb: FileUpPrgCallback): void;
93
93
  RegMessageFilter(cb: MessageFilterCallback | null, jsonExtension: string): void;
94
94
  RegTeamNotificationFilter(cb: TeamNotificationFilterCallback | null, jsonExtension: string): void;
95
95
  CreateTextMessage(receiver_id: string, session_type: NIMSessionType, client_msg_id: string, content: string, msg_setting: MessageSetting, timetag: number, sub_type: number): string;
@@ -57,6 +57,10 @@ export declare enum NIMTeamQueryType {
57
57
  kNIMTeamQueryByTeamId = 1 /** < 仅匹配群组 ID,传字符串,SDK 会自动转为 long 类型数据与群组 ID 严格匹配 */,
58
58
  kNIMTeamQueryByTeamName = 2 /** < 仅匹配群组名称 */
59
59
  }
60
+ export declare enum TeamQueryOrder {
61
+ kTeamQueryOrderDesc = 0,
62
+ kTeamQueryOrderAsc = 1
63
+ }
60
64
  export interface TeamEvent {
61
65
  res_code_?: NIMResCode; /**< 错误码 */
62
66
  notification_id_?: NIMNotificationId; /**< 通知类型ID */
@@ -114,6 +118,17 @@ export interface TeamMemberPropertyJsonValue {
114
118
  export interface TeamMemberProperty {
115
119
  member_info_json_value_?: TeamMemberPropertyJsonValue;
116
120
  }
121
+ export interface TeamMemberSerachResult {
122
+ team_member_propertys_?: Array<TeamMemberProperty>;
123
+ offset_?: number;
124
+ finished_?: boolean;
125
+ }
126
+ export interface TeamMemberRoleTypeSearchOption {
127
+ role_types_?: Array<NIMTeamUserType>;
128
+ offset_?: number;
129
+ order_?: TeamQueryOrder;
130
+ limit_?: number;
131
+ }
117
132
  export type TeamEventCallback = (result: TeamEvent) => void;
118
133
  export type QueryAllMyTeamsCallback = (count: number, result: Array<string>) => void;
119
134
  export type QueryAllMyTeamsInfoCallback = (count: number, result: Array<TeamInfo>) => void;
@@ -128,6 +143,7 @@ export type TeamMsgAckReadCallback = (tid: string, success_ids: Array<string>, f
128
143
  export type UpdateTInfoLocalCallback = (success_ids: Array<string>, failure_ids: Array<string>) => void;
129
144
  export type GetTeamInfoBatchSFTransCallback = (count: number, infos: Array<TeamInfo>) => void;
130
145
  export type GetTeamInfoListCallback = (rescode: NIMResCode, infos: Array<TeamInfo>, failure_ids: Array<string>) => void;
146
+ export type TeamGetMemberListCallback = (result: TeamMemberSerachResult) => void;
131
147
  export interface NIMTeamAPI {
132
148
  InitEventHandlers(): void;
133
149
  CreateTeamAsync(info: TeamInfo, ids: Array<string>, invitationPostscript: string, cb: TeamEventCallback | null, jsonExtension: string): boolean;
@@ -164,4 +180,7 @@ export interface NIMTeamAPI {
164
180
  UpdateTInfoLocal(infos: Array<TeamInfo>, cb: UpdateTInfoLocalCallback | null, jsonExtension: string): void;
165
181
  GetTeamInfoBatchSFTrans(cb: GetTeamInfoBatchSFTransCallback | null, time_tag: number, jsonExtension: string): void;
166
182
  GetTeaminfoList(tids: Array<string>, cb: GetTeamInfoListCallback | null): void;
183
+ GetTeamMemberList(tid: string, option: TeamMemberRoleTypeSearchOption, cb: TeamGetMemberListCallback | null): void;
184
+ AddTeamMembersFollow(tid: string, account_ids: Array<string>, cb: TeamEventCallback | null): boolean;
185
+ RemoveTeamMembersFollow(tid: string, account_ids: Array<string>, cb: TeamEventCallback | null): boolean;
167
186
  }
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from 'eventemitter3';
2
- import { QChatSendMessageParam, QChatUpdateMessageParam, QChatRevokeMessageParam, QChatDeleteMessageParam, QChatGetMessagesParam, QChatGetMessagesCacheParam, QChatGetLastMessagesParam, QChatMarkMessageReadParam, QChatReplyMessageParam, QChatGetMessageHistoryByIdsParam, QChatGetReferMessagesParam, QChatGetThreadMessagesParam, QChatGetThreadRootMessagesMetaParam, QChatAddQuickCommentParam, QChatRemoveQuickCommentParam, QChatGetQuickCommentsParam, QChatAddQuickCommentResp, QChatGetLastMessagesResp, QChatGetMessageHistoryByIdsResp, QChatGetMessagesCacheResp, QChatGetMessagesResp, QChatGetQuickCommentsResp, QChatGetReferMessagesResp, QChatGetThreadMessagesResp, QChatGetThreadRootMessagesMetaResp, QChatMarkMessageReadResp, QChatRemoveQuickCommentResp, QChatReplyMessageResp, QChatSendMessageResp, QChatUpdateMessageResp, QChatMsgUpdatedResp, QChatRecvMsgResp, QChatMessageSearchPageParam, QChatMessageSearchPageResp, QChatAreMentionedMeMessagesParam, QChatAreMentionedMeMessagesResp, QChatGetMentionedMeMessagesParam, QChatGetMentionedMeMessagesResp } from '../qchat_def/message_def';
2
+ import { QChatSendMessageParam, QChatUpdateMessageParam, QChatRevokeMessageParam, QChatDeleteMessageParam, QChatGetMessagesParam, QChatGetMessagesCacheParam, QChatGetLastMessagesParam, QChatMarkMessageReadParam, QChatReplyMessageParam, QChatGetMessageHistoryByIdsParam, QChatGetReferMessagesParam, QChatGetThreadMessagesParam, QChatGetThreadRootMessagesMetaParam, QChatAddQuickCommentParam, QChatRemoveQuickCommentParam, QChatGetQuickCommentsParam, QChatAddQuickCommentResp, QChatGetLastMessagesResp, QChatGetMessageHistoryByIdsResp, QChatGetMessagesCacheResp, QChatGetMessagesResp, QChatGetQuickCommentsResp, QChatGetReferMessagesResp, QChatGetThreadMessagesResp, QChatGetThreadRootMessagesMetaResp, QChatMarkMessageReadResp, QChatRemoveQuickCommentResp, QChatReplyMessageResp, QChatSendMessageResp, QChatUpdateMessageResp, QChatMsgUpdatedResp, QChatRecvMsgResp, QChatMessageSearchPageParam, QChatMessageSearchPageResp, QChatAreMentionedMeMessagesParam, QChatAreMentionedMeMessagesResp, QChatGetMentionedMeMessagesParam, QChatGetMentionedMeMessagesResp, QChatInsertOrReplaceTextCacheParam, QChatInsertOrReplaceTextCacheResp, QChatDeleteTextCacheParam, QChatDeleteTextCacheResp, QChatGetTextCacheParam, QChatGetTextCacheResp } from '../qchat_def/message_def';
3
3
  export declare interface QChatMessageEvents {
4
4
  /** 新消息通知 */
5
5
  message: [QChatRecvMsgResp];
@@ -125,4 +125,19 @@ export declare class QChatMessageModule extends EventEmitter<QChatMessageEvents>
125
125
  * @param param 接口参数 @see QChatSearchMsgByPageParam
126
126
  */
127
127
  searchMsgByPage(param: QChatMessageSearchPageParam): Promise<QChatMessageSearchPageResp>;
128
+ /** @fn void insertOrReplaceTextCache(const QChatInsertOrReplaceTextCacheParam& param)
129
+ * @brief 插入或更新自定义文本缓存
130
+ * @param param 接口参数 @see QChatInsertOrReplaceTextCacheParam
131
+ */
132
+ insertOrReplaceTextCache(param: QChatInsertOrReplaceTextCacheParam): Promise<QChatInsertOrReplaceTextCacheResp>;
133
+ /** @fn void deleteTextCache(const QChatDeleteTextCacheParam& param)
134
+ * @brief 删除自定义文本缓存
135
+ * @param param 接口参数 @see QChatDeleteTextCacheParam
136
+ */
137
+ deleteTextCache(param: QChatDeleteTextCacheParam): Promise<QChatDeleteTextCacheResp>;
138
+ /** @fn void getTextCache(const QChatGetTextCacheParam& param)
139
+ * @brief 获取自定义文本缓存
140
+ * @param param 接口参数 @see QChatGetTextCacheParam
141
+ */
142
+ getTextCache(param: QChatGetTextCacheParam): Promise<QChatGetTextCacheResp>;
128
143
  }
@@ -341,6 +341,13 @@ export interface QChatAreMentionedMeMessagesResp {
341
341
  /** 消息是否 @ 当前用户列表, key: 消息 id, value: 是否 @ 当前用户 */
342
342
  result?: Map<string, boolean>;
343
343
  }
344
+ /** @interface 获取圈组草稿内容回调内容 */
345
+ export interface QChatGetTextCacheResp {
346
+ /** 操作结果, 参考NIMResCode */
347
+ res_code: number;
348
+ /** 缓存的内容 */
349
+ value: string;
350
+ }
344
351
  /** 接收消息回调 */
345
352
  export type RecvMsgCallback = (resp: QChatRecvMsgResp) => void;
346
353
  /** 发送消息回调 */
@@ -377,6 +384,8 @@ export type MessageSearchPageCallback = (resp: QChatMessageSearchPageResp) => vo
377
384
  export type GetMentionedMeMessagesCallback = (resp: QChatGetMentionedMeMessagesResp) => void;
378
385
  /** 查询消息是否 @ 当前用户回调 */
379
386
  export type AreMentionedMeMessagesCallback = (resp: QChatAreMentionedMeMessagesResp) => void;
387
+ /** 获取圈组草稿内容回调 */
388
+ export type GetTextCacheCallback = (resp: QChatGetTextCacheResp) => void;
380
389
  /** @interface QChatSendMessageParam */
381
390
  export interface QChatSendMessageParam {
382
391
  /** 圈组消息体 */
@@ -423,6 +432,8 @@ export interface QChatGetMessagesParam {
423
432
  limit?: number;
424
433
  /** 是否倒序, false: 否, true: 是 */
425
434
  reverse?: boolean;
435
+ /** 是否包含本地消息 */
436
+ include_local_messsages?: boolean;
426
437
  }
427
438
  /** @interface QChatGetLastMessagesParam */
428
439
  export interface QChatGetLastMessagesParam {
@@ -563,3 +574,28 @@ export interface QChatMessageSearchPageParam {
563
574
  /** 查询游标, 查询的起始位置 */
564
575
  cursor?: string;
565
576
  }
577
+ /** @interface 圈组插入或替换草稿内容参数 */
578
+ export interface QChatInsertOrReplaceTextCacheParam {
579
+ /** 服务器ID */
580
+ server_id: string;
581
+ /** 频道ID */
582
+ channel_id: string;
583
+ /** 缓存的内容 */
584
+ value: string;
585
+ }
586
+ export type QChatInsertOrReplaceTextCacheResp = QChatBaseResp;
587
+ /** @interface 圈组删除草稿内容参数 */
588
+ export interface QChatDeleteTextCacheParam {
589
+ /** 服务器ID */
590
+ server_id: string;
591
+ /** 频道ID */
592
+ channel_id: string;
593
+ }
594
+ export type QChatDeleteTextCacheResp = QChatBaseResp;
595
+ /** @interface 圈组获取草稿内容参数 */
596
+ export interface QChatGetTextCacheParam {
597
+ /** 服务器ID */
598
+ server_id: string;
599
+ /** 频道ID */
600
+ channel_id: string;
601
+ }
@@ -281,7 +281,9 @@ export declare enum NIMQChatClientType {
281
281
  /** Web */
282
282
  kQChatClientTypeWeb = 16,
283
283
  /** macOS */
284
- kQChatClientTypeMacOS = 64
284
+ kQChatClientTypeMacOS = 64,
285
+ /** HarmonyOS */
286
+ kQChatClientTypeHarmonyOS = 65
285
287
  }
286
288
  export declare enum NIMQChatLoginStep {
287
289
  /** 连接 Link 地址阶段 */
@@ -1,4 +1,4 @@
1
- import { V2NIMFriend, V2NIMFriendAddApplication, V2NIMFriendAddRejection, V2NIMFriendAddParams, V2NIMFriendDeleteParams, V2NIMFriendSetParams, V2NIMFriendAddApplicationQueryOption, V2NIMFriendAddApplicationResult } from 'ts/v2_def/v2_nim_struct_def';
1
+ import { V2NIMFriend, V2NIMFriendAddApplication, V2NIMFriendAddRejection, V2NIMFriendAddParams, V2NIMFriendDeleteParams, V2NIMFriendSetParams, V2NIMFriendAddApplicationQueryOption, V2NIMFriendAddApplicationResult, V2NIMFriendSearchOption } from 'ts/v2_def/v2_nim_struct_def';
2
2
  import { EventEmitter } from 'eventemitter3';
3
3
  export declare interface V2NIMFriendServiceEvents {
4
4
  /** 添加好友 */
@@ -55,4 +55,16 @@ export declare class V2NIMFriendService extends EventEmitter<V2NIMFriendServiceE
55
55
  /** @param option 查询申请添加好友相关信息参数 */
56
56
  /** @return void */
57
57
  getAddApplicationList(option: V2NIMFriendAddApplicationQueryOption): Promise<V2NIMFriendAddApplicationResult>;
58
+ /** @brief 获取申请添加好友未读数量 */
59
+ /** @return void */
60
+ getAddApplicationUnreadCount(): Promise<number>;
61
+ /** @brief 设置申请添加好友已读 */
62
+ /** @return void */
63
+ setAddApplicationRead(): Promise<void>;
64
+ /**
65
+ * 根据关键字搜索用户信息
66
+ * @param option 搜索选项 @see V2NIMFriendSearchOption
67
+ * @return Promise<Array<V2NIMFriend>>
68
+ */
69
+ searchFriendByOption(option: V2NIMFriendSearchOption): Promise<Array<V2NIMFriend>>;
58
70
  }
@@ -1,4 +1,4 @@
1
- import { V2NIMUser, V2NIMUserUpdateParams } from 'ts/v2_def/v2_nim_struct_def';
1
+ import { V2NIMUser, V2NIMUserUpdateParams, V2NIMUserSearchOption } from 'ts/v2_def/v2_nim_struct_def';
2
2
  import { EventEmitter } from 'eventemitter3';
3
3
  export declare interface V2NIMUserServiceEvents {
4
4
  /** 用户资料变更 */
@@ -31,4 +31,10 @@ export declare class V2NIMUserService extends EventEmitter<V2NIMUserServiceEvent
31
31
  /** @brief 获取黑名单列表 */
32
32
  /** @return void */
33
33
  getBlockList(): Promise<Array<string>>;
34
+ /**
35
+ * 根据关键字搜索好友信息
36
+ * @param option 搜索选项 @see V2NIMUserSearchOption
37
+ * @return Promise<Array<V2NIMUser>>
38
+ */
39
+ searchUserByOption(option: V2NIMUserSearchOption): Promise<Array<V2NIMUser>>;
34
40
  }
@@ -583,7 +583,18 @@ declare enum V2NIMMessageNotificationType {
583
583
  /** 接受邀请进群 */
584
584
  V2NIM_MESSAGE_NOTIFICATION_TYPE_TEAM_INVITE_ACCEPT = 9,
585
585
  /** 禁言群成员 */
586
- V2NIM_MESSAGE_NOTIFICATION_TYPE_TEAM_BANNED_TEAM_MEMBER = 10
586
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_TEAM_BANNED_TEAM_MEMBER = 10,
587
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_INVITE = 401,
588
+ SSAGE_NOTIFICATION_TYPE_SUPER_TEAM_KICK = 402,
589
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_LAVE = 403,
590
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_UPDATE_TINFO = 404,
591
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_DISMISS = 405,
592
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_OWNER_TRANSFER = 406,
593
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_ADD_MANAGER = 407,
594
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_REMOVE_MANAGER = 408,
595
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_BANNED_TEAM_MEMBER = 409,
596
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_APPLY_PASS = 410,
597
+ V2NIM_MESSAGE_NOTIFICATION_TYPE_SUPER_TEAM_INVITE_ACCEPT = 411
587
598
  }
588
599
  declare enum V2NIMChatroomMessageNotificationType {
589
600
  /** 成员进入聊天室 */
@@ -713,7 +724,11 @@ declare enum V2NIMLoginClientType {
713
724
  /** WEB */
714
725
  V2NIM_LOGIN_CLIENT_TYPE_WEB = 16,
715
726
  /** REST API */
716
- V2NIM_LOGIN_CLIENT_TYPE_RESTFUL = 32
727
+ V2NIM_LOGIN_CLIENT_TYPE_RESTFUL = 32,
728
+ /** macOS */
729
+ V2NIM_LOGIN_CLIENT_TYPE_MAC_OS = 64,
730
+ /** HarmonyOS */
731
+ V2NIM_LOGIN_CLIENT_TYPE_HARMONY_OS = 65
717
732
  }
718
733
  declare enum V2NIMLoginStatus {
719
734
  /** 未登录 */
@@ -163,6 +163,8 @@ export interface V2NIMMessageTeamNotificationAttachment extends V2NIMMessageAtta
163
163
  targetIds?: Array<string>;
164
164
  /** 群成员是否被禁言 */
165
165
  chatBanned?: boolean;
166
+ /** 群信息更新字段,有相应字段信息,则表示对应字段被修改 */
167
+ updateTeamInfo?: V2NIMUpdateTeamInfoParams;
166
168
  }
167
169
  export interface V2NIMChatroomNotificationAttachment extends V2NIMMessageAttachment {
168
170
  /** 通知类型 */
@@ -740,6 +742,8 @@ export interface V2NIMLastMessage {
740
742
  revokeAccountId?: string;
741
743
  /** 消息撤回类型 */
742
744
  revokeType?: V2NIMMessageRevokeType;
745
+ /** 消息发送者 */
746
+ senderName?: string;
743
747
  /** 扩展信息 */
744
748
  serverExtension?: string;
745
749
  /** 第三方扩展字段 */
@@ -1077,6 +1081,16 @@ export interface V2NIMUserUpdateParams {
1077
1081
  /** 用户扩展字段 */
1078
1082
  serverExtension?: string;
1079
1083
  }
1084
+ export interface V2NIMUserSearchOption {
1085
+ /** 搜索关键字 */
1086
+ keyword?: string;
1087
+ /** 是否搜索用户昵称,默认为 true */
1088
+ searchName?: boolean;
1089
+ /** 是否搜索用户账号 */
1090
+ searchAccountId?: boolean;
1091
+ /** 是否搜索手机号 */
1092
+ searchMobile?: boolean;
1093
+ }
1080
1094
  export interface V2NIMFriend {
1081
1095
  /** 好友账号 */
1082
1096
  accountId?: string;
@@ -1090,6 +1104,8 @@ export interface V2NIMFriend {
1090
1104
  createTime?: number;
1091
1105
  /** 更新时间 */
1092
1106
  updateTime?: number;
1107
+ /** 好友对应的用户信息 */
1108
+ userProfile: V2NIMUser;
1093
1109
  }
1094
1110
  export interface V2NIMFriendAddParams {
1095
1111
  /** 添加好友模式 */
@@ -1125,6 +1141,14 @@ export interface V2NIMFriendSetParams {
1125
1141
  /** 扩展字段 */
1126
1142
  serverExtension?: string;
1127
1143
  }
1144
+ export interface V2NIMFriendSearchOption {
1145
+ /** 搜索关键字,默认搜索好友备注,可以指定是否同时搜索用户账号 */
1146
+ keyword?: string;
1147
+ /** 是否搜索好友备注,默认为 true */
1148
+ searchAlias?: boolean;
1149
+ /** 查询账号,默认为 false */
1150
+ searchAccountId?: boolean;
1151
+ }
1128
1152
  export interface V2NIMTeamJoinActionInfoQueryOption {
1129
1153
  /** 查询类型 */
1130
1154
  types?: Array<V2NIMTeamJoinActionType>;