slack-apimatic-sdk-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/apis/admin_apps_api.rb +78 -0
- data/lib/slack_web_api/apis/admin_apps_approved_api.rb +48 -0
- data/lib/slack_web_api/apis/admin_apps_requests_api.rb +44 -0
- data/lib/slack_web_api/apis/admin_apps_restricted_api.rb +48 -0
- data/lib/slack_web_api/apis/admin_conversations_api.rb +472 -0
- data/lib/slack_web_api/apis/admin_conversations_ekm_api.rb +51 -0
- data/lib/slack_web_api/apis/admin_conversations_restrict_access_api.rb +129 -0
- data/lib/slack_web_api/apis/admin_emoji_api.rb +175 -0
- data/lib/slack_web_api/apis/admin_invite_requests_api.rb +112 -0
- data/lib/slack_web_api/apis/admin_invite_requests_approved_api.rb +46 -0
- data/lib/slack_web_api/apis/admin_invite_requests_denied_api.rb +46 -0
- data/lib/slack_web_api/apis/admin_teams_admins_api.rb +45 -0
- data/lib/slack_web_api/apis/admin_teams_api.rb +84 -0
- data/lib/slack_web_api/apis/admin_teams_owners_api.rb +45 -0
- data/lib/slack_web_api/apis/admin_teams_settings_api.rb +206 -0
- data/lib/slack_web_api/apis/admin_usergroups_api.rb +161 -0
- data/lib/slack_web_api/apis/admin_users_api.rb +333 -0
- data/lib/slack_web_api/apis/admin_users_session_api.rb +80 -0
- data/lib/slack_web_api/apis/api.rb +34 -0
- data/lib/slack_web_api/apis/apps_api.rb +40 -0
- data/lib/slack_web_api/apis/apps_event_authorizations_api.rb +45 -0
- data/lib/slack_web_api/apis/apps_permissions_api.rb +66 -0
- data/lib/slack_web_api/apis/apps_permissions_resources_api.rb +44 -0
- data/lib/slack_web_api/apis/apps_permissions_scopes_api.rb +33 -0
- data/lib/slack_web_api/apis/apps_permissions_users_api.rb +85 -0
- data/lib/slack_web_api/apis/auth_api.rb +62 -0
- data/lib/slack_web_api/apis/base_api.rb +67 -0
- data/lib/slack_web_api/apis/bots_api.rb +36 -0
- data/lib/slack_web_api/apis/calls_api.rb +174 -0
- data/lib/slack_web_api/apis/calls_participants_api.rb +79 -0
- data/lib/slack_web_api/apis/chat_api.rb +528 -0
- data/lib/slack_web_api/apis/chat_scheduled_messages_api.rb +54 -0
- data/lib/slack_web_api/apis/conversations_api.rb +628 -0
- data/lib/slack_web_api/apis/dialog_api.rb +44 -0
- data/lib/slack_web_api/apis/dnd_api.rb +141 -0
- data/lib/slack_web_api/apis/emoji_api.rb +33 -0
- data/lib/slack_web_api/apis/files_api.rb +245 -0
- data/lib/slack_web_api/apis/files_comments_api.rb +38 -0
- data/lib/slack_web_api/apis/files_remote_api.rb +250 -0
- data/lib/slack_web_api/apis/migration_api.rb +47 -0
- data/lib/slack_web_api/apis/o_auth_authorization_api.rb +87 -0
- data/lib/slack_web_api/apis/oauth_api.rb +88 -0
- data/lib/slack_web_api/apis/oauth_v2_api.rb +45 -0
- data/lib/slack_web_api/apis/pins_api.rb +102 -0
- data/lib/slack_web_api/apis/reactions_api.rb +182 -0
- data/lib/slack_web_api/apis/reminders_api.rb +151 -0
- data/lib/slack_web_api/apis/rtm_api.rb +44 -0
- data/lib/slack_web_api/apis/search_api.rb +56 -0
- data/lib/slack_web_api/apis/stars_api.rb +130 -0
- data/lib/slack_web_api/apis/team_api.rb +148 -0
- data/lib/slack_web_api/apis/team_profile_api.rb +36 -0
- data/lib/slack_web_api/apis/usergroups_api.rb +205 -0
- data/lib/slack_web_api/apis/usergroups_users_api.rb +81 -0
- data/lib/slack_web_api/apis/users_api.rb +327 -0
- data/lib/slack_web_api/apis/users_profile_api.rb +82 -0
- data/lib/slack_web_api/apis/views_api.rb +158 -0
- data/lib/slack_web_api/apis/workflows_api.rb +130 -0
- data/lib/slack_web_api/client.rb +410 -0
- data/lib/slack_web_api/configuration.rb +173 -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/o_auth_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/o_auth2.rb +164 -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/o_auth_provider_error.rb +62 -0
- data/lib/slack_web_api/models/o_auth_scope.rb +296 -0
- data/lib/slack_web_api/models/o_auth_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 +527 -0
- metadata +509 -0
|
@@ -0,0 +1,173 @@
|
|
|
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
|
+
# An enum for SDK environments.
|
|
8
|
+
class Environment
|
|
9
|
+
ENVIRONMENT = [
|
|
10
|
+
PRODUCTION = 'production'.freeze
|
|
11
|
+
].freeze
|
|
12
|
+
|
|
13
|
+
# Converts a string or symbol into a valid Environment constant.
|
|
14
|
+
def self.from_value(value, default_value = PRODUCTION)
|
|
15
|
+
return default_value if value.nil?
|
|
16
|
+
|
|
17
|
+
default_value
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# An enum for API servers.
|
|
22
|
+
class Server
|
|
23
|
+
SERVER = [
|
|
24
|
+
DEFAULT = 'default'.freeze,
|
|
25
|
+
AUTH_SERVER = 'auth server'.freeze
|
|
26
|
+
].freeze
|
|
27
|
+
|
|
28
|
+
# Converts a string or symbol into a valid Server constant.
|
|
29
|
+
def self.from_value(value, default_value = DEFAULT)
|
|
30
|
+
return default_value if value.nil?
|
|
31
|
+
|
|
32
|
+
str = value.to_s.strip.downcase
|
|
33
|
+
case str
|
|
34
|
+
when 'default' then DEFAULT
|
|
35
|
+
when 'auth_server' then AUTH_SERVER
|
|
36
|
+
|
|
37
|
+
else
|
|
38
|
+
warn "[Server] Unknown server '#{value}', falling back to #{default_value} "
|
|
39
|
+
default_value
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# All configuration including auth info and base URI for the API access
|
|
45
|
+
# are configured in this class.
|
|
46
|
+
class Configuration < CoreLibrary::HttpClientConfiguration
|
|
47
|
+
# The attribute readers for properties.
|
|
48
|
+
attr_reader :environment, :authorization_code_auth_credentials
|
|
49
|
+
|
|
50
|
+
class << self
|
|
51
|
+
attr_reader :environments
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def initialize(
|
|
55
|
+
connection: nil, adapter: :net_http_persistent, timeout: 30,
|
|
56
|
+
max_retries: 0, retry_interval: 1, backoff_factor: 2,
|
|
57
|
+
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
|
|
58
|
+
retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
|
|
59
|
+
logging_configuration: nil, environment: Environment::PRODUCTION,
|
|
60
|
+
authorization_code_auth_credentials: nil
|
|
61
|
+
)
|
|
62
|
+
super connection: connection, adapter: adapter, timeout: timeout,
|
|
63
|
+
max_retries: max_retries, retry_interval: retry_interval,
|
|
64
|
+
backoff_factor: backoff_factor, retry_statuses: retry_statuses,
|
|
65
|
+
retry_methods: retry_methods, http_callback: http_callback,
|
|
66
|
+
proxy_settings: proxy_settings,
|
|
67
|
+
logging_configuration: logging_configuration
|
|
68
|
+
|
|
69
|
+
# Current API environment
|
|
70
|
+
@environment = String(environment)
|
|
71
|
+
|
|
72
|
+
# The object holding OAuth 2 Authorization Code Grant credentials
|
|
73
|
+
@authorization_code_auth_credentials = authorization_code_auth_credentials
|
|
74
|
+
|
|
75
|
+
# Initializing OAuth 2 Authorization Code Grant credentials with the provided auth parameters
|
|
76
|
+
@authorization_code_auth_credentials = authorization_code_auth_credentials
|
|
77
|
+
|
|
78
|
+
# The Http Client to use for making requests.
|
|
79
|
+
set_http_client CoreLibrary::FaradayClient.new(self)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def clone_with(connection: nil, adapter: nil, timeout: nil,
|
|
83
|
+
max_retries: nil, retry_interval: nil, backoff_factor: nil,
|
|
84
|
+
retry_statuses: nil, retry_methods: nil, http_callback: nil,
|
|
85
|
+
proxy_settings: nil, logging_configuration: nil,
|
|
86
|
+
environment: nil, authorization_code_auth_credentials: nil)
|
|
87
|
+
connection ||= self.connection
|
|
88
|
+
adapter ||= self.adapter
|
|
89
|
+
timeout ||= self.timeout
|
|
90
|
+
max_retries ||= self.max_retries
|
|
91
|
+
retry_interval ||= self.retry_interval
|
|
92
|
+
backoff_factor ||= self.backoff_factor
|
|
93
|
+
retry_statuses ||= self.retry_statuses
|
|
94
|
+
retry_methods ||= self.retry_methods
|
|
95
|
+
http_callback ||= self.http_callback
|
|
96
|
+
proxy_settings ||= self.proxy_settings
|
|
97
|
+
logging_configuration ||= self.logging_configuration
|
|
98
|
+
environment ||= self.environment
|
|
99
|
+
authorization_code_auth_credentials ||= self.authorization_code_auth_credentials
|
|
100
|
+
|
|
101
|
+
Configuration.new(
|
|
102
|
+
connection: connection, adapter: adapter, timeout: timeout,
|
|
103
|
+
max_retries: max_retries, retry_interval: retry_interval,
|
|
104
|
+
backoff_factor: backoff_factor, retry_statuses: retry_statuses,
|
|
105
|
+
retry_methods: retry_methods, http_callback: http_callback,
|
|
106
|
+
proxy_settings: proxy_settings,
|
|
107
|
+
logging_configuration: logging_configuration, environment: environment,
|
|
108
|
+
authorization_code_auth_credentials: authorization_code_auth_credentials
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# All the environments the SDK can run in.
|
|
114
|
+
ENVIRONMENTS = {
|
|
115
|
+
Environment::PRODUCTION => {
|
|
116
|
+
Server::DEFAULT => 'https://slack.com/api',
|
|
117
|
+
Server::AUTH_SERVER => 'https://slack.com/oauth'
|
|
118
|
+
}
|
|
119
|
+
}.freeze
|
|
120
|
+
|
|
121
|
+
# Generates the appropriate base URI for the environment and the server.
|
|
122
|
+
# @param [Configuration::Server] server The server enum for which the base URI is
|
|
123
|
+
# required.
|
|
124
|
+
# @return [String] The base URI.
|
|
125
|
+
def get_base_uri(server = Server::DEFAULT)
|
|
126
|
+
ENVIRONMENTS[environment][server].clone
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds a Configuration instance using environment variables.
|
|
130
|
+
def self.build_default_config_from_env
|
|
131
|
+
# === Core environment ===
|
|
132
|
+
environment = Environment.from_value(ENV.fetch('ENVIRONMENT', 'production'))
|
|
133
|
+
timeout = (ENV['TIMEOUT'] || 30).to_f
|
|
134
|
+
max_retries = (ENV['MAX_RETRIES'] || 0).to_i
|
|
135
|
+
retry_interval = (ENV['RETRY_INTERVAL'] || 1).to_f
|
|
136
|
+
backoff_factor = (ENV['BACKOFF_FACTOR'] || 2).to_f
|
|
137
|
+
retry_statuses = ENV.fetch('RETRY_STATUSES',
|
|
138
|
+
'[408, 413, 429, 500, 502, 503, 504, 521, 522, 524]').gsub(/[\[\]]/, '')
|
|
139
|
+
.split(',')
|
|
140
|
+
.map(&:strip)
|
|
141
|
+
.map do |item|
|
|
142
|
+
item.match?(/\A\d+\z/) ? item.to_i : item.downcase
|
|
143
|
+
end
|
|
144
|
+
retry_methods = ENV.fetch('RETRY_METHODS', '%i[get put]').gsub(/[\[\]]/, '')
|
|
145
|
+
.split(',')
|
|
146
|
+
.map(&:strip)
|
|
147
|
+
.map do |item|
|
|
148
|
+
item.match?(/\A\d+\z/) ? item.to_i : item.downcase
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# === Authentication credentials ===
|
|
152
|
+
authorization_code_auth_credentials = AuthorizationCodeAuthCredentials.from_env
|
|
153
|
+
|
|
154
|
+
# === Proxy settings ===
|
|
155
|
+
proxy_settings = ProxySettings.from_env
|
|
156
|
+
# === Logging Configuration ===
|
|
157
|
+
logging_configuration = LoggingConfiguration.from_env if LoggingConfiguration.any_logging_configured?
|
|
158
|
+
|
|
159
|
+
Configuration.new(
|
|
160
|
+
environment: environment,
|
|
161
|
+
timeout: timeout,
|
|
162
|
+
max_retries: max_retries,
|
|
163
|
+
retry_interval: retry_interval,
|
|
164
|
+
backoff_factor: backoff_factor,
|
|
165
|
+
retry_statuses: retry_statuses,
|
|
166
|
+
retry_methods: retry_methods,
|
|
167
|
+
authorization_code_auth_credentials: authorization_code_auth_credentials,
|
|
168
|
+
proxy_settings: proxy_settings,
|
|
169
|
+
logging_configuration: logging_configuration
|
|
170
|
+
)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.archive
|
|
8
|
+
class AdminConversationsArchiveErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
data/lib/slack_web_api/exceptions/admin_conversations_convert_to_private_error_schema_exception.rb
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.convertToPrivate
|
|
8
|
+
class AdminConversationsConvertToPrivateErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error1]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.create
|
|
8
|
+
class AdminConversationsCreateErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error2]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.delete
|
|
8
|
+
class AdminConversationsDeleteErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error3]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
data/lib/slack_web_api/exceptions/admin_conversations_disconnect_shared_error_schema_exception.rb
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.disconnectShared
|
|
8
|
+
class AdminConversationsDisconnectSharedErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error4]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.getTeams
|
|
8
|
+
class AdminConversationsGetTeamsErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error6]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.invite
|
|
8
|
+
class AdminConversationsInviteErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error7]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.search
|
|
8
|
+
class AdminConversationsSearchErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error9]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.setConversationPrefs
|
|
8
|
+
class AdminConversationsSetConversationPrefsErrorSchemaException < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error10]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 error response from admin.conversations.rename
|
|
8
|
+
class AdminConversationsUnarchiveErrorSchema2Exception < APIException
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Error8]
|
|
14
|
+
attr_accessor :error
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_reader :ok
|
|
19
|
+
|
|
20
|
+
# The constructor.
|
|
21
|
+
# @param [String] reason The reason for raising an exception.
|
|
22
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
|
23
|
+
def initialize(reason, response)
|
|
24
|
+
super(reason, response)
|
|
25
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
|
26
|
+
unbox(hash)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Populates this object by extracting properties from a hash.
|
|
30
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
|
31
|
+
# response body.
|
|
32
|
+
def unbox(hash)
|
|
33
|
+
return nil unless hash
|
|
34
|
+
|
|
35
|
+
@error = hash.key?('error') ? hash['error'] : nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Provides a human-readable string representation of the object.
|
|
39
|
+
def to_s
|
|
40
|
+
class_name = self.class.name.split('::').last
|
|
41
|
+
"<#{class_name} error: #{@error}, ok: #{@ok}>"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
45
|
+
def inspect
|
|
46
|
+
class_name = self.class.name.split('::').last
|
|
47
|
+
"<#{class_name} error: #{@error.inspect}, ok: #{@ok.inspect}>"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|