easemob-websdk 5.1.1 → 5.1.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/bundle/im-sdk-web.iife.js +1 -1
- package/chat-client.d.ts +42 -8
- package/chunks/{chat-manager-QJCNq-in.cjs → chat-manager-BFd2Z4oY.cjs} +1 -1
- package/chunks/{chat-manager-QxcfwVLg.js → chat-manager-CId_M_e5.js} +1 -1
- package/chunks/common-BvlDAw4a.js +1 -0
- package/chunks/common-tHGz9VBk.cjs +1 -0
- package/chunks/event-system-B62vbKqG.js +1 -0
- package/chunks/{event-system-COBJFEIq.cjs → event-system-TYhmgy4K.cjs} +1 -1
- package/chunks/group-user-info-resolver-B-dyr__b.cjs +1 -0
- package/chunks/group-user-info-resolver-DMccCqez.js +1 -0
- package/chunks/index-BBFJYOM8.js +1 -0
- package/chunks/{index-DIV5mZP8.cjs → index-DJPAjXAp.cjs} +1 -1
- package/chunks/index-DtWkVcfb.cjs +1 -0
- package/chunks/index-l_BUKi77.js +1 -0
- package/chunks/{session-list-query-rynxSxtv.js → session-list-query-Cvr6rlme.js} +1 -1
- package/chunks/{session-list-query-C4OQMvPf.cjs → session-list-query-Dslj2k3t.cjs} +1 -1
- package/chunks/{user-info-DfbCp80h.js → user-info-AlshAvdy.js} +1 -1
- package/chunks/{user-info-DsDDTJrw.cjs → user-info-DH3aE1gm.cjs} +1 -1
- package/config/timeouts.d.ts +11 -0
- package/core/connection/connection-manager.d.ts +18 -1
- package/core/connection/login-deadline.d.ts +22 -0
- package/core/events/event-hub.d.ts +1 -0
- package/core/index.d.ts +8 -1
- package/core/message/attachment-downloader.d.ts +1 -1
- package/core/session-list-sync/session-list-sync-controller.d.ts +5 -0
- package/index.cjs +1 -1
- package/index.d.ts +11 -9
- package/index.js +2 -2
- package/log.d.ts +27 -0
- package/managers/chat/index.cjs +1 -1
- package/managers/chat/index.js +1 -1
- package/managers/chat-thread/index.cjs +1 -1
- package/managers/chat-thread/index.js +1 -1
- package/managers/chatroom/chatroom.d.ts +1 -1
- package/managers/chatroom/index.cjs +1 -1
- package/managers/chatroom/index.js +1 -1
- package/managers/chatroom-manager.d.ts +6 -1
- package/managers/contact/index.cjs +1 -1
- package/managers/contact/index.js +1 -1
- package/managers/group/index.cjs +1 -1
- package/managers/group/index.js +1 -1
- package/managers/presence/index.cjs +1 -1
- package/managers/presence/index.js +1 -1
- package/managers/push/index.cjs +1 -1
- package/managers/push/index.d.ts +2 -0
- package/managers/push/index.js +1 -1
- package/managers/push/native-push-controller.d.ts +62 -0
- package/managers/push/native-push-normalizer.d.ts +15 -0
- package/managers/push-manager.d.ts +63 -4
- package/managers/user-info/index.cjs +1 -1
- package/managers/user-info/index.js +1 -1
- package/managers/user-info-manager.d.ts +3 -2
- package/message/combine-payload-codec.d.ts +2 -1
- package/package.json +1 -1
- package/platform/index.d.ts +1 -1
- package/platform/request/default-request-adapter.d.ts +7 -0
- package/platform/socket/default-socket-adapter.d.ts +6 -0
- package/platform/types.d.ts +22 -2
- package/platform/upload/legacy-multipart-upload.d.ts +14 -0
- package/platform/upload/legacy-simple-upload.d.ts +3 -0
- package/protocol/msync/codec.d.ts +5 -0
- package/rest/client.d.ts +0 -4
- package/rest/contact-management.d.ts +1 -0
- package/rest/dns-config.d.ts +6 -1
- package/rest/error-maps/chatroom.d.ts +6 -0
- package/rest/error-maps/common.d.ts +3 -0
- package/rest/error-maps/contact.d.ts +8 -3
- package/rest/error-maps/push.d.ts +13 -1
- package/rest/error-maps/user-info.d.ts +51 -3
- package/rest/service-url.d.ts +6 -0
- package/types/chat-client.d.ts +16 -9
- package/types/chatroom.d.ts +3 -34
- package/types/event-system.d.ts +52 -1
- package/types/index.d.ts +5 -7
- package/types/log.d.ts +19 -0
- package/types/manager.d.ts +31 -0
- package/types/push.d.ts +77 -0
- package/upload/attachment-uploader.d.ts +1 -5
- package/upload/multipart-upload.d.ts +4 -14
- package/upload/simple-upload.d.ts +4 -3
- package/upload/types.d.ts +2 -1
- package/utils/error-codes.generated.d.ts +1 -0
- package/utils/log-reporter.d.ts +1 -7
- package/utils/logger.d.ts +28 -2
- package/validators/chat-client.d.ts +22 -50
- package/validators/message-create.d.ts +18 -18
- package/chunks/common-BIpcR2uQ.cjs +0 -1
- package/chunks/common-D_DfwSd3.js +0 -1
- package/chunks/event-system-D6IJA0C4.js +0 -1
- package/chunks/group-user-info-resolver-Ds35Z1Uf.cjs +0 -1
- package/chunks/group-user-info-resolver-lEtRdWli.js +0 -1
- package/chunks/index-Baofxzfc.cjs +0 -1
- package/chunks/index-CKbroPac.js +0 -1
- package/chunks/index-DPi6gEFw.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { ChatClient } from './chat-client';
|
|
2
|
-
export { setLogLevel } from './
|
|
2
|
+
export { setConsoleLogEnabled, setLogLevel } from './log';
|
|
3
|
+
export type { LogEntry, LogLevel } from './types/log';
|
|
4
|
+
export { LogEventName, PushEventName } from './types/event-system';
|
|
3
5
|
export { AuthenticationError, ConnectionError, isSDKError, MessageReceiveError, MessageSendError, NetworkError, RestBusinessError, RestTransportError, SDKError, StorageError, UploadError, ValidationError, } from './utils/errors';
|
|
4
6
|
export type { ErrorContext, ErrorDetails } from './utils/errors';
|
|
5
7
|
export { createPlatformAdapter, detectRuntimePlatform } from './platform';
|
|
@@ -37,9 +39,9 @@ export type { ManagerBase, // 管理器基础类型
|
|
|
37
39
|
ManagerCapability, ManagerConstructor, // 管理器构造器类型
|
|
38
40
|
ManagerEventContext, ManagerInstance, // 管理器实例类型
|
|
39
41
|
ManagerInstanceKey, ManagerRegistration, // 管理器注册类型
|
|
40
|
-
RawNotifyEvent, WithManager, // 单管理器扩展类型
|
|
42
|
+
ManagerSessionContext, ManagerSessionEndContext, ManagerSessionEndReason, RawNotifyEvent, WithManager, // 单管理器扩展类型
|
|
41
43
|
WithManagers, } from './types/manager';
|
|
42
|
-
export type { ChatRoomAdminInput, ChatRoomAdminParams, ChatRoomAdminAddedEventPayload, ChatRoomAdminRemovedEventPayload, ChatRoomAllMemberMuteStateChangedEventPayload, ChatRoomAllowlistEntry, ChatRoomAnnouncement, ChatRoomAnnouncementChangedEventPayload, ChatRoomAnnouncementUpdateInput, ChatRoomAnnouncementUpdateParams, ChatRoomAttributeMutationResult, ChatRoomAttributesRemovedEventPayload, ChatRoomAttributesSnapshot, ChatRoomAllowListAddedEventPayload, ChatRoomAllowListRemovedEventPayload, ChatRoomBlocklistEntry, ChatRoomDestroyedEventPayload, ChatRoomDetail,
|
|
44
|
+
export type { ChatRoomAdminInput, ChatRoomAdminParams, ChatRoomAdminAddedEventPayload, ChatRoomAdminRemovedEventPayload, ChatRoomAllMemberMuteStateChangedEventPayload, ChatRoomAllowlistEntry, ChatRoomAnnouncement, ChatRoomAnnouncementChangedEventPayload, ChatRoomAnnouncementUpdateInput, ChatRoomAnnouncementUpdateParams, ChatRoomAttributeMutationResult, ChatRoomAttributesRemovedEventPayload, ChatRoomAttributesSnapshot, ChatRoomAllowListAddedEventPayload, ChatRoomAllowListRemovedEventPayload, ChatRoomBlocklistEntry, ChatRoomDestroyedEventPayload, ChatRoomDetail, ChatRoomEventHandlerMap, ChatRoomEventName, ChatRoomEventPayloadMap, ChatRoomListResult, ChatRoomAttributesUpdateEventPayload, ChatRoomMemberActionListResult, ChatRoomMemberActionResult, ChatRoomMemberEntry, ChatRoomMembersExitedEventPayload, ChatRoomMembersJoinedEventPayload, ChatRoomMemberListParams, ChatRoomMemberListResult, ChatRoomMuteEntry, ChatRoomMuteListAddedEventPayload, ChatRoomMuteListRemovedEventPayload, ChatRoomMuteMembersInput, ChatRoomMuteMembersParams, ChatRoomMuteStatus, ChatRoomMutationTarget, ChatRoomOwnerChangedEventPayload, ChatRoomPageParams, ChatRoomPermissionType, ChatRoomRole, ChatRoomInfoChangedEventPayload, ChatRoomSummary, ChatRoomUpdateInfoInput, ChatRoomUpdateResult, ChatRoomUserBatchInput, ChatRoomUserBatchParams, ChatRoomRemovedFromChatRoomEventPayload, DeleteChatRoomSharedFileParams, GetChatRoomAttributesInput, GetChatRoomAttributesParams, GetChatRoomInfoParams, GetChatRoomListParams, JoinChatRoomInfo, JoinChatRoomParams, RemoveChatRoomAttributesInput, RemoveChatRoomAttributesParams, SetChatRoomAttributesInput, SetChatRoomAttributesParams, UpdateChatRoomInfoParams, } from './types/chatroom';
|
|
43
45
|
export type { AcceptGroupJoinRequestParams, CreateGroupParams, CreateGroupResult, CursorPageParams, DeleteGroupSharedFileParams, DownloadGroupSharedFileParams, GetGroupInfoListParams, GetGroupInfoParams, GetGroupMembersAttributesParams, GroupAdminMutationParams, GroupAllowlistEntry, GroupAdminAddedEventPayload, GroupAdminRemovedEventPayload, GroupAnnouncement, GroupAnnouncementChangedEventPayload, GroupAnnouncementUpdateInput, GroupAnnouncementUpdateParams, GroupAutoAcceptInvitationEventPayload, GroupBlocklistEntry, GroupDeleteSharedFileInput, GroupDetail, GroupDownloadSharedFileInput, GroupDestroyedEventPayload, GroupInvitationAcceptedEventPayload, GroupInvitationDeclinedEventPayload, GroupInvitationReceivedEventPayload, GroupGetMembersAttributesInput, GroupListResult, GroupMemberAttributeChangedEventPayload, GroupMemberEntry, GroupMemberListQuery, GroupMuteListQuery, GroupMemberListParams, GroupMemberListResult, GroupMembersAttributesResult, GroupMembersExitedEventPayload, GroupMembersJoinedEventPayload, GroupMuteEntry, GroupMuteListAddedEventPayload, GroupMuteListRemovedEventPayload, GroupMuteMembersInput, GroupMutationTarget, NumberPageParams, GroupOwnerChangedEventPayload, GroupOwnerChangeInput, GroupOwnerChangeParams, GroupRequestToJoinAcceptedEventPayload, GroupRequestToJoinDeclinedEventPayload, GroupRequestToJoinReceivedEventPayload, GroupRole, GroupSetMemberAttributesInput, GroupSharedFile, GroupSharedFileListQuery, GroupSharedFileAddedEventPayload, GroupSharedFileDeletedEventPayload, GroupSharedFileListParams, GroupSharedFileListResult, GroupInfoChangedEventPayload, GroupDisabledChangedEventPayload, JoinedGroupSnapshot, JoinedGroupSnapshotIntegrity, JoinedGroupSnapshotMeta, JoinedGroupSnapshotSource, JoinedGroupSummary, GroupSummary, GroupUserInfo, GroupManagerListener, GroupUpdateConfigsInput, GroupUpdateInfoInput, GroupUploadSharedFileInput, GroupUserBatchInput, GroupUserBatchParams, GroupUserGroupNamecardUpdatedEventPayload, GroupUserRemovedEventPayload, GroupAllowListAddedEventPayload, GroupAllowListRemovedEventPayload, GroupAllMemberMuteStateChangedEventPayload, GroupJoinParams, GroupMuteMembersParams, RejectGroupJoinRequestParams, SetGroupMemberAttributesParams, UpdateGroupInfoParams, UploadGroupSharedFileParams, } from './types/group';
|
|
44
46
|
export type { ChatActionResult, ChatConversationType, ConversationLocator, DownloadCombineMessageInput, DownloadAttachmentParams, GetHistoryMessagesParams, GetGroupMessageReadReceiptsParams, GetReactionDetailParams, GetReactionListParams, GroupMessageReadUser, GroupMessageReadUserInfo, GroupMessageReadUsersParams, GroupMessageReadUsersResult, ClearConversationUnreadMessageCountParams, MessageAttachmentDownloadResult, MessageHistoryPage, MessageChatConversationType, MessageReadReceiptDetail, MessageReactionDetailPage, MessageReactionListItem, MessageReactionSummary, MessageTranslation, MessageTranslationResult, ReactionOperationParams, RecallMessageParams, RemoveHistoryMessagesParams, TranslateMessageParams, TranslationLanguage, UpdateMessageParams, MessageSearchOption, SearchableMessageType, SearchMessagesParams, SearchMessagesResult, SearchResultMessage, SendMessageReadReceiptsParams, VoiceParams, VoiceMessageSource, VoiceSourceFile, VoiceToTextResult, } from './types/chat-manager';
|
|
45
47
|
export type { CreateCmdMessageParams, // 命令消息入参类型
|
|
@@ -62,8 +64,8 @@ EventHandlerMap, // 通用事件处理器映射
|
|
|
62
64
|
EventName, // 事件名称
|
|
63
65
|
EventPayloadMap, // 事件载荷映射
|
|
64
66
|
MultiDeviceEventHandlerMap, MultiDeviceEventPayloadMap, GroupEventHandlerMap, // 群组事件处理器类型
|
|
65
|
-
GroupEventPayloadMap, PresenceEventHandlerMap, // 在线状态事件处理器类型
|
|
66
|
-
PresenceEventPayloadMap, UserInfoEventHandlerMap, // 用户资料事件处理器类型
|
|
67
|
+
GroupEventPayloadMap, LogEventHandlerMap, LogEventPayloadMap, PresenceEventHandlerMap, // 在线状态事件处理器类型
|
|
68
|
+
PresenceEventPayloadMap, PushEventHandlerMap, PushEventPayloadMap, UserInfoEventHandlerMap, // 用户资料事件处理器类型
|
|
67
69
|
UserInfoEventPayloadMap, } from './types/event-system';
|
|
68
70
|
export type { MultiDeviceContactOperation, MultiDeviceConversationOperation, MultiDeviceEvent, MultiDeviceEventCategory, MultiDeviceGroupOperation, MultiDeviceMessageRemovedOperation, MultiDeviceThreadOperation, } from './types/multi-device';
|
|
69
71
|
export type { ChatThreadBaseEventPayload, ChatThreadCreatedEventPayload, ChatThreadDetail, ChatThreadDestroyedEventPayload, ChatThreadLastMessageEntry, ChatThreadLastMessageListResult, ChatThreadListResult, ChatThreadMessageContext, ChatThreadMemberEntry, ChatThreadMemberListQuery, ChatThreadMemberListResult, ChatThreadMutationTarget, ChatThreadOverview, ChatThreadSummary, ChatThreadUpdatedEventPayload, ChatThreadUserRemovedEventPayload, CreateChatThreadParams, CreateChatThreadResult, GetChatThreadInfoParams, GetChatThreadLastMessageListParams, GetChatThreadListParams, GetChatThreadMemberListParams, GetJoinedChatThreadListParams, RemoveChatThreadMemberParams, UpdateChatThreadNameParams, } from './types/chat-thread';
|
|
@@ -85,9 +87,9 @@ GetPushLanguageParams, // 查询推送语言参数
|
|
|
85
87
|
GlobalSilentModeResponse, // 全局免打扰响应
|
|
86
88
|
MutedConversationItem, // 免打扰会话条目
|
|
87
89
|
MutedConversationPageResponse, // 免打扰会话分页响应
|
|
88
|
-
PushConversationType, // 会话类型
|
|
90
|
+
NativePushCertificates, NativePushChannel, NativePushPlugin, NativePushTokenResult, NativePushTypeCode, PushConversationType, // 会话类型
|
|
89
91
|
PushLanguageResponse, // 推送语言响应
|
|
90
|
-
PushRemindType, // 提醒类型
|
|
92
|
+
PushTokenBoundEvent, PushTokenOperationFailedEvent, PushRemindType, // 提醒类型
|
|
91
93
|
PushRemindTypeWithoutDefault, // 提醒类型(不含默认)
|
|
92
94
|
PushSilentModeDurationRuleInput, // 时长规则输入
|
|
93
95
|
PushSilentModeDurationRuleView, // 时长规则输出
|
|
@@ -99,7 +101,7 @@ PushSilentModeRuleInput, // 免打扰规则输入
|
|
|
99
101
|
PushSilentModeRuleView, // 免打扰规则输出
|
|
100
102
|
PushTimePoint, // 时间点
|
|
101
103
|
SetConversationSilentModeParams, // 设置会话免打扰参数
|
|
102
|
-
SetGlobalSilentModeParams, // 设置全局免打扰参数
|
|
104
|
+
SetNativePushOptions, SetGlobalSilentModeParams, // 设置全局免打扰参数
|
|
103
105
|
SetPushLanguageParams, // 设置推送语言参数
|
|
104
106
|
UploadPushTokenParams, } from './types/push';
|
|
105
107
|
export type { FetchUserInfoByAttributeParams, // 按属性查询参数
|
|
@@ -131,4 +133,4 @@ PlatformAdapterOverridesResolver, PlatformAdapterError, // 平台错误
|
|
|
131
133
|
PlatformAdapterProfile, PlatformCapability, // 平台能力画像
|
|
132
134
|
PlatformErrorCode, PlatformErrorStage, PlatformFactoryResult, // 平台工厂结果
|
|
133
135
|
ProtoAdapter, RequestAdapter, RequestConfig, RequestResponse, RuntimeAdapter, RuntimePlatform, // 运行平台
|
|
134
|
-
SocketAdapter, SocketConnectConfig, SocketLike, SocketMessageData, SocketReadyState, SocketSendData, StorageAdapter, UploadAdapter, UploadConfig, UploadProgress, UploadResult, UploadSource, UploadSourceType, } from './platform';
|
|
136
|
+
SocketAdapter, SocketConnectConfig, SocketLike, SocketMessageData, SocketReadyState, SocketSendData, StorageAdapter, TransportAdapter, UploadAdapter, UploadConfig, UploadProgress, UploadResult, UploadSource, UploadSourceType, } from './platform';
|