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,94 @@
|
|
|
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
|
+
# ResourcesInInfoFromAppsPermissionsInfo Model.
|
|
8
|
+
class ResourcesInInfoFromAppsPermissionsInfo < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[Object]]
|
|
14
|
+
attr_accessor :excluded_ids
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Array[Object]]
|
|
18
|
+
attr_accessor :ids
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass | FalseClass]
|
|
22
|
+
attr_accessor :wildcard
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['excluded_ids'] = 'excluded_ids'
|
|
28
|
+
@_hash['ids'] = 'ids'
|
|
29
|
+
@_hash['wildcard'] = 'wildcard'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
excluded_ids
|
|
37
|
+
wildcard
|
|
38
|
+
]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# An array for nullable fields
|
|
42
|
+
def self.nullables
|
|
43
|
+
[]
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def initialize(ids:, excluded_ids: SKIP, wildcard: SKIP,
|
|
47
|
+
additional_properties: nil)
|
|
48
|
+
# Add additional model properties to the instance
|
|
49
|
+
additional_properties = {} if additional_properties.nil?
|
|
50
|
+
|
|
51
|
+
@excluded_ids = excluded_ids unless excluded_ids == SKIP
|
|
52
|
+
@ids = ids
|
|
53
|
+
@wildcard = wildcard unless wildcard == SKIP
|
|
54
|
+
@additional_properties = additional_properties
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Creates an instance of the object from a hash.
|
|
58
|
+
def self.from_hash(hash)
|
|
59
|
+
return nil unless hash
|
|
60
|
+
|
|
61
|
+
# Extract variables from the hash.
|
|
62
|
+
ids = hash.key?('ids') ? hash['ids'] : nil
|
|
63
|
+
excluded_ids = hash.key?('excluded_ids') ? hash['excluded_ids'] : SKIP
|
|
64
|
+
wildcard = hash.key?('wildcard') ? hash['wildcard'] : SKIP
|
|
65
|
+
|
|
66
|
+
# Create a new hash for additional properties, removing known properties.
|
|
67
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
68
|
+
|
|
69
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
70
|
+
new_hash, proc { |value| value }
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
# Create object from extracted values.
|
|
74
|
+
ResourcesInInfoFromAppsPermissionsInfo.new(ids: ids,
|
|
75
|
+
excluded_ids: excluded_ids,
|
|
76
|
+
wildcard: wildcard,
|
|
77
|
+
additional_properties: additional_properties)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a human-readable string representation of the object.
|
|
81
|
+
def to_s
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} excluded_ids: #{@excluded_ids}, ids: #{@ids}, wildcard: #{@wildcard},"\
|
|
84
|
+
" additional_properties: #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
88
|
+
def inspect
|
|
89
|
+
class_name = self.class.name.split('::').last
|
|
90
|
+
"<#{class_name} excluded_ids: #{@excluded_ids.inspect}, ids: #{@ids.inspect}, wildcard:"\
|
|
91
|
+
" #{@wildcard.inspect}, additional_properties: #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
# ResponseMetadata Model.
|
|
8
|
+
class ResponseMetadata < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :next_cursor
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['next_cursor'] = 'next_cursor'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
[]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for nullable fields
|
|
29
|
+
def self.nullables
|
|
30
|
+
[]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def initialize(next_cursor:, additional_properties: nil)
|
|
34
|
+
# Add additional model properties to the instance
|
|
35
|
+
additional_properties = {} if additional_properties.nil?
|
|
36
|
+
|
|
37
|
+
@next_cursor = next_cursor
|
|
38
|
+
@additional_properties = additional_properties
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Creates an instance of the object from a hash.
|
|
42
|
+
def self.from_hash(hash)
|
|
43
|
+
return nil unless hash
|
|
44
|
+
|
|
45
|
+
# Extract variables from the hash.
|
|
46
|
+
next_cursor = hash.key?('next_cursor') ? hash['next_cursor'] : nil
|
|
47
|
+
|
|
48
|
+
# Create a new hash for additional properties, removing known properties.
|
|
49
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
50
|
+
|
|
51
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
52
|
+
new_hash, proc { |value| value }
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
# Create object from extracted values.
|
|
56
|
+
ResponseMetadata.new(next_cursor: next_cursor,
|
|
57
|
+
additional_properties: additional_properties)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Provides a human-readable string representation of the object.
|
|
61
|
+
def to_s
|
|
62
|
+
class_name = self.class.name.split('::').last
|
|
63
|
+
"<#{class_name} next_cursor: #{@next_cursor}, additional_properties:"\
|
|
64
|
+
" #{@additional_properties}>"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
68
|
+
def inspect
|
|
69
|
+
class_name = self.class.name.split('::').last
|
|
70
|
+
"<#{class_name} next_cursor: #{@next_cursor.inspect}, additional_properties:"\
|
|
71
|
+
" #{@additional_properties}>"
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
# ResponseMetadata3 Model.
|
|
8
|
+
class ResponseMetadata3 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[String]]
|
|
14
|
+
attr_accessor :warnings
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['warnings'] = 'warnings'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
warnings
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(warnings: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@warnings = warnings unless warnings == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
warnings = hash.key?('warnings') ? hash['warnings'] : SKIP
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
ResponseMetadata3.new(warnings: warnings,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} warnings: #{@warnings}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} warnings: #{@warnings.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
# RtmConnectErrorEnum.
|
|
8
|
+
class RtmConnectErrorEnum
|
|
9
|
+
RTM_CONNECT_ERROR_ENUM = [
|
|
10
|
+
# TODO: Write general description for NOT_AUTHED
|
|
11
|
+
NOT_AUTHED = 'not_authed'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for INVALID_AUTH
|
|
14
|
+
INVALID_AUTH = 'invalid_auth'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ACCOUNT_INACTIVE
|
|
17
|
+
ACCOUNT_INACTIVE = 'account_inactive'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for TOKEN_REVOKED
|
|
20
|
+
TOKEN_REVOKED = 'token_revoked'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for NO_PERMISSION
|
|
23
|
+
NO_PERMISSION = 'no_permission'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for INVALID_ARG_NAME
|
|
26
|
+
INVALID_ARG_NAME = 'invalid_arg_name'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for INVALID_ARRAY_ARG
|
|
29
|
+
INVALID_ARRAY_ARG = 'invalid_array_arg'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for INVALID_CHARSET
|
|
32
|
+
INVALID_CHARSET = 'invalid_charset'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for INVALID_FORM_DATA
|
|
35
|
+
INVALID_FORM_DATA = 'invalid_form_data'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for INVALID_POST_TYPE
|
|
38
|
+
INVALID_POST_TYPE = 'invalid_post_type'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for MISSING_POST_TYPE
|
|
41
|
+
MISSING_POST_TYPE = 'missing_post_type'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for TEAM_ADDED_TO_ORG
|
|
44
|
+
TEAM_ADDED_TO_ORG = 'team_added_to_org'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for INVALID_JSON
|
|
47
|
+
INVALID_JSON = 'invalid_json'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for JSON_NOT_OBJECT
|
|
50
|
+
JSON_NOT_OBJECT = 'json_not_object'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for REQUEST_TIMEOUT
|
|
53
|
+
REQUEST_TIMEOUT = 'request_timeout'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for UPGRADE_REQUIRED
|
|
56
|
+
UPGRADE_REQUIRED = 'upgrade_required'.freeze,
|
|
57
|
+
|
|
58
|
+
# TODO: Write general description for FATAL_ERROR
|
|
59
|
+
FATAL_ERROR = 'fatal_error'.freeze
|
|
60
|
+
].freeze
|
|
61
|
+
|
|
62
|
+
def self.validate(value)
|
|
63
|
+
return false if value.nil?
|
|
64
|
+
|
|
65
|
+
RTM_CONNECT_ERROR_ENUM.include?(value)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def self.from_value(value, default_value = NOT_AUTHED)
|
|
69
|
+
return default_value if value.nil?
|
|
70
|
+
|
|
71
|
+
str = value.to_s.strip
|
|
72
|
+
|
|
73
|
+
case str.downcase
|
|
74
|
+
when 'not_authed' then NOT_AUTHED
|
|
75
|
+
when 'invalid_auth' then INVALID_AUTH
|
|
76
|
+
when 'account_inactive' then ACCOUNT_INACTIVE
|
|
77
|
+
when 'token_revoked' then TOKEN_REVOKED
|
|
78
|
+
when 'no_permission' then NO_PERMISSION
|
|
79
|
+
when 'invalid_arg_name' then INVALID_ARG_NAME
|
|
80
|
+
when 'invalid_array_arg' then INVALID_ARRAY_ARG
|
|
81
|
+
when 'invalid_charset' then INVALID_CHARSET
|
|
82
|
+
when 'invalid_form_data' then INVALID_FORM_DATA
|
|
83
|
+
when 'invalid_post_type' then INVALID_POST_TYPE
|
|
84
|
+
when 'missing_post_type' then MISSING_POST_TYPE
|
|
85
|
+
when 'team_added_to_org' then TEAM_ADDED_TO_ORG
|
|
86
|
+
when 'invalid_json' then INVALID_JSON
|
|
87
|
+
when 'json_not_object' then JSON_NOT_OBJECT
|
|
88
|
+
when 'request_timeout' then REQUEST_TIMEOUT
|
|
89
|
+
when 'upgrade_required' then UPGRADE_REQUIRED
|
|
90
|
+
when 'fatal_error' then FATAL_ERROR
|
|
91
|
+
else
|
|
92
|
+
default_value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# slack_web_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module SlackWebApi
|
|
7
|
+
# Schema for successful response from rtm.connect method
|
|
8
|
+
class RtmConnectSchema < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_reader :ok
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Self]
|
|
18
|
+
attr_accessor :mself
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Team1]
|
|
22
|
+
attr_accessor :team
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :url
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['ok'] = 'ok'
|
|
32
|
+
@_hash['mself'] = 'self'
|
|
33
|
+
@_hash['team'] = 'team'
|
|
34
|
+
@_hash['url'] = 'url'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for nullable fields
|
|
44
|
+
def self.nullables
|
|
45
|
+
[]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def initialize(mself:, team:, url:, additional_properties: nil)
|
|
49
|
+
# Add additional model properties to the instance
|
|
50
|
+
additional_properties = {} if additional_properties.nil?
|
|
51
|
+
|
|
52
|
+
@ok = 'True'
|
|
53
|
+
@mself = mself
|
|
54
|
+
@team = team
|
|
55
|
+
@url = url
|
|
56
|
+
@additional_properties = additional_properties
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Creates an instance of the object from a hash.
|
|
60
|
+
def self.from_hash(hash)
|
|
61
|
+
return nil unless hash
|
|
62
|
+
|
|
63
|
+
# Extract variables from the hash.
|
|
64
|
+
mself = Self.from_hash(hash['self']) if hash['self']
|
|
65
|
+
team = Team1.from_hash(hash['team']) if hash['team']
|
|
66
|
+
url = hash.key?('url') ? hash['url'] : nil
|
|
67
|
+
|
|
68
|
+
# Create a new hash for additional properties, removing known properties.
|
|
69
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
70
|
+
|
|
71
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
72
|
+
new_hash, proc { |value| value }
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
# Create object from extracted values.
|
|
76
|
+
RtmConnectSchema.new(mself: mself,
|
|
77
|
+
team: team,
|
|
78
|
+
url: url,
|
|
79
|
+
additional_properties: additional_properties)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Provides a human-readable string representation of the object.
|
|
83
|
+
def to_s
|
|
84
|
+
class_name = self.class.name.split('::').last
|
|
85
|
+
"<#{class_name} ok: #{@ok}, mself: #{@mself}, team: #{@team}, url: #{@url},"\
|
|
86
|
+
" additional_properties: #{@additional_properties}>"
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
90
|
+
def inspect
|
|
91
|
+
class_name = self.class.name.split('::').last
|
|
92
|
+
"<#{class_name} ok: #{@ok.inspect}, mself: #{@mself.inspect}, team: #{@team.inspect}, url:"\
|
|
93
|
+
" #{@url.inspect}, additional_properties: #{@additional_properties}>"
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
# ScheduledMessage Model.
|
|
8
|
+
class ScheduledMessage < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :channel_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :date_created
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :id
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
attr_accessor :post_at
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :text
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['channel_id'] = 'channel_id'
|
|
36
|
+
@_hash['date_created'] = 'date_created'
|
|
37
|
+
@_hash['id'] = 'id'
|
|
38
|
+
@_hash['post_at'] = 'post_at'
|
|
39
|
+
@_hash['text'] = 'text'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
text
|
|
47
|
+
]
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# An array for nullable fields
|
|
51
|
+
def self.nullables
|
|
52
|
+
[]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def initialize(channel_id:, date_created:, id:, post_at:, text: SKIP,
|
|
56
|
+
additional_properties: nil)
|
|
57
|
+
# Add additional model properties to the instance
|
|
58
|
+
additional_properties = {} if additional_properties.nil?
|
|
59
|
+
|
|
60
|
+
@channel_id = channel_id
|
|
61
|
+
@date_created = date_created
|
|
62
|
+
@id = id
|
|
63
|
+
@post_at = post_at
|
|
64
|
+
@text = text unless text == SKIP
|
|
65
|
+
@additional_properties = additional_properties
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Creates an instance of the object from a hash.
|
|
69
|
+
def self.from_hash(hash)
|
|
70
|
+
return nil unless hash
|
|
71
|
+
|
|
72
|
+
# Extract variables from the hash.
|
|
73
|
+
channel_id = hash.key?('channel_id') ? hash['channel_id'] : nil
|
|
74
|
+
date_created = hash.key?('date_created') ? hash['date_created'] : nil
|
|
75
|
+
id = hash.key?('id') ? hash['id'] : nil
|
|
76
|
+
post_at = hash.key?('post_at') ? hash['post_at'] : nil
|
|
77
|
+
text = hash.key?('text') ? hash['text'] : SKIP
|
|
78
|
+
|
|
79
|
+
# Create a new hash for additional properties, removing known properties.
|
|
80
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
81
|
+
|
|
82
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
83
|
+
new_hash, proc { |value| value }
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
# Create object from extracted values.
|
|
87
|
+
ScheduledMessage.new(channel_id: channel_id,
|
|
88
|
+
date_created: date_created,
|
|
89
|
+
id: id,
|
|
90
|
+
post_at: post_at,
|
|
91
|
+
text: text,
|
|
92
|
+
additional_properties: additional_properties)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Provides a human-readable string representation of the object.
|
|
96
|
+
def to_s
|
|
97
|
+
class_name = self.class.name.split('::').last
|
|
98
|
+
"<#{class_name} channel_id: #{@channel_id}, date_created: #{@date_created}, id: #{@id},"\
|
|
99
|
+
" post_at: #{@post_at}, text: #{@text}, additional_properties: #{@additional_properties}>"
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
103
|
+
def inspect
|
|
104
|
+
class_name = self.class.name.split('::').last
|
|
105
|
+
"<#{class_name} channel_id: #{@channel_id.inspect}, date_created: #{@date_created.inspect},"\
|
|
106
|
+
" id: #{@id.inspect}, post_at: #{@post_at.inspect}, text: #{@text.inspect},"\
|
|
107
|
+
" additional_properties: #{@additional_properties}>"
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
@@ -0,0 +1,134 @@
|
|
|
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
|
+
# Scopes Model.
|
|
8
|
+
class Scopes < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[String]]
|
|
14
|
+
attr_accessor :app_home
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Array[String]]
|
|
18
|
+
attr_accessor :channel
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Array[String]]
|
|
22
|
+
attr_accessor :group
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Array[String]]
|
|
26
|
+
attr_accessor :im
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [Array[String]]
|
|
30
|
+
attr_accessor :mpim
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [Array[String]]
|
|
34
|
+
attr_accessor :team
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [Array[String]]
|
|
38
|
+
attr_accessor :user
|
|
39
|
+
|
|
40
|
+
# A mapping from model property names to API property names.
|
|
41
|
+
def self.names
|
|
42
|
+
@_hash = {} if @_hash.nil?
|
|
43
|
+
@_hash['app_home'] = 'app_home'
|
|
44
|
+
@_hash['channel'] = 'channel'
|
|
45
|
+
@_hash['group'] = 'group'
|
|
46
|
+
@_hash['im'] = 'im'
|
|
47
|
+
@_hash['mpim'] = 'mpim'
|
|
48
|
+
@_hash['team'] = 'team'
|
|
49
|
+
@_hash['user'] = 'user'
|
|
50
|
+
@_hash
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# An array for optional fields
|
|
54
|
+
def self.optionals
|
|
55
|
+
%w[
|
|
56
|
+
app_home
|
|
57
|
+
channel
|
|
58
|
+
group
|
|
59
|
+
im
|
|
60
|
+
mpim
|
|
61
|
+
team
|
|
62
|
+
user
|
|
63
|
+
]
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# An array for nullable fields
|
|
67
|
+
def self.nullables
|
|
68
|
+
[]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def initialize(app_home: SKIP, channel: SKIP, group: SKIP, im: SKIP,
|
|
72
|
+
mpim: SKIP, team: SKIP, user: SKIP,
|
|
73
|
+
additional_properties: nil)
|
|
74
|
+
# Add additional model properties to the instance
|
|
75
|
+
additional_properties = {} if additional_properties.nil?
|
|
76
|
+
|
|
77
|
+
@app_home = app_home unless app_home == SKIP
|
|
78
|
+
@channel = channel unless channel == SKIP
|
|
79
|
+
@group = group unless group == SKIP
|
|
80
|
+
@im = im unless im == SKIP
|
|
81
|
+
@mpim = mpim unless mpim == SKIP
|
|
82
|
+
@team = team unless team == SKIP
|
|
83
|
+
@user = user unless user == SKIP
|
|
84
|
+
@additional_properties = additional_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Creates an instance of the object from a hash.
|
|
88
|
+
def self.from_hash(hash)
|
|
89
|
+
return nil unless hash
|
|
90
|
+
|
|
91
|
+
# Extract variables from the hash.
|
|
92
|
+
app_home = hash.key?('app_home') ? hash['app_home'] : SKIP
|
|
93
|
+
channel = hash.key?('channel') ? hash['channel'] : SKIP
|
|
94
|
+
group = hash.key?('group') ? hash['group'] : SKIP
|
|
95
|
+
im = hash.key?('im') ? hash['im'] : SKIP
|
|
96
|
+
mpim = hash.key?('mpim') ? hash['mpim'] : SKIP
|
|
97
|
+
team = hash.key?('team') ? hash['team'] : SKIP
|
|
98
|
+
user = hash.key?('user') ? hash['user'] : SKIP
|
|
99
|
+
|
|
100
|
+
# Create a new hash for additional properties, removing known properties.
|
|
101
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
102
|
+
|
|
103
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
104
|
+
new_hash, proc { |value| value }
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
# Create object from extracted values.
|
|
108
|
+
Scopes.new(app_home: app_home,
|
|
109
|
+
channel: channel,
|
|
110
|
+
group: group,
|
|
111
|
+
im: im,
|
|
112
|
+
mpim: mpim,
|
|
113
|
+
team: team,
|
|
114
|
+
user: user,
|
|
115
|
+
additional_properties: additional_properties)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Provides a human-readable string representation of the object.
|
|
119
|
+
def to_s
|
|
120
|
+
class_name = self.class.name.split('::').last
|
|
121
|
+
"<#{class_name} app_home: #{@app_home}, channel: #{@channel}, group: #{@group}, im: #{@im},"\
|
|
122
|
+
" mpim: #{@mpim}, team: #{@team}, user: #{@user}, additional_properties:"\
|
|
123
|
+
" #{@additional_properties}>"
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
127
|
+
def inspect
|
|
128
|
+
class_name = self.class.name.split('::').last
|
|
129
|
+
"<#{class_name} app_home: #{@app_home.inspect}, channel: #{@channel.inspect}, group:"\
|
|
130
|
+
" #{@group.inspect}, im: #{@im.inspect}, mpim: #{@mpim.inspect}, team: #{@team.inspect},"\
|
|
131
|
+
" user: #{@user.inspect}, additional_properties: #{@additional_properties}>"
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|