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.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.rubocop.yml +15 -3
- data/.rubocop_todo.yml +110 -38
- data/.travis.yml +2 -5
- data/CHANGELOG.md +42 -0
- data/CONTRIBUTING.md +19 -8
- data/Dangerfile +1 -1
- data/Gemfile +1 -2
- data/LICENSE.md +1 -1
- data/README.md +38 -36
- data/RELEASING.md +1 -1
- data/UPGRADING.md +62 -2
- data/bin/commands/admin_analytics.rb +16 -0
- data/bin/commands/admin_apps.rb +26 -2
- data/bin/commands/admin_apps_requests.rb +1 -0
- data/bin/commands/admin_auth_policy.rb +39 -0
- data/bin/commands/admin_barriers.rb +47 -0
- data/bin/commands/admin_conversations.rb +155 -3
- data/bin/commands/admin_conversations_ekm.rb +17 -0
- data/bin/commands/admin_conversations_restrictAccess.rb +37 -0
- data/bin/commands/admin_conversations_whitelist.rb +37 -0
- data/bin/commands/admin_emoji.rb +1 -1
- data/bin/commands/admin_teams.rb +1 -1
- data/bin/commands/admin_usergroups.rb +48 -0
- data/bin/commands/admin_users.rb +3 -2
- data/bin/commands/admin_users_session.rb +62 -0
- data/bin/commands/api.rb +0 -1
- data/bin/commands/apps_connections.rb +13 -0
- data/bin/commands/apps_event_authorizations.rb +16 -0
- data/bin/commands/apps_manifest.rb +51 -0
- data/bin/commands/auth_teams.rb +16 -0
- data/bin/commands/bots.rb +1 -0
- data/bin/commands/calls.rb +52 -0
- data/bin/commands/calls_participants.rb +25 -0
- data/bin/commands/channels.rb +1 -155
- data/bin/commands/chat.rb +17 -12
- data/bin/commands/chat_scheduledMessages.rb +1 -0
- data/bin/commands/conversations.rb +71 -3
- data/bin/commands/dnd.rb +2 -0
- data/bin/commands/files.rb +6 -4
- data/bin/commands/files_remote.rb +2 -2
- data/bin/commands/groups.rb +1 -162
- data/bin/commands/im.rb +1 -63
- data/bin/commands/migration.rb +1 -0
- data/bin/commands/mpim.rb +1 -61
- data/bin/commands/oauth.rb +0 -13
- data/bin/commands/oauth_v2.rb +13 -1
- data/bin/commands/openid_connect.rb +27 -0
- data/bin/commands/pins.rb +2 -4
- data/bin/commands/reactions.rb +1 -0
- data/bin/commands/reminders.rb +6 -0
- data/bin/commands/rtm.rb +2 -2
- data/bin/commands/search.rb +4 -0
- data/bin/commands/stars.rb +7 -6
- data/bin/commands/team.rb +3 -0
- data/bin/commands/team_billing.rb +13 -0
- data/bin/commands/team_preferences.rb +13 -0
- data/bin/commands/tooling_tokens.rb +14 -0
- data/bin/commands/usergroups.rb +5 -0
- data/bin/commands/usergroups_users.rb +2 -0
- data/bin/commands/users.rb +4 -2
- data/bin/commands/users_profile.rb +5 -5
- data/bin/commands/views.rb +2 -2
- data/bin/commands/workflows.rb +38 -0
- data/bin/commands.rb +17 -8
- data/lib/slack/config.rb +1 -2
- data/lib/slack/events/request.rb +10 -4
- data/lib/slack/messages/message.rb +0 -4
- data/lib/slack/real_time/client.rb +6 -6
- data/lib/slack/real_time/concurrency/async.rb +7 -11
- data/lib/slack/real_time/concurrency.rb +0 -2
- data/lib/slack/real_time/config.rb +5 -14
- data/lib/slack/real_time/models/base.rb +0 -4
- data/lib/slack/real_time/socket.rb +3 -4
- data/lib/slack/real_time/stores/base.rb +4 -7
- data/lib/slack/real_time/stores/starter.rb +6 -3
- data/lib/slack/real_time/stores/store.rb +5 -0
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_analytics.rb +28 -0
- data/lib/slack/web/api/endpoints/admin_apps.rb +42 -6
- data/lib/slack/web/api/endpoints/admin_apps_approved.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_apps_requests.rb +4 -2
- data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_auth_policy.rb +72 -0
- data/lib/slack/web/api/endpoints/admin_barriers.rb +82 -0
- data/lib/slack/web/api/endpoints/admin_conversations.rb +234 -4
- data/lib/slack/web/api/endpoints/admin_conversations_ekm.rb +35 -0
- data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +61 -0
- data/lib/slack/web/api/endpoints/admin_conversations_whitelist.rb +64 -0
- data/lib/slack/web/api/endpoints/admin_emoji.rb +10 -10
- data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +7 -7
- data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +3 -3
- data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_teams.rb +7 -7
- data/lib/slack/web/api/endpoints/admin_teams_admins.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_teams_owners.rb +2 -2
- data/lib/slack/web/api/endpoints/admin_teams_settings.rb +5 -5
- data/lib/slack/web/api/endpoints/admin_usergroups.rb +77 -0
- data/lib/slack/web/api/endpoints/admin_users.rb +23 -23
- data/lib/slack/web/api/endpoints/admin_users_session.rb +97 -3
- data/lib/slack/web/api/endpoints/api.rb +1 -3
- data/lib/slack/web/api/endpoints/apps.rb +2 -2
- data/lib/slack/web/api/endpoints/apps_connections.rb +21 -0
- data/lib/slack/web/api/endpoints/apps_event_authorizations.rb +34 -0
- data/lib/slack/web/api/endpoints/apps_manifest.rb +75 -0
- data/lib/slack/web/api/endpoints/auth.rb +1 -1
- data/lib/slack/web/api/endpoints/auth_teams.rb +33 -0
- data/lib/slack/web/api/endpoints/bots.rb +3 -1
- data/lib/slack/web/api/endpoints/calls.rb +83 -0
- data/lib/slack/web/api/endpoints/calls_participants.rb +42 -0
- data/lib/slack/web/api/endpoints/channels.rb +1 -245
- data/lib/slack/web/api/endpoints/chat.rb +76 -66
- data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +5 -3
- data/lib/slack/web/api/endpoints/conversations.rb +149 -41
- data/lib/slack/web/api/endpoints/dialog.rb +2 -2
- data/lib/slack/web/api/endpoints/dnd.rb +6 -3
- data/lib/slack/web/api/endpoints/files.rb +21 -17
- data/lib/slack/web/api/endpoints/files_comments.rb +1 -1
- data/lib/slack/web/api/endpoints/files_remote.rb +23 -23
- data/lib/slack/web/api/endpoints/groups.rb +0 -253
- data/lib/slack/web/api/endpoints/im.rb +0 -101
- data/lib/slack/web/api/endpoints/migration.rb +4 -2
- data/lib/slack/web/api/endpoints/mpim.rb +0 -96
- data/lib/slack/web/api/endpoints/oauth.rb +5 -30
- data/lib/slack/web/api/endpoints/oauth_v2.rb +24 -6
- data/lib/slack/web/api/endpoints/openid_connect.rb +42 -0
- data/lib/slack/web/api/endpoints/pins.rb +7 -12
- data/lib/slack/web/api/endpoints/reactions.rb +16 -14
- data/lib/slack/web/api/endpoints/reminders.rb +17 -5
- data/lib/slack/web/api/endpoints/rtm.rb +10 -10
- data/lib/slack/web/api/endpoints/search.rb +27 -13
- data/lib/slack/web/api/endpoints/stars.rb +13 -11
- data/lib/slack/web/api/endpoints/team.rb +11 -5
- data/lib/slack/web/api/endpoints/team_billing.rb +21 -0
- data/lib/slack/web/api/endpoints/team_preferences.rb +21 -0
- data/lib/slack/web/api/endpoints/team_profile.rb +1 -1
- data/lib/slack/web/api/endpoints/tooling_tokens.rb +24 -0
- data/lib/slack/web/api/endpoints/usergroups.rb +26 -16
- data/lib/slack/web/api/endpoints/usergroups_users.rb +9 -5
- data/lib/slack/web/api/endpoints/users.rb +20 -18
- data/lib/slack/web/api/endpoints/users_profile.rb +7 -7
- data/lib/slack/web/api/endpoints/views.rb +13 -13
- data/lib/slack/web/api/endpoints/workflows.rb +61 -0
- data/lib/slack/web/api/endpoints.rb +35 -18
- data/lib/slack/web/api/errors/server_error.rb +37 -0
- data/lib/slack/web/api/errors/too_many_requests_error.rb +1 -4
- data/lib/slack/web/api/errors.rb +486 -12
- data/lib/slack/web/api/mixins/{channels.id.rb → conversations.id.rb} +3 -5
- data/lib/slack/web/api/mixins/ids.id.rb +3 -5
- data/lib/slack/web/api/mixins/users.id.rb +1 -3
- data/lib/slack/web/api/mixins.rb +1 -2
- data/lib/slack/web/api/patches/{chat.6.block-kit-support.patch → chat.1.patch} +25 -24
- data/lib/slack/web/api/templates/endpoints.erb +1 -2
- data/lib/slack/web/api/templates/method.erb +4 -1
- data/lib/slack/web/api/templates/method_spec.erb +1 -1
- data/lib/slack/web/config.rb +2 -0
- data/lib/slack/web/faraday/connection.rb +23 -20
- data/lib/slack/web/faraday/request.rb +2 -1
- data/lib/slack/web/faraday/response/raise_error.rb +12 -1
- data/lib/slack/web/faraday/response/wrap_error.rb +24 -0
- data/lib/slack/web/pagination/cursor.rb +3 -7
- data/lib/slack-ruby-client.rb +4 -4
- data/lib/tasks/web.rake +11 -3
- data/slack-ruby-client.gemspec +6 -7
- data/spec/fixtures/slack/web/429_error.yml +50 -54
- data/spec/fixtures/slack/web/auth_test_error.yml +51 -18
- data/spec/fixtures/slack/web/auth_test_success.yml +50 -26
- data/spec/fixtures/slack/web/conversations_info.yml +167 -0
- data/spec/fixtures/slack/web/conversations_setTopic.yml +84 -0
- data/spec/fixtures/slack/web/conversations_setTopic_one_page.yml +172 -0
- data/spec/fixtures/slack/web/conversations_setTopic_paginated.yml +253 -0
- data/spec/fixtures/slack/web/paginated_users_list.yml +501 -69
- data/spec/fixtures/slack/web/rtm_connect.yml +267 -30
- data/spec/fixtures/slack/web/rtm_start.yml +771 -60
- data/spec/fixtures/slack/web/users_info.yml +153 -69
- data/spec/fixtures/slack/web/users_list.yml +102 -41
- data/spec/fixtures/slack/web/views_open_error.yml +49 -42
- data/spec/slack/events/request_spec.rb +13 -8
- data/spec/slack/real_time/client_spec.rb +35 -22
- data/spec/slack/real_time/concurrency/with_concurrency_spec.rb +10 -0
- data/spec/slack/real_time/concurrency/without_concurrency_spec.rb +10 -0
- data/spec/slack/real_time/event_handlers/bot_spec.rb +1 -1
- data/spec/slack/real_time/event_handlers/channel_spec.rb +1 -1
- data/spec/slack/real_time/event_handlers/im_spec.rb +5 -5
- data/spec/slack/real_time/event_handlers/user_spec.rb +2 -2
- data/spec/slack/real_time/rtm_connect_spec.rb +1 -1
- data/spec/slack/real_time/rtm_start_spec.rb +1 -1
- data/spec/slack/slack_spec.rb +3 -1
- data/spec/slack/web/api/endpoints/admin_analytics_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/admin_apps_spec.rb +10 -0
- data/spec/slack/web/api/endpoints/admin_auth_policy_spec.rb +35 -0
- data/spec/slack/web/api/endpoints/admin_barriers_spec.rb +38 -0
- data/spec/slack/web/api/endpoints/{apps_permissions_scopes_spec.rb → admin_conversations_ekm_spec.rb} +1 -1
- data/spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb +32 -0
- data/spec/slack/web/api/endpoints/admin_conversations_spec.rb +85 -0
- data/spec/slack/web/api/endpoints/admin_emoji_spec.rb +6 -6
- data/spec/slack/web/api/endpoints/admin_teams_settings_spec.rb +10 -10
- data/spec/slack/web/api/endpoints/admin_teams_spec.rb +2 -2
- data/spec/slack/web/api/endpoints/admin_usergroups_spec.rb +37 -0
- data/spec/slack/web/api/endpoints/admin_users_session_spec.rb +28 -0
- data/spec/slack/web/api/endpoints/admin_users_spec.rb +15 -23
- data/spec/slack/web/api/endpoints/{apps_permissions_resources_spec.rb → apps_connections_spec.rb} +1 -1
- data/spec/slack/web/api/endpoints/apps_event_authorizations_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/apps_manifest_spec.rb +36 -0
- data/spec/slack/web/api/endpoints/apps_spec.rb +2 -2
- data/spec/slack/web/api/endpoints/auth_teams_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/calls_participants_spec.rb +24 -0
- data/spec/slack/web/api/endpoints/calls_spec.rb +31 -0
- data/spec/slack/web/api/endpoints/custom_specs/auth_spec.rb +4 -6
- data/spec/slack/web/api/endpoints/custom_specs/conversations_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/custom_specs/users_spec.rb +2 -2
- data/spec/slack/web/api/endpoints/dnd_spec.rb +0 -5
- data/spec/slack/web/api/endpoints/files_comments_spec.rb +2 -2
- data/spec/slack/web/api/endpoints/files_remote_spec.rb +3 -3
- data/spec/slack/web/api/endpoints/files_spec.rb +4 -4
- data/spec/slack/web/api/endpoints/oauth_spec.rb +0 -22
- data/spec/slack/web/api/endpoints/oauth_v2_spec.rb +6 -3
- data/spec/slack/web/api/endpoints/openid_connect_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/pins_spec.rb +1 -4
- data/spec/slack/web/api/endpoints/reactions_spec.rb +3 -3
- data/spec/slack/web/api/endpoints/reminders_spec.rb +2 -2
- data/spec/slack/web/api/endpoints/team_billing_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/team_preferences_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/tooling_tokens_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/usergroups_users_spec.rb +2 -2
- data/spec/slack/web/api/endpoints/workflows_spec.rb +26 -0
- data/spec/slack/web/api/error_spec.rb +5 -7
- data/spec/slack/web/api/errors/slack_error_spec.rb +21 -26
- data/spec/slack/web/api/mixins/conversations_list_spec.rb +21 -0
- data/spec/slack/web/api/mixins/{channels_spec.rb → conversations_spec.rb} +8 -8
- data/spec/slack/web/api/mixins/users_spec.rb +1 -1
- data/spec/slack/web/api/pagination/cursor_spec.rb +1 -3
- data/spec/slack/web/client_spec.rb +123 -1
- data/spec/slack/web/faraday/request_spec.rb +80 -0
- data/spec/slack/web/faraday/response/raise_error_spec.rb +8 -6
- data/spec/spec_helper.rb +1 -1
- data/spec/support/real_time/connected_client.rb +1 -7
- data/spec/support/vcr.rb +36 -1
- metadata +95 -173
- data/examples/hi_real_time/Gemfile +0 -6
- data/examples/hi_real_time/hi.gif +0 -0
- data/examples/hi_real_time/hi.rb +0 -41
- data/examples/hi_real_time_async_celluloid/Gemfile +0 -7
- data/examples/hi_real_time_async_celluloid/Procfile +0 -2
- data/examples/hi_real_time_async_celluloid/hi.rb +0 -39
- data/examples/hi_real_time_async_eventmachine/Gemfile +0 -7
- data/examples/hi_real_time_async_eventmachine/Procfile +0 -2
- data/examples/hi_real_time_async_eventmachine/hi.rb +0 -39
- data/lib/slack/real_time/concurrency/celluloid.rb +0 -142
- data/lib/slack/real_time/concurrency/eventmachine.rb +0 -85
- data/lib/slack/web/api/mixins/channels.id.json +0 -20
- data/lib/slack/web/api/mixins/groups.id.json +0 -20
- data/lib/slack/web/api/mixins/groups.id.rb +0 -27
- data/lib/slack/web/api/patches/chat.1.text-attachments-required.patch +0 -13
- data/lib/slack/web/api/patches/chat.2.attachments-json.patch +0 -17
- data/lib/slack/web/api/patches/chat.3.update-attachments-support.patch +0 -21
- data/lib/slack/web/api/patches/chat.4.postEphemeral-attachments-support.patch +0 -17
- data/lib/slack/web/api/patches/chat.5.postEphemeral-text-or-attachments.patch +0 -15
- data/spec/fixtures/slack/web/503_error.yml +0 -14
- data/spec/fixtures/slack/web/channels_info.yml +0 -46
- data/spec/fixtures/slack/web/groups_info.yml +0 -43
- data/spec/slack/real_time/concurrency/celluloid_spec.rb +0 -116
- data/spec/slack/real_time/concurrency/eventmachine_spec.rb +0 -57
- data/spec/slack/web/api/endpoints/apps_permissions_spec.rb +0 -16
- data/spec/slack/web/api/endpoints/apps_permissions_users_spec.rb +0 -19
- data/spec/slack/web/api/endpoints/conversations_spec.rb +0 -101
- data/spec/slack/web/api/endpoints/custom_specs/channels_spec.rb +0 -13
- data/spec/slack/web/api/endpoints/custom_specs/groups_spec.rb +0 -13
- data/spec/slack/web/api/endpoints/im_spec.rb +0 -39
- data/spec/slack/web/api/endpoints/mpim_spec.rb +0 -39
- data/spec/slack/web/api/endpoints/views_spec.rb +0 -29
- data/spec/slack/web/api/errors/service_unavailable_spec.rb +0 -17
- data/spec/slack/web/api/mixins/groups_spec.rb +0 -43
data/lib/slack/web/api/errors.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
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
|
-
'
|
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
|
-
'
|
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
|
-
'
|
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
|
-
'
|
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
|
-
'
|
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,
|