slackapi-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +221 -0
- data/bin/console +15 -0
- data/lib/slack_web_api/api_helper.rb +10 -0
- data/lib/slack_web_api/client.rb +410 -0
- data/lib/slack_web_api/configuration.rb +173 -0
- data/lib/slack_web_api/controllers/admin_apps_approved_controller.rb +48 -0
- data/lib/slack_web_api/controllers/admin_apps_controller.rb +78 -0
- data/lib/slack_web_api/controllers/admin_apps_requests_controller.rb +44 -0
- data/lib/slack_web_api/controllers/admin_apps_restricted_controller.rb +48 -0
- data/lib/slack_web_api/controllers/admin_conversations_controller.rb +472 -0
- data/lib/slack_web_api/controllers/admin_conversations_ekm_controller.rb +51 -0
- data/lib/slack_web_api/controllers/admin_conversations_restrict_access_controller.rb +129 -0
- data/lib/slack_web_api/controllers/admin_emoji_controller.rb +175 -0
- data/lib/slack_web_api/controllers/admin_invite_requests_approved_controller.rb +46 -0
- data/lib/slack_web_api/controllers/admin_invite_requests_controller.rb +112 -0
- data/lib/slack_web_api/controllers/admin_invite_requests_denied_controller.rb +46 -0
- data/lib/slack_web_api/controllers/admin_teams_admins_controller.rb +45 -0
- data/lib/slack_web_api/controllers/admin_teams_controller.rb +84 -0
- data/lib/slack_web_api/controllers/admin_teams_owners_controller.rb +45 -0
- data/lib/slack_web_api/controllers/admin_teams_settings_controller.rb +206 -0
- data/lib/slack_web_api/controllers/admin_usergroups_controller.rb +161 -0
- data/lib/slack_web_api/controllers/admin_users_controller.rb +333 -0
- data/lib/slack_web_api/controllers/admin_users_session_controller.rb +80 -0
- data/lib/slack_web_api/controllers/api_controller.rb +34 -0
- data/lib/slack_web_api/controllers/apps_controller.rb +40 -0
- data/lib/slack_web_api/controllers/apps_event_authorizations_controller.rb +45 -0
- data/lib/slack_web_api/controllers/apps_permissions_controller.rb +66 -0
- data/lib/slack_web_api/controllers/apps_permissions_resources_controller.rb +44 -0
- data/lib/slack_web_api/controllers/apps_permissions_scopes_controller.rb +33 -0
- data/lib/slack_web_api/controllers/apps_permissions_users_controller.rb +85 -0
- data/lib/slack_web_api/controllers/auth_controller.rb +62 -0
- data/lib/slack_web_api/controllers/base_controller.rb +67 -0
- data/lib/slack_web_api/controllers/bots_controller.rb +36 -0
- data/lib/slack_web_api/controllers/calls_controller.rb +174 -0
- data/lib/slack_web_api/controllers/calls_participants_controller.rb +79 -0
- data/lib/slack_web_api/controllers/chat_controller.rb +528 -0
- data/lib/slack_web_api/controllers/chat_scheduled_messages_controller.rb +54 -0
- data/lib/slack_web_api/controllers/conversations_controller.rb +628 -0
- data/lib/slack_web_api/controllers/dialog_controller.rb +44 -0
- data/lib/slack_web_api/controllers/dnd_controller.rb +141 -0
- data/lib/slack_web_api/controllers/emoji_controller.rb +33 -0
- data/lib/slack_web_api/controllers/files_comments_controller.rb +38 -0
- data/lib/slack_web_api/controllers/files_controller.rb +245 -0
- data/lib/slack_web_api/controllers/files_remote_controller.rb +250 -0
- data/lib/slack_web_api/controllers/migration_controller.rb +47 -0
- data/lib/slack_web_api/controllers/oauth_authorization_controller.rb +87 -0
- data/lib/slack_web_api/controllers/oauth_controller.rb +88 -0
- data/lib/slack_web_api/controllers/oauth_v2_controller.rb +45 -0
- data/lib/slack_web_api/controllers/pins_controller.rb +102 -0
- data/lib/slack_web_api/controllers/reactions_controller.rb +182 -0
- data/lib/slack_web_api/controllers/reminders_controller.rb +151 -0
- data/lib/slack_web_api/controllers/rtm_controller.rb +44 -0
- data/lib/slack_web_api/controllers/search_controller.rb +56 -0
- data/lib/slack_web_api/controllers/stars_controller.rb +130 -0
- data/lib/slack_web_api/controllers/team_controller.rb +148 -0
- data/lib/slack_web_api/controllers/team_profile_controller.rb +36 -0
- data/lib/slack_web_api/controllers/usergroups_controller.rb +205 -0
- data/lib/slack_web_api/controllers/usergroups_users_controller.rb +81 -0
- data/lib/slack_web_api/controllers/users_controller.rb +327 -0
- data/lib/slack_web_api/controllers/users_profile_controller.rb +82 -0
- data/lib/slack_web_api/controllers/views_controller.rb +158 -0
- data/lib/slack_web_api/controllers/workflows_controller.rb +130 -0
- data/lib/slack_web_api/exceptions/admin_conversations_archive_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_convert_to_private_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_create_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_delete_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_disconnect_shared_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_get_teams_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_invite_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_search_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_set_conversation_prefs_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_unarchive_error_schema2_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_unarchive_error_schema3_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/admin_conversations_unarchive_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/api_exception.rb +21 -0
- data/lib/slack_web_api/exceptions/api_test_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/apps_permissions_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_permissions_request_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_permissions_resources_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_permissions_scopes_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/apps_uninstall_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/auth_revoke_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/auth_test_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/bots_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_delete_scheduled_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_get_permalink_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_me_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_post_ephemeral_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_post_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_schedule_message_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_scheduled_messages_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_unfurl_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/chat_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/conversations_archive_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_close_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_create_error_schema_exception.rb +73 -0
- data/lib/slack_web_api/exceptions/conversations_history_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_info_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_invite_error_schema1_exception.rb +82 -0
- data/lib/slack_web_api/exceptions/conversations_join_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_kick_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_leave_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_list_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_mark_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_members_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/conversations_open_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/conversations_rename_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_replies_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_set_purpose_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_set_topic_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/conversations_unarchive_error_schema_exception.rb +67 -0
- data/lib/slack_web_api/exceptions/default_error_template_exception.rb +47 -0
- data/lib/slack_web_api/exceptions/dialog_open_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_end_dnd_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_end_snooze_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/dnd_set_snooze_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_comments_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_revoke_public_url_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_shared_public_url_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/files_upload_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/migration_exchange_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/oauth_provider_exception.rb +64 -0
- data/lib/slack_web_api/exceptions/pins_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/pins_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/pins_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_complete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/rtm_connect_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_access_logs_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_integration_logs_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_profile_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_create_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_disable_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_enable_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_users_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_users_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_conversations_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_counts_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/users_delete_photo_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_identity_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_lookup_by_email_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_profile_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_profile_set_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_set_active_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_set_photo_error_schema_exception.rb +73 -0
- data/lib/slack_web_api/exceptions/users_set_presence_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/http/api_response.rb +19 -0
- data/lib/slack_web_api/http/auth/oauth_2.rb +162 -0
- data/lib/slack_web_api/http/http_call_back.rb +10 -0
- data/lib/slack_web_api/http/http_method_enum.rb +10 -0
- data/lib/slack_web_api/http/http_request.rb +10 -0
- data/lib/slack_web_api/http/http_response.rb +10 -0
- data/lib/slack_web_api/http/proxy_settings.rb +22 -0
- data/lib/slack_web_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/slack_web_api/logging/sdk_logger.rb +17 -0
- data/lib/slack_web_api/models/admin_conversations_archive_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_convert_to_private_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_create_schema.rb +82 -0
- data/lib/slack_web_api/models/admin_conversations_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_get_conversation_prefs_schema.rb +82 -0
- data/lib/slack_web_api/models/admin_conversations_get_teams_schema.rb +92 -0
- data/lib/slack_web_api/models/admin_conversations_invite_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_rename_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_rename_schema1.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_search_schema.rb +91 -0
- data/lib/slack_web_api/models/admin_conversations_set_conversation_prefs_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_unarchive_schema.rb +71 -0
- data/lib/slack_web_api/models/api_method_users_get_presence.rb +133 -0
- data/lib/slack_web_api/models/api_permissions_scopes_list_success_schema.rb +80 -0
- data/lib/slack_web_api/models/api_test_success_schema.rb +71 -0
- data/lib/slack_web_api/models/app_home.rb +86 -0
- data/lib/slack_web_api/models/apps_permissions_info_schema.rb +80 -0
- data/lib/slack_web_api/models/apps_permissions_request_schema.rb +71 -0
- data/lib/slack_web_api/models/apps_permissions_resources_list_success_schema.rb +101 -0
- data/lib/slack_web_api/models/apps_uninstall_schema.rb +71 -0
- data/lib/slack_web_api/models/attachment.rb +125 -0
- data/lib/slack_web_api/models/auth_revoke_schema.rb +80 -0
- data/lib/slack_web_api/models/auth_test_success_schema.rb +136 -0
- data/lib/slack_web_api/models/base_model.rb +110 -0
- data/lib/slack_web_api/models/block_kit_block.rb +72 -0
- data/lib/slack_web_api/models/bot.rb +128 -0
- data/lib/slack_web_api/models/bot_profile_object.rb +126 -0
- data/lib/slack_web_api/models/bots_info_schema.rb +80 -0
- data/lib/slack_web_api/models/can_thread.rb +85 -0
- data/lib/slack_web_api/models/channel.rb +86 -0
- data/lib/slack_web_api/models/channel_object.rb +382 -0
- data/lib/slack_web_api/models/chat_delete_scheduled_message_schema.rb +71 -0
- data/lib/slack_web_api/models/chat_delete_success_schema.rb +88 -0
- data/lib/slack_web_api/models/chat_get_permalink_success_schema.rb +88 -0
- data/lib/slack_web_api/models/chat_me_message_schema.rb +91 -0
- data/lib/slack_web_api/models/chat_post_ephemeral_success_schema.rb +80 -0
- data/lib/slack_web_api/models/chat_post_message_success_schema.rb +96 -0
- data/lib/slack_web_api/models/chat_schedule_message_success_schema.rb +108 -0
- data/lib/slack_web_api/models/chat_scheduled_messages_list_schema.rb +100 -0
- data/lib/slack_web_api/models/chat_unfurl_success_schema.rb +71 -0
- data/lib/slack_web_api/models/chat_update_success_schema.rb +105 -0
- data/lib/slack_web_api/models/conversations_archive_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_close_success_schema.rb +93 -0
- data/lib/slack_web_api/models/conversations_create_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_history_success_schema.rb +127 -0
- data/lib/slack_web_api/models/conversations_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_invite_error_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_join_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_kick_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_leave_success_schema.rb +83 -0
- data/lib/slack_web_api/models/conversations_list_success_schema.rb +92 -0
- data/lib/slack_web_api/models/conversations_mark_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_members_success_schema.rb +89 -0
- data/lib/slack_web_api/models/conversations_open_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_rename_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_replies_success_schema.rb +90 -0
- data/lib/slack_web_api/models/conversations_set_purpose_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_set_topic_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_unarchive_success_schema.rb +71 -0
- data/lib/slack_web_api/models/current.rb +82 -0
- data/lib/slack_web_api/models/default_success_template.rb +72 -0
- data/lib/slack_web_api/models/dialog_open_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_dnd_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_snooze_schema.rb +111 -0
- data/lib/slack_web_api/models/dnd_info_schema.rb +136 -0
- data/lib/slack_web_api/models/dnd_set_snooze_schema.rb +102 -0
- data/lib/slack_web_api/models/error.rb +60 -0
- data/lib/slack_web_api/models/error1.rb +65 -0
- data/lib/slack_web_api/models/error10.rb +60 -0
- data/lib/slack_web_api/models/error11.rb +60 -0
- data/lib/slack_web_api/models/error12.rb +104 -0
- data/lib/slack_web_api/models/error13.rb +120 -0
- data/lib/slack_web_api/models/error14.rb +108 -0
- data/lib/slack_web_api/models/error16.rb +116 -0
- data/lib/slack_web_api/models/error17.rb +100 -0
- data/lib/slack_web_api/models/error18.rb +84 -0
- data/lib/slack_web_api/models/error19.rb +104 -0
- data/lib/slack_web_api/models/error2.rb +60 -0
- data/lib/slack_web_api/models/error20.rb +112 -0
- data/lib/slack_web_api/models/error21.rb +120 -0
- data/lib/slack_web_api/models/error22.rb +108 -0
- data/lib/slack_web_api/models/error23.rb +124 -0
- data/lib/slack_web_api/models/error24.rb +128 -0
- data/lib/slack_web_api/models/error25.rb +92 -0
- data/lib/slack_web_api/models/error26.rb +166 -0
- data/lib/slack_web_api/models/error27.rb +112 -0
- data/lib/slack_web_api/models/error28.rb +120 -0
- data/lib/slack_web_api/models/error29.rb +128 -0
- data/lib/slack_web_api/models/error3.rb +60 -0
- data/lib/slack_web_api/models/error30.rb +133 -0
- data/lib/slack_web_api/models/error31.rb +101 -0
- data/lib/slack_web_api/models/error32.rb +133 -0
- data/lib/slack_web_api/models/error33.rb +96 -0
- data/lib/slack_web_api/models/error34.rb +92 -0
- data/lib/slack_web_api/models/error35.rb +153 -0
- data/lib/slack_web_api/models/error37.rb +121 -0
- data/lib/slack_web_api/models/error38.rb +121 -0
- data/lib/slack_web_api/models/error39.rb +129 -0
- data/lib/slack_web_api/models/error4.rb +80 -0
- data/lib/slack_web_api/models/error40.rb +84 -0
- data/lib/slack_web_api/models/error41.rb +105 -0
- data/lib/slack_web_api/models/error42.rb +100 -0
- data/lib/slack_web_api/models/error43.rb +121 -0
- data/lib/slack_web_api/models/error44.rb +129 -0
- data/lib/slack_web_api/models/error45.rb +96 -0
- data/lib/slack_web_api/models/error46.rb +113 -0
- data/lib/slack_web_api/models/error48.rb +121 -0
- data/lib/slack_web_api/models/error49.rb +136 -0
- data/lib/slack_web_api/models/error5.rb +60 -0
- data/lib/slack_web_api/models/error50.rb +108 -0
- data/lib/slack_web_api/models/error51.rb +112 -0
- data/lib/slack_web_api/models/error52.rb +104 -0
- data/lib/slack_web_api/models/error53.rb +116 -0
- data/lib/slack_web_api/models/error54.rb +92 -0
- data/lib/slack_web_api/models/error55.rb +100 -0
- data/lib/slack_web_api/models/error56.rb +100 -0
- data/lib/slack_web_api/models/error57.rb +100 -0
- data/lib/slack_web_api/models/error58.rb +112 -0
- data/lib/slack_web_api/models/error59.rb +116 -0
- data/lib/slack_web_api/models/error6.rb +60 -0
- data/lib/slack_web_api/models/error60.rb +108 -0
- data/lib/slack_web_api/models/error61.rb +108 -0
- data/lib/slack_web_api/models/error62.rb +120 -0
- data/lib/slack_web_api/models/error63.rb +92 -0
- data/lib/slack_web_api/models/error64.rb +116 -0
- data/lib/slack_web_api/models/error65.rb +116 -0
- data/lib/slack_web_api/models/error66.rb +104 -0
- data/lib/slack_web_api/models/error67.rb +96 -0
- data/lib/slack_web_api/models/error68.rb +120 -0
- data/lib/slack_web_api/models/error69.rb +128 -0
- data/lib/slack_web_api/models/error7.rb +56 -0
- data/lib/slack_web_api/models/error70.rb +116 -0
- data/lib/slack_web_api/models/error71.rb +108 -0
- data/lib/slack_web_api/models/error74.rb +96 -0
- data/lib/slack_web_api/models/error75.rb +128 -0
- data/lib/slack_web_api/models/error77.rb +128 -0
- data/lib/slack_web_api/models/error78.rb +112 -0
- data/lib/slack_web_api/models/error8.rb +56 -0
- data/lib/slack_web_api/models/error81.rb +92 -0
- data/lib/slack_web_api/models/error82.rb +112 -0
- data/lib/slack_web_api/models/error84.rb +116 -0
- data/lib/slack_web_api/models/error86.rb +120 -0
- data/lib/slack_web_api/models/error89.rb +117 -0
- data/lib/slack_web_api/models/error9.rb +68 -0
- data/lib/slack_web_api/models/error92.rb +92 -0
- data/lib/slack_web_api/models/error93.rb +100 -0
- data/lib/slack_web_api/models/error94.rb +100 -0
- data/lib/slack_web_api/models/error95.rb +108 -0
- data/lib/slack_web_api/models/error96.rb +128 -0
- data/lib/slack_web_api/models/error97.rb +100 -0
- data/lib/slack_web_api/models/error98.rb +120 -0
- data/lib/slack_web_api/models/error99.rb +104 -0
- data/lib/slack_web_api/models/errors_is_returned_when_an_error_associates_an_user.rb +90 -0
- data/lib/slack_web_api/models/external_org_migrations.rb +91 -0
- data/lib/slack_web_api/models/file_comment_object.rb +176 -0
- data/lib/slack_web_api/models/file_object.rb +790 -0
- data/lib/slack_web_api/models/files_comments_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_info_schema.rb +133 -0
- data/lib/slack_web_api/models/files_list_schema.rb +97 -0
- data/lib/slack_web_api/models/files_revoke_public_url_schema.rb +80 -0
- data/lib/slack_web_api/models/files_shared_public_url_schema.rb +80 -0
- data/lib/slack_web_api/models/files_upload_schema.rb +80 -0
- data/lib/slack_web_api/models/group.rb +86 -0
- data/lib/slack_web_api/models/icons.rb +90 -0
- data/lib/slack_web_api/models/icons1.rb +85 -0
- data/lib/slack_web_api/models/im.rb +86 -0
- data/lib/slack_web_api/models/info.rb +116 -0
- data/lib/slack_web_api/models/log.rb +168 -0
- data/lib/slack_web_api/models/login.rb +158 -0
- data/lib/slack_web_api/models/message.rb +128 -0
- data/lib/slack_web_api/models/message_object.rb +552 -0
- data/lib/slack_web_api/models/message_object1.rb +94 -0
- data/lib/slack_web_api/models/migration_exchange_success_schema.rb +111 -0
- data/lib/slack_web_api/models/mpim.rb +86 -0
- data/lib/slack_web_api/models/mself.rb +82 -0
- data/lib/slack_web_api/models/oauth_provider_error.rb +62 -0
- data/lib/slack_web_api/models/oauth_scope.rb +296 -0
- data/lib/slack_web_api/models/oauth_token.rb +96 -0
- data/lib/slack_web_api/models/objs_enterprise_user.rb +119 -0
- data/lib/slack_web_api/models/objs_icon.rb +147 -0
- data/lib/slack_web_api/models/objs_primary_owner.rb +82 -0
- data/lib/slack_web_api/models/objs_reminder.rb +129 -0
- data/lib/slack_web_api/models/objs_team_profile_field.rb +154 -0
- data/lib/slack_web_api/models/objs_team_profile_field_option.rb +112 -0
- data/lib/slack_web_api/models/objs_user_profile_short.rb +174 -0
- data/lib/slack_web_api/models/paging_object.rb +121 -0
- data/lib/slack_web_api/models/pins_add_schema.rb +71 -0
- data/lib/slack_web_api/models/pins_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/plan.rb +44 -0
- data/lib/slack_web_api/models/prefs.rb +82 -0
- data/lib/slack_web_api/models/prefs1.rb +86 -0
- data/lib/slack_web_api/models/profile.rb +82 -0
- data/lib/slack_web_api/models/profile1.rb +146 -0
- data/lib/slack_web_api/models/purpose.rb +90 -0
- data/lib/slack_web_api/models/reaction_object.rb +90 -0
- data/lib/slack_web_api/models/reactions_add_schema.rb +71 -0
- data/lib/slack_web_api/models/reactions_list_schema.rb +102 -0
- data/lib/slack_web_api/models/reactions_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_add_schema.rb +80 -0
- data/lib/slack_web_api/models/reminders_complete_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_info_schema.rb +80 -0
- data/lib/slack_web_api/models/reminders_list_schema.rb +89 -0
- data/lib/slack_web_api/models/resource.rb +85 -0
- data/lib/slack_web_api/models/resources_in_info_from_apps_permissions_info.rb +94 -0
- data/lib/slack_web_api/models/response_metadata.rb +74 -0
- data/lib/slack_web_api/models/response_metadata3.rb +75 -0
- data/lib/slack_web_api/models/rtm_connect_schema.rb +96 -0
- data/lib/slack_web_api/models/scheduled_message.rb +110 -0
- data/lib/slack_web_api/models/scopes.rb +134 -0
- data/lib/slack_web_api/models/shares.rb +85 -0
- data/lib/slack_web_api/models/sso_provider.rb +95 -0
- data/lib/slack_web_api/models/stars_add_schema.rb +71 -0
- data/lib/slack_web_api/models/stars_list_schema.rb +90 -0
- data/lib/slack_web_api/models/stars_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/subteam_usergroup_object.rb +260 -0
- data/lib/slack_web_api/models/team.rb +83 -0
- data/lib/slack_web_api/models/team1.rb +90 -0
- data/lib/slack_web_api/models/team_access_logs_schema.rb +97 -0
- data/lib/slack_web_api/models/team_info_schema.rb +80 -0
- data/lib/slack_web_api/models/team_integration_logs_schema.rb +97 -0
- data/lib/slack_web_api/models/team_object.rb +368 -0
- data/lib/slack_web_api/models/team_profile_get_success_schema.rb +80 -0
- data/lib/slack_web_api/models/topic.rb +90 -0
- data/lib/slack_web_api/models/type.rb +52 -0
- data/lib/slack_web_api/models/user_profile_object.rb +542 -0
- data/lib/slack_web_api/models/usergroups_create_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_disable_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_enable_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_list_schema.rb +89 -0
- data/lib/slack_web_api/models/usergroups_update_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_users_list_schema.rb +80 -0
- data/lib/slack_web_api/models/usergroups_users_update_schema.rb +80 -0
- data/lib/slack_web_api/models/users_conversations_success_schema.rb +93 -0
- data/lib/slack_web_api/models/users_delete_photo_schema.rb +71 -0
- data/lib/slack_web_api/models/users_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/users_list_schema.rb +102 -0
- data/lib/slack_web_api/models/users_lookup_by_email_success_schema.rb +80 -0
- data/lib/slack_web_api/models/users_profile_get_schema.rb +80 -0
- data/lib/slack_web_api/models/users_profile_set_schema.rb +100 -0
- data/lib/slack_web_api/models/users_set_active_schema.rb +71 -0
- data/lib/slack_web_api/models/users_set_photo_schema.rb +80 -0
- data/lib/slack_web_api/models/users_set_presence_schema.rb +71 -0
- data/lib/slack_web_api/models/who_can_post.rb +85 -0
- data/lib/slack_web_api/utilities/date_time_helper.rb +11 -0
- data/lib/slack_web_api/utilities/file_wrapper.rb +28 -0
- data/lib/slack_web_api.rb +532 -0
- metadata +509 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Schema for successful response from dnd.info method
|
|
8
|
+
class DndInfoSchema < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :dnd_enabled
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :next_dnd_end_ts
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :next_dnd_start_ts
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_reader :ok
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [TrueClass | FalseClass]
|
|
30
|
+
attr_accessor :snooze_enabled
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [Integer]
|
|
34
|
+
attr_accessor :snooze_endtime
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [Integer]
|
|
38
|
+
attr_accessor :snooze_remaining
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['dnd_enabled'] = 'dnd_enabled'
|
|
44
|
+
@_hash['next_dnd_end_ts'] = 'next_dnd_end_ts'
|
|
45
|
+
@_hash['next_dnd_start_ts'] = 'next_dnd_start_ts'
|
|
46
|
+
@_hash['ok'] = 'ok'
|
|
47
|
+
@_hash['snooze_enabled'] = 'snooze_enabled'
|
|
48
|
+
@_hash['snooze_endtime'] = 'snooze_endtime'
|
|
49
|
+
@_hash['snooze_remaining'] = 'snooze_remaining'
|
|
50
|
+
@_hash
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# An array for optional fields
|
|
54
|
+
def self.optionals
|
|
55
|
+
%w[
|
|
56
|
+
snooze_enabled
|
|
57
|
+
snooze_endtime
|
|
58
|
+
snooze_remaining
|
|
59
|
+
]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# An array for nullable fields
|
|
63
|
+
def self.nullables
|
|
64
|
+
[]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def initialize(dnd_enabled:, next_dnd_end_ts:, next_dnd_start_ts:,
|
|
68
|
+
snooze_enabled: SKIP, snooze_endtime: SKIP,
|
|
69
|
+
snooze_remaining: SKIP, additional_properties: nil)
|
|
70
|
+
# Add additional model properties to the instance
|
|
71
|
+
additional_properties = {} if additional_properties.nil?
|
|
72
|
+
|
|
73
|
+
@dnd_enabled = dnd_enabled
|
|
74
|
+
@next_dnd_end_ts = next_dnd_end_ts
|
|
75
|
+
@next_dnd_start_ts = next_dnd_start_ts
|
|
76
|
+
@ok = 'True'
|
|
77
|
+
@snooze_enabled = snooze_enabled unless snooze_enabled == SKIP
|
|
78
|
+
@snooze_endtime = snooze_endtime unless snooze_endtime == SKIP
|
|
79
|
+
@snooze_remaining = snooze_remaining unless snooze_remaining == SKIP
|
|
80
|
+
@additional_properties = additional_properties
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Creates an instance of the object from a hash.
|
|
84
|
+
def self.from_hash(hash)
|
|
85
|
+
return nil unless hash
|
|
86
|
+
|
|
87
|
+
# Extract variables from the hash.
|
|
88
|
+
dnd_enabled = hash.key?('dnd_enabled') ? hash['dnd_enabled'] : nil
|
|
89
|
+
next_dnd_end_ts =
|
|
90
|
+
hash.key?('next_dnd_end_ts') ? hash['next_dnd_end_ts'] : nil
|
|
91
|
+
next_dnd_start_ts =
|
|
92
|
+
hash.key?('next_dnd_start_ts') ? hash['next_dnd_start_ts'] : nil
|
|
93
|
+
snooze_enabled =
|
|
94
|
+
hash.key?('snooze_enabled') ? hash['snooze_enabled'] : SKIP
|
|
95
|
+
snooze_endtime =
|
|
96
|
+
hash.key?('snooze_endtime') ? hash['snooze_endtime'] : SKIP
|
|
97
|
+
snooze_remaining =
|
|
98
|
+
hash.key?('snooze_remaining') ? hash['snooze_remaining'] : SKIP
|
|
99
|
+
|
|
100
|
+
# Create a new hash for additional properties, removing known properties.
|
|
101
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
102
|
+
|
|
103
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
104
|
+
new_hash, proc { |value| value }
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
# Create object from extracted values.
|
|
108
|
+
DndInfoSchema.new(dnd_enabled: dnd_enabled,
|
|
109
|
+
next_dnd_end_ts: next_dnd_end_ts,
|
|
110
|
+
next_dnd_start_ts: next_dnd_start_ts,
|
|
111
|
+
snooze_enabled: snooze_enabled,
|
|
112
|
+
snooze_endtime: snooze_endtime,
|
|
113
|
+
snooze_remaining: snooze_remaining,
|
|
114
|
+
additional_properties: additional_properties)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Provides a human-readable string representation of the object.
|
|
118
|
+
def to_s
|
|
119
|
+
class_name = self.class.name.split('::').last
|
|
120
|
+
"<#{class_name} dnd_enabled: #{@dnd_enabled}, next_dnd_end_ts: #{@next_dnd_end_ts},"\
|
|
121
|
+
" next_dnd_start_ts: #{@next_dnd_start_ts}, ok: #{@ok}, snooze_enabled: #{@snooze_enabled},"\
|
|
122
|
+
" snooze_endtime: #{@snooze_endtime}, snooze_remaining: #{@snooze_remaining},"\
|
|
123
|
+
" additional_properties: #{@additional_properties}>"
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
127
|
+
def inspect
|
|
128
|
+
class_name = self.class.name.split('::').last
|
|
129
|
+
"<#{class_name} dnd_enabled: #{@dnd_enabled.inspect}, next_dnd_end_ts:"\
|
|
130
|
+
" #{@next_dnd_end_ts.inspect}, next_dnd_start_ts: #{@next_dnd_start_ts.inspect}, ok:"\
|
|
131
|
+
" #{@ok.inspect}, snooze_enabled: #{@snooze_enabled.inspect}, snooze_endtime:"\
|
|
132
|
+
" #{@snooze_endtime.inspect}, snooze_remaining: #{@snooze_remaining.inspect},"\
|
|
133
|
+
" additional_properties: #{@additional_properties}>"
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Schema for successful response from dnd.setSnooze method
|
|
8
|
+
class DndSetSnoozeSchema < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_reader :ok
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :snooze_enabled
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :snooze_endtime
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
attr_accessor :snooze_remaining
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['ok'] = 'ok'
|
|
32
|
+
@_hash['snooze_enabled'] = 'snooze_enabled'
|
|
33
|
+
@_hash['snooze_endtime'] = 'snooze_endtime'
|
|
34
|
+
@_hash['snooze_remaining'] = 'snooze_remaining'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for nullable fields
|
|
44
|
+
def self.nullables
|
|
45
|
+
[]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def initialize(snooze_enabled:, snooze_endtime:, snooze_remaining:,
|
|
49
|
+
additional_properties: nil)
|
|
50
|
+
# Add additional model properties to the instance
|
|
51
|
+
additional_properties = {} if additional_properties.nil?
|
|
52
|
+
|
|
53
|
+
@ok = 'True'
|
|
54
|
+
@snooze_enabled = snooze_enabled
|
|
55
|
+
@snooze_endtime = snooze_endtime
|
|
56
|
+
@snooze_remaining = snooze_remaining
|
|
57
|
+
@additional_properties = additional_properties
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Creates an instance of the object from a hash.
|
|
61
|
+
def self.from_hash(hash)
|
|
62
|
+
return nil unless hash
|
|
63
|
+
|
|
64
|
+
# Extract variables from the hash.
|
|
65
|
+
snooze_enabled =
|
|
66
|
+
hash.key?('snooze_enabled') ? hash['snooze_enabled'] : nil
|
|
67
|
+
snooze_endtime =
|
|
68
|
+
hash.key?('snooze_endtime') ? hash['snooze_endtime'] : nil
|
|
69
|
+
snooze_remaining =
|
|
70
|
+
hash.key?('snooze_remaining') ? hash['snooze_remaining'] : nil
|
|
71
|
+
|
|
72
|
+
# Create a new hash for additional properties, removing known properties.
|
|
73
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
74
|
+
|
|
75
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
76
|
+
new_hash, proc { |value| value }
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
# Create object from extracted values.
|
|
80
|
+
DndSetSnoozeSchema.new(snooze_enabled: snooze_enabled,
|
|
81
|
+
snooze_endtime: snooze_endtime,
|
|
82
|
+
snooze_remaining: snooze_remaining,
|
|
83
|
+
additional_properties: additional_properties)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Provides a human-readable string representation of the object.
|
|
87
|
+
def to_s
|
|
88
|
+
class_name = self.class.name.split('::').last
|
|
89
|
+
"<#{class_name} ok: #{@ok}, snooze_enabled: #{@snooze_enabled}, snooze_endtime:"\
|
|
90
|
+
" #{@snooze_endtime}, snooze_remaining: #{@snooze_remaining}, additional_properties:"\
|
|
91
|
+
" #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
95
|
+
def inspect
|
|
96
|
+
class_name = self.class.name.split('::').last
|
|
97
|
+
"<#{class_name} ok: #{@ok.inspect}, snooze_enabled: #{@snooze_enabled.inspect},"\
|
|
98
|
+
" snooze_endtime: #{@snooze_endtime.inspect}, snooze_remaining:"\
|
|
99
|
+
" #{@snooze_remaining.inspect}, additional_properties: #{@additional_properties}>"
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Error.
|
|
8
|
+
class Error
|
|
9
|
+
ERROR = [
|
|
10
|
+
# TODO: Write general description for FEATURE_NOT_ENABLED
|
|
11
|
+
FEATURE_NOT_ENABLED = 'feature_not_enabled'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for CHANNEL_NOT_FOUND
|
|
14
|
+
CHANNEL_NOT_FOUND = 'channel_not_found'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for CHANNEL_TYPE_NOT_SUPPORTED
|
|
17
|
+
CHANNEL_TYPE_NOT_SUPPORTED = 'channel_type_not_supported'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for DEFAULT_ORG_WIDE_CHANNEL
|
|
20
|
+
DEFAULT_ORG_WIDE_CHANNEL = 'default_org_wide_channel'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ALREADY_ARCHIVED
|
|
23
|
+
ALREADY_ARCHIVED = 'already_archived'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for CANT_ARCHIVE_GENERAL
|
|
26
|
+
CANT_ARCHIVE_GENERAL = 'cant_archive_general'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for RESTRICTED_ACTION
|
|
29
|
+
RESTRICTED_ACTION = 'restricted_action'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for COULD_NOT_ARCHIVE_CHANNEL
|
|
32
|
+
COULD_NOT_ARCHIVE_CHANNEL = 'could_not_archive_channel'.freeze
|
|
33
|
+
].freeze
|
|
34
|
+
|
|
35
|
+
def self.validate(value)
|
|
36
|
+
return false if value.nil?
|
|
37
|
+
|
|
38
|
+
ERROR.include?(value)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.from_value(value, default_value = FEATURE_NOT_ENABLED)
|
|
42
|
+
return default_value if value.nil?
|
|
43
|
+
|
|
44
|
+
str = value.to_s.strip
|
|
45
|
+
|
|
46
|
+
case str.downcase
|
|
47
|
+
when 'feature_not_enabled' then FEATURE_NOT_ENABLED
|
|
48
|
+
when 'channel_not_found' then CHANNEL_NOT_FOUND
|
|
49
|
+
when 'channel_type_not_supported' then CHANNEL_TYPE_NOT_SUPPORTED
|
|
50
|
+
when 'default_org_wide_channel' then DEFAULT_ORG_WIDE_CHANNEL
|
|
51
|
+
when 'already_archived' then ALREADY_ARCHIVED
|
|
52
|
+
when 'cant_archive_general' then CANT_ARCHIVE_GENERAL
|
|
53
|
+
when 'restricted_action' then RESTRICTED_ACTION
|
|
54
|
+
when 'could_not_archive_channel' then COULD_NOT_ARCHIVE_CHANNEL
|
|
55
|
+
else
|
|
56
|
+
default_value
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Error1.
|
|
8
|
+
class Error1
|
|
9
|
+
ERROR1 = [
|
|
10
|
+
# TODO: Write general description for FEATURE_NOT_ENABLED
|
|
11
|
+
FEATURE_NOT_ENABLED = 'feature_not_enabled'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for RESTRICTED_ACTION
|
|
14
|
+
RESTRICTED_ACTION = 'restricted_action'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for NAME_TAKEN
|
|
17
|
+
NAME_TAKEN = 'name_taken'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for CHANNEL_NOT_FOUND
|
|
20
|
+
CHANNEL_NOT_FOUND = 'channel_not_found'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for CHANNEL_TYPE_NOT_SUPPORTED
|
|
23
|
+
CHANNEL_TYPE_NOT_SUPPORTED = 'channel_type_not_supported'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for DEFAULT_ORG_WIDE_CHANNEL
|
|
26
|
+
DEFAULT_ORG_WIDE_CHANNEL = 'default_org_wide_channel'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for
|
|
29
|
+
# METHOD_NOT_SUPPORTED_FOR_CHANNEL_TYPE
|
|
30
|
+
METHOD_NOT_SUPPORTED_FOR_CHANNEL_TYPE = 'method_not_supported_for_channel_type'.freeze,
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for COULD_NOT_CONVERT_CHANNEL
|
|
33
|
+
COULD_NOT_CONVERT_CHANNEL = 'could_not_convert_channel'.freeze,
|
|
34
|
+
|
|
35
|
+
# TODO: Write general description for EXTERNAL_CHANNEL_MIGRATING
|
|
36
|
+
EXTERNAL_CHANNEL_MIGRATING = 'external_channel_migrating'.freeze
|
|
37
|
+
].freeze
|
|
38
|
+
|
|
39
|
+
def self.validate(value)
|
|
40
|
+
return false if value.nil?
|
|
41
|
+
|
|
42
|
+
ERROR1.include?(value)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def self.from_value(value, default_value = FEATURE_NOT_ENABLED)
|
|
46
|
+
return default_value if value.nil?
|
|
47
|
+
|
|
48
|
+
str = value.to_s.strip
|
|
49
|
+
|
|
50
|
+
case str.downcase
|
|
51
|
+
when 'feature_not_enabled' then FEATURE_NOT_ENABLED
|
|
52
|
+
when 'restricted_action' then RESTRICTED_ACTION
|
|
53
|
+
when 'name_taken' then NAME_TAKEN
|
|
54
|
+
when 'channel_not_found' then CHANNEL_NOT_FOUND
|
|
55
|
+
when 'channel_type_not_supported' then CHANNEL_TYPE_NOT_SUPPORTED
|
|
56
|
+
when 'default_org_wide_channel' then DEFAULT_ORG_WIDE_CHANNEL
|
|
57
|
+
when 'method_not_supported_for_channel_type' then METHOD_NOT_SUPPORTED_FOR_CHANNEL_TYPE
|
|
58
|
+
when 'could_not_convert_channel' then COULD_NOT_CONVERT_CHANNEL
|
|
59
|
+
when 'external_channel_migrating' then EXTERNAL_CHANNEL_MIGRATING
|
|
60
|
+
else
|
|
61
|
+
default_value
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Error10.
|
|
8
|
+
class Error10
|
|
9
|
+
ERROR10 = [
|
|
10
|
+
# TODO: Write general description for FEATURE_NOT_ENABLED
|
|
11
|
+
FEATURE_NOT_ENABLED = 'feature_not_enabled'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for NOT_AN_ADMIN
|
|
14
|
+
NOT_AN_ADMIN = 'not_an_admin'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for CHANNEL_NOT_FOUND
|
|
17
|
+
CHANNEL_NOT_FOUND = 'channel_not_found'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for CHANNEL_TYPE_NOT_SUPPORTED
|
|
20
|
+
CHANNEL_TYPE_NOT_SUPPORTED = 'channel_type_not_supported'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for RESTRICTED_ACTION
|
|
23
|
+
RESTRICTED_ACTION = 'restricted_action'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for MISSING_SCOPE
|
|
26
|
+
MISSING_SCOPE = 'missing_scope'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for COULD_NOT_SET_CHANNEL_PREF
|
|
29
|
+
COULD_NOT_SET_CHANNEL_PREF = 'could_not_set_channel_pref'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for DEFAULT_ORG_WIDE_CHANNEL
|
|
32
|
+
DEFAULT_ORG_WIDE_CHANNEL = 'default_org_wide_channel'.freeze
|
|
33
|
+
].freeze
|
|
34
|
+
|
|
35
|
+
def self.validate(value)
|
|
36
|
+
return false if value.nil?
|
|
37
|
+
|
|
38
|
+
ERROR10.include?(value)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.from_value(value, default_value = FEATURE_NOT_ENABLED)
|
|
42
|
+
return default_value if value.nil?
|
|
43
|
+
|
|
44
|
+
str = value.to_s.strip
|
|
45
|
+
|
|
46
|
+
case str.downcase
|
|
47
|
+
when 'feature_not_enabled' then FEATURE_NOT_ENABLED
|
|
48
|
+
when 'not_an_admin' then NOT_AN_ADMIN
|
|
49
|
+
when 'channel_not_found' then CHANNEL_NOT_FOUND
|
|
50
|
+
when 'channel_type_not_supported' then CHANNEL_TYPE_NOT_SUPPORTED
|
|
51
|
+
when 'restricted_action' then RESTRICTED_ACTION
|
|
52
|
+
when 'missing_scope' then MISSING_SCOPE
|
|
53
|
+
when 'could_not_set_channel_pref' then COULD_NOT_SET_CHANNEL_PREF
|
|
54
|
+
when 'default_org_wide_channel' then DEFAULT_ORG_WIDE_CHANNEL
|
|
55
|
+
else
|
|
56
|
+
default_value
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Error11.
|
|
8
|
+
class Error11
|
|
9
|
+
ERROR11 = [
|
|
10
|
+
# TODO: Write general description for FEATURE_NOT_ENABLED
|
|
11
|
+
FEATURE_NOT_ENABLED = 'feature_not_enabled'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for CHANNEL_NOT_FOUND
|
|
14
|
+
CHANNEL_NOT_FOUND = 'channel_not_found'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for CHANNEL_NOT_ARCHIVED
|
|
17
|
+
CHANNEL_NOT_ARCHIVED = 'channel_not_archived'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for CHANNEL_TYPE_NOT_SUPPORTED
|
|
20
|
+
CHANNEL_TYPE_NOT_SUPPORTED = 'channel_type_not_supported'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for RESTRICTED_ACTION
|
|
23
|
+
RESTRICTED_ACTION = 'restricted_action'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for COULD_NOT_UNARCHIVE_CHANNEL
|
|
26
|
+
COULD_NOT_UNARCHIVE_CHANNEL = 'could_not_unarchive_channel'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for DEFAULT_ORG_WIDE_CHANNEL
|
|
29
|
+
DEFAULT_ORG_WIDE_CHANNEL = 'default_org_wide_channel'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for MISSING_SCOPE
|
|
32
|
+
MISSING_SCOPE = 'missing_scope'.freeze
|
|
33
|
+
].freeze
|
|
34
|
+
|
|
35
|
+
def self.validate(value)
|
|
36
|
+
return false if value.nil?
|
|
37
|
+
|
|
38
|
+
ERROR11.include?(value)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.from_value(value, default_value = FEATURE_NOT_ENABLED)
|
|
42
|
+
return default_value if value.nil?
|
|
43
|
+
|
|
44
|
+
str = value.to_s.strip
|
|
45
|
+
|
|
46
|
+
case str.downcase
|
|
47
|
+
when 'feature_not_enabled' then FEATURE_NOT_ENABLED
|
|
48
|
+
when 'channel_not_found' then CHANNEL_NOT_FOUND
|
|
49
|
+
when 'channel_not_archived' then CHANNEL_NOT_ARCHIVED
|
|
50
|
+
when 'channel_type_not_supported' then CHANNEL_TYPE_NOT_SUPPORTED
|
|
51
|
+
when 'restricted_action' then RESTRICTED_ACTION
|
|
52
|
+
when 'could_not_unarchive_channel' then COULD_NOT_UNARCHIVE_CHANNEL
|
|
53
|
+
when 'default_org_wide_channel' then DEFAULT_ORG_WIDE_CHANNEL
|
|
54
|
+
when 'missing_scope' then MISSING_SCOPE
|
|
55
|
+
else
|
|
56
|
+
default_value
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Error12.
|
|
8
|
+
class Error12
|
|
9
|
+
ERROR12 = [
|
|
10
|
+
# TODO: Write general description for NOT_AUTHED
|
|
11
|
+
NOT_AUTHED = 'not_authed'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for INVALID_AUTH
|
|
14
|
+
INVALID_AUTH = 'invalid_auth'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ACCOUNT_INACTIVE
|
|
17
|
+
ACCOUNT_INACTIVE = 'account_inactive'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for TOKEN_REVOKED
|
|
20
|
+
TOKEN_REVOKED = 'token_revoked'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for NO_PERMISSION
|
|
23
|
+
NO_PERMISSION = 'no_permission'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for ORG_LOGIN_REQUIRED
|
|
26
|
+
ORG_LOGIN_REQUIRED = 'org_login_required'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for USER_IS_BOT
|
|
29
|
+
USER_IS_BOT = 'user_is_bot'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for INVALID_ARG_NAME
|
|
32
|
+
INVALID_ARG_NAME = 'invalid_arg_name'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for INVALID_ARRAY_ARG
|
|
35
|
+
INVALID_ARRAY_ARG = 'invalid_array_arg'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for INVALID_CHARSET
|
|
38
|
+
INVALID_CHARSET = 'invalid_charset'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for INVALID_FORM_DATA
|
|
41
|
+
INVALID_FORM_DATA = 'invalid_form_data'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for INVALID_POST_TYPE
|
|
44
|
+
INVALID_POST_TYPE = 'invalid_post_type'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for MISSING_POST_TYPE
|
|
47
|
+
MISSING_POST_TYPE = 'missing_post_type'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for TEAM_ADDED_TO_ORG
|
|
50
|
+
TEAM_ADDED_TO_ORG = 'team_added_to_org'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for INVALID_JSON
|
|
53
|
+
INVALID_JSON = 'invalid_json'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for JSON_NOT_OBJECT
|
|
56
|
+
JSON_NOT_OBJECT = 'json_not_object'.freeze,
|
|
57
|
+
|
|
58
|
+
# TODO: Write general description for REQUEST_TIMEOUT
|
|
59
|
+
REQUEST_TIMEOUT = 'request_timeout'.freeze,
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for UPGRADE_REQUIRED
|
|
62
|
+
UPGRADE_REQUIRED = 'upgrade_required'.freeze,
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for FATAL_ERROR
|
|
65
|
+
FATAL_ERROR = 'fatal_error'.freeze
|
|
66
|
+
].freeze
|
|
67
|
+
|
|
68
|
+
def self.validate(value)
|
|
69
|
+
return false if value.nil?
|
|
70
|
+
|
|
71
|
+
ERROR12.include?(value)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def self.from_value(value, default_value = NOT_AUTHED)
|
|
75
|
+
return default_value if value.nil?
|
|
76
|
+
|
|
77
|
+
str = value.to_s.strip
|
|
78
|
+
|
|
79
|
+
case str.downcase
|
|
80
|
+
when 'not_authed' then NOT_AUTHED
|
|
81
|
+
when 'invalid_auth' then INVALID_AUTH
|
|
82
|
+
when 'account_inactive' then ACCOUNT_INACTIVE
|
|
83
|
+
when 'token_revoked' then TOKEN_REVOKED
|
|
84
|
+
when 'no_permission' then NO_PERMISSION
|
|
85
|
+
when 'org_login_required' then ORG_LOGIN_REQUIRED
|
|
86
|
+
when 'user_is_bot' then USER_IS_BOT
|
|
87
|
+
when 'invalid_arg_name' then INVALID_ARG_NAME
|
|
88
|
+
when 'invalid_array_arg' then INVALID_ARRAY_ARG
|
|
89
|
+
when 'invalid_charset' then INVALID_CHARSET
|
|
90
|
+
when 'invalid_form_data' then INVALID_FORM_DATA
|
|
91
|
+
when 'invalid_post_type' then INVALID_POST_TYPE
|
|
92
|
+
when 'missing_post_type' then MISSING_POST_TYPE
|
|
93
|
+
when 'team_added_to_org' then TEAM_ADDED_TO_ORG
|
|
94
|
+
when 'invalid_json' then INVALID_JSON
|
|
95
|
+
when 'json_not_object' then JSON_NOT_OBJECT
|
|
96
|
+
when 'request_timeout' then REQUEST_TIMEOUT
|
|
97
|
+
when 'upgrade_required' then UPGRADE_REQUIRED
|
|
98
|
+
when 'fatal_error' then FATAL_ERROR
|
|
99
|
+
else
|
|
100
|
+
default_value
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|