slack-apimatic-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 +43 -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 +84 -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 +624 -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 +244 -0
- data/lib/slack_web_api/apis/files_comments_api.rb +38 -0
- data/lib/slack_web_api/apis/files_remote_api.rb +249 -0
- data/lib/slack_web_api/apis/migration_api.rb +47 -0
- data/lib/slack_web_api/apis/oauth_api.rb +88 -0
- data/lib/slack_web_api/apis/oauth_authorization_api.rb +87 -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 +42 -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 +325 -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/oauth_provider_exception.rb +64 -0
- data/lib/slack_web_api/exceptions/pins_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/pins_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/pins_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reactions_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_complete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_delete_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/reminders_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/rtm_connect_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_add_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/stars_remove_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_access_logs_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_integration_logs_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/team_profile_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_create_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_disable_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_enable_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_users_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/usergroups_users_update_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_conversations_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_counts_error_schema_exception.rb +50 -0
- data/lib/slack_web_api/exceptions/users_delete_photo_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_identity_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_info_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_list_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_lookup_by_email_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_profile_get_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_profile_set_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_set_active_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/exceptions/users_set_photo_error_schema_exception.rb +73 -0
- data/lib/slack_web_api/exceptions/users_set_presence_error_schema_exception.rb +56 -0
- data/lib/slack_web_api/http/api_response.rb +19 -0
- data/lib/slack_web_api/http/auth/oauth_2.rb +162 -0
- data/lib/slack_web_api/http/http_call_back.rb +10 -0
- data/lib/slack_web_api/http/http_method_enum.rb +10 -0
- data/lib/slack_web_api/http/http_request.rb +10 -0
- data/lib/slack_web_api/http/http_response.rb +10 -0
- data/lib/slack_web_api/http/proxy_settings.rb +22 -0
- data/lib/slack_web_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/slack_web_api/logging/sdk_logger.rb +17 -0
- data/lib/slack_web_api/models/admin_conversations_archive_error_enum.rb +60 -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_error_enum.rb +65 -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_error_enum.rb +60 -0
- data/lib/slack_web_api/models/admin_conversations_create_schema.rb +82 -0
- data/lib/slack_web_api/models/admin_conversations_delete_error_enum.rb +60 -0
- data/lib/slack_web_api/models/admin_conversations_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_disconnect_shared_error_enum.rb +80 -0
- data/lib/slack_web_api/models/admin_conversations_get_conversation_prefs_error_enum.rb +60 -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_error_enum.rb +60 -0
- data/lib/slack_web_api/models/admin_conversations_get_teams_schema.rb +92 -0
- data/lib/slack_web_api/models/admin_conversations_invite_error_enum.rb +56 -0
- data/lib/slack_web_api/models/admin_conversations_invite_schema.rb +71 -0
- data/lib/slack_web_api/models/admin_conversations_rename_error_enum.rb +56 -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_error_enum.rb +68 -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_error_enum.rb +60 -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_error_enum.rb +60 -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_error_enum.rb +104 -0
- data/lib/slack_web_api/models/apps_permissions_info_schema.rb +80 -0
- data/lib/slack_web_api/models/apps_permissions_request_error_enum.rb +120 -0
- data/lib/slack_web_api/models/apps_permissions_request_schema.rb +71 -0
- data/lib/slack_web_api/models/apps_permissions_resources_list_error_enum.rb +108 -0
- data/lib/slack_web_api/models/apps_permissions_resources_list_success_schema.rb +101 -0
- data/lib/slack_web_api/models/apps_uninstall_error_enum.rb +116 -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_error_enum.rb +100 -0
- data/lib/slack_web_api/models/auth_revoke_schema.rb +80 -0
- data/lib/slack_web_api/models/auth_test_error_enum.rb +84 -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_error_enum.rb +104 -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_error_enum.rb +112 -0
- data/lib/slack_web_api/models/chat_delete_scheduled_message_error_enum.rb +120 -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_error_enum.rb +108 -0
- data/lib/slack_web_api/models/chat_get_permalink_success_schema.rb +88 -0
- data/lib/slack_web_api/models/chat_me_message_error_enum.rb +124 -0
- data/lib/slack_web_api/models/chat_me_message_schema.rb +91 -0
- data/lib/slack_web_api/models/chat_post_ephemeral_error_enum.rb +128 -0
- data/lib/slack_web_api/models/chat_post_ephemeral_success_schema.rb +80 -0
- data/lib/slack_web_api/models/chat_post_message_error_enum.rb +92 -0
- data/lib/slack_web_api/models/chat_post_message_success_schema.rb +96 -0
- data/lib/slack_web_api/models/chat_schedule_message_error_enum.rb +166 -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_error_enum.rb +112 -0
- data/lib/slack_web_api/models/chat_scheduled_messages_list_schema.rb +100 -0
- data/lib/slack_web_api/models/chat_unfurl_error_enum.rb +120 -0
- data/lib/slack_web_api/models/chat_unfurl_success_schema.rb +71 -0
- data/lib/slack_web_api/models/chat_update_error_enum.rb +128 -0
- data/lib/slack_web_api/models/chat_update_success_schema.rb +105 -0
- data/lib/slack_web_api/models/conversations_archive_error_enum.rb +133 -0
- data/lib/slack_web_api/models/conversations_archive_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_close_error_enum.rb +101 -0
- data/lib/slack_web_api/models/conversations_close_success_schema.rb +93 -0
- data/lib/slack_web_api/models/conversations_create_error_enum.rb +133 -0
- data/lib/slack_web_api/models/conversations_create_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_history_error_enum.rb +96 -0
- data/lib/slack_web_api/models/conversations_history_success_schema.rb +127 -0
- data/lib/slack_web_api/models/conversations_info_error_enum.rb +92 -0
- data/lib/slack_web_api/models/conversations_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_invite_error_enum.rb +153 -0
- data/lib/slack_web_api/models/conversations_invite_error_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_join_error_enum.rb +121 -0
- data/lib/slack_web_api/models/conversations_join_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_kick_error_enum.rb +121 -0
- data/lib/slack_web_api/models/conversations_kick_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_leave_error_enum.rb +129 -0
- data/lib/slack_web_api/models/conversations_leave_success_schema.rb +83 -0
- data/lib/slack_web_api/models/conversations_list_error_enum.rb +84 -0
- data/lib/slack_web_api/models/conversations_list_success_schema.rb +92 -0
- data/lib/slack_web_api/models/conversations_mark_error_enum.rb +105 -0
- data/lib/slack_web_api/models/conversations_mark_success_schema.rb +71 -0
- data/lib/slack_web_api/models/conversations_members_error_enum.rb +100 -0
- data/lib/slack_web_api/models/conversations_members_success_schema.rb +89 -0
- data/lib/slack_web_api/models/conversations_open_error_enum.rb +121 -0
- data/lib/slack_web_api/models/conversations_open_success_schema.rb +102 -0
- data/lib/slack_web_api/models/conversations_rename_error_enum.rb +129 -0
- data/lib/slack_web_api/models/conversations_rename_success_schema.rb +80 -0
- data/lib/slack_web_api/models/conversations_replies_error_enum.rb +96 -0
- data/lib/slack_web_api/models/conversations_replies_success_schema.rb +90 -0
- data/lib/slack_web_api/models/conversations_set_purpose_error_enum.rb +113 -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_error_enum.rb +121 -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_error_enum.rb +136 -0
- data/lib/slack_web_api/models/dialog_open_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_dnd_error_enum.rb +108 -0
- data/lib/slack_web_api/models/dnd_end_dnd_schema.rb +71 -0
- data/lib/slack_web_api/models/dnd_end_snooze_error_enum.rb +112 -0
- data/lib/slack_web_api/models/dnd_end_snooze_schema.rb +111 -0
- data/lib/slack_web_api/models/dnd_info_error_enum.rb +104 -0
- data/lib/slack_web_api/models/dnd_info_schema.rb +136 -0
- data/lib/slack_web_api/models/dnd_set_snooze_error_enum.rb +116 -0
- data/lib/slack_web_api/models/dnd_set_snooze_schema.rb +102 -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_error_enum.rb +92 -0
- data/lib/slack_web_api/models/files_comments_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_delete_error_enum.rb +100 -0
- data/lib/slack_web_api/models/files_delete_schema.rb +71 -0
- data/lib/slack_web_api/models/files_info_error_enum.rb +100 -0
- data/lib/slack_web_api/models/files_info_schema.rb +133 -0
- data/lib/slack_web_api/models/files_list_error_enum.rb +100 -0
- data/lib/slack_web_api/models/files_list_schema.rb +97 -0
- data/lib/slack_web_api/models/files_revoke_public_url_error_enum.rb +112 -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_error_enum.rb +116 -0
- data/lib/slack_web_api/models/files_shared_public_url_schema.rb +80 -0
- data/lib/slack_web_api/models/files_upload_error_enum.rb +108 -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_error_enum.rb +108 -0
- data/lib/slack_web_api/models/migration_exchange_success_schema.rb +111 -0
- data/lib/slack_web_api/models/mpim.rb +86 -0
- data/lib/slack_web_api/models/mself.rb +82 -0
- data/lib/slack_web_api/models/oauth_provider_error.rb +62 -0
- data/lib/slack_web_api/models/oauth_scope.rb +296 -0
- data/lib/slack_web_api/models/oauth_token.rb +96 -0
- data/lib/slack_web_api/models/objs_enterprise_user.rb +119 -0
- data/lib/slack_web_api/models/objs_icon.rb +147 -0
- data/lib/slack_web_api/models/objs_primary_owner.rb +82 -0
- data/lib/slack_web_api/models/objs_reminder.rb +129 -0
- data/lib/slack_web_api/models/objs_team_profile_field.rb +154 -0
- data/lib/slack_web_api/models/objs_team_profile_field_option.rb +112 -0
- data/lib/slack_web_api/models/objs_user_profile_short.rb +174 -0
- data/lib/slack_web_api/models/paging_object.rb +121 -0
- data/lib/slack_web_api/models/pins_add_error_enum.rb +120 -0
- data/lib/slack_web_api/models/pins_add_schema.rb +71 -0
- data/lib/slack_web_api/models/pins_list_error_enum.rb +92 -0
- data/lib/slack_web_api/models/pins_remove_error_enum.rb +116 -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_error_enum.rb +116 -0
- data/lib/slack_web_api/models/reactions_add_schema.rb +71 -0
- data/lib/slack_web_api/models/reactions_get_error_enum.rb +104 -0
- data/lib/slack_web_api/models/reactions_list_error_enum.rb +96 -0
- data/lib/slack_web_api/models/reactions_list_schema.rb +102 -0
- data/lib/slack_web_api/models/reactions_remove_error_enum.rb +120 -0
- data/lib/slack_web_api/models/reactions_remove_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_add_error_enum.rb +128 -0
- data/lib/slack_web_api/models/reminders_add_schema.rb +80 -0
- data/lib/slack_web_api/models/reminders_complete_error_enum.rb +116 -0
- data/lib/slack_web_api/models/reminders_complete_schema.rb +71 -0
- data/lib/slack_web_api/models/reminders_delete_error_enum.rb +108 -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_error_enum.rb +96 -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_error_enum.rb +128 -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_error_enum.rb +128 -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_error_enum.rb +112 -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_error_enum.rb +92 -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_error_enum.rb +112 -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_error_enum.rb +116 -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_error_enum.rb +120 -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_error_enum.rb +117 -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_error_enum.rb +92 -0
- data/lib/slack_web_api/models/users_info_success_schema.rb +80 -0
- data/lib/slack_web_api/models/users_list_error_enum.rb +100 -0
- data/lib/slack_web_api/models/users_list_schema.rb +102 -0
- data/lib/slack_web_api/models/users_lookup_by_email_error_enum.rb +100 -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_error_enum.rb +108 -0
- data/lib/slack_web_api/models/users_profile_get_schema.rb +80 -0
- data/lib/slack_web_api/models/users_profile_set_error_enum.rb +128 -0
- data/lib/slack_web_api/models/users_profile_set_schema.rb +100 -0
- data/lib/slack_web_api/models/users_set_active_error_enum.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_error_enum.rb +120 -0
- data/lib/slack_web_api/models/users_set_photo_schema.rb +80 -0
- data/lib/slack_web_api/models/users_set_presence_error_enum.rb +104 -0
- data/lib/slack_web_api/models/users_set_presence_schema.rb +71 -0
- data/lib/slack_web_api/models/who_can_post.rb +85 -0
- data/lib/slack_web_api/utilities/date_time_helper.rb +11 -0
- data/lib/slack_web_api/utilities/file_wrapper.rb +28 -0
- data/lib/slack_web_api.rb +532 -0
- metadata +509 -0
|
@@ -0,0 +1,472 @@
|
|
|
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
|
+
# AdminConversationsApi
|
|
8
|
+
class AdminConversationsApi < BaseApi
|
|
9
|
+
# Archive a public or private channel.
|
|
10
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
11
|
+
# scope: `admin.conversations:write`
|
|
12
|
+
# @param [String] channel_id Required parameter: The channel to archive.
|
|
13
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
14
|
+
def admin_conversations_archive(token,
|
|
15
|
+
channel_id)
|
|
16
|
+
@api_call
|
|
17
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
18
|
+
'/admin.conversations.archive',
|
|
19
|
+
Server::DEFAULT)
|
|
20
|
+
.header_param(new_parameter(token, key: 'token')
|
|
21
|
+
.is_required(true))
|
|
22
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
23
|
+
.is_required(true))
|
|
24
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
25
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
26
|
+
.auth(Single.new('slackAuth')))
|
|
27
|
+
.response(new_response_handler
|
|
28
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
29
|
+
.deserialize_into(AdminConversationsArchiveSchema.method(:from_hash))
|
|
30
|
+
.is_api_response(true)
|
|
31
|
+
.local_error('default',
|
|
32
|
+
'Typical error response',
|
|
33
|
+
AdminConversationsArchiveErrorSchemaException))
|
|
34
|
+
.execute
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Convert a public channel to a private channel.
|
|
38
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
39
|
+
# scope: `admin.conversations:write`
|
|
40
|
+
# @param [String] channel_id Required parameter: The channel to convert to
|
|
41
|
+
# private.
|
|
42
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
43
|
+
def admin_conversations_convert_to_private(token,
|
|
44
|
+
channel_id)
|
|
45
|
+
@api_call
|
|
46
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
47
|
+
'/admin.conversations.convertToPrivate',
|
|
48
|
+
Server::DEFAULT)
|
|
49
|
+
.header_param(new_parameter(token, key: 'token')
|
|
50
|
+
.is_required(true))
|
|
51
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
52
|
+
.is_required(true))
|
|
53
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
54
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
55
|
+
.auth(Single.new('slackAuth')))
|
|
56
|
+
.response(new_response_handler
|
|
57
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
58
|
+
.deserialize_into(AdminConversationsConvertToPrivateSchema.method(:from_hash))
|
|
59
|
+
.is_api_response(true)
|
|
60
|
+
.local_error('default',
|
|
61
|
+
'Typical error response',
|
|
62
|
+
AdminConversationsConvertToPrivateErrorSchemaException))
|
|
63
|
+
.execute
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Create a public or private channel-based conversation.
|
|
67
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
68
|
+
# scope: `admin.conversations:write`
|
|
69
|
+
# @param [String] name Required parameter: Name of the public or private
|
|
70
|
+
# channel to create.
|
|
71
|
+
# @param [TrueClass | FalseClass] is_private Required parameter: When
|
|
72
|
+
# `true`, creates a private channel instead of a public channel
|
|
73
|
+
# @param [String] description Optional parameter: Description of the public
|
|
74
|
+
# or private channel to create.
|
|
75
|
+
# @param [TrueClass | FalseClass] org_wide Optional parameter: When `true`,
|
|
76
|
+
# the channel will be available org-wide. Note: if the channel is not
|
|
77
|
+
# `org_wide=true`, you must specify a `team_id` for this channel
|
|
78
|
+
# @param [String] team_id Optional parameter: The workspace to create the
|
|
79
|
+
# channel in. Note: this argument is required unless you set
|
|
80
|
+
# `org_wide=true`.
|
|
81
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
82
|
+
def admin_conversations_create(token,
|
|
83
|
+
name,
|
|
84
|
+
is_private,
|
|
85
|
+
description: nil,
|
|
86
|
+
org_wide: nil,
|
|
87
|
+
team_id: nil)
|
|
88
|
+
@api_call
|
|
89
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
90
|
+
'/admin.conversations.create',
|
|
91
|
+
Server::DEFAULT)
|
|
92
|
+
.header_param(new_parameter(token, key: 'token')
|
|
93
|
+
.is_required(true))
|
|
94
|
+
.form_param(new_parameter(name, key: 'name')
|
|
95
|
+
.is_required(true))
|
|
96
|
+
.form_param(new_parameter(is_private, key: 'is_private')
|
|
97
|
+
.is_required(true))
|
|
98
|
+
.form_param(new_parameter(description, key: 'description'))
|
|
99
|
+
.form_param(new_parameter(org_wide, key: 'org_wide'))
|
|
100
|
+
.form_param(new_parameter(team_id, key: 'team_id'))
|
|
101
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
102
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
103
|
+
.auth(Single.new('slackAuth')))
|
|
104
|
+
.response(new_response_handler
|
|
105
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
106
|
+
.deserialize_into(AdminConversationsCreateSchema.method(:from_hash))
|
|
107
|
+
.is_api_response(true)
|
|
108
|
+
.local_error('default',
|
|
109
|
+
'Typical error response',
|
|
110
|
+
AdminConversationsCreateErrorSchemaException))
|
|
111
|
+
.execute
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Delete a public or private channel.
|
|
115
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
116
|
+
# scope: `admin.conversations:write`
|
|
117
|
+
# @param [String] channel_id Required parameter: The channel to delete.
|
|
118
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
119
|
+
def admin_conversations_delete(token,
|
|
120
|
+
channel_id)
|
|
121
|
+
@api_call
|
|
122
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
123
|
+
'/admin.conversations.delete',
|
|
124
|
+
Server::DEFAULT)
|
|
125
|
+
.header_param(new_parameter(token, key: 'token')
|
|
126
|
+
.is_required(true))
|
|
127
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
128
|
+
.is_required(true))
|
|
129
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
130
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
131
|
+
.auth(Single.new('slackAuth')))
|
|
132
|
+
.response(new_response_handler
|
|
133
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
134
|
+
.deserialize_into(AdminConversationsDeleteSchema.method(:from_hash))
|
|
135
|
+
.is_api_response(true)
|
|
136
|
+
.local_error('default',
|
|
137
|
+
'Typical error response',
|
|
138
|
+
AdminConversationsDeleteErrorSchemaException))
|
|
139
|
+
.execute
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Disconnect a connected channel from one or more workspaces.
|
|
143
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
144
|
+
# scope: `admin.conversations:write`
|
|
145
|
+
# @param [String] channel_id Required parameter: The channel to be
|
|
146
|
+
# disconnected from some workspaces.
|
|
147
|
+
# @param [String] leaving_team_ids Optional parameter: The team to be
|
|
148
|
+
# removed from the channel. Currently only a single team id can be
|
|
149
|
+
# specified.
|
|
150
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
151
|
+
def admin_conversations_disconnect_shared(token,
|
|
152
|
+
channel_id,
|
|
153
|
+
leaving_team_ids: nil)
|
|
154
|
+
@api_call
|
|
155
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
156
|
+
'/admin.conversations.disconnectShared',
|
|
157
|
+
Server::DEFAULT)
|
|
158
|
+
.header_param(new_parameter(token, key: 'token')
|
|
159
|
+
.is_required(true))
|
|
160
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
161
|
+
.is_required(true))
|
|
162
|
+
.form_param(new_parameter(leaving_team_ids, key: 'leaving_team_ids'))
|
|
163
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
164
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
165
|
+
.auth(Single.new('slackAuth')))
|
|
166
|
+
.response(new_response_handler
|
|
167
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
168
|
+
.deserialize_into(AdminConversationsRenameSchema.method(:from_hash))
|
|
169
|
+
.is_api_response(true)
|
|
170
|
+
.local_error('default',
|
|
171
|
+
'Typical error response',
|
|
172
|
+
AdminConversationsDisconnectSharedErrorSchemaException))
|
|
173
|
+
.execute
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Get conversation preferences for a public or private channel.
|
|
177
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
178
|
+
# scope: `admin.conversations:read`
|
|
179
|
+
# @param [String] channel_id Required parameter: The channel to get
|
|
180
|
+
# preferences for.
|
|
181
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
182
|
+
def admin_conversations_get_conversation_prefs(token,
|
|
183
|
+
channel_id)
|
|
184
|
+
@api_call
|
|
185
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
186
|
+
'/admin.conversations.getConversationPrefs',
|
|
187
|
+
Server::DEFAULT)
|
|
188
|
+
.header_param(new_parameter(token, key: 'token')
|
|
189
|
+
.is_required(true))
|
|
190
|
+
.query_param(new_parameter(channel_id, key: 'channel_id')
|
|
191
|
+
.is_required(true))
|
|
192
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
193
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
194
|
+
.auth(Single.new('slackAuth')))
|
|
195
|
+
.response(new_response_handler
|
|
196
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
197
|
+
.deserialize_into(AdminConversationsGetConversationPrefsSchema.method(:from_hash))
|
|
198
|
+
.is_api_response(true)
|
|
199
|
+
.local_error('default',
|
|
200
|
+
'Typical error response',
|
|
201
|
+
AdminConversationsUnarchiveErrorSchemaException))
|
|
202
|
+
.execute
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Get all the workspaces a given public or private channel is connected to
|
|
206
|
+
# within this Enterprise org.
|
|
207
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
208
|
+
# scope: `admin.conversations:read`
|
|
209
|
+
# @param [String] channel_id Required parameter: The channel to determine
|
|
210
|
+
# connected workspaces within the organization for.
|
|
211
|
+
# @param [String] cursor Optional parameter: Set `cursor` to `next_cursor`
|
|
212
|
+
# returned by the previous call to list items in the next page
|
|
213
|
+
# @param [Integer] limit Optional parameter: The maximum number of items to
|
|
214
|
+
# return. Must be between 1 - 1000 both inclusive.
|
|
215
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
216
|
+
def admin_conversations_get_teams(token,
|
|
217
|
+
channel_id,
|
|
218
|
+
cursor: nil,
|
|
219
|
+
limit: nil)
|
|
220
|
+
@api_call
|
|
221
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
222
|
+
'/admin.conversations.getTeams',
|
|
223
|
+
Server::DEFAULT)
|
|
224
|
+
.header_param(new_parameter(token, key: 'token')
|
|
225
|
+
.is_required(true))
|
|
226
|
+
.query_param(new_parameter(channel_id, key: 'channel_id')
|
|
227
|
+
.is_required(true))
|
|
228
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
229
|
+
.query_param(new_parameter(cursor, key: 'cursor'))
|
|
230
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
231
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
232
|
+
.auth(Single.new('slackAuth')))
|
|
233
|
+
.response(new_response_handler
|
|
234
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
235
|
+
.deserialize_into(AdminConversationsGetTeamsSchema.method(:from_hash))
|
|
236
|
+
.is_api_response(true)
|
|
237
|
+
.local_error('default',
|
|
238
|
+
'Typical error response',
|
|
239
|
+
AdminConversationsGetTeamsErrorSchemaException))
|
|
240
|
+
.execute
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Invite a user to a public or private channel.
|
|
244
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
245
|
+
# scope: `admin.conversations:write`
|
|
246
|
+
# @param [String] user_ids Required parameter: The users to invite.
|
|
247
|
+
# @param [String] channel_id Required parameter: The channel that the users
|
|
248
|
+
# will be invited to.
|
|
249
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
250
|
+
def admin_conversations_invite(token,
|
|
251
|
+
user_ids,
|
|
252
|
+
channel_id)
|
|
253
|
+
@api_call
|
|
254
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
255
|
+
'/admin.conversations.invite',
|
|
256
|
+
Server::DEFAULT)
|
|
257
|
+
.header_param(new_parameter(token, key: 'token')
|
|
258
|
+
.is_required(true))
|
|
259
|
+
.form_param(new_parameter(user_ids, key: 'user_ids')
|
|
260
|
+
.is_required(true))
|
|
261
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
262
|
+
.is_required(true))
|
|
263
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
264
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
265
|
+
.auth(Single.new('slackAuth')))
|
|
266
|
+
.response(new_response_handler
|
|
267
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
268
|
+
.deserialize_into(AdminConversationsInviteSchema.method(:from_hash))
|
|
269
|
+
.is_api_response(true)
|
|
270
|
+
.local_error('default',
|
|
271
|
+
'Typical error response',
|
|
272
|
+
AdminConversationsInviteErrorSchemaException))
|
|
273
|
+
.execute
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Rename a public or private channel.
|
|
277
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
278
|
+
# scope: `admin.conversations:write`
|
|
279
|
+
# @param [String] channel_id Required parameter: The channel to rename.
|
|
280
|
+
# @param [String] name Required parameter: TODO: type description here
|
|
281
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
282
|
+
def admin_conversations_rename(token,
|
|
283
|
+
channel_id,
|
|
284
|
+
name)
|
|
285
|
+
@api_call
|
|
286
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
287
|
+
'/admin.conversations.rename',
|
|
288
|
+
Server::DEFAULT)
|
|
289
|
+
.header_param(new_parameter(token, key: 'token')
|
|
290
|
+
.is_required(true))
|
|
291
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
292
|
+
.is_required(true))
|
|
293
|
+
.form_param(new_parameter(name, key: 'name')
|
|
294
|
+
.is_required(true))
|
|
295
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
296
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
297
|
+
.auth(Single.new('slackAuth')))
|
|
298
|
+
.response(new_response_handler
|
|
299
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
300
|
+
.deserialize_into(AdminConversationsRenameSchema1.method(:from_hash))
|
|
301
|
+
.is_api_response(true)
|
|
302
|
+
.local_error('default',
|
|
303
|
+
'Typical error response',
|
|
304
|
+
AdminConversationsUnarchiveErrorSchema2Exception))
|
|
305
|
+
.execute
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Search for public or private channels in an Enterprise organization.
|
|
309
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
310
|
+
# scope: `admin.conversations:read`
|
|
311
|
+
# @param [String] team_ids Optional parameter: Comma separated string of
|
|
312
|
+
# team IDs, signifying the workspaces to search through.
|
|
313
|
+
# @param [String] query Optional parameter: Name of the the channel to query
|
|
314
|
+
# by.
|
|
315
|
+
# @param [Integer] limit Optional parameter: Maximum number of items to be
|
|
316
|
+
# returned. Must be between 1 - 20 both inclusive. Default is 10.
|
|
317
|
+
# @param [String] cursor Optional parameter: Set `cursor` to `next_cursor`
|
|
318
|
+
# returned by the previous call to list items in the next page.
|
|
319
|
+
# @param [String] search_channel_types Optional parameter: The type of
|
|
320
|
+
# channel to include or exclude in the search. For example `private` will
|
|
321
|
+
# search private channels, while `private_exclude` will exclude them. For a
|
|
322
|
+
# full list of types, check the [Types section](#types).
|
|
323
|
+
# @param [String] sort Optional parameter: Possible values are `relevant`
|
|
324
|
+
# (search ranking based on what we think is closest), `name` (alphabetical),
|
|
325
|
+
# `member_count` (number of users in the channel), and `created` (date
|
|
326
|
+
# channel was created). You can optionally pair this with the `sort_dir` arg
|
|
327
|
+
# to change how it is sorted
|
|
328
|
+
# @param [String] sort_dir Optional parameter: Sort direction. Possible
|
|
329
|
+
# values are `asc` for ascending order like (1, 2, 3) or (a, b, c), and
|
|
330
|
+
# `desc` for descending order like (3, 2, 1) or (c, b, a)
|
|
331
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
332
|
+
def admin_conversations_search(token,
|
|
333
|
+
team_ids: nil,
|
|
334
|
+
query: nil,
|
|
335
|
+
limit: nil,
|
|
336
|
+
cursor: nil,
|
|
337
|
+
search_channel_types: nil,
|
|
338
|
+
sort: nil,
|
|
339
|
+
sort_dir: nil)
|
|
340
|
+
@api_call
|
|
341
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
342
|
+
'/admin.conversations.search',
|
|
343
|
+
Server::DEFAULT)
|
|
344
|
+
.header_param(new_parameter(token, key: 'token')
|
|
345
|
+
.is_required(true))
|
|
346
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
347
|
+
.query_param(new_parameter(team_ids, key: 'team_ids'))
|
|
348
|
+
.query_param(new_parameter(query, key: 'query'))
|
|
349
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
350
|
+
.query_param(new_parameter(cursor, key: 'cursor'))
|
|
351
|
+
.query_param(new_parameter(search_channel_types, key: 'search_channel_types'))
|
|
352
|
+
.query_param(new_parameter(sort, key: 'sort'))
|
|
353
|
+
.query_param(new_parameter(sort_dir, key: 'sort_dir'))
|
|
354
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
355
|
+
.auth(Single.new('slackAuth')))
|
|
356
|
+
.response(new_response_handler
|
|
357
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
358
|
+
.deserialize_into(AdminConversationsSearchSchema.method(:from_hash))
|
|
359
|
+
.is_api_response(true)
|
|
360
|
+
.local_error('default',
|
|
361
|
+
'Typical error response',
|
|
362
|
+
AdminConversationsSearchErrorSchemaException))
|
|
363
|
+
.execute
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Set the posting permissions for a public or private channel.
|
|
367
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
368
|
+
# scope: `admin.conversations:write`
|
|
369
|
+
# @param [String] channel_id Required parameter: The channel to set the
|
|
370
|
+
# prefs for
|
|
371
|
+
# @param [String] prefs Required parameter: The prefs for this channel in a
|
|
372
|
+
# stringified JSON format.
|
|
373
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
374
|
+
def admin_conversations_set_conversation_prefs(token,
|
|
375
|
+
channel_id,
|
|
376
|
+
prefs)
|
|
377
|
+
@api_call
|
|
378
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
379
|
+
'/admin.conversations.setConversationPrefs',
|
|
380
|
+
Server::DEFAULT)
|
|
381
|
+
.header_param(new_parameter(token, key: 'token')
|
|
382
|
+
.is_required(true))
|
|
383
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
384
|
+
.is_required(true))
|
|
385
|
+
.form_param(new_parameter(prefs, key: 'prefs')
|
|
386
|
+
.is_required(true))
|
|
387
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
388
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
389
|
+
.auth(Single.new('slackAuth')))
|
|
390
|
+
.response(new_response_handler
|
|
391
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
392
|
+
.deserialize_into(AdminConversationsSetConversationPrefsSchema.method(:from_hash))
|
|
393
|
+
.is_api_response(true)
|
|
394
|
+
.local_error('default',
|
|
395
|
+
'Typical error response',
|
|
396
|
+
AdminConversationsSetConversationPrefsErrorSchemaException))
|
|
397
|
+
.execute
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Set the workspaces in an Enterprise grid org that connect to a public or
|
|
401
|
+
# private channel.
|
|
402
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
403
|
+
# scope: `admin.conversations:write`
|
|
404
|
+
# @param [String] channel_id Required parameter: The encoded `channel_id` to
|
|
405
|
+
# add or remove to workspaces.
|
|
406
|
+
# @param [String] team_id Optional parameter: The workspace to which the
|
|
407
|
+
# channel belongs. Omit this argument if the channel is a cross-workspace
|
|
408
|
+
# shared channel.
|
|
409
|
+
# @param [String] target_team_ids Optional parameter: A comma-separated list
|
|
410
|
+
# of workspaces to which the channel should be shared. Not required if the
|
|
411
|
+
# channel is being shared org-wide.
|
|
412
|
+
# @param [TrueClass | FalseClass] org_channel Optional parameter: True if
|
|
413
|
+
# channel has to be converted to an org channel
|
|
414
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
415
|
+
def admin_conversations_set_teams(token,
|
|
416
|
+
channel_id,
|
|
417
|
+
team_id: nil,
|
|
418
|
+
target_team_ids: nil,
|
|
419
|
+
org_channel: nil)
|
|
420
|
+
@api_call
|
|
421
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
422
|
+
'/admin.conversations.setTeams',
|
|
423
|
+
Server::DEFAULT)
|
|
424
|
+
.header_param(new_parameter(token, key: 'token')
|
|
425
|
+
.is_required(true))
|
|
426
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
427
|
+
.is_required(true))
|
|
428
|
+
.form_param(new_parameter(team_id, key: 'team_id'))
|
|
429
|
+
.form_param(new_parameter(target_team_ids, key: 'target_team_ids'))
|
|
430
|
+
.form_param(new_parameter(org_channel, key: 'org_channel'))
|
|
431
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
432
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
433
|
+
.auth(Single.new('slackAuth')))
|
|
434
|
+
.response(new_response_handler
|
|
435
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
436
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
437
|
+
.is_api_response(true)
|
|
438
|
+
.local_error('default',
|
|
439
|
+
'Typical error response',
|
|
440
|
+
DefaultErrorTemplateException))
|
|
441
|
+
.execute
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Unarchive a public or private channel.
|
|
445
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
446
|
+
# scope: `admin.conversations:write`
|
|
447
|
+
# @param [String] channel_id Required parameter: The channel to unarchive.
|
|
448
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
449
|
+
def admin_conversations_unarchive(token,
|
|
450
|
+
channel_id)
|
|
451
|
+
@api_call
|
|
452
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
453
|
+
'/admin.conversations.unarchive',
|
|
454
|
+
Server::DEFAULT)
|
|
455
|
+
.header_param(new_parameter(token, key: 'token')
|
|
456
|
+
.is_required(true))
|
|
457
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
458
|
+
.is_required(true))
|
|
459
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
460
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
461
|
+
.auth(Single.new('slackAuth')))
|
|
462
|
+
.response(new_response_handler
|
|
463
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
464
|
+
.deserialize_into(AdminConversationsUnarchiveSchema.method(:from_hash))
|
|
465
|
+
.is_api_response(true)
|
|
466
|
+
.local_error('default',
|
|
467
|
+
'Typical error response',
|
|
468
|
+
AdminConversationsUnarchiveErrorSchema3Exception))
|
|
469
|
+
.execute
|
|
470
|
+
end
|
|
471
|
+
end
|
|
472
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
# AdminConversationsEkmApi
|
|
8
|
+
class AdminConversationsEkmApi < BaseApi
|
|
9
|
+
# List all disconnected channels—i.e., channels that were once connected to
|
|
10
|
+
# other workspaces and then disconnected—and the corresponding original
|
|
11
|
+
# channel IDs for key revocation with EKM.
|
|
12
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
13
|
+
# scope: `admin.conversations:read`
|
|
14
|
+
# @param [String] channel_ids Optional parameter: A comma-separated list of
|
|
15
|
+
# channels to filter to.
|
|
16
|
+
# @param [String] team_ids Optional parameter: A comma-separated list of the
|
|
17
|
+
# workspaces to which the channels you would like returned belong.
|
|
18
|
+
# @param [Integer] limit Optional parameter: The maximum number of items to
|
|
19
|
+
# return. Must be between 1 - 1000 both inclusive.
|
|
20
|
+
# @param [String] cursor Optional parameter: Set `cursor` to `next_cursor`
|
|
21
|
+
# returned by the previous call to list items in the next page.
|
|
22
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
23
|
+
def admin_conversations_ekm_list_original_connected_channel_info(token,
|
|
24
|
+
channel_ids: nil,
|
|
25
|
+
team_ids: nil,
|
|
26
|
+
limit: nil,
|
|
27
|
+
cursor: nil)
|
|
28
|
+
@api_call
|
|
29
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
30
|
+
'/admin.conversations.ekm.listOriginalConnectedChannelInfo',
|
|
31
|
+
Server::DEFAULT)
|
|
32
|
+
.query_param(new_parameter(token, key: 'token')
|
|
33
|
+
.is_required(true))
|
|
34
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
35
|
+
.query_param(new_parameter(channel_ids, key: 'channel_ids'))
|
|
36
|
+
.query_param(new_parameter(team_ids, key: 'team_ids'))
|
|
37
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
38
|
+
.query_param(new_parameter(cursor, key: 'cursor'))
|
|
39
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
40
|
+
.auth(Single.new('slackAuth')))
|
|
41
|
+
.response(new_response_handler
|
|
42
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
43
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
44
|
+
.is_api_response(true)
|
|
45
|
+
.local_error('default',
|
|
46
|
+
'Typical error response',
|
|
47
|
+
DefaultErrorTemplateException))
|
|
48
|
+
.execute
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
# AdminConversationsRestrictAccessApi
|
|
8
|
+
class AdminConversationsRestrictAccessApi < BaseApi
|
|
9
|
+
# Add an allowlist of IDP groups for accessing a channel
|
|
10
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
11
|
+
# scope: `admin.conversations:write`
|
|
12
|
+
# @param [String] group_id Required parameter: The [IDP
|
|
13
|
+
# Group](https://slack.com/help/articles/115001435788-Connect-identity-provi
|
|
14
|
+
# der-groups-to-your-Enterprise-Grid-org) ID to be an allowlist for the
|
|
15
|
+
# private channel.
|
|
16
|
+
# @param [String] channel_id Required parameter: The channel to link this
|
|
17
|
+
# group to.
|
|
18
|
+
# @param [String] team_id Optional parameter: The workspace where the
|
|
19
|
+
# channel exists. This argument is required for channels only tied to one
|
|
20
|
+
# workspace, and optional for channels that are shared across an
|
|
21
|
+
# organization.
|
|
22
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
23
|
+
def admin_conversations_restrict_access_add_group(token,
|
|
24
|
+
group_id,
|
|
25
|
+
channel_id,
|
|
26
|
+
team_id: nil)
|
|
27
|
+
@api_call
|
|
28
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
29
|
+
'/admin.conversations.restrictAccess.addGroup',
|
|
30
|
+
Server::DEFAULT)
|
|
31
|
+
.form_param(new_parameter(token, key: 'token')
|
|
32
|
+
.is_required(true))
|
|
33
|
+
.form_param(new_parameter(group_id, key: 'group_id')
|
|
34
|
+
.is_required(true))
|
|
35
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
36
|
+
.is_required(true))
|
|
37
|
+
.form_param(new_parameter(team_id, key: 'team_id'))
|
|
38
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
39
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
40
|
+
.auth(Single.new('slackAuth')))
|
|
41
|
+
.response(new_response_handler
|
|
42
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
43
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
44
|
+
.is_api_response(true)
|
|
45
|
+
.local_error('default',
|
|
46
|
+
'Typical error response',
|
|
47
|
+
DefaultErrorTemplateException))
|
|
48
|
+
.execute
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List all IDP Groups linked to a channel
|
|
52
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
53
|
+
# scope: `admin.conversations:read`
|
|
54
|
+
# @param [String] channel_id Required parameter: TODO: type description
|
|
55
|
+
# here
|
|
56
|
+
# @param [String] team_id Optional parameter: The workspace where the
|
|
57
|
+
# channel exists. This argument is required for channels only tied to one
|
|
58
|
+
# workspace, and optional for channels that are shared across an
|
|
59
|
+
# organization.
|
|
60
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
61
|
+
def admin_conversations_restrict_access_list_groups(token,
|
|
62
|
+
channel_id,
|
|
63
|
+
team_id: nil)
|
|
64
|
+
@api_call
|
|
65
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
66
|
+
'/admin.conversations.restrictAccess.listGroups',
|
|
67
|
+
Server::DEFAULT)
|
|
68
|
+
.query_param(new_parameter(token, key: 'token')
|
|
69
|
+
.is_required(true))
|
|
70
|
+
.query_param(new_parameter(channel_id, key: 'channel_id')
|
|
71
|
+
.is_required(true))
|
|
72
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type'))
|
|
73
|
+
.query_param(new_parameter(team_id, key: 'team_id'))
|
|
74
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
75
|
+
.auth(Single.new('slackAuth')))
|
|
76
|
+
.response(new_response_handler
|
|
77
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
78
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
79
|
+
.is_api_response(true)
|
|
80
|
+
.local_error('default',
|
|
81
|
+
'Typical error response',
|
|
82
|
+
DefaultErrorTemplateException))
|
|
83
|
+
.execute
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Remove a linked IDP group linked from a private channel
|
|
87
|
+
# @param [String] token Required parameter: Authentication token. Requires
|
|
88
|
+
# scope: `admin.conversations:write`
|
|
89
|
+
# @param [String] team_id Required parameter: The workspace where the
|
|
90
|
+
# channel exists. This argument is required for channels only tied to one
|
|
91
|
+
# workspace, and optional for channels that are shared across an
|
|
92
|
+
# organization.
|
|
93
|
+
# @param [String] group_id Required parameter: The [IDP
|
|
94
|
+
# Group](https://slack.com/help/articles/115001435788-Connect-identity-provi
|
|
95
|
+
# der-groups-to-your-Enterprise-Grid-org) ID to remove from the private
|
|
96
|
+
# channel.
|
|
97
|
+
# @param [String] channel_id Required parameter: The channel to remove the
|
|
98
|
+
# linked group from.
|
|
99
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
100
|
+
def admin_conversations_restrict_access_remove_group(token,
|
|
101
|
+
team_id,
|
|
102
|
+
group_id,
|
|
103
|
+
channel_id)
|
|
104
|
+
@api_call
|
|
105
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
106
|
+
'/admin.conversations.restrictAccess.removeGroup',
|
|
107
|
+
Server::DEFAULT)
|
|
108
|
+
.form_param(new_parameter(token, key: 'token')
|
|
109
|
+
.is_required(true))
|
|
110
|
+
.form_param(new_parameter(team_id, key: 'team_id')
|
|
111
|
+
.is_required(true))
|
|
112
|
+
.form_param(new_parameter(group_id, key: 'group_id')
|
|
113
|
+
.is_required(true))
|
|
114
|
+
.form_param(new_parameter(channel_id, key: 'channel_id')
|
|
115
|
+
.is_required(true))
|
|
116
|
+
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
117
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
118
|
+
.auth(Single.new('slackAuth')))
|
|
119
|
+
.response(new_response_handler
|
|
120
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
121
|
+
.deserialize_into(DefaultSuccessTemplate.method(:from_hash))
|
|
122
|
+
.is_api_response(true)
|
|
123
|
+
.local_error('default',
|
|
124
|
+
'Typical error response',
|
|
125
|
+
DefaultErrorTemplateException))
|
|
126
|
+
.execute
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|