symphony_bdk_python 2.7.0__tar.gz
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.
- symphony_bdk_python-2.7.0/LICENSE +201 -0
- symphony_bdk_python-2.7.0/PKG-INFO +101 -0
- symphony_bdk_python-2.7.0/README.md +72 -0
- symphony_bdk_python-2.7.0/pyproject.toml +65 -0
- symphony_bdk_python-2.7.0/symphony/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/__init__.py +11 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/__init__.py +2 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/api.py +67 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/command.py +130 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/exception.py +7 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/form.py +46 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/help_command.py +22 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/parsing/arguments.py +86 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/parsing/command_token.py +155 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/parsing/input_tokenizer.py +105 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/parsing/match_result.py +29 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/parsing/message_entities.py +73 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/parsing/slash_command_pattern.py +115 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/registry.py +122 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/activity/user_joined_room.py +38 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/__init__.py +2 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/auth_session.py +167 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/authenticator_factory.py +101 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/bot_authenticator.py +75 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/exception.py +21 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/ext_app_authenticator.py +166 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/jwt_helper.py +74 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/obo_authenticator.py +145 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/auth/tokens_repository.py +38 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/client/__init__.py +5 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/client/api_client_factory.py +201 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/client/trace_id.py +108 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/__init__.py +2 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/exception.py +14 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/loader.py +80 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_app_config.py +13 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_authentication_config.py +47 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_bot_config.py +12 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_certificate_config.py +37 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_client_config.py +89 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_config.py +46 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_datafeed_config.py +48 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_datahose_config.py +24 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_retry_config.py +25 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_rsa_key_config.py +63 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_server_config.py +80 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/config/model/bdk_ssl_config.py +15 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/extension.py +129 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/retry/__init__.py +52 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/retry/_asyncio.py +124 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/retry/strategy.py +138 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/__init__.py +2 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/application/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/application/application_service.py +212 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/connection/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/connection/connection_service.py +155 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/connection/model/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/connection/model/connection_status.py +12 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/abstract_ackId_event_loop.py +72 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/abstract_datafeed_loop.py +200 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/abstract_datahose_loop.py +46 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/datafeed_loop_v1.py +89 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/datafeed_loop_v2.py +110 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/datahose_loop.py +62 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/exception.py +7 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/on_disk_datafeed_id_repository.py +70 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/datafeed/real_time_event_listener.py +154 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/exception.py +12 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/health/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/health/health_service.py +45 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/message/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/message/message_parser.py +101 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/message/message_service.py +512 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/message/messageml_util.py +51 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/message/model.py +114 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/message/multi_attachments_messages_api.py +368 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/obo_services.py +78 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/pagination.py +81 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/presence/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/presence/presence_service.py +187 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/session/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/session/session_service.py +36 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/signal/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/signal/signal_service.py +203 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/stream/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/stream/stream_service.py +390 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/stream/stream_util.py +26 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/user/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/user/model/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/user/model/delegate_action_enum.py +9 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/user/model/role_id.py +26 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/user/user_service.py +900 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service/user/user_util.py +59 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/service_factory.py +295 -0
- symphony_bdk_python-2.7.0/symphony/bdk/core/symphony_bdk.py +275 -0
- symphony_bdk_python-2.7.0/symphony/bdk/ext/__init__.py +0 -0
- symphony_bdk_python-2.7.0/symphony/bdk/ext/group.py +219 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/__init__.py +27 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/attachments_api.py +520 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/audit_trail_api.py +222 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/datafeed_api.py +1521 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/dlp_policies_and_dictionary_management_api.py +3213 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/messages_api.py +2495 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/share_api.py +352 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/signals_api.py +1341 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/system_api.py +560 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/util_api.py +333 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_api/violations_api.py +1188 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/ack_id.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/agent_info.py +291 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/attachment_info.py +273 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/base_message.py +284 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/base_signal.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/channel_subscriber.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/channel_subscriber_response.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/channel_subscription_error.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/channel_subscription_response.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/connection_request_message.py +358 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/connection_request_message_all_of.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/datafeed.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/error.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/import_response.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/import_response_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/imported_message.py +294 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/message.py +338 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/message_all_of.py +267 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/message_import_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/message_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/message_search_query.py +301 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/message_submission.py +265 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/pagination.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/pagination_cursors.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_created_message.py +380 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_created_message_all_of.py +304 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_deactivated_message.py +333 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_deactivated_message_all_of.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_member_demoted_from_owner_message.py +338 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_member_demoted_from_owner_message_all_of.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_member_promoted_to_owner_message.py +338 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_member_promoted_to_owner_message_all_of.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_reactivated_message.py +333 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_reactivated_message_all_of.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_tag.py +267 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_updated_message.py +375 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/room_updated_message_all_of.py +299 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/share_article.py +324 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/share_content.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/signal.py +335 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/signal_all_of.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/signal_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/simple_message.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/success_response.py +265 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/user_joined_room_message.py +338 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/user_joined_room_message_all_of.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/user_left_room_message.py +343 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/user_left_room_message_all_of.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_audit_trail_initiator_list.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_audit_trail_initiator_response.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_content_type.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary_content.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary_metadata.py +285 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary_metadata_collection_response.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary_metadata_create_request.py +267 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary_metadata_response.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary_metadata_update_request.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_dictionary_ref.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_matched_policy.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_matched_policy_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_outcome.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_policies_collection_response.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_policy.py +323 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_policy_request.py +284 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_policy_response.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_signal.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_stream.py +356 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_violation.py +313 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_violation_message.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_violation_message_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_violation_signal.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_violation_signal_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_violation_stream.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_dlp_violation_stream_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v1_health_check_response.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_base_message.py +311 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_error.py +272 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_health_check_response.py +336 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_import_response.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_import_response_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_imported_message.py +299 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_message.py +345 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_message_all_of.py +275 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_message_import_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_message_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v2_message_submission.py +273 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_dictionary_meta.py +273 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_file_classifier_config.py +267 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_file_extension_config.py +267 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_file_password_config.py +267 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_file_size_config.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_policies_collection_response.py +279 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_policy.py +324 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_policy_applies_to.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_policy_request.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_policy_response.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_rule.py +308 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_text_match_config.py +275 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_violation.py +304 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_violation_message.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_violation_message_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_violation_signal.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_violation_signal_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_violation_stream.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_dlp_violation_stream_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_health.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_health_auth_type.py +282 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_health_component.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v3_health_status.py +282 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_attachment_info.py +282 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_connection_accepted.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_connection_requested.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_event.py +291 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_event_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_import_response.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_import_response_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_imported_message.py +308 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_imported_message_attachment.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_initiator.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_instant_message_created.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_key_value_pair.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_message.py +358 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_message_blast_response.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_message_import_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_message_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_message_sent.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_message_suppressed.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_payload.py +364 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_room_created.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_room_deactivated.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_room_member_demoted_from_owner.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_room_member_promoted_to_owner.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_room_properties.py +321 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_room_reactivated.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_room_updated.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_shared_post.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_stream.py +284 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_symphony_elements_action.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_thumbnail_info.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_user.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_user_joined_room.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_user_left_room.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v4_user_requested_to_join_room.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v5_datafeed.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v5_datafeed_create_body.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v5_datafeed_event_type.py +185 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v5_datafeed_type.py +184 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v5_event_list.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/agent_model/v5_events_read_body.py +286 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/api_client.py +857 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_api/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_api/authentication_api.py +164 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_api/certificate_authentication_api.py +800 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_api/certificate_pod_api.py +153 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/error.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/extension_app_authenticate_request.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/extension_app_tokens.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/obo_auth_response.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/pod_certificate.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/success_response.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/auth_model/token.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/configuration.py +445 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/exceptions.py +159 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_api/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_api/group_api.py +1116 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_api/type_api.py +349 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/add_member.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/avatar.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/base_group.py +288 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/base_profile.py +342 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/base_type.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/create_group.py +382 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/create_group_all_of.py +301 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/error.py +277 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/group_implicit_connection.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/group_interaction_transfer.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/group_list.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/group_visibility_restriction.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/implicit_connection.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/interaction_control.py +279 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/interaction_transfer.py +284 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/member.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/membership_control.py +283 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/owner.py +283 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/pagination.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/pagination_cursors.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/profile.py +408 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/profile_all_of.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/profile_control.py +290 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/read_group.py +419 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/read_group_all_of.py +338 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/read_member.py +329 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/read_member_all_of.py +265 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/sort_order.py +282 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/status.py +282 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/transfer_view.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/type.py +350 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/type_all_of.py +273 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/type_list.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/update_group.py +405 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/update_group_all_of.py +275 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/upload_avatar.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/group_model/visibility_restriction.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_api/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_api/authentication_api.py +947 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/authenticate_extension_app_request.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/authenticate_request.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/error.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/extension_app_tokens.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/jwks.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/jwks_entry.py +251 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/jwt_token.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/login_model/token.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/model_utils.py +2036 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/app_entitlement_api.py +734 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/application_api.py +596 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/connection_api.py +874 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/default_api.py +893 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/disclaimer_api.py +439 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/info_barriers_api.py +736 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/message_api.py +175 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/message_suppression_api.py +175 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/pod_api.py +395 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/presence_api.py +1274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/room_membership_api.py +1201 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/security_api.py +1163 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/session_api.py +165 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/streams_api.py +2209 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/system_api.py +703 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/user_api.py +3485 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_api/users_api.py +503 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/__init__.py +1 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_justified_action.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_justified_user_action.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_stream_attributes.py +199 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_stream_filter.py +210 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_stream_info.py +190 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_stream_info_list.py +183 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_stream_list.py +188 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/admin_stream_type_enum.py +172 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/app_authentication_key.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/app_authentication_keys.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/app_notification.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/app_properties.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/app_property.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/application_detail.py +305 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/application_info.py +280 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/assignee_candidate.py +289 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/assignee_candidates.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/attachment_preview.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/avatar.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/avatar_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/avatar_update.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/bulk_action_result.py +265 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/cert_info.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/cert_info_item.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert_attributes.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert_detail.py +273 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert_info.py +286 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert_info_list.py +278 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert_status.py +262 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert_type.py +262 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/company_cert_type_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/conversation_specific_stream_attributes.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/delegate_action.py +265 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/disclaimer.py +300 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/disclaimer_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/download_receipt_count.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/error.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/faceted_match_count.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/feature.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/feature_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/file_extension.py +280 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/file_extensions_response.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/followers_list.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/followers_list_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/following_list_response.py +269 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/group.py +286 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/group_item.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/group_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/group_role_scope.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/im_system_info.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/immutable_room_attributes.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/integer_list.py +278 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/languages.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/member_info.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/membership_data.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/membership_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_detail.py +303 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_details.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_download_receipt_count.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_ids.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_ids_from_stream.py +179 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_metadata_response.py +279 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_metadata_response_parent.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_receipt_detail.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_receipt_detail_response.py +312 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_status.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_status_user.py +286 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_stream.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_suppression_response.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/message_user.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/name_value_pair.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/pagination.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/pagination_cursors.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/password.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/password_reset.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/pod_app_entitlement.py +293 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/pod_app_entitlement_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/pod_certificate.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/policy.py +290 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/policy_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/presence.py +177 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/product.py +295 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/product_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/protocol.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/role.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/role_detail.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/role_detail_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/role_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_attributes.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_create.py +176 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_detail.py +273 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_search_criteria.py +303 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_search_results.py +194 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_specific_stream_attributes.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_system_info.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/room_tag.py +267 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/session_info.py +167 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/stream.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/stream_attachment_item.py +294 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/stream_attachment_response.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/stream_attributes.py +288 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/stream_filter.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/stream_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/stream_type.py +262 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/string_id.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/string_list.py +278 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/success_response.py +265 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user.py +171 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_app_entitlement.py +294 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_app_entitlement_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_app_entitlement_patch.py +295 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_app_entitlement_patch_enum.py +262 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_app_entitlements_patch_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_attributes.py +341 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_compp.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_connection.py +282 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_connection_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_connection_request.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_create.py +180 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_data.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_detail.py +302 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_detail_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_error.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_filter.py +270 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_assignee.py +301 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_assignee_response.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_assignee_update.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_assignment_response.py +301 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_create.py +277 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_data.py +276 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_membership_data.py +296 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_membership_request.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_membership_response.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_membership_response_data.py +296 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_membership_update.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_response.py +301 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_response_list.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_group_update.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_id.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_id_list.py +278 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_info.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_name.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_name_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_search_filter.py +294 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_search_query.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_search_results.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_status.py +275 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_suspension.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_system_info.py +310 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/user_v2.py +346 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v1_im_attributes.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v1_im_detail.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_admin_stream_attributes.py +301 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_admin_stream_filter.py +289 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_admin_stream_info.py +294 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_admin_stream_info_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_admin_stream_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_admin_stream_type.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_conversation_specific_stream_attributes.py +259 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_member_info.py +279 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_member_info_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_member_user_detail.py +291 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_membership_list.py +274 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_presence.py +320 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_presence_all_of.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_presence_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_presence_status.py +261 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_room_attributes.py +198 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_room_detail.py +176 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_room_search_criteria.py +356 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_room_search_criteria_all_of.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_room_specific_stream_attributes.py +264 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_stream_attributes.py +298 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_stream_type.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_attributes.py +384 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_create.py +271 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_detail.py +302 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_detail_list.py +281 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_key_request.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_list.py +266 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_presence.py +315 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v2_user_presence_all_of.py +256 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v3_room_attributes.py +324 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v3_room_detail.py +273 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/pod_model/v3_room_search_results.py +288 -0
- symphony_bdk_python-2.7.0/symphony/bdk/gen/rest.py +250 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2021 Symphony LLC
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: symphony_bdk_python
|
|
3
|
+
Version: 2.7.0
|
|
4
|
+
Summary: Symphony Bot Development Kit for Python
|
|
5
|
+
Home-page: https://github.com/finos/symphony-bdk-python
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Author: Symphony Platform Solutions
|
|
8
|
+
Author-email: symphony@finos.org
|
|
9
|
+
Requires-Python: >=3.8,<4.0
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Requires-Dist: PyJWT (>=2.3.0,<3.0.0)
|
|
17
|
+
Requires-Dist: aiohttp (>=3.8.1,<4.0.0)
|
|
18
|
+
Requires-Dist: cryptography (>=41.0.3,<42.0.0)
|
|
19
|
+
Requires-Dist: defusedxml (>=0.7.1,<0.8.0)
|
|
20
|
+
Requires-Dist: docutils (==0.16)
|
|
21
|
+
Requires-Dist: nulltype (>=2.3.1,<3.0.0)
|
|
22
|
+
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
|
|
23
|
+
Requires-Dist: pyyaml (>=6.0,<7.0)
|
|
24
|
+
Requires-Dist: tenacity (>=8.0.1,<9.0.0)
|
|
25
|
+
Requires-Dist: urllib3 (>=1.26.9,<2.0.0)
|
|
26
|
+
Project-URL: Documentation, https://symphony-bdk-python.finos.org/
|
|
27
|
+
Project-URL: Repository, https://github.com/finos/symphony-bdk-python
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
[](https://finosfoundation.atlassian.net/wiki/display/FINOS/Incubating)
|
|
31
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
32
|
+
[](https://www.python.org/downloads/release/python-3)
|
|
33
|
+
[](https://pypi.org/project/symphony-bdk-python/)
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
# Symphony BDK for Python
|
|
37
|
+
|
|
38
|
+
This is the Symphony BDK for Python to help develop bots and interact with the [Symphony REST APIs](https://developers.symphony.com/restapi/reference).
|
|
39
|
+
|
|
40
|
+
## Installation and getting started
|
|
41
|
+
The [reference documentation](https://symphony-bdk-python.finos.org/) includes detailed
|
|
42
|
+
installation instructions as well as a comprehensive
|
|
43
|
+
[getting started](https://symphony-bdk-python.finos.org/markdown/getting_started.html)
|
|
44
|
+
guide.
|
|
45
|
+
|
|
46
|
+
## Build from source
|
|
47
|
+
|
|
48
|
+
The Symphony BDK uses and requires Python 3.8 or higher. Be sure you have it installed before going further.
|
|
49
|
+
|
|
50
|
+
We use [poetry](https://python-poetry.org/) in order to manage dependencies, build, run tests and publish.
|
|
51
|
+
To install poetry, follow instructions [here](https://python-poetry.org/docs/#installation).
|
|
52
|
+
|
|
53
|
+
On the first time, run `poetry install`. Then run `poetry build` to build the sdist and wheel packages.
|
|
54
|
+
To run the tests, use `poetry run pytest`.
|
|
55
|
+
|
|
56
|
+
It is possible to run pylint scan locally (on a specific file or package) executing the following command:
|
|
57
|
+
`poetry run pylint <module_name>`.
|
|
58
|
+
|
|
59
|
+
To generate locally the Sphinx documentation, run: `cd docsrc && make html`.
|
|
60
|
+
|
|
61
|
+
## Roadmap
|
|
62
|
+
|
|
63
|
+
Our next milestone is the [2.5.x](https://github.com/finos/symphony-bdk-python/milestone/6) one.
|
|
64
|
+
It will only consist in delivering the next improvements and bug fixes of the BDK.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## Contributing
|
|
68
|
+
In order to get in touch with the project team, please open a [GitHub Issue](https://github.com/finos/symphony-bdk-python/issues).
|
|
69
|
+
Alternatively, you can email/subscribe to [symphony@finos.org](https://groups.google.com/a/finos.org/g/symphony).
|
|
70
|
+
|
|
71
|
+
1. Fork it
|
|
72
|
+
2. Create your feature branch (`git checkout -b feature/fooBar`)
|
|
73
|
+
3. Read our [contribution guidelines](CONTRIBUTING.md) and [Community Code of Conduct](https://www.finos.org/code-of-conduct)
|
|
74
|
+
4. Commit your changes (`git commit -am 'Add some fooBar'`)
|
|
75
|
+
5. Push to the branch (`git push origin feature/fooBar`)
|
|
76
|
+
6. Create a new Pull Request
|
|
77
|
+
|
|
78
|
+
_NOTE:_ Commits and pull requests to FINOS repositories will only be accepted from those contributors with an active,
|
|
79
|
+
executed Individual Contributor License Agreement (ICLA) with FINOS OR who are covered under an existing and active
|
|
80
|
+
Corporate Contribution License Agreement (CCLA) executed with FINOS.
|
|
81
|
+
Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS Clabot tool.
|
|
82
|
+
Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.
|
|
83
|
+
|
|
84
|
+
*Need an ICLA? Unsure if you are covered under an existing CCLA? Email [help@finos.org](mailto:help@finos.org)*
|
|
85
|
+
|
|
86
|
+
### Update generated code
|
|
87
|
+
While contributing to the project, you might need to update the generated code.
|
|
88
|
+
Python BDK uses [OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator/) to generate code. In order to customise the templates, a fork has been created in [https://github.com/SymphonyPlatformSolutions/openapi-generator/tree/sym-python-5.5.0](https://github.com/SymphonyPlatformSolutions/openapi-generator/tree/sym-python-5.5.0).
|
|
89
|
+
Here are the steps to follow:
|
|
90
|
+
- Checkout the latest branch of the fork (currently [sym-python-5.5.0](https://github.com/SymphonyPlatformSolutions/openapi-generator/tree/sym-python-5.5.0))
|
|
91
|
+
- Update the fork source code, review and merge it
|
|
92
|
+
- Generate a jar file in `openapi-generatormodules/openapi-generator-cli/target/openapi-generator-cli.jar`:
|
|
93
|
+
- Using maven: `mvn clean install -Dmaven.test.skip=true && mvn clean package -Dmaven.test.skip=true`. _You can also use IntelliJ's build button to build the project and generate the jar_
|
|
94
|
+
- Copy the jar in Python BDK repository `symphony-api-client-python/api_client_generation/openapi-generator-cli.jar`
|
|
95
|
+
- Execute the generation script `./generate.sh` and commit and push you new code along with the new jar file.
|
|
96
|
+
## License
|
|
97
|
+
Copyright 2021 Symphony LLC
|
|
98
|
+
|
|
99
|
+
Distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
|
100
|
+
|
|
101
|
+
SPDX-License-Identifier: [Apache-2.0](https://spdx.org/licenses/Apache-2.0)
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
[](https://finosfoundation.atlassian.net/wiki/display/FINOS/Incubating)
|
|
2
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
3
|
+
[](https://www.python.org/downloads/release/python-3)
|
|
4
|
+
[](https://pypi.org/project/symphony-bdk-python/)
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
# Symphony BDK for Python
|
|
8
|
+
|
|
9
|
+
This is the Symphony BDK for Python to help develop bots and interact with the [Symphony REST APIs](https://developers.symphony.com/restapi/reference).
|
|
10
|
+
|
|
11
|
+
## Installation and getting started
|
|
12
|
+
The [reference documentation](https://symphony-bdk-python.finos.org/) includes detailed
|
|
13
|
+
installation instructions as well as a comprehensive
|
|
14
|
+
[getting started](https://symphony-bdk-python.finos.org/markdown/getting_started.html)
|
|
15
|
+
guide.
|
|
16
|
+
|
|
17
|
+
## Build from source
|
|
18
|
+
|
|
19
|
+
The Symphony BDK uses and requires Python 3.8 or higher. Be sure you have it installed before going further.
|
|
20
|
+
|
|
21
|
+
We use [poetry](https://python-poetry.org/) in order to manage dependencies, build, run tests and publish.
|
|
22
|
+
To install poetry, follow instructions [here](https://python-poetry.org/docs/#installation).
|
|
23
|
+
|
|
24
|
+
On the first time, run `poetry install`. Then run `poetry build` to build the sdist and wheel packages.
|
|
25
|
+
To run the tests, use `poetry run pytest`.
|
|
26
|
+
|
|
27
|
+
It is possible to run pylint scan locally (on a specific file or package) executing the following command:
|
|
28
|
+
`poetry run pylint <module_name>`.
|
|
29
|
+
|
|
30
|
+
To generate locally the Sphinx documentation, run: `cd docsrc && make html`.
|
|
31
|
+
|
|
32
|
+
## Roadmap
|
|
33
|
+
|
|
34
|
+
Our next milestone is the [2.5.x](https://github.com/finos/symphony-bdk-python/milestone/6) one.
|
|
35
|
+
It will only consist in delivering the next improvements and bug fixes of the BDK.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Contributing
|
|
39
|
+
In order to get in touch with the project team, please open a [GitHub Issue](https://github.com/finos/symphony-bdk-python/issues).
|
|
40
|
+
Alternatively, you can email/subscribe to [symphony@finos.org](https://groups.google.com/a/finos.org/g/symphony).
|
|
41
|
+
|
|
42
|
+
1. Fork it
|
|
43
|
+
2. Create your feature branch (`git checkout -b feature/fooBar`)
|
|
44
|
+
3. Read our [contribution guidelines](CONTRIBUTING.md) and [Community Code of Conduct](https://www.finos.org/code-of-conduct)
|
|
45
|
+
4. Commit your changes (`git commit -am 'Add some fooBar'`)
|
|
46
|
+
5. Push to the branch (`git push origin feature/fooBar`)
|
|
47
|
+
6. Create a new Pull Request
|
|
48
|
+
|
|
49
|
+
_NOTE:_ Commits and pull requests to FINOS repositories will only be accepted from those contributors with an active,
|
|
50
|
+
executed Individual Contributor License Agreement (ICLA) with FINOS OR who are covered under an existing and active
|
|
51
|
+
Corporate Contribution License Agreement (CCLA) executed with FINOS.
|
|
52
|
+
Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS Clabot tool.
|
|
53
|
+
Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.
|
|
54
|
+
|
|
55
|
+
*Need an ICLA? Unsure if you are covered under an existing CCLA? Email [help@finos.org](mailto:help@finos.org)*
|
|
56
|
+
|
|
57
|
+
### Update generated code
|
|
58
|
+
While contributing to the project, you might need to update the generated code.
|
|
59
|
+
Python BDK uses [OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator/) to generate code. In order to customise the templates, a fork has been created in [https://github.com/SymphonyPlatformSolutions/openapi-generator/tree/sym-python-5.5.0](https://github.com/SymphonyPlatformSolutions/openapi-generator/tree/sym-python-5.5.0).
|
|
60
|
+
Here are the steps to follow:
|
|
61
|
+
- Checkout the latest branch of the fork (currently [sym-python-5.5.0](https://github.com/SymphonyPlatformSolutions/openapi-generator/tree/sym-python-5.5.0))
|
|
62
|
+
- Update the fork source code, review and merge it
|
|
63
|
+
- Generate a jar file in `openapi-generatormodules/openapi-generator-cli/target/openapi-generator-cli.jar`:
|
|
64
|
+
- Using maven: `mvn clean install -Dmaven.test.skip=true && mvn clean package -Dmaven.test.skip=true`. _You can also use IntelliJ's build button to build the project and generate the jar_
|
|
65
|
+
- Copy the jar in Python BDK repository `symphony-api-client-python/api_client_generation/openapi-generator-cli.jar`
|
|
66
|
+
- Execute the generation script `./generate.sh` and commit and push you new code along with the new jar file.
|
|
67
|
+
## License
|
|
68
|
+
Copyright 2021 Symphony LLC
|
|
69
|
+
|
|
70
|
+
Distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
|
71
|
+
|
|
72
|
+
SPDX-License-Identifier: [Apache-2.0](https://spdx.org/licenses/Apache-2.0)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "symphony_bdk_python"
|
|
3
|
+
version = "2.7.0"
|
|
4
|
+
license = "Apache-2.0"
|
|
5
|
+
description = "Symphony Bot Development Kit for Python"
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
authors = ["Symphony Platform Solutions <symphony@finos.org>"]
|
|
8
|
+
repository = "https://github.com/finos/symphony-bdk-python"
|
|
9
|
+
documentation = "https://symphony-bdk-python.finos.org/"
|
|
10
|
+
packages = [
|
|
11
|
+
{ include = "symphony" }
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[tool.poetry.dependencies]
|
|
15
|
+
python = "^3.8"
|
|
16
|
+
nulltype = "^2.3.1"
|
|
17
|
+
python-dateutil = "^2.8.2"
|
|
18
|
+
urllib3 = "^1.26.9"
|
|
19
|
+
aiohttp = "^3.8.1"
|
|
20
|
+
pyyaml = "^6.0"
|
|
21
|
+
PyJWT = "^2.3.0"
|
|
22
|
+
cryptography = "^41.0.3"
|
|
23
|
+
tenacity = "^8.0.1"
|
|
24
|
+
defusedxml = "^0.7.1"
|
|
25
|
+
docutils = "0.16"
|
|
26
|
+
|
|
27
|
+
[tool.poetry.dev-dependencies]
|
|
28
|
+
pytest = "^7.1.1"
|
|
29
|
+
pylint = "^2.6.0"
|
|
30
|
+
pytest-cov = "^3.0.0"
|
|
31
|
+
pytest-asyncio = "^0.18.2"
|
|
32
|
+
Sphinx = "^4.4.0"
|
|
33
|
+
recommonmark = "^0.7.1"
|
|
34
|
+
furo = "^2022.3.4"
|
|
35
|
+
hazelcast-python-client = "^5.0.1"
|
|
36
|
+
safety = "^2.2.0"
|
|
37
|
+
liccheck = "^0.6.2"
|
|
38
|
+
coverage = {version = "^6.0b1", extras = ["toml"]}
|
|
39
|
+
|
|
40
|
+
[build-system]
|
|
41
|
+
requires = ["poetry-core>=1.0.0"]
|
|
42
|
+
build-backend = "poetry.core.masonry.api"
|
|
43
|
+
|
|
44
|
+
[tool.pytest.ini_options]
|
|
45
|
+
addopts = "--junitxml=test-results/junit.xml --cov --cov-report=html"
|
|
46
|
+
testpaths = ["tests"]
|
|
47
|
+
norecursedirs = ["*.egg", ".*", "build", "dist", "venv", "legacy"]
|
|
48
|
+
junit_logging = "all"
|
|
49
|
+
|
|
50
|
+
[tool.coverage.run]
|
|
51
|
+
branch = true
|
|
52
|
+
source = ["symphony"]
|
|
53
|
+
omit = ["symphony/bdk/gen/*"]
|
|
54
|
+
|
|
55
|
+
[tool.coverage.report]
|
|
56
|
+
fail_under = 90.0
|
|
57
|
+
|
|
58
|
+
[tool.liccheck]
|
|
59
|
+
authorized_licenses = [
|
|
60
|
+
"BSD",
|
|
61
|
+
"GNU Library or Lesser General Public License (LGPL)",
|
|
62
|
+
"MIT",
|
|
63
|
+
"Apache Software",
|
|
64
|
+
"Python Software Foundation"
|
|
65
|
+
]
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Symphony BDK core package
|
|
2
|
+
|
|
3
|
+
There is an outstanding issue with aiohttp and Python 3.8+ on Windows. This affects our client when using a
|
|
4
|
+
proxy on Windows with Python 3.8+. As known workaround, the following code is meant to avoid this issue by detecting the
|
|
5
|
+
operating system and setting WindowsSelectorEventLoopPolicy as event loop policy.
|
|
6
|
+
"""
|
|
7
|
+
import asyncio
|
|
8
|
+
import os
|
|
9
|
+
|
|
10
|
+
if os.name == "nt":
|
|
11
|
+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from abc import ABC, abstractmethod
|
|
2
|
+
from typing import TypeVar, Generic
|
|
3
|
+
|
|
4
|
+
from symphony.bdk.gen.agent_model.v4_initiator import V4Initiator
|
|
5
|
+
|
|
6
|
+
C = TypeVar('C') # Context type
|
|
7
|
+
E = TypeVar('E') # Event type
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ActivityContext(Generic[E]):
|
|
11
|
+
"""
|
|
12
|
+
Base class for any activity context holder.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, initiator: V4Initiator, source_event: E):
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
:param initiator: The activity initiator (i.e. the Symphony user that triggered an event in the chat)
|
|
19
|
+
:param source_event: The activity source real-time event.
|
|
20
|
+
"""
|
|
21
|
+
self._initiator = initiator
|
|
22
|
+
self._source_event = source_event
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def initiator(self):
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
:return: The activity initiator (i.e. the Symphony user that triggered an event in the chat)
|
|
29
|
+
"""
|
|
30
|
+
return self._initiator
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def source_event(self):
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
:return: The activity source real-time event.
|
|
37
|
+
"""
|
|
38
|
+
return self._source_event
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class AbstractActivity(ABC, Generic[C]):
|
|
42
|
+
"""
|
|
43
|
+
Base abstract class for activities provided by the BDK. Provides a generic flow to process an incoming chat event.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
@abstractmethod
|
|
47
|
+
def matches(self, context: C) -> bool:
|
|
48
|
+
"""Matches the :py:class:`ActivityContext` to decide whether an :py:class:`AbstractActivity` can be executed
|
|
49
|
+
or not.
|
|
50
|
+
|
|
51
|
+
:param context: an instance of :py:class:`ActivityContext`
|
|
52
|
+
:return: True if activity has to be triggered, False otherwise.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
@abstractmethod
|
|
56
|
+
async def on_activity(self, context: C):
|
|
57
|
+
"""Contains the activity business logic. Executed only if the `matches` method returned a true value.
|
|
58
|
+
|
|
59
|
+
:param context: an instance of :py:class:`ActivityContext`
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
def before_matcher(self, context: C):
|
|
63
|
+
""" This callback can be used to prepare :py:class:`ActivityContext` before actually processing the `matches`
|
|
64
|
+
method.
|
|
65
|
+
|
|
66
|
+
:param context: an instance of :py:class:`ActivityContext`
|
|
67
|
+
"""
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
|
|
3
|
+
from symphony.bdk.core.activity.api import AbstractActivity, ActivityContext
|
|
4
|
+
from symphony.bdk.core.activity.exception import FatalActivityExecutionException
|
|
5
|
+
from symphony.bdk.core.activity.parsing.arguments import Arguments
|
|
6
|
+
from symphony.bdk.core.activity.parsing.command_token import MatchingUserIdMentionToken
|
|
7
|
+
from symphony.bdk.core.activity.parsing.slash_command_pattern import SlashCommandPattern
|
|
8
|
+
from symphony.bdk.core.service.exception import MessageParserError
|
|
9
|
+
from symphony.bdk.core.service.message.message_parser import get_text_content_from_message
|
|
10
|
+
from symphony.bdk.gen.agent_model.v4_initiator import V4Initiator
|
|
11
|
+
from symphony.bdk.gen.agent_model.v4_message_sent import V4MessageSent
|
|
12
|
+
|
|
13
|
+
logger = logging.getLogger(__name__)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CommandContext(ActivityContext[V4MessageSent]):
|
|
17
|
+
"""Default implementation of the :py:class:`ActivityContext` handled by the :py:class:`CommandActivity`.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
def __init__(self, initiator: V4Initiator, source_event: V4MessageSent, bot_display_name: str,
|
|
21
|
+
bot_user_id: int = None):
|
|
22
|
+
self._message_id = source_event.message.message_id
|
|
23
|
+
self._stream_id = source_event.message.stream.stream_id
|
|
24
|
+
self._bot_display_name = bot_display_name
|
|
25
|
+
self._bot_user_id = bot_user_id
|
|
26
|
+
self._arguments = None
|
|
27
|
+
try:
|
|
28
|
+
self._text_content = get_text_content_from_message(source_event.message)
|
|
29
|
+
except MessageParserError as exc:
|
|
30
|
+
raise FatalActivityExecutionException("Unable to parse presentationML") from exc
|
|
31
|
+
super().__init__(initiator, source_event)
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def message_id(self):
|
|
35
|
+
return self._message_id
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def stream_id(self):
|
|
39
|
+
return self._stream_id
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def text_content(self) -> str:
|
|
43
|
+
return self._text_content
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def bot_display_name(self) -> str:
|
|
47
|
+
return self._bot_display_name
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def bot_user_id(self) -> int:
|
|
51
|
+
return self._bot_user_id
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def arguments(self) -> Arguments:
|
|
55
|
+
return self._arguments
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class CommandActivity(AbstractActivity[CommandContext]):
|
|
59
|
+
"""A command activity corresponds to any message sent in a chat where the bot is part of.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
def __init__(self):
|
|
63
|
+
self._bot_user_id = None
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def bot_user_id(self):
|
|
67
|
+
return self._bot_user_id
|
|
68
|
+
|
|
69
|
+
@bot_user_id.setter
|
|
70
|
+
def bot_user_id(self, bot_user_id):
|
|
71
|
+
self._bot_user_id = bot_user_id
|
|
72
|
+
|
|
73
|
+
def matches(self, context: CommandContext) -> bool:
|
|
74
|
+
pass
|
|
75
|
+
|
|
76
|
+
async def on_activity(self, context: CommandContext):
|
|
77
|
+
pass
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class SlashCommandActivity(CommandActivity):
|
|
81
|
+
"""A slash command is a particular CommandActivity with three parameters:
|
|
82
|
+
- the command name
|
|
83
|
+
- if we should mention the bot
|
|
84
|
+
- the callback function
|
|
85
|
+
|
|
86
|
+
The Slash command is triggered if we receive a MESSAGESENT event with message text:
|
|
87
|
+
- "@{bot_display name} {name}" if ``requires_mention_bot`` is True
|
|
88
|
+
- "{name}" otherwise
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
def __init__(self, name, requires_mention_bot, callback, description=""):
|
|
92
|
+
"""
|
|
93
|
+
:param name: the command name
|
|
94
|
+
:param requires_mention_bot: if the command requires the bot mention to trigger the slash command
|
|
95
|
+
:param callback: the coroutine to be executed if message text matches
|
|
96
|
+
"""
|
|
97
|
+
super().__init__()
|
|
98
|
+
self._name = name
|
|
99
|
+
self._command_pattern = SlashCommandPattern(name)
|
|
100
|
+
self._requires_mention_bot = requires_mention_bot
|
|
101
|
+
self._callback = callback
|
|
102
|
+
self._description = description
|
|
103
|
+
|
|
104
|
+
if self._requires_mention_bot:
|
|
105
|
+
# The user id will be loaded in runtime in a lazy way
|
|
106
|
+
self._command_pattern.prepend_token(MatchingUserIdMentionToken(lambda: self.bot_user_id))
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def name(self) -> str:
|
|
110
|
+
return self._name
|
|
111
|
+
|
|
112
|
+
def build_command_description(self) -> str:
|
|
113
|
+
return self._description + " (mention required)" if self._requires_mention_bot \
|
|
114
|
+
else self._description + " (mention not required)"
|
|
115
|
+
|
|
116
|
+
def matches(self, context: CommandContext) -> bool:
|
|
117
|
+
match_result = self._command_pattern.get_match_result(context.source_event.message)
|
|
118
|
+
|
|
119
|
+
if match_result.is_matching and match_result.arguments:
|
|
120
|
+
context._arguments = match_result.arguments
|
|
121
|
+
|
|
122
|
+
return match_result.is_matching
|
|
123
|
+
|
|
124
|
+
async def on_activity(self, context: CommandContext):
|
|
125
|
+
await self._callback(context)
|
|
126
|
+
|
|
127
|
+
def __eq__(self, o: object) -> bool:
|
|
128
|
+
if isinstance(o, SlashCommandActivity):
|
|
129
|
+
return self._name == o._name and self._requires_mention_bot == o._requires_mention_bot
|
|
130
|
+
return False
|