slack-api-sdk-apimatic 1.1.1__py3-none-any.whl
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.
- slack_api_sdk_apimatic-1.1.1.dist-info/METADATA +206 -0
- slack_api_sdk_apimatic-1.1.1.dist-info/RECORD +433 -0
- slack_api_sdk_apimatic-1.1.1.dist-info/WHEEL +5 -0
- slack_api_sdk_apimatic-1.1.1.dist-info/licenses/LICENSE +28 -0
- slack_api_sdk_apimatic-1.1.1.dist-info/top_level.txt +1 -0
- slackwebapi/__init__.py +13 -0
- slackwebapi/api_helper.py +19 -0
- slackwebapi/configuration.py +252 -0
- slackwebapi/controllers/__init__.py +61 -0
- slackwebapi/controllers/admin_apps_approved_controller.py +101 -0
- slackwebapi/controllers/admin_apps_controller.py +153 -0
- slackwebapi/controllers/admin_apps_requests_controller.py +96 -0
- slackwebapi/controllers/admin_apps_restricted_controller.py +101 -0
- slackwebapi/controllers/admin_conversations_controller.py +895 -0
- slackwebapi/controllers/admin_conversations_ekm_controller.py +107 -0
- slackwebapi/controllers/admin_conversations_restrict_access_controller.py +231 -0
- slackwebapi/controllers/admin_emoji_controller.py +314 -0
- slackwebapi/controllers/admin_invite_requests_approved_controller.py +97 -0
- slackwebapi/controllers/admin_invite_requests_controller.py +209 -0
- slackwebapi/controllers/admin_invite_requests_denied_controller.py +97 -0
- slackwebapi/controllers/admin_teams_admins_controller.py +96 -0
- slackwebapi/controllers/admin_teams_controller.py +158 -0
- slackwebapi/controllers/admin_teams_owners_controller.py +97 -0
- slackwebapi/controllers/admin_teams_settings_controller.py +367 -0
- slackwebapi/controllers/admin_usergroups_controller.py +282 -0
- slackwebapi/controllers/admin_users_controller.py +555 -0
- slackwebapi/controllers/admin_users_session_controller.py +151 -0
- slackwebapi/controllers/api_controller.py +84 -0
- slackwebapi/controllers/apps_controller.py +88 -0
- slackwebapi/controllers/apps_event_authorizations_controller.py +96 -0
- slackwebapi/controllers/apps_permissions_controller.py +142 -0
- slackwebapi/controllers/apps_permissions_resources_controller.py +94 -0
- slackwebapi/controllers/apps_permissions_scopes_controller.py +80 -0
- slackwebapi/controllers/apps_permissions_users_controller.py +158 -0
- slackwebapi/controllers/auth_controller.py +136 -0
- slackwebapi/controllers/base_controller.py +72 -0
- slackwebapi/controllers/bots_controller.py +85 -0
- slackwebapi/controllers/calls_controller.py +304 -0
- slackwebapi/controllers/calls_participants_controller.py +149 -0
- slackwebapi/controllers/chat_controller.py +896 -0
- slackwebapi/controllers/chat_scheduled_messages_controller.py +107 -0
- slackwebapi/controllers/conversations_controller.py +1217 -0
- slackwebapi/controllers/dialog_controller.py +93 -0
- slackwebapi/controllers/dnd_controller.py +294 -0
- slackwebapi/controllers/emoji_controller.py +79 -0
- slackwebapi/controllers/files_comments_controller.py +90 -0
- slackwebapi/controllers/files_controller.py +470 -0
- slackwebapi/controllers/files_remote_controller.py +440 -0
- slackwebapi/controllers/migration_controller.py +98 -0
- slackwebapi/controllers/oauth_authorization_controller.py +159 -0
- slackwebapi/controllers/oauth_controller.py +168 -0
- slackwebapi/controllers/oauth_v_2_controller.py +96 -0
- slackwebapi/controllers/pins_controller.py +203 -0
- slackwebapi/controllers/reactions_controller.py +334 -0
- slackwebapi/controllers/reminders_controller.py +315 -0
- slackwebapi/controllers/rtm_controller.py +93 -0
- slackwebapi/controllers/search_controller.py +114 -0
- slackwebapi/controllers/stars_controller.py +246 -0
- slackwebapi/controllers/team_controller.py +294 -0
- slackwebapi/controllers/team_profile_controller.py +84 -0
- slackwebapi/controllers/usergroups_controller.py +384 -0
- slackwebapi/controllers/usergroups_users_controller.py +161 -0
- slackwebapi/controllers/users_controller.py +639 -0
- slackwebapi/controllers/users_profile_controller.py +165 -0
- slackwebapi/controllers/views_controller.py +287 -0
- slackwebapi/controllers/workflows_controller.py +237 -0
- slackwebapi/exceptions/__init__.py +108 -0
- slackwebapi/exceptions/admin_conversations_archive_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_convert_to_private_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_create_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_delete_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_disconnect_shared_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_get_teams_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_invite_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_search_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_set_conversation_prefs_error_schema_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_unarchive_error_schema_2_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_unarchive_error_schema_3_exception.py +56 -0
- slackwebapi/exceptions/admin_conversations_unarchive_error_schema_exception.py +56 -0
- slackwebapi/exceptions/api_exception.py +36 -0
- slackwebapi/exceptions/api_test_error_schema_exception.py +55 -0
- slackwebapi/exceptions/apps_permissions_info_error_schema_exception.py +65 -0
- slackwebapi/exceptions/apps_permissions_request_error_schema_exception.py +66 -0
- slackwebapi/exceptions/apps_permissions_resources_list_error_schema_exception.py +66 -0
- slackwebapi/exceptions/apps_permissions_scopes_list_error_schema_exception.py +66 -0
- slackwebapi/exceptions/apps_uninstall_error_schema_exception.py +65 -0
- slackwebapi/exceptions/auth_revoke_error_schema_exception.py +65 -0
- slackwebapi/exceptions/auth_test_error_schema_exception.py +65 -0
- slackwebapi/exceptions/bots_info_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_delete_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_delete_scheduled_message_error_schema_exception.py +66 -0
- slackwebapi/exceptions/chat_get_permalink_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_me_message_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_post_ephemeral_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_post_message_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_schedule_message_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_scheduled_messages_list_error_schema_exception.py +66 -0
- slackwebapi/exceptions/chat_unfurl_error_schema_exception.py +65 -0
- slackwebapi/exceptions/chat_update_error_schema_exception.py +65 -0
- slackwebapi/exceptions/conversations_archive_error_schema_exception.py +86 -0
- slackwebapi/exceptions/conversations_close_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_create_error_schema_exception.py +95 -0
- slackwebapi/exceptions/conversations_history_error_schema_exception.py +86 -0
- slackwebapi/exceptions/conversations_info_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_invite_error_schema_1_exception.py +107 -0
- slackwebapi/exceptions/conversations_join_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_kick_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_leave_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_list_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_mark_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_members_error_schema_exception.py +66 -0
- slackwebapi/exceptions/conversations_open_error_schema_exception.py +65 -0
- slackwebapi/exceptions/conversations_rename_error_schema_exception.py +85 -0
- slackwebapi/exceptions/conversations_replies_error_schema_exception.py +86 -0
- slackwebapi/exceptions/conversations_set_purpose_error_schema_exception.py +86 -0
- slackwebapi/exceptions/conversations_set_topic_error_schema_exception.py +86 -0
- slackwebapi/exceptions/conversations_unarchive_error_schema_exception.py +86 -0
- slackwebapi/exceptions/default_error_template_exception.py +49 -0
- slackwebapi/exceptions/dialog_open_error_schema_exception.py +65 -0
- slackwebapi/exceptions/dnd_end_dnd_error_schema_exception.py +65 -0
- slackwebapi/exceptions/dnd_end_snooze_error_schema_exception.py +65 -0
- slackwebapi/exceptions/dnd_info_error_schema_exception.py +65 -0
- slackwebapi/exceptions/dnd_set_snooze_error_schema_exception.py +65 -0
- slackwebapi/exceptions/files_comments_delete_error_schema_exception.py +65 -0
- slackwebapi/exceptions/files_delete_error_schema_exception.py +65 -0
- slackwebapi/exceptions/files_info_error_schema_exception.py +65 -0
- slackwebapi/exceptions/files_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/files_revoke_public_url_error_schema_exception.py +66 -0
- slackwebapi/exceptions/files_shared_public_url_error_schema_exception.py +66 -0
- slackwebapi/exceptions/files_upload_error_schema_exception.py +65 -0
- slackwebapi/exceptions/migration_exchange_error_schema_exception.py +65 -0
- slackwebapi/exceptions/oauth_provider_exception.py +73 -0
- slackwebapi/exceptions/pins_add_error_schema_exception.py +65 -0
- slackwebapi/exceptions/pins_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/pins_remove_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reactions_add_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reactions_get_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reactions_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reactions_remove_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reminders_add_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reminders_complete_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reminders_delete_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reminders_info_error_schema_exception.py +65 -0
- slackwebapi/exceptions/reminders_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/rtm_connect_error_schema_exception.py +65 -0
- slackwebapi/exceptions/stars_add_error_schema_exception.py +65 -0
- slackwebapi/exceptions/stars_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/stars_remove_error_schema_exception.py +65 -0
- slackwebapi/exceptions/team_access_logs_error_schema_exception.py +65 -0
- slackwebapi/exceptions/team_info_error_schema_exception.py +65 -0
- slackwebapi/exceptions/team_integration_logs_error_schema_exception.py +65 -0
- slackwebapi/exceptions/team_profile_get_error_schema_exception.py +65 -0
- slackwebapi/exceptions/usergroups_create_error_schema_exception.py +65 -0
- slackwebapi/exceptions/usergroups_disable_error_schema_exception.py +65 -0
- slackwebapi/exceptions/usergroups_enable_error_schema_exception.py +65 -0
- slackwebapi/exceptions/usergroups_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/usergroups_update_error_schema_exception.py +65 -0
- slackwebapi/exceptions/usergroups_users_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/usergroups_users_update_error_schema_exception.py +66 -0
- slackwebapi/exceptions/users_conversations_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_counts_error_schema_exception.py +55 -0
- slackwebapi/exceptions/users_delete_photo_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_identity_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_info_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_list_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_lookup_by_email_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_profile_get_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_profile_set_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_set_active_error_schema_exception.py +65 -0
- slackwebapi/exceptions/users_set_photo_error_schema_exception.py +95 -0
- slackwebapi/exceptions/users_set_presence_error_schema_exception.py +65 -0
- slackwebapi/http/__init__.py +11 -0
- slackwebapi/http/api_response.py +67 -0
- slackwebapi/http/auth/__init__.py +5 -0
- slackwebapi/http/auth/oauth_2.py +333 -0
- slackwebapi/http/http_call_back.py +20 -0
- slackwebapi/http/http_client_provider.py +23 -0
- slackwebapi/http/http_method_enum.py +25 -0
- slackwebapi/http/http_request.py +55 -0
- slackwebapi/http/http_response.py +45 -0
- slackwebapi/http/proxy_settings.py +50 -0
- slackwebapi/logging/__init__.py +6 -0
- slackwebapi/logging/configuration/__init__.py +5 -0
- slackwebapi/logging/configuration/api_logging_configuration.py +398 -0
- slackwebapi/logging/sdk_logger.py +28 -0
- slackwebapi/models/__init__.py +248 -0
- slackwebapi/models/admin_conversations_archive_schema.py +86 -0
- slackwebapi/models/admin_conversations_convert_to_private_schema.py +86 -0
- slackwebapi/models/admin_conversations_create_schema.py +112 -0
- slackwebapi/models/admin_conversations_delete_schema.py +86 -0
- slackwebapi/models/admin_conversations_get_conversation_prefs_schema.py +114 -0
- slackwebapi/models/admin_conversations_get_teams_schema.py +130 -0
- slackwebapi/models/admin_conversations_invite_schema.py +86 -0
- slackwebapi/models/admin_conversations_rename_schema.py +86 -0
- slackwebapi/models/admin_conversations_rename_schema_1.py +86 -0
- slackwebapi/models/admin_conversations_search_schema.py +111 -0
- slackwebapi/models/admin_conversations_set_conversation_prefs_schema.py +86 -0
- slackwebapi/models/admin_conversations_unarchive_schema.py +86 -0
- slackwebapi/models/api_method_users_get_presence.py +218 -0
- slackwebapi/models/api_permissions_scopes_list_success_schema.py +100 -0
- slackwebapi/models/api_test_success_schema.py +86 -0
- slackwebapi/models/app_home.py +131 -0
- slackwebapi/models/apps_permissions_info_schema.py +100 -0
- slackwebapi/models/apps_permissions_request_schema.py +86 -0
- slackwebapi/models/apps_permissions_resources_list_success_schema.py +133 -0
- slackwebapi/models/apps_uninstall_schema.py +86 -0
- slackwebapi/models/attachment.py +208 -0
- slackwebapi/models/auth_revoke_schema.py +99 -0
- slackwebapi/models/auth_test_success_schema.py +200 -0
- slackwebapi/models/block_kit_block.py +90 -0
- slackwebapi/models/bot.py +182 -0
- slackwebapi/models/bot_profile_object.py +169 -0
- slackwebapi/models/bots_info_schema.py +100 -0
- slackwebapi/models/can_thread.py +126 -0
- slackwebapi/models/channel.py +131 -0
- slackwebapi/models/channel_object.py +688 -0
- slackwebapi/models/chat_delete_scheduled_message_schema.py +86 -0
- slackwebapi/models/chat_delete_success_schema.py +112 -0
- slackwebapi/models/chat_get_permalink_success_schema.py +112 -0
- slackwebapi/models/chat_me_message_schema.py +135 -0
- slackwebapi/models/chat_post_ephemeral_success_schema.py +99 -0
- slackwebapi/models/chat_post_message_success_schema.py +128 -0
- slackwebapi/models/chat_schedule_message_success_schema.py +139 -0
- slackwebapi/models/chat_scheduled_messages_list_schema.py +122 -0
- slackwebapi/models/chat_unfurl_success_schema.py +86 -0
- slackwebapi/models/chat_update_success_schema.py +141 -0
- slackwebapi/models/conversations_archive_success_schema.py +86 -0
- slackwebapi/models/conversations_close_success_schema.py +135 -0
- slackwebapi/models/conversations_create_success_schema.py +99 -0
- slackwebapi/models/conversations_history_success_schema.py +157 -0
- slackwebapi/models/conversations_info_success_schema.py +99 -0
- slackwebapi/models/conversations_invite_error_schema.py +99 -0
- slackwebapi/models/conversations_join_success_schema.py +153 -0
- slackwebapi/models/conversations_kick_success_schema.py +86 -0
- slackwebapi/models/conversations_leave_success_schema.py +112 -0
- slackwebapi/models/conversations_list_success_schema.py +130 -0
- slackwebapi/models/conversations_mark_success_schema.py +86 -0
- slackwebapi/models/conversations_members_success_schema.py +116 -0
- slackwebapi/models/conversations_open_success_schema.py +149 -0
- slackwebapi/models/conversations_rename_success_schema.py +99 -0
- slackwebapi/models/conversations_replies_success_schema.py +125 -0
- slackwebapi/models/conversations_set_purpose_success_schema.py +99 -0
- slackwebapi/models/conversations_set_topic_success_schema.py +99 -0
- slackwebapi/models/conversations_unarchive_success_schema.py +86 -0
- slackwebapi/models/current.py +103 -0
- slackwebapi/models/default_success_template.py +87 -0
- slackwebapi/models/dialog_open_schema.py +86 -0
- slackwebapi/models/dnd_end_dnd_schema.py +86 -0
- slackwebapi/models/dnd_end_snooze_schema.py +138 -0
- slackwebapi/models/dnd_info_schema.py +197 -0
- slackwebapi/models/dnd_set_snooze_schema.py +125 -0
- slackwebapi/models/error.py +61 -0
- slackwebapi/models/error_1.py +64 -0
- slackwebapi/models/error_10.py +61 -0
- slackwebapi/models/error_11.py +61 -0
- slackwebapi/models/error_12.py +94 -0
- slackwebapi/models/error_13.py +106 -0
- slackwebapi/models/error_14.py +97 -0
- slackwebapi/models/error_16.py +103 -0
- slackwebapi/models/error_17.py +91 -0
- slackwebapi/models/error_18.py +79 -0
- slackwebapi/models/error_19.py +94 -0
- slackwebapi/models/error_2.py +61 -0
- slackwebapi/models/error_20.py +100 -0
- slackwebapi/models/error_21.py +106 -0
- slackwebapi/models/error_22.py +97 -0
- slackwebapi/models/error_23.py +109 -0
- slackwebapi/models/error_24.py +112 -0
- slackwebapi/models/error_25.py +85 -0
- slackwebapi/models/error_26.py +139 -0
- slackwebapi/models/error_27.py +100 -0
- slackwebapi/models/error_28.py +106 -0
- slackwebapi/models/error_29.py +112 -0
- slackwebapi/models/error_3.py +61 -0
- slackwebapi/models/error_30.py +115 -0
- slackwebapi/models/error_31.py +91 -0
- slackwebapi/models/error_32.py +115 -0
- slackwebapi/models/error_33.py +88 -0
- slackwebapi/models/error_34.py +85 -0
- slackwebapi/models/error_35.py +130 -0
- slackwebapi/models/error_37.py +106 -0
- slackwebapi/models/error_38.py +106 -0
- slackwebapi/models/error_39.py +112 -0
- slackwebapi/models/error_4.py +76 -0
- slackwebapi/models/error_40.py +79 -0
- slackwebapi/models/error_41.py +94 -0
- slackwebapi/models/error_42.py +91 -0
- slackwebapi/models/error_43.py +106 -0
- slackwebapi/models/error_44.py +112 -0
- slackwebapi/models/error_45.py +88 -0
- slackwebapi/models/error_46.py +100 -0
- slackwebapi/models/error_48.py +106 -0
- slackwebapi/models/error_49.py +118 -0
- slackwebapi/models/error_5.py +61 -0
- slackwebapi/models/error_50.py +97 -0
- slackwebapi/models/error_51.py +100 -0
- slackwebapi/models/error_52.py +94 -0
- slackwebapi/models/error_53.py +103 -0
- slackwebapi/models/error_54.py +85 -0
- slackwebapi/models/error_55.py +91 -0
- slackwebapi/models/error_56.py +91 -0
- slackwebapi/models/error_57.py +91 -0
- slackwebapi/models/error_58.py +100 -0
- slackwebapi/models/error_59.py +103 -0
- slackwebapi/models/error_6.py +61 -0
- slackwebapi/models/error_60.py +97 -0
- slackwebapi/models/error_61.py +97 -0
- slackwebapi/models/error_62.py +106 -0
- slackwebapi/models/error_63.py +85 -0
- slackwebapi/models/error_64.py +103 -0
- slackwebapi/models/error_65.py +103 -0
- slackwebapi/models/error_66.py +94 -0
- slackwebapi/models/error_67.py +88 -0
- slackwebapi/models/error_68.py +106 -0
- slackwebapi/models/error_69.py +112 -0
- slackwebapi/models/error_7.py +58 -0
- slackwebapi/models/error_70.py +103 -0
- slackwebapi/models/error_71.py +97 -0
- slackwebapi/models/error_74.py +88 -0
- slackwebapi/models/error_75.py +112 -0
- slackwebapi/models/error_77.py +112 -0
- slackwebapi/models/error_78.py +100 -0
- slackwebapi/models/error_8.py +58 -0
- slackwebapi/models/error_81.py +85 -0
- slackwebapi/models/error_82.py +100 -0
- slackwebapi/models/error_84.py +103 -0
- slackwebapi/models/error_86.py +106 -0
- slackwebapi/models/error_89.py +103 -0
- slackwebapi/models/error_9.py +67 -0
- slackwebapi/models/error_92.py +85 -0
- slackwebapi/models/error_93.py +91 -0
- slackwebapi/models/error_94.py +91 -0
- slackwebapi/models/error_95.py +97 -0
- slackwebapi/models/error_96.py +112 -0
- slackwebapi/models/error_97.py +91 -0
- slackwebapi/models/error_98.py +106 -0
- slackwebapi/models/error_99.py +94 -0
- slackwebapi/models/errors_is_returned_when_an_error_associates_an_user.py +124 -0
- slackwebapi/models/external_org_migrations.py +106 -0
- slackwebapi/models/file_comment_object.py +281 -0
- slackwebapi/models/file_object.py +1700 -0
- slackwebapi/models/files_comments_delete_schema.py +86 -0
- slackwebapi/models/files_delete_schema.py +86 -0
- slackwebapi/models/files_info_schema.py +216 -0
- slackwebapi/models/files_list_schema.py +118 -0
- slackwebapi/models/files_revoke_public_url_schema.py +100 -0
- slackwebapi/models/files_shared_public_url_schema.py +100 -0
- slackwebapi/models/files_upload_schema.py +100 -0
- slackwebapi/models/group.py +131 -0
- slackwebapi/models/icons.py +116 -0
- slackwebapi/models/icons_1.py +126 -0
- slackwebapi/models/im.py +131 -0
- slackwebapi/models/info.py +161 -0
- slackwebapi/models/log.py +263 -0
- slackwebapi/models/login.py +214 -0
- slackwebapi/models/message.py +195 -0
- slackwebapi/models/message_object.py +1035 -0
- slackwebapi/models/message_object_1.py +139 -0
- slackwebapi/models/migration_exchange_success_schema.py +161 -0
- slackwebapi/models/mpim.py +131 -0
- slackwebapi/models/mself.py +103 -0
- slackwebapi/models/mtype.py +55 -0
- slackwebapi/models/oauth_provider_error.py +67 -0
- slackwebapi/models/oauth_scope.py +240 -0
- slackwebapi/models/oauth_token.py +113 -0
- slackwebapi/models/objs_enterprise_user.py +155 -0
- slackwebapi/models/objs_icon.py +264 -0
- slackwebapi/models/objs_primary_owner.py +103 -0
- slackwebapi/models/objs_reminder.py +191 -0
- slackwebapi/models/objs_team_profile_field.py +242 -0
- slackwebapi/models/objs_team_profile_field_option.py +179 -0
- slackwebapi/models/objs_user_profile_short.py +247 -0
- slackwebapi/models/paging_object.py +198 -0
- slackwebapi/models/pins_add_schema.py +86 -0
- slackwebapi/models/pins_remove_schema.py +86 -0
- slackwebapi/models/plan.py +49 -0
- slackwebapi/models/prefs.py +103 -0
- slackwebapi/models/prefs_1.py +132 -0
- slackwebapi/models/profile.py +96 -0
- slackwebapi/models/profile_1.py +194 -0
- slackwebapi/models/purpose.py +116 -0
- slackwebapi/models/reaction_object.py +116 -0
- slackwebapi/models/reactions_add_schema.py +86 -0
- slackwebapi/models/reactions_list_schema.py +152 -0
- slackwebapi/models/reactions_remove_schema.py +86 -0
- slackwebapi/models/reminders_add_schema.py +102 -0
- slackwebapi/models/reminders_complete_schema.py +86 -0
- slackwebapi/models/reminders_delete_schema.py +86 -0
- slackwebapi/models/reminders_info_schema.py +102 -0
- slackwebapi/models/reminders_list_schema.py +104 -0
- slackwebapi/models/resource.py +126 -0
- slackwebapi/models/resources_in_info_from_apps_permissions_info.py +139 -0
- slackwebapi/models/response_metadata.py +90 -0
- slackwebapi/models/response_metadata_3.py +103 -0
- slackwebapi/models/rtm_connect_schema.py +127 -0
- slackwebapi/models/scheduled_message.py +155 -0
- slackwebapi/models/scopes.py +241 -0
- slackwebapi/models/shares.py +126 -0
- slackwebapi/models/sso_provider.py +149 -0
- slackwebapi/models/stars_add_schema.py +86 -0
- slackwebapi/models/stars_list_schema.py +129 -0
- slackwebapi/models/stars_remove_schema.py +86 -0
- slackwebapi/models/subteam_usergroup_object.py +384 -0
- slackwebapi/models/team.py +107 -0
- slackwebapi/models/team_1.py +116 -0
- slackwebapi/models/team_access_logs_schema.py +118 -0
- slackwebapi/models/team_info_schema.py +100 -0
- slackwebapi/models/team_integration_logs_schema.py +118 -0
- slackwebapi/models/team_object.py +715 -0
- slackwebapi/models/team_profile_get_success_schema.py +100 -0
- slackwebapi/models/topic.py +116 -0
- slackwebapi/models/user_profile_object.py +1005 -0
- slackwebapi/models/usergroups_create_schema.py +103 -0
- slackwebapi/models/usergroups_disable_schema.py +103 -0
- slackwebapi/models/usergroups_enable_schema.py +103 -0
- slackwebapi/models/usergroups_list_schema.py +105 -0
- slackwebapi/models/usergroups_update_schema.py +103 -0
- slackwebapi/models/usergroups_users_list_schema.py +99 -0
- slackwebapi/models/usergroups_users_update_schema.py +103 -0
- slackwebapi/models/users_conversations_success_schema.py +131 -0
- slackwebapi/models/users_delete_photo_schema.py +86 -0
- slackwebapi/models/users_info_success_schema.py +99 -0
- slackwebapi/models/users_list_schema.py +138 -0
- slackwebapi/models/users_lookup_by_email_success_schema.py +99 -0
- slackwebapi/models/users_profile_get_schema.py +102 -0
- slackwebapi/models/users_profile_set_schema.py +141 -0
- slackwebapi/models/users_set_active_schema.py +86 -0
- slackwebapi/models/users_set_photo_schema.py +100 -0
- slackwebapi/models/users_set_presence_schema.py +86 -0
- slackwebapi/models/who_can_post.py +126 -0
- slackwebapi/slackwebapi_client.py +522 -0
- slackwebapi/utilities/__init__.py +6 -0
- slackwebapi/utilities/file_wrapper.py +45 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
|
|
2
|
+
"""
|
|
3
|
+
slackwebapi
|
|
4
|
+
|
|
5
|
+
This file was automatically generated by APIMATIC v3.0 (
|
|
6
|
+
https://www.apimatic.io ).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import logging
|
|
10
|
+
import os
|
|
11
|
+
|
|
12
|
+
from apimatic_core.logger.configuration.api_logging_configuration import (
|
|
13
|
+
ApiLoggingConfiguration,
|
|
14
|
+
ApiRequestLoggingConfiguration,
|
|
15
|
+
ApiResponseLoggingConfiguration,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequestLoggingConfiguration(ApiRequestLoggingConfiguration):
|
|
20
|
+
"""
|
|
21
|
+
Configuration for controlling how API request details are logged.
|
|
22
|
+
Provides options to include or exclude data such as headers, query
|
|
23
|
+
parameters and request body to support flexible logging behavior.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self, log_body=False, log_headers=False, headers_to_include=None,
|
|
27
|
+
headers_to_exclude=None, headers_to_unmask=None,
|
|
28
|
+
include_query_in_path=False):
|
|
29
|
+
"""
|
|
30
|
+
Initialize the Request Logging Configuration.
|
|
31
|
+
|
|
32
|
+
Args:
|
|
33
|
+
log_body (bool): Controls the logging of the request body.
|
|
34
|
+
log_headers (bool): Controls the logging of request headers.
|
|
35
|
+
headers_to_include (List[str]): Includes only specified headers in
|
|
36
|
+
the log output.
|
|
37
|
+
headers_to_exclude (List[str]): Excludes specified headers from
|
|
38
|
+
the log output.
|
|
39
|
+
headers_to_unmask (List[str]): Logs specified headers without masking,
|
|
40
|
+
revealing their actual values.
|
|
41
|
+
include_query_in_path (bool): Determines whether to include query
|
|
42
|
+
parameters in the logged request path.
|
|
43
|
+
|
|
44
|
+
"""
|
|
45
|
+
super().__init__(
|
|
46
|
+
log_body,
|
|
47
|
+
log_headers,
|
|
48
|
+
headers_to_include,
|
|
49
|
+
headers_to_exclude,
|
|
50
|
+
headers_to_unmask,
|
|
51
|
+
include_query_in_path,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
def clone_with(self, log_body=None, log_headers=None,
|
|
55
|
+
headers_to_include=None, headers_to_exclude=None,
|
|
56
|
+
headers_to_unmask=None, include_query_in_path=False):
|
|
57
|
+
"""
|
|
58
|
+
Create a copy of this configuration with overridden attributes.
|
|
59
|
+
|
|
60
|
+
Args:
|
|
61
|
+
log_body (bool): Optional override for logging the body.
|
|
62
|
+
log_headers (bool): Optional override for logging headers.
|
|
63
|
+
headers_to_include (List[str]): Optional override for included headers.
|
|
64
|
+
headers_to_exclude (List[str]): Optional override for excluded headers.
|
|
65
|
+
headers_to_unmask (List[str]): Optional override for unmasked headers.
|
|
66
|
+
include_query_in_path (bool): Optional override for including queries.
|
|
67
|
+
|
|
68
|
+
Returns:
|
|
69
|
+
RequestLoggingConfiguration: A new configuration instance.
|
|
70
|
+
|
|
71
|
+
"""
|
|
72
|
+
log_body = log_body or self.log_body
|
|
73
|
+
log_headers = log_headers or self.log_headers
|
|
74
|
+
headers_to_include = headers_to_include or self.headers_to_include
|
|
75
|
+
headers_to_exclude = headers_to_exclude or self.headers_to_exclude
|
|
76
|
+
headers_to_unmask = headers_to_unmask or self.headers_to_unmask
|
|
77
|
+
include_query_in_path = include_query_in_path or self.include_query_in_path
|
|
78
|
+
|
|
79
|
+
return RequestLoggingConfiguration(
|
|
80
|
+
log_body,
|
|
81
|
+
log_headers,
|
|
82
|
+
headers_to_include,
|
|
83
|
+
headers_to_exclude,
|
|
84
|
+
headers_to_unmask,
|
|
85
|
+
include_query_in_path,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
@classmethod
|
|
89
|
+
def from_dict(cls, dictionary):
|
|
90
|
+
"""
|
|
91
|
+
Create an instance of RequestLoggingConfiguration from a dictionary.
|
|
92
|
+
|
|
93
|
+
Args:
|
|
94
|
+
dictionary (dict): The input data to convert from.
|
|
95
|
+
|
|
96
|
+
"""
|
|
97
|
+
if not dictionary:
|
|
98
|
+
return cls()
|
|
99
|
+
|
|
100
|
+
headers_to_include = dictionary.get("headers_to_include")
|
|
101
|
+
headers_to_include = [
|
|
102
|
+
v.strip() for v in headers_to_include.split(",") if v.strip()
|
|
103
|
+
] if headers_to_include else None
|
|
104
|
+
|
|
105
|
+
headers_to_exclude = dictionary.get("headers_to_exclude")
|
|
106
|
+
headers_to_exclude = [
|
|
107
|
+
v.strip() for v in headers_to_exclude.split(",") if v.strip()
|
|
108
|
+
] if headers_to_exclude else None
|
|
109
|
+
|
|
110
|
+
headers_to_unmask = dictionary.get("headers_to_unmask")
|
|
111
|
+
headers_to_unmask = [
|
|
112
|
+
v.strip() for v in headers_to_unmask.split(",") if v.strip()
|
|
113
|
+
] if headers_to_unmask else None
|
|
114
|
+
|
|
115
|
+
return cls(
|
|
116
|
+
log_body=dictionary.get("log_body", False),
|
|
117
|
+
log_headers=dictionary.get("log_headers", False),
|
|
118
|
+
headers_to_include=headers_to_include,
|
|
119
|
+
headers_to_exclude=headers_to_exclude,
|
|
120
|
+
headers_to_unmask=headers_to_unmask,
|
|
121
|
+
include_query_in_path=dictionary.get("include_query_in_path", False),
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
class ResponseLoggingConfiguration(ApiResponseLoggingConfiguration):
|
|
125
|
+
"""
|
|
126
|
+
Configuration for controlling how API response details are logged.
|
|
127
|
+
Supports selective logging of headers and body data while allowing
|
|
128
|
+
masking of sensitive response information.
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
def __init__(self, log_body=False, log_headers=False, headers_to_include=None,
|
|
132
|
+
headers_to_exclude=None, headers_to_unmask=None):
|
|
133
|
+
"""
|
|
134
|
+
Initialize the Response Logging Configuration.
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
log_body (bool): Controls the logging of the request body.
|
|
138
|
+
log_headers (bool): Controls the logging of request headers.
|
|
139
|
+
headers_to_include (List[str]): Includes only specified headers in the log
|
|
140
|
+
output.
|
|
141
|
+
headers_to_exclude (List[str]): Excludes specified headers from the log
|
|
142
|
+
output.
|
|
143
|
+
headers_to_unmask (List[str]): Logs specified headers without
|
|
144
|
+
masking, revealing their actual values.
|
|
145
|
+
|
|
146
|
+
"""
|
|
147
|
+
super().__init__(
|
|
148
|
+
log_body,
|
|
149
|
+
log_headers,
|
|
150
|
+
headers_to_include,
|
|
151
|
+
headers_to_exclude,
|
|
152
|
+
headers_to_unmask,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
def clone_with(self, log_body=None, log_headers=None,
|
|
156
|
+
headers_to_include=None, headers_to_exclude=None,
|
|
157
|
+
headers_to_unmask=None):
|
|
158
|
+
"""
|
|
159
|
+
Create a copy of this configuration with overridden attributes.
|
|
160
|
+
|
|
161
|
+
Args:
|
|
162
|
+
log_body (bool): Optional override for logging the body.
|
|
163
|
+
log_headers (bool): Optional override for logging headers.
|
|
164
|
+
headers_to_include (List[str]): Optional override for included headers.
|
|
165
|
+
headers_to_exclude (List[str]): Optional override for excluded headers.
|
|
166
|
+
headers_to_unmask (List[str]): Optional override for unmasked headers.
|
|
167
|
+
|
|
168
|
+
Returns:
|
|
169
|
+
ResponseLoggingConfiguration: A new configuration instance.
|
|
170
|
+
|
|
171
|
+
"""
|
|
172
|
+
log_body = log_body or self.log_body
|
|
173
|
+
log_headers = log_headers or self.log_headers
|
|
174
|
+
headers_to_include = headers_to_include or self.headers_to_include
|
|
175
|
+
headers_to_exclude = headers_to_exclude or self.headers_to_exclude
|
|
176
|
+
headers_to_unmask = headers_to_unmask or self.headers_to_unmask
|
|
177
|
+
|
|
178
|
+
return ResponseLoggingConfiguration(
|
|
179
|
+
log_body,
|
|
180
|
+
log_headers,
|
|
181
|
+
headers_to_include,
|
|
182
|
+
headers_to_exclude,
|
|
183
|
+
headers_to_unmask,
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
@classmethod
|
|
187
|
+
def from_dict(cls, dictionary):
|
|
188
|
+
"""
|
|
189
|
+
Create an instance of ResponseLoggingConfiguration from a dictionary.
|
|
190
|
+
|
|
191
|
+
Args:
|
|
192
|
+
dictionary (dict): The input data to convert from.
|
|
193
|
+
|
|
194
|
+
"""
|
|
195
|
+
if not dictionary:
|
|
196
|
+
return cls()
|
|
197
|
+
|
|
198
|
+
headers_to_include = dictionary.get("headers_to_include")
|
|
199
|
+
headers_to_include = [
|
|
200
|
+
v.strip() for v in headers_to_include.split(",") if v.strip()
|
|
201
|
+
] if headers_to_include else None
|
|
202
|
+
|
|
203
|
+
headers_to_exclude = dictionary.get("headers_to_exclude")
|
|
204
|
+
headers_to_exclude = [
|
|
205
|
+
v.strip() for v in headers_to_exclude.split(",") if v.strip()
|
|
206
|
+
] if headers_to_exclude else None
|
|
207
|
+
|
|
208
|
+
headers_to_unmask = dictionary.get("headers_to_unmask")
|
|
209
|
+
headers_to_unmask = [
|
|
210
|
+
v.strip() for v in headers_to_unmask.split(",") if v.strip()
|
|
211
|
+
] if headers_to_unmask else None
|
|
212
|
+
|
|
213
|
+
return cls(
|
|
214
|
+
log_body=dictionary.get("log_body", False),
|
|
215
|
+
log_headers=dictionary.get("log_headers", False),
|
|
216
|
+
headers_to_include=headers_to_include,
|
|
217
|
+
headers_to_exclude=headers_to_exclude,
|
|
218
|
+
headers_to_unmask=headers_to_unmask,
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
class LoggingConfiguration(ApiLoggingConfiguration):
|
|
222
|
+
"""
|
|
223
|
+
High-level configuration for API logging behavior. Aggregates both
|
|
224
|
+
request and response logging settings and applies shared options such
|
|
225
|
+
as log level and header masking across log events.
|
|
226
|
+
"""
|
|
227
|
+
|
|
228
|
+
def __init__(self, logger=None, log_level=None, mask_sensitive_headers=True,
|
|
229
|
+
request_logging_config=None, response_logging_config=None):
|
|
230
|
+
"""
|
|
231
|
+
Initialize the Logging Configuration.
|
|
232
|
+
|
|
233
|
+
Args:
|
|
234
|
+
logger (Logger): The logging implementation to log with.
|
|
235
|
+
log_level (LogLevel): The log level to apply to the log message.
|
|
236
|
+
mask_sensitive_headers (bool): Flag to control masking of sensitive headers.
|
|
237
|
+
request_logging_config (RequestLoggingConfiguration): The API request
|
|
238
|
+
logging configuration.
|
|
239
|
+
response_logging_config (ResponseLoggingConfiguration): The API response
|
|
240
|
+
logging configuration.
|
|
241
|
+
|
|
242
|
+
"""
|
|
243
|
+
request_logging_config = request_logging_config or RequestLoggingConfiguration()
|
|
244
|
+
response_logging_config =\
|
|
245
|
+
response_logging_config or ResponseLoggingConfiguration()
|
|
246
|
+
super().__init__(
|
|
247
|
+
logger,
|
|
248
|
+
log_level,
|
|
249
|
+
mask_sensitive_headers,
|
|
250
|
+
request_logging_config,
|
|
251
|
+
response_logging_config,
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
def clone_with(self, logger=None, log_level=None, mask_sensitive_headers=None,
|
|
255
|
+
request_logging_config=None, response_logging_config=None):
|
|
256
|
+
"""
|
|
257
|
+
Create a copy of this configuration with overridden attributes.
|
|
258
|
+
|
|
259
|
+
Args:
|
|
260
|
+
logger (Logger): Optional override for the logging implementation.
|
|
261
|
+
log_level (bool): Optional override for logging level.
|
|
262
|
+
mask_sensitive_headers (bool): Optional override for masking headers.
|
|
263
|
+
request_logging_config (RequestLoggingConfiguration): Optional
|
|
264
|
+
override for request logging configuration.
|
|
265
|
+
response_logging_config (ResponseLoggingConfiguration): Optional
|
|
266
|
+
override for response logging configuration.
|
|
267
|
+
|
|
268
|
+
Returns:
|
|
269
|
+
LoggingConfiguration: A new configuration instance.
|
|
270
|
+
|
|
271
|
+
"""
|
|
272
|
+
logger = logger or self.logger
|
|
273
|
+
log_level = log_level or self.log_level
|
|
274
|
+
mask_sensitive_headers = mask_sensitive_headers or self.mask_sensitive_headers
|
|
275
|
+
request_logging_config = request_logging_config or self.request_logging_config
|
|
276
|
+
response_logging_config =\
|
|
277
|
+
response_logging_config or self.response_logging_config
|
|
278
|
+
|
|
279
|
+
return LoggingConfiguration(
|
|
280
|
+
logger,
|
|
281
|
+
log_level,
|
|
282
|
+
mask_sensitive_headers,
|
|
283
|
+
request_logging_config,
|
|
284
|
+
response_logging_config,
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
@classmethod
|
|
288
|
+
def from_dict(cls, dictionary):
|
|
289
|
+
"""
|
|
290
|
+
Create an instance of LoggingConfiguration from a dictionary.
|
|
291
|
+
Supports nested request/response logging config dictionaries.
|
|
292
|
+
|
|
293
|
+
Args:
|
|
294
|
+
dictionary (dict): The input data to convert from.
|
|
295
|
+
|
|
296
|
+
"""
|
|
297
|
+
if not dictionary:
|
|
298
|
+
return None
|
|
299
|
+
|
|
300
|
+
req_config_dict = dictionary.get("request_logging_config") or {}
|
|
301
|
+
res_config_dict = dictionary.get("response_logging_config") or {}
|
|
302
|
+
|
|
303
|
+
return cls(
|
|
304
|
+
logger=dictionary.get("logger"),
|
|
305
|
+
log_level=dictionary.get("log_level"),
|
|
306
|
+
mask_sensitive_headers=dictionary.get("mask_sensitive_headers", True),
|
|
307
|
+
request_logging_config=RequestLoggingConfiguration.from_dict(req_config_dict),
|
|
308
|
+
response_logging_config=ResponseLoggingConfiguration.from_dict(res_config_dict),
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
@classmethod
|
|
312
|
+
def from_environment(cls):
|
|
313
|
+
"""
|
|
314
|
+
Create a LoggingConfiguration instance based on environment variables.
|
|
315
|
+
Environment flags determine whether logging is enabled and how it is
|
|
316
|
+
configured for requests and responses.
|
|
317
|
+
"""
|
|
318
|
+
request_logging_env = {
|
|
319
|
+
"log_body": os.getenv("REQUEST_LOG_BODY", None),
|
|
320
|
+
"log_headers": os.getenv("REQUEST_LOG_HEADERS", None),
|
|
321
|
+
"headers_to_include": os.getenv("REQUEST_HEADERS_TO_INCLUDE", None),
|
|
322
|
+
"headers_to_exclude": os.getenv("REQUEST_HEADERS_TO_EXCLUDE", None),
|
|
323
|
+
"headers_to_unmask": os.getenv("REQUEST_HEADERS_TO_UNMASK", None),
|
|
324
|
+
"include_query_in_path": os.getenv("REQUEST_INCLUDE_QUERY_IN_PATH", None),
|
|
325
|
+
}
|
|
326
|
+
# Only include if at least one env var is set
|
|
327
|
+
request_logging_config = (
|
|
328
|
+
{k: (v.lower() == "true" if v and v.lower() in ["true", "false"] else v)
|
|
329
|
+
for k, v in request_logging_env.items() if v is not None}
|
|
330
|
+
or None
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
# Collect environment variables for response logging
|
|
334
|
+
response_logging_env = {
|
|
335
|
+
"log_body": os.getenv("RESPONSE_LOG_BODY", None),
|
|
336
|
+
"log_headers": os.getenv("RESPONSE_LOG_HEADERS", None),
|
|
337
|
+
"headers_to_include": os.getenv("RESPONSE_HEADERS_TO_INCLUDE", None),
|
|
338
|
+
"headers_to_exclude": os.getenv("RESPONSE_HEADERS_TO_EXCLUDE", None),
|
|
339
|
+
"headers_to_unmask": os.getenv("RESPONSE_HEADERS_TO_UNMASK", None),
|
|
340
|
+
}
|
|
341
|
+
response_logging_config = (
|
|
342
|
+
{k: (v.lower() == "true" if v and v.lower() in ["true", "false"] else v)
|
|
343
|
+
for k, v in response_logging_env.items() if v is not None}
|
|
344
|
+
or None
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
# Determine if any logging-related env variable is set
|
|
348
|
+
has_logging_env = any([
|
|
349
|
+
os.getenv("LOG_LEVEL", None),
|
|
350
|
+
os.getenv("MASK_SENSITIVE_HEADERS", None),
|
|
351
|
+
request_logging_config,
|
|
352
|
+
response_logging_config,
|
|
353
|
+
])
|
|
354
|
+
|
|
355
|
+
log_level = cls._resolve_level(os.getenv("LOG_LEVEL", None))
|
|
356
|
+
|
|
357
|
+
# Only instantiate LoggingConfiguration if something is configured
|
|
358
|
+
return cls.from_dict({
|
|
359
|
+
"log_level": log_level,
|
|
360
|
+
"mask_sensitive_headers": os.getenv("MASK_SENSITIVE_HEADERS",
|
|
361
|
+
"true").lower() == "true",
|
|
362
|
+
"request_logging_config": request_logging_config,
|
|
363
|
+
"response_logging_config": response_logging_config,
|
|
364
|
+
}) if has_logging_env else None
|
|
365
|
+
|
|
366
|
+
@staticmethod
|
|
367
|
+
def _resolve_level(value):
|
|
368
|
+
"""
|
|
369
|
+
Resolve a log level from a string or numeric representation.
|
|
370
|
+
|
|
371
|
+
Args:
|
|
372
|
+
value (str|int): The desired level or its textual name.
|
|
373
|
+
|
|
374
|
+
Returns:
|
|
375
|
+
int: The resolved Python logging level constant.
|
|
376
|
+
|
|
377
|
+
"""
|
|
378
|
+
if value is None:
|
|
379
|
+
return None
|
|
380
|
+
|
|
381
|
+
possible_levels = {
|
|
382
|
+
logging.CRITICAL,
|
|
383
|
+
logging.ERROR,
|
|
384
|
+
logging.WARNING,
|
|
385
|
+
logging.INFO,
|
|
386
|
+
logging.DEBUG,
|
|
387
|
+
logging.NOTSET,
|
|
388
|
+
}
|
|
389
|
+
# handle numeric values (string or int)
|
|
390
|
+
if value.isdigit():
|
|
391
|
+
return int(value) if int(value) in possible_levels else logging.INFO
|
|
392
|
+
# handle string log level names
|
|
393
|
+
if isinstance(value, str):
|
|
394
|
+
level = logging.getLevelName(value.upper())
|
|
395
|
+
if isinstance(level, int):
|
|
396
|
+
return level
|
|
397
|
+
|
|
398
|
+
return logging.INFO
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
"""
|
|
3
|
+
slackwebapi
|
|
4
|
+
|
|
5
|
+
This file was automatically generated by APIMATIC v3.0 (
|
|
6
|
+
https://www.apimatic.io ).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from abc import abstractmethod
|
|
10
|
+
|
|
11
|
+
from apimatic_core_interfaces.logger.logger import Logger
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AbstractLogger(Logger):
|
|
15
|
+
"""An abstract class for custom logger implementation."""
|
|
16
|
+
|
|
17
|
+
@abstractmethod
|
|
18
|
+
def log(self, level, message, params):
|
|
19
|
+
"""
|
|
20
|
+
Log a message with a specified log level and additional parameters.
|
|
21
|
+
|
|
22
|
+
Args:
|
|
23
|
+
level (int): The log level of the message.
|
|
24
|
+
message (str): The message to log.
|
|
25
|
+
params (dict): Additional parameters to include in the log message.
|
|
26
|
+
|
|
27
|
+
"""
|
|
28
|
+
...
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
# ruff: noqa: D104 | Missing docstring in public package
|
|
2
|
+
# ruff: noqa: RUF022 | `__all__` is not sorted
|
|
3
|
+
__all__ = [
|
|
4
|
+
"admin_conversations_archive_schema",
|
|
5
|
+
"admin_conversations_convert_to_private_schema",
|
|
6
|
+
"admin_conversations_create_schema",
|
|
7
|
+
"admin_conversations_delete_schema",
|
|
8
|
+
"admin_conversations_get_conversation_prefs_schema",
|
|
9
|
+
"admin_conversations_get_teams_schema",
|
|
10
|
+
"admin_conversations_invite_schema",
|
|
11
|
+
"admin_conversations_rename_schema",
|
|
12
|
+
"admin_conversations_rename_schema_1",
|
|
13
|
+
"admin_conversations_search_schema",
|
|
14
|
+
"admin_conversations_set_conversation_prefs_schema",
|
|
15
|
+
"admin_conversations_unarchive_schema",
|
|
16
|
+
"api_method_users_get_presence",
|
|
17
|
+
"api_permissions_scopes_list_success_schema",
|
|
18
|
+
"api_test_success_schema",
|
|
19
|
+
"app_home",
|
|
20
|
+
"apps_permissions_info_schema",
|
|
21
|
+
"apps_permissions_request_schema",
|
|
22
|
+
"apps_permissions_resources_list_success_schema",
|
|
23
|
+
"apps_uninstall_schema",
|
|
24
|
+
"attachment",
|
|
25
|
+
"auth_revoke_schema",
|
|
26
|
+
"auth_test_success_schema",
|
|
27
|
+
"block_kit_block",
|
|
28
|
+
"bot",
|
|
29
|
+
"bot_profile_object",
|
|
30
|
+
"bots_info_schema",
|
|
31
|
+
"can_thread",
|
|
32
|
+
"channel",
|
|
33
|
+
"channel_object",
|
|
34
|
+
"chat_delete_scheduled_message_schema",
|
|
35
|
+
"chat_delete_success_schema",
|
|
36
|
+
"chat_get_permalink_success_schema",
|
|
37
|
+
"chat_me_message_schema",
|
|
38
|
+
"chat_post_ephemeral_success_schema",
|
|
39
|
+
"chat_post_message_success_schema",
|
|
40
|
+
"chat_schedule_message_success_schema",
|
|
41
|
+
"chat_scheduled_messages_list_schema",
|
|
42
|
+
"chat_unfurl_success_schema",
|
|
43
|
+
"chat_update_success_schema",
|
|
44
|
+
"conversations_archive_success_schema",
|
|
45
|
+
"conversations_close_success_schema",
|
|
46
|
+
"conversations_create_success_schema",
|
|
47
|
+
"conversations_history_success_schema",
|
|
48
|
+
"conversations_info_success_schema",
|
|
49
|
+
"conversations_invite_error_schema",
|
|
50
|
+
"conversations_join_success_schema",
|
|
51
|
+
"conversations_kick_success_schema",
|
|
52
|
+
"conversations_leave_success_schema",
|
|
53
|
+
"conversations_list_success_schema",
|
|
54
|
+
"conversations_mark_success_schema",
|
|
55
|
+
"conversations_members_success_schema",
|
|
56
|
+
"conversations_open_success_schema",
|
|
57
|
+
"conversations_rename_success_schema",
|
|
58
|
+
"conversations_replies_success_schema",
|
|
59
|
+
"conversations_set_purpose_success_schema",
|
|
60
|
+
"conversations_set_topic_success_schema",
|
|
61
|
+
"conversations_unarchive_success_schema",
|
|
62
|
+
"current",
|
|
63
|
+
"default_success_template",
|
|
64
|
+
"dialog_open_schema",
|
|
65
|
+
"dnd_end_dnd_schema",
|
|
66
|
+
"dnd_end_snooze_schema",
|
|
67
|
+
"dnd_info_schema",
|
|
68
|
+
"dnd_set_snooze_schema",
|
|
69
|
+
"error",
|
|
70
|
+
"error_1",
|
|
71
|
+
"error_10",
|
|
72
|
+
"error_11",
|
|
73
|
+
"error_12",
|
|
74
|
+
"error_13",
|
|
75
|
+
"error_14",
|
|
76
|
+
"error_16",
|
|
77
|
+
"error_17",
|
|
78
|
+
"error_18",
|
|
79
|
+
"error_19",
|
|
80
|
+
"error_2",
|
|
81
|
+
"error_20",
|
|
82
|
+
"error_21",
|
|
83
|
+
"error_22",
|
|
84
|
+
"error_23",
|
|
85
|
+
"error_24",
|
|
86
|
+
"error_25",
|
|
87
|
+
"error_26",
|
|
88
|
+
"error_27",
|
|
89
|
+
"error_28",
|
|
90
|
+
"error_29",
|
|
91
|
+
"error_3",
|
|
92
|
+
"error_30",
|
|
93
|
+
"error_31",
|
|
94
|
+
"error_32",
|
|
95
|
+
"error_33",
|
|
96
|
+
"error_34",
|
|
97
|
+
"error_35",
|
|
98
|
+
"error_37",
|
|
99
|
+
"error_38",
|
|
100
|
+
"error_39",
|
|
101
|
+
"error_4",
|
|
102
|
+
"error_40",
|
|
103
|
+
"error_41",
|
|
104
|
+
"error_42",
|
|
105
|
+
"error_43",
|
|
106
|
+
"error_44",
|
|
107
|
+
"error_45",
|
|
108
|
+
"error_46",
|
|
109
|
+
"error_48",
|
|
110
|
+
"error_49",
|
|
111
|
+
"error_5",
|
|
112
|
+
"error_50",
|
|
113
|
+
"error_51",
|
|
114
|
+
"error_52",
|
|
115
|
+
"error_53",
|
|
116
|
+
"error_54",
|
|
117
|
+
"error_55",
|
|
118
|
+
"error_56",
|
|
119
|
+
"error_57",
|
|
120
|
+
"error_58",
|
|
121
|
+
"error_59",
|
|
122
|
+
"error_6",
|
|
123
|
+
"error_60",
|
|
124
|
+
"error_61",
|
|
125
|
+
"error_62",
|
|
126
|
+
"error_63",
|
|
127
|
+
"error_64",
|
|
128
|
+
"error_65",
|
|
129
|
+
"error_66",
|
|
130
|
+
"error_67",
|
|
131
|
+
"error_68",
|
|
132
|
+
"error_69",
|
|
133
|
+
"error_7",
|
|
134
|
+
"error_70",
|
|
135
|
+
"error_71",
|
|
136
|
+
"error_74",
|
|
137
|
+
"error_75",
|
|
138
|
+
"error_77",
|
|
139
|
+
"error_78",
|
|
140
|
+
"error_8",
|
|
141
|
+
"error_81",
|
|
142
|
+
"error_82",
|
|
143
|
+
"error_84",
|
|
144
|
+
"error_86",
|
|
145
|
+
"error_89",
|
|
146
|
+
"error_9",
|
|
147
|
+
"error_92",
|
|
148
|
+
"error_93",
|
|
149
|
+
"error_94",
|
|
150
|
+
"error_95",
|
|
151
|
+
"error_96",
|
|
152
|
+
"error_97",
|
|
153
|
+
"error_98",
|
|
154
|
+
"error_99",
|
|
155
|
+
"errors_is_returned_when_an_error_associates_an_user",
|
|
156
|
+
"external_org_migrations",
|
|
157
|
+
"file_comment_object",
|
|
158
|
+
"file_object",
|
|
159
|
+
"files_comments_delete_schema",
|
|
160
|
+
"files_delete_schema",
|
|
161
|
+
"files_info_schema",
|
|
162
|
+
"files_list_schema",
|
|
163
|
+
"files_revoke_public_url_schema",
|
|
164
|
+
"files_shared_public_url_schema",
|
|
165
|
+
"files_upload_schema",
|
|
166
|
+
"group",
|
|
167
|
+
"icons",
|
|
168
|
+
"icons_1",
|
|
169
|
+
"im",
|
|
170
|
+
"info",
|
|
171
|
+
"log",
|
|
172
|
+
"login",
|
|
173
|
+
"message",
|
|
174
|
+
"message_object",
|
|
175
|
+
"message_object_1",
|
|
176
|
+
"migration_exchange_success_schema",
|
|
177
|
+
"mpim",
|
|
178
|
+
"mself",
|
|
179
|
+
"mtype",
|
|
180
|
+
"oauth_provider_error",
|
|
181
|
+
"oauth_scope",
|
|
182
|
+
"oauth_token",
|
|
183
|
+
"objs_enterprise_user",
|
|
184
|
+
"objs_icon",
|
|
185
|
+
"objs_primary_owner",
|
|
186
|
+
"objs_reminder",
|
|
187
|
+
"objs_team_profile_field",
|
|
188
|
+
"objs_team_profile_field_option",
|
|
189
|
+
"objs_user_profile_short",
|
|
190
|
+
"paging_object",
|
|
191
|
+
"pins_add_schema",
|
|
192
|
+
"pins_remove_schema",
|
|
193
|
+
"plan",
|
|
194
|
+
"prefs",
|
|
195
|
+
"prefs_1",
|
|
196
|
+
"profile",
|
|
197
|
+
"profile_1",
|
|
198
|
+
"purpose",
|
|
199
|
+
"reaction_object",
|
|
200
|
+
"reactions_add_schema",
|
|
201
|
+
"reactions_list_schema",
|
|
202
|
+
"reactions_remove_schema",
|
|
203
|
+
"reminders_add_schema",
|
|
204
|
+
"reminders_complete_schema",
|
|
205
|
+
"reminders_delete_schema",
|
|
206
|
+
"reminders_info_schema",
|
|
207
|
+
"reminders_list_schema",
|
|
208
|
+
"resource",
|
|
209
|
+
"resources_in_info_from_apps_permissions_info",
|
|
210
|
+
"response_metadata",
|
|
211
|
+
"response_metadata_3",
|
|
212
|
+
"rtm_connect_schema",
|
|
213
|
+
"scheduled_message",
|
|
214
|
+
"scopes",
|
|
215
|
+
"shares",
|
|
216
|
+
"sso_provider",
|
|
217
|
+
"stars_add_schema",
|
|
218
|
+
"stars_list_schema",
|
|
219
|
+
"stars_remove_schema",
|
|
220
|
+
"subteam_usergroup_object",
|
|
221
|
+
"team",
|
|
222
|
+
"team_1",
|
|
223
|
+
"team_access_logs_schema",
|
|
224
|
+
"team_info_schema",
|
|
225
|
+
"team_integration_logs_schema",
|
|
226
|
+
"team_object",
|
|
227
|
+
"team_profile_get_success_schema",
|
|
228
|
+
"topic",
|
|
229
|
+
"user_profile_object",
|
|
230
|
+
"usergroups_create_schema",
|
|
231
|
+
"usergroups_disable_schema",
|
|
232
|
+
"usergroups_enable_schema",
|
|
233
|
+
"usergroups_list_schema",
|
|
234
|
+
"usergroups_update_schema",
|
|
235
|
+
"usergroups_users_list_schema",
|
|
236
|
+
"usergroups_users_update_schema",
|
|
237
|
+
"users_conversations_success_schema",
|
|
238
|
+
"users_delete_photo_schema",
|
|
239
|
+
"users_info_success_schema",
|
|
240
|
+
"users_list_schema",
|
|
241
|
+
"users_lookup_by_email_success_schema",
|
|
242
|
+
"users_profile_get_schema",
|
|
243
|
+
"users_profile_set_schema",
|
|
244
|
+
"users_set_active_schema",
|
|
245
|
+
"users_set_photo_schema",
|
|
246
|
+
"users_set_presence_schema",
|
|
247
|
+
"who_can_post",
|
|
248
|
+
]
|