slack-ruby-client 0.13.1 → 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/.gitignore +1 -0
- data/.rubocop.yml +29 -5
- data/.rubocop_todo.yml +124 -44
- data/.travis.yml +5 -8
- data/CHANGELOG.md +92 -2
- data/CONTRIBUTING.md +19 -8
- data/Dangerfile +2 -0
- data/Gemfile +10 -5
- data/LICENSE.md +1 -1
- data/README.md +186 -49
- data/RELEASING.md +1 -1
- data/Rakefile +2 -1
- data/UPGRADING.md +72 -2
- data/bin/commands/admin_analytics.rb +16 -0
- data/bin/commands/admin_apps.rb +51 -0
- data/bin/commands/admin_apps_approved.rb +17 -0
- data/bin/commands/admin_apps_requests.rb +17 -0
- data/bin/commands/admin_apps_restricted.rb +17 -0
- data/bin/commands/admin_auth_policy.rb +39 -0
- data/bin/commands/admin_barriers.rb +47 -0
- data/bin/commands/admin_conversations.rb +169 -0
- 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 +54 -0
- data/bin/commands/admin_inviteRequests.rb +36 -0
- data/bin/commands/admin_inviteRequests_approved.rb +16 -0
- data/bin/commands/admin_inviteRequests_denied.rb +16 -0
- data/bin/commands/admin_teams.rb +27 -0
- data/bin/commands/admin_teams_admins.rb +16 -0
- data/bin/commands/admin_teams_owners.rb +16 -0
- data/bin/commands/admin_teams_settings.rb +64 -0
- data/bin/commands/admin_usergroups.rb +48 -0
- data/bin/commands/admin_users.rb +98 -0
- data/bin/commands/admin_users_session.rb +78 -0
- data/bin/commands/api.rb +1 -1
- data/bin/commands/apps.rb +15 -0
- 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/apps_permissions.rb +1 -0
- data/bin/commands/apps_permissions_resources.rb +1 -0
- data/bin/commands/apps_permissions_scopes.rb +1 -0
- data/bin/commands/apps_permissions_users.rb +1 -0
- data/bin/commands/auth.rb +1 -0
- data/bin/commands/auth_teams.rb +16 -0
- data/bin/commands/bots.rb +2 -0
- data/bin/commands/calls.rb +52 -0
- data/bin/commands/calls_participants.rb +25 -0
- data/bin/commands/channels.rb +1 -153
- data/bin/commands/chat.rb +56 -12
- data/bin/commands/chat_scheduledMessages.rb +19 -0
- data/bin/commands/conversations.rb +75 -5
- data/bin/commands/dialog.rb +1 -0
- data/bin/commands/dnd.rb +6 -3
- data/bin/commands/emoji.rb +1 -0
- data/bin/commands/files.rb +10 -18
- data/bin/commands/files_comments.rb +1 -21
- data/bin/commands/files_remote.rb +78 -0
- data/bin/commands/groups.rb +1 -161
- data/bin/commands/im.rb +1 -62
- data/bin/commands/migration.rb +2 -0
- data/bin/commands/mpim.rb +1 -60
- data/bin/commands/oauth.rb +2 -14
- data/bin/commands/oauth_v2.rb +29 -0
- data/bin/commands/openid_connect.rb +27 -0
- data/bin/commands/pins.rb +3 -6
- data/bin/commands/reactions.rb +3 -3
- data/bin/commands/reminders.rb +7 -0
- data/bin/commands/rtm.rb +3 -2
- data/bin/commands/search.rb +6 -1
- data/bin/commands/stars.rb +8 -6
- data/bin/commands/team.rb +5 -0
- data/bin/commands/team_billing.rb +13 -0
- data/bin/commands/team_preferences.rb +13 -0
- data/bin/commands/team_profile.rb +1 -0
- data/bin/commands/tooling_tokens.rb +14 -0
- data/bin/commands/usergroups.rb +7 -1
- data/bin/commands/usergroups_users.rb +3 -0
- data/bin/commands/users.rb +6 -4
- data/bin/commands/users_admin.rb +1 -0
- data/bin/commands/users_prefs.rb +1 -0
- data/bin/commands/users_profile.rb +6 -5
- data/bin/commands/views.rb +48 -0
- data/bin/commands/workflows.rb +38 -0
- data/bin/commands.rb +38 -8
- data/bin/slack +2 -3
- data/examples/hi_real_time_and_web/Gemfile +1 -0
- data/examples/hi_real_time_and_web/hi.rb +7 -3
- data/examples/hi_real_time_async_async/Gemfile +1 -0
- data/examples/hi_real_time_async_async/hi.rb +6 -2
- data/examples/hi_web/Gemfile +1 -0
- data/examples/hi_web/hi.rb +1 -0
- data/examples/new_ticket/Gemfile +1 -0
- data/examples/new_ticket/new_ticket.rb +1 -0
- data/lib/slack/config.rb +2 -2
- data/lib/slack/events/config.rb +32 -0
- data/lib/slack/events/request.rb +72 -0
- data/lib/slack/logger.rb +6 -5
- data/lib/slack/messages/formatting.rb +1 -0
- data/lib/slack/messages/message.rb +1 -4
- data/lib/slack/real_time/api/message.rb +3 -1
- data/lib/slack/real_time/api/message_id.rb +1 -0
- data/lib/slack/real_time/api/ping.rb +5 -2
- data/lib/slack/real_time/api/typing.rb +3 -1
- data/lib/slack/real_time/client.rb +101 -32
- data/lib/slack/real_time/concurrency/async.rb +77 -6
- data/lib/slack/real_time/concurrency.rb +1 -2
- data/lib/slack/real_time/config.rb +6 -10
- data/lib/slack/real_time/models/base.rb +1 -4
- data/lib/slack/real_time/models/bot.rb +1 -0
- data/lib/slack/real_time/models/channel.rb +1 -0
- data/lib/slack/real_time/models/group.rb +1 -0
- data/lib/slack/real_time/models/im.rb +1 -0
- data/lib/slack/real_time/models/team.rb +1 -0
- data/lib/slack/real_time/models/user.rb +1 -0
- data/lib/slack/real_time/models.rb +1 -0
- data/lib/slack/real_time/socket.rb +45 -17
- data/lib/slack/real_time/stores/base.rb +5 -7
- data/lib/slack/real_time/stores/starter.rb +17 -3
- data/lib/slack/real_time/stores/store.rb +33 -25
- data/lib/slack/real_time/stores.rb +1 -0
- data/lib/slack/version.rb +2 -1
- data/lib/slack/web/api/endpoints/admin_analytics.rb +28 -0
- data/lib/slack/web/api/endpoints/admin_apps.rb +78 -0
- data/lib/slack/web/api/endpoints/admin_apps_approved.rb +35 -0
- data/lib/slack/web/api/endpoints/admin_apps_requests.rb +35 -0
- data/lib/slack/web/api/endpoints/admin_apps_restricted.rb +35 -0
- 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 +260 -0
- 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 +88 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests.rb +61 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests_approved.rb +33 -0
- data/lib/slack/web/api/endpoints/admin_inviteRequests_denied.rb +33 -0
- data/lib/slack/web/api/endpoints/admin_teams.rb +50 -0
- data/lib/slack/web/api/endpoints/admin_teams_admins.rb +34 -0
- data/lib/slack/web/api/endpoints/admin_teams_owners.rb +34 -0
- data/lib/slack/web/api/endpoints/admin_teams_settings.rb +99 -0
- data/lib/slack/web/api/endpoints/admin_usergroups.rb +77 -0
- data/lib/slack/web/api/endpoints/admin_users.rb +163 -0
- data/lib/slack/web/api/endpoints/admin_users_session.rb +122 -0
- data/lib/slack/web/api/endpoints/api.rb +2 -3
- data/lib/slack/web/api/endpoints/apps.rb +27 -0
- 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/apps_permissions.rb +1 -0
- data/lib/slack/web/api/endpoints/apps_permissions_resources.rb +1 -0
- data/lib/slack/web/api/endpoints/apps_permissions_scopes.rb +1 -0
- data/lib/slack/web/api/endpoints/apps_permissions_users.rb +1 -0
- data/lib/slack/web/api/endpoints/auth.rb +2 -1
- data/lib/slack/web/api/endpoints/auth_teams.rb +33 -0
- data/lib/slack/web/api/endpoints/bots.rb +4 -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 +2 -243
- data/lib/slack/web/api/endpoints/chat.rb +144 -47
- data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +40 -0
- data/lib/slack/web/api/endpoints/conversations.rb +152 -41
- data/lib/slack/web/api/endpoints/dialog.rb +3 -2
- data/lib/slack/web/api/endpoints/dnd.rb +9 -4
- data/lib/slack/web/api/endpoints/emoji.rb +1 -0
- data/lib/slack/web/api/endpoints/files.rb +24 -29
- data/lib/slack/web/api/endpoints/files_comments.rb +2 -34
- data/lib/slack/web/api/endpoints/files_remote.rb +127 -0
- data/lib/slack/web/api/endpoints/groups.rb +1 -253
- data/lib/slack/web/api/endpoints/im.rb +1 -101
- data/lib/slack/web/api/endpoints/migration.rb +5 -2
- data/lib/slack/web/api/endpoints/mpim.rb +1 -96
- data/lib/slack/web/api/endpoints/oauth.rb +7 -31
- data/lib/slack/web/api/endpoints/oauth_v2.rb +48 -0
- data/lib/slack/web/api/endpoints/openid_connect.rb +42 -0
- data/lib/slack/web/api/endpoints/pins.rb +8 -15
- data/lib/slack/web/api/endpoints/reactions.rb +20 -19
- data/lib/slack/web/api/endpoints/reminders.rb +18 -5
- data/lib/slack/web/api/endpoints/rtm.rb +11 -10
- data/lib/slack/web/api/endpoints/search.rb +28 -13
- data/lib/slack/web/api/endpoints/stars.rb +14 -11
- data/lib/slack/web/api/endpoints/team.rb +13 -4
- 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 +2 -1
- data/lib/slack/web/api/endpoints/tooling_tokens.rb +24 -0
- data/lib/slack/web/api/endpoints/usergroups.rb +27 -16
- data/lib/slack/web/api/endpoints/usergroups_users.rb +10 -5
- data/lib/slack/web/api/endpoints/users.rb +21 -20
- data/lib/slack/web/api/endpoints/users_admin.rb +1 -0
- data/lib/slack/web/api/endpoints/users_prefs.rb +1 -0
- data/lib/slack/web/api/endpoints/users_profile.rb +8 -7
- data/lib/slack/web/api/endpoints/views.rb +97 -0
- data/lib/slack/web/api/endpoints/workflows.rb +61 -0
- data/lib/slack/web/api/endpoints.rb +76 -18
- data/lib/slack/web/api/error.rb +1 -0
- data/lib/slack/web/api/errors/server_error.rb +37 -0
- data/lib/slack/web/api/errors/slack_error.rb +14 -1
- data/lib/slack/web/api/errors/too_many_requests_error.rb +2 -4
- data/lib/slack/web/api/errors.rb +1040 -0
- data/lib/slack/web/api/mixins/{channels.id.rb → conversations.id.rb} +4 -5
- data/lib/slack/web/api/mixins/ids.id.rb +3 -2
- data/lib/slack/web/api/mixins/users.id.rb +2 -3
- data/lib/slack/web/api/mixins/users.search.rb +1 -0
- data/lib/slack/web/api/mixins.rb +2 -2
- data/lib/slack/web/api/patches/chat.1.patch +70 -0
- data/lib/slack/web/api/patches/views.1.view-json.patch +40 -0
- data/lib/slack/web/api/patches/views.1.views-published.patch +16 -0
- data/lib/slack/web/api/templates/command.erb +1 -0
- data/lib/slack/web/api/templates/commands.erb +1 -0
- data/lib/slack/web/api/templates/endpoints.erb +2 -2
- data/lib/slack/web/api/templates/errors.erb +20 -0
- data/lib/slack/web/api/templates/method.erb +5 -1
- data/lib/slack/web/api/templates/method_spec.erb +2 -1
- data/lib/slack/web/client.rb +2 -1
- data/lib/slack/web/config.rb +3 -0
- data/lib/slack/web/faraday/connection.rb +24 -20
- data/lib/slack/web/faraday/request.rb +3 -1
- data/lib/slack/web/faraday/response/raise_error.rb +21 -6
- data/lib/slack/web/faraday/response/wrap_error.rb +24 -0
- data/lib/slack/web/pagination/cursor.rb +7 -7
- data/lib/slack-ruby-client.rb +10 -4
- data/lib/slack.rb +1 -0
- data/lib/slack_ruby_client.rb +1 -0
- data/lib/tasks/git.rake +1 -0
- data/lib/tasks/real_time.rake +15 -5
- data/lib/tasks/update.rake +1 -0
- data/lib/tasks/web.rake +39 -10
- data/screenshots/create-app.png +0 -0
- data/slack-ruby-client.gemspec +9 -6
- 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 +83 -0
- data/spec/integration/integration_spec.rb +115 -47
- data/spec/slack/config_spec.rb +2 -0
- data/spec/slack/events/config_spec.rb +33 -0
- data/spec/slack/events/request_spec.rb +184 -0
- data/spec/slack/messages/formatting_spec.rb +25 -13
- data/spec/slack/real_time/api/message_spec.rb +6 -1
- data/spec/slack/real_time/api/ping_spec.rb +2 -0
- data/spec/slack/real_time/api/typing_spec.rb +5 -1
- data/spec/slack/real_time/client_spec.rb +244 -50
- data/spec/slack/real_time/concurrency/it_behaves_like_a_realtime_socket.rb +2 -0
- 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 +3 -2
- data/spec/slack/real_time/event_handlers/channel_spec.rb +10 -7
- data/spec/slack/real_time/event_handlers/event_handlers_spec.rb +2 -1
- data/spec/slack/real_time/event_handlers/group_spec.rb +5 -4
- data/spec/slack/real_time/event_handlers/im_spec.rb +9 -8
- data/spec/slack/real_time/event_handlers/team_spec.rb +3 -1
- data/spec/slack/real_time/event_handlers/user_spec.rb +3 -2
- data/spec/slack/real_time/rtm_connect_spec.rb +2 -1
- data/spec/slack/real_time/rtm_start_spec.rb +2 -1
- data/spec/slack/real_time/store_spec.rb +2 -1
- data/spec/slack/slack_spec.rb +40 -6
- data/spec/slack/version_spec.rb +2 -1
- data/spec/slack/web/api/endpoints/admin_analytics_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/admin_apps_approved_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/admin_apps_requests_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/admin_apps_restricted_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/admin_apps_spec.rb +18 -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/admin_conversations_ekm_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb +32 -0
- data/spec/slack/web/api/endpoints/admin_conversations_spec.rb +98 -0
- data/spec/slack/web/api/endpoints/admin_emoji_spec.rb +37 -0
- data/spec/slack/web/api/endpoints/admin_inviteRequests_approved_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/admin_inviteRequests_denied_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/admin_inviteRequests_spec.rb +18 -0
- data/spec/slack/web/api/endpoints/admin_teams_admins_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/admin_teams_owners_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/admin_teams_settings_spec.rb +53 -0
- data/spec/slack/web/api/endpoints/admin_teams_spec.rb +16 -0
- data/spec/slack/web/api/endpoints/admin_usergroups_spec.rb +37 -0
- data/spec/slack/web/api/endpoints/admin_users_session_spec.rb +41 -0
- data/spec/slack/web/api/endpoints/admin_users_spec.rb +67 -0
- data/spec/slack/web/api/endpoints/api_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/apps_connections_spec.rb +8 -0
- 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 +16 -0
- data/spec/slack/web/api/endpoints/{apps_permissions_scopes_spec.rb → auth_teams_spec.rb} +2 -1
- data/spec/slack/web/api/endpoints/bots_spec.rb +1 -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/chat_scheduledMessages_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/custom_specs/auth_spec.rb +9 -7
- data/spec/slack/web/api/endpoints/custom_specs/chat_spec.rb +112 -36
- data/spec/slack/web/api/endpoints/custom_specs/conversations_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/custom_specs/dialog_spec.rb +12 -4
- data/spec/slack/web/api/endpoints/custom_specs/users_spec.rb +8 -3
- data/spec/slack/web/api/endpoints/custom_specs/views_spec.rb +95 -0
- data/spec/slack/web/api/endpoints/dnd_spec.rb +4 -3
- data/spec/slack/web/api/endpoints/emoji_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/files_comments_spec.rb +3 -21
- data/spec/slack/web/api/endpoints/files_remote_spec.rb +24 -0
- data/spec/slack/web/api/endpoints/files_spec.rb +5 -4
- data/spec/slack/web/api/endpoints/migration_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/oauth_spec.rb +1 -22
- data/spec/slack/web/api/endpoints/oauth_v2_spec.rb +16 -0
- data/spec/slack/web/api/endpoints/openid_connect_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/pins_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/reactions_spec.rb +8 -1
- data/spec/slack/web/api/endpoints/reminders_spec.rb +3 -2
- data/spec/slack/web/api/endpoints/rtm_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/search_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/stars_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/{apps_permissions_resources_spec.rb → team_billing_spec.rb} +2 -1
- data/spec/slack/web/api/endpoints/team_preferences_spec.rb +8 -0
- data/spec/slack/web/api/endpoints/team_profile_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/team_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/tooling_tokens_spec.rb +13 -0
- data/spec/slack/web/api/endpoints/usergroups_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/usergroups_users_spec.rb +3 -2
- data/spec/slack/web/api/endpoints/users_admin_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/users_prefs_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/users_profile_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/workflows_spec.rb +26 -0
- data/spec/slack/web/api/error_spec.rb +7 -7
- data/spec/slack/web/api/errors/slack_error_spec.rb +26 -7
- data/spec/slack/web/api/mixins/conversations_list_spec.rb +21 -0
- data/spec/slack/web/api/mixins/conversations_spec.rb +43 -0
- data/spec/slack/web/api/mixins/users_spec.rb +17 -8
- data/spec/slack/web/api/pagination/cursor_spec.rb +41 -13
- data/spec/slack/web/client_spec.rb +168 -19
- data/spec/slack/web/faraday/request_spec.rb +80 -0
- data/spec/slack/web/faraday/response/raise_error_spec.rb +48 -12
- data/spec/spec_helper.rb +9 -2
- data/spec/support/queue_with_timeout.rb +5 -4
- data/spec/support/real_time/concurrency/mock.rb +1 -0
- data/spec/support/real_time/connected_client.rb +6 -6
- data/spec/support/real_time/event.rb +1 -0
- data/spec/support/token.rb +1 -0
- data/spec/support/vcr.rb +37 -1
- metadata +205 -147
- data/examples/hi_real_time/Gemfile +0 -5
- data/examples/hi_real_time/hi.gif +0 -0
- data/examples/hi_real_time/hi.rb +0 -37
- data/examples/hi_real_time_async_celluloid/Gemfile +0 -6
- data/examples/hi_real_time_async_celluloid/Procfile +0 -2
- data/examples/hi_real_time_async_celluloid/hi.rb +0 -35
- data/examples/hi_real_time_async_eventmachine/Gemfile +0 -6
- data/examples/hi_real_time_async_eventmachine/Procfile +0 -2
- data/examples/hi_real_time_async_eventmachine/hi.rb +0 -35
- data/lib/slack/real_time/concurrency/celluloid.rb +0 -118
- data/lib/slack/real_time/concurrency/eventmachine.rb +0 -66
- 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 -26
- 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 -13
- data/screenshots/register-bot.png +0 -0
- 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 -106
- data/spec/slack/real_time/concurrency/eventmachine_spec.rb +0 -47
- data/spec/slack/web/api/endpoints/apps_permissions_spec.rb +0 -15
- data/spec/slack/web/api/endpoints/apps_permissions_users_spec.rb +0 -18
- data/spec/slack/web/api/endpoints/conversations_spec.rb +0 -100
- data/spec/slack/web/api/endpoints/custom_specs/channels_spec.rb +0 -11
- data/spec/slack/web/api/endpoints/custom_specs/groups_spec.rb +0 -11
- data/spec/slack/web/api/endpoints/im_spec.rb +0 -38
- data/spec/slack/web/api/endpoints/mpim_spec.rb +0 -38
- data/spec/slack/web/api/errors/service_unavailable_spec.rb +0 -14
- data/spec/slack/web/api/mixins/channels_spec.rb +0 -33
- data/spec/slack/web/api/mixins/groups_spec.rb +0 -33
@@ -0,0 +1,1040 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file was auto-generated by lib/tasks/web.rake
|
3
|
+
|
4
|
+
module Slack
|
5
|
+
module Web
|
6
|
+
module Api
|
7
|
+
module Errors
|
8
|
+
class AccessDenied < SlackError; end
|
9
|
+
class Accesslimited < SlackError; end
|
10
|
+
class AccountInactive < SlackError; end
|
11
|
+
class AdminUnauthorized < SlackError; end
|
12
|
+
class AlreadyApproved < SlackError; end
|
13
|
+
class AlreadyArchived < SlackError; end
|
14
|
+
class AlreadyInChannel < SlackError; end
|
15
|
+
class AlreadyInTeam < SlackError; end
|
16
|
+
class AlreadyInTeamInvitedUser < SlackError; end
|
17
|
+
class AlreadyInvited < SlackError; end
|
18
|
+
class AlreadyPinned < SlackError; end
|
19
|
+
class AlreadyProcessed < SlackError; end
|
20
|
+
class AlreadyReacted < SlackError; end
|
21
|
+
class AlreadyStarred < SlackError; end
|
22
|
+
class AppManagementAppNotInstalledOnOrg < SlackError; end
|
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
|
28
|
+
class AsUserNotSupported < SlackError; end
|
29
|
+
class AtLeastOneSessionSettingRequired < SlackError; end
|
30
|
+
class AuthMismatch < SlackError; end
|
31
|
+
class AutoProvisionFailure < SlackError; end
|
32
|
+
class BadClientSecret < SlackError; end
|
33
|
+
class BadHandle < SlackError; end
|
34
|
+
class BadImage < SlackError; end
|
35
|
+
class BadRedirectUri < SlackError; end
|
36
|
+
class BadTimestamp < SlackError; end
|
37
|
+
class BadTitle < SlackError; end
|
38
|
+
class BadToken < SlackError; end
|
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
|
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
|
49
|
+
class CannotAddBot < SlackError; end
|
50
|
+
class CannotAddLegacyDisconnectedChannelToWorkspaces < SlackError; end
|
51
|
+
class CannotAddMoreChannelsToGroup < SlackError; end
|
52
|
+
class CannotAddMoreGroupsToChannel < SlackError; end
|
53
|
+
class CannotAddOthers < SlackError; end
|
54
|
+
class CannotAddOthersRecurring < SlackError; end
|
55
|
+
class CannotAddProfileOnlyUser < SlackError; end
|
56
|
+
class CannotAddSlackbot < SlackError; end
|
57
|
+
class CannotAuthUser < SlackError; end
|
58
|
+
class CannotCompleteOthers < SlackError; end
|
59
|
+
class CannotCompleteRecurring < SlackError; end
|
60
|
+
class CannotCreateChannel < SlackError; end
|
61
|
+
class CannotCreateDialog < SlackError; end
|
62
|
+
class CannotFindChannel < SlackError; end
|
63
|
+
class CannotFindMessage < SlackError; end
|
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
|
69
|
+
class CannotModifyPrimaryOwner < SlackError; end
|
70
|
+
class CannotMoveLocalChannel < SlackError; end
|
71
|
+
class CannotParse < SlackError; end
|
72
|
+
class CannotParseAttachment < SlackError; end
|
73
|
+
class CannotPrompt < SlackError; end
|
74
|
+
class CannotResetBot < SlackError; end
|
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
|
81
|
+
class CannotUnfurlUrl < SlackError; end
|
82
|
+
class CannotUpdateAdminUser < SlackError; end
|
83
|
+
class CantArchiveGeneral < SlackError; end
|
84
|
+
class CantArchiveRequired < SlackError; end
|
85
|
+
class CantBroadcastMessage < SlackError; end
|
86
|
+
class CantDelete < SlackError; end
|
87
|
+
class CantDeleteFile < SlackError; end
|
88
|
+
class CantDeleteMessage < SlackError; end
|
89
|
+
class CantInvite < SlackError; end
|
90
|
+
class CantInviteSelf < SlackError; end
|
91
|
+
class CantKickFromGeneral < SlackError; end
|
92
|
+
class CantKickSelf < SlackError; end
|
93
|
+
class CantLeaveGeneral < SlackError; end
|
94
|
+
class CantUpdateMessage < SlackError; end
|
95
|
+
class ChannelArchived < SlackError; end
|
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
|
101
|
+
class ChannelNotFound < SlackError; end
|
102
|
+
class ChannelTypeNotSupported < SlackError; end
|
103
|
+
class ClientIdTokenMismatch < SlackError; end
|
104
|
+
class CodeAlreadyUsed < SlackError; end
|
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
|
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
|
125
|
+
class DefaultOrgWideChannel < SlackError; end
|
126
|
+
class DeprecatedEndpoint < SlackError; end
|
127
|
+
class DescriptionTooLong < SlackError; end
|
128
|
+
class DiscoverabilitySettingInvalid < SlackError; end
|
129
|
+
class DomainTaken < SlackError; end
|
130
|
+
class DuplicateChannelNotFound < SlackError; end
|
131
|
+
class DuplicateExternalId < SlackError; end
|
132
|
+
class DuplicateMessageNotFound < SlackError; end
|
133
|
+
class EditWindowClosed < SlackError; end
|
134
|
+
class EkmAccessDenied < SlackError; end
|
135
|
+
class EmailDoesNotMatch < SlackError; end
|
136
|
+
class EmailTaken < SlackError; end
|
137
|
+
class EmojiLimitReached < SlackError; end
|
138
|
+
class EmojiNotFound < SlackError; end
|
139
|
+
class EnterpriseIsRestricted < SlackError; end
|
140
|
+
class EnterpriseNotFound < SlackError; end
|
141
|
+
class EntityNotFound < SlackError; end
|
142
|
+
class ErrorBadFormat < SlackError; end
|
143
|
+
class ErrorBadNameI18n < SlackError; end
|
144
|
+
class ErrorBadUpload < SlackError; end
|
145
|
+
class ErrorBadWide < SlackError; end
|
146
|
+
class ErrorInvalidAlias < SlackError; end
|
147
|
+
class ErrorInvalidEmojiToRename < SlackError; end
|
148
|
+
class ErrorMissingName < SlackError; end
|
149
|
+
class ErrorNameTaken < SlackError; end
|
150
|
+
class ErrorNameTakenI18n < SlackError; end
|
151
|
+
class ErrorNoImage < SlackError; end
|
152
|
+
class ErrorTooBig < SlackError; end
|
153
|
+
class ExchangedTriggerId < SlackError; end
|
154
|
+
class ExpiredTriggerId < SlackError; end
|
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
|
162
|
+
class FailedLookingUpUser < SlackError; end
|
163
|
+
class FailedSendingDialog < SlackError; end
|
164
|
+
class FailedToAddEmoji < SlackError; end
|
165
|
+
class FailedToAliasEmoji < SlackError; end
|
166
|
+
class FailedToFetchActiveTeam < SlackError; end
|
167
|
+
class FailedToFetchInfo < SlackError; end
|
168
|
+
class FailedToRemoveGroupUsers < SlackError; end
|
169
|
+
class FailedToRemoveUserFromWorkspace < SlackError; end
|
170
|
+
class FailedToRenameEmoji < SlackError; end
|
171
|
+
class FailedToSendInvite < SlackError; end
|
172
|
+
class FailedToSetDefaultChannels < SlackError; end
|
173
|
+
class FailedToSetDescription < SlackError; end
|
174
|
+
class FailedToSetDiscoverability < SlackError; end
|
175
|
+
class FailedToSetExpiration < SlackError; end
|
176
|
+
class FailedToSetIcon < SlackError; end
|
177
|
+
class FailedToSetName < SlackError; end
|
178
|
+
class FailedToSetUserToAdmin < SlackError; end
|
179
|
+
class FailedToSetUserToOwner < SlackError; end
|
180
|
+
class FailedToSetUserToRegular < SlackError; end
|
181
|
+
class FailedToUnlinkChannel < SlackError; end
|
182
|
+
class FailedToUnshare < SlackError; end
|
183
|
+
class FailedToValidateCaller < SlackError; end
|
184
|
+
class FailedToValidateChannels < SlackError; end
|
185
|
+
class FailedToValidateCustomMessage < SlackError; end
|
186
|
+
class FailedToValidateExpiration < SlackError; end
|
187
|
+
class FailedToValidateTeam < SlackError; end
|
188
|
+
class FailureRemovingEmoji < SlackError; end
|
189
|
+
class FatalError < SlackError; end
|
190
|
+
class FeatureNotEnabled < SlackError; end
|
191
|
+
class FetchMembersFailed < SlackError; end
|
192
|
+
class FileCommentNotFound < SlackError; end
|
193
|
+
class FileDeleted < SlackError; end
|
194
|
+
class FileDeletingDisabled < SlackError; end
|
195
|
+
class FileNotFound < SlackError; end
|
196
|
+
class FileNotShared < SlackError; end
|
197
|
+
class FileNotYetAvailable < SlackError; end
|
198
|
+
class FileUnderReview < SlackError; end
|
199
|
+
class ForbiddenHandle < SlackError; end
|
200
|
+
class ForbiddenTeam < SlackError; end
|
201
|
+
class GroupAlreadyLinkedToChannel < SlackError; end
|
202
|
+
class GroupMustNotBeEmpty < SlackError; end
|
203
|
+
class GroupNotFound < SlackError; end
|
204
|
+
class HandleAlreadyExists < SlackError; end
|
205
|
+
class HasAlreadyConnectedToOrg < SlackError; end
|
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
|
214
|
+
class InvalidAppId < SlackError; end
|
215
|
+
class InvalidArgName < SlackError; end
|
216
|
+
class InvalidArgs < SlackError; end
|
217
|
+
class InvalidArguments < SlackError; end
|
218
|
+
class InvalidArrayArg < SlackError; end
|
219
|
+
class InvalidAttachments < SlackError; end
|
220
|
+
class InvalidAuth < SlackError; end
|
221
|
+
class InvalidBlocks < SlackError; end
|
222
|
+
class InvalidBlocksFormat < SlackError; end
|
223
|
+
class InvalidCallId < SlackError; end
|
224
|
+
class InvalidChannel < SlackError; end
|
225
|
+
class InvalidChannelId < SlackError; end
|
226
|
+
class InvalidChannelProvided < SlackError; end
|
227
|
+
class InvalidChannelType < SlackError; end
|
228
|
+
class InvalidChannelsLimit < SlackError; end
|
229
|
+
class InvalidCharset < SlackError; end
|
230
|
+
class InvalidClientId < SlackError; end
|
231
|
+
class InvalidCode < SlackError; end
|
232
|
+
class InvalidCreatedBy < SlackError; end
|
233
|
+
class InvalidCursor < SlackError; end
|
234
|
+
class InvalidDate < SlackError; end
|
235
|
+
class InvalidDuration < SlackError; end
|
236
|
+
class InvalidEmail < SlackError; end
|
237
|
+
class InvalidEmojiNotAllowed < SlackError; end
|
238
|
+
class InvalidEventContext < SlackError; end
|
239
|
+
class InvalidExternalId < SlackError; end
|
240
|
+
class InvalidFormData < SlackError; end
|
241
|
+
class InvalidGrantType < SlackError; end
|
242
|
+
class InvalidGroupProvided < SlackError; end
|
243
|
+
class InvalidHostTeam < SlackError; end
|
244
|
+
class InvalidInputs < SlackError; end
|
245
|
+
class InvalidLimit < SlackError; end
|
246
|
+
class InvalidLink < SlackError; end
|
247
|
+
class InvalidManifest < SlackError; end
|
248
|
+
class InvalidMetadataFilterKeys < SlackError; end
|
249
|
+
class InvalidName < SlackError; end
|
250
|
+
class InvalidNameMaxlength < SlackError; end
|
251
|
+
class InvalidNamePunctuation < SlackError; end
|
252
|
+
class InvalidNameRequired < SlackError; end
|
253
|
+
class InvalidNameSpecials < SlackError; end
|
254
|
+
class InvalidOutputs < SlackError; end
|
255
|
+
class InvalidPayload < SlackError; end
|
256
|
+
class InvalidPermissions < SlackError; end
|
257
|
+
class InvalidPostType < SlackError; end
|
258
|
+
class InvalidPresence < SlackError; end
|
259
|
+
class InvalidPrivacy < SlackError; end
|
260
|
+
class InvalidProfile < SlackError; end
|
261
|
+
class InvalidRefreshToken < SlackError; end
|
262
|
+
class InvalidRequest < SlackError; end
|
263
|
+
class InvalidRequestId < SlackError; end
|
264
|
+
class InvalidRestrictedSubjects < SlackError; end
|
265
|
+
class InvalidRoleForUser < SlackError; end
|
266
|
+
class InvalidScheduledMessageId < SlackError; end
|
267
|
+
class InvalidScopes < SlackError; end
|
268
|
+
class InvalidSearchChannelType < SlackError; end
|
269
|
+
class InvalidSort < SlackError; end
|
270
|
+
class InvalidSortDir < SlackError; end
|
271
|
+
class InvalidSource < SlackError; end
|
272
|
+
class InvalidStartTime < SlackError; end
|
273
|
+
class InvalidStepStatus < SlackError; end
|
274
|
+
class InvalidTargetTeam < SlackError; end
|
275
|
+
class InvalidTeam < SlackError; end
|
276
|
+
class InvalidTeamIds < SlackError; end
|
277
|
+
class InvalidTime < SlackError; end
|
278
|
+
class InvalidTimestamp < SlackError; end
|
279
|
+
class InvalidTitle < SlackError; end
|
280
|
+
class InvalidToken < SlackError; end
|
281
|
+
class InvalidTrigger < SlackError; end
|
282
|
+
class InvalidTriggerId < SlackError; end
|
283
|
+
class InvalidTsLatest < SlackError; end
|
284
|
+
class InvalidTsOldest < SlackError; end
|
285
|
+
class InvalidType < SlackError; end
|
286
|
+
class InvalidTypes < SlackError; end
|
287
|
+
class InvalidUnfurlId < SlackError; end
|
288
|
+
class InvalidUnfurlsFormat < SlackError; end
|
289
|
+
class InvalidUrl < SlackError; end
|
290
|
+
class InvalidUser < SlackError; end
|
291
|
+
class InvalidUserCombination < SlackError; end
|
292
|
+
class InvalidUserId < SlackError; end
|
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
|
299
|
+
class InvitedUserNotCreated < SlackError; end
|
300
|
+
class InvitedUserNotReactivated < SlackError; end
|
301
|
+
class InviteeCantSeeChannel < SlackError; end
|
302
|
+
class IsArchived < SlackError; end
|
303
|
+
class IsBot < SlackError; end
|
304
|
+
class IsInactive < SlackError; end
|
305
|
+
class IsPendingConnectedToOrg < SlackError; end
|
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
|
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
|
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
|
322
|
+
class MethodNotSupportedForChannelType < SlackError; end
|
323
|
+
class MigrationInProgress < SlackError; end
|
324
|
+
class MissingArgs < SlackError; end
|
325
|
+
class MissingArgument < SlackError; end
|
326
|
+
class MissingChannel < SlackError; end
|
327
|
+
class MissingDialog < SlackError; end
|
328
|
+
class MissingDuration < SlackError; end
|
329
|
+
class MissingPostType < SlackError; end
|
330
|
+
class MissingProfileId < SlackError; end
|
331
|
+
class MissingResource < SlackError; end
|
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
|
337
|
+
class MissingTrigger < SlackError; end
|
338
|
+
class MissingTs < SlackError; end
|
339
|
+
class MissingUnfurlId < SlackError; end
|
340
|
+
class MissingUnfurls < SlackError; end
|
341
|
+
class MissingUser < SlackError; end
|
342
|
+
class MsgTooLong < SlackError; end
|
343
|
+
class MustClearBothStatusTextAndStatusEmoji < SlackError; end
|
344
|
+
class MustProvideTeamDomain < SlackError; end
|
345
|
+
class MustProvideTeamName < SlackError; end
|
346
|
+
class MustRevokeAccess < SlackError; end
|
347
|
+
class NameAlreadyExists < SlackError; end
|
348
|
+
class NameTaken < SlackError; end
|
349
|
+
class NameTakenInOrg < SlackError; end
|
350
|
+
class NameTooLong < SlackError; end
|
351
|
+
class NoActiveSessions < SlackError; end
|
352
|
+
class NoAliasSelected < SlackError; end
|
353
|
+
class NoBotUserForApp < SlackError; end
|
354
|
+
class NoChannel < SlackError; end
|
355
|
+
class NoDualBroadcastContentUpdate < SlackError; end
|
356
|
+
class NoImageUploaded < SlackError; end
|
357
|
+
class NoItemSpecified < SlackError; end
|
358
|
+
class NoLocalUserOnTeam < SlackError; end
|
359
|
+
class NoPermission < SlackError; end
|
360
|
+
class NoPin < SlackError; end
|
361
|
+
class NoReaction < SlackError; end
|
362
|
+
class NoResolutionFound < SlackError; end
|
363
|
+
class NoScopes < SlackError; end
|
364
|
+
class NoSuchSubteam < SlackError; end
|
365
|
+
class NoTeamIdsGiven < SlackError; end
|
366
|
+
class NoTeamsToDisconnect < SlackError; end
|
367
|
+
class NoText < SlackError; end
|
368
|
+
class NoUser < SlackError; end
|
369
|
+
class NoUserProvided < SlackError; end
|
370
|
+
class NoUsersProvided < SlackError; end
|
371
|
+
class NotAdmin < SlackError; end
|
372
|
+
class NotAllowed < SlackError; end
|
373
|
+
class NotAllowedForGridWorkspace < SlackError; end
|
374
|
+
class NotAllowedTokenType < SlackError; end
|
375
|
+
class NotAnAdmin < SlackError; end
|
376
|
+
class NotAnEnterprise < SlackError; end
|
377
|
+
class NotAppAdmin < SlackError; end
|
378
|
+
class NotArchived < SlackError; end
|
379
|
+
class NotAuthed < SlackError; end
|
380
|
+
class NotAuthorized < SlackError; end
|
381
|
+
class NotBearerToken < SlackError; end
|
382
|
+
class NotEnabled < SlackError; end
|
383
|
+
class NotEnoughUsers < SlackError; end
|
384
|
+
class NotEnterpriseTeam < SlackError; end
|
385
|
+
class NotFound < SlackError; end
|
386
|
+
class NotImplemented < SlackError; end
|
387
|
+
class NotInChannel < SlackError; end
|
388
|
+
class NotInDnd < SlackError; end
|
389
|
+
class NotOwner < SlackError; end
|
390
|
+
class NotPaid < SlackError; end
|
391
|
+
class NotPinnable < SlackError; end
|
392
|
+
class NotPinned < SlackError; end
|
393
|
+
class NotReactable < SlackError; end
|
394
|
+
class NotStarred < SlackError; end
|
395
|
+
class NotSupported < SlackError; end
|
396
|
+
class OauthAuthorizationUrlMismatch < SlackError; end
|
397
|
+
class OneOrMoreInvalidChannels < SlackError; end
|
398
|
+
class OrgLevelEmailDisplayDisabled < SlackError; end
|
399
|
+
class OrgLoginRequired < SlackError; end
|
400
|
+
class OrgNotFound < SlackError; end
|
401
|
+
class OrgUserNotInTeam < SlackError; end
|
402
|
+
class OverMaxEntityLimit < SlackError; end
|
403
|
+
class OverPaginationLimit < SlackError; end
|
404
|
+
class PaginationNotAvailable < SlackError; end
|
405
|
+
class PaidOnly < SlackError; end
|
406
|
+
class PaidTeamsOnly < SlackError; end
|
407
|
+
class PermissionDenied < SlackError; end
|
408
|
+
class PlanUpgradeRequired < SlackError; end
|
409
|
+
class PolicyNotFound < SlackError; end
|
410
|
+
class PostingToGeneralChannelDenied < SlackError; end
|
411
|
+
class PreviewFeatureNotAvailable < SlackError; end
|
412
|
+
class PrimaryUsergroupNotFound < SlackError; end
|
413
|
+
class ProfileSetFailed < SlackError; end
|
414
|
+
class PublicVideoNotAllowed < SlackError; end
|
415
|
+
class PublishedAppOnly < SlackError; end
|
416
|
+
class PushLimitReached < SlackError; end
|
417
|
+
class RateLimited < SlackError; end
|
418
|
+
class Ratelimit < SlackError; end
|
419
|
+
class Ratelimited < SlackError; end
|
420
|
+
class RequestAlreadyResolved < SlackError; end
|
421
|
+
class RequestIdOrAppIdIsRequired < SlackError; end
|
422
|
+
class RequestIdRequiredForCustomIntegrations < SlackError; end
|
423
|
+
class RequestTimeout < SlackError; end
|
424
|
+
class ReservedName < SlackError; end
|
425
|
+
class ResizedButStillTooLarge < SlackError; end
|
426
|
+
class RestrictedAction < SlackError; end
|
427
|
+
class RestrictedActionNonThreadableChannel < SlackError; end
|
428
|
+
class RestrictedActionReadOnlyChannel < SlackError; end
|
429
|
+
class RestrictedActionThreadLocked < SlackError; end
|
430
|
+
class RestrictedActionThreadOnlyChannel < SlackError; end
|
431
|
+
class RetentionOverrideNotAllowed < SlackError; end
|
432
|
+
class RtmConnectRequired < SlackError; end
|
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
|
443
|
+
class SnoozeEndFailed < SlackError; end
|
444
|
+
class SnoozeFailed < SlackError; end
|
445
|
+
class SnoozeNotActive < SlackError; end
|
446
|
+
class SpecifyEnterpriseOrTeams < SlackError; end
|
447
|
+
class SubteamMaxUsersExceeded < SlackError; end
|
448
|
+
class TeamAccessNotGranted < SlackError; end
|
449
|
+
class TeamAddedToOrg < SlackError; end
|
450
|
+
class TeamIdOrOrgRequired < SlackError; end
|
451
|
+
class TeamIdRequiredForEnterprise < SlackError; end
|
452
|
+
class TeamNotFound < SlackError; end
|
453
|
+
class TeamNotOnEnterprise < SlackError; end
|
454
|
+
class TeamsNotFound < SlackError; end
|
455
|
+
class ThreadLocked < SlackError; end
|
456
|
+
class ThreadNotFound < SlackError; end
|
457
|
+
class TimeInPast < SlackError; end
|
458
|
+
class TimeTooFar < SlackError; end
|
459
|
+
class TokenAlreadyExchanged < SlackError; end
|
460
|
+
class TokenExpired < SlackError; end
|
461
|
+
class TokenRevoked < SlackError; end
|
462
|
+
class TokenRotationNotEnabled < SlackError; end
|
463
|
+
class TooLarge < SlackError; end
|
464
|
+
class TooLong < SlackError; end
|
465
|
+
class TooManyAttachments < SlackError; end
|
466
|
+
class TooManyContactCards < SlackError; end
|
467
|
+
class TooManyConvosForAppOnTeam < SlackError; end
|
468
|
+
class TooManyConvosForTeam < SlackError; end
|
469
|
+
class TooManyEmails < SlackError; end
|
470
|
+
class TooManyEmoji < SlackError; end
|
471
|
+
class TooManyFrames < SlackError; end
|
472
|
+
class TooManyIds < SlackError; end
|
473
|
+
class TooManyIdsProvided < SlackError; end
|
474
|
+
class TooManyLinkedChannels < SlackError; end
|
475
|
+
class TooManyMembers < SlackError; end
|
476
|
+
class TooManyPins < SlackError; end
|
477
|
+
class TooManyReactions < SlackError; end
|
478
|
+
class TooManyTargetTeams < SlackError; end
|
479
|
+
class TooManyTeams < SlackError; end
|
480
|
+
class TooManyTeamsProvided < SlackError; end
|
481
|
+
class TooManyUsers < SlackError; end
|
482
|
+
class TriggerExchanged < SlackError; end
|
483
|
+
class TriggerExpired < SlackError; end
|
484
|
+
class TwoFactorSetupRequired < SlackError; end
|
485
|
+
class UnableToLinkIdpGroupAndChannel < SlackError; end
|
486
|
+
class UnableToUnlinkIdpGroupAndChannel < SlackError; end
|
487
|
+
class UnableToUpdateExistingSessions < SlackError; end
|
488
|
+
class UnknownError < SlackError; end
|
489
|
+
class UnknownMethod < SlackError; end
|
490
|
+
class UnknownType < SlackError; end
|
491
|
+
class UnsupportedArguments < SlackError; end
|
492
|
+
class UnsupportedContextType < SlackError; end
|
493
|
+
class UnsupportedTeamType < SlackError; end
|
494
|
+
class UpdateFailed < SlackError; end
|
495
|
+
class UraMaxChannels < SlackError; end
|
496
|
+
class UrlInMessage < SlackError; end
|
497
|
+
class UserAlreadyDeleted < SlackError; end
|
498
|
+
class UserAlreadyTeamMember < SlackError; end
|
499
|
+
class UserCannotCreateChannel < SlackError; end
|
500
|
+
class UserDisabled < SlackError; end
|
501
|
+
class UserDoesNotOwnChannel < SlackError; end
|
502
|
+
class UserIsAlreadyDeleted < SlackError; end
|
503
|
+
class UserIsBot < SlackError; end
|
504
|
+
class UserIsNotAGuest < SlackError; end
|
505
|
+
class UserIsRestricted < SlackError; end
|
506
|
+
class UserIsUltraRestricted < SlackError; end
|
507
|
+
class UserMustBeAdmin < SlackError; end
|
508
|
+
class UserMustBeInWorkspace < SlackError; end
|
509
|
+
class UserNotFound < SlackError; end
|
510
|
+
class UserNotInChannel < SlackError; end
|
511
|
+
class UserNotVisible < SlackError; end
|
512
|
+
class UserRequiredToAcceptAsPrivateButCannot < SlackError; end
|
513
|
+
class UserSessionResetFailed < SlackError; end
|
514
|
+
class UsergroupNotFound < SlackError; end
|
515
|
+
class UsergroupNotLinkedToTeam < SlackError; end
|
516
|
+
class UsergroupTeamNotProvisioned < SlackError; end
|
517
|
+
class UsersListNotSupplied < SlackError; end
|
518
|
+
class UsersNotFound < SlackError; end
|
519
|
+
class ValidationErrors < SlackError; end
|
520
|
+
class ViewTooLarge < SlackError; end
|
521
|
+
|
522
|
+
ERROR_CLASSES = {
|
523
|
+
'access_denied' => AccessDenied,
|
524
|
+
'accesslimited' => Accesslimited,
|
525
|
+
'account_inactive' => AccountInactive,
|
526
|
+
'admin_unauthorized' => AdminUnauthorized,
|
527
|
+
'already_approved' => AlreadyApproved,
|
528
|
+
'already_archived' => AlreadyArchived,
|
529
|
+
'already_in_channel' => AlreadyInChannel,
|
530
|
+
'already_in_team' => AlreadyInTeam,
|
531
|
+
'already_in_team_invited_user' => AlreadyInTeamInvitedUser,
|
532
|
+
'already_invited' => AlreadyInvited,
|
533
|
+
'already_pinned' => AlreadyPinned,
|
534
|
+
'already_processed' => AlreadyProcessed,
|
535
|
+
'already_reacted' => AlreadyReacted,
|
536
|
+
'already_starred' => AlreadyStarred,
|
537
|
+
'app_management_app_not_installed_on_org' => AppManagementAppNotInstalledOnOrg,
|
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,
|
543
|
+
'as_user_not_supported' => AsUserNotSupported,
|
544
|
+
'at_least_one_session_setting_required' => AtLeastOneSessionSettingRequired,
|
545
|
+
'auth_mismatch' => AuthMismatch,
|
546
|
+
'auto_provision_failure' => AutoProvisionFailure,
|
547
|
+
'bad_client_secret' => BadClientSecret,
|
548
|
+
'bad_handle' => BadHandle,
|
549
|
+
'bad_image' => BadImage,
|
550
|
+
'bad_redirect_uri' => BadRedirectUri,
|
551
|
+
'bad_timestamp' => BadTimestamp,
|
552
|
+
'bad_title' => BadTitle,
|
553
|
+
'bad_token' => BadToken,
|
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,
|
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,
|
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,
|
568
|
+
'cannot_add_others' => CannotAddOthers,
|
569
|
+
'cannot_add_others_recurring' => CannotAddOthersRecurring,
|
570
|
+
'cannot_add_profile_only_user' => CannotAddProfileOnlyUser,
|
571
|
+
'cannot_add_slackbot' => CannotAddSlackbot,
|
572
|
+
'cannot_auth_user' => CannotAuthUser,
|
573
|
+
'cannot_complete_others' => CannotCompleteOthers,
|
574
|
+
'cannot_complete_recurring' => CannotCompleteRecurring,
|
575
|
+
'cannot_create_channel' => CannotCreateChannel,
|
576
|
+
'cannot_create_dialog' => CannotCreateDialog,
|
577
|
+
'cannot_find_channel' => CannotFindChannel,
|
578
|
+
'cannot_find_message' => CannotFindMessage,
|
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,
|
584
|
+
'cannot_modify_primary_owner' => CannotModifyPrimaryOwner,
|
585
|
+
'cannot_move_local_channel' => CannotMoveLocalChannel,
|
586
|
+
'cannot_parse' => CannotParse,
|
587
|
+
'cannot_parse_attachment' => CannotParseAttachment,
|
588
|
+
'cannot_prompt' => CannotPrompt,
|
589
|
+
'cannot_reset_bot' => CannotResetBot,
|
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,
|
596
|
+
'cannot_unfurl_url' => CannotUnfurlUrl,
|
597
|
+
'cannot_update_admin_user' => CannotUpdateAdminUser,
|
598
|
+
'cant_archive_general' => CantArchiveGeneral,
|
599
|
+
'cant_archive_required' => CantArchiveRequired,
|
600
|
+
'cant_broadcast_message' => CantBroadcastMessage,
|
601
|
+
'cant_delete' => CantDelete,
|
602
|
+
'cant_delete_file' => CantDeleteFile,
|
603
|
+
'cant_delete_message' => CantDeleteMessage,
|
604
|
+
'cant_invite' => CantInvite,
|
605
|
+
'cant_invite_self' => CantInviteSelf,
|
606
|
+
'cant_kick_from_general' => CantKickFromGeneral,
|
607
|
+
'cant_kick_self' => CantKickSelf,
|
608
|
+
'cant_leave_general' => CantLeaveGeneral,
|
609
|
+
'cant_update_message' => CantUpdateMessage,
|
610
|
+
'channel_archived' => ChannelArchived,
|
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,
|
616
|
+
'channel_not_found' => ChannelNotFound,
|
617
|
+
'channel_type_not_supported' => ChannelTypeNotSupported,
|
618
|
+
'client_id_token_mismatch' => ClientIdTokenMismatch,
|
619
|
+
'code_already_used' => CodeAlreadyUsed,
|
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,
|
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,
|
640
|
+
'default_org_wide_channel' => DefaultOrgWideChannel,
|
641
|
+
'deprecated_endpoint' => DeprecatedEndpoint,
|
642
|
+
'description_too_long' => DescriptionTooLong,
|
643
|
+
'discoverability_setting_invalid' => DiscoverabilitySettingInvalid,
|
644
|
+
'domain_taken' => DomainTaken,
|
645
|
+
'duplicate_channel_not_found' => DuplicateChannelNotFound,
|
646
|
+
'duplicate_external_id' => DuplicateExternalId,
|
647
|
+
'duplicate_message_not_found' => DuplicateMessageNotFound,
|
648
|
+
'edit_window_closed' => EditWindowClosed,
|
649
|
+
'ekm_access_denied' => EkmAccessDenied,
|
650
|
+
'email_does_not_match' => EmailDoesNotMatch,
|
651
|
+
'email_taken' => EmailTaken,
|
652
|
+
'emoji_limit_reached' => EmojiLimitReached,
|
653
|
+
'emoji_not_found' => EmojiNotFound,
|
654
|
+
'enterprise_is_restricted' => EnterpriseIsRestricted,
|
655
|
+
'enterprise_not_found' => EnterpriseNotFound,
|
656
|
+
'entity_not_found' => EntityNotFound,
|
657
|
+
'error_bad_format' => ErrorBadFormat,
|
658
|
+
'error_bad_name_i18n' => ErrorBadNameI18n,
|
659
|
+
'error_bad_upload' => ErrorBadUpload,
|
660
|
+
'error_bad_wide' => ErrorBadWide,
|
661
|
+
'error_invalid_alias' => ErrorInvalidAlias,
|
662
|
+
'error_invalid_emoji_to_rename' => ErrorInvalidEmojiToRename,
|
663
|
+
'error_missing_name' => ErrorMissingName,
|
664
|
+
'error_name_taken' => ErrorNameTaken,
|
665
|
+
'error_name_taken_i18n' => ErrorNameTakenI18n,
|
666
|
+
'error_no_image' => ErrorNoImage,
|
667
|
+
'error_too_big' => ErrorTooBig,
|
668
|
+
'exchanged_trigger_id' => ExchangedTriggerId,
|
669
|
+
'expired_trigger_id' => ExpiredTriggerId,
|
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,
|
677
|
+
'failed_looking_up_user' => FailedLookingUpUser,
|
678
|
+
'failed_sending_dialog' => FailedSendingDialog,
|
679
|
+
'failed_to_add_emoji' => FailedToAddEmoji,
|
680
|
+
'failed_to_alias_emoji' => FailedToAliasEmoji,
|
681
|
+
'failed_to_fetch_active_team' => FailedToFetchActiveTeam,
|
682
|
+
'failed_to_fetch_info' => FailedToFetchInfo,
|
683
|
+
'failed_to_remove_group_users' => FailedToRemoveGroupUsers,
|
684
|
+
'failed_to_remove_user_from_workspace' => FailedToRemoveUserFromWorkspace,
|
685
|
+
'failed_to_rename_emoji' => FailedToRenameEmoji,
|
686
|
+
'failed_to_send_invite' => FailedToSendInvite,
|
687
|
+
'failed_to_set_default_channels' => FailedToSetDefaultChannels,
|
688
|
+
'failed_to_set_description' => FailedToSetDescription,
|
689
|
+
'failed_to_set_discoverability' => FailedToSetDiscoverability,
|
690
|
+
'failed_to_set_expiration' => FailedToSetExpiration,
|
691
|
+
'failed_to_set_icon' => FailedToSetIcon,
|
692
|
+
'failed_to_set_name' => FailedToSetName,
|
693
|
+
'failed_to_set_user_to_admin' => FailedToSetUserToAdmin,
|
694
|
+
'failed_to_set_user_to_owner' => FailedToSetUserToOwner,
|
695
|
+
'failed_to_set_user_to_regular' => FailedToSetUserToRegular,
|
696
|
+
'failed_to_unlink_channel' => FailedToUnlinkChannel,
|
697
|
+
'failed_to_unshare' => FailedToUnshare,
|
698
|
+
'failed_to_validate_caller' => FailedToValidateCaller,
|
699
|
+
'failed_to_validate_channels' => FailedToValidateChannels,
|
700
|
+
'failed_to_validate_custom_message' => FailedToValidateCustomMessage,
|
701
|
+
'failed_to_validate_expiration' => FailedToValidateExpiration,
|
702
|
+
'failed_to_validate_team' => FailedToValidateTeam,
|
703
|
+
'failure_removing_emoji' => FailureRemovingEmoji,
|
704
|
+
'fatal_error' => FatalError,
|
705
|
+
'feature_not_enabled' => FeatureNotEnabled,
|
706
|
+
'fetch_members_failed' => FetchMembersFailed,
|
707
|
+
'file_comment_not_found' => FileCommentNotFound,
|
708
|
+
'file_deleted' => FileDeleted,
|
709
|
+
'file_deleting_disabled' => FileDeletingDisabled,
|
710
|
+
'file_not_found' => FileNotFound,
|
711
|
+
'file_not_shared' => FileNotShared,
|
712
|
+
'file_not_yet_available' => FileNotYetAvailable,
|
713
|
+
'file_under_review' => FileUnderReview,
|
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,
|
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,
|
729
|
+
'invalid_app_id' => InvalidAppId,
|
730
|
+
'invalid_arg_name' => InvalidArgName,
|
731
|
+
'invalid_args' => InvalidArgs,
|
732
|
+
'invalid_arguments' => InvalidArguments,
|
733
|
+
'invalid_array_arg' => InvalidArrayArg,
|
734
|
+
'invalid_attachments' => InvalidAttachments,
|
735
|
+
'invalid_auth' => InvalidAuth,
|
736
|
+
'invalid_blocks' => InvalidBlocks,
|
737
|
+
'invalid_blocks_format' => InvalidBlocksFormat,
|
738
|
+
'invalid_call_id' => InvalidCallId,
|
739
|
+
'invalid_channel' => InvalidChannel,
|
740
|
+
'invalid_channel_id' => InvalidChannelId,
|
741
|
+
'invalid_channel_provided' => InvalidChannelProvided,
|
742
|
+
'invalid_channel_type' => InvalidChannelType,
|
743
|
+
'invalid_channels_limit' => InvalidChannelsLimit,
|
744
|
+
'invalid_charset' => InvalidCharset,
|
745
|
+
'invalid_client_id' => InvalidClientId,
|
746
|
+
'invalid_code' => InvalidCode,
|
747
|
+
'invalid_created_by' => InvalidCreatedBy,
|
748
|
+
'invalid_cursor' => InvalidCursor,
|
749
|
+
'invalid_date' => InvalidDate,
|
750
|
+
'invalid_duration' => InvalidDuration,
|
751
|
+
'invalid_email' => InvalidEmail,
|
752
|
+
'invalid_emoji_not_allowed' => InvalidEmojiNotAllowed,
|
753
|
+
'invalid_event_context' => InvalidEventContext,
|
754
|
+
'invalid_external_id' => InvalidExternalId,
|
755
|
+
'invalid_form_data' => InvalidFormData,
|
756
|
+
'invalid_grant_type' => InvalidGrantType,
|
757
|
+
'invalid_group_provided' => InvalidGroupProvided,
|
758
|
+
'invalid_host_team' => InvalidHostTeam,
|
759
|
+
'invalid_inputs' => InvalidInputs,
|
760
|
+
'invalid_limit' => InvalidLimit,
|
761
|
+
'invalid_link' => InvalidLink,
|
762
|
+
'invalid_manifest' => InvalidManifest,
|
763
|
+
'invalid_metadata_filter_keys' => InvalidMetadataFilterKeys,
|
764
|
+
'invalid_name' => InvalidName,
|
765
|
+
'invalid_name_maxlength' => InvalidNameMaxlength,
|
766
|
+
'invalid_name_punctuation' => InvalidNamePunctuation,
|
767
|
+
'invalid_name_required' => InvalidNameRequired,
|
768
|
+
'invalid_name_specials' => InvalidNameSpecials,
|
769
|
+
'invalid_outputs' => InvalidOutputs,
|
770
|
+
'invalid_payload' => InvalidPayload,
|
771
|
+
'invalid_permissions' => InvalidPermissions,
|
772
|
+
'invalid_post_type' => InvalidPostType,
|
773
|
+
'invalid_presence' => InvalidPresence,
|
774
|
+
'invalid_privacy' => InvalidPrivacy,
|
775
|
+
'invalid_profile' => InvalidProfile,
|
776
|
+
'invalid_refresh_token' => InvalidRefreshToken,
|
777
|
+
'invalid_request' => InvalidRequest,
|
778
|
+
'invalid_request_id' => InvalidRequestId,
|
779
|
+
'invalid_restricted_subjects' => InvalidRestrictedSubjects,
|
780
|
+
'invalid_role_for_user' => InvalidRoleForUser,
|
781
|
+
'invalid_scheduled_message_id' => InvalidScheduledMessageId,
|
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,
|
789
|
+
'invalid_target_team' => InvalidTargetTeam,
|
790
|
+
'invalid_team' => InvalidTeam,
|
791
|
+
'invalid_team_ids' => InvalidTeamIds,
|
792
|
+
'invalid_time' => InvalidTime,
|
793
|
+
'invalid_timestamp' => InvalidTimestamp,
|
794
|
+
'invalid_title' => InvalidTitle,
|
795
|
+
'invalid_token' => InvalidToken,
|
796
|
+
'invalid_trigger' => InvalidTrigger,
|
797
|
+
'invalid_trigger_id' => InvalidTriggerId,
|
798
|
+
'invalid_ts_latest' => InvalidTsLatest,
|
799
|
+
'invalid_ts_oldest' => InvalidTsOldest,
|
800
|
+
'invalid_type' => InvalidType,
|
801
|
+
'invalid_types' => InvalidTypes,
|
802
|
+
'invalid_unfurl_id' => InvalidUnfurlId,
|
803
|
+
'invalid_unfurls_format' => InvalidUnfurlsFormat,
|
804
|
+
'invalid_url' => InvalidUrl,
|
805
|
+
'invalid_user' => InvalidUser,
|
806
|
+
'invalid_user_combination' => InvalidUserCombination,
|
807
|
+
'invalid_user_id' => InvalidUserId,
|
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,
|
814
|
+
'invited_user_not_created' => InvitedUserNotCreated,
|
815
|
+
'invited_user_not_reactivated' => InvitedUserNotReactivated,
|
816
|
+
'invitee_cant_see_channel' => InviteeCantSeeChannel,
|
817
|
+
'is_archived' => IsArchived,
|
818
|
+
'is_bot' => IsBot,
|
819
|
+
'is_inactive' => IsInactive,
|
820
|
+
'is_pending_connected_to_org' => IsPendingConnectedToOrg,
|
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,
|
826
|
+
'limit_required' => LimitRequired,
|
827
|
+
'link_not_found' => LinkNotFound,
|
828
|
+
'malware_detected' => MalwareDetected,
|
829
|
+
'member_analytics_disabled' => MemberAnalyticsDisabled,
|
830
|
+
'member_limit_exceeded' => MemberLimitExceeded,
|
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,
|
837
|
+
'method_not_supported_for_channel_type' => MethodNotSupportedForChannelType,
|
838
|
+
'migration_in_progress' => MigrationInProgress,
|
839
|
+
'missing_args' => MissingArgs,
|
840
|
+
'missing_argument' => MissingArgument,
|
841
|
+
'missing_channel' => MissingChannel,
|
842
|
+
'missing_dialog' => MissingDialog,
|
843
|
+
'missing_duration' => MissingDuration,
|
844
|
+
'missing_post_type' => MissingPostType,
|
845
|
+
'missing_profile_id' => MissingProfileId,
|
846
|
+
'missing_resource' => MissingResource,
|
847
|
+
'missing_scope' => MissingScope,
|
848
|
+
'missing_source' => MissingSource,
|
849
|
+
'missing_subteam_name' => MissingSubteamName,
|
850
|
+
'missing_target_team' => MissingTargetTeam,
|
851
|
+
'missing_team' => MissingTeam,
|
852
|
+
'missing_trigger' => MissingTrigger,
|
853
|
+
'missing_ts' => MissingTs,
|
854
|
+
'missing_unfurl_id' => MissingUnfurlId,
|
855
|
+
'missing_unfurls' => MissingUnfurls,
|
856
|
+
'missing_user' => MissingUser,
|
857
|
+
'msg_too_long' => MsgTooLong,
|
858
|
+
'must_clear_both_status_text_and_status_emoji' => MustClearBothStatusTextAndStatusEmoji,
|
859
|
+
'must_provide_team_domain' => MustProvideTeamDomain,
|
860
|
+
'must_provide_team_name' => MustProvideTeamName,
|
861
|
+
'must_revoke_access' => MustRevokeAccess,
|
862
|
+
'name_already_exists' => NameAlreadyExists,
|
863
|
+
'name_taken' => NameTaken,
|
864
|
+
'name_taken_in_org' => NameTakenInOrg,
|
865
|
+
'name_too_long' => NameTooLong,
|
866
|
+
'no_active_sessions' => NoActiveSessions,
|
867
|
+
'no_alias_selected' => NoAliasSelected,
|
868
|
+
'no_bot_user_for_app' => NoBotUserForApp,
|
869
|
+
'no_channel' => NoChannel,
|
870
|
+
'no_dual_broadcast_content_update' => NoDualBroadcastContentUpdate,
|
871
|
+
'no_image_uploaded' => NoImageUploaded,
|
872
|
+
'no_item_specified' => NoItemSpecified,
|
873
|
+
'no_local_user_on_team' => NoLocalUserOnTeam,
|
874
|
+
'no_permission' => NoPermission,
|
875
|
+
'no_pin' => NoPin,
|
876
|
+
'no_reaction' => NoReaction,
|
877
|
+
'no_resolution_found' => NoResolutionFound,
|
878
|
+
'no_scopes' => NoScopes,
|
879
|
+
'no_such_subteam' => NoSuchSubteam,
|
880
|
+
'no_team_ids_given' => NoTeamIdsGiven,
|
881
|
+
'no_teams_to_disconnect' => NoTeamsToDisconnect,
|
882
|
+
'no_text' => NoText,
|
883
|
+
'no_user' => NoUser,
|
884
|
+
'no_user_provided' => NoUserProvided,
|
885
|
+
'no_users_provided' => NoUsersProvided,
|
886
|
+
'not_admin' => NotAdmin,
|
887
|
+
'not_allowed' => NotAllowed,
|
888
|
+
'not_allowed_for_grid_workspace' => NotAllowedForGridWorkspace,
|
889
|
+
'not_allowed_token_type' => NotAllowedTokenType,
|
890
|
+
'not_an_admin' => NotAnAdmin,
|
891
|
+
'not_an_enterprise' => NotAnEnterprise,
|
892
|
+
'not_app_admin' => NotAppAdmin,
|
893
|
+
'not_archived' => NotArchived,
|
894
|
+
'not_authed' => NotAuthed,
|
895
|
+
'not_authorized' => NotAuthorized,
|
896
|
+
'not_bearer_token' => NotBearerToken,
|
897
|
+
'not_enabled' => NotEnabled,
|
898
|
+
'not_enough_users' => NotEnoughUsers,
|
899
|
+
'not_enterprise_team' => NotEnterpriseTeam,
|
900
|
+
'not_found' => NotFound,
|
901
|
+
'not_implemented' => NotImplemented,
|
902
|
+
'not_in_channel' => NotInChannel,
|
903
|
+
'not_in_dnd' => NotInDnd,
|
904
|
+
'not_owner' => NotOwner,
|
905
|
+
'not_paid' => NotPaid,
|
906
|
+
'not_pinnable' => NotPinnable,
|
907
|
+
'not_pinned' => NotPinned,
|
908
|
+
'not_reactable' => NotReactable,
|
909
|
+
'not_starred' => NotStarred,
|
910
|
+
'not_supported' => NotSupported,
|
911
|
+
'oauth_authorization_url_mismatch' => OauthAuthorizationUrlMismatch,
|
912
|
+
'one_or_more_invalid_channels' => OneOrMoreInvalidChannels,
|
913
|
+
'org_level_email_display_disabled' => OrgLevelEmailDisplayDisabled,
|
914
|
+
'org_login_required' => OrgLoginRequired,
|
915
|
+
'org_not_found' => OrgNotFound,
|
916
|
+
'org_user_not_in_team' => OrgUserNotInTeam,
|
917
|
+
'over_max_entity_limit' => OverMaxEntityLimit,
|
918
|
+
'over_pagination_limit' => OverPaginationLimit,
|
919
|
+
'pagination_not_available' => PaginationNotAvailable,
|
920
|
+
'paid_only' => PaidOnly,
|
921
|
+
'paid_teams_only' => PaidTeamsOnly,
|
922
|
+
'permission_denied' => PermissionDenied,
|
923
|
+
'plan_upgrade_required' => PlanUpgradeRequired,
|
924
|
+
'policy_not_found' => PolicyNotFound,
|
925
|
+
'posting_to_general_channel_denied' => PostingToGeneralChannelDenied,
|
926
|
+
'preview_feature_not_available' => PreviewFeatureNotAvailable,
|
927
|
+
'primary_usergroup_not_found' => PrimaryUsergroupNotFound,
|
928
|
+
'profile_set_failed' => ProfileSetFailed,
|
929
|
+
'public_video_not_allowed' => PublicVideoNotAllowed,
|
930
|
+
'published_app_only' => PublishedAppOnly,
|
931
|
+
'push_limit_reached' => PushLimitReached,
|
932
|
+
'rate_limited' => RateLimited,
|
933
|
+
'ratelimit' => Ratelimit,
|
934
|
+
'ratelimited' => Ratelimited,
|
935
|
+
'request_already_resolved' => RequestAlreadyResolved,
|
936
|
+
'request_id_or_app_id_is_required' => RequestIdOrAppIdIsRequired,
|
937
|
+
'request_id_required_for_custom_integrations' => RequestIdRequiredForCustomIntegrations,
|
938
|
+
'request_timeout' => RequestTimeout,
|
939
|
+
'reserved_name' => ReservedName,
|
940
|
+
'resized_but_still_too_large' => ResizedButStillTooLarge,
|
941
|
+
'restricted_action' => RestrictedAction,
|
942
|
+
'restricted_action_non_threadable_channel' => RestrictedActionNonThreadableChannel,
|
943
|
+
'restricted_action_read_only_channel' => RestrictedActionReadOnlyChannel,
|
944
|
+
'restricted_action_thread_locked' => RestrictedActionThreadLocked,
|
945
|
+
'restricted_action_thread_only_channel' => RestrictedActionThreadOnlyChannel,
|
946
|
+
'retention_override_not_allowed' => RetentionOverrideNotAllowed,
|
947
|
+
'rtm_connect_required' => RtmConnectRequired,
|
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,
|
958
|
+
'snooze_end_failed' => SnoozeEndFailed,
|
959
|
+
'snooze_failed' => SnoozeFailed,
|
960
|
+
'snooze_not_active' => SnoozeNotActive,
|
961
|
+
'specify_enterprise_or_teams' => SpecifyEnterpriseOrTeams,
|
962
|
+
'subteam_max_users_exceeded' => SubteamMaxUsersExceeded,
|
963
|
+
'team_access_not_granted' => TeamAccessNotGranted,
|
964
|
+
'team_added_to_org' => TeamAddedToOrg,
|
965
|
+
'team_id_or_org_required' => TeamIdOrOrgRequired,
|
966
|
+
'team_id_required_for_enterprise' => TeamIdRequiredForEnterprise,
|
967
|
+
'team_not_found' => TeamNotFound,
|
968
|
+
'team_not_on_enterprise' => TeamNotOnEnterprise,
|
969
|
+
'teams_not_found' => TeamsNotFound,
|
970
|
+
'thread_locked' => ThreadLocked,
|
971
|
+
'thread_not_found' => ThreadNotFound,
|
972
|
+
'time_in_past' => TimeInPast,
|
973
|
+
'time_too_far' => TimeTooFar,
|
974
|
+
'token_already_exchanged' => TokenAlreadyExchanged,
|
975
|
+
'token_expired' => TokenExpired,
|
976
|
+
'token_revoked' => TokenRevoked,
|
977
|
+
'token_rotation_not_enabled' => TokenRotationNotEnabled,
|
978
|
+
'too_large' => TooLarge,
|
979
|
+
'too_long' => TooLong,
|
980
|
+
'too_many_attachments' => TooManyAttachments,
|
981
|
+
'too_many_contact_cards' => TooManyContactCards,
|
982
|
+
'too_many_convos_for_app_on_team' => TooManyConvosForAppOnTeam,
|
983
|
+
'too_many_convos_for_team' => TooManyConvosForTeam,
|
984
|
+
'too_many_emails' => TooManyEmails,
|
985
|
+
'too_many_emoji' => TooManyEmoji,
|
986
|
+
'too_many_frames' => TooManyFrames,
|
987
|
+
'too_many_ids' => TooManyIds,
|
988
|
+
'too_many_ids_provided' => TooManyIdsProvided,
|
989
|
+
'too_many_linked_channels' => TooManyLinkedChannels,
|
990
|
+
'too_many_members' => TooManyMembers,
|
991
|
+
'too_many_pins' => TooManyPins,
|
992
|
+
'too_many_reactions' => TooManyReactions,
|
993
|
+
'too_many_target_teams' => TooManyTargetTeams,
|
994
|
+
'too_many_teams' => TooManyTeams,
|
995
|
+
'too_many_teams_provided' => TooManyTeamsProvided,
|
996
|
+
'too_many_users' => TooManyUsers,
|
997
|
+
'trigger_exchanged' => TriggerExchanged,
|
998
|
+
'trigger_expired' => TriggerExpired,
|
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,
|
1004
|
+
'unknown_method' => UnknownMethod,
|
1005
|
+
'unknown_type' => UnknownType,
|
1006
|
+
'unsupported_arguments' => UnsupportedArguments,
|
1007
|
+
'unsupported_context_type' => UnsupportedContextType,
|
1008
|
+
'unsupported_team_type' => UnsupportedTeamType,
|
1009
|
+
'update_failed' => UpdateFailed,
|
1010
|
+
'ura_max_channels' => UraMaxChannels,
|
1011
|
+
'url_in_message' => UrlInMessage,
|
1012
|
+
'user_already_deleted' => UserAlreadyDeleted,
|
1013
|
+
'user_already_team_member' => UserAlreadyTeamMember,
|
1014
|
+
'user_cannot_create_channel' => UserCannotCreateChannel,
|
1015
|
+
'user_disabled' => UserDisabled,
|
1016
|
+
'user_does_not_own_channel' => UserDoesNotOwnChannel,
|
1017
|
+
'user_is_already_deleted' => UserIsAlreadyDeleted,
|
1018
|
+
'user_is_bot' => UserIsBot,
|
1019
|
+
'user_is_not_a_guest' => UserIsNotAGuest,
|
1020
|
+
'user_is_restricted' => UserIsRestricted,
|
1021
|
+
'user_is_ultra_restricted' => UserIsUltraRestricted,
|
1022
|
+
'user_must_be_admin' => UserMustBeAdmin,
|
1023
|
+
'user_must_be_in_workspace' => UserMustBeInWorkspace,
|
1024
|
+
'user_not_found' => UserNotFound,
|
1025
|
+
'user_not_in_channel' => UserNotInChannel,
|
1026
|
+
'user_not_visible' => UserNotVisible,
|
1027
|
+
'user_required_to_accept_as_private_but_cannot' => UserRequiredToAcceptAsPrivateButCannot,
|
1028
|
+
'user_session_reset_failed' => UserSessionResetFailed,
|
1029
|
+
'usergroup_not_found' => UsergroupNotFound,
|
1030
|
+
'usergroup_not_linked_to_team' => UsergroupNotLinkedToTeam,
|
1031
|
+
'usergroup_team_not_provisioned' => UsergroupTeamNotProvisioned,
|
1032
|
+
'users_list_not_supplied' => UsersListNotSupplied,
|
1033
|
+
'users_not_found' => UsersNotFound,
|
1034
|
+
'validation_errors' => ValidationErrors,
|
1035
|
+
'view_too_large' => ViewTooLarge,
|
1036
|
+
}.freeze
|
1037
|
+
end
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
end
|