easemob-websdk 4.24.1 → 5.0.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.
- package/README.md +95 -39
- package/bundle/im-sdk-web.iife.js +1 -0
- package/cache/cache-crypto.d.ts +26 -0
- package/cache/cache-eviction.d.ts +16 -0
- package/cache/cache-keys.d.ts +23 -0
- package/cache/cache-manager.d.ts +254 -0
- package/cache/cache-metadata.d.ts +14 -0
- package/cache/cache-store.d.ts +19 -0
- package/cache/cache-types.d.ts +225 -0
- package/cache/cache-utils.d.ts +7 -0
- package/cache/contact-cache.d.ts +35 -0
- package/cache/conversation-cache.d.ts +21 -0
- package/cache/group-namecard-cache.d.ts +20 -0
- package/cache/index.d.ts +24 -0
- package/cache/joined-group-preview-cache.d.ts +12 -0
- package/cache/session-list-cache.d.ts +10 -0
- package/cache/user-info-cache.d.ts +16 -0
- package/chat-client.d.ts +558 -0
- package/chunks/cache-utils-BwRPIZ7n.js +1 -0
- package/chunks/cache-utils-CKbcYPlM.cjs +1 -0
- package/chunks/chat-manager-ChdK26ck.cjs +1 -0
- package/chunks/chat-manager-DH8a6Qj9.js +2 -0
- package/chunks/common-CfAlncj9.cjs +1 -0
- package/chunks/common-DN_g4O3n.js +1 -0
- package/chunks/event-system-COBJFEIq.cjs +1 -0
- package/chunks/event-system-D6IJA0C4.js +1 -0
- package/chunks/group-user-info-resolver-C5pdiqox.cjs +1 -0
- package/chunks/group-user-info-resolver-FNRqDg18.js +1 -0
- package/chunks/index-BKg4EGcI.cjs +1 -0
- package/chunks/index-CK3GHdGU.cjs +1 -0
- package/chunks/index-CjofwvEQ.js +1 -0
- package/chunks/index-uKWbjx-u.js +1 -0
- package/chunks/profile-version-DLMz8lqW.js +1 -0
- package/chunks/profile-version-njNs7R5-.cjs +1 -0
- package/chunks/reflection-proto-codec-64ocOTHU.js +1 -0
- package/chunks/reflection-proto-codec-BnQFQdZC.cjs +1 -0
- package/chunks/session-list-query-B6dh-b4Y.cjs +1 -0
- package/chunks/session-list-query-Dnp2HbpW.js +1 -0
- package/chunks/user-info-BfRwS4ZA.js +1 -0
- package/chunks/user-info-icpL0Eaw.cjs +1 -0
- package/config/cache.d.ts +12 -0
- package/config/timeouts.d.ts +34 -0
- package/core/connection/connection-manager.d.ts +228 -0
- package/core/connection/connection-retry.d.ts +47 -0
- package/core/connection/heartbeat.d.ts +68 -0
- package/core/contact-sync/contact-roster-event-sidecar.d.ts +3 -0
- package/core/contact-sync/roster-sync-client.d.ts +21 -0
- package/core/contact-sync/roster-sync-controller.d.ts +20 -0
- package/core/contact-sync/roster-sync-session.d.ts +28 -0
- package/core/contact-sync/roster-sync-types.d.ts +74 -0
- package/core/events/event-hub.d.ts +13 -0
- package/core/group-sync/group-sync-client.d.ts +19 -0
- package/core/group-sync/group-sync-controller.d.ts +11 -0
- package/core/group-sync/group-sync-merge.d.ts +3 -0
- package/core/group-sync/group-sync-normalizer.d.ts +4 -0
- package/core/group-sync/group-sync-session.d.ts +17 -0
- package/core/group-sync/group-sync-types.d.ts +24 -0
- package/core/group-sync/index.d.ts +4 -0
- package/core/index.d.ts +95 -0
- package/core/message/attachment-downloader.d.ts +7 -0
- package/core/message/chatroom-operation-types.d.ts +6 -0
- package/core/message/combine-message-downloader.d.ts +7 -0
- package/core/message/message-action-types.d.ts +22 -0
- package/core/message/message-deduplicator.d.ts +11 -0
- package/core/message/message-receiver.d.ts +65 -0
- package/core/message/message-retry.d.ts +33 -0
- package/core/message/message-sender.d.ts +63 -0
- package/core/message/profile-sync/group-namecard-hydration-queue.d.ts +33 -0
- package/core/message/profile-sync/group-namecard-hydrator.d.ts +8 -0
- package/core/message/profile-sync/latest-message-version-projector.d.ts +3 -0
- package/core/message/profile-sync/profile-version-sidecar.d.ts +9 -0
- package/core/message/profile-sync/profile-version.d.ts +3 -0
- package/core/message/profile-sync/user-info-hydration-queue.d.ts +29 -0
- package/core/message/profile-sync/user-info-hydrator.d.ts +8 -0
- package/core/message/stream-message-cache.d.ts +38 -0
- package/core/message/stream-message-handler.d.ts +22 -0
- package/core/session-list-sync/session-list-query.d.ts +26 -0
- package/core/session-list-sync/session-list-sync-controller.d.ts +17 -0
- package/core/session-list-sync/session-list-sync-merge.d.ts +17 -0
- package/core/session-list-sync/session-list-sync-normalizer.d.ts +6 -0
- package/core/session-list-sync/session-list-sync-runner.d.ts +13 -0
- package/core/session-list-sync/session-list-sync-session.d.ts +26 -0
- package/core/session-list-sync/session-list-sync-types.d.ts +24 -0
- package/core/sync/shared-sync-websocket-session.d.ts +61 -0
- package/core/user-info/group-user-info-resolver.d.ts +40 -0
- package/data-report/bridge.d.ts +11 -0
- package/data-report/constants.d.ts +25 -0
- package/data-report/data-reporter.d.ts +21 -0
- package/data-report/event-queue.d.ts +38 -0
- package/data-report/index.d.ts +3 -0
- package/data-report/network-type.d.ts +1 -0
- package/data-report/operation-map.d.ts +8 -0
- package/data-report/transport.d.ts +17 -0
- package/data-report/types.d.ts +61 -0
- package/index.cjs +1 -0
- package/index.d.ts +134 -0
- package/index.js +3 -0
- package/managers/chat/index.cjs +1 -0
- package/managers/chat/index.d.ts +1 -0
- package/managers/chat/index.js +1 -0
- package/managers/chat-manager.d.ts +880 -0
- package/managers/chat-thread/chat-thread.d.ts +126 -0
- package/managers/chat-thread/index.cjs +1 -0
- package/managers/chat-thread/index.d.ts +2 -0
- package/managers/chat-thread/index.js +1 -0
- package/managers/chat-thread-manager.d.ts +257 -0
- package/managers/chatroom/chatroom-event-mapper.d.ts +17 -0
- package/managers/chatroom/chatroom-event-user-info-resolver.d.ts +15 -0
- package/managers/chatroom/chatroom-normalizers.d.ts +23 -0
- package/managers/chatroom/chatroom.d.ts +403 -0
- package/managers/chatroom/index.cjs +1 -0
- package/managers/chatroom/index.d.ts +2 -0
- package/managers/chatroom/index.js +1 -0
- package/managers/chatroom-manager.d.ts +604 -0
- package/managers/contact/contact-user-info-resolver.d.ts +15 -0
- package/managers/contact/index.cjs +1 -0
- package/managers/contact/index.d.ts +1 -0
- package/managers/contact/index.js +1 -0
- package/managers/contact-manager.d.ts +215 -0
- package/managers/group/group-event-mapper.d.ts +18 -0
- package/managers/group/group-event-user-info-resolver.d.ts +15 -0
- package/managers/group/group-normalizers.d.ts +15 -0
- package/managers/group/group.d.ts +504 -0
- package/managers/group/index.cjs +1 -0
- package/managers/group/index.d.ts +2 -0
- package/managers/group/index.js +1 -0
- package/managers/group/internal/group-event-sync.d.ts +13 -0
- package/managers/group/internal/group-repository.d.ts +31 -0
- package/managers/group/internal/group-snapshot-mapper.d.ts +6 -0
- package/managers/group/internal/internal-group.d.ts +24 -0
- package/managers/group-manager.d.ts +371 -0
- package/managers/presence/index.cjs +1 -0
- package/managers/presence/index.d.ts +1 -0
- package/managers/presence/index.js +1 -0
- package/managers/presence-manager.d.ts +201 -0
- package/managers/push/index.cjs +1 -0
- package/managers/push/index.d.ts +1 -0
- package/managers/push/index.js +1 -0
- package/managers/push-manager.d.ts +205 -0
- package/managers/user-info/index.cjs +1 -0
- package/managers/user-info/index.d.ts +4 -0
- package/managers/user-info/index.js +1 -0
- package/managers/user-info/user-info-notify-normalizer.d.ts +2 -0
- package/managers/user-info/user-info-runtime-store.d.ts +28 -0
- package/managers/user-info-manager.d.ts +196 -0
- package/message/combine-compatible-text-sidecar.d.ts +4 -0
- package/message/combine-message-constraints.d.ts +7 -0
- package/message/combine-payload-codec.d.ts +17 -0
- package/message/create-message.d.ts +64 -0
- package/package.json +64 -16
- package/platform/capability-validator.d.ts +7 -0
- package/platform/env.d.ts +68 -0
- package/platform/factory.d.ts +7 -0
- package/platform/image/miniapp-image-processor.d.ts +45 -0
- package/platform/image/web-image-processor.d.ts +2 -0
- package/platform/index.d.ts +17 -0
- package/platform/miniapp/miniapp-adapter.d.ts +3 -0
- package/platform/proto/proto-adapter.d.ts +17 -0
- package/platform/proto/reflection-proto-codec.d.ts +8 -0
- package/platform/proto/static-proto-adapter.d.ts +8 -0
- package/platform/request/web-request-adapter.d.ts +9 -0
- package/platform/runtime/connection-event-normalizer.d.ts +14 -0
- package/platform/runtime/runtime-event-bridge.d.ts +23 -0
- package/platform/runtime/web-runtime-adapter.d.ts +26 -0
- package/platform/socket/web-socket-adapter.d.ts +8 -0
- package/platform/types.d.ts +472 -0
- package/platform/upload/react-native-upload-adapter.d.ts +14 -0
- package/platform/upload/upload-error-mapper.d.ts +7 -0
- package/platform/upload/upload-source.d.ts +20 -0
- package/platform/upload/web-upload-adapter.d.ts +10 -0
- package/protocol/joined-groups/codec.d.ts +11 -0
- package/protocol/joined-groups/gateway.d.ts +2 -0
- package/protocol/joined-groups/index.d.ts +2 -0
- package/protocol/joined-groups/proto.d.ts +174 -0
- package/protocol/joined-groups/types.d.ts +65 -0
- package/protocol/msync/codec.d.ts +191 -0
- package/protocol/msync/context.d.ts +40 -0
- package/protocol/msync/lz4-compressor/index.d.ts +40 -0
- package/protocol/msync/lz4-compressor/utils.d.ts +27 -0
- package/protocol/msync/multi-device-normalizer.d.ts +75 -0
- package/protocol/msync/proto.d.ts +1306 -0
- package/protocol/msync/root.d.ts +5 -0
- package/protocol/msync/types.d.ts +96 -0
- package/protocol/msync/utils.d.ts +26 -0
- package/protocol/protobuf/decoder.d.ts +44 -0
- package/protocol/protobuf/encoder.d.ts +23 -0
- package/protocol/protobuf/types.d.ts +53 -0
- package/protocol/roster/codec.d.ts +9 -0
- package/protocol/roster/proto.d.ts +205 -0
- package/protocol/roster/root.d.ts +5 -0
- package/protocol/roster/types.d.ts +83 -0
- package/protocol/session-list/codec.d.ts +11 -0
- package/protocol/session-list/gateway.d.ts +19 -0
- package/protocol/session-list/payload-decoder.d.ts +1 -0
- package/protocol/session-list/proto.d.ts +207 -0
- package/protocol/session-list/types.d.ts +83 -0
- package/rest/chat-management.d.ts +26 -0
- package/rest/chat-thread-management.d.ts +14 -0
- package/rest/chatroom-management.d.ts +40 -0
- package/rest/client.d.ts +86 -0
- package/rest/contact-management.d.ts +27 -0
- package/rest/contact-metadata.d.ts +11 -0
- package/rest/conversation-management.d.ts +11 -0
- package/rest/dns-config.d.ts +20 -0
- package/rest/error-map-types.d.ts +32 -0
- package/rest/error-maps/chat.d.ts +888 -0
- package/rest/error-maps/chatroom.d.ts +592 -0
- package/rest/error-maps/common.d.ts +208 -0
- package/rest/error-maps/contact.d.ts +185 -0
- package/rest/error-maps/core.d.ts +21 -0
- package/rest/error-maps/group.d.ts +500 -0
- package/rest/error-maps/index.d.ts +9 -0
- package/rest/error-maps/presence.d.ts +62 -0
- package/rest/error-maps/push.d.ts +158 -0
- package/rest/error-maps/thread.d.ts +538 -0
- package/rest/error-maps/user-info.d.ts +289 -0
- package/rest/errors.d.ts +23 -0
- package/rest/group-management.d.ts +55 -0
- package/rest/rtc-token.d.ts +14 -0
- package/rest/speech-helpers.d.ts +24 -0
- package/rest/user-info-subscription.d.ts +10 -0
- package/rest/user-info.d.ts +34 -0
- package/types/chat-client.d.ts +226 -0
- package/types/chat-manager.d.ts +641 -0
- package/types/chat-thread.d.ts +311 -0
- package/types/chatroom.d.ts +1258 -0
- package/types/connection.d.ts +111 -0
- package/types/contact.d.ts +149 -0
- package/types/conversation.d.ts +270 -0
- package/types/event-system.d.ts +721 -0
- package/types/group.d.ts +980 -0
- package/types/index.d.ts +577 -44
- package/types/manager.d.ts +99 -0
- package/types/message-conversation.d.ts +22 -0
- package/types/message-create.d.ts +173 -0
- package/types/multi-device.d.ts +275 -0
- package/types/presence.d.ts +101 -0
- package/types/push.d.ts +296 -0
- package/types/sender.d.ts +12 -0
- package/types/sync-data.d.ts +54 -0
- package/types/user-info.d.ts +178 -0
- package/upload/attachment-file-store.d.ts +11 -0
- package/upload/attachment-uploader.d.ts +36 -0
- package/upload/constants.d.ts +8 -0
- package/upload/index.d.ts +2 -0
- package/upload/multipart-upload.d.ts +14 -0
- package/upload/simple-upload.d.ts +3 -0
- package/upload/types.d.ts +79 -0
- package/upload/utils.d.ts +71 -0
- package/utils/env.d.ts +4 -0
- package/utils/error-codes.d.ts +2 -0
- package/utils/error-codes.generated.d.ts +145 -0
- package/utils/error-sanitizer.d.ts +8 -0
- package/utils/errors.d.ts +139 -0
- package/utils/log-reporter.d.ts +61 -0
- package/utils/log-sanitizer.d.ts +6 -0
- package/utils/logger.d.ts +48 -0
- package/utils/md5.d.ts +1 -0
- package/utils/message-id.d.ts +12 -0
- package/utils/provision-error-mapping.d.ts +21 -0
- package/utils/retry.d.ts +26 -0
- package/utils/runtime-global.d.ts +4 -0
- package/utils/trace-id.d.ts +5 -0
- package/utils/utf8.d.ts +2 -0
- package/validators/chat-client.d.ts +787 -0
- package/validators/message-create.d.ts +419 -0
- package/validators/search-messages.d.ts +127 -0
- package/validators/validator.d.ts +49 -0
- package/version.d.ts +2 -0
- package/Easemob-chat.d.ts +0 -8457
- package/Easemob-chat.js +0 -2
- package/chatroom/chatroom.d.ts +0 -649
- package/chatroom/chatroom.js +0 -1
- package/contact/contact.d.ts +0 -726
- package/contact/contact.js +0 -1
- package/group/group.d.ts +0 -848
- package/group/group.js +0 -1
- package/localCache/localCache.d.ts +0 -59
- package/localCache/localCache.js +0 -1
- package/message/audio.d.ts +0 -183
- package/message/channel.d.ts +0 -82
- package/message/cmd.d.ts +0 -146
- package/message/combine.d.ts +0 -132
- package/message/custom.d.ts +0 -135
- package/message/delivery.d.ts +0 -77
- package/message/file.d.ts +0 -173
- package/message/img.d.ts +0 -200
- package/message/index.d.ts +0 -211
- package/message/location.d.ts +0 -134
- package/message/read.d.ts +0 -85
- package/message/text.d.ts +0 -149
- package/message/video.d.ts +0 -180
- package/miniCore/miniCore.d.ts +0 -217
- package/miniCore/miniCore.js +0 -2
- package/miniProgram/Easemob-chat.js +0 -2
- package/miniProgram/miniProgram.zip +0 -0
- package/presence/presence.d.ts +0 -69
- package/presence/presence.js +0 -1
- package/silent/silent.d.ts +0 -128
- package/silent/silent.js +0 -1
- package/status.d.ts +0 -184
- package/thread/thread.d.ts +0 -159
- package/thread/thread.js +0 -1
- package/translation/translation.d.ts +0 -30
- package/translation/translation.js +0 -1
- package/types/chatRoomApi.d.ts +0 -226
- package/types/common.d.ts +0 -89
- package/types/engineCore.d.ts +0 -194
- package/types/error.d.ts +0 -13
- package/types/eventHandler.d.ts +0 -437
- package/types/groupApi.d.ts +0 -306
- package/types/indexApi.d.ts +0 -366
- package/types/localCache.d.ts +0 -53
- package/types/message.d.ts +0 -959
- package/types/presenceApi.d.ts +0 -61
- package/types/reactionApi.d.ts +0 -74
- package/types/restApis.d.ts +0 -6
- package/types/silentModeApi.d.ts +0 -109
- package/types/threadApi.d.ts +0 -175
- package/types/translation.d.ts +0 -25
- package/types/utils.d.ts +0 -90
- package/uniApp/Easemob-chat.js +0 -2
- package/uniApp/uniApp.zip +0 -0
- package/websdk.zip +0 -0
package/types/groupApi.d.ts
DELETED
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* group types
|
|
3
|
-
* @module TYPES
|
|
4
|
-
*/
|
|
5
|
-
import { UserId } from './common';
|
|
6
|
-
interface BaseGroupInfo {
|
|
7
|
-
/** The group ID. */
|
|
8
|
-
groupid: string;
|
|
9
|
-
/** The group name. */
|
|
10
|
-
groupname: string;
|
|
11
|
-
}
|
|
12
|
-
export declare type GroupAffiliation =
|
|
13
|
-
| {
|
|
14
|
-
/** The group owner. */
|
|
15
|
-
owner: UserId;
|
|
16
|
-
/** The Unix timestamp when the owner joined the group. */
|
|
17
|
-
joined_time: number;
|
|
18
|
-
}
|
|
19
|
-
| {
|
|
20
|
-
/** The group member. */
|
|
21
|
-
member: UserId;
|
|
22
|
-
/** The Unix timestamp when the user joins the group. */
|
|
23
|
-
joined_time: number;
|
|
24
|
-
};
|
|
25
|
-
interface CreateGroupResult {
|
|
26
|
-
/** The group ID. */
|
|
27
|
-
groupid: string;
|
|
28
|
-
}
|
|
29
|
-
interface BlockGroupResult {
|
|
30
|
-
/** Whether the current user is enabled. */
|
|
31
|
-
activated: boolean;
|
|
32
|
-
/** The Unix timestamp when the user is created. */
|
|
33
|
-
created: number;
|
|
34
|
-
/** The Unix timestamp when the user information was last edited. */
|
|
35
|
-
modified: number;
|
|
36
|
-
/** User nickname for push. */
|
|
37
|
-
nickname: string;
|
|
38
|
-
/** The user type. */
|
|
39
|
-
type: string;
|
|
40
|
-
/** The user ID. */
|
|
41
|
-
username: string;
|
|
42
|
-
/** The user uuid. */
|
|
43
|
-
uuid: string;
|
|
44
|
-
}
|
|
45
|
-
interface ChangeGroupOwnerResult {
|
|
46
|
-
/** The group owner change result. */
|
|
47
|
-
newowner: boolean;
|
|
48
|
-
}
|
|
49
|
-
interface GroupDetailInfo {
|
|
50
|
-
/** The list of existing members. */
|
|
51
|
-
affiliations: GroupAffiliation[];
|
|
52
|
-
/** The number of existing members. */
|
|
53
|
-
affiliations_count: number;
|
|
54
|
-
/** Whether to allow group members to invite others to join the group. */
|
|
55
|
-
allowinvites: boolean;
|
|
56
|
-
/** The Unix timestamp when the group is created. */
|
|
57
|
-
created: number;
|
|
58
|
-
/** The custom information. */
|
|
59
|
-
custom: string;
|
|
60
|
-
/** The group description. */
|
|
61
|
-
description: string;
|
|
62
|
-
/** The group ID. */
|
|
63
|
-
id: string;
|
|
64
|
-
/** The maximum number of group members. */
|
|
65
|
-
maxusers: number;
|
|
66
|
-
/** Whether a user requires the approval from the group owner or admin to join the group. -`true`: Yes; -`false`: No. */
|
|
67
|
-
membersonly: boolean;
|
|
68
|
-
/** Whether to mute all members. -`true`: Yes; -`false`: No.*/
|
|
69
|
-
mute: boolean;
|
|
70
|
-
/** The group name. */
|
|
71
|
-
name: string;
|
|
72
|
-
/** The group owner. */
|
|
73
|
-
owner: UserId;
|
|
74
|
-
/** Whether it is a public group. */
|
|
75
|
-
public: boolean;
|
|
76
|
-
/** Whether the member is on the blocklist. -`true`: Yes; -`false`: No. */
|
|
77
|
-
shieldgroup: boolean;
|
|
78
|
-
/** The group avatar. */
|
|
79
|
-
avatar: string;
|
|
80
|
-
}
|
|
81
|
-
interface ModifyGroupResult {
|
|
82
|
-
/** Whether the group description is modified successfully. -`true`: Yes; -`false`: No. */
|
|
83
|
-
description?: boolean;
|
|
84
|
-
/** Whether the maximum number of group members is changed successfully. -`true`: Yes; -`false`: No.*/
|
|
85
|
-
maxusers?: boolean;
|
|
86
|
-
/** Whether the group name is changed successfully. -`true`: Yes; -`false`: No.*/
|
|
87
|
-
groupname?: boolean;
|
|
88
|
-
/** Whether requiring approval is changed successfully. -`true`: Yes; -`false`: No. */
|
|
89
|
-
membersonly?: boolean;
|
|
90
|
-
/** Whether allowing a group member to invite others is modified successfully. -`true`: Yes; -`false`: No.*/
|
|
91
|
-
allowinvites?: boolean;
|
|
92
|
-
/** Whether the group avatar is changed successfully. -`true`: Yes; -`false`: No. */
|
|
93
|
-
avatar?: boolean;
|
|
94
|
-
}
|
|
95
|
-
declare type GroupMember =
|
|
96
|
-
| {
|
|
97
|
-
owner: UserId;
|
|
98
|
-
}
|
|
99
|
-
| {
|
|
100
|
-
member: UserId;
|
|
101
|
-
};
|
|
102
|
-
interface SetGroupAdminResult {
|
|
103
|
-
/** The user ID of the new admin. */
|
|
104
|
-
newadmin: UserId;
|
|
105
|
-
/** The setting result. */
|
|
106
|
-
result: 'success';
|
|
107
|
-
}
|
|
108
|
-
interface RemoveGroupAdminResult {
|
|
109
|
-
/** The user ID of a removed admin. */
|
|
110
|
-
oldadmin: UserId;
|
|
111
|
-
/** The setting result. */
|
|
112
|
-
result: 'success';
|
|
113
|
-
}
|
|
114
|
-
interface DestroyGroupResult {
|
|
115
|
-
/** The group ID. */
|
|
116
|
-
id: string;
|
|
117
|
-
/** The operation result. */
|
|
118
|
-
success: boolean;
|
|
119
|
-
}
|
|
120
|
-
interface InviteUsersToGroupResult {
|
|
121
|
-
/** The action. */
|
|
122
|
-
action: 'invite';
|
|
123
|
-
/** The group ID. */
|
|
124
|
-
id: string;
|
|
125
|
-
/** The reason for failure. */
|
|
126
|
-
reason?: string;
|
|
127
|
-
/** The invitation result. - `true`: The invitation is delivered successfully; - `false`: The invitation fails to be delivered. */
|
|
128
|
-
result: boolean;
|
|
129
|
-
/** The invitee ID. */
|
|
130
|
-
user: UserId;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
interface GroupInfo {
|
|
134
|
-
/** The number of existing members. */
|
|
135
|
-
affiliationsCount?: number;
|
|
136
|
-
/** The group name. */
|
|
137
|
-
groupName: string;
|
|
138
|
-
/** The group ID. */
|
|
139
|
-
groupId: string;
|
|
140
|
-
/** The current user role in the group. */
|
|
141
|
-
role?: 'member' | 'admin' | 'owner';
|
|
142
|
-
/** Whether the group disabled. */
|
|
143
|
-
disabled: boolean;
|
|
144
|
-
/** Whether a user requires the approval from the group owner or admin to join the group. -`true`: Yes; -`false`: No. */
|
|
145
|
-
approval: boolean;
|
|
146
|
-
/** Whether to allow group members to invite others to join the group. */
|
|
147
|
-
allowInvites: boolean;
|
|
148
|
-
/** The group description. */
|
|
149
|
-
description: string;
|
|
150
|
-
/** The maximum number of group members. */
|
|
151
|
-
maxUsers: number;
|
|
152
|
-
/** Whether it is a public group. */
|
|
153
|
-
public: boolean;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
interface RemoveGroupMemberResult {
|
|
157
|
-
/** The action. */
|
|
158
|
-
action: 'remove_member';
|
|
159
|
-
/** The group ID. */
|
|
160
|
-
groupid: string;
|
|
161
|
-
/** The invitation result. - `true`: Success; - `false`: Failure.*/
|
|
162
|
-
result: boolean;
|
|
163
|
-
/** The user ID. */
|
|
164
|
-
user: UserId;
|
|
165
|
-
}
|
|
166
|
-
interface MuteGroupMemberResult {
|
|
167
|
-
/** The mute duration in milliseconds. */
|
|
168
|
-
expire: number;
|
|
169
|
-
/** The operation result. - `true`: Succeed; - `false`: Failed.*/
|
|
170
|
-
result: boolean;
|
|
171
|
-
/** The ID of the muted member. */
|
|
172
|
-
user: UserId;
|
|
173
|
-
}
|
|
174
|
-
interface UnmuteGroupMemberResult {
|
|
175
|
-
/** The operation result. - `true`: Succeed; - `false`: Failed.*/
|
|
176
|
-
result: boolean;
|
|
177
|
-
/** The ID of the unmuted member. */
|
|
178
|
-
user: UserId;
|
|
179
|
-
}
|
|
180
|
-
interface GetGroupMuteListResult {
|
|
181
|
-
/** The mute duration in milliseconds. */
|
|
182
|
-
expire: number;
|
|
183
|
-
/** The ID of the muted user. */
|
|
184
|
-
user: UserId;
|
|
185
|
-
}
|
|
186
|
-
interface GroupRequestResult {
|
|
187
|
-
/** The action. */
|
|
188
|
-
action: string;
|
|
189
|
-
/** The group ID. */
|
|
190
|
-
groupid: string;
|
|
191
|
-
/** The invitation result. - `true`: Succeed; - `false`: Failed. */
|
|
192
|
-
result: boolean;
|
|
193
|
-
/** The user ID. */
|
|
194
|
-
user: UserId;
|
|
195
|
-
}
|
|
196
|
-
interface IsInGroupWhiteListResult {
|
|
197
|
-
/** The user ID to query. */
|
|
198
|
-
member: UserId;
|
|
199
|
-
/** Whether the user is on the allowlist. -`true`: Yes; -`false`: No.*/
|
|
200
|
-
white: boolean;
|
|
201
|
-
}
|
|
202
|
-
interface GetGroupMsgReadUserResult {
|
|
203
|
-
/** The message ID to query. */
|
|
204
|
-
ackmid: string;
|
|
205
|
-
/** Whether the message is the last one. -`true`: Yes; -`false`: No.*/
|
|
206
|
-
is_last: boolean;
|
|
207
|
-
/** The cursor for next pagination query. It specifies where to start to get the next page of data.*/
|
|
208
|
-
next_key: string;
|
|
209
|
-
/** The Unix timestamp of the current query. */
|
|
210
|
-
timestamp: number;
|
|
211
|
-
/** The number of members that have read the message. */
|
|
212
|
-
total: number;
|
|
213
|
-
/** The list of members that have read this message. */
|
|
214
|
-
userlist: UserId[];
|
|
215
|
-
}
|
|
216
|
-
interface UpdateGroupAnnouncementResult {
|
|
217
|
-
/** The group ID. */
|
|
218
|
-
id: string;
|
|
219
|
-
/** The operation result. - `true`: Success; - `false`: Failure.*/
|
|
220
|
-
result: boolean;
|
|
221
|
-
}
|
|
222
|
-
interface DeleteGroupSharedFileResult {
|
|
223
|
-
/** The group ID. */
|
|
224
|
-
group_id: string;
|
|
225
|
-
/** The file ID. */
|
|
226
|
-
file_id: string;
|
|
227
|
-
/** The operation result. - `true`: Success; - `false`: Failure.*/
|
|
228
|
-
result: boolean;
|
|
229
|
-
}
|
|
230
|
-
interface FetchGroupSharedFileListResult {
|
|
231
|
-
/** The file ID. */
|
|
232
|
-
file_id: string;
|
|
233
|
-
/** The file name. */
|
|
234
|
-
file_name: string;
|
|
235
|
-
/** The file owner. */
|
|
236
|
-
file_owner: string;
|
|
237
|
-
/** The file size. */
|
|
238
|
-
file_size: number;
|
|
239
|
-
/** The Unix timestamp when the file is uploaded.*/
|
|
240
|
-
created: number;
|
|
241
|
-
}
|
|
242
|
-
interface GroupModifyInfo {
|
|
243
|
-
/** The name of a group. */
|
|
244
|
-
name?: string;
|
|
245
|
-
/** The description of a group. */
|
|
246
|
-
description?: string;
|
|
247
|
-
/** Whether it is a public group. -`true`: Yes; -`false`: No. Public group: the group that others can query by calling `listgroups`. */
|
|
248
|
-
public?: boolean;
|
|
249
|
-
/** Whether a user requires the approval from the group owner or admin to join the group. -`true`: Yes; -`false`: No. */
|
|
250
|
-
approval?: boolean;
|
|
251
|
-
/** Whether to allow group members to invite others to join the group. */
|
|
252
|
-
allowInvites?: boolean;
|
|
253
|
-
/** The maximum number of group members */
|
|
254
|
-
maxUsers?: number;
|
|
255
|
-
/** Whether the invitee needs to accept the invitation before joining the group.
|
|
256
|
-
- `true`: The invitee's consent is required. The default value is `true`.
|
|
257
|
-
- `false`: The invitee will be directly added to the group without confirmation.
|
|
258
|
-
*/
|
|
259
|
-
inviteNeedConfirm?: boolean;
|
|
260
|
-
/** Group detail extensions. */
|
|
261
|
-
ext?: string;
|
|
262
|
-
/** Last Modified Timestamp. */
|
|
263
|
-
lastModified?: number;
|
|
264
|
-
/** The group avatar. */
|
|
265
|
-
avatar?: string;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
declare type MemberAttributes = Record<string, string>;
|
|
269
|
-
|
|
270
|
-
declare type GetGroupMembersAttributesResult = Record<UserId, MemberAttributes>;
|
|
271
|
-
|
|
272
|
-
type GroupMemberRole = 'owner' | 'admin' | 'member';
|
|
273
|
-
interface FetchedGroupMember {
|
|
274
|
-
role: GroupMemberRole;
|
|
275
|
-
userId: UserId;
|
|
276
|
-
joinedTime: number;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export type {
|
|
280
|
-
GroupRequestResult,
|
|
281
|
-
BaseGroupInfo,
|
|
282
|
-
CreateGroupResult,
|
|
283
|
-
BlockGroupResult,
|
|
284
|
-
ChangeGroupOwnerResult,
|
|
285
|
-
GroupDetailInfo,
|
|
286
|
-
ModifyGroupResult,
|
|
287
|
-
GroupMember,
|
|
288
|
-
SetGroupAdminResult,
|
|
289
|
-
RemoveGroupAdminResult,
|
|
290
|
-
DestroyGroupResult,
|
|
291
|
-
InviteUsersToGroupResult,
|
|
292
|
-
RemoveGroupMemberResult,
|
|
293
|
-
MuteGroupMemberResult,
|
|
294
|
-
UnmuteGroupMemberResult,
|
|
295
|
-
GetGroupMuteListResult,
|
|
296
|
-
IsInGroupWhiteListResult,
|
|
297
|
-
GetGroupMsgReadUserResult,
|
|
298
|
-
UpdateGroupAnnouncementResult,
|
|
299
|
-
DeleteGroupSharedFileResult,
|
|
300
|
-
FetchGroupSharedFileListResult,
|
|
301
|
-
GroupInfo,
|
|
302
|
-
GroupModifyInfo,
|
|
303
|
-
MemberAttributes,
|
|
304
|
-
GetGroupMembersAttributesResult,
|
|
305
|
-
FetchedGroupMember,
|
|
306
|
-
};
|
package/types/indexApi.d.ts
DELETED
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
import { Jid, UserId } from './common';
|
|
2
|
-
import {
|
|
3
|
-
MessagesType,
|
|
4
|
-
MessageBody,
|
|
5
|
-
ModifiedMsgInfo,
|
|
6
|
-
ExcludeAckMessageBody,
|
|
7
|
-
ChatType,
|
|
8
|
-
MessageType,
|
|
9
|
-
} from './message';
|
|
10
|
-
interface UpdateOwnUserInfoParams {
|
|
11
|
-
/** The nickname. */
|
|
12
|
-
nickname?: string;
|
|
13
|
-
/** The avatar URL. */
|
|
14
|
-
avatarurl?: string;
|
|
15
|
-
/** The email address. */
|
|
16
|
-
mail?: string;
|
|
17
|
-
/** The phone number. */
|
|
18
|
-
phone?: string;
|
|
19
|
-
/** Gender. You can define it with the following type: string, number, boolean. */
|
|
20
|
-
gender?: string | number | boolean;
|
|
21
|
-
/** Signature. */
|
|
22
|
-
sign?: string;
|
|
23
|
-
/** Birthday. */
|
|
24
|
-
birth?: string;
|
|
25
|
-
/** Extension. You can define it with the following type: string, number, boolean. */
|
|
26
|
-
ext?: string;
|
|
27
|
-
}
|
|
28
|
-
/** Configurable fields. */
|
|
29
|
-
declare type ConfigurableKey =
|
|
30
|
-
| 'nickname'
|
|
31
|
-
| 'avatarurl'
|
|
32
|
-
| 'mail'
|
|
33
|
-
| 'phone'
|
|
34
|
-
| 'gender'
|
|
35
|
-
| 'sign'
|
|
36
|
-
| 'birth'
|
|
37
|
-
| 'ext';
|
|
38
|
-
interface RosterData {
|
|
39
|
-
name: string;
|
|
40
|
-
subscription: 'both';
|
|
41
|
-
jid: Jid;
|
|
42
|
-
}
|
|
43
|
-
interface BaseUserInfo {
|
|
44
|
-
/** Whether the current user is enabled. - `true`: Yes; - `false`: No.*/
|
|
45
|
-
activated: boolean;
|
|
46
|
-
/** The timestamp when the current user is created. */
|
|
47
|
-
created: number;
|
|
48
|
-
/** The time when the user information is last modified. */
|
|
49
|
-
modified: number;
|
|
50
|
-
/** The display name in the message push notification. */
|
|
51
|
-
nickname: string;
|
|
52
|
-
/** The user type. */
|
|
53
|
-
type: string;
|
|
54
|
-
/** The user ID. */
|
|
55
|
-
username: string;
|
|
56
|
-
/** The user uuid on the server. */
|
|
57
|
-
uuid: string;
|
|
58
|
-
}
|
|
59
|
-
export interface PushInfo {
|
|
60
|
-
/** The device ID, used to identify a device, which can be customized.*/
|
|
61
|
-
device_id: string;
|
|
62
|
-
/** The push token, which can be defined by yourself, is generally used to identify the same device. */
|
|
63
|
-
device_token: string;
|
|
64
|
-
/** The Push service appId, senderID for FCM, "appId+#+AppKey" for Vivo */
|
|
65
|
-
notifier_name: string;
|
|
66
|
-
}
|
|
67
|
-
interface UploadTokenResult extends BaseUserInfo {
|
|
68
|
-
/** The push information. */
|
|
69
|
-
pushInfo: PushInfo[];
|
|
70
|
-
}
|
|
71
|
-
interface SessionInfo {
|
|
72
|
-
/** The conversation ID. */
|
|
73
|
-
channel_id: string;
|
|
74
|
-
/** The content of the last message.*/
|
|
75
|
-
meta: {
|
|
76
|
-
/** The message sender. */
|
|
77
|
-
from: string;
|
|
78
|
-
/** The message ID. */
|
|
79
|
-
id: string;
|
|
80
|
-
/** The message content. */
|
|
81
|
-
payload: string;
|
|
82
|
-
/** The time when the message is received. */
|
|
83
|
-
timestamp: number;
|
|
84
|
-
/** The message recipient. */
|
|
85
|
-
to: string;
|
|
86
|
-
};
|
|
87
|
-
/** The number of unread messages. */
|
|
88
|
-
unread_num: number;
|
|
89
|
-
}
|
|
90
|
-
interface ConversationList {
|
|
91
|
-
/** The conversation ID. */
|
|
92
|
-
channel_id: string;
|
|
93
|
-
/** Overview of the latest news. */
|
|
94
|
-
lastMessage: MessageBody | Record<string, never>;
|
|
95
|
-
/** The number of unread messages. */
|
|
96
|
-
unread_num: number;
|
|
97
|
-
}
|
|
98
|
-
interface ConversationInfo {
|
|
99
|
-
/** The conversation list. */
|
|
100
|
-
channel_infos: ConversationList[];
|
|
101
|
-
}
|
|
102
|
-
interface DeleteSessionResult {
|
|
103
|
-
/** The result of request. */
|
|
104
|
-
result: 'ok';
|
|
105
|
-
}
|
|
106
|
-
interface SendMsgResult {
|
|
107
|
-
/** The local ID of the message. */
|
|
108
|
-
localMsgId: string;
|
|
109
|
-
/** The message ID on the server. */
|
|
110
|
-
serverMsgId: string;
|
|
111
|
-
/** Message. */
|
|
112
|
-
message?: ExcludeAckMessageBody;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface ModifyMsgResult extends SendMsgResult {
|
|
116
|
-
/** The modified info of the message. */
|
|
117
|
-
modifiedInfo: ModifiedMsgInfo;
|
|
118
|
-
}
|
|
119
|
-
interface HistoryMessages {
|
|
120
|
-
/** The starting message ID for the next query. If the number of messages returned by the SDK is smaller than the requested number, the cursor will be `undefined`. */
|
|
121
|
-
cursor?: string;
|
|
122
|
-
/** The historical messages. */
|
|
123
|
-
messages: MessagesType[];
|
|
124
|
-
/** Whether it is the last page of data.
|
|
125
|
-
* - `true`: Yes;
|
|
126
|
-
* - `false`: No.
|
|
127
|
-
* If the number of data entries is smaller than the message count set in the request, `false` is returned; otherwise, `true` is returned.
|
|
128
|
-
*/
|
|
129
|
-
isLast: boolean;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* The multiple-keyword match type for server message search.
|
|
134
|
-
* `or` means any keyword can match, and `and` means all keywords must match.
|
|
135
|
-
* 服务端消息搜索的多关键词匹配关系。
|
|
136
|
-
* `or` 表示命中任意关键词即可,`and` 表示必须命中全部关键词。
|
|
137
|
-
*/
|
|
138
|
-
type MessageSearchKeywordListMatchType = 'or' | 'and';
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* The search scope for server message search.
|
|
142
|
-
* `none` searches only the message body, `with` searches both body and extensions,
|
|
143
|
-
* and `only` searches only extension fields.
|
|
144
|
-
* 服务端消息搜索范围。
|
|
145
|
-
* `none` 仅搜索消息体,`with` 同时搜索消息体和扩展字段,
|
|
146
|
-
* `only` 仅搜索扩展字段。
|
|
147
|
-
*/
|
|
148
|
-
type MessageSearchScope = 'none' | 'with' | 'only';
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* A WebSDK message object mapped from one server-side search hit.
|
|
152
|
-
* 由单条服务端搜索命中结果映射得到的 WebSDK 消息对象。
|
|
153
|
-
*/
|
|
154
|
-
type ServerSearchMessage = ExcludeAckMessageBody & {
|
|
155
|
-
/** The conversation ID of the matched message. */
|
|
156
|
-
/** 命中消息所属的会话 ID。 */
|
|
157
|
-
conversationId?: string;
|
|
158
|
-
/** Highlight fragments returned by the server. */
|
|
159
|
-
/** 服务端返回的高亮片段。 */
|
|
160
|
-
highlight?: string[];
|
|
161
|
-
/** Summary text returned by the server for quick display. */
|
|
162
|
-
/** 服务端返回的摘要文本,用于快速展示。 */
|
|
163
|
-
text?: string;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* The paged result returned by server-side message search.
|
|
168
|
-
* 服务端消息搜索返回的分页结果。
|
|
169
|
-
*/
|
|
170
|
-
interface ServerSearchMessagesResult {
|
|
171
|
-
/** The server search result messages. */
|
|
172
|
-
/** 服务端搜索结果消息列表。 */
|
|
173
|
-
messages: ServerSearchMessage[];
|
|
174
|
-
/** The current page number. */
|
|
175
|
-
/** 当前页码。 */
|
|
176
|
-
pageNum: number;
|
|
177
|
-
/** The requested page size echoed by the SDK. */
|
|
178
|
-
/** SDK 回填的请求页大小。 */
|
|
179
|
-
pageSize: number;
|
|
180
|
-
/** The total number of pages. */
|
|
181
|
-
/** 总页数。 */
|
|
182
|
-
totalPages: number;
|
|
183
|
-
/** Whether the current page is the last page. */
|
|
184
|
-
/** 当前页是否为最后一页。 */
|
|
185
|
-
isLast: boolean;
|
|
186
|
-
/** The request trace id returned by the server. */
|
|
187
|
-
/** 服务端返回的请求追踪 ID。 */
|
|
188
|
-
requestId?: string;
|
|
189
|
-
/** The server response timestamp in milliseconds. */
|
|
190
|
-
/** 服务端响应时间戳,单位为毫秒。 */
|
|
191
|
-
timestamp: number;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* The options for server-side message search.
|
|
196
|
-
* 用于配置服务端消息搜索请求的参数集合。
|
|
197
|
-
*/
|
|
198
|
-
interface MessageSearchOption {
|
|
199
|
-
/** The keyword list for search. */
|
|
200
|
-
/** 搜索关键词列表。 */
|
|
201
|
-
keywordList: string[];
|
|
202
|
-
/** The keyword list match type. The valid values are `or` and `and`. The default value is `or`. */
|
|
203
|
-
/** 多关键词匹配关系,可选值为 `or` 和 `and`。默认值为 `or`。 */
|
|
204
|
-
keywordListMatchType?: MessageSearchKeywordListMatchType;
|
|
205
|
-
/** The conversation ID for in-conversation search. */
|
|
206
|
-
/** 会话内搜索时的会话 ID。 */
|
|
207
|
-
conversationId?: string;
|
|
208
|
-
/** The conversation type for filtering. Must be used with conversationId. */
|
|
209
|
-
/** 会话类型过滤。需要与 conversationId 配合使用。 */
|
|
210
|
-
conversationType?: ChatType;
|
|
211
|
-
/** Message body type filters. */
|
|
212
|
-
/** 消息体类型过滤。 */
|
|
213
|
-
msgTypes?: MessageType[];
|
|
214
|
-
/** The start timestamp for query. The unit is millisecond. */
|
|
215
|
-
/** 查询开始时间戳,单位为毫秒。 */
|
|
216
|
-
startTime?: number;
|
|
217
|
-
/** The end timestamp for query. The unit is millisecond. */
|
|
218
|
-
/** 查询结束时间戳,单位为毫秒。 */
|
|
219
|
-
endTime?: number;
|
|
220
|
-
/** The search scope. */
|
|
221
|
-
/** 搜索范围。 */
|
|
222
|
-
searchScope?: MessageSearchScope;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
interface ServerConversations {
|
|
226
|
-
/** The conversation list. */
|
|
227
|
-
conversations: ConversationItem[];
|
|
228
|
-
/** The position from which to start getting data for the next query. If the number of returned data entries is smaller than that specified in the request, the cursor is an empty string (''), which indicates that the current page is the last page; otherwise, the SDK returns the specific cursor position which indicates where to start getting data for the next query.*/
|
|
229
|
-
cursor: string;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
interface ConversationItem {
|
|
233
|
-
/** The conversation ID. */
|
|
234
|
-
conversationId: string;
|
|
235
|
-
/** The conversation type. */
|
|
236
|
-
conversationType: 'singleChat' | 'groupChat';
|
|
237
|
-
/** Whether the conversation is pinned. `true`:pinned; `false`: unpinned. */
|
|
238
|
-
isPinned: boolean;
|
|
239
|
-
/** The UNIX timestamp when the conversation is pinned. The unit is millisecond. This value is `0` when conversation is not pinned. */
|
|
240
|
-
pinnedTime: number;
|
|
241
|
-
/** Overview of the latest message. */
|
|
242
|
-
lastMessage: MessageBody | Record<string, never> | null;
|
|
243
|
-
/** The number of unread messages. */
|
|
244
|
-
unReadCount: number;
|
|
245
|
-
/** The conversation marks. */
|
|
246
|
-
marks?: Array<MarkType>;
|
|
247
|
-
}
|
|
248
|
-
interface PinConversation {
|
|
249
|
-
/** Whether the conversation is pinned. `true`: pinned; `false`: unpinned.*/
|
|
250
|
-
isPinned: boolean;
|
|
251
|
-
/** The UNIX timestamp when the conversation is pinned. The unit is millisecond. This value is `0` when the conversation is not pinned. */
|
|
252
|
-
pinnedTime: number;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
interface ContactItem {
|
|
256
|
-
/** The user ID. */
|
|
257
|
-
userId: UserId;
|
|
258
|
-
/** The user remark. */
|
|
259
|
-
remark: string;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
interface CursorContactsResult {
|
|
263
|
-
/** The position from which to start getting data for the next query. If the number of returned data entries is smaller than that specified in the request, the cursor is an empty string (''), which indicates that the current page is the last page; otherwise, the SDK returns the specific cursor position which indicates where to start getting data for the next query.*/
|
|
264
|
-
cursor?: string;
|
|
265
|
-
/** The contact list. */
|
|
266
|
-
contacts: ContactItem[];
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
interface AudioParams {
|
|
270
|
-
/** The audio format. */
|
|
271
|
-
format?: string;
|
|
272
|
-
/** The sample rate. */
|
|
273
|
-
sampleRate?: number;
|
|
274
|
-
/** The bits per sample. */
|
|
275
|
-
bitsPerSample?: number;
|
|
276
|
-
/** The number of channels. */
|
|
277
|
-
channels?: number;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
interface MiniProgramVoiceFile {
|
|
281
|
-
/** The local file path in mini program. */
|
|
282
|
-
filePath: string;
|
|
283
|
-
/** The optional file name. */
|
|
284
|
-
name?: string;
|
|
285
|
-
/** The optional file size in bytes. */
|
|
286
|
-
size?: number;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
type VoiceSourceFile = File | MiniProgramVoiceFile;
|
|
290
|
-
|
|
291
|
-
interface OperateResult {
|
|
292
|
-
/** The userIds of the operation successfully. */
|
|
293
|
-
userIds: UserId[];
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/** The conversation mark types. The mapping between each type of conversation mark and their actual meanings is maintained by the developer. */
|
|
297
|
-
declare enum MarkType {
|
|
298
|
-
mark_0,
|
|
299
|
-
mark_1,
|
|
300
|
-
mark_2,
|
|
301
|
-
mark_3,
|
|
302
|
-
mark_4,
|
|
303
|
-
mark_5,
|
|
304
|
-
mark_6,
|
|
305
|
-
mark_7,
|
|
306
|
-
mark_8,
|
|
307
|
-
mark_9,
|
|
308
|
-
mark_10,
|
|
309
|
-
mark_11,
|
|
310
|
-
mark_12,
|
|
311
|
-
mark_13,
|
|
312
|
-
mark_14,
|
|
313
|
-
mark_15,
|
|
314
|
-
mark_16,
|
|
315
|
-
mark_17,
|
|
316
|
-
mark_18,
|
|
317
|
-
mark_19,
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
interface PinnedMessageInfo {
|
|
321
|
-
/** The pinned message. */
|
|
322
|
-
message: MessagesType;
|
|
323
|
-
/** When the message is pinned. The unit is millisecond. */
|
|
324
|
-
pinTime: number;
|
|
325
|
-
/** The user ID of the operator that pins the message. */
|
|
326
|
-
operatorId: UserId;
|
|
327
|
-
}
|
|
328
|
-
interface CursorPinnedMessagesResult {
|
|
329
|
-
/** The position from which to start getting data for the next query. If the number of returned data entries is smaller than that specified in the request, the cursor is an empty string (''), which indicates that the current page is the last page; otherwise, the SDK returns the specific cursor position which indicates where to start getting data for the next query.*/
|
|
330
|
-
cursor: string;
|
|
331
|
-
/** The list of pinned messages. */
|
|
332
|
-
list: PinnedMessageInfo[];
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export type {
|
|
336
|
-
UploadTokenResult,
|
|
337
|
-
SessionInfo,
|
|
338
|
-
ConversationList,
|
|
339
|
-
BaseUserInfo,
|
|
340
|
-
DeleteSessionResult,
|
|
341
|
-
SendMsgResult,
|
|
342
|
-
ConversationInfo,
|
|
343
|
-
ServerConversations,
|
|
344
|
-
ConversationItem,
|
|
345
|
-
PinConversation,
|
|
346
|
-
ContactItem,
|
|
347
|
-
CursorContactsResult,
|
|
348
|
-
AudioParams,
|
|
349
|
-
MiniProgramVoiceFile,
|
|
350
|
-
VoiceSourceFile,
|
|
351
|
-
OperateResult,
|
|
352
|
-
MarkType,
|
|
353
|
-
CursorPinnedMessagesResult,
|
|
354
|
-
};
|
|
355
|
-
export type {
|
|
356
|
-
RosterData,
|
|
357
|
-
UpdateOwnUserInfoParams,
|
|
358
|
-
ConfigurableKey,
|
|
359
|
-
HistoryMessages,
|
|
360
|
-
ModifyMsgResult,
|
|
361
|
-
MessageSearchKeywordListMatchType,
|
|
362
|
-
MessageSearchScope,
|
|
363
|
-
ServerSearchMessage,
|
|
364
|
-
ServerSearchMessagesResult,
|
|
365
|
-
MessageSearchOption,
|
|
366
|
-
};
|