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.
Files changed (324) hide show
  1. package/README.md +95 -39
  2. package/bundle/im-sdk-web.iife.js +1 -0
  3. package/cache/cache-crypto.d.ts +26 -0
  4. package/cache/cache-eviction.d.ts +16 -0
  5. package/cache/cache-keys.d.ts +23 -0
  6. package/cache/cache-manager.d.ts +254 -0
  7. package/cache/cache-metadata.d.ts +14 -0
  8. package/cache/cache-store.d.ts +19 -0
  9. package/cache/cache-types.d.ts +225 -0
  10. package/cache/cache-utils.d.ts +7 -0
  11. package/cache/contact-cache.d.ts +35 -0
  12. package/cache/conversation-cache.d.ts +21 -0
  13. package/cache/group-namecard-cache.d.ts +20 -0
  14. package/cache/index.d.ts +24 -0
  15. package/cache/joined-group-preview-cache.d.ts +12 -0
  16. package/cache/session-list-cache.d.ts +10 -0
  17. package/cache/user-info-cache.d.ts +16 -0
  18. package/chat-client.d.ts +558 -0
  19. package/chunks/cache-utils-BwRPIZ7n.js +1 -0
  20. package/chunks/cache-utils-CKbcYPlM.cjs +1 -0
  21. package/chunks/chat-manager-ChdK26ck.cjs +1 -0
  22. package/chunks/chat-manager-DH8a6Qj9.js +2 -0
  23. package/chunks/common-CfAlncj9.cjs +1 -0
  24. package/chunks/common-DN_g4O3n.js +1 -0
  25. package/chunks/event-system-COBJFEIq.cjs +1 -0
  26. package/chunks/event-system-D6IJA0C4.js +1 -0
  27. package/chunks/group-user-info-resolver-C5pdiqox.cjs +1 -0
  28. package/chunks/group-user-info-resolver-FNRqDg18.js +1 -0
  29. package/chunks/index-BKg4EGcI.cjs +1 -0
  30. package/chunks/index-CK3GHdGU.cjs +1 -0
  31. package/chunks/index-CjofwvEQ.js +1 -0
  32. package/chunks/index-uKWbjx-u.js +1 -0
  33. package/chunks/profile-version-DLMz8lqW.js +1 -0
  34. package/chunks/profile-version-njNs7R5-.cjs +1 -0
  35. package/chunks/reflection-proto-codec-64ocOTHU.js +1 -0
  36. package/chunks/reflection-proto-codec-BnQFQdZC.cjs +1 -0
  37. package/chunks/session-list-query-B6dh-b4Y.cjs +1 -0
  38. package/chunks/session-list-query-Dnp2HbpW.js +1 -0
  39. package/chunks/user-info-BfRwS4ZA.js +1 -0
  40. package/chunks/user-info-icpL0Eaw.cjs +1 -0
  41. package/config/cache.d.ts +12 -0
  42. package/config/timeouts.d.ts +34 -0
  43. package/core/connection/connection-manager.d.ts +228 -0
  44. package/core/connection/connection-retry.d.ts +47 -0
  45. package/core/connection/heartbeat.d.ts +68 -0
  46. package/core/contact-sync/contact-roster-event-sidecar.d.ts +3 -0
  47. package/core/contact-sync/roster-sync-client.d.ts +21 -0
  48. package/core/contact-sync/roster-sync-controller.d.ts +20 -0
  49. package/core/contact-sync/roster-sync-session.d.ts +28 -0
  50. package/core/contact-sync/roster-sync-types.d.ts +74 -0
  51. package/core/events/event-hub.d.ts +13 -0
  52. package/core/group-sync/group-sync-client.d.ts +19 -0
  53. package/core/group-sync/group-sync-controller.d.ts +11 -0
  54. package/core/group-sync/group-sync-merge.d.ts +3 -0
  55. package/core/group-sync/group-sync-normalizer.d.ts +4 -0
  56. package/core/group-sync/group-sync-session.d.ts +17 -0
  57. package/core/group-sync/group-sync-types.d.ts +24 -0
  58. package/core/group-sync/index.d.ts +4 -0
  59. package/core/index.d.ts +95 -0
  60. package/core/message/attachment-downloader.d.ts +7 -0
  61. package/core/message/chatroom-operation-types.d.ts +6 -0
  62. package/core/message/combine-message-downloader.d.ts +7 -0
  63. package/core/message/message-action-types.d.ts +22 -0
  64. package/core/message/message-deduplicator.d.ts +11 -0
  65. package/core/message/message-receiver.d.ts +65 -0
  66. package/core/message/message-retry.d.ts +33 -0
  67. package/core/message/message-sender.d.ts +63 -0
  68. package/core/message/profile-sync/group-namecard-hydration-queue.d.ts +33 -0
  69. package/core/message/profile-sync/group-namecard-hydrator.d.ts +8 -0
  70. package/core/message/profile-sync/latest-message-version-projector.d.ts +3 -0
  71. package/core/message/profile-sync/profile-version-sidecar.d.ts +9 -0
  72. package/core/message/profile-sync/profile-version.d.ts +3 -0
  73. package/core/message/profile-sync/user-info-hydration-queue.d.ts +29 -0
  74. package/core/message/profile-sync/user-info-hydrator.d.ts +8 -0
  75. package/core/message/stream-message-cache.d.ts +38 -0
  76. package/core/message/stream-message-handler.d.ts +22 -0
  77. package/core/session-list-sync/session-list-query.d.ts +26 -0
  78. package/core/session-list-sync/session-list-sync-controller.d.ts +17 -0
  79. package/core/session-list-sync/session-list-sync-merge.d.ts +17 -0
  80. package/core/session-list-sync/session-list-sync-normalizer.d.ts +6 -0
  81. package/core/session-list-sync/session-list-sync-runner.d.ts +13 -0
  82. package/core/session-list-sync/session-list-sync-session.d.ts +26 -0
  83. package/core/session-list-sync/session-list-sync-types.d.ts +24 -0
  84. package/core/sync/shared-sync-websocket-session.d.ts +61 -0
  85. package/core/user-info/group-user-info-resolver.d.ts +40 -0
  86. package/data-report/bridge.d.ts +11 -0
  87. package/data-report/constants.d.ts +25 -0
  88. package/data-report/data-reporter.d.ts +21 -0
  89. package/data-report/event-queue.d.ts +38 -0
  90. package/data-report/index.d.ts +3 -0
  91. package/data-report/network-type.d.ts +1 -0
  92. package/data-report/operation-map.d.ts +8 -0
  93. package/data-report/transport.d.ts +17 -0
  94. package/data-report/types.d.ts +61 -0
  95. package/index.cjs +1 -0
  96. package/index.d.ts +134 -0
  97. package/index.js +3 -0
  98. package/managers/chat/index.cjs +1 -0
  99. package/managers/chat/index.d.ts +1 -0
  100. package/managers/chat/index.js +1 -0
  101. package/managers/chat-manager.d.ts +880 -0
  102. package/managers/chat-thread/chat-thread.d.ts +126 -0
  103. package/managers/chat-thread/index.cjs +1 -0
  104. package/managers/chat-thread/index.d.ts +2 -0
  105. package/managers/chat-thread/index.js +1 -0
  106. package/managers/chat-thread-manager.d.ts +257 -0
  107. package/managers/chatroom/chatroom-event-mapper.d.ts +17 -0
  108. package/managers/chatroom/chatroom-event-user-info-resolver.d.ts +15 -0
  109. package/managers/chatroom/chatroom-normalizers.d.ts +23 -0
  110. package/managers/chatroom/chatroom.d.ts +403 -0
  111. package/managers/chatroom/index.cjs +1 -0
  112. package/managers/chatroom/index.d.ts +2 -0
  113. package/managers/chatroom/index.js +1 -0
  114. package/managers/chatroom-manager.d.ts +604 -0
  115. package/managers/contact/contact-user-info-resolver.d.ts +15 -0
  116. package/managers/contact/index.cjs +1 -0
  117. package/managers/contact/index.d.ts +1 -0
  118. package/managers/contact/index.js +1 -0
  119. package/managers/contact-manager.d.ts +215 -0
  120. package/managers/group/group-event-mapper.d.ts +18 -0
  121. package/managers/group/group-event-user-info-resolver.d.ts +15 -0
  122. package/managers/group/group-normalizers.d.ts +15 -0
  123. package/managers/group/group.d.ts +504 -0
  124. package/managers/group/index.cjs +1 -0
  125. package/managers/group/index.d.ts +2 -0
  126. package/managers/group/index.js +1 -0
  127. package/managers/group/internal/group-event-sync.d.ts +13 -0
  128. package/managers/group/internal/group-repository.d.ts +31 -0
  129. package/managers/group/internal/group-snapshot-mapper.d.ts +6 -0
  130. package/managers/group/internal/internal-group.d.ts +24 -0
  131. package/managers/group-manager.d.ts +371 -0
  132. package/managers/presence/index.cjs +1 -0
  133. package/managers/presence/index.d.ts +1 -0
  134. package/managers/presence/index.js +1 -0
  135. package/managers/presence-manager.d.ts +201 -0
  136. package/managers/push/index.cjs +1 -0
  137. package/managers/push/index.d.ts +1 -0
  138. package/managers/push/index.js +1 -0
  139. package/managers/push-manager.d.ts +205 -0
  140. package/managers/user-info/index.cjs +1 -0
  141. package/managers/user-info/index.d.ts +4 -0
  142. package/managers/user-info/index.js +1 -0
  143. package/managers/user-info/user-info-notify-normalizer.d.ts +2 -0
  144. package/managers/user-info/user-info-runtime-store.d.ts +28 -0
  145. package/managers/user-info-manager.d.ts +196 -0
  146. package/message/combine-compatible-text-sidecar.d.ts +4 -0
  147. package/message/combine-message-constraints.d.ts +7 -0
  148. package/message/combine-payload-codec.d.ts +17 -0
  149. package/message/create-message.d.ts +64 -0
  150. package/package.json +64 -16
  151. package/platform/capability-validator.d.ts +7 -0
  152. package/platform/env.d.ts +68 -0
  153. package/platform/factory.d.ts +7 -0
  154. package/platform/image/miniapp-image-processor.d.ts +45 -0
  155. package/platform/image/web-image-processor.d.ts +2 -0
  156. package/platform/index.d.ts +17 -0
  157. package/platform/miniapp/miniapp-adapter.d.ts +3 -0
  158. package/platform/proto/proto-adapter.d.ts +17 -0
  159. package/platform/proto/reflection-proto-codec.d.ts +8 -0
  160. package/platform/proto/static-proto-adapter.d.ts +8 -0
  161. package/platform/request/web-request-adapter.d.ts +9 -0
  162. package/platform/runtime/connection-event-normalizer.d.ts +14 -0
  163. package/platform/runtime/runtime-event-bridge.d.ts +23 -0
  164. package/platform/runtime/web-runtime-adapter.d.ts +26 -0
  165. package/platform/socket/web-socket-adapter.d.ts +8 -0
  166. package/platform/types.d.ts +472 -0
  167. package/platform/upload/react-native-upload-adapter.d.ts +14 -0
  168. package/platform/upload/upload-error-mapper.d.ts +7 -0
  169. package/platform/upload/upload-source.d.ts +20 -0
  170. package/platform/upload/web-upload-adapter.d.ts +10 -0
  171. package/protocol/joined-groups/codec.d.ts +11 -0
  172. package/protocol/joined-groups/gateway.d.ts +2 -0
  173. package/protocol/joined-groups/index.d.ts +2 -0
  174. package/protocol/joined-groups/proto.d.ts +174 -0
  175. package/protocol/joined-groups/types.d.ts +65 -0
  176. package/protocol/msync/codec.d.ts +191 -0
  177. package/protocol/msync/context.d.ts +40 -0
  178. package/protocol/msync/lz4-compressor/index.d.ts +40 -0
  179. package/protocol/msync/lz4-compressor/utils.d.ts +27 -0
  180. package/protocol/msync/multi-device-normalizer.d.ts +75 -0
  181. package/protocol/msync/proto.d.ts +1306 -0
  182. package/protocol/msync/root.d.ts +5 -0
  183. package/protocol/msync/types.d.ts +96 -0
  184. package/protocol/msync/utils.d.ts +26 -0
  185. package/protocol/protobuf/decoder.d.ts +44 -0
  186. package/protocol/protobuf/encoder.d.ts +23 -0
  187. package/protocol/protobuf/types.d.ts +53 -0
  188. package/protocol/roster/codec.d.ts +9 -0
  189. package/protocol/roster/proto.d.ts +205 -0
  190. package/protocol/roster/root.d.ts +5 -0
  191. package/protocol/roster/types.d.ts +83 -0
  192. package/protocol/session-list/codec.d.ts +11 -0
  193. package/protocol/session-list/gateway.d.ts +19 -0
  194. package/protocol/session-list/payload-decoder.d.ts +1 -0
  195. package/protocol/session-list/proto.d.ts +207 -0
  196. package/protocol/session-list/types.d.ts +83 -0
  197. package/rest/chat-management.d.ts +26 -0
  198. package/rest/chat-thread-management.d.ts +14 -0
  199. package/rest/chatroom-management.d.ts +40 -0
  200. package/rest/client.d.ts +86 -0
  201. package/rest/contact-management.d.ts +27 -0
  202. package/rest/contact-metadata.d.ts +11 -0
  203. package/rest/conversation-management.d.ts +11 -0
  204. package/rest/dns-config.d.ts +20 -0
  205. package/rest/error-map-types.d.ts +32 -0
  206. package/rest/error-maps/chat.d.ts +888 -0
  207. package/rest/error-maps/chatroom.d.ts +592 -0
  208. package/rest/error-maps/common.d.ts +208 -0
  209. package/rest/error-maps/contact.d.ts +185 -0
  210. package/rest/error-maps/core.d.ts +21 -0
  211. package/rest/error-maps/group.d.ts +500 -0
  212. package/rest/error-maps/index.d.ts +9 -0
  213. package/rest/error-maps/presence.d.ts +62 -0
  214. package/rest/error-maps/push.d.ts +158 -0
  215. package/rest/error-maps/thread.d.ts +538 -0
  216. package/rest/error-maps/user-info.d.ts +289 -0
  217. package/rest/errors.d.ts +23 -0
  218. package/rest/group-management.d.ts +55 -0
  219. package/rest/rtc-token.d.ts +14 -0
  220. package/rest/speech-helpers.d.ts +24 -0
  221. package/rest/user-info-subscription.d.ts +10 -0
  222. package/rest/user-info.d.ts +34 -0
  223. package/types/chat-client.d.ts +226 -0
  224. package/types/chat-manager.d.ts +641 -0
  225. package/types/chat-thread.d.ts +311 -0
  226. package/types/chatroom.d.ts +1258 -0
  227. package/types/connection.d.ts +111 -0
  228. package/types/contact.d.ts +149 -0
  229. package/types/conversation.d.ts +270 -0
  230. package/types/event-system.d.ts +721 -0
  231. package/types/group.d.ts +980 -0
  232. package/types/index.d.ts +577 -44
  233. package/types/manager.d.ts +99 -0
  234. package/types/message-conversation.d.ts +22 -0
  235. package/types/message-create.d.ts +173 -0
  236. package/types/multi-device.d.ts +275 -0
  237. package/types/presence.d.ts +101 -0
  238. package/types/push.d.ts +296 -0
  239. package/types/sender.d.ts +12 -0
  240. package/types/sync-data.d.ts +54 -0
  241. package/types/user-info.d.ts +178 -0
  242. package/upload/attachment-file-store.d.ts +11 -0
  243. package/upload/attachment-uploader.d.ts +36 -0
  244. package/upload/constants.d.ts +8 -0
  245. package/upload/index.d.ts +2 -0
  246. package/upload/multipart-upload.d.ts +14 -0
  247. package/upload/simple-upload.d.ts +3 -0
  248. package/upload/types.d.ts +79 -0
  249. package/upload/utils.d.ts +71 -0
  250. package/utils/env.d.ts +4 -0
  251. package/utils/error-codes.d.ts +2 -0
  252. package/utils/error-codes.generated.d.ts +145 -0
  253. package/utils/error-sanitizer.d.ts +8 -0
  254. package/utils/errors.d.ts +139 -0
  255. package/utils/log-reporter.d.ts +61 -0
  256. package/utils/log-sanitizer.d.ts +6 -0
  257. package/utils/logger.d.ts +48 -0
  258. package/utils/md5.d.ts +1 -0
  259. package/utils/message-id.d.ts +12 -0
  260. package/utils/provision-error-mapping.d.ts +21 -0
  261. package/utils/retry.d.ts +26 -0
  262. package/utils/runtime-global.d.ts +4 -0
  263. package/utils/trace-id.d.ts +5 -0
  264. package/utils/utf8.d.ts +2 -0
  265. package/validators/chat-client.d.ts +787 -0
  266. package/validators/message-create.d.ts +419 -0
  267. package/validators/search-messages.d.ts +127 -0
  268. package/validators/validator.d.ts +49 -0
  269. package/version.d.ts +2 -0
  270. package/Easemob-chat.d.ts +0 -8457
  271. package/Easemob-chat.js +0 -2
  272. package/chatroom/chatroom.d.ts +0 -649
  273. package/chatroom/chatroom.js +0 -1
  274. package/contact/contact.d.ts +0 -726
  275. package/contact/contact.js +0 -1
  276. package/group/group.d.ts +0 -848
  277. package/group/group.js +0 -1
  278. package/localCache/localCache.d.ts +0 -59
  279. package/localCache/localCache.js +0 -1
  280. package/message/audio.d.ts +0 -183
  281. package/message/channel.d.ts +0 -82
  282. package/message/cmd.d.ts +0 -146
  283. package/message/combine.d.ts +0 -132
  284. package/message/custom.d.ts +0 -135
  285. package/message/delivery.d.ts +0 -77
  286. package/message/file.d.ts +0 -173
  287. package/message/img.d.ts +0 -200
  288. package/message/index.d.ts +0 -211
  289. package/message/location.d.ts +0 -134
  290. package/message/read.d.ts +0 -85
  291. package/message/text.d.ts +0 -149
  292. package/message/video.d.ts +0 -180
  293. package/miniCore/miniCore.d.ts +0 -217
  294. package/miniCore/miniCore.js +0 -2
  295. package/miniProgram/Easemob-chat.js +0 -2
  296. package/miniProgram/miniProgram.zip +0 -0
  297. package/presence/presence.d.ts +0 -69
  298. package/presence/presence.js +0 -1
  299. package/silent/silent.d.ts +0 -128
  300. package/silent/silent.js +0 -1
  301. package/status.d.ts +0 -184
  302. package/thread/thread.d.ts +0 -159
  303. package/thread/thread.js +0 -1
  304. package/translation/translation.d.ts +0 -30
  305. package/translation/translation.js +0 -1
  306. package/types/chatRoomApi.d.ts +0 -226
  307. package/types/common.d.ts +0 -89
  308. package/types/engineCore.d.ts +0 -194
  309. package/types/error.d.ts +0 -13
  310. package/types/eventHandler.d.ts +0 -437
  311. package/types/groupApi.d.ts +0 -306
  312. package/types/indexApi.d.ts +0 -366
  313. package/types/localCache.d.ts +0 -53
  314. package/types/message.d.ts +0 -959
  315. package/types/presenceApi.d.ts +0 -61
  316. package/types/reactionApi.d.ts +0 -74
  317. package/types/restApis.d.ts +0 -6
  318. package/types/silentModeApi.d.ts +0 -109
  319. package/types/threadApi.d.ts +0 -175
  320. package/types/translation.d.ts +0 -25
  321. package/types/utils.d.ts +0 -90
  322. package/uniApp/Easemob-chat.js +0 -2
  323. package/uniApp/uniApp.zip +0 -0
  324. package/websdk.zip +0 -0
