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
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ea64085fbaf26f91c8d281fe29fa1570386d51a33e404e6a43e7b159e64e99b5
|
|
4
|
+
data.tar.gz: 857d911444b55592a57fc278265eaee9613bf52167caa9e9e8db126ab13112b0
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8e1d3f802e76490d06d2269309edf169826b52f1916bbb636f5f96690b8295a64ff00e7dfaa58f969bdadf1c420b16c13c6731c33aff24b08d4eeed61f77b9f6
|
|
7
|
+
data.tar.gz: e33e22c52aba21bd0efa170119fc44dcbb9ad203ddc9fba8cc10a74371fdf6f913a033afe16d7e6c9f06f2f647b769c06f9ebef2b699342ddd1edfa7ddb9d0fc
|
data/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
License:
|
|
2
|
+
========
|
|
3
|
+
The MIT License (MIT)
|
|
4
|
+
http://opensource.org/licenses/MIT
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2014 - 2026 APIMATIC Limited
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in
|
|
16
|
+
all copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
+
THE SOFTWARE.
|
|
25
|
+
|
|
26
|
+
Trade Mark:
|
|
27
|
+
==========
|
|
28
|
+
APIMATIC is a trade mark for APIMATIC Limited
|
data/README.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
|
|
2
|
+
# Getting Started with Slack Web API
|
|
3
|
+
|
|
4
|
+
## Introduction
|
|
5
|
+
|
|
6
|
+
One way to interact with the Slack platform is its HTTP RPC-based Web API, a collection of methods requiring OAuth 2.0-based user, bot, or workspace tokens blessed with related OAuth scopes.
|
|
7
|
+
|
|
8
|
+
Learn more about the Slack Web API: [https://api.slack.com/web](https://api.slack.com/web)
|
|
9
|
+
|
|
10
|
+
## Install the Package
|
|
11
|
+
|
|
12
|
+
Install the gem from the command line:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
gem install slack-apimatic-sdk-sdk -v 1.0.0
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Or add the gem to your Gemfile and run `bundle`:
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
gem 'slack-apimatic-sdk-sdk', '1.0.0'
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For additional gem details, see the [RubyGems page for the slack-apimatic-sdk-sdk gem](https://rubygems.org/gems/slack-apimatic-sdk-sdk/versions/1.0.0).
|
|
25
|
+
|
|
26
|
+
## IRB Console Usage
|
|
27
|
+
|
|
28
|
+
You can explore the SDK interactively using IRB in two ways
|
|
29
|
+
|
|
30
|
+
### 1. Use IRB with Installed Gem
|
|
31
|
+
|
|
32
|
+
Open your system terminal (Command Prompt, Git Bash or macOS Terminal) and type the following command to start the irb console.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
irb
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Now you can load the SDK in the IRB
|
|
39
|
+
|
|
40
|
+
```ruby
|
|
41
|
+
require 'slack_web_api'
|
|
42
|
+
include SlackWebApi
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 2. Use IRB within SDK
|
|
46
|
+
|
|
47
|
+
Open your system terminal (Command Prompt, Git Bash or macOS Terminal) and navigate to the root folder of SDK.
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
cd path/to/slack_web_api
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Now you can start the preconfigured irb console by running the following command
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ruby bin/console
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**_Note:_** This automatically loads the SDK from lib/
|
|
60
|
+
|
|
61
|
+
## Initialize the API Client
|
|
62
|
+
|
|
63
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/client.md)
|
|
64
|
+
|
|
65
|
+
The following parameters are configurable for the API Client:
|
|
66
|
+
|
|
67
|
+
| Parameter | Type | Description |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| environment | [`Environment`](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
|
|
70
|
+
| connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
|
|
71
|
+
| adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
|
|
72
|
+
| timeout | `Float` | The value to use for connection timeout. <br> **Default: 30** |
|
|
73
|
+
| max_retries | `Integer` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
|
|
74
|
+
| retry_interval | `Float` | Pause in seconds between retries. <br> **Default: 1** |
|
|
75
|
+
| backoff_factor | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
|
|
76
|
+
| retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
|
77
|
+
| retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
|
78
|
+
| http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
|
79
|
+
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
|
|
80
|
+
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
|
|
81
|
+
| authorization_code_auth_credentials | [`AuthorizationCodeAuthCredentials`](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
|
|
82
|
+
|
|
83
|
+
The API client can be initialized as follows:
|
|
84
|
+
|
|
85
|
+
### Code-Based Client Initialization
|
|
86
|
+
|
|
87
|
+
```ruby
|
|
88
|
+
require 'slack_web_api'
|
|
89
|
+
include SlackWebApi
|
|
90
|
+
|
|
91
|
+
client = Client.new(
|
|
92
|
+
authorization_code_auth_credentials: AuthorizationCodeAuthCredentials.new(
|
|
93
|
+
o_auth_client_id: 'OAuthClientId',
|
|
94
|
+
o_auth_client_secret: 'OAuthClientSecret',
|
|
95
|
+
o_auth_redirect_uri: 'OAuthRedirectUri',
|
|
96
|
+
o_auth_scopes: [
|
|
97
|
+
OAuthScope::ADMIN,
|
|
98
|
+
OAuthScope::ADMIN_APPSREAD
|
|
99
|
+
]
|
|
100
|
+
),
|
|
101
|
+
environment: Environment::PRODUCTION,
|
|
102
|
+
logging_configuration: LoggingConfiguration.new(
|
|
103
|
+
log_level: Logger::INFO,
|
|
104
|
+
request_logging_config: RequestLoggingConfiguration.new(
|
|
105
|
+
log_body: true
|
|
106
|
+
),
|
|
107
|
+
response_logging_config: ResponseLoggingConfiguration.new(
|
|
108
|
+
log_headers: true
|
|
109
|
+
)
|
|
110
|
+
)
|
|
111
|
+
)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Environment-Based Client Initialization
|
|
115
|
+
|
|
116
|
+
```ruby
|
|
117
|
+
require 'slack_web_api'
|
|
118
|
+
include SlackWebApi
|
|
119
|
+
|
|
120
|
+
# Create client from environment
|
|
121
|
+
client = Client.from_env
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
|
|
125
|
+
|
|
126
|
+
## Environments
|
|
127
|
+
|
|
128
|
+
The SDK can be configured to use a different environment for making API calls. Available environments are:
|
|
129
|
+
|
|
130
|
+
### Fields
|
|
131
|
+
|
|
132
|
+
| Name | Description |
|
|
133
|
+
| --- | --- |
|
|
134
|
+
| PRODUCTION | **Default** |
|
|
135
|
+
|
|
136
|
+
## Authorization
|
|
137
|
+
|
|
138
|
+
This API uses the following authentication schemes.
|
|
139
|
+
|
|
140
|
+
* [`slackAuth (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md)
|
|
141
|
+
|
|
142
|
+
## List of APIs
|
|
143
|
+
|
|
144
|
+
* [Admin Apps](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-apps.md)
|
|
145
|
+
* [Admin Apps Approved](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-apps-approved.md)
|
|
146
|
+
* [Admin Apps Requests](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-apps-requests.md)
|
|
147
|
+
* [Admin Apps Restricted](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-apps-restricted.md)
|
|
148
|
+
* [Admin Conversations](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-conversations.md)
|
|
149
|
+
* [Admin Conversations Ekm](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-conversations-ekm.md)
|
|
150
|
+
* [Admin Conversations Restrict Access](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-conversations-restrict-access.md)
|
|
151
|
+
* [Admin Emoji](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-emoji.md)
|
|
152
|
+
* [Admin Invite Requests](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-invite-requests.md)
|
|
153
|
+
* [Admin Invite Requests Approved](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-invite-requests-approved.md)
|
|
154
|
+
* [Admin Invite Requests Denied](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-invite-requests-denied.md)
|
|
155
|
+
* [Admin Teams Admins](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-teams-admins.md)
|
|
156
|
+
* [Admin Teams](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-teams.md)
|
|
157
|
+
* [Admin Teams Owners](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-teams-owners.md)
|
|
158
|
+
* [Admin Teams Settings](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-teams-settings.md)
|
|
159
|
+
* [Admin Usergroups](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-usergroups.md)
|
|
160
|
+
* [Admin Users](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-users.md)
|
|
161
|
+
* [Admin Users Session](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/admin-users-session.md)
|
|
162
|
+
* [Api](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/api.md)
|
|
163
|
+
* [Apps Event Authorizations](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/apps-event-authorizations.md)
|
|
164
|
+
* [Apps Permissions](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/apps-permissions.md)
|
|
165
|
+
* [Apps Permissions Resources](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/apps-permissions-resources.md)
|
|
166
|
+
* [Apps Permissions Scopes](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/apps-permissions-scopes.md)
|
|
167
|
+
* [Apps Permissions Users](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/apps-permissions-users.md)
|
|
168
|
+
* [Apps](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/apps.md)
|
|
169
|
+
* [Auth](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/auth.md)
|
|
170
|
+
* [Bots](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/bots.md)
|
|
171
|
+
* [Calls](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/calls.md)
|
|
172
|
+
* [Calls Participants](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/calls-participants.md)
|
|
173
|
+
* [Chat](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/chat.md)
|
|
174
|
+
* [Chat Scheduled Messages](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/chat-scheduled-messages.md)
|
|
175
|
+
* [Conversations](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/conversations.md)
|
|
176
|
+
* [Dialog](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/dialog.md)
|
|
177
|
+
* [Dnd](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/dnd.md)
|
|
178
|
+
* [Emoji](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/emoji.md)
|
|
179
|
+
* [Files Comments](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/files-comments.md)
|
|
180
|
+
* [Files](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/files.md)
|
|
181
|
+
* [Files Remote](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/files-remote.md)
|
|
182
|
+
* [Migration](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/migration.md)
|
|
183
|
+
* [Oauth](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/oauth.md)
|
|
184
|
+
* [Oauth V 2](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/oauth-v-2.md)
|
|
185
|
+
* [Pins](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/pins.md)
|
|
186
|
+
* [Reactions](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/reactions.md)
|
|
187
|
+
* [Reminders](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/reminders.md)
|
|
188
|
+
* [Rtm](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/rtm.md)
|
|
189
|
+
* [Search](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/search.md)
|
|
190
|
+
* [Stars](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/stars.md)
|
|
191
|
+
* [Team](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/team.md)
|
|
192
|
+
* [Team Profile](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/team-profile.md)
|
|
193
|
+
* [Usergroups](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/usergroups.md)
|
|
194
|
+
* [Usergroups Users](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/usergroups-users.md)
|
|
195
|
+
* [Users](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/users.md)
|
|
196
|
+
* [Users Profile](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/users-profile.md)
|
|
197
|
+
* [Views](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/views.md)
|
|
198
|
+
* [Workflows](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/controllers/workflows.md)
|
|
199
|
+
|
|
200
|
+
## SDK Infrastructure
|
|
201
|
+
|
|
202
|
+
### Configuration
|
|
203
|
+
|
|
204
|
+
* [ProxySettings](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/proxy-settings.md)
|
|
205
|
+
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
|
|
206
|
+
* [AbstractLogger](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/abstract-logger.md)
|
|
207
|
+
* [LoggingConfiguration](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/logging-configuration.md)
|
|
208
|
+
* [RequestLoggingConfiguration](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/request-logging-configuration.md)
|
|
209
|
+
* [ResponseLoggingConfiguration](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/response-logging-configuration.md)
|
|
210
|
+
|
|
211
|
+
### HTTP
|
|
212
|
+
|
|
213
|
+
* [HttpResponse](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/http-response.md)
|
|
214
|
+
* [HttpRequest](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/http-request.md)
|
|
215
|
+
|
|
216
|
+
### Utilities
|
|
217
|
+
|
|
218
|
+
* [ApiResponse](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/api-response.md)
|
|
219
|
+
* [ApiHelper](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/api-helper.md)
|
|
220
|
+
* [DateTimeHelper](https://www.github.com/sdks-io/slack-apimatic-sdk-ruby-sdk/tree/1.0.0/doc/date-time-helper.md)
|
|
221
|
+
|
data/bin/console
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# Load the lib folder into Ruby's load path
|
|
4
|
+
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
|
|
5
|
+
|
|
6
|
+
# Require the gem
|
|
7
|
+
require 'slack_web_api'
|
|
8
|
+
|
|
9
|
+
puts 'SlackWebApi SDK loaded!'
|
|
10
|
+
puts 'You can now create a client with: client = SlackWebApi::Client.new'
|
|
11
|
+
puts 'Or use from_env: client = SlackWebApi::Client.from_env'
|
|
12
|
+
|
|
13
|
+
# Start an interactive IRB session
|
|
14
|
+
require 'irb'
|
|
15
|
+
IRB.start
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
# AdminAppsApi
|
|
8
|
+
class AdminAppsApi < BaseApi
|
|
9
|
+
# Approve an app for installation on a workspace.
|
|
10
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
11
|
+
# scope: `admin.apps:write`
|
|
12
|
+
# @param [String] app_id Optional parameter: The id of the app to approve.
|
|
13
|
+
# @param [String] request_id Optional parameter: The id of the request to
|
|
14
|
+
# approve.
|
|
15
|
+
# @param [String] team_id Optional parameter: TODO: type description here
|
|
16
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
17
|
+
def admin_apps_approve(token,
|
|
18
|
+
app_id: nil,
|
|
19
|
+
request_id: nil,
|
|
20
|
+
team_id: nil)
|
|
21
|
+
@api_call
|
|
22
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
23
|
+
'/admin.apps.approve',
|
|
24
|
+
Server::DEFAULT)
|
|
25
|
+
.header_param(new_parameter(token, key: 'token')
|
|
26
|
+
.is_required(true))
|
|
27
|
+
.form_param(new_parameter(app_id, key: 'app_id'))
|
|
28
|
+
.form_param(new_parameter(request_id, key: 'request_id'))
|
|
29
|
+
.form_param(new_parameter(team_id, key: 'team_id'))
|
|
30
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
31
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
32
|
+
.auth(Single.new('slackAuth')))
|
|
33
|
+
.response(new_response_handler
|
|
34
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
35
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
36
|
+
.is_api_response(true)
|
|
37
|
+
.local_error('default',
|
|
38
|
+
'Typical error response',
|
|
39
|
+
DefaultErrorTemplateException))
|
|
40
|
+
.execute
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Restrict an app for installation on a workspace.
|
|
44
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
45
|
+
# scope: `admin.apps:write`
|
|
46
|
+
# @param [String] app_id Optional parameter: The id of the app to
|
|
47
|
+
# restrict.
|
|
48
|
+
# @param [String] request_id Optional parameter: The id of the request to
|
|
49
|
+
# restrict.
|
|
50
|
+
# @param [String] team_id Optional parameter: TODO: type description here
|
|
51
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
52
|
+
def admin_apps_restrict(token,
|
|
53
|
+
app_id: nil,
|
|
54
|
+
request_id: nil,
|
|
55
|
+
team_id: nil)
|
|
56
|
+
@api_call
|
|
57
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
58
|
+
'/admin.apps.restrict',
|
|
59
|
+
Server::DEFAULT)
|
|
60
|
+
.header_param(new_parameter(token, key: 'token')
|
|
61
|
+
.is_required(true))
|
|
62
|
+
.form_param(new_parameter(app_id, key: 'app_id'))
|
|
63
|
+
.form_param(new_parameter(request_id, key: 'request_id'))
|
|
64
|
+
.form_param(new_parameter(team_id, key: 'team_id'))
|
|
65
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
66
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
67
|
+
.auth(Single.new('slackAuth')))
|
|
68
|
+
.response(new_response_handler
|
|
69
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
70
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
71
|
+
.is_api_response(true)
|
|
72
|
+
.local_error('default',
|
|
73
|
+
'Typical error response',
|
|
74
|
+
DefaultErrorTemplateException))
|
|
75
|
+
.execute
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
# AdminAppsApprovedApi
|
|
8
|
+
class AdminAppsApprovedApi < BaseApi
|
|
9
|
+
# List approved apps for an org or workspace.
|
|
10
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
11
|
+
# scope: `admin.apps:read`
|
|
12
|
+
# @param [Integer] limit Optional parameter: The maximum number of items to
|
|
13
|
+
# return. Must be between 1 - 1000 both inclusive.
|
|
14
|
+
# @param [String] cursor Optional parameter: Set `cursor` to `next_cursor`
|
|
15
|
+
# returned by the previous call to list items in the next page
|
|
16
|
+
# @param [String] team_id Optional parameter: TODO: type description here
|
|
17
|
+
# @param [String] enterprise_id Optional parameter: TODO: type description
|
|
18
|
+
# here
|
|
19
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
20
|
+
def admin_apps_approved_list(token,
|
|
21
|
+
limit: nil,
|
|
22
|
+
cursor: nil,
|
|
23
|
+
team_id: nil,
|
|
24
|
+
enterprise_id: nil)
|
|
25
|
+
@api_call
|
|
26
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
27
|
+
'/admin.apps.approved.list',
|
|
28
|
+
Server::DEFAULT)
|
|
29
|
+
.query_param(new_parameter(token, key: 'token')
|
|
30
|
+
.is_required(true))
|
|
31
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
32
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
33
|
+
.query_param(new_parameter(cursor, key: 'cursor'))
|
|
34
|
+
.query_param(new_parameter(team_id, key: 'team_id'))
|
|
35
|
+
.query_param(new_parameter(enterprise_id, key: 'enterprise_id'))
|
|
36
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
37
|
+
.auth(Single.new('slackAuth')))
|
|
38
|
+
.response(new_response_handler
|
|
39
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
40
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
41
|
+
.is_api_response(true)
|
|
42
|
+
.local_error('default',
|
|
43
|
+
'Typical error response',
|
|
44
|
+
DefaultErrorTemplateException))
|
|
45
|
+
.execute
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
# AdminAppsRequestsApi
|
|
8
|
+
class AdminAppsRequestsApi < BaseApi
|
|
9
|
+
# List app requests for a team/workspace.
|
|
10
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
11
|
+
# scope: `admin.apps:read`
|
|
12
|
+
# @param [Integer] limit Optional parameter: The maximum number of items to
|
|
13
|
+
# return. Must be between 1 - 1000 both inclusive.
|
|
14
|
+
# @param [String] cursor Optional parameter: Set `cursor` to `next_cursor`
|
|
15
|
+
# returned by the previous call to list items in the next page
|
|
16
|
+
# @param [String] team_id Optional parameter: TODO: type description here
|
|
17
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
18
|
+
def admin_apps_requests_list(token,
|
|
19
|
+
limit: nil,
|
|
20
|
+
cursor: nil,
|
|
21
|
+
team_id: nil)
|
|
22
|
+
@api_call
|
|
23
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
24
|
+
'/admin.apps.requests.list',
|
|
25
|
+
Server::DEFAULT)
|
|
26
|
+
.query_param(new_parameter(token, key: 'token')
|
|
27
|
+
.is_required(true))
|
|
28
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
29
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
30
|
+
.query_param(new_parameter(cursor, key: 'cursor'))
|
|
31
|
+
.query_param(new_parameter(team_id, key: 'team_id'))
|
|
32
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
33
|
+
.auth(Single.new('slackAuth')))
|
|
34
|
+
.response(new_response_handler
|
|
35
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
36
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
37
|
+
.is_api_response(true)
|
|
38
|
+
.local_error('default',
|
|
39
|
+
'Typical error response',
|
|
40
|
+
DefaultErrorTemplateException))
|
|
41
|
+
.execute
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
# AdminAppsRestrictedApi
|
|
8
|
+
class AdminAppsRestrictedApi < BaseApi
|
|
9
|
+
# List restricted apps for an org or workspace.
|
|
10
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
11
|
+
# scope: `admin.apps:read`
|
|
12
|
+
# @param [Integer] limit Optional parameter: The maximum number of items to
|
|
13
|
+
# return. Must be between 1 - 1000 both inclusive.
|
|
14
|
+
# @param [String] cursor Optional parameter: Set `cursor` to `next_cursor`
|
|
15
|
+
# returned by the previous call to list items in the next page
|
|
16
|
+
# @param [String] team_id Optional parameter: TODO: type description here
|
|
17
|
+
# @param [String] enterprise_id Optional parameter: TODO: type description
|
|
18
|
+
# here
|
|
19
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
20
|
+
def admin_apps_restricted_list(token,
|
|
21
|
+
limit: nil,
|
|
22
|
+
cursor: nil,
|
|
23
|
+
team_id: nil,
|
|
24
|
+
enterprise_id: nil)
|
|
25
|
+
@api_call
|
|
26
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
27
|
+
'/admin.apps.restricted.list',
|
|
28
|
+
Server::DEFAULT)
|
|
29
|
+
.query_param(new_parameter(token, key: 'token')
|
|
30
|
+
.is_required(true))
|
|
31
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
32
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
33
|
+
.query_param(new_parameter(cursor, key: 'cursor'))
|
|
34
|
+
.query_param(new_parameter(team_id, key: 'team_id'))
|
|
35
|
+
.query_param(new_parameter(enterprise_id, key: 'enterprise_id'))
|
|
36
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
37
|
+
.auth(Single.new('slackAuth')))
|
|
38
|
+
.response(new_response_handler
|
|
39
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
40
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
41
|
+
.is_api_response(true)
|
|
42
|
+
.local_error('default',
|
|
43
|
+
'Typical error response',
|
|
44
|
+
DefaultErrorTemplateException))
|
|
45
|
+
.execute
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|