slack-ruby-client 0.14.6 → 1.0.0

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