slack-ruby-client 0.13.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/.github/workflows/integration_test.yml +26 -0
  4. data/.github/workflows/lint.yml +14 -0
  5. data/.github/workflows/pr_lint.yml +21 -0
  6. data/.github/workflows/test.yml +36 -0
  7. data/.gitignore +5 -3
  8. data/.rubocop.yml +34 -5
  9. data/.rubocop_todo.yml +180 -46
  10. data/.ruby-version +1 -0
  11. data/CHANGELOG.md +119 -2
  12. data/CONTRIBUTING.md +23 -11
  13. data/Dangerfile +2 -0
  14. data/Gemfile +22 -5
  15. data/Gemfile.danger +6 -0
  16. data/LICENSE.md +1 -1
  17. data/README.md +236 -101
  18. data/RELEASING.md +2 -2
  19. data/Rakefile +2 -1
  20. data/UPGRADING.md +100 -2
  21. data/bin/commands/admin_analytics.rb +16 -0
  22. data/bin/commands/admin_apps.rb +51 -0
  23. data/bin/commands/admin_apps_approved.rb +17 -0
  24. data/bin/commands/admin_apps_requests.rb +28 -0
  25. data/bin/commands/admin_apps_restricted.rb +17 -0
  26. data/bin/commands/admin_audit_anomaly_allow.rb +23 -0
  27. data/bin/commands/admin_auth_policy.rb +39 -0
  28. data/bin/commands/admin_barriers.rb +47 -0
  29. data/bin/commands/admin_conversations.rb +171 -0
  30. data/bin/commands/admin_conversations_ekm.rb +17 -0
  31. data/bin/commands/admin_conversations_restrictAccess.rb +37 -0
  32. data/bin/commands/admin_emoji.rb +54 -0
  33. data/bin/commands/admin_inviteRequests.rb +36 -0
  34. data/bin/commands/admin_inviteRequests_approved.rb +16 -0
  35. data/bin/commands/admin_inviteRequests_denied.rb +16 -0
  36. data/bin/commands/admin_teams.rb +27 -0
  37. data/bin/commands/admin_teams_admins.rb +16 -0
  38. data/bin/commands/admin_teams_owners.rb +16 -0
  39. data/bin/commands/admin_teams_settings.rb +64 -0
  40. data/bin/commands/admin_usergroups.rb +48 -0
  41. data/bin/commands/admin_users.rb +98 -0
  42. data/bin/commands/admin_users_session.rb +78 -0
  43. data/bin/commands/admin_users_unsupportedVersions.rb +15 -0
  44. data/bin/commands/api.rb +1 -1
  45. data/bin/commands/apps.rb +15 -0
  46. data/bin/commands/apps_connections.rb +13 -0
  47. data/bin/commands/apps_event_authorizations.rb +16 -0
  48. data/bin/commands/apps_manifest.rb +52 -0
  49. data/bin/commands/auth.rb +1 -0
  50. data/bin/commands/auth_teams.rb +16 -0
  51. data/bin/commands/bookmarks.rb +53 -0
  52. data/bin/commands/bots.rb +2 -0
  53. data/bin/commands/calls.rb +52 -0
  54. data/bin/commands/calls_participants.rb +25 -0
  55. data/bin/commands/chat.rb +61 -14
  56. data/bin/commands/chat_scheduledMessages.rb +19 -0
  57. data/bin/commands/conversations.rb +82 -10
  58. data/bin/commands/dialog.rb +1 -0
  59. data/bin/commands/dnd.rb +6 -3
  60. data/bin/commands/emoji.rb +1 -0
  61. data/bin/commands/files.rb +34 -18
  62. data/bin/commands/files_comments.rb +1 -21
  63. data/bin/commands/files_remote.rb +78 -0
  64. data/bin/commands/migration.rb +2 -0
  65. data/bin/commands/oauth.rb +2 -14
  66. data/bin/commands/oauth_v2.rb +29 -0
  67. data/bin/commands/openid_connect.rb +27 -0
  68. data/bin/commands/pins.rb +3 -6
  69. data/bin/commands/reactions.rb +3 -3
  70. data/bin/commands/reminders.rb +7 -0
  71. data/bin/commands/rtm.rb +1 -15
  72. data/bin/commands/search.rb +6 -1
  73. data/bin/commands/stars.rb +8 -6
  74. data/bin/commands/team.rb +6 -0
  75. data/bin/commands/team_billing.rb +13 -0
  76. data/bin/commands/team_preferences.rb +13 -0
  77. data/bin/commands/team_profile.rb +1 -0
  78. data/bin/commands/tooling_tokens.rb +14 -0
  79. data/bin/commands/usergroups.rb +7 -1
  80. data/bin/commands/usergroups_users.rb +3 -0
  81. data/bin/commands/users.rb +6 -4
  82. data/bin/commands/users_admin.rb +1 -0
  83. data/bin/commands/users_prefs.rb +1 -0
  84. data/bin/commands/users_profile.rb +6 -5
  85. data/bin/commands/views.rb +50 -0
  86. data/bin/commands/workflows.rb +38 -0
  87. data/bin/commands.rb +41 -8
  88. data/bin/slack +3 -4
  89. data/examples/hi_real_time_and_web/Gemfile +1 -0
  90. data/examples/hi_real_time_and_web/hi.rb +7 -3
  91. data/examples/hi_real_time_async_async/Gemfile +1 -0
  92. data/examples/hi_real_time_async_async/hi.rb +6 -2
  93. data/examples/hi_web/Gemfile +1 -0
  94. data/examples/hi_web/hi.rb +1 -0
  95. data/examples/new_ticket/Gemfile +1 -0
  96. data/examples/new_ticket/new_ticket.rb +1 -0
  97. data/lib/slack/config.rb +2 -2
  98. data/lib/slack/events/config.rb +32 -0
  99. data/lib/slack/events/request.rb +72 -0
  100. data/lib/slack/logger.rb +6 -5
  101. data/lib/slack/messages/formatting.rb +1 -0
  102. data/lib/slack/messages/message.rb +1 -4
  103. data/lib/slack/real_time/api/message.rb +6 -3
  104. data/lib/slack/real_time/api/message_id.rb +1 -0
  105. data/lib/slack/real_time/api/ping.rb +5 -2
  106. data/lib/slack/real_time/api/templates/event_handler.erb +5 -1
  107. data/lib/slack/real_time/api/typing.rb +5 -2
  108. data/lib/slack/real_time/client.rb +105 -54
  109. data/lib/slack/real_time/concurrency/async.rb +77 -6
  110. data/lib/slack/real_time/concurrency.rb +1 -2
  111. data/lib/slack/real_time/config.rb +9 -13
  112. data/lib/slack/real_time/models/base.rb +1 -4
  113. data/lib/slack/real_time/models/bot.rb +1 -0
  114. data/lib/slack/real_time/models/channel.rb +5 -0
  115. data/lib/slack/real_time/models/im.rb +1 -0
  116. data/lib/slack/real_time/models/{group.rb → mpim.rb} +2 -1
  117. data/lib/slack/real_time/models/team.rb +1 -0
  118. data/lib/slack/real_time/models/user.rb +1 -0
  119. data/lib/slack/real_time/models.rb +3 -1
  120. data/lib/slack/real_time/socket.rb +45 -17
  121. data/lib/slack/real_time/stores/base.rb +28 -14
  122. data/lib/slack/real_time/stores/starter.rb +325 -297
  123. data/lib/slack/real_time/stores/store.rb +271 -196
  124. data/lib/slack/real_time/stores.rb +2 -7
  125. data/lib/slack/version.rb +2 -1
  126. data/lib/slack/web/api/endpoints/admin_analytics.rb +28 -0
  127. data/lib/slack/web/api/endpoints/admin_apps.rb +78 -0
  128. data/lib/slack/web/api/endpoints/admin_apps_approved.rb +35 -0
  129. data/lib/slack/web/api/endpoints/admin_apps_requests.rb +51 -0
  130. data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +35 -0
  131. data/lib/slack/web/api/endpoints/admin_audit_anomaly_allow.rb +34 -0
  132. data/lib/slack/web/api/endpoints/admin_auth_policy.rb +72 -0
  133. data/lib/slack/web/api/endpoints/admin_barriers.rb +82 -0
  134. data/lib/slack/web/api/endpoints/admin_conversations.rb +264 -0
  135. data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +35 -0
  136. data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +61 -0
  137. data/lib/slack/web/api/endpoints/admin_emoji.rb +88 -0
  138. data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +61 -0
  139. data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +33 -0
  140. data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +33 -0
  141. data/lib/slack/web/api/endpoints/admin_teams.rb +50 -0
  142. data/lib/slack/web/api/endpoints/admin_teams_admins.rb +34 -0
  143. data/lib/slack/web/api/endpoints/admin_teams_owners.rb +34 -0
  144. data/lib/slack/web/api/endpoints/admin_teams_settings.rb +99 -0
  145. data/lib/slack/web/api/endpoints/admin_usergroups.rb +77 -0
  146. data/lib/slack/web/api/endpoints/admin_users.rb +163 -0
  147. data/lib/slack/web/api/endpoints/admin_users_session.rb +122 -0
  148. data/lib/slack/web/api/endpoints/admin_users_unsupportedVersions.rb +25 -0
  149. data/lib/slack/web/api/endpoints/api.rb +2 -3
  150. data/lib/slack/web/api/endpoints/apps.rb +27 -0
  151. data/lib/slack/web/api/endpoints/apps_connections.rb +21 -0
  152. data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +34 -0
  153. data/lib/slack/web/api/endpoints/apps_manifest.rb +77 -0
  154. data/lib/slack/web/api/endpoints/auth.rb +2 -1
  155. data/lib/slack/web/api/endpoints/auth_teams.rb +33 -0
  156. data/lib/slack/web/api/endpoints/bookmarks.rb +88 -0
  157. data/lib/slack/web/api/endpoints/bots.rb +4 -1
  158. data/lib/slack/web/api/endpoints/calls.rb +83 -0
  159. data/lib/slack/web/api/endpoints/calls_participants.rb +42 -0
  160. data/lib/slack/web/api/endpoints/chat.rb +168 -65
  161. data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +40 -0
  162. data/lib/slack/web/api/endpoints/conversations.rb +182 -67
  163. data/lib/slack/web/api/endpoints/dialog.rb +5 -4
  164. data/lib/slack/web/api/endpoints/dnd.rb +9 -4
  165. data/lib/slack/web/api/endpoints/emoji.rb +1 -0
  166. data/lib/slack/web/api/endpoints/files.rb +69 -37
  167. data/lib/slack/web/api/endpoints/files_comments.rb +4 -36
  168. data/lib/slack/web/api/endpoints/files_remote.rb +127 -0
  169. data/lib/slack/web/api/endpoints/migration.rb +6 -3
  170. data/lib/slack/web/api/endpoints/oauth.rb +7 -31
  171. data/lib/slack/web/api/endpoints/oauth_v2.rb +48 -0
  172. data/lib/slack/web/api/endpoints/openid_connect.rb +42 -0
  173. data/lib/slack/web/api/endpoints/pins.rb +11 -18
  174. data/lib/slack/web/api/endpoints/reactions.rb +22 -21
  175. data/lib/slack/web/api/endpoints/reminders.rb +23 -10
  176. data/lib/slack/web/api/endpoints/rtm.rb +3 -25
  177. data/lib/slack/web/api/endpoints/search.rb +31 -16
  178. data/lib/slack/web/api/endpoints/stars.rb +14 -11
  179. data/lib/slack/web/api/endpoints/team.rb +15 -4
  180. data/lib/slack/web/api/endpoints/team_billing.rb +21 -0
  181. data/lib/slack/web/api/endpoints/team_preferences.rb +21 -0
  182. data/lib/slack/web/api/endpoints/team_profile.rb +2 -1
  183. data/lib/slack/web/api/endpoints/tooling_tokens.rb +24 -0
  184. data/lib/slack/web/api/endpoints/usergroups.rb +31 -20
  185. data/lib/slack/web/api/endpoints/usergroups_users.rb +13 -8
  186. data/lib/slack/web/api/endpoints/users.rb +24 -23
  187. data/lib/slack/web/api/endpoints/users_admin.rb +3 -2
  188. data/lib/slack/web/api/endpoints/users_prefs.rb +1 -0
  189. data/lib/slack/web/api/endpoints/users_profile.rb +8 -7
  190. data/lib/slack/web/api/endpoints/views.rb +102 -0
  191. data/lib/slack/web/api/endpoints/workflows.rb +61 -0
  192. data/lib/slack/web/api/endpoints.rb +82 -18
  193. data/lib/slack/web/api/error.rb +1 -0
  194. data/lib/slack/web/api/errors/server_error.rb +37 -0
  195. data/lib/slack/web/api/errors/slack_error.rb +14 -1
  196. data/lib/slack/web/api/errors/too_many_requests_error.rb +2 -4
  197. data/lib/slack/web/api/errors.rb +1116 -0
  198. data/lib/slack/web/api/mixins/{channels.id.rb → conversations.id.rb} +5 -6
  199. data/lib/slack/web/api/mixins/ids.id.rb +3 -2
  200. data/lib/slack/web/api/mixins/users.id.rb +3 -4
  201. data/lib/slack/web/api/mixins/users.search.rb +3 -1
  202. data/lib/slack/web/api/mixins.rb +2 -2
  203. data/lib/slack/web/api/patches/chat.attachments-blocks.patch +69 -0
  204. data/lib/slack/web/api/patches/{dialog.1.open-json-support.patch → dialog.encoded-json.patch} +4 -4
  205. data/lib/slack/web/api/patches/views.view-json.patch +55 -0
  206. data/lib/slack/web/api/templates/command.erb +1 -0
  207. data/lib/slack/web/api/templates/commands.erb +1 -0
  208. data/lib/slack/web/api/templates/endpoints.erb +2 -2
  209. data/lib/slack/web/api/templates/errors.erb +20 -0
  210. data/lib/slack/web/api/templates/method.erb +6 -2
  211. data/lib/slack/web/api/templates/method_spec.erb +2 -1
  212. data/lib/slack/web/client.rb +2 -1
  213. data/lib/slack/web/config.rb +5 -2
  214. data/lib/slack/web/faraday/connection.rb +24 -20
  215. data/lib/slack/web/faraday/request.rb +5 -1
  216. data/lib/slack/web/faraday/response/raise_error.rb +14 -7
  217. data/lib/slack/web/faraday/response/wrap_error.rb +24 -0
  218. data/lib/slack/web/pagination/cursor.rb +7 -7
  219. data/lib/slack-ruby-client.rb +12 -5
  220. data/lib/slack.rb +1 -0
  221. data/lib/slack_ruby_client.rb +1 -0
  222. data/lib/tasks/git.rake +1 -0
  223. data/lib/tasks/real_time.rake +51 -21
  224. data/lib/tasks/update.rake +1 -0
  225. data/lib/tasks/web.rake +48 -12
  226. data/screenshots/create-app.png +0 -0
  227. data/slack-ruby-client.gemspec +7 -12
  228. data/spec/fixtures/slack/web/429_error.yml +50 -54
  229. data/spec/fixtures/slack/web/auth_test_error.yml +51 -18
  230. data/spec/fixtures/slack/web/auth_test_success.yml +50 -26
  231. data/spec/fixtures/slack/web/conversations_info.yml +167 -0
  232. data/spec/fixtures/slack/web/conversations_setTopic.yml +84 -0
  233. data/spec/fixtures/slack/web/conversations_setTopic_one_page.yml +172 -0
  234. data/spec/fixtures/slack/web/conversations_setTopic_paginated.yml +253 -0
  235. data/spec/fixtures/slack/web/paginated_users_list.yml +501 -69
  236. data/spec/fixtures/slack/web/rtm_connect.yml +347 -26
  237. data/spec/fixtures/slack/web/users_info.yml +153 -69
  238. data/spec/fixtures/slack/web/users_list.yml +102 -41
  239. data/spec/fixtures/slack/web/views_open_error.yml +83 -0
  240. data/spec/integration/integration_spec.rb +115 -47
  241. data/spec/slack/config_spec.rb +2 -0
  242. data/spec/slack/events/config_spec.rb +35 -0
  243. data/spec/slack/events/request_spec.rb +188 -0
  244. data/spec/slack/messages/formatting_spec.rb +35 -13
  245. data/spec/slack/real_time/api/message_spec.rb +7 -2
  246. data/spec/slack/real_time/api/ping_spec.rb +3 -1
  247. data/spec/slack/real_time/api/typing_spec.rb +6 -2
  248. data/spec/slack/real_time/client_spec.rb +300 -142
  249. data/spec/slack/real_time/concurrency/it_behaves_like_a_realtime_socket.rb +2 -0
  250. data/spec/slack/real_time/concurrency/with_concurrency_spec.rb +10 -0
  251. data/spec/slack/real_time/concurrency/without_concurrency_spec.rb +10 -0
  252. data/spec/slack/real_time/event_handlers/bot_spec.rb +20 -17
  253. data/spec/slack/real_time/event_handlers/event_handlers_spec.rb +3 -2
  254. data/spec/slack/real_time/event_handlers/im_spec.rb +31 -27
  255. data/spec/slack/real_time/event_handlers/{group_spec.rb → private_channel_spec.rb} +36 -27
  256. data/spec/slack/real_time/event_handlers/{channel_spec.rb → public_channel_spec.rb} +31 -24
  257. data/spec/slack/real_time/event_handlers/team_spec.rb +8 -7
  258. data/spec/slack/real_time/event_handlers/user_spec.rb +7 -5
  259. data/spec/slack/real_time/rtm_connect_spec.rb +2 -1
  260. data/spec/slack/real_time/stores/store_spec.rb +50 -0
  261. data/spec/slack/slack_spec.rb +41 -6
  262. data/spec/slack/version_spec.rb +2 -1
  263. data/spec/slack/web/api/endpoints/admin_analytics_spec.rb +13 -0
  264. data/spec/slack/web/api/endpoints/admin_apps_approved_spec.rb +8 -0
  265. data/spec/slack/web/api/endpoints/admin_apps_requests_spec.rb +13 -0
  266. data/spec/slack/web/api/endpoints/admin_apps_restricted_spec.rb +8 -0
  267. data/spec/slack/web/api/endpoints/admin_apps_spec.rb +18 -0
  268. data/spec/slack/web/api/endpoints/admin_audit_anomaly_allow_spec.rb +8 -0
  269. data/spec/slack/web/api/endpoints/admin_auth_policy_spec.rb +35 -0
  270. data/spec/slack/web/api/endpoints/admin_barriers_spec.rb +38 -0
  271. data/spec/slack/web/api/endpoints/admin_conversations_ekm_spec.rb +8 -0
  272. data/spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb +32 -0
  273. data/spec/slack/web/api/endpoints/admin_conversations_spec.rb +98 -0
  274. data/spec/slack/web/api/endpoints/admin_emoji_spec.rb +37 -0
  275. data/spec/slack/web/api/endpoints/admin_inviteRequests_approved_spec.rb +8 -0
  276. data/spec/slack/web/api/endpoints/admin_inviteRequests_denied_spec.rb +8 -0
  277. data/spec/slack/web/api/endpoints/admin_inviteRequests_spec.rb +18 -0
  278. data/spec/slack/web/api/endpoints/admin_teams_admins_spec.rb +13 -0
  279. data/spec/slack/web/api/endpoints/admin_teams_owners_spec.rb +13 -0
  280. data/spec/slack/web/api/endpoints/admin_teams_settings_spec.rb +53 -0
  281. data/spec/slack/web/api/endpoints/admin_teams_spec.rb +16 -0
  282. data/spec/slack/web/api/endpoints/admin_usergroups_spec.rb +37 -0
  283. data/spec/slack/web/api/endpoints/admin_users_session_spec.rb +41 -0
  284. data/spec/slack/web/api/endpoints/admin_users_spec.rb +67 -0
  285. data/spec/slack/web/api/endpoints/admin_users_unsupportedVersions_spec.rb +8 -0
  286. data/spec/slack/web/api/endpoints/api_spec.rb +1 -0
  287. data/spec/slack/web/api/endpoints/apps_connections_spec.rb +8 -0
  288. data/spec/slack/web/api/endpoints/apps_event_authorizations_spec.rb +13 -0
  289. data/spec/slack/web/api/endpoints/apps_manifest_spec.rb +36 -0
  290. data/spec/slack/web/api/endpoints/apps_spec.rb +16 -0
  291. data/spec/slack/web/api/endpoints/{apps_permissions_resources_spec.rb → auth_teams_spec.rb} +2 -1
  292. data/spec/slack/web/api/endpoints/bookmarks_spec.rb +40 -0
  293. data/spec/slack/web/api/endpoints/bots_spec.rb +1 -0
  294. data/spec/slack/web/api/endpoints/calls_participants_spec.rb +24 -0
  295. data/spec/slack/web/api/endpoints/calls_spec.rb +31 -0
  296. data/spec/slack/web/api/endpoints/chat_scheduledMessages_spec.rb +8 -0
  297. data/spec/slack/web/api/endpoints/custom_specs/auth_spec.rb +9 -7
  298. data/spec/slack/web/api/endpoints/custom_specs/chat_spec.rb +144 -40
  299. data/spec/slack/web/api/endpoints/custom_specs/conversations_spec.rb +13 -0
  300. data/spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb +18 -6
  301. data/spec/slack/web/api/endpoints/custom_specs/users_spec.rb +8 -3
  302. data/spec/slack/web/api/endpoints/custom_specs/views_spec.rb +112 -0
  303. data/spec/slack/web/api/endpoints/dnd_spec.rb +4 -3
  304. data/spec/slack/web/api/endpoints/emoji_spec.rb +1 -0
  305. data/spec/slack/web/api/endpoints/files_comments_spec.rb +3 -21
  306. data/spec/slack/web/api/endpoints/files_remote_spec.rb +24 -0
  307. data/spec/slack/web/api/endpoints/files_spec.rb +18 -4
  308. data/spec/slack/web/api/endpoints/migration_spec.rb +1 -0
  309. data/spec/slack/web/api/endpoints/oauth_spec.rb +1 -22
  310. data/spec/slack/web/api/endpoints/oauth_v2_spec.rb +16 -0
  311. data/spec/slack/web/api/endpoints/openid_connect_spec.rb +8 -0
  312. data/spec/slack/web/api/endpoints/pins_spec.rb +1 -0
  313. data/spec/slack/web/api/endpoints/reactions_spec.rb +8 -1
  314. data/spec/slack/web/api/endpoints/reminders_spec.rb +3 -2
  315. data/spec/slack/web/api/endpoints/rtm_spec.rb +1 -0
  316. data/spec/slack/web/api/endpoints/search_spec.rb +1 -0
  317. data/spec/slack/web/api/endpoints/stars_spec.rb +1 -0
  318. data/spec/slack/web/api/endpoints/{apps_permissions_scopes_spec.rb → team_billing_spec.rb} +2 -1
  319. data/spec/slack/web/api/endpoints/team_preferences_spec.rb +8 -0
  320. data/spec/slack/web/api/endpoints/team_profile_spec.rb +1 -0
  321. data/spec/slack/web/api/endpoints/team_spec.rb +1 -0
  322. data/spec/slack/web/api/endpoints/tooling_tokens_spec.rb +13 -0
  323. data/spec/slack/web/api/endpoints/usergroups_spec.rb +1 -0
  324. data/spec/slack/web/api/endpoints/usergroups_users_spec.rb +3 -2
  325. data/spec/slack/web/api/endpoints/users_admin_spec.rb +1 -0
  326. data/spec/slack/web/api/endpoints/users_prefs_spec.rb +1 -0
  327. data/spec/slack/web/api/endpoints/users_profile_spec.rb +1 -0
  328. data/spec/slack/web/api/endpoints/workflows_spec.rb +26 -0
  329. data/spec/slack/web/api/error_spec.rb +7 -7
  330. data/spec/slack/web/api/errors/slack_error_spec.rb +26 -7
  331. data/spec/slack/web/api/mixins/conversations_list_spec.rb +21 -0
  332. data/spec/slack/web/api/mixins/conversations_spec.rb +45 -0
  333. data/spec/slack/web/api/mixins/users_spec.rb +19 -8
  334. data/spec/slack/web/api/pagination/cursor_spec.rb +47 -15
  335. data/spec/slack/web/client_spec.rb +199 -22
  336. data/spec/slack/web/faraday/request_spec.rb +80 -0
  337. data/spec/slack/web/faraday/response/raise_error_spec.rb +48 -12
  338. data/spec/spec_helper.rb +9 -2
  339. data/spec/support/queue_with_timeout.rb +5 -4
  340. data/spec/support/real_time/concurrency/mock.rb +1 -0
  341. data/spec/support/real_time/connected_client.rb +6 -6
  342. data/spec/support/real_time/event.rb +1 -0
  343. data/spec/support/real_time/loaded_client.rb +120 -0
  344. data/spec/support/token.rb +1 -0
  345. data/spec/support/vcr.rb +37 -1
  346. metadata +174 -262
  347. data/.travis.yml +0 -32
  348. data/bin/commands/apps_permissions.rb +0 -22
  349. data/bin/commands/apps_permissions_resources.rb +0 -14
  350. data/bin/commands/apps_permissions_scopes.rb +0 -12
  351. data/bin/commands/apps_permissions_users.rb +0 -25
  352. data/bin/commands/channels.rb +0 -175
  353. data/bin/commands/groups.rb +0 -174
  354. data/bin/commands/im.rb +0 -67
  355. data/bin/commands/mpim.rb +0 -65
  356. data/examples/hi_real_time/Gemfile +0 -5
  357. data/examples/hi_real_time/hi.gif +0 -0
  358. data/examples/hi_real_time/hi.rb +0 -37
  359. data/examples/hi_real_time_async_celluloid/Gemfile +0 -6
  360. data/examples/hi_real_time_async_celluloid/Procfile +0 -2
  361. data/examples/hi_real_time_async_celluloid/hi.rb +0 -35
  362. data/examples/hi_real_time_async_eventmachine/Gemfile +0 -6
  363. data/examples/hi_real_time_async_eventmachine/Procfile +0 -2
  364. data/examples/hi_real_time_async_eventmachine/hi.rb +0 -35
  365. data/lib/slack/real_time/concurrency/celluloid.rb +0 -118
  366. data/lib/slack/real_time/concurrency/eventmachine.rb +0 -66
  367. data/lib/slack/web/api/endpoints/apps_permissions.rb +0 -35
  368. data/lib/slack/web/api/endpoints/apps_permissions_resources.rb +0 -30
  369. data/lib/slack/web/api/endpoints/apps_permissions_scopes.rb +0 -20
  370. data/lib/slack/web/api/endpoints/apps_permissions_users.rb +0 -49
  371. data/lib/slack/web/api/endpoints/channels.rb +0 -266
  372. data/lib/slack/web/api/endpoints/groups.rb +0 -265
  373. data/lib/slack/web/api/endpoints/im.rb +0 -113
  374. data/lib/slack/web/api/endpoints/mpim.rb +0 -108
  375. data/lib/slack/web/api/endpoints/presence.rb +0 -23
  376. data/lib/slack/web/api/mixins/channels.id.json +0 -20
  377. data/lib/slack/web/api/mixins/groups.id.json +0 -20
  378. data/lib/slack/web/api/mixins/groups.id.rb +0 -26
  379. data/lib/slack/web/api/patches/chat.1.text-attachments-required.patch +0 -13
  380. data/lib/slack/web/api/patches/chat.2.attachments-json.patch +0 -17
  381. data/lib/slack/web/api/patches/chat.3.update-attachments-support.patch +0 -21
  382. data/lib/slack/web/api/patches/chat.4.postEphemeral-attachments-support.patch +0 -17
  383. data/lib/slack/web/api/patches/chat.5.postEphemeral-text-or-attachments.patch +0 -13
  384. data/screenshots/register-bot.png +0 -0
  385. data/spec/fixtures/slack/web/503_error.yml +0 -14
  386. data/spec/fixtures/slack/web/channels_info.yml +0 -46
  387. data/spec/fixtures/slack/web/groups_info.yml +0 -43
  388. data/spec/fixtures/slack/web/rtm_start.yml +0 -104
  389. data/spec/slack/real_time/concurrency/celluloid_spec.rb +0 -106
  390. data/spec/slack/real_time/concurrency/eventmachine_spec.rb +0 -47
  391. data/spec/slack/real_time/rtm_start_spec.rb +0 -13
  392. data/spec/slack/real_time/store_spec.rb +0 -11
  393. data/spec/slack/web/api/endpoints/apps_permissions_spec.rb +0 -15
  394. data/spec/slack/web/api/endpoints/apps_permissions_users_spec.rb +0 -18
  395. data/spec/slack/web/api/endpoints/conversations_spec.rb +0 -100
  396. data/spec/slack/web/api/endpoints/custom_specs/channels_spec.rb +0 -11
  397. data/spec/slack/web/api/endpoints/custom_specs/groups_spec.rb +0 -11
  398. data/spec/slack/web/api/endpoints/im_spec.rb +0 -38
  399. data/spec/slack/web/api/endpoints/mpim_spec.rb +0 -38
  400. data/spec/slack/web/api/errors/service_unavailable_spec.rb +0 -14
  401. data/spec/slack/web/api/mixins/channels_spec.rb +0 -33
  402. data/spec/slack/web/api/mixins/groups_spec.rb +0 -33
