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,888 @@
1
+ export declare const CHAT_ERROR_MAP: {
2
+ readonly common: {};
3
+ readonly apis: {
4
+ readonly sendMessage: {
5
+ readonly range: "1,4,100,108,110,202,210,213-215,219-222,300-301,303,305,402,405-406,500-501,505-510,602-603,606-607,1200,1299";
6
+ readonly localErrors: {
7
+ readonly sendMessage: {
8
+ readonly operation_cancelled: {
9
+ readonly code: 1;
10
+ readonly retryable: false;
11
+ };
12
+ readonly upload_invalid_appkey: {
13
+ readonly code: 100;
14
+ readonly retryable: false;
15
+ };
16
+ readonly validation_invalid: {
17
+ readonly code: 110;
18
+ readonly retryable: false;
19
+ };
20
+ readonly not_connected: {
21
+ readonly code: 300;
22
+ readonly retryable: true;
23
+ };
24
+ readonly request_timeout: {
25
+ readonly code: 301;
26
+ readonly retryable: true;
27
+ };
28
+ readonly send_failed: {
29
+ readonly code: 303;
30
+ readonly retryable: false;
31
+ };
32
+ readonly upload_failed: {
33
+ readonly code: 402;
34
+ readonly retryable: true;
35
+ };
36
+ readonly file_too_large: {
37
+ readonly code: 405;
38
+ readonly retryable: false;
39
+ };
40
+ readonly file_content_improper: {
41
+ readonly code: 406;
42
+ readonly retryable: false;
43
+ };
44
+ readonly encode_failed: {
45
+ readonly code: 500;
46
+ readonly retryable: false;
47
+ };
48
+ };
49
+ };
50
+ readonly errors: {
51
+ readonly SERVICE_LIMIT_EXCEEDED: {
52
+ readonly code: 4;
53
+ readonly retryable: false;
54
+ };
55
+ readonly TOKEN_EXPIRED: {
56
+ readonly code: 108;
57
+ readonly retryable: false;
58
+ };
59
+ readonly AUTH_FAILED: {
60
+ readonly code: 202;
61
+ readonly retryable: false;
62
+ };
63
+ readonly PERMISSION_DENIED: {
64
+ readonly code: 210;
65
+ readonly retryable: false;
66
+ };
67
+ readonly BIND_ANOTHER_DEVICE: {
68
+ readonly code: 213;
69
+ readonly retryable: false;
70
+ };
71
+ readonly TOO_MANY_DEVICES: {
72
+ readonly code: 214;
73
+ readonly retryable: false;
74
+ };
75
+ readonly USER_MUTED: {
76
+ readonly code: 215;
77
+ readonly retryable: false;
78
+ };
79
+ readonly USER_MUTED_BY_ADMIN: {
80
+ readonly code: 219;
81
+ readonly retryable: false;
82
+ };
83
+ readonly USER_DEVICE_CHANGED: {
84
+ readonly code: 220;
85
+ readonly retryable: false;
86
+ };
87
+ readonly USER_NOT_ON_ROSTER: {
88
+ readonly code: 221;
89
+ readonly retryable: false;
90
+ };
91
+ readonly BLOCKED_BY_RECIPIENT: {
92
+ readonly code: 222;
93
+ readonly retryable: false;
94
+ readonly aliases: readonly ["blocked"];
95
+ };
96
+ readonly SERVER_SERVING_DISABLED: {
97
+ readonly code: 305;
98
+ readonly retryable: false;
99
+ };
100
+ readonly MESSAGE_INCLUDE_ILLEGAL_CONTENT: {
101
+ readonly code: 501;
102
+ readonly retryable: false;
103
+ };
104
+ readonly SERVICE_NOT_ENABLED: {
105
+ readonly code: 505;
106
+ readonly retryable: false;
107
+ };
108
+ readonly MESSAGE_EXPIRED: {
109
+ readonly code: 506;
110
+ readonly retryable: false;
111
+ };
112
+ readonly MESSAGE_ILLEGAL_WHITELIST: {
113
+ readonly code: 507;
114
+ readonly retryable: false;
115
+ };
116
+ readonly MESSAGE_EXTERNAL_LOGIC_BLOCKED: {
117
+ readonly code: 508;
118
+ readonly retryable: false;
119
+ };
120
+ readonly MESSAGE_CURRENT_LIMITING: {
121
+ readonly code: 509;
122
+ readonly retryable: true;
123
+ };
124
+ readonly MESSAGE_SIZE_LIMIT: {
125
+ readonly code: 510;
126
+ readonly retryable: false;
127
+ };
128
+ readonly GROUP_NOT_JOINED: {
129
+ readonly code: 602;
130
+ readonly retryable: false;
131
+ };
132
+ readonly GROUP_PERMISSION_DENIED: {
133
+ readonly code: 603;
134
+ readonly retryable: false;
135
+ };
136
+ readonly GROUP_NOT_EXIST: {
137
+ readonly code: 606;
138
+ readonly retryable: false;
139
+ };
140
+ readonly GROUP_DISABLED: {
141
+ readonly code: 607;
142
+ readonly retryable: false;
143
+ };
144
+ readonly MESSAGE_BLOCKED: {
145
+ readonly code: 1200;
146
+ readonly retryable: false;
147
+ };
148
+ readonly THIRD_DEFAULT_FAILED: {
149
+ readonly code: 1299;
150
+ readonly retryable: false;
151
+ };
152
+ };
153
+ };
154
+ readonly getHistoryMessages: {
155
+ readonly range: "4,110,202,505";
156
+ readonly localErrors: {
157
+ readonly getHistoryMessages: {
158
+ readonly validation_invalid: {
159
+ readonly code: 110;
160
+ readonly retryable: false;
161
+ };
162
+ };
163
+ };
164
+ readonly errors: {
165
+ readonly service_not_enabled: {
166
+ readonly code: 505;
167
+ readonly retryable: false;
168
+ };
169
+ readonly page_size_exceeded: {
170
+ readonly code: 110;
171
+ readonly aliases: readonly ["pull number cannot be greater", "limit is to large"];
172
+ readonly retryable: false;
173
+ };
174
+ };
175
+ };
176
+ readonly removeHistoryMessages: {
177
+ readonly range: "110,112,202,505";
178
+ readonly localErrors: {
179
+ readonly removeHistoryMessages: {
180
+ readonly validation_invalid: {
181
+ readonly code: 110;
182
+ readonly retryable: false;
183
+ };
184
+ };
185
+ };
186
+ readonly errors: {
187
+ readonly service_not_enabled: {
188
+ readonly code: 505;
189
+ readonly retryable: false;
190
+ };
191
+ readonly query_param_reaches_limit: {
192
+ readonly code: 112;
193
+ readonly aliases: readonly ["delete msg list limit"];
194
+ readonly retryable: false;
195
+ };
196
+ };
197
+ };
198
+ readonly getGroupMessageReadUsers: {
199
+ readonly range: "4,110,500";
200
+ readonly localErrors: {
201
+ readonly getGroupMessageReadUsers: {
202
+ readonly validation_invalid: {
203
+ readonly code: 110;
204
+ readonly retryable: false;
205
+ };
206
+ };
207
+ };
208
+ readonly errors: {
209
+ readonly message_not_found: {
210
+ readonly code: 500;
211
+ readonly retryable: false;
212
+ };
213
+ };
214
+ };
215
+ readonly recallMessage: {
216
+ readonly range: "110,201,300,504,505";
217
+ readonly localErrors: {
218
+ readonly recallMessage: {
219
+ readonly validation_invalid: {
220
+ readonly code: 110;
221
+ readonly retryable: false;
222
+ };
223
+ };
224
+ };
225
+ readonly errors: {
226
+ readonly message_invalid: {
227
+ readonly code: 110;
228
+ readonly retryable: false;
229
+ };
230
+ readonly not_login: {
231
+ readonly code: 201;
232
+ readonly retryable: true;
233
+ };
234
+ readonly not_connected: {
235
+ readonly code: 300;
236
+ readonly retryable: true;
237
+ };
238
+ readonly recall_time_limit: {
239
+ readonly code: 504;
240
+ readonly retryable: false;
241
+ };
242
+ readonly recall_disabled: {
243
+ readonly code: 505;
244
+ readonly retryable: false;
245
+ };
246
+ };
247
+ };
248
+ readonly updateMessage: {
249
+ readonly range: "110,111,201,210,300,511";
250
+ readonly localErrors: {
251
+ readonly modifyMessage: {
252
+ readonly validation_invalid: {
253
+ readonly code: 110;
254
+ readonly retryable: false;
255
+ };
256
+ readonly unsupported_type: {
257
+ readonly code: 111;
258
+ readonly retryable: false;
259
+ };
260
+ };
261
+ };
262
+ readonly errors: {
263
+ readonly message_invalid: {
264
+ readonly code: 110;
265
+ readonly retryable: false;
266
+ };
267
+ readonly unsupported_type: {
268
+ readonly code: 111;
269
+ readonly retryable: false;
270
+ };
271
+ readonly not_login: {
272
+ readonly code: 201;
273
+ readonly retryable: true;
274
+ };
275
+ readonly permission_denied: {
276
+ readonly code: 210;
277
+ readonly retryable: false;
278
+ };
279
+ readonly not_connected: {
280
+ readonly code: 300;
281
+ readonly retryable: true;
282
+ };
283
+ readonly edit_failed: {
284
+ readonly code: 511;
285
+ readonly retryable: true;
286
+ };
287
+ };
288
+ };
289
+ readonly downloadMessageAttachment: {
290
+ readonly range: "400,401,403,407";
291
+ readonly localErrors: {
292
+ readonly downloadAttachment: {
293
+ readonly validation_invalid: {
294
+ readonly code: 401;
295
+ readonly retryable: false;
296
+ };
297
+ };
298
+ };
299
+ readonly errors: {
300
+ readonly not_found: {
301
+ readonly code: 400;
302
+ readonly httpStatus: 404;
303
+ readonly retryable: false;
304
+ };
305
+ readonly invalid: {
306
+ readonly code: 401;
307
+ readonly retryable: false;
308
+ };
309
+ readonly download_failed: {
310
+ readonly code: 403;
311
+ readonly retryable: true;
312
+ };
313
+ readonly expired: {
314
+ readonly code: 407;
315
+ readonly httpStatus: 404;
316
+ readonly retryable: false;
317
+ };
318
+ };
319
+ };
320
+ readonly downloadAndParseCombineMessage: {
321
+ readonly range: "110,401,403,500";
322
+ readonly localErrors: {
323
+ readonly downloadAndParseCombineMessage: {
324
+ readonly validation_invalid: {
325
+ readonly code: 110;
326
+ readonly retryable: false;
327
+ };
328
+ };
329
+ };
330
+ readonly errors: {
331
+ readonly invalid_param: {
332
+ readonly code: 110;
333
+ readonly retryable: false;
334
+ };
335
+ readonly invalid_type: {
336
+ readonly code: 500;
337
+ readonly retryable: false;
338
+ };
339
+ readonly parse_failed: {
340
+ readonly code: 401;
341
+ readonly retryable: true;
342
+ };
343
+ readonly download_failed: {
344
+ readonly code: 403;
345
+ readonly retryable: true;
346
+ };
347
+ };
348
+ };
349
+ readonly addReaction: {
350
+ readonly range: "110,302,505,600,602,1300-1302";
351
+ readonly localErrors: {
352
+ readonly addReaction: {
353
+ readonly validation_invalid: {
354
+ readonly code: 110;
355
+ readonly retryable: false;
356
+ };
357
+ };
358
+ };
359
+ readonly errors: {
360
+ readonly reaction_already_operated: {
361
+ readonly code: 1301;
362
+ readonly retryable: false;
363
+ };
364
+ readonly reaction_reach_limit: {
365
+ readonly code: 1300;
366
+ readonly retryable: false;
367
+ };
368
+ readonly group_not_joined: {
369
+ readonly code: 602;
370
+ readonly retryable: false;
371
+ };
372
+ readonly reaction_operation_illegal: {
373
+ readonly code: 1302;
374
+ readonly retryable: false;
375
+ };
376
+ readonly service_not_enabled: {
377
+ readonly code: 505;
378
+ readonly retryable: false;
379
+ };
380
+ readonly server_busy: {
381
+ readonly code: 302;
382
+ readonly retryable: true;
383
+ };
384
+ };
385
+ };
386
+ readonly removeReaction: {
387
+ readonly range: "110,505,1301,1302";
388
+ readonly localErrors: {
389
+ readonly removeReaction: {
390
+ readonly validation_invalid: {
391
+ readonly code: 110;
392
+ readonly retryable: false;
393
+ };
394
+ };
395
+ };
396
+ readonly errors: {
397
+ readonly service_not_enabled: {
398
+ readonly code: 505;
399
+ readonly retryable: false;
400
+ };
401
+ readonly reaction_operation_illegal: {
402
+ readonly code: 1302;
403
+ readonly retryable: false;
404
+ };
405
+ };
406
+ };
407
+ readonly getReactionList: {
408
+ readonly range: "110,505,600";
409
+ readonly localErrors: {
410
+ readonly getReactionList: {
411
+ readonly validation_invalid: {
412
+ readonly code: 110;
413
+ readonly retryable: false;
414
+ };
415
+ };
416
+ };
417
+ readonly errors: {
418
+ readonly service_not_enabled: {
419
+ readonly code: 505;
420
+ readonly retryable: false;
421
+ };
422
+ readonly group_invalid_id: {
423
+ readonly code: 600;
424
+ readonly retryable: false;
425
+ };
426
+ };
427
+ };
428
+ readonly getReactionDetail: {
429
+ readonly range: "110,505,1302";
430
+ readonly localErrors: {
431
+ readonly getReactionDetail: {
432
+ readonly validation_invalid: {
433
+ readonly code: 110;
434
+ readonly retryable: false;
435
+ };
436
+ };
437
+ };
438
+ readonly errors: {
439
+ readonly service_not_enabled: {
440
+ readonly code: 505;
441
+ readonly retryable: false;
442
+ };
443
+ readonly reaction_operation_illegal: {
444
+ readonly code: 1302;
445
+ readonly retryable: false;
446
+ };
447
+ };
448
+ };
449
+ readonly pinMessage: {
450
+ readonly range: "4,110";
451
+ readonly errors: {
452
+ readonly pin_msg_id_illegal: {
453
+ readonly code: 110;
454
+ readonly retryable: false;
455
+ };
456
+ readonly pin_message_limit: {
457
+ readonly code: 4;
458
+ readonly aliases: readonly ["91101"];
459
+ readonly retryable: false;
460
+ };
461
+ readonly pin_message_not_found: {
462
+ readonly code: 110;
463
+ readonly aliases: readonly ["91102"];
464
+ readonly retryable: false;
465
+ };
466
+ };
467
+ };
468
+ readonly unpinMessage: {
469
+ readonly range: "110";
470
+ readonly errors: {
471
+ readonly pin_msg_id_illegal: {
472
+ readonly code: 110;
473
+ readonly retryable: false;
474
+ };
475
+ readonly pin_message_not_found: {
476
+ readonly code: 110;
477
+ readonly aliases: readonly ["91102", "user session pin message not exist"];
478
+ readonly retryable: false;
479
+ };
480
+ };
481
+ };
482
+ readonly getPinnedMessageList: {
483
+ readonly range: "110,111";
484
+ readonly errors: {
485
+ readonly operation_unsupported: {
486
+ readonly code: 111;
487
+ readonly aliases: readonly ["15002"];
488
+ readonly retryable: false;
489
+ };
490
+ readonly pin_message_not_found: {
491
+ readonly code: 110;
492
+ readonly aliases: readonly ["91102", "user session pin message not exist"];
493
+ readonly retryable: false;
494
+ };
495
+ };
496
+ };
497
+ readonly getSupportedTranslationLanguages: {
498
+ readonly range: "505";
499
+ readonly errors: {
500
+ readonly service_not_enabled: {
501
+ readonly code: 505;
502
+ readonly aliases: readonly ["service not open!"];
503
+ readonly retryable: false;
504
+ };
505
+ };
506
+ };
507
+ readonly translateMessage: {
508
+ readonly range: "505,1110-1113";
509
+ readonly localErrors: {
510
+ readonly translateMessage: {
511
+ readonly validation_invalid: {
512
+ readonly code: 1110;
513
+ readonly retryable: false;
514
+ };
515
+ };
516
+ };
517
+ readonly errors: {
518
+ readonly translate_text_too_long: {
519
+ readonly code: 1110;
520
+ readonly runtimeMessage: "Translation text is too long";
521
+ readonly retryable: false;
522
+ };
523
+ readonly translate_param_invalid: {
524
+ readonly code: 1110;
525
+ readonly runtimeMessage: "Invalid target language";
526
+ readonly retryable: false;
527
+ };
528
+ readonly service_not_enabled: {
529
+ readonly code: 1111;
530
+ readonly runtimeMessage: "Translation service is not enabled";
531
+ readonly aliases: readonly ["service not open!"];
532
+ readonly retryable: false;
533
+ };
534
+ readonly translate_usage_limit: {
535
+ readonly code: 1112;
536
+ readonly runtimeMessage: "Translation quota has been reached";
537
+ readonly aliases: readonly ["The request has reached the maximum limit"];
538
+ readonly retryable: false;
539
+ };
540
+ readonly translate_failed: {
541
+ readonly code: 1113;
542
+ readonly runtimeMessage: "Translation service error";
543
+ readonly aliases: readonly ["The request failed, please try again later."];
544
+ readonly retryable: false;
545
+ };
546
+ };
547
+ };
548
+ readonly voiceMessageToText: {
549
+ readonly range: "4,110,202,407-411,505";
550
+ readonly localErrors: {
551
+ readonly voiceMessageToText: {
552
+ readonly validation_invalid: {
553
+ readonly code: 407;
554
+ readonly retryable: false;
555
+ };
556
+ readonly file_not_found: {
557
+ readonly code: 410;
558
+ readonly retryable: false;
559
+ };
560
+ };
561
+ };
562
+ readonly errors: {
563
+ readonly unauthorized: {
564
+ readonly code: 202;
565
+ readonly retryable: true;
566
+ };
567
+ readonly file_not_found: {
568
+ readonly code: 410;
569
+ readonly retryable: false;
570
+ readonly aliases: readonly ["4041001"];
571
+ };
572
+ readonly file_invalid: {
573
+ readonly code: 407;
574
+ readonly retryable: false;
575
+ readonly aliases: readonly ["4001002"];
576
+ };
577
+ readonly duration_too_long: {
578
+ readonly code: 408;
579
+ readonly retryable: false;
580
+ readonly aliases: readonly ["4001003"];
581
+ };
582
+ readonly file_too_large: {
583
+ readonly code: 411;
584
+ readonly retryable: false;
585
+ readonly aliases: readonly ["4001001"];
586
+ };
587
+ readonly service_not_enabled: {
588
+ readonly code: 505;
589
+ readonly retryable: false;
590
+ readonly aliases: readonly ["4031001"];
591
+ };
592
+ readonly service_limit_exceeded: {
593
+ readonly code: 4;
594
+ readonly retryable: true;
595
+ readonly aliases: readonly ["4031002"];
596
+ };
597
+ readonly voice_to_text_failed: {
598
+ readonly code: 409;
599
+ readonly retryable: true;
600
+ readonly aliases: readonly ["5021003", "5001003"];
601
+ };
602
+ };
603
+ };
604
+ readonly voiceFileToText: {
605
+ readonly range: "4,110,202,402,407-411,505";
606
+ readonly localErrors: {
607
+ readonly voiceFileToText: {
608
+ readonly validation_invalid: {
609
+ readonly code: 407;
610
+ readonly retryable: false;
611
+ };
612
+ readonly upload_required: {
613
+ readonly code: 110;
614
+ readonly retryable: false;
615
+ };
616
+ };
617
+ };
618
+ readonly errors: {
619
+ readonly unauthorized: {
620
+ readonly code: 202;
621
+ readonly retryable: true;
622
+ };
623
+ readonly upload_failed: {
624
+ readonly code: 402;
625
+ readonly retryable: true;
626
+ readonly aliases: readonly ["5021001"];
627
+ };
628
+ readonly file_invalid: {
629
+ readonly code: 407;
630
+ readonly retryable: false;
631
+ readonly aliases: readonly ["4001002"];
632
+ };
633
+ readonly duration_too_long: {
634
+ readonly code: 408;
635
+ readonly retryable: false;
636
+ readonly aliases: readonly ["4001003"];
637
+ };
638
+ readonly file_too_large: {
639
+ readonly code: 411;
640
+ readonly retryable: false;
641
+ readonly aliases: readonly ["4001001"];
642
+ };
643
+ readonly service_not_enabled: {
644
+ readonly code: 505;
645
+ readonly retryable: false;
646
+ readonly aliases: readonly ["4031001"];
647
+ };
648
+ readonly service_limit_exceeded: {
649
+ readonly code: 4;
650
+ readonly retryable: true;
651
+ readonly aliases: readonly ["4031002"];
652
+ };
653
+ readonly voice_to_text_failed: {
654
+ readonly code: 409;
655
+ readonly retryable: true;
656
+ readonly aliases: readonly ["5021003", "5001003"];
657
+ };
658
+ };
659
+ };
660
+ readonly getConversationList: {
661
+ readonly range: "110";
662
+ readonly localErrors: {
663
+ readonly getConversationList: {
664
+ readonly validation_invalid: {
665
+ readonly code: 110;
666
+ readonly retryable: false;
667
+ };
668
+ };
669
+ };
670
+ readonly errors: {};
671
+ };
672
+ readonly getPinnedConversationList: {
673
+ readonly range: "110";
674
+ readonly localErrors: {
675
+ readonly getPinnedConversationList: {
676
+ readonly validation_invalid: {
677
+ readonly code: 110;
678
+ readonly retryable: false;
679
+ };
680
+ };
681
+ };
682
+ readonly errors: {};
683
+ };
684
+ readonly getConversationListByMark: {
685
+ readonly range: "110";
686
+ readonly localErrors: {
687
+ readonly getConversationListByMark: {
688
+ readonly validation_invalid: {
689
+ readonly code: 110;
690
+ readonly retryable: false;
691
+ };
692
+ };
693
+ };
694
+ readonly errors: {};
695
+ };
696
+ readonly deleteConversation: {
697
+ readonly range: "110";
698
+ readonly localErrors: {
699
+ readonly deleteConversation: {
700
+ readonly validation_invalid: {
701
+ readonly code: 110;
702
+ readonly retryable: false;
703
+ };
704
+ };
705
+ };
706
+ readonly errors: {};
707
+ };
708
+ readonly clearConversationUnreadMessageCount: {
709
+ readonly range: "110,201,300,500";
710
+ readonly localErrors: {
711
+ readonly clearConversationUnreadMessageCount: {
712
+ readonly validation_invalid: {
713
+ readonly code: 110;
714
+ readonly retryable: false;
715
+ };
716
+ };
717
+ };
718
+ readonly errors: {
719
+ readonly not_login: {
720
+ readonly code: 201;
721
+ readonly retryable: true;
722
+ };
723
+ readonly not_connected: {
724
+ readonly code: 300;
725
+ readonly retryable: true;
726
+ };
727
+ readonly message_invalid: {
728
+ readonly code: 500;
729
+ readonly retryable: false;
730
+ };
731
+ };
732
+ };
733
+ readonly clearAllConversationUnreadMessageCount: {
734
+ readonly range: "201,300,500";
735
+ readonly errors: {
736
+ readonly not_login: {
737
+ readonly code: 201;
738
+ readonly retryable: true;
739
+ };
740
+ readonly not_connected: {
741
+ readonly code: 300;
742
+ readonly retryable: true;
743
+ };
744
+ readonly message_invalid: {
745
+ readonly code: 500;
746
+ readonly retryable: false;
747
+ };
748
+ };
749
+ };
750
+ readonly sendMessageReadReceipts: {
751
+ readonly range: "110,300";
752
+ readonly localErrors: {
753
+ readonly sendMessageReadReceipts: {
754
+ readonly validation_invalid: {
755
+ readonly code: 110;
756
+ readonly retryable: false;
757
+ };
758
+ };
759
+ };
760
+ readonly errors: {
761
+ readonly invalid_direction: {
762
+ readonly code: 110;
763
+ readonly retryable: false;
764
+ };
765
+ readonly not_connected: {
766
+ readonly code: 300;
767
+ readonly retryable: true;
768
+ };
769
+ };
770
+ };
771
+ readonly getGroupMessageReadReceipts: {
772
+ readonly range: "110,202,210,303";
773
+ readonly localErrors: {
774
+ readonly getGroupMessageReadReceipts: {
775
+ readonly validation_invalid: {
776
+ readonly code: 110;
777
+ readonly retryable: false;
778
+ };
779
+ };
780
+ };
781
+ readonly errors: {
782
+ readonly illegal_argument: {
783
+ readonly code: 110;
784
+ readonly httpStatus: 400;
785
+ readonly retryable: false;
786
+ };
787
+ readonly auth_bad_access_token: {
788
+ readonly code: 202;
789
+ readonly httpStatus: 401;
790
+ readonly retryable: false;
791
+ };
792
+ readonly forbidden_op: {
793
+ readonly code: 210;
794
+ readonly httpStatus: 403;
795
+ readonly retryable: false;
796
+ };
797
+ readonly unknown_exception_error: {
798
+ readonly code: 303;
799
+ readonly httpStatus: 500;
800
+ readonly retryable: true;
801
+ };
802
+ };
803
+ };
804
+ readonly setConversationPinned: {
805
+ readonly range: "110";
806
+ readonly localErrors: {
807
+ readonly setConversationPinned: {
808
+ readonly validation_invalid: {
809
+ readonly code: 110;
810
+ readonly retryable: false;
811
+ };
812
+ };
813
+ };
814
+ readonly errors: {};
815
+ };
816
+ readonly addConversationMark: {
817
+ readonly range: "110";
818
+ readonly localErrors: {
819
+ readonly addConversationMark: {
820
+ readonly validation_invalid: {
821
+ readonly code: 110;
822
+ readonly retryable: false;
823
+ };
824
+ };
825
+ };
826
+ readonly errors: {};
827
+ };
828
+ readonly removeConversationMark: {
829
+ readonly range: "110";
830
+ readonly localErrors: {
831
+ readonly removeConversationMark: {
832
+ readonly validation_invalid: {
833
+ readonly code: 110;
834
+ readonly retryable: false;
835
+ };
836
+ };
837
+ };
838
+ readonly errors: {};
839
+ };
840
+ readonly clearAllMessagesAndConversations: {
841
+ readonly range: "";
842
+ readonly errors: {};
843
+ };
844
+ readonly searchMessages: {
845
+ readonly range: "110,202,303,505";
846
+ readonly localErrors: {
847
+ readonly searchMessages: {
848
+ readonly validation_invalid: {
849
+ readonly code: 110;
850
+ readonly retryable: false;
851
+ };
852
+ };
853
+ };
854
+ readonly errors: {
855
+ readonly parameter_error: {
856
+ readonly code: 110;
857
+ readonly httpStatus: 400;
858
+ readonly retryable: false;
859
+ readonly aliases: readonly ["4000005", "4000006"];
860
+ };
861
+ readonly token_invalid: {
862
+ readonly code: 202;
863
+ readonly httpStatus: 401;
864
+ readonly retryable: false;
865
+ readonly aliases: readonly ["4010101"];
866
+ };
867
+ readonly service_not_enabled: {
868
+ readonly code: 505;
869
+ readonly httpStatus: 403;
870
+ readonly retryable: false;
871
+ readonly aliases: readonly ["4030204"];
872
+ };
873
+ readonly app_not_found: {
874
+ readonly code: 110;
875
+ readonly httpStatus: 404;
876
+ readonly retryable: false;
877
+ readonly aliases: readonly ["4040302"];
878
+ };
879
+ readonly server_error: {
880
+ readonly code: 303;
881
+ readonly httpStatus: 500;
882
+ readonly retryable: true;
883
+ readonly aliases: readonly ["5000701", "5020801"];
884
+ };
885
+ };
886
+ };
887
+ };
888
+ };