slack-ruby-client 0.16.0 → 1.1.0

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