@@ -0,0 +1,1116 @@
1
+ # frozen_string_literal: true
2
+ # This file was auto-generated by lib/tasks/web.rake
3
+
4
+ module Slack
5
+ module Web
6
+ module Api
7
+ module Errors
8
+ class AccessDenied < SlackError; end
9
+ class Accesslimited < SlackError; end
10
+ class AccountInactive < SlackError; end
11
+ class AdminUnauthorized < SlackError; end
12
+ class AlreadyApproved < SlackError; end
13
+ class AlreadyArchived < SlackError; end
14
+ class AlreadyInChannel < SlackError; end
15
+ class AlreadyInTeam < SlackError; end
16
+ class AlreadyInTeamInvitedUser < SlackError; end
17
+ class AlreadyInvited < SlackError; end
18
+ class AlreadyPinned < SlackError; end
19
+ class AlreadyProcessed < SlackError; end
20
+ class AlreadyReacted < SlackError; end
21
+ class AlreadyStarred < SlackError; end
22
+ class AltTxtTooLarge < SlackError; end
23
+ class AppManagementAppNotInstalledOnOrg < SlackError; end
24
+ class AppMissingActionUrl < SlackError; end
25
+ class AppNotEligible < SlackError; end
26
+ class AppNotFound < SlackError; end
27
+ class AppRestrictedOrgWide < SlackError; end
28
+ class ApprovalInactive < SlackError; end
29
+ class ApprovalNotFound < SlackError; end
30
+ class AsUserNotSupported < SlackError; end
31
+ class AtLeastOneSessionSettingRequired < SlackError; end
32
+ class AuthMismatch < SlackError; end
33
+ class AutoProvisionFailure < SlackError; end
34
+ class BadClientSecret < SlackError; end
35
+ class BadHandle < SlackError; end
36
+ class BadImage < SlackError; end
37
+ class BadRedirectUri < SlackError; end
38
+ class BadTimestamp < SlackError; end
39
+ class BadTitle < SlackError; end
40
+ class BadToken < SlackError; end
41
+ class BadUrl < SlackError; end
42
+ class BadUsers < SlackError; end
43
+ class BarrierAlreadyExists < SlackError; end
44
+ class BarrierNotFound < SlackError; end
45
+ class BarrieredFromUsergroupsNotFound < SlackError; end
46
+ class BlockMismatch < SlackError; end
47
+ class BotNotFound < SlackError; end
48
+ class BotUserRequired < SlackError; end
49
+ class BotsNotAllowed < SlackError; end
50
+ class BotsNotFound < SlackError; end
51
+ class CanNotUninstall < SlackError; end
52
+ class CannotAddBot < SlackError; end
53
+ class CannotAddLegacyDisconnectedChannelToWorkspaces < SlackError; end
54
+ class CannotAddMoreChannelsToGroup < SlackError; end
55
+ class CannotAddMoreGroupsToChannel < SlackError; end
56
+ class CannotAddOthers < SlackError; end
57
+ class CannotAddOthersRecurring < SlackError; end
58
+ class CannotAddProfileOnlyUser < SlackError; end
59
+ class CannotAddSlackbot < SlackError; end
60
+ class CannotAuthUser < SlackError; end
61
+ class CannotCompleteOthers < SlackError; end
62
+ class CannotCompleteRecurring < SlackError; end
63
+ class CannotCreateChannel < SlackError; end
64
+ class CannotCreateDialog < SlackError; end
65
+ class CannotFindChannel < SlackError; end
66
+ class CannotFindMessage < SlackError; end
67
+ class CannotFindService < SlackError; end
68
+ class CannotInstallAnOrgInstalledApp < SlackError; end
69
+ class CannotInvalidatePrimaryOwner < SlackError; end
70
+ class CannotKickHomeTeam < SlackError; end
71
+ class CannotKickTeam < SlackError; end
72
+ class CannotModifyPrimaryOwner < SlackError; end
73
+ class CannotMoveLocalChannel < SlackError; end
74
+ class CannotParse < SlackError; end
75
+ class CannotParseAttachment < SlackError; end
76
+ class CannotPrompt < SlackError; end
77
+ class CannotResetBot < SlackError; end
78
+ class CannotResetPrimaryOwner < SlackError; end
79
+ class CannotSetBothNumMinutesAndIsIndefinite < SlackError; end
80
+ class CannotSetThisGuestToRegularAtTeamLevel < SlackError; end
81
+ class CannotShareCrossWorkspaceChannel < SlackError; end
82
+ class CannotShareMandatoryChannel < SlackError; end
83
+ class CannotUnfurlMessage < SlackError; end
84
+ class CannotUnfurlUrl < SlackError; end
85
+ class CannotUpdateAdminUser < SlackError; end
86
+ class CantArchiveGeneral < SlackError; end
87
+ class CantArchiveRequired < SlackError; end
88
+ class CantBroadcastMessage < SlackError; end
89
+ class CantDelete < SlackError; end
90
+ class CantDeleteFile < SlackError; end
91
+ class CantDeleteMessage < SlackError; end
92
+ class CantInvite < SlackError; end
93
+ class CantInviteSelf < SlackError; end
94
+ class CantKickFromGeneral < SlackError; end
95
+ class CantKickSelf < SlackError; end
96
+ class CantLeaveGeneral < SlackError; end
97
+ class CantUpdateMessage < SlackError; end
98
+ class ChannelArchived < SlackError; end
99
+ class ChannelCannotBeUnshared < SlackError; end
100
+ class ChannelConversionInProgress < SlackError; end
101
+ class ChannelIsNotPrivate < SlackError; end
102
+ class ChannelMentionSyncRequired < SlackError; end
103
+ class ChannelNotArchived < SlackError; end
104
+ class ChannelNotFound < SlackError; end
105
+ class ChannelTypeNotSupported < SlackError; end
106
+ class ClientIdTokenMismatch < SlackError; end
107
+ class CodeAlreadyUsed < SlackError; end
108
+ class ConnectedTeamPassedInIsNotTopLevelTeam < SlackError; end
109
+ class ConnectionLimitExceeded < SlackError; end
110
+ class ConnectionLimitExceededPending < SlackError; end
111
+ class CouldNotArchiveChannel < SlackError; end
112
+ class CouldNotConvertChannel < SlackError; end
113
+ class CouldNotCreateChannel < SlackError; end
114
+ class CouldNotCreateWorkspace < SlackError; end
115
+ class CouldNotDeleteChannel < SlackError; end
116
+ class CouldNotExport < SlackError; end
117
+ class CouldNotGetConversationPrefs < SlackError; end
118
+ class CouldNotGetRetention < SlackError; end
119
+ class CouldNotGetTeams < SlackError; end
120
+ class CouldNotRemoveRetention < SlackError; end
121
+ class CouldNotRenameChannel < SlackError; end
122
+ class CouldNotSetChannelPref < SlackError; end
123
+ class CouldNotSetRetention < SlackError; end
124
+ class CouldNotSetTeamsForChannel < SlackError; end
125
+ class CouldNotUnarchiveChannel < SlackError; end
126
+ class CustomIntegrationNotAllowedAtEnterprise < SlackError; end
127
+ class DataNotAvailable < SlackError; end
128
+ class DefaultChannelRestricted < SlackError; end
129
+ class DefaultOrgWideChannel < SlackError; end
130
+ class DeprecatedEndpoint < SlackError; end
131
+ class DescriptionTooLong < SlackError; end
132
+ class DiscoverabilitySettingInvalid < SlackError; end
133
+ class DomainTaken < SlackError; end
134
+ class DuplicateChannelNotFound < SlackError; end
135
+ class DuplicateExternalId < SlackError; end
136
+ class DuplicateMessageNotFound < SlackError; end
137
+ class EditWindowClosed < SlackError; end
138
+ class EkmAccessDenied < SlackError; end
139
+ class EmailDoesNotMatch < SlackError; end
140
+ class EmailTaken < SlackError; end
141
+ class EmojiLimitReached < SlackError; end
142
+ class EmojiNotFound < SlackError; end
143
+ class EndpointUnavailable < SlackError; end
144
+ class EnterpriseIsRestricted < SlackError; end
145
+ class EnterpriseNotFound < SlackError; end
146
+ class EntityNotFound < SlackError; end
147
+ class ErrorBadFormat < SlackError; end
148
+ class ErrorBadNameI18n < SlackError; end
149
+ class ErrorBadUpload < SlackError; end
150
+ class ErrorBadWide < SlackError; end
151
+ class ErrorInvalidAlias < SlackError; end
152
+ class ErrorInvalidEmojiToRename < SlackError; end
153
+ class ErrorMissingName < SlackError; end
154
+ class ErrorNameTaken < SlackError; end
155
+ class ErrorNameTakenI18n < SlackError; end
156
+ class ErrorNoImage < SlackError; end
157
+ class ErrorTooBig < SlackError; end
158
+ class ExchangedTriggerId < SlackError; end
159
+ class ExpiredTriggerId < SlackError; end
160
+ class ExternalChannelMigrating < SlackError; end
161
+ class ExternalTeamNotConnectedToThisOrg < SlackError; end
162
+ class ExternallySharedOrDisconnectedChannel < SlackError; end
163
+ class FailToGetTeamsForRestrictedUser < SlackError; end
164
+ class FailedAddingCollaborator < SlackError; end
165
+ class FailedCreatingApp < SlackError; end
166
+ class FailedExport < SlackError; end
167
+ class FailedForSomeUsers < SlackError; end
168
+ class FailedLookingUpUser < SlackError; end
169
+ class FailedSendingDialog < SlackError; end
170
+ class FailedToAddEmoji < SlackError; end
171
+ class FailedToAliasEmoji < SlackError; end
172
+ class FailedToFetchActiveTeam < SlackError; end
173
+ class FailedToFetchInfo < SlackError; end
174
+ class FailedToRemoveGroupUsers < SlackError; end
175
+ class FailedToRemoveUserFromWorkspace < SlackError; end
176
+ class FailedToRenameEmoji < SlackError; end
177
+ class FailedToSendInvite < SlackError; end
178
+ class FailedToSetDefaultChannels < SlackError; end
179
+ class FailedToSetDescription < SlackError; end
180
+ class FailedToSetDiscoverability < SlackError; end
181
+ class FailedToSetExpiration < SlackError; end
182
+ class FailedToSetIcon < SlackError; end
183
+ class FailedToSetName < SlackError; end
184
+ class FailedToSetUserToAdmin < SlackError; end
185
+ class FailedToSetUserToOwner < SlackError; end
186
+ class FailedToSetUserToRegular < SlackError; end
187
+ class FailedToStartTrial < SlackError; end
188
+ class FailedToUnlinkChannel < SlackError; end
189
+ class FailedToUnshare < SlackError; end
190
+ class FailedToValidateCaller < SlackError; end
191
+ class FailedToValidateChannels < SlackError; end
192
+ class FailedToValidateCustomMessage < SlackError; end
193
+ class FailedToValidateExpiration < SlackError; end
194
+ class FailedToValidateTeam < SlackError; end
195
+ class FailureRemovingEmoji < SlackError; end
196
+ class FatalError < SlackError; end
197
+ class FeatureNotEnabled < SlackError; end
198
+ class FetchMembersFailed < SlackError; end
199
+ class FileCommentNotFound < SlackError; end
200
+ class FileDeleted < SlackError; end
201
+ class FileDeletingDisabled < SlackError; end
202
+ class FileNotFound < SlackError; end
203
+ class FileNotShared < SlackError; end
204
+ class FileNotYetAvailable < SlackError; end
205
+ class FileUnderReview < SlackError; end
206
+ class FileUpdateFailed < SlackError; end
207
+ class FileUploadSizeRestricted < SlackError; end
208
+ class FileUploadsDisabled < SlackError; end
209
+ class ForbiddenHandle < SlackError; end
210
+ class ForbiddenTeam < SlackError; end
211
+ class GroupAlreadyLinkedToChannel < SlackError; end
212
+ class GroupMustNotBeEmpty < SlackError; end
213
+ class GroupNotFound < SlackError; end
214
+ class HandleAlreadyExists < SlackError; end
215
+ class HasAlreadyConnectedToOrg < SlackError; end
216
+ class HashConflict < SlackError; end
217
+ class InactiveCall < SlackError; end
218
+ class InactiveInvite < SlackError; end
219
+ class InsecureRequest < SlackError; end
220
+ class InternalError < SlackError; end
221
+ class InvalidAction < SlackError; end
222
+ class InvalidActor < SlackError; end
223
+ class InvalidApp < SlackError; end
224
+ class InvalidAppId < SlackError; end
225
+ class InvalidArgName < SlackError; end
226
+ class InvalidArgs < SlackError; end
227
+ class InvalidArguments < SlackError; end
228
+ class InvalidArrayArg < SlackError; end
229
+ class InvalidAttachments < SlackError; end
230
+ class InvalidAuth < SlackError; end
231
+ class InvalidBlocks < SlackError; end
232
+ class InvalidBlocksFormat < SlackError; end
233
+ class InvalidBookmarkType < SlackError; end
234
+ class InvalidCallId < SlackError; end
235
+ class InvalidChannel < SlackError; end
236
+ class InvalidChannelId < SlackError; end
237
+ class InvalidChannelProvided < SlackError; end
238
+ class InvalidChannelType < SlackError; end
239
+ class InvalidChannelsLimit < SlackError; end
240
+ class InvalidCharset < SlackError; end
241
+ class InvalidChildType < SlackError; end
242
+ class InvalidClientId < SlackError; end
243
+ class InvalidCode < SlackError; end
244
+ class InvalidCreatedBy < SlackError; end
245
+ class InvalidCursor < SlackError; end
246
+ class InvalidDate < SlackError; end
247
+ class InvalidDuration < SlackError; end
248
+ class InvalidEmail < SlackError; end
249
+ class InvalidEmoji < SlackError; end
250
+ class InvalidEmojiNotAllowed < SlackError; end
251
+ class InvalidEntityId < SlackError; end
252
+ class InvalidEventContext < SlackError; end
253
+ class InvalidExternalId < SlackError; end
254
+ class InvalidFieldOrData < SlackError; end
255
+ class InvalidFormData < SlackError; end
256
+ class InvalidGrantType < SlackError; end
257
+ class InvalidGroupProvided < SlackError; end
258
+ class InvalidHostTeam < SlackError; end
259
+ class InvalidInputs < SlackError; end
260
+ class InvalidLimit < SlackError; end
261
+ class InvalidLink < SlackError; end
262
+ class InvalidManifest < SlackError; end
263
+ class InvalidMetadataFilterKeys < SlackError; end
264
+ class InvalidMetadataFormat < SlackError; end
265
+ class InvalidMetadataSchema < SlackError; end
266
+ class InvalidName < SlackError; end
267
+ class InvalidNameMaxlength < SlackError; end
268
+ class InvalidNamePunctuation < SlackError; end
269
+ class InvalidNameRequired < SlackError; end
270
+ class InvalidNameSpecials < SlackError; end
271
+ class InvalidOutputs < SlackError; end
272
+ class InvalidParentType < SlackError; end
273
+ class InvalidPayload < SlackError; end
274
+ class InvalidPermissions < SlackError; end
275
+ class InvalidPostType < SlackError; end
276
+ class InvalidPresence < SlackError; end
277
+ class InvalidPrivacy < SlackError; end
278
+ class InvalidProfile < SlackError; end
279
+ class InvalidRecipientTeam < SlackError; end
280
+ class InvalidRefreshToken < SlackError; end
281
+ class InvalidRequest < SlackError; end
282
+ class InvalidRequestId < SlackError; end
283
+ class InvalidRestrictedSubjects < SlackError; end
284
+ class InvalidRoleForUser < SlackError; end
285
+ class InvalidScheduledMessageId < SlackError; end
286
+ class InvalidScopes < SlackError; end
287
+ class InvalidSearchChannelType < SlackError; end
288
+ class InvalidSort < SlackError; end
289
+ class InvalidSortDir < SlackError; end
290
+ class InvalidSource < SlackError; end
291
+ class InvalidStartTime < SlackError; end
292
+ class InvalidStepStatus < SlackError; end
293
+ class InvalidTargetTeam < SlackError; end
294
+ class InvalidTeam < SlackError; end
295
+ class InvalidTeamId < SlackError; end
296
+ class InvalidTeamIds < SlackError; end
297
+ class InvalidTime < SlackError; end
298
+ class InvalidTimestamp < SlackError; end
299
+ class InvalidTitle < SlackError; end
300
+ class InvalidToken < SlackError; end
301
+ class InvalidTrigger < SlackError; end
302
+ class InvalidTriggerId < SlackError; end
303
+ class InvalidTsLatest < SlackError; end
304
+ class InvalidTsOldest < SlackError; end
305
+ class InvalidType < SlackError; end
306
+ class InvalidTypes < SlackError; end
307
+ class InvalidUnfurlId < SlackError; end
308
+ class InvalidUnfurlsFormat < SlackError; end
309
+ class InvalidUrl < SlackError; end
310
+ class InvalidUser < SlackError; end
311
+ class InvalidUserCombination < SlackError; end
312
+ class InvalidUserId < SlackError; end
313
+ class InvalidUsers < SlackError; end
314
+ class InvalidValue < SlackError; end
315
+ class InviteFromSameOrg < SlackError; end
316
+ class InviteLookupError < SlackError; end
317
+ class InviteNotFound < SlackError; end
318
+ class InviteUsed < SlackError; end
319
+ class InvitedUserNotCreated < SlackError; end
320
+ class InvitedUserNotReactivated < SlackError; end
321
+ class InviteeCantSeeChannel < SlackError; end
322
+ class InvitorCannotSeeChannel < SlackError; end
323
+ class IsArchived < SlackError; end
324
+ class IsBot < SlackError; end
325
+ class IsInactive < SlackError; end
326
+ class IsPendingConnectedToOrg < SlackError; end
327
+ class LastMember < SlackError; end
328
+ class LeavingTeamNotInChannel < SlackError; end
329
+ class LeavingTeamRequired < SlackError; end
330
+ class LegacyConnectionInvalidOrg < SlackError; end
331
+ class LegacyConnectionLimitExceeded < SlackError; end
332
+ class LimitRequired < SlackError; end
333
+ class LinkNotFound < SlackError; end
334
+ class MalwareDetected < SlackError; end
335
+ class ManagedChannelNotSupported < SlackError; end
336
+ class MemberAnalyticsDisabled < SlackError; end
337
+ class MemberLimitExceeded < SlackError; end
338
+ class MessageNotFound < SlackError; end
339
+ class MessageTooLong < SlackError; end
340
+ class MessagesTabDisabled < SlackError; end
341
+ class MetadataMustBeSentFromApp < SlackError; end
342
+ class MetadataNotAvailable < SlackError; end
343
+ class MetadataOnlyDoesNotSupportDate < SlackError; end
344
+ class MetadataTooLarge < SlackError; end
345
+ class MethodDeprecated < SlackError; end
346
+ class MethodNotSupportedForChannelType < SlackError; end
347
+ class MigrationInProgress < SlackError; end
348
+ class MissingArgs < SlackError; end
349
+ class MissingArgument < SlackError; end
350
+ class MissingChannel < SlackError; end
351
+ class MissingDialog < SlackError; end
352
+ class MissingDuration < SlackError; end
353
+ class MissingPostType < SlackError; end
354
+ class MissingProfileId < SlackError; end
355
+ class MissingResource < SlackError; end
356
+ class MissingScope < SlackError; end
357
+ class MissingSource < SlackError; end
358
+ class MissingSubteamName < SlackError; end
359
+ class MissingTargetTeam < SlackError; end
360
+ class MissingTeam < SlackError; end
361
+ class MissingTrigger < SlackError; end
362
+ class MissingTs < SlackError; end
363
+ class MissingUnfurlId < SlackError; end
364
+ class MissingUnfurls < SlackError; end
365
+ class MissingUser < SlackError; end
366
+ class MsgTooLong < SlackError; end
367
+ class MustClearBothStatusTextAndStatusEmoji < SlackError; end
368
+ class MustProvideTeamDomain < SlackError; end
369
+ class MustProvideTeamName < SlackError; end
370
+ class MustRevokeAccess < SlackError; end
371
+ class NameAlreadyExists < SlackError; end
372
+ class NameTaken < SlackError; end
373
+ class NameTakenInOrg < SlackError; end
374
+ class NameTooLong < SlackError; end
375
+ class NoActiveSessions < SlackError; end
376
+ class NoAliasSelected < SlackError; end
377
+ class NoBotUserForApp < SlackError; end
378
+ class NoChannel < SlackError; end
379
+ class NoChannelMemberships < SlackError; end
380
+ class NoDualBroadcastContentUpdate < SlackError; end
381
+ class NoImageUploaded < SlackError; end
382
+ class NoItemSpecified < SlackError; end
383
+ class NoLocalUserOnTeam < SlackError; end
384
+ class NoPermission < SlackError; end
385
+ class NoPin < SlackError; end
386
+ class NoReaction < SlackError; end
387
+ class NoResolutionFound < SlackError; end
388
+ class NoScopes < SlackError; end
389
+ class NoSuchSubteam < SlackError; end
390
+ class NoTeamIdsGiven < SlackError; end
391
+ class NoTeamsToDisconnect < SlackError; end
392
+ class NoText < SlackError; end
393
+ class NoUser < SlackError; end
394
+ class NoUsersProvided < SlackError; end
395
+ class NotAdmin < SlackError; end
396
+ class NotAllowed < SlackError; end
397
+ class NotAllowedForGridWorkspace < SlackError; end
398
+ class NotAllowedTokenType < SlackError; end
399
+ class NotAnAdmin < SlackError; end
400
+ class NotAnEnterprise < SlackError; end
401
+ class NotAppAdmin < SlackError; end
402
+ class NotArchived < SlackError; end
403
+ class NotAuthed < SlackError; end
404
+ class NotAuthorized < SlackError; end
405
+ class NotBearerToken < SlackError; end
406
+ class NotEnabled < SlackError; end
407
+ class NotEnoughUsers < SlackError; end
408
+ class NotEnterpriseTeam < SlackError; end
409
+ class NotFound < SlackError; end
410
+ class NotImplemented < SlackError; end
411
+ class NotInChannel < SlackError; end
412
+ class NotInDnd < SlackError; end
413
+ class NotOwner < SlackError; end
414
+ class NotPaid < SlackError; end
415
+ class NotPinnable < SlackError; end
416
+ class NotPinned < SlackError; end
417
+ class NotReactable < SlackError; end
418
+ class NotStarred < SlackError; end
419
+ class NotSupported < SlackError; end
420
+ class NotVisible < SlackError; end
421
+ class OauthAuthorizationUrlMismatch < SlackError; end
422
+ class OneOrMoreInvalidChannels < SlackError; end
423
+ class OrgLevelEmailDisplayDisabled < SlackError; end
424
+ class OrgLoginRequired < SlackError; end
425
+ class OrgNotFound < SlackError; end
426
+ class OrgUserNotInTeam < SlackError; end
427
+ class OverMaxEntityLimit < SlackError; end
428
+ class OverPaginationLimit < SlackError; end
429
+ class PaginationNotAvailable < SlackError; end
430
+ class PaidOnly < SlackError; end
431
+ class PaidTeamsOnly < SlackError; end
432
+ class ParentBookmarkDisabled < SlackError; end
433
+ class ParentWithLink < SlackError; end
434
+ class PartialProfileSetFailed < SlackError; end
435
+ class PermissionDenied < SlackError; end
436
+ class PlanUpgradeRequired < SlackError; end
437
+ class PolicyNotFound < SlackError; end
438
+ class PostingToChannelDenied < SlackError; end
439
+ class PostingToGeneralChannelDenied < SlackError; end
440
+ class PreviewFeatureNotAvailable < SlackError; end
441
+ class PrimaryUsergroupNotFound < SlackError; end
442
+ class ProfileSetFailed < SlackError; end
443
+ class PublicVideoNotAllowed < SlackError; end
444
+ class PublishedAppOnly < SlackError; end
445
+ class PushLimitReached < SlackError; end
446
+ class RateLimited < SlackError; end
447
+ class Ratelimit < SlackError; end
448
+ class Ratelimited < SlackError; end
449
+ class RecipientsNotSpecified < SlackError; end
450
+ class RequestAlreadyResolved < SlackError; end
451
+ class RequestIdOrAppIdIsRequired < SlackError; end
452
+ class RequestIdRequiredForCustomIntegrations < SlackError; end
453
+ class RequestTimeout < SlackError; end
454
+ class ReservedName < SlackError; end
455
+ class ResizedButStillTooLarge < SlackError; end
456
+ class RestrictedAction < SlackError; end
457
+ class RestrictedActionNonThreadableChannel < SlackError; end
458
+ class RestrictedActionReadOnlyChannel < SlackError; end
459
+ class RestrictedActionThreadLocked < SlackError; end
460
+ class RestrictedActionThreadOnlyChannel < SlackError; end
461
+ class RestrictedTooMany < SlackError; end
462
+ class RetentionOverrideNotAllowed < SlackError; end
463
+ class SentRecently < SlackError; end
464
+ class ServiceUnavailable < SlackError; end
465
+ class SessionExpired < SlackError; end
466
+ class SessionInvalidationFailed < SlackError; end
467
+ class SessionNotFound < SlackError; end
468
+ class SessionResetNotAllowed < SlackError; end
469
+ class SlackConnectBlockedFileType < SlackError; end
470
+ class SlackConnectClipSharingBlocked < SlackError; end
471
+ class SlackConnectFileLinkSharingBlocked < SlackError; end
472
+ class SlackConnectFileUploadSharingBlocked < SlackError; end
473
+ class SnippetTooLarge < SlackError; end
474
+ class SnoozeEndFailed < SlackError; end
475
+ class SnoozeFailed < SlackError; end
476
+ class SpecifyEnterpriseOrTeams < SlackError; end
477
+ class StorageLimitReached < SlackError; end
478
+ class SubteamMaxUsersExceeded < SlackError; end
479
+ class SudoRequired < SlackError; end
480
+ class TeamAccessNotGranted < SlackError; end
481
+ class TeamAddedToOrg < SlackError; end
482
+ class TeamIdOrOrgRequired < SlackError; end
483
+ class TeamIdRequiredForEnterprise < SlackError; end
484
+ class TeamNotFound < SlackError; end
485
+ class TeamNotOnEnterprise < SlackError; end
486
+ class TeamsNotFound < SlackError; end
487
+ class ThreadLocked < SlackError; end
488
+ class ThreadNotFound < SlackError; end
489
+ class TimeInPast < SlackError; end
490
+ class TimeTooFar < SlackError; end
491
+ class TokenAlreadyExchanged < SlackError; end
492
+ class TokenExpired < SlackError; end
493
+ class TokenRevoked < SlackError; end
494
+ class TokenRotationNotEnabled < SlackError; end
495
+ class TooLarge < SlackError; end
496
+ class TooLong < SlackError; end
497
+ class TooManyAttachments < SlackError; end
498
+ class TooManyBookmarks < SlackError; end
499
+ class TooManyContactCards < SlackError; end
500
+ class TooManyConvosForAppOnTeam < SlackError; end
501
+ class TooManyConvosForTeam < SlackError; end
502
+ class TooManyEmails < SlackError; end
503
+ class TooManyEmoji < SlackError; end
504
+ class TooManyFrames < SlackError; end
505
+ class TooManyIds < SlackError; end
506
+ class TooManyIdsProvided < SlackError; end
507
+ class TooManyLinkedChannels < SlackError; end
508
+ class TooManyMembers < SlackError; end
509
+ class TooManyPins < SlackError; end
510
+ class TooManyReactions < SlackError; end
511
+ class TooManyTargetTeams < SlackError; end
512
+ class TooManyTeams < SlackError; end
513
+ class TooManyTeamsProvided < SlackError; end
514
+ class TooManyUsers < SlackError; end
515
+ class TriggerExchanged < SlackError; end
516
+ class TriggerExpired < SlackError; end
517
+ class TwoFactorSetupRequired < SlackError; end
518
+ class UnableToLinkIdpGroupAndChannel < SlackError; end
519
+ class UnableToProcessPostRequest < SlackError; end
520
+ class UnableToUnlinkIdpGroupAndChannel < SlackError; end
521
+ class UnableToUpdateExistingSessions < SlackError; end
522
+ class UnknownError < SlackError; end
523
+ class UnknownMethod < SlackError; end
524
+ class UnknownSnippetType < SlackError; end
525
+ class UnknownSubtype < SlackError; end
526
+ class UnknownType < SlackError; end
527
+ class UnsupportedActionDescribe < SlackError; end
528
+ class UnsupportedActionPut < SlackError; end
529
+ class UnsupportedArguments < SlackError; end
530
+ class UnsupportedContextType < SlackError; end
531
+ class UnsupportedTeamType < SlackError; end
532
+ class UpdateFailed < SlackError; end
533
+ class UraMaxChannels < SlackError; end
534
+ class UrlInMessage < SlackError; end
535
+ class UserAlreadyDeleted < SlackError; end
536
+ class UserAlreadyTeamMember < SlackError; end
537
+ class UserCannotCreateChannel < SlackError; end
538
+ class UserDisabled < SlackError; end
539
+ class UserDoesNotOwnChannel < SlackError; end
540
+ class UserIsAlreadyDeleted < SlackError; end
541
+ class UserIsBot < SlackError; end
542
+ class UserIsNotAGuest < SlackError; end
543
+ class UserIsRestricted < SlackError; end
544
+ class UserIsUltraRestricted < SlackError; end
545
+ class UserMustBeAdmin < SlackError; end
546
+ class UserMustBeInWorkspace < SlackError; end
547
+ class UserNotFound < SlackError; end
548
+ class UserNotInChannel < SlackError; end
549
+ class UserNotVisible < SlackError; end
550
+ class UserRequiredToAcceptAsPrivateButCannot < SlackError; end
551
+ class UserSessionResetFailed < SlackError; end
552
+ class UsergroupNotFound < SlackError; end
553
+ class UsergroupNotLinkedToTeam < SlackError; end
554
+ class UsergroupTeamNotProvisioned < SlackError; end
555
+ class UsersListNotSupplied < SlackError; end
556
+ class UsersNotFound < SlackError; end
557
+ class ValidationErrors < SlackError; end
558
+ class ViewTooLarge < SlackError; end
559
+
560
+ ERROR_CLASSES = {
561
+ 'access_denied' => AccessDenied,
562
+ 'accesslimited' => Accesslimited,
563
+ 'account_inactive' => AccountInactive,
564
+ 'admin_unauthorized' => AdminUnauthorized,
565
+ 'already_approved' => AlreadyApproved,
566
+ 'already_archived' => AlreadyArchived,
567
+ 'already_in_channel' => AlreadyInChannel,
568
+ 'already_in_team' => AlreadyInTeam,
569
+ 'already_in_team_invited_user' => AlreadyInTeamInvitedUser,
570
+ 'already_invited' => AlreadyInvited,
571
+ 'already_pinned' => AlreadyPinned,
572
+ 'already_processed' => AlreadyProcessed,
573
+ 'already_reacted' => AlreadyReacted,
574
+ 'already_starred' => AlreadyStarred,
575
+ 'alt_txt_too_large' => AltTxtTooLarge,
576
+ 'app_management_app_not_installed_on_org' => AppManagementAppNotInstalledOnOrg,
577
+ 'app_missing_action_url' => AppMissingActionUrl,
578
+ 'app_not_eligible' => AppNotEligible,
579
+ 'app_not_found' => AppNotFound,
580
+ 'app_restricted_org_wide' => AppRestrictedOrgWide,
581
+ 'approval_inactive' => ApprovalInactive,
582
+ 'approval_not_found' => ApprovalNotFound,
583
+ 'as_user_not_supported' => AsUserNotSupported,
584
+ 'at_least_one_session_setting_required' => AtLeastOneSessionSettingRequired,
585
+ 'auth_mismatch' => AuthMismatch,
586
+ 'auto_provision_failure' => AutoProvisionFailure,
587
+ 'bad_client_secret' => BadClientSecret,
588
+ 'bad_handle' => BadHandle,
589
+ 'bad_image' => BadImage,
590
+ 'bad_redirect_uri' => BadRedirectUri,
591
+ 'bad_timestamp' => BadTimestamp,
592
+ 'bad_title' => BadTitle,
593
+ 'bad_token' => BadToken,
594
+ 'bad_url' => BadUrl,
595
+ 'bad_users' => BadUsers,
596
+ 'barrier_already_exists' => BarrierAlreadyExists,
597
+ 'barrier_not_found' => BarrierNotFound,
598
+ 'barriered_from_usergroups_not_found' => BarrieredFromUsergroupsNotFound,
599
+ 'block_mismatch' => BlockMismatch,
600
+ 'bot_not_found' => BotNotFound,
601
+ 'bot_user_required' => BotUserRequired,
602
+ 'bots_not_allowed' => BotsNotAllowed,
603
+ 'bots_not_found' => BotsNotFound,
604
+ 'can_not_uninstall' => CanNotUninstall,
605
+ 'cannot_add_bot' => CannotAddBot,
606
+ 'cannot_add_legacy_disconnected_channel_to_workspaces' => CannotAddLegacyDisconnectedChannelToWorkspaces,
607
+ 'cannot_add_more_channels_to_group' => CannotAddMoreChannelsToGroup,
608
+ 'cannot_add_more_groups_to_channel' => CannotAddMoreGroupsToChannel,
609
+ 'cannot_add_others' => CannotAddOthers,
610
+ 'cannot_add_others_recurring' => CannotAddOthersRecurring,
611
+ 'cannot_add_profile_only_user' => CannotAddProfileOnlyUser,
612
+ 'cannot_add_slackbot' => CannotAddSlackbot,
613
+ 'cannot_auth_user' => CannotAuthUser,
614
+ 'cannot_complete_others' => CannotCompleteOthers,
615
+ 'cannot_complete_recurring' => CannotCompleteRecurring,
616
+ 'cannot_create_channel' => CannotCreateChannel,
617
+ 'cannot_create_dialog' => CannotCreateDialog,
618
+ 'cannot_find_channel' => CannotFindChannel,
619
+ 'cannot_find_message' => CannotFindMessage,
620
+ 'cannot_find_service' => CannotFindService,
621
+ 'cannot_install_an_org_installed_app' => CannotInstallAnOrgInstalledApp,
622
+ 'cannot_invalidate_primary_owner' => CannotInvalidatePrimaryOwner,
623
+ 'cannot_kick_home_team' => CannotKickHomeTeam,
624
+ 'cannot_kick_team' => CannotKickTeam,
625
+ 'cannot_modify_primary_owner' => CannotModifyPrimaryOwner,
626
+ 'cannot_move_local_channel' => CannotMoveLocalChannel,
627
+ 'cannot_parse' => CannotParse,
628
+ 'cannot_parse_attachment' => CannotParseAttachment,
629
+ 'cannot_prompt' => CannotPrompt,
630
+ 'cannot_reset_bot' => CannotResetBot,
631
+ 'cannot_reset_primary_owner' => CannotResetPrimaryOwner,
632
+ 'cannot_set_both_num_minutes_and_is_indefinite' => CannotSetBothNumMinutesAndIsIndefinite,
633
+ 'cannot_set_this_guest_to_regular_at_team_level' => CannotSetThisGuestToRegularAtTeamLevel,
634
+ 'cannot_share_cross_workspace_channel' => CannotShareCrossWorkspaceChannel,
635
+ 'cannot_share_mandatory_channel' => CannotShareMandatoryChannel,
636
+ 'cannot_unfurl_message' => CannotUnfurlMessage,
637
+ 'cannot_unfurl_url' => CannotUnfurlUrl,
638
+ 'cannot_update_admin_user' => CannotUpdateAdminUser,
639
+ 'cant_archive_general' => CantArchiveGeneral,
640
+ 'cant_archive_required' => CantArchiveRequired,
641
+ 'cant_broadcast_message' => CantBroadcastMessage,
642
+ 'cant_delete' => CantDelete,
643
+ 'cant_delete_file' => CantDeleteFile,
644
+ 'cant_delete_message' => CantDeleteMessage,
645
+ 'cant_invite' => CantInvite,
646
+ 'cant_invite_self' => CantInviteSelf,
647
+ 'cant_kick_from_general' => CantKickFromGeneral,
648
+ 'cant_kick_self' => CantKickSelf,
649
+ 'cant_leave_general' => CantLeaveGeneral,
650
+ 'cant_update_message' => CantUpdateMessage,
651
+ 'channel_archived' => ChannelArchived,
652
+ 'channel_cannot_be_unshared' => ChannelCannotBeUnshared,
653
+ 'channel_conversion_in_progress' => ChannelConversionInProgress,
654
+ 'channel_is_not_private' => ChannelIsNotPrivate,
655
+ 'channel_mention_sync_required' => ChannelMentionSyncRequired,
656
+ 'channel_not_archived' => ChannelNotArchived,
657
+ 'channel_not_found' => ChannelNotFound,
658
+ 'channel_type_not_supported' => ChannelTypeNotSupported,
659
+ 'client_id_token_mismatch' => ClientIdTokenMismatch,
660
+ 'code_already_used' => CodeAlreadyUsed,
661
+ 'connected_team_passed_in_is_not_top_level_team' => ConnectedTeamPassedInIsNotTopLevelTeam,
662
+ 'connection_limit_exceeded' => ConnectionLimitExceeded,
663
+ 'connection_limit_exceeded_pending' => ConnectionLimitExceededPending,
664
+ 'could_not_archive_channel' => CouldNotArchiveChannel,
665
+ 'could_not_convert_channel' => CouldNotConvertChannel,
666
+ 'could_not_create_channel' => CouldNotCreateChannel,
667
+ 'could_not_create_workspace' => CouldNotCreateWorkspace,
668
+ 'could_not_delete_channel' => CouldNotDeleteChannel,
669
+ 'could_not_export' => CouldNotExport,
670
+ 'could_not_get_conversation_prefs' => CouldNotGetConversationPrefs,
671
+ 'could_not_get_retention' => CouldNotGetRetention,
672
+ 'could_not_get_teams' => CouldNotGetTeams,
673
+ 'could_not_remove_retention' => CouldNotRemoveRetention,
674
+ 'could_not_rename_channel' => CouldNotRenameChannel,
675
+ 'could_not_set_channel_pref' => CouldNotSetChannelPref,
676
+ 'could_not_set_retention' => CouldNotSetRetention,
677
+ 'could_not_set_teams_for_channel' => CouldNotSetTeamsForChannel,
678
+ 'could_not_unarchive_channel' => CouldNotUnarchiveChannel,
679
+ 'custom_integration_not_allowed_at_enterprise' => CustomIntegrationNotAllowedAtEnterprise,
680
+ 'data_not_available' => DataNotAvailable,
681
+ 'default_channel_restricted' => DefaultChannelRestricted,
682
+ 'default_org_wide_channel' => DefaultOrgWideChannel,
683
+ 'deprecated_endpoint' => DeprecatedEndpoint,
684
+ 'description_too_long' => DescriptionTooLong,
685
+ 'discoverability_setting_invalid' => DiscoverabilitySettingInvalid,
686
+ 'domain_taken' => DomainTaken,
687
+ 'duplicate_channel_not_found' => DuplicateChannelNotFound,
688
+ 'duplicate_external_id' => DuplicateExternalId,
689
+ 'duplicate_message_not_found' => DuplicateMessageNotFound,
690
+ 'edit_window_closed' => EditWindowClosed,
691
+ 'ekm_access_denied' => EkmAccessDenied,
692
+ 'email_does_not_match' => EmailDoesNotMatch,
693
+ 'email_taken' => EmailTaken,
694
+ 'emoji_limit_reached' => EmojiLimitReached,
695
+ 'emoji_not_found' => EmojiNotFound,
696
+ 'endpoint_unavailable' => EndpointUnavailable,
697
+ 'enterprise_is_restricted' => EnterpriseIsRestricted,
698
+ 'enterprise_not_found' => EnterpriseNotFound,
699
+ 'entity_not_found' => EntityNotFound,
700
+ 'error_bad_format' => ErrorBadFormat,
701
+ 'error_bad_name_i18n' => ErrorBadNameI18n,
702
+ 'error_bad_upload' => ErrorBadUpload,
703
+ 'error_bad_wide' => ErrorBadWide,
704
+ 'error_invalid_alias' => ErrorInvalidAlias,
705
+ 'error_invalid_emoji_to_rename' => ErrorInvalidEmojiToRename,
706
+ 'error_missing_name' => ErrorMissingName,
707
+ 'error_name_taken' => ErrorNameTaken,
708
+ 'error_name_taken_i18n' => ErrorNameTakenI18n,
709
+ 'error_no_image' => ErrorNoImage,
710
+ 'error_too_big' => ErrorTooBig,
711
+ 'exchanged_trigger_id' => ExchangedTriggerId,
712
+ 'expired_trigger_id' => ExpiredTriggerId,
713
+ 'external_channel_migrating' => ExternalChannelMigrating,
714
+ 'external_team_not_connected_to_this_org' => ExternalTeamNotConnectedToThisOrg,
715
+ 'externally_shared_or_disconnected_channel' => ExternallySharedOrDisconnectedChannel,
716
+ 'fail_to_get_teams_for_restricted_user' => FailToGetTeamsForRestrictedUser,
717
+ 'failed_adding_collaborator' => FailedAddingCollaborator,
718
+ 'failed_creating_app' => FailedCreatingApp,
719
+ 'failed_export' => FailedExport,
720
+ 'failed_for_some_users' => FailedForSomeUsers,
721
+ 'failed_looking_up_user' => FailedLookingUpUser,
722
+ 'failed_sending_dialog' => FailedSendingDialog,
723
+ 'failed_to_add_emoji' => FailedToAddEmoji,
724
+ 'failed_to_alias_emoji' => FailedToAliasEmoji,
725
+ 'failed_to_fetch_active_team' => FailedToFetchActiveTeam,
726
+ 'failed_to_fetch_info' => FailedToFetchInfo,
727
+ 'failed_to_remove_group_users' => FailedToRemoveGroupUsers,
728
+ 'failed_to_remove_user_from_workspace' => FailedToRemoveUserFromWorkspace,
729
+ 'failed_to_rename_emoji' => FailedToRenameEmoji,
730
+ 'failed_to_send_invite' => FailedToSendInvite,
731
+ 'failed_to_set_default_channels' => FailedToSetDefaultChannels,
732
+ 'failed_to_set_description' => FailedToSetDescription,
733
+ 'failed_to_set_discoverability' => FailedToSetDiscoverability,
734
+ 'failed_to_set_expiration' => FailedToSetExpiration,
735
+ 'failed_to_set_icon' => FailedToSetIcon,
736
+ 'failed_to_set_name' => FailedToSetName,
737
+ 'failed_to_set_user_to_admin' => FailedToSetUserToAdmin,
738
+ 'failed_to_set_user_to_owner' => FailedToSetUserToOwner,
739
+ 'failed_to_set_user_to_regular' => FailedToSetUserToRegular,
740
+ 'failed_to_start_trial' => FailedToStartTrial,
741
+ 'failed_to_unlink_channel' => FailedToUnlinkChannel,
742
+ 'failed_to_unshare' => FailedToUnshare,
743
+ 'failed_to_validate_caller' => FailedToValidateCaller,
744
+ 'failed_to_validate_channels' => FailedToValidateChannels,
745
+ 'failed_to_validate_custom_message' => FailedToValidateCustomMessage,
746
+ 'failed_to_validate_expiration' => FailedToValidateExpiration,
747
+ 'failed_to_validate_team' => FailedToValidateTeam,
748
+ 'failure_removing_emoji' => FailureRemovingEmoji,
749
+ 'fatal_error' => FatalError,
750
+ 'feature_not_enabled' => FeatureNotEnabled,
751
+ 'fetch_members_failed' => FetchMembersFailed,
752
+ 'file_comment_not_found' => FileCommentNotFound,
753
+ 'file_deleted' => FileDeleted,
754
+ 'file_deleting_disabled' => FileDeletingDisabled,
755
+ 'file_not_found' => FileNotFound,
756
+ 'file_not_shared' => FileNotShared,
757
+ 'file_not_yet_available' => FileNotYetAvailable,
758
+ 'file_under_review' => FileUnderReview,
759
+ 'file_update_failed' => FileUpdateFailed,
760
+ 'file_upload_size_restricted' => FileUploadSizeRestricted,
761
+ 'file_uploads_disabled' => FileUploadsDisabled,
762
+ 'forbidden_handle' => ForbiddenHandle,
763
+ 'forbidden_team' => ForbiddenTeam,
764
+ 'group_already_linked_to_channel' => GroupAlreadyLinkedToChannel,
765
+ 'group_must_not_be_empty' => GroupMustNotBeEmpty,
766
+ 'group_not_found' => GroupNotFound,
767
+ 'handle_already_exists' => HandleAlreadyExists,
768
+ 'has_already_connected_to_org' => HasAlreadyConnectedToOrg,
769
+ 'hash_conflict' => HashConflict,
770
+ 'inactive_call' => InactiveCall,
771
+ 'inactive_invite' => InactiveInvite,
772
+ 'insecure_request' => InsecureRequest,
773
+ 'internal_error' => InternalError,
774
+ 'invalid_action' => InvalidAction,
775
+ 'invalid_actor' => InvalidActor,
776
+ 'invalid_app' => InvalidApp,
777
+ 'invalid_app_id' => InvalidAppId,
778
+ 'invalid_arg_name' => InvalidArgName,
779
+ 'invalid_args' => InvalidArgs,
780
+ 'invalid_arguments' => InvalidArguments,
781
+ 'invalid_array_arg' => InvalidArrayArg,
782
+ 'invalid_attachments' => InvalidAttachments,
783
+ 'invalid_auth' => InvalidAuth,
784
+ 'invalid_blocks' => InvalidBlocks,
785
+ 'invalid_blocks_format' => InvalidBlocksFormat,
786
+ 'invalid_bookmark_type' => InvalidBookmarkType,
787
+ 'invalid_call_id' => InvalidCallId,
788
+ 'invalid_channel' => InvalidChannel,
789
+ 'invalid_channel_id' => InvalidChannelId,
790
+ 'invalid_channel_provided' => InvalidChannelProvided,
791
+ 'invalid_channel_type' => InvalidChannelType,
792
+ 'invalid_channels_limit' => InvalidChannelsLimit,
793
+ 'invalid_charset' => InvalidCharset,
794
+ 'invalid_child_type' => InvalidChildType,
795
+ 'invalid_client_id' => InvalidClientId,
796
+ 'invalid_code' => InvalidCode,
797
+ 'invalid_created_by' => InvalidCreatedBy,
798
+ 'invalid_cursor' => InvalidCursor,
799
+ 'invalid_date' => InvalidDate,
800
+ 'invalid_duration' => InvalidDuration,
801
+ 'invalid_email' => InvalidEmail,
802
+ 'invalid_emoji' => InvalidEmoji,
803
+ 'invalid_emoji_not_allowed' => InvalidEmojiNotAllowed,
804
+ 'invalid_entity_id' => InvalidEntityId,
805
+ 'invalid_event_context' => InvalidEventContext,
806
+ 'invalid_external_id' => InvalidExternalId,
807
+ 'invalid_field_or_data' => InvalidFieldOrData,
808
+ 'invalid_form_data' => InvalidFormData,
809
+ 'invalid_grant_type' => InvalidGrantType,
810
+ 'invalid_group_provided' => InvalidGroupProvided,
811
+ 'invalid_host_team' => InvalidHostTeam,
812
+ 'invalid_inputs' => InvalidInputs,
813
+ 'invalid_limit' => InvalidLimit,
814
+ 'invalid_link' => InvalidLink,
815
+ 'invalid_manifest' => InvalidManifest,
816
+ 'invalid_metadata_filter_keys' => InvalidMetadataFilterKeys,
817
+ 'invalid_metadata_format' => InvalidMetadataFormat,
818
+ 'invalid_metadata_schema' => InvalidMetadataSchema,
819
+ 'invalid_name' => InvalidName,
820
+ 'invalid_name_maxlength' => InvalidNameMaxlength,
821
+ 'invalid_name_punctuation' => InvalidNamePunctuation,
822
+ 'invalid_name_required' => InvalidNameRequired,
823
+ 'invalid_name_specials' => InvalidNameSpecials,
824
+ 'invalid_outputs' => InvalidOutputs,
825
+ 'invalid_parent_type' => InvalidParentType,
826
+ 'invalid_payload' => InvalidPayload,
827
+ 'invalid_permissions' => InvalidPermissions,
828
+ 'invalid_post_type' => InvalidPostType,
829
+ 'invalid_presence' => InvalidPresence,
830
+ 'invalid_privacy' => InvalidPrivacy,
831
+ 'invalid_profile' => InvalidProfile,
832
+ 'invalid_recipient_team' => InvalidRecipientTeam,
833
+ 'invalid_refresh_token' => InvalidRefreshToken,
834
+ 'invalid_request' => InvalidRequest,
835
+ 'invalid_request_id' => InvalidRequestId,
836
+ 'invalid_restricted_subjects' => InvalidRestrictedSubjects,
837
+ 'invalid_role_for_user' => InvalidRoleForUser,
838
+ 'invalid_scheduled_message_id' => InvalidScheduledMessageId,
839
+ 'invalid_scopes' => InvalidScopes,
840
+ 'invalid_search_channel_type' => InvalidSearchChannelType,
841
+ 'invalid_sort' => InvalidSort,
842
+ 'invalid_sort_dir' => InvalidSortDir,
843
+ 'invalid_source' => InvalidSource,
844
+ 'invalid_start_time' => InvalidStartTime,
845
+ 'invalid_step_status' => InvalidStepStatus,
846
+ 'invalid_target_team' => InvalidTargetTeam,
847
+ 'invalid_team' => InvalidTeam,
848
+ 'invalid_team_id' => InvalidTeamId,
849
+ 'invalid_team_ids' => InvalidTeamIds,
850
+ 'invalid_time' => InvalidTime,
851
+ 'invalid_timestamp' => InvalidTimestamp,
852
+ 'invalid_title' => InvalidTitle,
853
+ 'invalid_token' => InvalidToken,
854
+ 'invalid_trigger' => InvalidTrigger,
855
+ 'invalid_trigger_id' => InvalidTriggerId,
856
+ 'invalid_ts_latest' => InvalidTsLatest,
857
+ 'invalid_ts_oldest' => InvalidTsOldest,
858
+ 'invalid_type' => InvalidType,
859
+ 'invalid_types' => InvalidTypes,
860
+ 'invalid_unfurl_id' => InvalidUnfurlId,
861
+ 'invalid_unfurls_format' => InvalidUnfurlsFormat,
862
+ 'invalid_url' => InvalidUrl,
863
+ 'invalid_user' => InvalidUser,
864
+ 'invalid_user_combination' => InvalidUserCombination,
865
+ 'invalid_user_id' => InvalidUserId,
866
+ 'invalid_users' => InvalidUsers,
867
+ 'invalid_value' => InvalidValue,
868
+ 'invite_from_same_org' => InviteFromSameOrg,
869
+ 'invite_lookup_error' => InviteLookupError,
870
+ 'invite_not_found' => InviteNotFound,
871
+ 'invite_used' => InviteUsed,
872
+ 'invited_user_not_created' => InvitedUserNotCreated,
873
+ 'invited_user_not_reactivated' => InvitedUserNotReactivated,
874
+ 'invitee_cant_see_channel' => InviteeCantSeeChannel,
875
+ 'invitor_cannot_see_channel' => InvitorCannotSeeChannel,
876
+ 'is_archived' => IsArchived,
877
+ 'is_bot' => IsBot,
878
+ 'is_inactive' => IsInactive,
879
+ 'is_pending_connected_to_org' => IsPendingConnectedToOrg,
880
+ 'last_member' => LastMember,
881
+ 'leaving_team_not_in_channel' => LeavingTeamNotInChannel,
882
+ 'leaving_team_required' => LeavingTeamRequired,
883
+ 'legacy_connection_invalid_org' => LegacyConnectionInvalidOrg,
884
+ 'legacy_connection_limit_exceeded' => LegacyConnectionLimitExceeded,
885
+ 'limit_required' => LimitRequired,
886
+ 'link_not_found' => LinkNotFound,
887
+ 'malware_detected' => MalwareDetected,
888
+ 'managed_channel_not_supported' => ManagedChannelNotSupported,
889
+ 'member_analytics_disabled' => MemberAnalyticsDisabled,
890
+ 'member_limit_exceeded' => MemberLimitExceeded,
891
+ 'message_not_found' => MessageNotFound,
892
+ 'message_too_long' => MessageTooLong,
893
+ 'messages_tab_disabled' => MessagesTabDisabled,
894
+ 'metadata_must_be_sent_from_app' => MetadataMustBeSentFromApp,
895
+ 'metadata_not_available' => MetadataNotAvailable,
896
+ 'metadata_only_does_not_support_date' => MetadataOnlyDoesNotSupportDate,
897
+ 'metadata_too_large' => MetadataTooLarge,
898
+ 'method_deprecated' => MethodDeprecated,
899
+ 'method_not_supported_for_channel_type' => MethodNotSupportedForChannelType,
900
+ 'migration_in_progress' => MigrationInProgress,
901
+ 'missing_args' => MissingArgs,
902
+ 'missing_argument' => MissingArgument,
903
+ 'missing_channel' => MissingChannel,
904
+ 'missing_dialog' => MissingDialog,
905
+ 'missing_duration' => MissingDuration,
906
+ 'missing_post_type' => MissingPostType,
907
+ 'missing_profile_id' => MissingProfileId,
908
+ 'missing_resource' => MissingResource,
909
+ 'missing_scope' => MissingScope,
910
+ 'missing_source' => MissingSource,
911
+ 'missing_subteam_name' => MissingSubteamName,
912
+ 'missing_target_team' => MissingTargetTeam,
913
+ 'missing_team' => MissingTeam,
914
+ 'missing_trigger' => MissingTrigger,
915
+ 'missing_ts' => MissingTs,
916
+ 'missing_unfurl_id' => MissingUnfurlId,
917
+ 'missing_unfurls' => MissingUnfurls,
918
+ 'missing_user' => MissingUser,
919
+ 'msg_too_long' => MsgTooLong,
920
+ 'must_clear_both_status_text_and_status_emoji' => MustClearBothStatusTextAndStatusEmoji,
921
+ 'must_provide_team_domain' => MustProvideTeamDomain,
922
+ 'must_provide_team_name' => MustProvideTeamName,
923
+ 'must_revoke_access' => MustRevokeAccess,
924
+ 'name_already_exists' => NameAlreadyExists,
925
+ 'name_taken' => NameTaken,
926
+ 'name_taken_in_org' => NameTakenInOrg,
927
+ 'name_too_long' => NameTooLong,
928
+ 'no_active_sessions' => NoActiveSessions,
929
+ 'no_alias_selected' => NoAliasSelected,
930
+ 'no_bot_user_for_app' => NoBotUserForApp,
931
+ 'no_channel' => NoChannel,
932
+ 'no_channel_memberships' => NoChannelMemberships,
933
+ 'no_dual_broadcast_content_update' => NoDualBroadcastContentUpdate,
934
+ 'no_image_uploaded' => NoImageUploaded,
935
+ 'no_item_specified' => NoItemSpecified,
936
+ 'no_local_user_on_team' => NoLocalUserOnTeam,
937
+ 'no_permission' => NoPermission,
938
+ 'no_pin' => NoPin,
939
+ 'no_reaction' => NoReaction,
940
+ 'no_resolution_found' => NoResolutionFound,
941
+ 'no_scopes' => NoScopes,
942
+ 'no_such_subteam' => NoSuchSubteam,
943
+ 'no_team_ids_given' => NoTeamIdsGiven,
944
+ 'no_teams_to_disconnect' => NoTeamsToDisconnect,
945
+ 'no_text' => NoText,
946
+ 'no_user' => NoUser,
947
+ 'no_users_provided' => NoUsersProvided,
948
+ 'not_admin' => NotAdmin,
949
+ 'not_allowed' => NotAllowed,
950
+ 'not_allowed_for_grid_workspace' => NotAllowedForGridWorkspace,
951
+ 'not_allowed_token_type' => NotAllowedTokenType,
952
+ 'not_an_admin' => NotAnAdmin,
953
+ 'not_an_enterprise' => NotAnEnterprise,
954
+ 'not_app_admin' => NotAppAdmin,
955
+ 'not_archived' => NotArchived,
956
+ 'not_authed' => NotAuthed,
957
+ 'not_authorized' => NotAuthorized,
958
+ 'not_bearer_token' => NotBearerToken,
959
+ 'not_enabled' => NotEnabled,
960
+ 'not_enough_users' => NotEnoughUsers,
961
+ 'not_enterprise_team' => NotEnterpriseTeam,
962
+ 'not_found' => NotFound,
963
+ 'not_implemented' => NotImplemented,
964
+ 'not_in_channel' => NotInChannel,
965
+ 'not_in_dnd' => NotInDnd,
966
+ 'not_owner' => NotOwner,
967
+ 'not_paid' => NotPaid,
968
+ 'not_pinnable' => NotPinnable,
969
+ 'not_pinned' => NotPinned,
970
+ 'not_reactable' => NotReactable,
971
+ 'not_starred' => NotStarred,
972
+ 'not_supported' => NotSupported,
973
+ 'not_visible' => NotVisible,
974
+ 'oauth_authorization_url_mismatch' => OauthAuthorizationUrlMismatch,
975
+ 'one_or_more_invalid_channels' => OneOrMoreInvalidChannels,
976
+ 'org_level_email_display_disabled' => OrgLevelEmailDisplayDisabled,
977
+ 'org_login_required' => OrgLoginRequired,
978
+ 'org_not_found' => OrgNotFound,
979
+ 'org_user_not_in_team' => OrgUserNotInTeam,
980
+ 'over_max_entity_limit' => OverMaxEntityLimit,
981
+ 'over_pagination_limit' => OverPaginationLimit,
982
+ 'pagination_not_available' => PaginationNotAvailable,
983
+ 'paid_only' => PaidOnly,
984
+ 'paid_teams_only' => PaidTeamsOnly,
985
+ 'parent_bookmark_disabled' => ParentBookmarkDisabled,
986
+ 'parent_with_link' => ParentWithLink,
987
+ 'partial_profile_set_failed' => PartialProfileSetFailed,
988
+ 'permission_denied' => PermissionDenied,
989
+ 'plan_upgrade_required' => PlanUpgradeRequired,
990
+ 'policy_not_found' => PolicyNotFound,
991
+ 'posting_to_channel_denied' => PostingToChannelDenied,
992
+ 'posting_to_general_channel_denied' => PostingToGeneralChannelDenied,
993
+ 'preview_feature_not_available' => PreviewFeatureNotAvailable,
994
+ 'primary_usergroup_not_found' => PrimaryUsergroupNotFound,
995
+ 'profile_set_failed' => ProfileSetFailed,
996
+ 'public_video_not_allowed' => PublicVideoNotAllowed,
997
+ 'published_app_only' => PublishedAppOnly,
998
+ 'push_limit_reached' => PushLimitReached,
999
+ 'rate_limited' => RateLimited,
1000
+ 'ratelimit' => Ratelimit,
1001
+ 'ratelimited' => Ratelimited,
1002
+ 'recipients_not_specified' => RecipientsNotSpecified,
1003
+ 'request_already_resolved' => RequestAlreadyResolved,
1004
+ 'request_id_or_app_id_is_required' => RequestIdOrAppIdIsRequired,
1005
+ 'request_id_required_for_custom_integrations' => RequestIdRequiredForCustomIntegrations,
1006
+ 'request_timeout' => RequestTimeout,
1007
+ 'reserved_name' => ReservedName,
1008
+ 'resized_but_still_too_large' => ResizedButStillTooLarge,
1009
+ 'restricted_action' => RestrictedAction,
1010
+ 'restricted_action_non_threadable_channel' => RestrictedActionNonThreadableChannel,
1011
+ 'restricted_action_read_only_channel' => RestrictedActionReadOnlyChannel,
1012
+ 'restricted_action_thread_locked' => RestrictedActionThreadLocked,
1013
+ 'restricted_action_thread_only_channel' => RestrictedActionThreadOnlyChannel,
1014
+ 'restricted_too_many' => RestrictedTooMany,
1015
+ 'retention_override_not_allowed' => RetentionOverrideNotAllowed,
1016
+ 'sent_recently' => SentRecently,
1017
+ 'service_unavailable' => ServiceUnavailable,
1018
+ 'session_expired' => SessionExpired,
1019
+ 'session_invalidation_failed' => SessionInvalidationFailed,
1020
+ 'session_not_found' => SessionNotFound,
1021
+ 'session_reset_not_allowed' => SessionResetNotAllowed,
1022
+ 'slack_connect_blocked_file_type' => SlackConnectBlockedFileType,
1023
+ 'slack_connect_clip_sharing_blocked' => SlackConnectClipSharingBlocked,
1024
+ 'slack_connect_file_link_sharing_blocked' => SlackConnectFileLinkSharingBlocked,
1025
+ 'slack_connect_file_upload_sharing_blocked' => SlackConnectFileUploadSharingBlocked,
1026
+ 'snippet_too_large' => SnippetTooLarge,
1027
+ 'snooze_end_failed' => SnoozeEndFailed,
1028
+ 'snooze_failed' => SnoozeFailed,
1029
+ 'specify_enterprise_or_teams' => SpecifyEnterpriseOrTeams,
1030
+ 'storage_limit_reached' => StorageLimitReached,
1031
+ 'subteam_max_users_exceeded' => SubteamMaxUsersExceeded,
1032
+ 'sudo_required' => SudoRequired,
1033
+ 'team_access_not_granted' => TeamAccessNotGranted,
1034
+ 'team_added_to_org' => TeamAddedToOrg,
1035
+ 'team_id_or_org_required' => TeamIdOrOrgRequired,
1036
+ 'team_id_required_for_enterprise' => TeamIdRequiredForEnterprise,
1037
+ 'team_not_found' => TeamNotFound,
1038
+ 'team_not_on_enterprise' => TeamNotOnEnterprise,
1039
+ 'teams_not_found' => TeamsNotFound,
1040
+ 'thread_locked' => ThreadLocked,
1041
+ 'thread_not_found' => ThreadNotFound,
1042
+ 'time_in_past' => TimeInPast,
1043
+ 'time_too_far' => TimeTooFar,
1044
+ 'token_already_exchanged' => TokenAlreadyExchanged,
1045
+ 'token_expired' => TokenExpired,
1046
+ 'token_revoked' => TokenRevoked,
1047
+ 'token_rotation_not_enabled' => TokenRotationNotEnabled,
1048
+ 'too_large' => TooLarge,
1049
+ 'too_long' => TooLong,
1050
+ 'too_many_attachments' => TooManyAttachments,
1051
+ 'too_many_bookmarks' => TooManyBookmarks,
1052
+ 'too_many_contact_cards' => TooManyContactCards,
1053
+ 'too_many_convos_for_app_on_team' => TooManyConvosForAppOnTeam,
1054
+ 'too_many_convos_for_team' => TooManyConvosForTeam,
1055
+ 'too_many_emails' => TooManyEmails,
1056
+ 'too_many_emoji' => TooManyEmoji,
1057
+ 'too_many_frames' => TooManyFrames,
1058
+ 'too_many_ids' => TooManyIds,
1059
+ 'too_many_ids_provided' => TooManyIdsProvided,
1060
+ 'too_many_linked_channels' => TooManyLinkedChannels,
1061
+ 'too_many_members' => TooManyMembers,
1062
+ 'too_many_pins' => TooManyPins,
1063
+ 'too_many_reactions' => TooManyReactions,
1064
+ 'too_many_target_teams' => TooManyTargetTeams,
1065
+ 'too_many_teams' => TooManyTeams,
1066
+ 'too_many_teams_provided' => TooManyTeamsProvided,
1067
+ 'too_many_users' => TooManyUsers,
1068
+ 'trigger_exchanged' => TriggerExchanged,
1069
+ 'trigger_expired' => TriggerExpired,
1070
+ 'two_factor_setup_required' => TwoFactorSetupRequired,
1071
+ 'unable_to_link_idp_group_and_channel' => UnableToLinkIdpGroupAndChannel,
1072
+ 'unable_to_process_post_request' => UnableToProcessPostRequest,
1073
+ 'unable_to_unlink_idp_group_and_channel' => UnableToUnlinkIdpGroupAndChannel,
1074
+ 'unable_to_update_existing_sessions' => UnableToUpdateExistingSessions,
1075
+ 'unknown_error' => UnknownError,
1076
+ 'unknown_method' => UnknownMethod,
1077
+ 'unknown_snippet_type' => UnknownSnippetType,
1078
+ 'unknown_subtype' => UnknownSubtype,
1079
+ 'unknown_type' => UnknownType,
1080
+ 'unsupported_action_describe' => UnsupportedActionDescribe,
1081
+ 'unsupported_action_put' => UnsupportedActionPut,
1082
+ 'unsupported_arguments' => UnsupportedArguments,
1083
+ 'unsupported_context_type' => UnsupportedContextType,
1084
+ 'unsupported_team_type' => UnsupportedTeamType,
1085
+ 'update_failed' => UpdateFailed,
1086
+ 'ura_max_channels' => UraMaxChannels,
1087
+ 'url_in_message' => UrlInMessage,
1088
+ 'user_already_deleted' => UserAlreadyDeleted,
1089
+ 'user_already_team_member' => UserAlreadyTeamMember,
1090
+ 'user_cannot_create_channel' => UserCannotCreateChannel,
1091
+ 'user_disabled' => UserDisabled,
1092
+ 'user_does_not_own_channel' => UserDoesNotOwnChannel,
1093
+ 'user_is_already_deleted' => UserIsAlreadyDeleted,
1094
+ 'user_is_bot' => UserIsBot,
1095
+ 'user_is_not_a_guest' => UserIsNotAGuest,
1096
+ 'user_is_restricted' => UserIsRestricted,
1097
+ 'user_is_ultra_restricted' => UserIsUltraRestricted,
1098
+ 'user_must_be_admin' => UserMustBeAdmin,
1099
+ 'user_must_be_in_workspace' => UserMustBeInWorkspace,
1100
+ 'user_not_found' => UserNotFound,
1101
+ 'user_not_in_channel' => UserNotInChannel,
1102
+ 'user_not_visible' => UserNotVisible,
1103
+ 'user_required_to_accept_as_private_but_cannot' => UserRequiredToAcceptAsPrivateButCannot,
1104
+ 'user_session_reset_failed' => UserSessionResetFailed,
1105
+ 'usergroup_not_found' => UsergroupNotFound,
1106
+ 'usergroup_not_linked_to_team' => UsergroupNotLinkedToTeam,
1107
+ 'usergroup_team_not_provisioned' => UsergroupTeamNotProvisioned,
1108
+ 'users_list_not_supplied' => UsersListNotSupplied,
1109
+ 'users_not_found' => UsersNotFound,
1110
+ 'validation_errors' => ValidationErrors,
1111
+ 'view_too_large' => ViewTooLarge,
1112
+ }.freeze
1113
+ end
1114
+ end
1115
+ end
1116
+ end