@@ -0,0 +1,111 @@
1
+ /**
2
+ * 连接相关类型定义
3
+ */
4
+ /**
5
+ * [zh-CN] 连接状态常量。
6
+ * [en-US] Connection status constants.
7
+ */
8
+ export declare const ConnectionStatus: {
9
+ readonly DISCONNECTED: "disconnected";
10
+ readonly CONNECTING: "connecting";
11
+ readonly CONNECTED: "connected";
12
+ readonly RECONNECTING: "reconnecting";
13
+ readonly RECONNECT_FAILED: "reconnectFailed";
14
+ };
15
+ /**
16
+ * [zh-CN] SDK 连接状态。
17
+ * [en-US] SDK connection status.
18
+ */
19
+ export type ConnectionStatus = (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
20
+ /**
21
+ * [zh-CN] 连接事件名称常量。
22
+ * [en-US] Connection event name constants.
23
+ */
24
+ export declare const ConnectionEventName: {
25
+ readonly CONNECTING: "onConnecting";
26
+ readonly CONNECTED: "onConnected";
27
+ readonly DISCONNECTED: "onDisconnected";
28
+ readonly RECONNECT_FAILED: "onReconnectFailed";
29
+ readonly TOKEN_WILL_EXPIRE: "onTokenWillExpire";
30
+ readonly TOKEN_EXPIRED: "onTokenExpired";
31
+ readonly OFFLINE_MESSAGE_SYNC_START: "onOfflineMessageSyncStart";
32
+ readonly OFFLINE_MESSAGE_SYNC_FINISH: "onOfflineMessageSyncFinish";
33
+ };
34
+ /**
35
+ * [zh-CN] 连接事件名称。
36
+ * [en-US] Connection event name.
37
+ */
38
+ export type ConnectionEventName = (typeof ConnectionEventName)[keyof typeof ConnectionEventName];
39
+ /** @internal 内部事件名称常量。 */
40
+ export declare const InternalEventName: {
41
+ readonly SEND_TIMEOUT: "onSendTimeout";
42
+ readonly GROUP_NOTIFY: "onGroupNotify";
43
+ readonly CHATROOM_NOTIFY: "onChatRoomNotify";
44
+ readonly CHAT_THREAD_NOTIFY: "onChatThreadNotify";
45
+ readonly USER_INFO_NOTIFY: "onUserInfoNotify";
46
+ readonly MESSAGE_SENT: "__internal:onMessageSent";
47
+ };
48
+ /** @internal 内部事件名称类型。 */
49
+ export type InternalEventName = (typeof InternalEventName)[keyof typeof InternalEventName];
50
+ /**
51
+ * [zh-CN] 连接状态变化原因常量。
52
+ * [en-US] Connection state change reason constants.
53
+ */
54
+ export declare const ConnectionEventReason: {
55
+ readonly LOGIN: "login";
56
+ readonly RECONNECT: "reconnect";
57
+ readonly ONLINE: "online";
58
+ readonly OFFLINE_RECOVER: "offline-recover";
59
+ readonly HEARTBEAT_FAILED: "heartbeat-failed";
60
+ readonly SEND_TIMEOUT: "send-timeout";
61
+ readonly CLOSE: "close";
62
+ readonly ERROR: "error";
63
+ readonly TIMEOUT: "timeout";
64
+ readonly LIMIT: "limit";
65
+ readonly OFFLINE: "offline";
66
+ readonly TOKEN_EXPIRED: "token-expired";
67
+ };
68
+ /**
69
+ * [zh-CN] 连接状态变化原因。
70
+ * [en-US] Reason for a connection state change.
71
+ */
72
+ export type ConnectionEventReason = (typeof ConnectionEventReason)[keyof typeof ConnectionEventReason];
73
+ /**
74
+ * [zh-CN] 连接事件载荷。
75
+ * [en-US] Connection event payload.
76
+ */
77
+ export interface ConnectionEventPayload {
78
+ /** [zh-CN] 当前连接状态。 [en-US] Current connection status. */
79
+ readonly state: ConnectionStatus;
80
+ /** [zh-CN] 触发本次事件的原因。 [en-US] Reason that triggered this event. */
81
+ readonly reason: ConnectionEventReason;
82
+ /** [zh-CN] 当前重连尝试次数。 [en-US] Current reconnection attempt number. */
83
+ readonly attempt: number;
84
+ /** [zh-CN] 允许的最大重连次数。 [en-US] Maximum allowed reconnection attempts. */
85
+ readonly maxAttempts: number;
86
+ /** [zh-CN] 是否处于登录阶段。 [en-US] Whether the SDK is in the login phase. */
87
+ readonly isLoginPhase: boolean;
88
+ /** [zh-CN] 当前网络是否在线。 [en-US] Whether the network is currently online. */
89
+ readonly isOnline: boolean;
90
+ /** [zh-CN] 触发事件的错误码。 [en-US] Error code that triggered the event. */
91
+ readonly errorCode?: number;
92
+ /** [zh-CN] 触发事件的错误消息。 [en-US] Error message that triggered the event. */
93
+ readonly errorMessage?: string;
94
+ /** [zh-CN] 事件时间戳,单位毫秒。 [en-US] Event timestamp in milliseconds. */
95
+ readonly timestamp: number;
96
+ }
97
+ /**
98
+ * [zh-CN] 消息发送超时事件载荷。
99
+ * [en-US] Message send timeout event payload.
100
+ */
101
+ export interface SendTimeoutEventPayload {
102
+ /** [zh-CN] 固定为发送超时原因。 [en-US] Always the send-timeout reason. */
103
+ readonly reason: typeof ConnectionEventReason.SEND_TIMEOUT;
104
+ /** [zh-CN] 事件时间戳,单位毫秒。 [en-US] Event timestamp in milliseconds. */
105
+ readonly timestamp: number;
106
+ }
107
+ /**
108
+ * [zh-CN] Token 生命周期事件载荷;此类事件不携带 token 或鉴权信息。
109
+ * [en-US] Token lifecycle event payload; these events do not include token or authentication data.
110
+ */
111
+ export type TokenLifecycleEventPayload = undefined;
@@ -0,0 +1,149 @@
1
+ /**
2
+ * [zh-CN] 好友自动同步相关公共类型定义,供 ContactManager、事件系统与文档生成复用。
3
+ * [en-US] Public type definitions for friend auto-sync, shared across ContactManager, event system, and doc generation.
4
+ */
5
+ import type { ErrorCode } from '../utils/error-codes';
6
+ import type { UserInfo } from './user-info';
7
+ /**
8
+ * [zh-CN] 好友展示对象。
9
+ * [en-US] Friend view object.
10
+ */
11
+ export interface Contact {
12
+ /** [zh-CN] 好友用户 ID。 [en-US] The user ID of the friend. */
13
+ readonly userId: string;
14
+ /** [zh-CN] 好友资料视图,直接复用统一 `UserInfo`。 [en-US] Friend profile view, backed by the shared `UserInfo` model. */
15
+ readonly userInfo: UserInfo;
16
+ /** [zh-CN] 当前用户给该好友的备注。 [en-US] Remark set by the current user for this friend. */
17
+ readonly remark: string;
18
+ /** [zh-CN] 好友关系建立时间戳。 [en-US] Timestamp when the friend relationship was established. */
19
+ readonly addTs: number;
20
+ }
21
+ /**
22
+ * [zh-CN] 好友资料变化事件载荷。
23
+ * [en-US] Payload for friend profile change events.
24
+ */
25
+ export interface ContactInfoUpdatedEvent {
26
+ /** [zh-CN] 最新好友资料。 [en-US] The latest friend profile. */
27
+ readonly userInfo: UserInfo;
28
+ /** [zh-CN] 当前会话中可用的好友快照。 [en-US] Friend snapshot if available in the current conversation. */
29
+ readonly contact?: Contact;
30
+ }
31
+ /**
32
+ * [zh-CN] 好友写操作的统一目标。
33
+ * [en-US] Unified target object for friend mutation APIs.
34
+ */
35
+ export interface ContactMutationTarget {
36
+ /** [zh-CN] 目标用户 ID。 [en-US] Target user ID. */
37
+ readonly userId: string;
38
+ }
39
+ /**
40
+ * [zh-CN] 添加好友的输入参数。
41
+ * [en-US] Input parameters for adding a friend.
42
+ */
43
+ export interface AddContactParams extends ContactMutationTarget {
44
+ /** [zh-CN] 可选的验证消息。 [en-US] Optional verification message. */
45
+ readonly message?: string;
46
+ }
47
+ /**
48
+ * [zh-CN] 更新好友备注的输入参数。
49
+ * [en-US] Input parameters for updating a friend's remark.
50
+ */
51
+ export interface SetContactRemarkParams extends ContactMutationTarget {
52
+ /** [zh-CN] 好友备注,允许空字符串以清空备注。 [en-US] Friend remark. An empty string clears the remark. */
53
+ readonly remark: string;
54
+ }
55
+ /**
56
+ * [zh-CN] 黑名单增删接口的输入参数。
57
+ * [en-US] Input parameters for block list mutation APIs.
58
+ */
59
+ export interface BlocklistMutationParams {
60
+ /** [zh-CN] 待处理的用户 ID 列表。 [en-US] List of user IDs to mutate. */
61
+ readonly userIds: ReadonlyArray<string>;
62
+ }
63
+ /**
64
+ * [zh-CN] 黑名单添加成功结果。
65
+ * [en-US] Result of a successful block list addition.
66
+ */
67
+ export interface BlocklistAddResult {
68
+ /** [zh-CN] 成功加入黑名单的用户资料列表。 [en-US] List of profiles belonging to users that were successfully added to the block list. */
69
+ readonly succeeded: ReadonlyArray<UserInfo>;
70
+ /** [zh-CN] 加入失败的用户资料列表。 [en-US] List of profiles belonging to users that failed to be added to the block list. */
71
+ readonly failed: ReadonlyArray<UserInfo>;
72
+ }
73
+ /**
74
+ * [zh-CN] 会话级黑名单快照。
75
+ * [en-US] conversation-scoped block list snapshot.
76
+ */
77
+ export interface BlocklistSnapshot {
78
+ /** [zh-CN] 当前黑名单条目列表。 [en-US] List of current block list entries. */
79
+ readonly items: ReadonlyArray<UserInfo>;
80
+ /** [zh-CN] 当前会话是否已完成服务端加载。 [en-US] Whether the server-side block list data is loaded in the current conversation. */
81
+ readonly loaded: boolean;
82
+ /** [zh-CN] 快照来源。 [en-US] Snapshot source. */
83
+ readonly source: 'server' | 'mutation_patch';
84
+ }
85
+ /**
86
+ * [zh-CN] 好友 roster 事件的标准化公开载荷。
87
+ * [en-US] Normalized public payload for contact roster events.
88
+ */
89
+ export interface ContactRosterEventPayload {
90
+ /** [zh-CN] 事件发送方用户 ID。 [en-US] User ID of the event sender. */
91
+ readonly from: string;
92
+ /** [zh-CN] 事件接收方用户 ID。 [en-US] User ID of the event recipient. */
93
+ readonly to: string;
94
+ /** [zh-CN] 服务端附带的邀请附言或事件原因。 [en-US] Invitation message or event reason provided by the server. */
95
+ readonly message: string;
96
+ /** [zh-CN] 事件目标用户的资料视图;对外事件会在派发前补齐,至少包含 `userId`。 [en-US] Profile view of the event target. It is enriched before public dispatch and always includes at least `userId`. */
97
+ readonly userInfo: UserInfo;
98
+ }
99
+ /**
100
+ * [zh-CN] 好友快照来源。
101
+ * [en-US] Source of a friend snapshot.
102
+ */
103
+ export type ContactSyncSource = 'cache' | 'sync';
104
+ /**
105
+ * [zh-CN] 好友同步决策结果。
106
+ * [en-US] Decision result for friend sync.
107
+ */
108
+ export type ContactSyncDecision = 'skip' | 'incremental' | 'full';
109
+ /**
110
+ * [zh-CN] 好友同步失败阶段。
111
+ * [en-US] Failure stage of friend sync.
112
+ */
113
+ export type ContactSyncStage = 'metadata' | 'socket_connect' | 'sync_page' | 'decode' | 'cancelled';
114
+ /**
115
+ * [zh-CN] 好友快照,包含列表、来源、版本和完整性信息。
116
+ * [en-US] Friend snapshot containing list, source, version, and completeness metadata.
117
+ */
118
+ export interface ContactSnapshot {
119
+ /** [zh-CN] 当前快照中的好友列表。 [en-US] List of friends in the current snapshot. */
120
+ readonly items: ReadonlyArray<Contact>;
121
+ /** [zh-CN] 当前快照来自缓存还是同步结果。 [en-US] Whether the snapshot comes from cache or sync result. */
122
+ readonly source: ContactSyncSource;
123
+ /** [zh-CN] 当前快照对应的好友版本号。 [en-US] Friend version associated with the snapshot. */
124
+ readonly version: string;
125
+ /** [zh-CN] 当前快照是否可作为完整好友结果使用。 [en-US] Whether the snapshot is complete enough to serve as the full friend result. */
126
+ readonly complete: boolean;
127
+ }
128
+ /**
129
+ * [zh-CN] 好友同步错误对象。
130
+ * [en-US] Friend sync error object.
131
+ */
132
+ export interface ContactSyncError {
133
+ /** [zh-CN] SDK 错误码。 [en-US] SDK error code. */
134
+ readonly code: ErrorCode;
135
+ /** [zh-CN] 错误发生阶段。 [en-US] Stage where the error occurred. */
136
+ readonly stage: ContactSyncStage;
137
+ /** [zh-CN] 面向调用方的错误消息。 [en-US] Error message intended for the caller. */
138
+ readonly message: string;
139
+ /** [zh-CN] 当前错误是否建议重试。 [en-US] Whether retry is recommended for this error. */
140
+ readonly retryable: boolean;
141
+ }
142
+ /**
143
+ * [zh-CN] 好友同步内部完成载荷;公开同步事件已统一到 ChatClient 级 `onSyncDataFinished`。
144
+ * [en-US] Internal payload for friend sync completion. Public sync events are unified under the ChatClient-level `onSyncDataFinished` event.
145
+ */
146
+ export interface ContactSyncFinishPayload {
147
+ /** [zh-CN] 失败时返回错误详情。 [en-US] Error details if the sync failed. */
148
+ readonly error: ContactSyncError;
149
+ }
@@ -0,0 +1,270 @@
1
+ /**
2
+ * [zh-CN] Conversation 公开类型定义。
3
+ * [en-US] Public conversation type definitions.
4
+ */
5
+ import type { Sender } from './sender';
6
+ import type { Message, MessageDirect, MessageModifiedInfo, MessageSendStatus, MessageType } from './index';
7
+ export type { Sender } from './sender';
8
+ export declare const CONVERSATION_TYPE: {
9
+ readonly SINGLE_CHAT: "singleChat";
10
+ readonly GROUP_CHAT: "groupChat";
11
+ readonly CHAT_ROOM: "chatRoom";
12
+ };
13
+ /**
14
+ * [zh-CN] 会话类型。
15
+ * [en-US] Conversation type.
16
+ */
17
+ export type ConversationType = (typeof CONVERSATION_TYPE)[keyof typeof CONVERSATION_TYPE];
18
+ /**
19
+ * [zh-CN] 会话标记槽位常量,实际业务含义由开发者维护。
20
+ * [en-US] Conversation mark slot constants (value range: 0-19); the actual business meaning is defined and maintained by the application layer.
21
+ */
22
+ export declare const CONVERSATION_MARK: {
23
+ readonly MARK_0: 0;
24
+ readonly MARK_1: 1;
25
+ readonly MARK_2: 2;
26
+ readonly MARK_3: 3;
27
+ readonly MARK_4: 4;
28
+ readonly MARK_5: 5;
29
+ readonly MARK_6: 6;
30
+ readonly MARK_7: 7;
31
+ readonly MARK_8: 8;
32
+ readonly MARK_9: 9;
33
+ readonly MARK_10: 10;
34
+ readonly MARK_11: 11;
35
+ readonly MARK_12: 12;
36
+ readonly MARK_13: 13;
37
+ readonly MARK_14: 14;
38
+ readonly MARK_15: 15;
39
+ readonly MARK_16: 16;
40
+ readonly MARK_17: 17;
41
+ readonly MARK_18: 18;
42
+ readonly MARK_19: 19;
43
+ };
44
+ /**
45
+ * [zh-CN] 会话标记槽位,取值范围为 0 至 19。
46
+ * [en-US] Conversation mark slot with a value from 0 to 19.
47
+ */
48
+ export type ConversationMark = (typeof CONVERSATION_MARK)[keyof typeof CONVERSATION_MARK];
49
+ /**
50
+ * [zh-CN] 会话唯一标识。
51
+ * [en-US] Unique conversation identifier.
52
+ */
53
+ export interface ConversationIdentifier {
54
+ /** [zh-CN] 会话 ID:单聊时为对方用户 ID,群聊时为群组 ID,聊天室时为聊天室 ID。 [en-US] Conversation ID: User ID for one-to-one chats, group ID for group chats, or chat room ID for chat rooms. */
55
+ readonly conversationId: string;
56
+ /** [zh-CN] 会话类型。 [en-US] Conversation type. */
57
+ readonly conversationType: ConversationType;
58
+ }
59
+ /**
60
+ * [zh-CN] 设置或移除会话标记时的会话定位参数。
61
+ * [en-US] Conversation locator used when setting or removing conversation marks.
62
+ */
63
+ export type ConversationMarkTarget = ConversationIdentifier;
64
+ /**
65
+ * [zh-CN] 会话列表查询过滤条件。
66
+ * [en-US] Filter criteria for querying the conversation list.
67
+ */
68
+ export interface ConversationFilter {
69
+ /** [zh-CN] 若为 true,则仅返回已置顶的会话。 [en-US] If true, the SDK returns only pinned conversations. */
70
+ readonly isPinned?: boolean;
71
+ /** [zh-CN] 按会话标记槽位过滤,取值范围 0 至 19。 [en-US] Filters by conversation mark slot. The value range is 0-19. */
72
+ readonly mark?: ConversationMark;
73
+ }
74
+ /**
75
+ * [zh-CN] 删除会话的操作参数。
76
+ * [en-US] Parameters for deleting a conversation.
77
+ */
78
+ export interface DeleteConversationParams extends ConversationIdentifier {
79
+ /** [zh-CN] 是否同时删除服务端存储的漫游消息。 [en-US] Whether to also delete the roaming messages stored on the server. */
80
+ readonly deleteRoamingMessages?: boolean;
81
+ }
82
+ /**
83
+ * [zh-CN] 设置会话置顶状态的操作参数。
84
+ * [en-US] Parameters for setting the pinned status of a conversation.
85
+ */
86
+ export interface SetConversationPinnedParams extends ConversationIdentifier {
87
+ /** [zh-CN] `true` 表示置顶,`false` 表示取消置顶。 [en-US] `true`: pins the conversation, `false`: unpins the conversation. */
88
+ readonly pinned: boolean;
89
+ }
90
+ /**
91
+ * [zh-CN] 添加或移除会话标记的参数,支持单个会话或批量会话。
92
+ * [en-US] Parameters for adding or removing conversation marks, supporting either a single conversation or batch conversations.
93
+ */
94
+ export type ConversationMarkParams = {
95
+ /** [zh-CN] 需要操作的会话列表。 [en-US] List of conversations to operate on. */
96
+ readonly conversations: ReadonlyArray<ConversationMarkTarget>;
97
+ /** [zh-CN] 会话标记槽位,取值范围 0 至 19。 [en-US] Conversation mark slot. The valid range is 0-19. */
98
+ readonly mark: ConversationMark;
99
+ } | (ConversationIdentifier & {
100
+ /** [zh-CN] 会话标记槽位,取值范围 0 至 19。 [en-US] Conversation mark slot. The valid range is 0-19. */
101
+ readonly mark: ConversationMark;
102
+ });
103
+ /**
104
+ * [zh-CN] 单个会话的标记变更结果。
105
+ * [en-US] Result of a mark mutation operation for a single conversation.
106
+ */
107
+ export interface ConversationMarkMutationItem extends ConversationIdentifier {
108
+ /** [zh-CN] 操作失败原因;成功项不包含该字段。 [en-US] Failure reason; this field is omitted for successful operations. */
109
+ readonly reason?: string;
110
+ }
111
+ /**
112
+ * [zh-CN] 会话标记变更结果。
113
+ * [en-US] Result of a batch conversation mark mutation operation.
114
+ */
115
+ export interface ConversationMarkMutationResult {
116
+ /** [zh-CN] 成功应用标记变更的会话。 [en-US] Conversations with mark change successfully applied. */
117
+ readonly succeeded: ReadonlyArray<ConversationMarkMutationItem>;
118
+ /** [zh-CN] 未能应用标记变更的会话。 [en-US] Conversations that failed to apply the mark change. */
119
+ readonly failed: ReadonlyArray<ConversationMarkMutationItem>;
120
+ /** [zh-CN] 本次操作涉及的标记槽位。 [en-US] The mark slot involved in this operation. */
121
+ readonly mark: ConversationMark;
122
+ /** [zh-CN] 标记操作类型:添加或移除。 [en-US] Mark operation type: add or remove. */
123
+ readonly operation: 'addMark' | 'removeMark';
124
+ }
125
+ /**
126
+ * [zh-CN] 置顶或取消置顶消息的参数。
127
+ * [en-US] Parameters for pinning or unpinning a message.
128
+ */
129
+ export interface PinMessageParams extends ConversationIdentifier {
130
+ /** [zh-CN] 待操作的消息 ID。 [en-US] ID of the message to pin or unpin. */
131
+ readonly messageId: string;
132
+ }
133
+ /**
134
+ * [zh-CN] 获取会话内置顶消息列表的参数。该接口不分页,最多返回 20 条置顶消息。
135
+ * [en-US] Parameters for retrieving the list of pinned messages in a conversation. This API does not support pagination and returns a maximum of 20 pinned messages.
136
+ */
137
+ export type GetPinnedMessageListParams = ConversationIdentifier;
138
+ /**
139
+ * [zh-CN] 会话变更结果。
140
+ * [en-US] Conversation mutation result.
141
+ */
142
+ export interface ConversationMutationResult {
143
+ /** [zh-CN] 会话 ID。 [en-US] Conversation ID. */
144
+ readonly conversationId: string;
145
+ /** [zh-CN] 会话类型。 [en-US] Conversation type. */
146
+ readonly conversationType: ConversationType;
147
+ /** [zh-CN] 操作类型:删除或置顶切换。 [en-US] Operation type: delete or toggle pin status. */
148
+ readonly operation: 'delete' | 'setPinned';
149
+ /** [zh-CN] 会话的置顶状态。 [en-US] Whether the conversation is pinned. */
150
+ readonly isPinned?: boolean;
151
+ /** [zh-CN] 置顶时间戳,单位毫秒。 [en-US] Timestamp when the item was pinned.*/
152
+ readonly pinnedTime?: number;
153
+ }
154
+ /**
155
+ * [zh-CN] 置顶或取消置顶消息的结果。
156
+ * [en-US] Result of pinning or unpinning a message.
157
+ */
158
+ export interface MessagePinMutationResult {
159
+ /** [zh-CN] 会话 ID。 [en-US] Conversation ID. */
160
+ readonly conversationId: string;
161
+ /** [zh-CN] 会话类型。 [en-US] Conversation type. */
162
+ readonly conversationType: ConversationType;
163
+ /** [zh-CN] 消息 ID。 [en-US] Message ID. */
164
+ readonly messageId: string;
165
+ /** [zh-CN] 操作类型:置顶或取消置顶。 [en-US] Operation type: pin or unpin. */
166
+ readonly operation: 'pin' | 'unpin';
167
+ }
168
+ /**
169
+ * [zh-CN] 置顶消息的摘要信息。
170
+ * [en-US] Summary of a pinned message.
171
+ */
172
+ export interface PinnedMessageSummary {
173
+ /** [zh-CN] 消息 ID。 [en-US] Message ID. */
174
+ readonly messageId: string;
175
+ /** [zh-CN] 会话 ID。 [en-US] Conversation ID. */
176
+ readonly conversationId: string;
177
+ /** [zh-CN] 会话类型。 [en-US] Conversation type. */
178
+ readonly conversationType: ConversationType;
179
+ /** [zh-CN] 置顶操作者用户 ID。 [en-US] User ID of the operator who pinned message. */
180
+ readonly operatorId?: string;
181
+ /** [zh-CN] 置顶时间戳(毫秒)。 [en-US] Timestamp when the message was pinned, in milliseconds. */
182
+ readonly pinnedAt: number;
183
+ /** [zh-CN] 被置顶的完整消息。 [en-US] Full pinned message. */
184
+ readonly message: Message;
185
+ }
186
+ /**
187
+ * [zh-CN] 会话内置顶消息摘要列表,最多包含 20 条。
188
+ * [en-US] Pinned message summaries in the conversation, up to 20 items.
189
+ */
190
+ export interface PinnedMessageListResult {
191
+ /** [zh-CN] 置顶消息摘要列表。 [en-US] Pinned message summaries. */
192
+ readonly items: ReadonlyArray<PinnedMessageSummary>;
193
+ }
194
+ /**
195
+ * [zh-CN] 主动刷新新会话列表时的参数。
196
+ * [en-US] Parameters for manually refreshing the conversation list.
197
+ */
198
+ export interface RefreshSessionListParams {
199
+ /** [zh-CN] 是否需要返回空会话。(无消息的会话)。 [en-US] Whether to return empty conversations (conversations without any messages). */
200
+ readonly includeEmpty?: boolean;
201
+ }
202
+ /**
203
+ * [zh-CN] 会话列表专用的消息提醒类型。
204
+ * [en-US] Notification reminder type specific to the conversation list.
205
+ */
206
+ export type SessionListRemindType = 'DEFAULT' | 'ALL' | 'AT' | 'NONE';
207
+ /**
208
+ * [zh-CN] 会话列表最小消息摘要。
209
+ * [en-US] Minimal message snippet used by the conversation list.
210
+ */
211
+ export interface SessionMessageSnippet {
212
+ /** [zh-CN] 服务端消息 ID。 [en-US] Message ID on the server. */
213
+ readonly msgServerId: string;
214
+ /** [zh-CN] 消息发送者的用户 ID。 [en-US] User ID of the message sender. */
215
+ readonly from: string;
216
+ /** [zh-CN] 消息接收方 ID:单聊时为对方用户 ID,群聊时为群组 ID,聊天室时为聊天室 ID。 [en-US] Message recipient ID: user ID for one-to-one chat, group ID for group chat, or chat room ID for chat room. */
217
+ readonly to: string;
218
+ /** [zh-CN] 发送者信息。 [en-US] Message sender information. */
219
+ readonly sender: Sender;
220
+ /** [zh-CN] 会话 ID。 [en-US] Conversation ID. */
221
+ readonly conversationId?: string;
222
+ /** [zh-CN] 会话类型。 [en-US] Conversation type. */
223
+ readonly conversationType?: ConversationType;
224
+ /** [zh-CN] 消息类型。 [en-US] Message type. */
225
+ readonly type?: MessageType;
226
+ /** [zh-CN] 消息发送状态。 [en-US] Message sending status. */
227
+ readonly sendStatus?: MessageSendStatus;
228
+ /** [zh-CN] 消息时间戳(毫秒)。 [en-US] Message timestamp, in milliseconds. */
229
+ readonly timestamp: number;
230
+ /** [zh-CN] 消息方向:发送或接收。 [en-US] Message direction: outgoing or incoming. */
231
+ readonly direct?: MessageDirect;
232
+ /** [zh-CN] 消息修改信息;当最后一条消息被编辑后,此字段可能存在。 [en-US] Message modification information; present when the last message has been edited. */
233
+ readonly modifiedInfo?: MessageModifiedInfo;
234
+ /** [zh-CN] 发送者用户资料的版本时间戳(秒),用于资料补全。 [en-US] User profile version timestamp (in seconds) of the message sender, used for profile hydration. */
235
+ readonly userInfoUpdateTime?: number;
236
+ /** [zh-CN] 群成员名片的版本时间戳(秒),仅群聊会话的最后一条消息可能存在此字段。 [en-US] The version timestamp (in seconds) of the Group member name card. This field may only exist for the last message in group chat conversations. */
237
+ readonly namecardUpdateTime?: number;
238
+ /** [zh-CN] 消息体摘要,不包含 `type` 字段。 [en-US] Message body summary without the `type` field. */
239
+ readonly body: Record<string, unknown>;
240
+ }
241
+ /**
242
+ * [zh-CN] 公开的会话列表项,来自本地会话列表缓存的投影数据。
243
+ * [en-US] Public conversation list item, projected from the local conversation list cache.
244
+ */
245
+ export interface ConversationItem {
246
+ /** [zh-CN] 会话 ID。 [en-US] Conversation ID. */
247
+ readonly conversationId: string;
248
+ /** [zh-CN] 会话类型。 [en-US] Conversation type. */
249
+ readonly conversationType: ConversationType;
250
+ /** [zh-CN] 会话的未读消息数量。 [en-US] Unread message count for this conversation. */
251
+ readonly unreadCount: number;
252
+ /** [zh-CN] 最后一条消息摘要。 [en-US] Summary of the last message in the conversation. */
253
+ readonly lastMessage: SessionMessageSnippet | null;
254
+ /** [zh-CN] 最后一条消息的时间戳(毫秒)。 [en-US] Timestamp of the last message in milliseconds. */
255
+ readonly lastMessageAt?: number;
256
+ /** [zh-CN] 会话是否处于置顶状态。 [en-US] Whether the conversation is pinned. */
257
+ readonly isPinned?: boolean;
258
+ /** [zh-CN] 置顶时间戳(毫秒)。 [en-US] Timestamp when the conversation is pinned, in milliseconds. */
259
+ readonly pinnedTimestamp?: number;
260
+ /** [zh-CN] 会话已应用的标记列表。 [en-US] List of marks applied to the conversation. */
261
+ readonly marks: ReadonlyArray<ConversationMark>;
262
+ /** [zh-CN] 已读位置或已读时间戳。 [en-US] Read receipt position or read timestamp. */
263
+ readonly readAt?: number;
264
+ /** [zh-CN] 会话的提醒类型。 [en-US] Notification reminder type for the conversation. */
265
+ readonly remindType: SessionListRemindType;
266
+ /** [zh-CN] 会话的显示名称。 [en-US] Display name of the conversation. */
267
+ readonly conversationName: string;
268
+ /** [zh-CN] 会话的头像 URL 地址。 [en-US] Avatar URL of the conversation. */
269
+ readonly conversationAvatar?: string;
270
+ }