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,158 @@
1
+ export declare const PUSH_ERROR_MAP: {
2
+ readonly common: {};
3
+ readonly apis: {
4
+ readonly setGlobalSilentMode: {
5
+ readonly range: "110,1501";
6
+ readonly localErrors: {
7
+ readonly setGlobalSilentMode: {
8
+ readonly validation_invalid: {
9
+ readonly code: 110;
10
+ readonly retryable: false;
11
+ };
12
+ };
13
+ };
14
+ readonly errors: {
15
+ readonly SILENT_MODE_OPERATION_FAILED: {
16
+ readonly code: 1501;
17
+ readonly httpStatus: 400;
18
+ readonly retryable: false;
19
+ };
20
+ };
21
+ };
22
+ readonly setConversationSilentMode: {
23
+ readonly range: "110,1501";
24
+ readonly localErrors: {
25
+ readonly setConversationSilentMode: {
26
+ readonly validation_invalid: {
27
+ readonly code: 110;
28
+ readonly retryable: false;
29
+ };
30
+ };
31
+ };
32
+ readonly errors: {
33
+ readonly SILENT_MODE_OPERATION_FAILED: {
34
+ readonly code: 1501;
35
+ readonly httpStatus: 400;
36
+ readonly retryable: false;
37
+ };
38
+ };
39
+ };
40
+ readonly setPushLanguage: {
41
+ readonly range: "110,1502";
42
+ readonly localErrors: {
43
+ readonly setPushLanguage: {
44
+ readonly validation_invalid: {
45
+ readonly code: 110;
46
+ readonly retryable: false;
47
+ };
48
+ };
49
+ };
50
+ readonly errors: {
51
+ readonly PUSH_LANGUAGE_OPERATION_FAILED: {
52
+ readonly code: 1502;
53
+ readonly httpStatus: 400;
54
+ readonly retryable: false;
55
+ };
56
+ };
57
+ };
58
+ readonly uploadPushToken: {
59
+ readonly range: "110,1500";
60
+ readonly localErrors: {
61
+ readonly uploadPushToken: {
62
+ readonly validation_invalid: {
63
+ readonly code: 110;
64
+ readonly retryable: false;
65
+ };
66
+ };
67
+ };
68
+ readonly errors: {
69
+ readonly TOKEN_UPLOAD_FAILED: {
70
+ readonly code: 1500;
71
+ readonly httpStatus: 400;
72
+ readonly retryable: true;
73
+ };
74
+ };
75
+ };
76
+ readonly getGlobalSilentMode: {
77
+ readonly range: "1501";
78
+ readonly errors: {
79
+ readonly SILENT_MODE_OPERATION_FAILED: {
80
+ readonly code: 1501;
81
+ readonly retryable: false;
82
+ };
83
+ };
84
+ };
85
+ readonly getConversationSilentMode: {
86
+ readonly range: "110,1501";
87
+ readonly localErrors: {
88
+ readonly getConversationSilentMode: {
89
+ readonly validation_invalid: {
90
+ readonly code: 110;
91
+ readonly retryable: false;
92
+ };
93
+ };
94
+ };
95
+ readonly errors: {
96
+ readonly SILENT_MODE_OPERATION_FAILED: {
97
+ readonly code: 1501;
98
+ readonly retryable: false;
99
+ };
100
+ };
101
+ };
102
+ readonly clearConversationRemindType: {
103
+ readonly range: "110,1501";
104
+ readonly localErrors: {
105
+ readonly clearConversationRemindType: {
106
+ readonly validation_invalid: {
107
+ readonly code: 110;
108
+ readonly retryable: false;
109
+ };
110
+ };
111
+ };
112
+ readonly errors: {
113
+ readonly SILENT_MODE_OPERATION_FAILED: {
114
+ readonly code: 1501;
115
+ readonly retryable: false;
116
+ };
117
+ };
118
+ };
119
+ readonly getConversationSilentModes: {
120
+ readonly range: "110,1501";
121
+ readonly localErrors: {
122
+ readonly getConversationSilentModes: {
123
+ readonly validation_invalid: {
124
+ readonly code: 110;
125
+ readonly retryable: false;
126
+ };
127
+ };
128
+ };
129
+ readonly errors: {
130
+ readonly SILENT_MODE_OPERATION_FAILED: {
131
+ readonly code: 1501;
132
+ readonly retryable: false;
133
+ };
134
+ };
135
+ };
136
+ readonly getConversationListByRemindType: {
137
+ readonly range: "110";
138
+ readonly localErrors: {
139
+ readonly getConversationListByRemindType: {
140
+ readonly validation_invalid: {
141
+ readonly code: 110;
142
+ readonly retryable: false;
143
+ };
144
+ };
145
+ };
146
+ readonly errors: {};
147
+ };
148
+ readonly getPushLanguage: {
149
+ readonly range: "1502";
150
+ readonly errors: {
151
+ readonly PUSH_LANGUAGE_OPERATION_FAILED: {
152
+ readonly code: 1502;
153
+ readonly retryable: false;
154
+ };
155
+ };
156
+ };
157
+ };
158
+ };
@@ -0,0 +1,538 @@
1
+ export declare const THREAD_ERROR_MAP: {
2
+ readonly common: {};
3
+ readonly apis: {
4
+ readonly createChatThread: {
5
+ readonly range: "4,110,201,210,301,303,606";
6
+ readonly localErrors: {
7
+ readonly createChatThread: {
8
+ readonly validation_invalid: {
9
+ readonly code: 110;
10
+ readonly retryable: false;
11
+ };
12
+ };
13
+ };
14
+ readonly errors: {
15
+ readonly not_login: {
16
+ readonly code: 201;
17
+ readonly httpStatus: 401;
18
+ readonly retryable: false;
19
+ readonly aliases: readonly ["unauthorized"];
20
+ };
21
+ readonly permission_denied: {
22
+ readonly code: 210;
23
+ readonly httpStatus: 403;
24
+ readonly retryable: false;
25
+ readonly aliases: readonly ["group_authorization", "forbidden"];
26
+ };
27
+ readonly resource_not_found: {
28
+ readonly code: 606;
29
+ readonly httpStatus: 404;
30
+ readonly retryable: false;
31
+ readonly aliases: readonly ["service_resource_not_found", "GROUP_NOT_FOUND"];
32
+ };
33
+ readonly service_limit_exceeded: {
34
+ readonly code: 4;
35
+ readonly httpStatus: 400;
36
+ readonly retryable: false;
37
+ readonly aliases: readonly ["limit_exceeded"];
38
+ };
39
+ readonly request_timeout: {
40
+ readonly code: 301;
41
+ readonly httpStatus: 504;
42
+ readonly retryable: true;
43
+ readonly aliases: readonly ["timeout"];
44
+ };
45
+ readonly service_error: {
46
+ readonly code: 303;
47
+ readonly httpStatus: 500;
48
+ readonly retryable: true;
49
+ readonly aliases: readonly ["server_unknown_error"];
50
+ };
51
+ };
52
+ };
53
+ readonly getChatThreadList: {
54
+ readonly range: "110,201,210,301,303,606";
55
+ readonly localErrors: {
56
+ readonly getChatThreadList: {
57
+ readonly validation_invalid: {
58
+ readonly code: 110;
59
+ readonly retryable: false;
60
+ };
61
+ };
62
+ };
63
+ readonly errors: {
64
+ readonly not_login: {
65
+ readonly code: 201;
66
+ readonly httpStatus: 401;
67
+ readonly retryable: false;
68
+ readonly aliases: readonly ["unauthorized"];
69
+ };
70
+ readonly permission_denied: {
71
+ readonly code: 210;
72
+ readonly httpStatus: 403;
73
+ readonly retryable: false;
74
+ readonly aliases: readonly ["group_authorization", "forbidden"];
75
+ };
76
+ readonly resource_not_found: {
77
+ readonly code: 606;
78
+ readonly httpStatus: 404;
79
+ readonly retryable: false;
80
+ readonly aliases: readonly ["service_resource_not_found", "GROUP_NOT_FOUND"];
81
+ };
82
+ readonly request_timeout: {
83
+ readonly code: 301;
84
+ readonly httpStatus: 504;
85
+ readonly retryable: true;
86
+ readonly aliases: readonly ["timeout"];
87
+ };
88
+ readonly service_error: {
89
+ readonly code: 303;
90
+ readonly httpStatus: 500;
91
+ readonly retryable: true;
92
+ readonly aliases: readonly ["server_unknown_error"];
93
+ };
94
+ };
95
+ };
96
+ readonly getJoinedChatThreadList: {
97
+ readonly range: "110,201,210,301,303,606";
98
+ readonly localErrors: {
99
+ readonly getJoinedChatThreadList: {
100
+ readonly validation_invalid: {
101
+ readonly code: 110;
102
+ readonly retryable: false;
103
+ };
104
+ };
105
+ };
106
+ readonly errors: {
107
+ readonly not_login: {
108
+ readonly code: 201;
109
+ readonly httpStatus: 401;
110
+ readonly retryable: false;
111
+ readonly aliases: readonly ["unauthorized"];
112
+ };
113
+ readonly permission_denied: {
114
+ readonly code: 210;
115
+ readonly httpStatus: 403;
116
+ readonly retryable: false;
117
+ readonly aliases: readonly ["group_authorization", "forbidden"];
118
+ };
119
+ readonly resource_not_found: {
120
+ readonly code: 606;
121
+ readonly httpStatus: 404;
122
+ readonly retryable: false;
123
+ readonly aliases: readonly ["service_resource_not_found", "GROUP_NOT_FOUND"];
124
+ };
125
+ readonly request_timeout: {
126
+ readonly code: 301;
127
+ readonly httpStatus: 504;
128
+ readonly retryable: true;
129
+ readonly aliases: readonly ["timeout"];
130
+ };
131
+ readonly service_error: {
132
+ readonly code: 303;
133
+ readonly httpStatus: 500;
134
+ readonly retryable: true;
135
+ readonly aliases: readonly ["server_unknown_error"];
136
+ };
137
+ };
138
+ };
139
+ readonly getChatThreadInfo: {
140
+ readonly range: "110,201,210,301,303,606";
141
+ readonly localErrors: {
142
+ readonly getChatThreadInfo: {
143
+ readonly validation_invalid: {
144
+ readonly code: 110;
145
+ readonly retryable: false;
146
+ };
147
+ };
148
+ readonly getInfo: {
149
+ readonly validation_invalid: {
150
+ readonly code: 110;
151
+ readonly retryable: false;
152
+ };
153
+ };
154
+ readonly refresh: {
155
+ readonly validation_invalid: {
156
+ readonly code: 110;
157
+ readonly retryable: false;
158
+ };
159
+ };
160
+ };
161
+ readonly errors: {
162
+ readonly not_login: {
163
+ readonly code: 201;
164
+ readonly httpStatus: 401;
165
+ readonly retryable: false;
166
+ readonly aliases: readonly ["unauthorized"];
167
+ };
168
+ readonly permission_denied: {
169
+ readonly code: 210;
170
+ readonly httpStatus: 403;
171
+ readonly retryable: false;
172
+ readonly aliases: readonly ["group_authorization", "forbidden"];
173
+ };
174
+ readonly resource_not_found: {
175
+ readonly code: 606;
176
+ readonly httpStatus: 404;
177
+ readonly retryable: false;
178
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
179
+ };
180
+ readonly request_timeout: {
181
+ readonly code: 301;
182
+ readonly httpStatus: 504;
183
+ readonly retryable: true;
184
+ readonly aliases: readonly ["timeout"];
185
+ };
186
+ readonly service_error: {
187
+ readonly code: 303;
188
+ readonly httpStatus: 500;
189
+ readonly retryable: true;
190
+ readonly aliases: readonly ["server_unknown_error"];
191
+ };
192
+ };
193
+ };
194
+ readonly joinChatThread: {
195
+ readonly range: "4,110,201,210,301,303,606";
196
+ readonly localErrors: {
197
+ readonly joinChatThread: {
198
+ readonly validation_invalid: {
199
+ readonly code: 110;
200
+ readonly retryable: false;
201
+ };
202
+ };
203
+ readonly join: {
204
+ readonly validation_invalid: {
205
+ readonly code: 110;
206
+ readonly retryable: false;
207
+ };
208
+ };
209
+ };
210
+ readonly errors: {
211
+ readonly not_login: {
212
+ readonly code: 201;
213
+ readonly httpStatus: 401;
214
+ readonly retryable: false;
215
+ readonly aliases: readonly ["unauthorized"];
216
+ };
217
+ readonly permission_denied: {
218
+ readonly code: 210;
219
+ readonly httpStatus: 403;
220
+ readonly retryable: false;
221
+ readonly aliases: readonly ["group_authorization", "forbidden"];
222
+ };
223
+ readonly resource_not_found: {
224
+ readonly code: 606;
225
+ readonly httpStatus: 404;
226
+ readonly retryable: false;
227
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
228
+ };
229
+ readonly service_limit_exceeded: {
230
+ readonly code: 4;
231
+ readonly httpStatus: 400;
232
+ readonly retryable: false;
233
+ readonly aliases: readonly ["limit_exceeded"];
234
+ };
235
+ readonly request_timeout: {
236
+ readonly code: 301;
237
+ readonly httpStatus: 504;
238
+ readonly retryable: true;
239
+ readonly aliases: readonly ["timeout"];
240
+ };
241
+ readonly service_error: {
242
+ readonly code: 303;
243
+ readonly httpStatus: 500;
244
+ readonly retryable: true;
245
+ readonly aliases: readonly ["server_unknown_error"];
246
+ };
247
+ };
248
+ };
249
+ readonly leaveChatThread: {
250
+ readonly range: "110,201,210,301,303,606";
251
+ readonly localErrors: {
252
+ readonly leaveChatThread: {
253
+ readonly validation_invalid: {
254
+ readonly code: 110;
255
+ readonly retryable: false;
256
+ };
257
+ };
258
+ readonly leave: {
259
+ readonly validation_invalid: {
260
+ readonly code: 110;
261
+ readonly retryable: false;
262
+ };
263
+ };
264
+ };
265
+ readonly errors: {
266
+ readonly not_login: {
267
+ readonly code: 201;
268
+ readonly httpStatus: 401;
269
+ readonly retryable: false;
270
+ readonly aliases: readonly ["unauthorized"];
271
+ };
272
+ readonly permission_denied: {
273
+ readonly code: 210;
274
+ readonly httpStatus: 403;
275
+ readonly retryable: false;
276
+ readonly aliases: readonly ["group_authorization", "forbidden"];
277
+ };
278
+ readonly resource_not_found: {
279
+ readonly code: 606;
280
+ readonly httpStatus: 404;
281
+ readonly retryable: false;
282
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
283
+ };
284
+ readonly request_timeout: {
285
+ readonly code: 301;
286
+ readonly httpStatus: 504;
287
+ readonly retryable: true;
288
+ readonly aliases: readonly ["timeout"];
289
+ };
290
+ readonly service_error: {
291
+ readonly code: 303;
292
+ readonly httpStatus: 500;
293
+ readonly retryable: true;
294
+ readonly aliases: readonly ["server_unknown_error"];
295
+ };
296
+ };
297
+ };
298
+ readonly destroyChatThread: {
299
+ readonly range: "110,201,210,301,303,606";
300
+ readonly localErrors: {
301
+ readonly destroyChatThread: {
302
+ readonly validation_invalid: {
303
+ readonly code: 110;
304
+ readonly retryable: false;
305
+ };
306
+ };
307
+ readonly destroy: {
308
+ readonly validation_invalid: {
309
+ readonly code: 110;
310
+ readonly retryable: false;
311
+ };
312
+ };
313
+ };
314
+ readonly errors: {
315
+ readonly not_login: {
316
+ readonly code: 201;
317
+ readonly httpStatus: 401;
318
+ readonly retryable: false;
319
+ readonly aliases: readonly ["unauthorized"];
320
+ };
321
+ readonly permission_denied: {
322
+ readonly code: 210;
323
+ readonly httpStatus: 403;
324
+ readonly retryable: false;
325
+ readonly aliases: readonly ["group_authorization", "forbidden"];
326
+ };
327
+ readonly resource_not_found: {
328
+ readonly code: 606;
329
+ readonly httpStatus: 404;
330
+ readonly retryable: false;
331
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
332
+ };
333
+ readonly request_timeout: {
334
+ readonly code: 301;
335
+ readonly httpStatus: 504;
336
+ readonly retryable: true;
337
+ readonly aliases: readonly ["timeout"];
338
+ };
339
+ readonly service_error: {
340
+ readonly code: 303;
341
+ readonly httpStatus: 500;
342
+ readonly retryable: true;
343
+ readonly aliases: readonly ["server_unknown_error"];
344
+ };
345
+ };
346
+ };
347
+ readonly updateChatThreadName: {
348
+ readonly range: "110,201,210,301,303,606";
349
+ readonly localErrors: {
350
+ readonly updateChatThreadName: {
351
+ readonly validation_invalid: {
352
+ readonly code: 110;
353
+ readonly retryable: false;
354
+ };
355
+ };
356
+ readonly updateName: {
357
+ readonly validation_invalid: {
358
+ readonly code: 110;
359
+ readonly retryable: false;
360
+ };
361
+ };
362
+ };
363
+ readonly errors: {
364
+ readonly not_login: {
365
+ readonly code: 201;
366
+ readonly httpStatus: 401;
367
+ readonly retryable: false;
368
+ readonly aliases: readonly ["unauthorized"];
369
+ };
370
+ readonly permission_denied: {
371
+ readonly code: 210;
372
+ readonly httpStatus: 403;
373
+ readonly retryable: false;
374
+ readonly aliases: readonly ["group_authorization", "forbidden"];
375
+ };
376
+ readonly resource_not_found: {
377
+ readonly code: 606;
378
+ readonly httpStatus: 404;
379
+ readonly retryable: false;
380
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
381
+ };
382
+ readonly request_timeout: {
383
+ readonly code: 301;
384
+ readonly httpStatus: 504;
385
+ readonly retryable: true;
386
+ readonly aliases: readonly ["timeout"];
387
+ };
388
+ readonly service_error: {
389
+ readonly code: 303;
390
+ readonly httpStatus: 500;
391
+ readonly retryable: true;
392
+ readonly aliases: readonly ["server_unknown_error"];
393
+ };
394
+ };
395
+ };
396
+ readonly getChatThreadMemberList: {
397
+ readonly range: "110,201,210,301,303,606";
398
+ readonly localErrors: {
399
+ readonly getChatThreadMemberList: {
400
+ readonly validation_invalid: {
401
+ readonly code: 110;
402
+ readonly retryable: false;
403
+ };
404
+ };
405
+ readonly getMemberList: {
406
+ readonly validation_invalid: {
407
+ readonly code: 110;
408
+ readonly retryable: false;
409
+ };
410
+ };
411
+ };
412
+ readonly errors: {
413
+ readonly not_login: {
414
+ readonly code: 201;
415
+ readonly httpStatus: 401;
416
+ readonly retryable: false;
417
+ readonly aliases: readonly ["unauthorized"];
418
+ };
419
+ readonly permission_denied: {
420
+ readonly code: 210;
421
+ readonly httpStatus: 403;
422
+ readonly retryable: false;
423
+ readonly aliases: readonly ["group_authorization", "forbidden"];
424
+ };
425
+ readonly resource_not_found: {
426
+ readonly code: 606;
427
+ readonly httpStatus: 404;
428
+ readonly retryable: false;
429
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
430
+ };
431
+ readonly request_timeout: {
432
+ readonly code: 301;
433
+ readonly httpStatus: 504;
434
+ readonly retryable: true;
435
+ readonly aliases: readonly ["timeout"];
436
+ };
437
+ readonly service_error: {
438
+ readonly code: 303;
439
+ readonly httpStatus: 500;
440
+ readonly retryable: true;
441
+ readonly aliases: readonly ["server_unknown_error"];
442
+ };
443
+ };
444
+ };
445
+ readonly removeChatThreadMember: {
446
+ readonly range: "110,201,210,301,303,606";
447
+ readonly localErrors: {
448
+ readonly removeChatThreadMember: {
449
+ readonly validation_invalid: {
450
+ readonly code: 110;
451
+ readonly retryable: false;
452
+ };
453
+ };
454
+ readonly removeMember: {
455
+ readonly validation_invalid: {
456
+ readonly code: 110;
457
+ readonly retryable: false;
458
+ };
459
+ };
460
+ };
461
+ readonly errors: {
462
+ readonly not_login: {
463
+ readonly code: 201;
464
+ readonly httpStatus: 401;
465
+ readonly retryable: false;
466
+ readonly aliases: readonly ["unauthorized"];
467
+ };
468
+ readonly permission_denied: {
469
+ readonly code: 210;
470
+ readonly httpStatus: 403;
471
+ readonly retryable: false;
472
+ readonly aliases: readonly ["group_authorization", "forbidden"];
473
+ };
474
+ readonly resource_not_found: {
475
+ readonly code: 606;
476
+ readonly httpStatus: 404;
477
+ readonly retryable: false;
478
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
479
+ };
480
+ readonly request_timeout: {
481
+ readonly code: 301;
482
+ readonly httpStatus: 504;
483
+ readonly retryable: true;
484
+ readonly aliases: readonly ["timeout"];
485
+ };
486
+ readonly service_error: {
487
+ readonly code: 303;
488
+ readonly httpStatus: 500;
489
+ readonly retryable: true;
490
+ readonly aliases: readonly ["server_unknown_error"];
491
+ };
492
+ };
493
+ };
494
+ readonly getChatThreadLastMessageList: {
495
+ readonly range: "110,201,210,301,303,606";
496
+ readonly localErrors: {
497
+ readonly getChatThreadLastMessageList: {
498
+ readonly validation_invalid: {
499
+ readonly code: 110;
500
+ readonly retryable: false;
501
+ };
502
+ };
503
+ };
504
+ readonly errors: {
505
+ readonly not_login: {
506
+ readonly code: 201;
507
+ readonly httpStatus: 401;
508
+ readonly retryable: false;
509
+ readonly aliases: readonly ["unauthorized"];
510
+ };
511
+ readonly permission_denied: {
512
+ readonly code: 210;
513
+ readonly httpStatus: 403;
514
+ readonly retryable: false;
515
+ readonly aliases: readonly ["group_authorization", "forbidden"];
516
+ };
517
+ readonly resource_not_found: {
518
+ readonly code: 606;
519
+ readonly httpStatus: 404;
520
+ readonly retryable: false;
521
+ readonly aliases: readonly ["service_resource_not_found", "THREAD_NOT_FOUND"];
522
+ };
523
+ readonly request_timeout: {
524
+ readonly code: 301;
525
+ readonly httpStatus: 504;
526
+ readonly retryable: true;
527
+ readonly aliases: readonly ["timeout"];
528
+ };
529
+ readonly service_error: {
530
+ readonly code: 303;
531
+ readonly httpStatus: 500;
532
+ readonly retryable: true;
533
+ readonly aliases: readonly ["server_unknown_error"];
534
+ };
535
+ };
536
+ };
537
+ };
538
+ };