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,980 @@
1
+ /**
2
+ * [zh-CN] GroupManager 公共类型定义。
3
+ * [en-US] Public type definitions for GroupManager.
4
+ */
5
+ import type { UserInfo } from './user-info';
6
+ import type { SessionListRemindType } from './conversation';
7
+ import type { CompatibleFile, FileUploadProgress } from './index';
8
+ /**
9
+ * [zh-CN] 用户在群组中的角色。
10
+ * [en-US] User role in a group.
11
+ */
12
+ export type GroupRole = 'owner' | 'admin' | 'member';
13
+ /**
14
+ * [zh-CN] 群上下文中的用户资料,在全局用户资料基础上可包含该用户在目标群中的群名片。
15
+ * [en-US] User profile in a group context, optionally including the user's name card in the target group.
16
+ */
17
+ export interface GroupUserInfo extends UserInfo {
18
+ /** [zh-CN] 用户在目标群中的群名片;未启用资料同步或本地无可用名片时不返回。 [en-US] The user's name card in the target group; omitted when profile sync is disabled or no local name card is available. */
19
+ readonly nameCard?: string;
20
+ }
21
+ /**
22
+ * [zh-CN] 群组摘要信息。
23
+ * [en-US] Group summary.
24
+ */
25
+ export interface GroupSummary {
26
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
27
+ readonly groupId: string;
28
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
29
+ readonly name: string;
30
+ /** [zh-CN] 群组描述。 [en-US] The group description. */
31
+ readonly description?: string;
32
+ /** [zh-CN] 当前群组成员数量。 [en-US] The current number of members in the group. */
33
+ readonly memberCount?: number;
34
+ /** [zh-CN] 群组是否为公开群。 [en-US] Whether the group is public. */
35
+ readonly public?: boolean;
36
+ /** [zh-CN] 用户加入群组时是否需要管理员审批。 [en-US] Whether admin approval is required when a user joins a group. */
37
+ readonly joinApprovalRequired?: boolean;
38
+ /** [zh-CN] 是否允许普通成员邀请其他用户加入群组。 [en-US] Whether regular members can invite other users to join the group. */
39
+ readonly allowInvites?: boolean;
40
+ /** [zh-CN] 群组最大成员数。 [en-US] The maximum number of members allowed in the group. */
41
+ readonly maxMembers?: number;
42
+ /** [zh-CN] 当前用户在群组中的角色。 [en-US] The current user's role in the group. */
43
+ readonly role?: GroupRole;
44
+ /** [zh-CN] 群组是否已被禁用。 [en-US] Whether the group is currently disabled. */
45
+ readonly disabled?: boolean;
46
+ }
47
+ /**
48
+ * [zh-CN] 群组分页列表结果。
49
+ * [en-US] Paginated result for groups.
50
+ */
51
+ export interface GroupListResult {
52
+ /** [zh-CN] 当前页的群组摘要列表。 [en-US] The group summary list on the current page. */
53
+ readonly items: ReadonlyArray<GroupSummary>;
54
+ /** [zh-CN] 当前页码,从 1 开始。 [en-US] The current page number, starting from 1. */
55
+ readonly pageNum?: number;
56
+ /** [zh-CN] 当前页返回的数据条数。 [en-US] The number of items returned on the current page. */
57
+ readonly pageSize?: number;
58
+ /** [zh-CN] 下一页的分页游标。如果当前页为最后一页,返回结果中的 `cursor` 为空字符串。 [en-US] Cursor for the the next data retrieval. If the current page is the last page, the `cursor` in the result is an empty string.*/
59
+ readonly cursor?: string;
60
+ /** [zh-CN] 是否还有下一页数据。 [en-US] Whether there is data on the next page. */
61
+ readonly hasMore?: boolean;
62
+ }
63
+ /**
64
+ * [zh-CN] 群组详情。
65
+ * [en-US] Detailed information about a group.
66
+ */
67
+ export interface GroupDetail extends GroupSummary {
68
+ /** [zh-CN] 群主的用户资料。 [en-US] The profile of the group owner. */
69
+ readonly owner?: GroupUserInfo;
70
+ /** [zh-CN] 受邀用户加入群组前是否需要确认邀请。 [en-US] Whether invited users must confirm the invitation before joining the group. */
71
+ readonly inviteNeedConfirm?: boolean;
72
+ /** [zh-CN] 群组是否开启全员禁言。 [en-US] Whether all members in the group are muted. */
73
+ readonly muteAllMembers?: boolean;
74
+ /** [zh-CN] 群组扩展信息。 [en-US] Group extension information. */
75
+ readonly ext?: string;
76
+ /** [zh-CN] 群组创建时间戳。 [en-US] The timestamp when the group was created. */
77
+ readonly createdAt?: number;
78
+ /** [zh-CN] 当前用户加入群组的时间戳。 [en-US] The timestamp when the current user joined the group. */
79
+ readonly joinedAt?: number;
80
+ /** [zh-CN] 群头像 URL。 [en-US] The URL of the group avatar. */
81
+ readonly avatarUrl?: string;
82
+ /** [zh-CN] 当前用户是否已屏蔽该群组消息。 [en-US] Whether the current user has blocked messages from this group. */
83
+ readonly messageBlocked?: boolean;
84
+ }
85
+ /**
86
+ * [zh-CN] 当前用户已加入群组的轻量同步摘要,不等同于完整群详情。
87
+ * [en-US] A lightweight synchronization summary of groups that the current user has joined. This is not equivalent to the complete group details.
88
+ */
89
+ export interface JoinedGroupSummary extends GroupSummary {
90
+ /** [zh-CN] 群主用户 ID。 [en-US] The user ID of the group owner. */
91
+ readonly ownerId?: string;
92
+ /** [zh-CN] 群头像 URL。 [en-US] The URL of the group avatar. */
93
+ readonly avatarUrl?: string;
94
+ /** [zh-CN] 群组是否开启全员禁言。 [en-US] Whether all members in the group are muted. */
95
+ readonly muteAllMembers?: boolean;
96
+ /** [zh-CN] 当前用户的禁言到期时间戳,`0` 表示未被禁言。 [en-US] The timestamp when the current user's mute expires. A value of `0` means the user is not muted. */
97
+ readonly muteExpiration?: number;
98
+ /** [zh-CN] 该群会话的提醒类型。 [en-US] The reminder type of the group conversation. */
99
+ readonly remindType?: SessionListRemindType;
100
+ /** [zh-CN] 群组创建时间戳。 [en-US] The timestamp when the group was created. */
101
+ readonly createdAt?: number;
102
+ /** [zh-CN] 群组更新时间戳。 [en-US] The timestamp when the group was last updated. */
103
+ readonly updatedAt?: number;
104
+ /** [zh-CN] 当前用户加入群组的时间戳。 [en-US] The timestamp when the current user joined the group. */
105
+ readonly joinedAt?: number;
106
+ }
107
+ /**
108
+ * [zh-CN] 本地已加入群组快照完整性状态。
109
+ * [en-US] Completeness status of the local joined group snapshot
110
+ */
111
+ export type JoinedGroupSnapshotIntegrity = 'preview' | 'synced' | 'limited' | 'incomplete' | 'unknown';
112
+ /**
113
+ * [zh-CN] 本地已加入群组快照来源。
114
+ * [en-US] Source of a local joined-group snapshot.
115
+ */
116
+ export type JoinedGroupSnapshotSource = 'localPreview' | 'sync';
117
+ /**
118
+ * [zh-CN] 本地已加入群组快照元信息。
119
+ * [en-US] Metadata of the local snapshot of joined groups.
120
+ */
121
+ export interface JoinedGroupSnapshotMeta {
122
+ /** [zh-CN] 当前快照的完整性状态。 [en-US] The completeness state of the current snapshot. */
123
+ readonly integrity: JoinedGroupSnapshotIntegrity;
124
+ /** [zh-CN] 当前结果是否受到服务端返回上限的影响。 [en-US] Whether the current result is affected by the server-side return limit. */
125
+ readonly limited: boolean;
126
+ /** [zh-CN] 本地预览数据的存储上限。 [en-US] The storage limit of the local preview data. */
127
+ readonly storageLimit: number;
128
+ /** [zh-CN] 服务端单次同步返回的数量上限。 [en-US] The maximum number of items returned in a single server synchronization. */
129
+ readonly serverLimit: number;
130
+ /** [zh-CN] 当前快照的来源。 [en-US] The source of the current snapshot. */
131
+ readonly source: JoinedGroupSnapshotSource;
132
+ /** [zh-CN] 服务端最后一批同步数据返回完成的时间。 [en-US] The time when the final batch of synchronized data from the server finished returning. */
133
+ readonly lastSyncFinishedTs?: number;
134
+ /** [zh-CN] 最近一次成功完成同步的本地时间。 [en-US] The local time when the most recent successful synchronization completed. */
135
+ readonly lastSuccessfulAt?: number;
136
+ /** [zh-CN] 当前快照状态的原因说明。 [en-US] The reason that explains the current snapshot state. */
137
+ readonly reason?: string;
138
+ }
139
+ /**
140
+ * [zh-CN] 本地已加入群组快照。
141
+ * [en-US] The local snapshot of joined groups.
142
+ */
143
+ export interface JoinedGroupSnapshot {
144
+ /** [zh-CN] 群组轻量摘要列表。 [en-US] The list of lightweight group summaries. */
145
+ readonly items: ReadonlyArray<JoinedGroupSummary>;
146
+ /** [zh-CN] 快照元信息。 [en-US] The snapshot metadata. */
147
+ readonly meta: JoinedGroupSnapshotMeta;
148
+ }
149
+ /**
150
+ * [zh-CN] 更新群组信息时的输入参数。
151
+ * [en-US] Input parameters for updating group information.
152
+ */
153
+ export interface GroupUpdateInfoInput {
154
+ /** [zh-CN] 更新后的群组名称。 [en-US] The updated group name. */
155
+ readonly name?: string;
156
+ /** [zh-CN] 更新后的群组描述。 [en-US] The updated group description. */
157
+ readonly description?: string;
158
+ /** [zh-CN] 更新后的群头像地址或标识。 [en-US] The updated group avatar URL or identifier. */
159
+ readonly avatar?: string;
160
+ /** [zh-CN] 更新后的群组扩展信息。 [en-US] The updated group extension information. */
161
+ readonly ext?: string;
162
+ }
163
+ /**
164
+ * [zh-CN] 更新群组配置时的输入参数。
165
+ * [en-US] Input parameters for updating group configurations.
166
+ */
167
+ export interface GroupUpdateConfigsInput {
168
+ /** [zh-CN] 群组是否为公开群。 [en-US] Whether the group is public. */
169
+ readonly public?: boolean;
170
+ /** [zh-CN] 用户加入群组时是否需要管理员审批。 [en-US] Whether admin approval is required when a user joins a group. */
171
+ readonly joinApprovalRequired?: boolean;
172
+ /** [zh-CN] 是否允许普通成员邀请其他用户加入群组。 [en-US] Whether regular members can invite other users to join the group. */
173
+ readonly allowInvites?: boolean;
174
+ /** [zh-CN] 受邀用户加入群组前是否需要确认邀请。 [en-US] Whether invited users must confirm the invitation before joining the group. */
175
+ readonly inviteNeedConfirm?: boolean;
176
+ /** [zh-CN] 群组最大成员数。 [en-US] The maximum number of members allowed in the group. */
177
+ readonly maxMembers?: number;
178
+ }
179
+ /**
180
+ * [zh-CN] 变更群主时的输入参数。
181
+ * [en-US] Input parameters for changing the group owner.
182
+ */
183
+ export interface GroupOwnerChangeInput {
184
+ /** [zh-CN] 新群主的用户 ID。 [en-US] The user ID of the new group owner. */
185
+ readonly newOwner: string;
186
+ }
187
+ /**
188
+ * [zh-CN] 群组成员条目。
189
+ * [en-US] Information about a group member.
190
+ */
191
+ export interface GroupMemberEntry {
192
+ /** [zh-CN] 成员的用户资料。 [en-US] The profile of the member. */
193
+ readonly user: GroupUserInfo;
194
+ /** [zh-CN] 成员在群组中的角色。 [en-US] The member's role in the group. */
195
+ readonly role?: GroupRole;
196
+ /** [zh-CN] 成员加入群组的时间戳。 [en-US] The timestamp when the member joined the group. */
197
+ readonly joinedAt?: number;
198
+ }
199
+ /**
200
+ * [zh-CN] 群成员分页列表结果。
201
+ * [en-US] Paginated result for group members.
202
+ */
203
+ export interface GroupMemberListResult {
204
+ /** [zh-CN] 当前页的成员列表。 [en-US] The member list on the current page. */
205
+ readonly items: ReadonlyArray<GroupMemberEntry>;
206
+ /** [zh-CN] 当前页码,从 1 开始。 [en-US] The current page number, starting from 1. */
207
+ readonly pageNum?: number;
208
+ /** [zh-CN] 当前页返回的成员数量。 [en-US] The number of members returned on the current page. */
209
+ readonly pageSize?: number;
210
+ /** [zh-CN] 下一页的分页游标。如果当前页为最后一页,返回结果中的 `cursor` 为空字符串。 [en-US] Cursor for the the next data retrieval. If the current page is the last page, the `cursor` in the result is an empty string.*/
211
+ readonly cursor?: string;
212
+ /** [zh-CN] 是否还有下一页数据。 [en-US] Whether there is data on the next page. */
213
+ readonly hasMore?: boolean;
214
+ }
215
+ /**
216
+ * [zh-CN] 群组禁言列表条目。
217
+ * [en-US] Entry in the group mute list.
218
+ */
219
+ export interface GroupMuteEntry {
220
+ /** [zh-CN] 被禁言成员的用户资料。 [en-US] The profile of the muted member. */
221
+ readonly user: GroupUserInfo;
222
+ /** [zh-CN] 禁言到期时间戳。 [en-US] The timestamp when the mute expires. */
223
+ readonly muteExpire?: number;
224
+ /** [zh-CN] 禁言时长,单位为毫秒。 [en-US] The mute duration, in milliseconds. */
225
+ readonly muteDuration?: number;
226
+ }
227
+ /**
228
+ * [zh-CN] 群组白名单条目。
229
+ * [en-US] Entry in the group allow list.
230
+ */
231
+ export interface GroupAllowlistEntry {
232
+ /** [zh-CN] 白名单成员的用户资料。 [en-US] The profile of the user in the allow list. */
233
+ readonly user: GroupUserInfo;
234
+ }
235
+ /**
236
+ * [zh-CN] 群组黑名单条目。
237
+ * [en-US] Entry in the group block list.
238
+ */
239
+ export interface GroupBlocklistEntry {
240
+ /** [zh-CN] 黑名单成员的用户资料。 [en-US] The profile of the user in the block list. */
241
+ readonly user: GroupUserInfo;
242
+ }
243
+ /**
244
+ * [zh-CN] 群公告信息。
245
+ * [en-US] The group announcement.
246
+ */
247
+ export interface GroupAnnouncement {
248
+ /** [zh-CN] 群公告内容。 [en-US] The content of the group announcement. */
249
+ readonly announcement: string;
250
+ }
251
+ /**
252
+ * [zh-CN] 群组共享文件条目。
253
+ * [en-US] Information about a shared file in the group.
254
+ */
255
+ export interface GroupSharedFile {
256
+ /** [zh-CN] 共享文件 ID。 [en-US] The shared file ID. */
257
+ readonly fileId: string;
258
+ /** [zh-CN] 文件名称。 [en-US] The file name. */
259
+ readonly fileName: string;
260
+ /** [zh-CN] 上传该文件的用户资料。 [en-US] The profile of the user who uploaded the file. */
261
+ readonly fileOwner?: GroupUserInfo;
262
+ /** [zh-CN] 文件大小,单位为字节。 [en-US] The file size, in bytes. */
263
+ readonly fileSize?: number;
264
+ /** [zh-CN] 文件创建时间戳。 [en-US] The timestamp when the file was created. */
265
+ readonly createdAt?: number;
266
+ }
267
+ /**
268
+ * [zh-CN] 群组共享文件分页列表结果。
269
+ * [en-US] Paginated result for shared files in a group.
270
+ */
271
+ export interface GroupSharedFileListResult {
272
+ /** [zh-CN] 当前页的共享文件列表。 [en-US] The shared file list on the current page. */
273
+ readonly items: ReadonlyArray<GroupSharedFile>;
274
+ /** [zh-CN] 当前页码,从 1 开始。 [en-US] The current page number, starting from 1. */
275
+ readonly pageNum?: number;
276
+ /** [zh-CN] 当前页返回的文件数量。 [en-US] The number of files returned on the current page. */
277
+ readonly pageSize?: number;
278
+ /** [zh-CN] 下一页的分页游标。如果当前页为最后一页,返回结果中的 `cursor` 为空字符串。 [en-US] Cursor for the the next data retrieval. If the current page is the last page, the `cursor` in the result is an empty string.*/
279
+ readonly cursor?: string;
280
+ /** [zh-CN] 是否还有下一页数据。 [en-US] Whether there is more data on the next page. */
281
+ readonly hasMore?: boolean;
282
+ }
283
+ /**
284
+ * [zh-CN] 基于游标的分页参数。
285
+ * [en-US] Pagination parameters based on a cursor.
286
+ */
287
+ export interface CursorPageParams {
288
+ /** [zh-CN] 每页返回的数据条数。如果当前页为最后一页,实际返回的数据条数可能小于该值。 [en-US] The number of items returned per page. If the current page is the last page, the actual number of returned items may be smaller than this value. */
289
+ readonly pageSize?: number;
290
+ /** [zh-CN] 开始获取数据的游标位置。首次调用时传空字符串或 `null`;后续调用时传入上一次返回的 `cursor` 作为下一次获取数据的起始位置。如果当前页为最后一页,返回结果中的 `cursor` 为空字符串。 [en-US] The position from which to start retrieving data. For the first call, pass an empty string or `null`. In subsequent calls, you can pass the latest `cursor` as the starting position for the next data retrieval. If the current page is the last page, the `cursor` in the result is an empty string. */
291
+ readonly cursor?: string;
292
+ }
293
+ /**
294
+ * [zh-CN] 基于页码的分页参数。
295
+ * [en-US] Pagination parameters based on page numbers.
296
+ */
297
+ export interface NumberPageParams {
298
+ /** [zh-CN] 当前页码,从 1 开始。 [en-US] The current page number, starting from 1. */
299
+ readonly pageNum?: number;
300
+ /** [zh-CN] 每页返回的数据条数。 [en-US] The number of items returned per page. */
301
+ readonly pageSize?: number;
302
+ }
303
+ /**
304
+ * [zh-CN] 批量用户操作的输入参数。
305
+ * [en-US] Input parameters for batch operations on users.
306
+ */
307
+ export interface GroupUserBatchInput {
308
+ /** [zh-CN] 待操作的用户 ID 列表。 [en-US] The list of user IDs to operate on. */
309
+ readonly userIds: ReadonlyArray<string>;
310
+ }
311
+ /**
312
+ * [zh-CN] 查询群成员列表的分页参数。
313
+ * [en-US] Pagination parameters for querying group members.
314
+ */
315
+ export type GroupMemberListQuery = CursorPageParams;
316
+ /**
317
+ * [zh-CN] 查询群禁言列表的分页参数。
318
+ * [en-US] Pagination parameters for querying muted group members.
319
+ */
320
+ export type GroupMuteListQuery = NumberPageParams;
321
+ export type GroupMuteListParams = GroupMutationTarget & NumberPageParams;
322
+ export type GroupBlocklistParams = GroupMutationTarget & NumberPageParams;
323
+ /**
324
+ * [zh-CN] 批量禁言成员时的输入参数。
325
+ * [en-US] Input parameters for muting members in batches.
326
+ */
327
+ export interface GroupMuteMembersInput {
328
+ /** [zh-CN] 待加入禁言列表的成员用户 ID 列表。 [en-US] The list of member user IDs to add to the mute list. */
329
+ readonly userIds: ReadonlyArray<string>;
330
+ /** [zh-CN] 禁言时长,单位为毫秒。 [en-US] The mute duration, in milliseconds. */
331
+ readonly muteDuration: number;
332
+ }
333
+ /**
334
+ * [zh-CN] 更新群公告时的输入参数。
335
+ * [en-US] Input parameters for updating the group announcement.
336
+ */
337
+ export interface GroupAnnouncementUpdateInput {
338
+ /** [zh-CN] 更新后的群公告内容。 [en-US] The updated group announcement content. */
339
+ readonly announcement: string;
340
+ }
341
+ /**
342
+ * [zh-CN] 查询群共享文件列表的分页参数。
343
+ * [en-US] Pagination parameters for querying group shared files.
344
+ */
345
+ export type GroupSharedFileListQuery = NumberPageParams;
346
+ /**
347
+ * [zh-CN] 获取当前用户已加入群组列表时的查询参数。
348
+ * [en-US] Query parameters for retrieving the list of groups joined by the current user.
349
+ */
350
+ export interface GetJoinedGroupListParams extends NumberPageParams {
351
+ /** [zh-CN] 是否返回群组成员数量。 [en-US] Whether to return the member count of each group. */
352
+ readonly needMemberCount?: boolean;
353
+ /** [zh-CN] 是否返回当前用户在群组中的角色。 [en-US] Whether to return the current user's role in each group. */
354
+ readonly needRole?: boolean;
355
+ }
356
+ /**
357
+ * [zh-CN] 查询单个群组详情时的参数。
358
+ * [en-US] Parameters for querying details of a single group.
359
+ */
360
+ export interface GetGroupInfoParams {
361
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
362
+ readonly groupId: string;
363
+ }
364
+ /**
365
+ * [zh-CN] 批量查询群组详情时的参数。
366
+ * [en-US] Parameters for querying details of multiple groups.
367
+ */
368
+ export interface GetGroupInfoListParams {
369
+ /** [zh-CN] 待查询的群组 ID 列表。 [en-US] The list of group IDs to query. */
370
+ readonly groupIds: ReadonlyArray<string>;
371
+ }
372
+ /**
373
+ * [zh-CN] 创建群组时的参数。
374
+ * [en-US] Parameters for creating a group.
375
+ */
376
+ export interface CreateGroupParams {
377
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
378
+ readonly name: string;
379
+ /** [zh-CN] 群组描述。 [en-US] The group description. */
380
+ readonly description: string;
381
+ /** [zh-CN] 初始成员用户 ID 列表。 [en-US] The list of user IDs of initial members. */
382
+ readonly memberIds?: ReadonlyArray<string>;
383
+ /** [zh-CN] 群组是否为公开群。 [en-US] Whether the group is public. */
384
+ readonly public: boolean;
385
+ /** [zh-CN] 用户加入群组时是否需要管理员审批。 [en-US] Whether admin approval is required when a user joins a group.*/
386
+ readonly joinApprovalRequired: boolean;
387
+ /** [zh-CN] 是否允许普通成员邀请其他用户加入群组。 [en-US] Whether regular members can invite other users to join the group. */
388
+ readonly allowInvites: boolean;
389
+ /** [zh-CN] 受邀用户加入群组前是否需要确认邀请。 [en-US] Whether invited users must confirm the invitation before joining the group. */
390
+ readonly inviteNeedConfirm: boolean;
391
+ /** [zh-CN] 群组最大成员数。 [en-US] The maximum number of members allowed in the group. */
392
+ readonly maxMembers?: number;
393
+ /** [zh-CN] 群组扩展信息。 [en-US] The group extension information. */
394
+ readonly ext?: string;
395
+ /** [zh-CN] 群头像地址或标识。 [en-US] The group avatar URL or identifier. */
396
+ readonly avatar?: string;
397
+ }
398
+ /**
399
+ * [zh-CN] 创建群组后的返回结果。
400
+ * [en-US] Result returned after a group is created.
401
+ */
402
+ export interface CreateGroupResult {
403
+ /** [zh-CN] 创建成功后的群组 ID。 [en-US] The group ID returned after the group is created successfully. */
404
+ readonly groupId: string;
405
+ }
406
+ /**
407
+ * [zh-CN] 更新群组信息时的参数。
408
+ * [en-US] Parameters for updating group information.
409
+ */
410
+ export interface UpdateGroupInfoParams {
411
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
412
+ readonly groupId: string;
413
+ /** [zh-CN] 更新后的群组名称。 [en-US] The updated group name. */
414
+ readonly name?: string;
415
+ /** [zh-CN] 更新后的群组描述。 [en-US] The updated group description. */
416
+ readonly description?: string;
417
+ /** [zh-CN] 更新后的群头像地址或标识。 [en-US] The updated group avatar URL or identifier. */
418
+ readonly avatar?: string;
419
+ /** [zh-CN] 群组是否为公开群。 [en-US] Whether the group is public. */
420
+ readonly public?: boolean;
421
+ /** [zh-CN] 用户加入群组时是否需要管理员审批。 [en-US] Whether admin approval is required when a user joins a group. */
422
+ readonly joinApprovalRequired?: boolean;
423
+ /** [zh-CN] 是否允许普通成员邀请其他用户加入群组。 [en-US] Whether regular members can invite other users to join the group. */
424
+ readonly allowInvites?: boolean;
425
+ /** [zh-CN] 受邀用户加入群组前是否需要确认邀请。 [en-US] Whether invited users must confirm the invitation before joining the group. */
426
+ readonly inviteNeedConfirm?: boolean;
427
+ /** [zh-CN] 群组最大成员数。 [en-US] The maximum number of members allowed in the group. */
428
+ readonly maxMembers?: number;
429
+ /** [zh-CN] 群组扩展信息。 [en-US] The updated group extension information. */
430
+ readonly ext?: string;
431
+ }
432
+ /**
433
+ * [zh-CN] 群组操作的目标参数,仅包含群组 ID。
434
+ * [en-US] Target parameters for a group operation. Contains only the group ID.
435
+ */
436
+ export interface GroupMutationTarget {
437
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
438
+ readonly groupId: string;
439
+ }
440
+ /**
441
+ * [zh-CN] 包含群组 ID 的批量用户操作参数。
442
+ * [en-US] Batch user operation parameters that include the group ID.
443
+ */
444
+ export interface GroupUserBatchParams extends GroupMutationTarget {
445
+ /** [zh-CN] 待操作的用户 ID 列表。 [en-US] The list of user IDs to operate on. */
446
+ readonly userIds: ReadonlyArray<string>;
447
+ }
448
+ /**
449
+ * [zh-CN] 群组管理员相关操作的参数。
450
+ * [en-US] Parameters for operations related to group admins.
451
+ */
452
+ export interface GroupAdminMutationParams extends GroupMutationTarget {
453
+ /** [zh-CN] 管理员用户 ID。 [en-US] The user ID of the admin. */
454
+ readonly userId: string;
455
+ }
456
+ /**
457
+ * [zh-CN] 变更群主时的参数。
458
+ * [en-US] Parameters for changing the group owner.
459
+ */
460
+ export interface GroupOwnerChangeParams extends GroupMutationTarget {
461
+ /** [zh-CN] 新群主的用户 ID。 [en-US] The user ID of the new group owner. */
462
+ readonly newOwner: string;
463
+ }
464
+ /**
465
+ * [zh-CN] 申请加入群组时的参数。
466
+ * [en-US] Parameters for applying to join a group.
467
+ */
468
+ export interface GroupJoinParams extends GroupMutationTarget {
469
+ /** [zh-CN] 入群申请附言。 [en-US] The message attached to the join request. */
470
+ readonly message?: string;
471
+ }
472
+ /**
473
+ * [zh-CN] 同意入群申请时的参数。
474
+ * [en-US] Parameters for approving a request to join a group.
475
+ */
476
+ export interface AcceptGroupJoinRequestParams extends GroupMutationTarget {
477
+ /** [zh-CN] 申请加入群组的用户 ID。 [en-US] The user ID of the applicant who requested to join the group. */
478
+ readonly userId: string;
479
+ }
480
+ /**
481
+ * [zh-CN] 拒绝入群申请时的参数。
482
+ * [en-US] Parameters for rejecting a request to join a group.
483
+ */
484
+ export interface RejectGroupJoinRequestParams extends GroupMutationTarget {
485
+ /** [zh-CN] 申请加入群组的用户 ID。 [en-US] The user ID of the applicant who requested to join the group. */
486
+ readonly userId: string;
487
+ /** [zh-CN] 拒绝入群申请的原因。 [en-US] The reason for declining the join request. */
488
+ readonly reason: string;
489
+ }
490
+ /**
491
+ * [zh-CN] 批量禁言成员时的参数。
492
+ * [en-US] Parameters for muting members in batches.
493
+ */
494
+ export interface GroupMuteMembersParams extends GroupMutationTarget {
495
+ /** [zh-CN] 待加入禁言列表的成员用户 ID 列表。 [en-US] The list of user IDs of members to add to the mute list. */
496
+ readonly userIds: ReadonlyArray<string>;
497
+ /** [zh-CN] 禁言时长,单位为毫秒。 [en-US] The mute duration, in milliseconds. */
498
+ readonly muteDuration: number;
499
+ }
500
+ /**
501
+ * [zh-CN] 查询指定群成员列表的参数。
502
+ * [en-US] Parameters for querying members of a specified group.
503
+ */
504
+ export type GroupMemberListParams = GroupMutationTarget & CursorPageParams;
505
+ /**
506
+ * [zh-CN] 更新群公告时的参数。
507
+ * [en-US] Parameters for updating the group announcement.
508
+ */
509
+ export interface GroupAnnouncementUpdateParams extends GroupMutationTarget {
510
+ /** [zh-CN] 更新后的群公告内容。 [en-US] The updated group announcement content. */
511
+ readonly announcement: string;
512
+ }
513
+ /**
514
+ * [zh-CN] 查询指定群共享文件列表的参数。
515
+ * [en-US] Parameters for querying shared files of a specified group.
516
+ */
517
+ export type GroupSharedFileListParams = GroupMutationTarget & NumberPageParams;
518
+ /**
519
+ * [zh-CN] 上传群组共享文件时的回调集合。
520
+ * [en-US] Callback events used when uploading a shared file to a group.
521
+ */
522
+ export interface UploadGroupSharedFileCallbacks {
523
+ /** [zh-CN] 文件上传进度回调。 [en-US] Triggered when the file upload progress changes. */
524
+ readonly onFileUploadProgress?: (event: FileUploadProgress) => void;
525
+ /** [zh-CN] 文件上传完成回调。 [en-US] Triggered when the file upload completes. */
526
+ readonly onFileUploadComplete?: (payload: unknown) => void;
527
+ /** [zh-CN] 文件上传失败回调。 [en-US] Triggered when the file upload fails. */
528
+ readonly onFileUploadError?: (payload: unknown) => void;
529
+ /** [zh-CN] 文件上传取消回调。 [en-US] Triggered when the file upload is canceled. */
530
+ readonly onFileUploadCanceled?: () => void;
531
+ }
532
+ /**
533
+ * [zh-CN] 上传群组共享文件时的参数。
534
+ * [en-US] Parameters for uploading a shared file to a group.
535
+ */
536
+ export interface UploadGroupSharedFileParams extends GroupMutationTarget, UploadGroupSharedFileCallbacks {
537
+ /** [zh-CN] 待上传的文件对象。 [en-US] The file object to upload. */
538
+ readonly file: CompatibleFile | Blob | Record<string, unknown>;
539
+ }
540
+ /**
541
+ * [zh-CN] 上传群组共享文件时的输入参数。
542
+ * [en-US] Input parameters for uploading a shared file to a group.
543
+ */
544
+ export interface GroupUploadSharedFileInput extends UploadGroupSharedFileCallbacks {
545
+ /** [zh-CN] 待上传的文件对象。 [en-US] The file object to upload. */
546
+ readonly file: CompatibleFile | Blob | Record<string, unknown>;
547
+ }
548
+ /**
549
+ * [zh-CN] 删除群组共享文件时的参数。
550
+ * [en-US] Parameters for deleting a shared file from a group.
551
+ */
552
+ export interface DeleteGroupSharedFileParams extends GroupMutationTarget {
553
+ /** [zh-CN] 待删除的共享文件 ID。 [en-US] The ID of the shared file to delete. */
554
+ readonly fileId: string;
555
+ }
556
+ /**
557
+ * [zh-CN] 删除群组共享文件时的输入参数。
558
+ * [en-US] Input parameters for deleting a shared file from a group.
559
+ */
560
+ export interface GroupDeleteSharedFileInput {
561
+ /** [zh-CN] 待删除的共享文件 ID。 [en-US] The ID of the shared file to delete. */
562
+ readonly fileId: string;
563
+ }
564
+ /**
565
+ * [zh-CN] 下载群组共享文件时的回调集合。
566
+ * [en-US] Callback events used when downloading a shared file from a group.
567
+ */
568
+ export interface DownloadGroupSharedFileCallbacks {
569
+ /** [zh-CN] 文件下载完成回调;支持 Blob 的运行时返回 Blob,否则返回 ArrayBuffer。 [en-US] Triggered when the file download completes; returns a Blob when supported, otherwise an ArrayBuffer. */
570
+ readonly onFileDownloadComplete?: (data: Blob | ArrayBuffer) => void;
571
+ /** [zh-CN] 文件下载失败回调。 [en-US] Triggered when the file download fails. */
572
+ readonly onFileDownloadError?: (error: unknown) => void;
573
+ }
574
+ /**
575
+ * [zh-CN] 下载群组共享文件时的参数。
576
+ * [en-US] Parameters for downloading a shared file from a group.
577
+ */
578
+ export interface DownloadGroupSharedFileParams extends GroupMutationTarget, DownloadGroupSharedFileCallbacks {
579
+ /** [zh-CN] 待下载的共享文件 ID。 [en-US] The ID of the shared file to download. */
580
+ readonly fileId: string;
581
+ /** [zh-CN] 文件下载密钥。 [en-US] The file download secret. */
582
+ readonly secret?: string;
583
+ }
584
+ /**
585
+ * [zh-CN] 下载群组共享文件时的输入参数。
586
+ * [en-US] Parameters for downloading a shared file from a group.
587
+ */
588
+ export interface GroupDownloadSharedFileInput extends DownloadGroupSharedFileCallbacks {
589
+ /** [zh-CN] 待下载的共享文件 ID。 [en-US] The ID of the shared file to download. */
590
+ readonly fileId: string;
591
+ /** [zh-CN] 文件下载密钥。 [en-US] The file download secret. */
592
+ readonly secret?: string;
593
+ }
594
+ /**
595
+ * [zh-CN] 设置群成员属性时的参数。
596
+ * [en-US] Parameters for setting group member attributes.
597
+ */
598
+ export interface SetGroupMemberAttributesParams extends GroupMutationTarget {
599
+ /** [zh-CN] 成员用户 ID。 [en-US] The member user ID. */
600
+ readonly userId: string;
601
+ /** [zh-CN] 待设置的成员属性键值对。键和值均为字符串。 [en-US] The key-value pairs of member attributes to set. Both keys and values are strings. */
602
+ readonly memberAttributes: Readonly<Record<string, string>>;
603
+ }
604
+ /**
605
+ * [zh-CN] 设置群成员属性时的输入参数。
606
+ * [en-US] Input parameters for setting group member attributes.
607
+ */
608
+ export interface GroupSetMemberAttributesInput {
609
+ /** [zh-CN] 成员用户 ID。 [en-US] The member user ID. */
610
+ readonly userId: string;
611
+ /** [zh-CN] 待设置的成员属性键值对。键和值均为字符串。 [en-US] The key-value pairs of member attributes to set. Both keys and values are strings. */
612
+ readonly memberAttributes: Readonly<Record<string, string>>;
613
+ }
614
+ /**
615
+ * [zh-CN] 查询群成员属性时的参数。
616
+ * [en-US] Parameters for querying group member attributes.
617
+ */
618
+ export interface GetGroupMembersAttributesParams extends GroupMutationTarget {
619
+ /** [zh-CN] 待查询的成员用户 ID 列表。 [en-US] The list of member user IDs to query. */
620
+ readonly userIds: ReadonlyArray<string>;
621
+ /** [zh-CN] 待查询的属性 key 列表。不传时返回全部属性。 [en-US] The list of attribute keys to query. If omitted, all attributes are returned. */
622
+ readonly keys?: ReadonlyArray<string>;
623
+ }
624
+ /**
625
+ * [zh-CN] 查询群成员属性时的输入参数。
626
+ * [en-US] Input parameters for querying group member attributes.
627
+ */
628
+ export interface GroupGetMembersAttributesInput {
629
+ /** [zh-CN] 待查询的成员用户 ID 列表。 [en-US] The list of member user IDs to query. */
630
+ readonly userIds: ReadonlyArray<string>;
631
+ /** [zh-CN] 待查询的属性 key 列表。不传时返回全部属性。 [en-US] The list of attribute keys to query. If omitted, all attributes are returned. */
632
+ readonly keys?: ReadonlyArray<string>;
633
+ }
634
+ /**
635
+ * [zh-CN] 群成员属性查询结果。
636
+ * [en-US] Result of querying group member attributes.
637
+ */
638
+ export interface GroupMembersAttributesResult {
639
+ /** [zh-CN] 按成员用户 ID 映射的成员属性集合。 [en-US] The member attribute collections mapped by member user ID. */
640
+ readonly items: Readonly<Record<string, Readonly<Record<string, string>>>>;
641
+ }
642
+ /**
643
+ * [zh-CN] 收到群组邀请事件的载荷。
644
+ * [en-US] Payload of the group invitation receipt event.
645
+ */
646
+ export interface GroupInvitationReceivedEventPayload {
647
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
648
+ readonly groupId: string;
649
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
650
+ readonly groupName?: string;
651
+ /** [zh-CN] 发出该邀请的用户资料。 [en-US] The profile of the user who sent the invitation. */
652
+ readonly inviter?: UserInfo;
653
+ /** [zh-CN] 邀请附言。 [en-US] The message attached to the invitation. */
654
+ readonly reason?: string;
655
+ }
656
+ /**
657
+ * [zh-CN] 收到入群申请事件的载荷。
658
+ * [en-US] Payload of the group join request receipt event.
659
+ */
660
+ export interface GroupRequestToJoinReceivedEventPayload {
661
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
662
+ readonly groupId: string;
663
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
664
+ readonly groupName?: string;
665
+ /** [zh-CN] 发起入群申请的用户资料。 [en-US] The profile of the user who requested to join the group. */
666
+ readonly applicant?: UserInfo;
667
+ /** [zh-CN] 入群申请附言。 [en-US] The message attached to the join request. */
668
+ readonly reason?: string;
669
+ }
670
+ /**
671
+ * [zh-CN] 入群申请被同意事件的载荷。
672
+ * [en-US] Payload of the event indicating that a group join request is accepted.
673
+ */
674
+ export interface GroupRequestToJoinAcceptedEventPayload {
675
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
676
+ readonly groupId: string;
677
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
678
+ readonly groupName?: string;
679
+ /** [zh-CN] 同意该入群申请的用户资料。 [en-US] The profile of the user who accepted the join request. */
680
+ readonly accepter?: UserInfo;
681
+ }
682
+ /**
683
+ * [zh-CN] 入群申请被拒绝事件的载荷。
684
+ * [en-US] Payload of the event indicating that a group join request is declined.
685
+ */
686
+ export interface GroupRequestToJoinDeclinedEventPayload {
687
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
688
+ readonly groupId: string;
689
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
690
+ readonly groupName?: string;
691
+ /** [zh-CN] 拒绝该入群申请的用户资料。 [en-US] The profile of the user who declined the join request. */
692
+ readonly decliner?: UserInfo;
693
+ /** [zh-CN] 拒绝入群申请的原因。 [en-US] The reason for declining the join request. */
694
+ readonly reason?: string;
695
+ /** [zh-CN] 发起该入群申请的用户资料。 [en-US] The profile of the user who requested to join the group. */
696
+ readonly applicant?: UserInfo;
697
+ }
698
+ /**
699
+ * [zh-CN] 群组邀请被接受事件的载荷。
700
+ * [en-US] Payload of the event indicating that a group invitation is accepted.
701
+ */
702
+ export interface GroupInvitationAcceptedEventPayload {
703
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
704
+ readonly groupId: string;
705
+ /** [zh-CN] 接受邀请的用户资料。 [en-US] The profile of the user who accepted the invitation. */
706
+ readonly invitee?: UserInfo;
707
+ /** [zh-CN] 接受邀请时附带的说明。 [en-US] The note provided when the invitation was accepted. */
708
+ readonly reason?: string;
709
+ }
710
+ /**
711
+ * [zh-CN] 群组邀请被拒绝事件的载荷。
712
+ * [en-US] Payload of the event indicating that a group invitation is declined.
713
+ */
714
+ export interface GroupInvitationDeclinedEventPayload {
715
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
716
+ readonly groupId: string;
717
+ /** [zh-CN] 拒绝邀请的用户资料。 [en-US] The profile of the user who declined the invitation. */
718
+ readonly invitee?: UserInfo;
719
+ /** [zh-CN] 拒绝邀请的原因。 [en-US] The reason for declining the invitation. */
720
+ readonly reason?: string;
721
+ }
722
+ /**
723
+ * [zh-CN] 当前用户被移出群组事件的载荷。
724
+ * [en-US] Payload of the event indicating that the current user is removed from the group.
725
+ */
726
+ export interface GroupUserRemovedEventPayload {
727
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
728
+ readonly groupId: string;
729
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
730
+ readonly groupName?: string;
731
+ }
732
+ /**
733
+ * [zh-CN] 群组被解散事件的载荷。
734
+ * [en-US] Payload of the event indicating that the group is disbanded.
735
+ */
736
+ export interface GroupDestroyedEventPayload {
737
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
738
+ readonly groupId: string;
739
+ /** [zh-CN] 群组名称。 [en-US] The group name. */
740
+ readonly groupName?: string;
741
+ }
742
+ /**
743
+ * [zh-CN] 群组邀请被自动接受事件的载荷。
744
+ * [en-US] Payload of the event indicating that a group invitation is accepted automatically.
745
+ */
746
+ export interface GroupAutoAcceptInvitationEventPayload {
747
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
748
+ readonly groupId: string;
749
+ /** [zh-CN] 发出邀请的用户资料。 [en-US] The profile of the user who sent the invitation. */
750
+ readonly inviter?: UserInfo;
751
+ /** [zh-CN] 自动接受邀请时附带的邀请附言。 [en-US] The invitation message attached when the invitation is accepted automatically. */
752
+ readonly inviteMessage?: string;
753
+ }
754
+ /**
755
+ * [zh-CN] 群组禁言列表新增事件的载荷。
756
+ * [en-US] Payload of the event indicating that users is added to the group mute list.
757
+ */
758
+ export interface GroupMuteListAddedEventPayload {
759
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
760
+ readonly groupId: string;
761
+ /** [zh-CN] 被加入禁言列表的用户资料列表。 [en-US] The list of profiles for users added to the mute list. */
762
+ readonly mutes: ReadonlyArray<UserInfo>;
763
+ /** [zh-CN] 本次新增禁言的到期时间戳。 [en-US] The expiration timestamp of the newly added mute for this event. */
764
+ readonly muteExpire?: number;
765
+ }
766
+ /**
767
+ * [zh-CN] 群组禁言列表移除事件的载荷。
768
+ * [en-US] Payload of the event indicating that users are removed from the group mute list.
769
+ */
770
+ export interface GroupMuteListRemovedEventPayload {
771
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
772
+ readonly groupId: string;
773
+ /** [zh-CN] 被移出禁言列表的用户资料列表。 [en-US] The list of profiles for users removed from the mute list. */
774
+ readonly mutes: ReadonlyArray<UserInfo>;
775
+ }
776
+ /**
777
+ * [zh-CN] 群组白名单新增事件的载荷。
778
+ * [en-US] Payload of the event indicating that users are added to the group allow list.
779
+ */
780
+ export interface GroupAllowListAddedEventPayload {
781
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
782
+ readonly groupId: string;
783
+ /** [zh-CN] 被加入白名单的用户资料列表。 [en-US] The list of profiles for users added to the allow list. */
784
+ readonly allowlist: ReadonlyArray<UserInfo>;
785
+ }
786
+ /**
787
+ * [zh-CN] 群组白名单移除事件的载荷。
788
+ * [en-US] Payload of the event indicating that users are removed from the group allow list.
789
+ */
790
+ export interface GroupAllowListRemovedEventPayload {
791
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
792
+ readonly groupId: string;
793
+ /** [zh-CN] 被移出白名单的用户资料列表。 [en-US] The list of profiles for users removed from the allow list. */
794
+ readonly allowlist: ReadonlyArray<UserInfo>;
795
+ }
796
+ /**
797
+ * [zh-CN] 群组全员禁言状态变更事件的载荷。
798
+ * [en-US] Payload of the event indicating that the all-member mute state of a group is changed.
799
+ */
800
+ export interface GroupAllMemberMuteStateChangedEventPayload {
801
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
802
+ readonly groupId: string;
803
+ /** [zh-CN] 当前是否已开启全员禁言。 [en-US] Whether all members in the group are currently muted. */
804
+ readonly isMuted: boolean;
805
+ }
806
+ /**
807
+ * [zh-CN] 群组管理员新增事件的载荷。
808
+ * [en-US] Payload of the event indicating that a group admin is added.
809
+ */
810
+ export interface GroupAdminAddedEventPayload {
811
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
812
+ readonly groupId: string;
813
+ /** [zh-CN] 被设为管理员的用户资料。 [en-US] The profile of the user who was granted admin privileges. */
814
+ readonly administrator?: UserInfo;
815
+ }
816
+ /**
817
+ * [zh-CN] 群组管理员移除事件的载荷。
818
+ * [en-US] Payload of the event indicating that a group admin is removed.
819
+ */
820
+ export interface GroupAdminRemovedEventPayload {
821
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
822
+ readonly groupId: string;
823
+ /** [zh-CN] 被移除管理员权限的用户资料。 [en-US] The profile of the user whose admin privileges were removed. */
824
+ readonly administrator?: UserInfo;
825
+ }
826
+ /**
827
+ * [zh-CN] 群主变更事件的载荷。
828
+ * [en-US] Payload of the event indicating that the group owner is changed.
829
+ */
830
+ export interface GroupOwnerChangedEventPayload {
831
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
832
+ readonly groupId: string;
833
+ /** [zh-CN] 新群主的用户资料。 [en-US] The profile of the new group owner. */
834
+ readonly newOwner?: UserInfo;
835
+ /** [zh-CN] 原群主的用户资料。 [en-US] The profile of the former group owner. */
836
+ readonly oldOwner?: UserInfo;
837
+ }
838
+ /**
839
+ * [zh-CN] 群成员加入事件的载荷。
840
+ * [en-US] Payload of the event indicating that members have joined the group.
841
+ */
842
+ export interface GroupMembersJoinedEventPayload {
843
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
844
+ readonly groupId: string;
845
+ /** [zh-CN] 群组名称。群详情不可用且原始通知未携带名称时为 `undefined`。 [en-US] The group name. It is `undefined` when group details are unavailable and the raw notification does not include a name. */
846
+ readonly groupName?: string;
847
+ /** [zh-CN] 加入群组的成员用户资料列表。 [en-US] The list of profiles for members who joined the group. */
848
+ readonly members: ReadonlyArray<UserInfo>;
849
+ }
850
+ /**
851
+ * [zh-CN] 群成员退出事件的载荷。
852
+ * [en-US] Payload of the event indicating that members have left the group.
853
+ */
854
+ export interface GroupMembersExitedEventPayload {
855
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
856
+ readonly groupId: string;
857
+ /** [zh-CN] 退出群组的成员用户资料列表。 [en-US] The list of profiles for members who left the group. */
858
+ readonly members: ReadonlyArray<UserInfo>;
859
+ }
860
+ /**
861
+ * [zh-CN] 群公告变更事件的载荷。
862
+ * [en-US] Payload of the group announcement change event.
863
+ */
864
+ export interface GroupAnnouncementChangedEventPayload {
865
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
866
+ readonly groupId: string;
867
+ /** [zh-CN] 最新群公告内容。 [en-US] The latest group announcement content. */
868
+ readonly announcement: string;
869
+ }
870
+ /**
871
+ * [zh-CN] 群组共享文件新增事件的载荷。
872
+ * [en-US] Payload of the event indicating that a shared file is added to the group.
873
+ */
874
+ export interface GroupSharedFileAddedEventPayload {
875
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
876
+ readonly groupId: string;
877
+ /** [zh-CN] 新增的群组共享文件信息。 [en-US] The information about the newly added shared file. */
878
+ readonly sharedFile?: GroupSharedFile;
879
+ }
880
+ /**
881
+ * [zh-CN] 群组共享文件删除事件的载荷。
882
+ * [en-US] Payload of the event indicating that a shared file is deleted from the group.
883
+ */
884
+ export interface GroupSharedFileDeletedEventPayload {
885
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
886
+ readonly groupId: string;
887
+ /** [zh-CN] 被删除的共享文件 ID。 [en-US] The ID of the deleted shared file. */
888
+ readonly fileId: string;
889
+ }
890
+ /**
891
+ * [zh-CN] 群组信息变更事件的载荷。
892
+ * [en-US] Payload of the group information change event.
893
+ */
894
+ export interface GroupInfoChangedEventPayload {
895
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
896
+ readonly groupId: string;
897
+ /** [zh-CN] 变更后的最新群组详情。 [en-US] The latest group details after the change. */
898
+ readonly groupInfo: GroupDetail;
899
+ }
900
+ /**
901
+ * [zh-CN] 群组禁用状态变更事件的载荷。
902
+ * [en-US] Payload of the event indicating that the disabled state of a group has changed.
903
+ */
904
+ export interface GroupDisabledChangedEventPayload {
905
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
906
+ readonly groupId: string;
907
+ /** [zh-CN] 变更后的最新群组详情。 [en-US] The latest group details after the change. */
908
+ readonly groupInfo: GroupDetail;
909
+ /** [zh-CN] 群组当前是否已被禁用。 [en-US] Whether the group is currently disabled. */
910
+ readonly disabled: boolean;
911
+ }
912
+ /**
913
+ * [zh-CN] 群成员属性变更事件的载荷。
914
+ * [en-US] Payload of the group member attribute change event.
915
+ */
916
+ export interface GroupMemberAttributeChangedEventPayload {
917
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
918
+ readonly groupId: string;
919
+ /** [zh-CN] 成员属性发生变更的用户资料。 [en-US] The profile of the user whose member attributes have changed. */
920
+ readonly user?: UserInfo;
921
+ /** [zh-CN] 变更后的成员属性键值对。 [en-US] The updated key-value pairs of the member attributes. */
922
+ readonly attribute: Readonly<Record<string, string>>;
923
+ /** [zh-CN] 发起本次成员属性变更的用户 ID。 [en-US] The user ID of the member who updated the attributes. */
924
+ readonly from?: string;
925
+ /** [zh-CN] 变更来源。`direct` 表示直接操作,`multiDevice` 表示多设备同步。 [en-US] The source of the change. `direct` indicates a direct operation, and `multiDevice` indicates multi-device synchronization. */
926
+ readonly source?: 'direct' | 'multiDevice';
927
+ }
928
+ /**
929
+ * [zh-CN] 群成员名片更新事件的载荷。
930
+ * [en-US] Payload of the event indicating that a group member's name card is updated.
931
+ */
932
+ export interface GroupUserGroupNamecardUpdatedEventPayload {
933
+ /** [zh-CN] 群组 ID。 [en-US] The group ID. */
934
+ readonly groupId: string;
935
+ /** [zh-CN] 名片发生更新的用户 ID。 [en-US] The user ID of the member whose name card was updated. */
936
+ readonly userId: string;
937
+ /** [zh-CN] 更新后的群成员名片。 [en-US] The updated group member name card. */
938
+ readonly namecard: string;
939
+ }
940
+ /**
941
+ * [zh-CN] `GroupManager` 的事件监听器定义。
942
+ * [en-US] Event listener definitions for `GroupManager`.
943
+ */
944
+ export interface GroupManagerListener {
945
+ /** [zh-CN] 群成员名片更新回调。 [en-US] Triggered when a group member's name card is updated. */
946
+ readonly onUserGroupNamecardUpdated?: (groupId: string, userId: string, namecard: string) => void;
947
+ }
948
+ /** @internal 群事件原始通知载荷。 */
949
+ export interface GroupRawNotifyPayload {
950
+ readonly groupId: string;
951
+ readonly groupName?: string;
952
+ readonly reason?: string;
953
+ readonly inviterId?: string;
954
+ readonly applicantId?: string;
955
+ readonly accepterId?: string;
956
+ readonly declinerId?: string;
957
+ readonly inviteeId?: string;
958
+ readonly administratorId?: string;
959
+ readonly oldOwnerId?: string;
960
+ readonly newOwnerId?: string;
961
+ readonly memberIds?: ReadonlyArray<string>;
962
+ readonly userId?: string;
963
+ readonly userIds?: ReadonlyArray<string>;
964
+ readonly announcement?: string;
965
+ readonly sharedFile?: GroupSharedFile;
966
+ readonly fileId?: string;
967
+ readonly muteExpire?: number;
968
+ readonly isMuted?: boolean;
969
+ readonly attribute?: Readonly<Record<string, string>>;
970
+ readonly from?: string;
971
+ readonly source?: 'direct' | 'multiDevice';
972
+ readonly shouldFetchGroupDetail?: boolean;
973
+ readonly groupPatch?: Partial<GroupDetail>;
974
+ readonly isDisabled?: boolean;
975
+ }
976
+ /** @internal 群事件原始通知信封。 */
977
+ export interface GroupRawNotifyEvent {
978
+ readonly eventName: string;
979
+ readonly payload: GroupRawNotifyPayload;
980
+ }