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,500 @@
1
+ export declare const GROUP_ERROR_MAP: {
2
+ readonly common: {};
3
+ readonly apis: {
4
+ readonly createGroup: {
5
+ readonly range: "4,110,204,608";
6
+ readonly errors: {
7
+ readonly invalid_parameter: {
8
+ readonly code: 110;
9
+ readonly httpStatus: 400;
10
+ readonly retryable: false;
11
+ };
12
+ readonly illegal_argument: {
13
+ readonly code: 110;
14
+ readonly httpStatus: 400;
15
+ readonly retryable: false;
16
+ };
17
+ readonly exceed_limit: {
18
+ readonly code: 4;
19
+ readonly httpStatus: 403;
20
+ readonly retryable: false;
21
+ };
22
+ readonly group_name_violation: {
23
+ readonly code: 608;
24
+ readonly httpStatus: 403;
25
+ readonly retryable: false;
26
+ readonly aliases: readonly ["INVALID_GROUP_NAME"];
27
+ };
28
+ readonly resource_not_found: {
29
+ readonly code: 204;
30
+ readonly httpStatus: 404;
31
+ readonly retryable: false;
32
+ readonly aliases: readonly ["service_resource_not_found", "username_not_found"];
33
+ };
34
+ };
35
+ };
36
+ readonly getJoinedGroupList: {
37
+ readonly range: "";
38
+ readonly errors: {};
39
+ };
40
+ readonly getGroupInfo: {
41
+ readonly range: "606";
42
+ readonly errors: {
43
+ readonly resource_not_found: {
44
+ readonly code: 606;
45
+ readonly httpStatus: 404;
46
+ readonly retryable: false;
47
+ };
48
+ };
49
+ };
50
+ readonly getGroupInfoList: {
51
+ readonly range: "606";
52
+ readonly errors: {
53
+ readonly resource_not_found: {
54
+ readonly code: 606;
55
+ readonly httpStatus: 404;
56
+ readonly retryable: false;
57
+ };
58
+ };
59
+ };
60
+ readonly updateGroupInfo: {
61
+ readonly range: "110,603,606,607,608";
62
+ readonly errors: {
63
+ readonly group_authorization: {
64
+ readonly code: 603;
65
+ readonly httpStatus: 403;
66
+ readonly retryable: false;
67
+ };
68
+ readonly forbidden_op: {
69
+ readonly code: 603;
70
+ readonly httpStatus: 403;
71
+ readonly retryable: false;
72
+ };
73
+ readonly illegal_argument: {
74
+ readonly code: 110;
75
+ readonly httpStatus: 400;
76
+ readonly retryable: false;
77
+ };
78
+ readonly exceed_limit: {
79
+ readonly code: 110;
80
+ readonly httpStatus: 403;
81
+ readonly retryable: false;
82
+ };
83
+ readonly group_name_violation: {
84
+ readonly code: 608;
85
+ readonly httpStatus: 403;
86
+ readonly retryable: false;
87
+ };
88
+ readonly resource_not_found: {
89
+ readonly code: 606;
90
+ readonly httpStatus: 404;
91
+ readonly retryable: false;
92
+ };
93
+ readonly group_disabled: {
94
+ readonly code: 607;
95
+ readonly httpStatus: 403;
96
+ readonly retryable: false;
97
+ };
98
+ };
99
+ };
100
+ readonly changeGroupOwner: {
101
+ readonly range: "603,606";
102
+ readonly errors: {
103
+ readonly forbidden_op: {
104
+ readonly code: 603;
105
+ readonly httpStatus: 403;
106
+ readonly retryable: false;
107
+ };
108
+ readonly resource_not_found: {
109
+ readonly code: 606;
110
+ readonly httpStatus: 404;
111
+ readonly retryable: false;
112
+ };
113
+ };
114
+ };
115
+ readonly destroyGroup: {
116
+ readonly range: "603,606,607";
117
+ readonly errors: {
118
+ readonly group_authorization: {
119
+ readonly code: 603;
120
+ readonly httpStatus: 403;
121
+ readonly retryable: false;
122
+ };
123
+ readonly resource_not_found: {
124
+ readonly code: 606;
125
+ readonly httpStatus: 404;
126
+ readonly retryable: false;
127
+ };
128
+ readonly group_disabled: {
129
+ readonly code: 607;
130
+ readonly httpStatus: 403;
131
+ readonly retryable: false;
132
+ };
133
+ };
134
+ };
135
+ readonly leaveGroup: {
136
+ readonly range: "602,603,606";
137
+ readonly errors: {
138
+ readonly not_joined: {
139
+ readonly code: 602;
140
+ readonly retryable: false;
141
+ readonly aliases: readonly ["GROUP_NOT_JOINED", "group_not_joined"];
142
+ };
143
+ readonly owner_cannot_leave: {
144
+ readonly code: 603;
145
+ readonly httpStatus: 403;
146
+ readonly retryable: false;
147
+ readonly matchField: "error_description";
148
+ readonly matchPattern: "owner can not quit group";
149
+ };
150
+ readonly resource_not_found: {
151
+ readonly code: 606;
152
+ readonly httpStatus: 404;
153
+ readonly retryable: false;
154
+ };
155
+ };
156
+ };
157
+ readonly joinGroup: {
158
+ readonly range: "600-607,613";
159
+ readonly errors: {
160
+ readonly group_invalid_id: {
161
+ readonly code: 600;
162
+ readonly retryable: false;
163
+ readonly aliases: readonly ["GROUP_INVALID_ID"];
164
+ };
165
+ readonly already_joined: {
166
+ readonly code: 601;
167
+ readonly retryable: false;
168
+ readonly aliases: readonly ["ALREADY_JOINED", "GROUP_ALREADY_JOINED", "group_already_joined"];
169
+ };
170
+ readonly not_joined: {
171
+ readonly code: 602;
172
+ readonly retryable: false;
173
+ readonly aliases: readonly ["GROUP_NOT_JOINED", "group_not_joined"];
174
+ };
175
+ readonly group_authorization: {
176
+ readonly code: 603;
177
+ readonly httpStatus: 403;
178
+ readonly retryable: false;
179
+ readonly aliases: readonly ["NEED_APPROVAL", "GROUP_PERMISSION_DENIED"];
180
+ };
181
+ readonly group_full: {
182
+ readonly code: 604;
183
+ readonly httpStatus: 403;
184
+ readonly retryable: false;
185
+ readonly aliases: readonly ["GROUP_FULL", "GROUP_MEMBERS_FULL"];
186
+ readonly matchField: "error_description";
187
+ readonly matchPattern: "member list is full";
188
+ };
189
+ readonly resource_not_found: {
190
+ readonly code: 606;
191
+ readonly httpStatus: 404;
192
+ readonly retryable: false;
193
+ readonly aliases: readonly ["GROUP_NOT_FOUND", "service_resource_not_found"];
194
+ };
195
+ readonly group_disabled: {
196
+ readonly code: 607;
197
+ readonly retryable: false;
198
+ readonly aliases: readonly ["GROUP_DISABLED"];
199
+ };
200
+ readonly group_user_in_blocklist: {
201
+ readonly code: 613;
202
+ readonly httpStatus: 403;
203
+ readonly retryable: false;
204
+ readonly aliases: readonly ["GROUP_USER_IN_BLOCKLIST"];
205
+ readonly matchField: "error_description";
206
+ readonly matchPattern: "is in the blacklist";
207
+ };
208
+ };
209
+ };
210
+ readonly inviteUsersToGroup: {
211
+ readonly range: "204,603,606,607";
212
+ readonly errors: {
213
+ readonly group_authorization: {
214
+ readonly code: 603;
215
+ readonly httpStatus: 400;
216
+ readonly retryable: false;
217
+ };
218
+ readonly resource_not_found: {
219
+ readonly code: 204;
220
+ readonly httpStatus: 404;
221
+ readonly retryable: false;
222
+ readonly aliases: readonly ["service_resource_not_found", "username_not_found"];
223
+ };
224
+ readonly group_not_found: {
225
+ readonly code: 606;
226
+ readonly retryable: false;
227
+ readonly aliases: readonly ["GROUP_NOT_FOUND"];
228
+ };
229
+ readonly group_disabled: {
230
+ readonly code: 607;
231
+ readonly retryable: false;
232
+ };
233
+ };
234
+ };
235
+ readonly acceptGroupJoinRequest: {
236
+ readonly range: "";
237
+ readonly errors: {};
238
+ };
239
+ readonly rejectGroupJoinRequest: {
240
+ readonly range: "";
241
+ readonly errors: {};
242
+ };
243
+ readonly acceptInvitation: {
244
+ readonly range: "";
245
+ readonly errors: {};
246
+ };
247
+ readonly rejectInvitation: {
248
+ readonly range: "";
249
+ readonly errors: {};
250
+ };
251
+ readonly removeGroupMembers: {
252
+ readonly range: "";
253
+ readonly errors: {};
254
+ };
255
+ readonly addGroupAdmin: {
256
+ readonly range: "";
257
+ readonly errors: {};
258
+ };
259
+ readonly removeGroupAdmin: {
260
+ readonly range: "";
261
+ readonly errors: {};
262
+ };
263
+ readonly muteGroupMembers: {
264
+ readonly range: "";
265
+ readonly errors: {};
266
+ };
267
+ readonly unmuteGroupMembers: {
268
+ readonly range: "";
269
+ readonly errors: {};
270
+ };
271
+ readonly muteAllGroupMembers: {
272
+ readonly range: "";
273
+ readonly errors: {};
274
+ };
275
+ readonly unmuteAllGroupMembers: {
276
+ readonly range: "";
277
+ readonly errors: {};
278
+ };
279
+ readonly blockGroupMembers: {
280
+ readonly range: "";
281
+ readonly errors: {};
282
+ };
283
+ readonly unblockGroupMembers: {
284
+ readonly range: "";
285
+ readonly errors: {};
286
+ };
287
+ readonly addUsersToGroupAllowlist: {
288
+ readonly range: "";
289
+ readonly errors: {};
290
+ };
291
+ readonly removeUsersFromGroupAllowlist: {
292
+ readonly range: "";
293
+ readonly errors: {};
294
+ };
295
+ readonly checkIfInGroupAllowList: {
296
+ readonly range: "";
297
+ readonly errors: {};
298
+ };
299
+ readonly getGroupMemberList: {
300
+ readonly range: "606";
301
+ readonly errors: {
302
+ readonly resource_not_found: {
303
+ readonly code: 606;
304
+ readonly httpStatus: 404;
305
+ readonly retryable: false;
306
+ readonly aliases: readonly ["service_resource_not_found"];
307
+ };
308
+ };
309
+ };
310
+ readonly getGroupAdminList: {
311
+ readonly range: "606";
312
+ readonly errors: {
313
+ readonly resource_not_found: {
314
+ readonly code: 606;
315
+ readonly httpStatus: 404;
316
+ readonly retryable: false;
317
+ };
318
+ };
319
+ };
320
+ readonly getGroupMuteList: {
321
+ readonly range: "606";
322
+ readonly errors: {
323
+ readonly resource_not_found: {
324
+ readonly code: 606;
325
+ readonly httpStatus: 404;
326
+ readonly retryable: false;
327
+ };
328
+ };
329
+ };
330
+ readonly checkIfInGroupMuteList: {
331
+ readonly range: "606";
332
+ readonly errors: {
333
+ readonly resource_not_found: {
334
+ readonly code: 606;
335
+ readonly httpStatus: 404;
336
+ readonly retryable: false;
337
+ };
338
+ };
339
+ };
340
+ readonly getGroupBlocklist: {
341
+ readonly range: "606";
342
+ readonly errors: {
343
+ readonly resource_not_found: {
344
+ readonly code: 606;
345
+ readonly httpStatus: 404;
346
+ readonly retryable: false;
347
+ };
348
+ };
349
+ };
350
+ readonly getGroupAllowlist: {
351
+ readonly range: "606";
352
+ readonly errors: {
353
+ readonly resource_not_found: {
354
+ readonly code: 606;
355
+ readonly httpStatus: 404;
356
+ readonly retryable: false;
357
+ };
358
+ };
359
+ };
360
+ readonly getGroupAnnouncement: {
361
+ readonly range: "606";
362
+ readonly errors: {
363
+ readonly resource_not_found: {
364
+ readonly code: 606;
365
+ readonly httpStatus: 404;
366
+ readonly retryable: false;
367
+ };
368
+ };
369
+ };
370
+ readonly updateGroupAnnouncement: {
371
+ readonly range: "110";
372
+ readonly errors: {
373
+ readonly announcement_length_exceeded: {
374
+ readonly code: 110;
375
+ readonly httpStatus: 403;
376
+ readonly retryable: false;
377
+ readonly matchField: "error_description";
378
+ readonly matchPattern: "announce into length exceeds limit";
379
+ };
380
+ readonly announcement_info_length_exceeded: {
381
+ readonly code: 110;
382
+ readonly httpStatus: 403;
383
+ readonly retryable: false;
384
+ readonly matchField: "error_description";
385
+ readonly matchPattern: "announce info length exceeds limit";
386
+ };
387
+ };
388
+ };
389
+ readonly getGroupSharedFileList: {
390
+ readonly range: "606";
391
+ readonly errors: {
392
+ readonly resource_not_found: {
393
+ readonly code: 606;
394
+ readonly httpStatus: 404;
395
+ readonly retryable: false;
396
+ readonly aliases: readonly ["RestGroupFeignException"];
397
+ };
398
+ };
399
+ };
400
+ readonly deleteGroupSharedFile: {
401
+ readonly range: "603,605,606";
402
+ readonly errors: {
403
+ readonly group_authorization: {
404
+ readonly code: 603;
405
+ readonly retryable: false;
406
+ };
407
+ readonly file_not_found: {
408
+ readonly code: 605;
409
+ readonly retryable: false;
410
+ readonly aliases: readonly ["GROUP_SHARED_FILE_INVALID_ID"];
411
+ };
412
+ readonly resource_not_found: {
413
+ readonly code: 606;
414
+ readonly retryable: false;
415
+ };
416
+ };
417
+ };
418
+ readonly setGroupMemberAttributes: {
419
+ readonly range: "4,210,302,305,602,609-612";
420
+ readonly errors: {
421
+ readonly attributes_reach_limit: {
422
+ readonly code: 609;
423
+ readonly retryable: false;
424
+ readonly aliases: readonly ["GROUP_MEMBER_ATTRIBUTES_REACH_LIMIT"];
425
+ readonly matchField: "error_code";
426
+ readonly matchValue: 60006;
427
+ };
428
+ readonly attributes_update_failed: {
429
+ readonly code: 610;
430
+ readonly retryable: false;
431
+ readonly aliases: readonly ["GROUP_MEMBER_ATTRIBUTES_UPDATE_FAILED"];
432
+ readonly matchField: "error_code";
433
+ readonly matchValue: 60005;
434
+ };
435
+ readonly attributes_key_reach_limit: {
436
+ readonly code: 611;
437
+ readonly retryable: false;
438
+ readonly aliases: readonly ["GROUP_MEMBER_ATTRIBUTES_KEY_REACH_LIMIT"];
439
+ readonly matchField: "error_code";
440
+ readonly matchValue: 60009;
441
+ };
442
+ readonly attributes_value_reach_limit: {
443
+ readonly code: 612;
444
+ readonly retryable: false;
445
+ readonly aliases: readonly ["GROUP_MEMBER_ATTRIBUTES_VALUE_REACH_LIMIT"];
446
+ readonly matchField: "error_code";
447
+ readonly matchValue: 600010;
448
+ };
449
+ readonly not_joined: {
450
+ readonly code: 602;
451
+ readonly httpStatus: 404;
452
+ readonly retryable: false;
453
+ readonly matchField: "error_code";
454
+ readonly matchValue: 60003;
455
+ };
456
+ readonly permission_denied: {
457
+ readonly code: 210;
458
+ readonly httpStatus: 401;
459
+ readonly retryable: false;
460
+ readonly matchField: "error_code";
461
+ readonly matchValue: 60001;
462
+ };
463
+ readonly permission_denied_403: {
464
+ readonly code: 210;
465
+ readonly httpStatus: 403;
466
+ readonly retryable: false;
467
+ readonly matchField: "error_code";
468
+ readonly matchValue: 60002;
469
+ };
470
+ readonly exceed_service_limit: {
471
+ readonly code: 4;
472
+ readonly httpStatus: 400;
473
+ readonly retryable: false;
474
+ readonly matchField: "error_code";
475
+ readonly matchValue: 60007;
476
+ };
477
+ readonly service_disabled: {
478
+ readonly code: 305;
479
+ readonly httpStatus: 403;
480
+ readonly retryable: false;
481
+ readonly matchField: "error_code";
482
+ readonly matchValue: 60004;
483
+ };
484
+ };
485
+ };
486
+ readonly getGroupMembersAttributes: {
487
+ readonly range: "606";
488
+ readonly errors: {
489
+ readonly resource_not_found: {
490
+ readonly code: 606;
491
+ readonly retryable: false;
492
+ };
493
+ };
494
+ };
495
+ readonly getGroupNamecards: {
496
+ readonly range: "";
497
+ readonly errors: {};
498
+ };
499
+ };
500
+ };
@@ -0,0 +1,9 @@
1
+ export declare const CORE_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
2
+ export declare const CHAT_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
3
+ export declare const CONTACT_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
4
+ export declare const GROUP_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
5
+ export declare const CHATROOM_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
6
+ export declare const PRESENCE_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
7
+ export declare const PUSH_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
8
+ export declare const USER_INFO_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
9
+ export declare const THREAD_REST_ERROR_MAP: import("../error-map-types").RuntimeErrorMap;
@@ -0,0 +1,62 @@
1
+ export declare const PRESENCE_ERROR_MAP: {
2
+ readonly common: {};
3
+ readonly apis: {
4
+ readonly publishPresence: {
5
+ readonly range: "1100";
6
+ readonly errors: {
7
+ readonly PRESENCE_PARAM_EXCEED: {
8
+ readonly code: 1100;
9
+ readonly httpStatus: 400;
10
+ readonly retryable: false;
11
+ };
12
+ };
13
+ };
14
+ readonly subscribePresences: {
15
+ readonly range: "1100,1101";
16
+ readonly errors: {
17
+ readonly cannot_subscribe_yourself: {
18
+ readonly code: 1101;
19
+ readonly httpStatus: 400;
20
+ readonly retryable: false;
21
+ readonly matchField: "result";
22
+ readonly matchPattern: "you can't sub yourself";
23
+ };
24
+ readonly param_length_exceed: {
25
+ readonly code: 1100;
26
+ readonly httpStatus: 400;
27
+ readonly retryable: false;
28
+ };
29
+ };
30
+ };
31
+ readonly unsubscribePresence: {
32
+ readonly range: "1100";
33
+ readonly errors: {
34
+ readonly param_length_exceed: {
35
+ readonly code: 1100;
36
+ readonly httpStatus: 400;
37
+ readonly retryable: false;
38
+ };
39
+ };
40
+ };
41
+ readonly getSubscribedPresenceList: {
42
+ readonly range: "1100";
43
+ readonly errors: {
44
+ readonly param_length_exceed: {
45
+ readonly code: 1100;
46
+ readonly httpStatus: 400;
47
+ readonly retryable: false;
48
+ };
49
+ };
50
+ };
51
+ readonly getPresenceStatus: {
52
+ readonly range: "1100";
53
+ readonly errors: {
54
+ readonly param_length_exceed: {
55
+ readonly code: 1100;
56
+ readonly httpStatus: 400;
57
+ readonly retryable: false;
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };