microsoft-teams-api 0.0.1a1__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.
- microsoft_teams_api-0.0.1a1/.gitignore +34 -0
- microsoft_teams_api-0.0.1a1/PKG-INFO +22 -0
- microsoft_teams_api-0.0.1a1/README.md +7 -0
- microsoft_teams_api-0.0.1a1/pyproject.toml +42 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/__init__.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/__init__.py +80 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/activity_params.py +41 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/command/__init__.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/command/command_result.py +53 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/command/command_send.py +49 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/conversation/__init__.py +31 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/conversation/conversation_update.py +62 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/conversation/end_of_conversation.py +39 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/__init__.py +36 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/meeting_end.py +38 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/meeting_participant.py +50 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/meeting_participant_join.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/meeting_participant_leave.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/meeting_start.py +58 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/read_reciept.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/handoff.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/install_update/__init__.py +19 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/install_update/add.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/install_update/remove.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/__init__.py +61 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/adaptive_card/__init__.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/adaptive_card/action.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/config/__init__.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/config/config_fetch.py +26 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/config/config_submit.py +26 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/execute_action.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/file_consent.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/handoff_action.py +34 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message/__init__.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message/submit_action.py +44 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/__init__.py +46 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/anon_query_link.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/card_button_clicked.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/fetch_task.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/query.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/query_link.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/query_setting_url.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/select_item.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/setting.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/message_extension/submit_action.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/sign_in/__init__.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/sign_in/token_exchange.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/sign_in/verify_state.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/tab/__init__.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/tab/tab_fetch.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/tab/tab_submit.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/task/__init__.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/task/task_fetch.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke/task/task_submit.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/invoke_activity.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/message/__init__.py +43 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/message/message.py +268 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/message/message_delete.py +36 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/message/message_reaction.py +79 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/message/message_update.py +112 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/protocols.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/sent_activity.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/trace.py +57 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/typing.py +50 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/utils/__init__.py +11 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/utils/strip_mentions_text.py +77 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/auth/__init__.py +20 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/auth/caller.py +18 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/auth/credentials.py +47 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/auth/json_web_token.py +130 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/auth/token.py +64 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/__init__.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/api_client.py +52 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/base_client.py +35 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/bot/__init__.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/bot/client.py +38 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/bot/params.py +50 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/bot/sign_in_client.py +54 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/bot/token_client.py +121 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/conversation/__init__.py +18 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/conversation/activity.py +114 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/conversation/client.py +153 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/conversation/member.py +65 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/conversation/params.py +61 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/meeting/__init__.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/meeting/client.py +57 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/team/__init__.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/team/client.py +56 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/user/__init__.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/user/client.py +37 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/user/params.py +105 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/clients/user/token_client.py +118 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/__init__.py +119 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/account.py +64 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/action.py +18 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/activity.py +325 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/adaptive_card/__init__.py +30 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/adaptive_card/adaptive_card_action_response.py +86 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/adaptive_card/adaptive_card_authentication.py +13 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/adaptive_card/adaptive_card_invoke_action.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/adaptive_card/adaptive_card_invoke_value.py +29 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/app_based_link_query.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/attachment/__init__.py +38 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/attachment/attachment.py +30 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/attachment/attachment_layout.py +13 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/attachment/card_attachment.py +113 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/cache_info.py +18 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/__init__.py +32 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/animation_card.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/audio_card.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/basic_card.py +34 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/card_action.py +39 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/card_action_type.py +20 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/card_image.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/hero_card.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/media_card.py +56 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/media_url.py +20 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/thumbnail_card.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/thumbnail_url.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/card/video_card.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_data/__init__.py +13 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_data/channel_data.py +56 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_data/channel_info.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_data/notification_info.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_data/settings.py +16 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_data/team_info.py +33 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_data/tenant_info.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/channel_id.py +12 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/config/__init__.py +12 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/config/config_auth.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/config/config_response.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/conversation/__init__.py +10 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/conversation/conversation.py +45 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/conversation/conversation_reference.py +41 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/conversation/conversation_resource.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/custom_base_model.py +50 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/delivery_mode.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/__init__.py +40 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/ai_message_entity.py +13 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/citation_entity.py +182 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/client_info_entity.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/entity.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/mention_entity.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/message_entity.py +28 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/sensitive_usage_entity.py +45 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/entity/stream_info_entity.py +29 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/error.py +38 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/file/__init__.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/file/file_consent_card.py +51 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/file/file_info_card.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/file/file_upload_info.py +29 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/importance.py +14 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/input_hint.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/invoke_response.py +72 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/meetings/__init__.py +16 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/meetings/meeting.py +20 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/meetings/meeting_details.py +36 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/meetings/meeting_info.py +28 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/meetings/meeting_participant.py +25 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/__init__.py +30 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/application_identity_type.py +16 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message.py +72 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_app.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_body.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_conversation.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_from.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_mention.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_reaction.py +25 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_reaction_type.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/message_user.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/message/user_identity_type.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/__init__.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_action.py +58 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_action_response.py +26 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_attachment.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_parameter.py +20 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_query.py +38 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_response.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_result.py +39 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_result_type.py +19 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/messaging_extension/messaging_extension_suggested_action.py +18 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/o365/__init__.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/o365/o365_connector_card_action_query.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/oauth/__init__.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/oauth/oauth_card.py +29 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/sign_in/__init__.py +11 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/sign_in/card.py +36 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/sign_in/exchange_token.py +25 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/sign_in/response.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/sign_in/state_verify_query.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/suggested_actions.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/__init__.py +24 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/tab_context.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/tab_entity_context.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/tab_request.py +23 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/tab_response.py +30 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/tab_response_card.py +22 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/tab_submit.py +30 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/tab/tab_suggested_actions.py +16 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/__init__.py +31 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/task_module_card_response.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/task_module_continue_response.py +19 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/task_module_message_response.py +18 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/task_module_request.py +29 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/task_module_response.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/task_module_response_base.py +15 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/task_module/task_module_task_info.py +45 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/team_details.py +32 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/text_format.py +8 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token/__init__.py +16 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token/post_resource.py +17 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token/request.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token/response.py +35 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token/status.py +27 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token_exchange/__init__.py +18 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token_exchange/invoke_request.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token_exchange/invoke_response.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token_exchange/request.py +21 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token_exchange/resource.py +25 -0
- microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/models/token_exchange/state.py +27 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.egg-info/
|
|
6
|
+
|
|
7
|
+
# Environments
|
|
8
|
+
.env
|
|
9
|
+
.venv
|
|
10
|
+
env/
|
|
11
|
+
venv/
|
|
12
|
+
ENV/
|
|
13
|
+
env.bak/
|
|
14
|
+
venv.bak/
|
|
15
|
+
|
|
16
|
+
# mypy
|
|
17
|
+
.mypy_cache/
|
|
18
|
+
.dmypy.json
|
|
19
|
+
dmypy.json
|
|
20
|
+
|
|
21
|
+
.copilot-instructions.md
|
|
22
|
+
|
|
23
|
+
# other
|
|
24
|
+
.DS_STORE
|
|
25
|
+
*.bak
|
|
26
|
+
*~
|
|
27
|
+
*.tmp
|
|
28
|
+
|
|
29
|
+
ref/
|
|
30
|
+
py.typed
|
|
31
|
+
CLAUDE.md
|
|
32
|
+
|
|
33
|
+
.env.claude/
|
|
34
|
+
.claude/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: microsoft-teams-api
|
|
3
|
+
Version: 0.0.1a1
|
|
4
|
+
Summary: API package for Microsoft Teams
|
|
5
|
+
Project-URL: Homepage, https://github.com/microsoft/teams.py/tree/main/packages/api/src/microsoft/teams/api
|
|
6
|
+
Author-email: Microsoft <TeamsAISDKFeedback@microsoft.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Keywords: agents,ai,bot,microsoft,teams
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Requires-Dist: microsoft-teams-cards
|
|
11
|
+
Requires-Dist: microsoft-teams-common
|
|
12
|
+
Requires-Dist: pydantic>=2.0.0
|
|
13
|
+
Requires-Dist: pyjwt[crypto]>=2.10.0
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
> [!CAUTION]
|
|
17
|
+
> This project is in active development and not ready for production use. It has not been publicly announced yet.
|
|
18
|
+
|
|
19
|
+
# Microsoft Teams API Client
|
|
20
|
+
|
|
21
|
+
Core API client functionality with models and clients for Microsoft Teams integration.
|
|
22
|
+
Provides HTTP abstraction, authentication, and typed models for Teams Bot Framework APIs.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
> [!CAUTION]
|
|
2
|
+
> This project is in active development and not ready for production use. It has not been publicly announced yet.
|
|
3
|
+
|
|
4
|
+
# Microsoft Teams API Client
|
|
5
|
+
|
|
6
|
+
Core API client functionality with models and clients for Microsoft Teams integration.
|
|
7
|
+
Provides HTTP abstraction, authentication, and typed models for Teams Bot Framework APIs.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "microsoft-teams-api"
|
|
3
|
+
version = "0.0.1-alpha.1"
|
|
4
|
+
description = "API package for Microsoft Teams"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
repository = "https://github.com/microsoft/teams.py"
|
|
7
|
+
keywords = ["microsoft", "teams", "ai", "bot", "agents"]
|
|
8
|
+
license = "MIT"
|
|
9
|
+
authors = [
|
|
10
|
+
{ name = "Microsoft", email = "TeamsAISDKFeedback@microsoft.com" }
|
|
11
|
+
]
|
|
12
|
+
requires-python = ">=3.12"
|
|
13
|
+
dependencies = [
|
|
14
|
+
"pydantic>=2.0.0",
|
|
15
|
+
"microsoft-teams-common",
|
|
16
|
+
"microsoft-teams-cards",
|
|
17
|
+
"pyjwt[crypto]>=2.10.0",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[tool.uv.sources]
|
|
21
|
+
"microsoft-teams-common" = { workspace = true }
|
|
22
|
+
"microsoft-teams-cards" = { workspace = true }
|
|
23
|
+
|
|
24
|
+
[project.urls]
|
|
25
|
+
Homepage = "https://github.com/microsoft/teams.py/tree/main/packages/api/src/microsoft/teams/api"
|
|
26
|
+
|
|
27
|
+
[build-system]
|
|
28
|
+
requires = ["hatchling"]
|
|
29
|
+
build-backend = "hatchling.build"
|
|
30
|
+
|
|
31
|
+
[dependency-groups]
|
|
32
|
+
dev = [
|
|
33
|
+
"pytest>=8.0.0",
|
|
34
|
+
"pytest-asyncio>=0.23.0",
|
|
35
|
+
"python-dotenv>=1.0.0",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[tool.hatch.build.targets.wheel]
|
|
39
|
+
packages = ["src/microsoft"]
|
|
40
|
+
|
|
41
|
+
[tool.hatch.build.targets.sdist]
|
|
42
|
+
include = ["src"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from . import activities, auth, clients, models
|
|
7
|
+
from .activities import * # noqa: F403
|
|
8
|
+
from .auth import * # noqa: F403
|
|
9
|
+
from .clients import * # noqa: F403
|
|
10
|
+
from .models import * # noqa: F403
|
|
11
|
+
|
|
12
|
+
# Combine all exports from submodules
|
|
13
|
+
__all__: list[str] = []
|
|
14
|
+
__all__.extend(activities.__all__)
|
|
15
|
+
__all__.extend(auth.__all__)
|
|
16
|
+
__all__.extend(clients.__all__)
|
|
17
|
+
__all__.extend(models.__all__)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Annotated, Union
|
|
7
|
+
|
|
8
|
+
from pydantic import Field, TypeAdapter
|
|
9
|
+
|
|
10
|
+
from . import event, install_update, invoke, message
|
|
11
|
+
from .activity_params import ActivityParams
|
|
12
|
+
from .command import CommandActivity, CommandResultActivity, CommandResultValue, CommandSendActivity, CommandSendValue
|
|
13
|
+
from .conversation import (
|
|
14
|
+
ConversationActivity,
|
|
15
|
+
ConversationChannelData,
|
|
16
|
+
ConversationEventType,
|
|
17
|
+
ConversationUpdateActivity,
|
|
18
|
+
EndOfConversationActivity,
|
|
19
|
+
EndOfConversationCode,
|
|
20
|
+
)
|
|
21
|
+
from .event import * # noqa: F403
|
|
22
|
+
from .event import EventActivity
|
|
23
|
+
from .handoff import HandoffActivity
|
|
24
|
+
from .install_update import * # noqa: F403
|
|
25
|
+
from .install_update import InstallUpdateActivity
|
|
26
|
+
from .invoke import * # noqa: F403
|
|
27
|
+
from .invoke import InvokeActivity
|
|
28
|
+
from .message import * # noqa: F403
|
|
29
|
+
from .message import MessageActivities
|
|
30
|
+
from .sent_activity import SentActivity
|
|
31
|
+
from .trace import TraceActivity
|
|
32
|
+
from .typing import TypingActivity
|
|
33
|
+
|
|
34
|
+
Activity = Annotated[
|
|
35
|
+
Union[
|
|
36
|
+
HandoffActivity,
|
|
37
|
+
TraceActivity,
|
|
38
|
+
TypingActivity,
|
|
39
|
+
CommandActivity,
|
|
40
|
+
ConversationActivity,
|
|
41
|
+
MessageActivities,
|
|
42
|
+
EventActivity,
|
|
43
|
+
InvokeActivity,
|
|
44
|
+
InstallUpdateActivity,
|
|
45
|
+
],
|
|
46
|
+
Field(discriminator="type"),
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
# Use this if you want to validate an incoming activity.
|
|
50
|
+
ActivityTypeAdapter = TypeAdapter[Activity](Activity)
|
|
51
|
+
ActivityTypeAdapter.rebuild()
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# Combine all exports from submodules
|
|
55
|
+
__all__: list[str] = [
|
|
56
|
+
"Activity",
|
|
57
|
+
"ActivityTypeAdapter",
|
|
58
|
+
"CommandSendActivity",
|
|
59
|
+
"CommandResultActivity",
|
|
60
|
+
"CommandSendValue",
|
|
61
|
+
"CommandResultValue",
|
|
62
|
+
"ConversationActivity",
|
|
63
|
+
"ConversationUpdateActivity",
|
|
64
|
+
"ConversationChannelData",
|
|
65
|
+
"EndOfConversationActivity",
|
|
66
|
+
"EndOfConversationCode",
|
|
67
|
+
"EventActivity",
|
|
68
|
+
"HandoffActivity",
|
|
69
|
+
"InstallUpdateActivity",
|
|
70
|
+
"TypingActivity",
|
|
71
|
+
"ConversationEventType",
|
|
72
|
+
"InvokeActivity",
|
|
73
|
+
"TraceActivity",
|
|
74
|
+
"ActivityParams",
|
|
75
|
+
"SentActivity",
|
|
76
|
+
]
|
|
77
|
+
__all__.extend(event.__all__)
|
|
78
|
+
__all__.extend(install_update.__all__)
|
|
79
|
+
__all__.extend(message.__all__)
|
|
80
|
+
__all__.extend(invoke.__all__)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# Union of all activity input types (each defined next to their respective activities)
|
|
7
|
+
from typing import Annotated, Union
|
|
8
|
+
|
|
9
|
+
from pydantic import Field
|
|
10
|
+
|
|
11
|
+
from .command import CommandResultActivityInput, CommandSendActivityInput
|
|
12
|
+
from .conversation import ConversationUpdateActivityInput, EndOfConversationActivityInput
|
|
13
|
+
from .handoff import HandoffActivityInput
|
|
14
|
+
from .message import (
|
|
15
|
+
MessageActivityInput,
|
|
16
|
+
MessageDeleteActivityInput,
|
|
17
|
+
MessageReactionActivityInput,
|
|
18
|
+
MessageUpdateActivityInput,
|
|
19
|
+
)
|
|
20
|
+
from .trace import TraceActivityInput
|
|
21
|
+
from .typing import TypingActivityInput
|
|
22
|
+
|
|
23
|
+
ActivityParams = Annotated[
|
|
24
|
+
Union[
|
|
25
|
+
# Simple activities
|
|
26
|
+
ConversationUpdateActivityInput,
|
|
27
|
+
EndOfConversationActivityInput,
|
|
28
|
+
HandoffActivityInput,
|
|
29
|
+
TraceActivityInput,
|
|
30
|
+
TypingActivityInput,
|
|
31
|
+
# Message activities
|
|
32
|
+
MessageActivityInput,
|
|
33
|
+
MessageDeleteActivityInput,
|
|
34
|
+
MessageReactionActivityInput,
|
|
35
|
+
MessageUpdateActivityInput,
|
|
36
|
+
# Command activities
|
|
37
|
+
CommandSendActivityInput,
|
|
38
|
+
CommandResultActivityInput,
|
|
39
|
+
],
|
|
40
|
+
Field(discriminator="type"),
|
|
41
|
+
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Annotated, Union
|
|
7
|
+
|
|
8
|
+
from pydantic import Field
|
|
9
|
+
|
|
10
|
+
from .command_result import CommandResultActivity, CommandResultActivityInput, CommandResultValue
|
|
11
|
+
from .command_send import CommandSendActivity, CommandSendActivityInput, CommandSendValue
|
|
12
|
+
|
|
13
|
+
CommandActivity = Annotated[Union[CommandSendActivity, CommandResultActivity], Field(discriminator="type")]
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"CommandResultValue",
|
|
17
|
+
"CommandResultActivity",
|
|
18
|
+
"CommandResultActivityInput",
|
|
19
|
+
"CommandSendValue",
|
|
20
|
+
"CommandSendActivity",
|
|
21
|
+
"CommandSendActivityInput",
|
|
22
|
+
"CommandActivity",
|
|
23
|
+
]
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Any, Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ...models import ActivityBase, ActivityInputBase, CustomBaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CommandResultValue(CustomBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
The value field of a CommandResultActivity contains metadata related to a command result.
|
|
14
|
+
An optional extensible data payload may be included if defined by the command activity name.
|
|
15
|
+
The presence of an error field indicates that the original command failed to complete.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
command_id: str
|
|
19
|
+
"""ID of the command."""
|
|
20
|
+
|
|
21
|
+
data: Optional[Any] = None
|
|
22
|
+
"""
|
|
23
|
+
The data field containing optional parameters specific to this command activity,
|
|
24
|
+
as defined by the name. The value of the data field is a complex type.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
error: Optional[Exception] = None
|
|
28
|
+
"""The optional error, if the command result indicates a failure."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class _CommandResultBase(CustomBaseModel):
|
|
32
|
+
"""Base class containing shared command result activity fields (all Optional except type)."""
|
|
33
|
+
|
|
34
|
+
type: Literal["commandResult"] = "commandResult"
|
|
35
|
+
|
|
36
|
+
name: Optional[str] = None
|
|
37
|
+
"""The name of the event."""
|
|
38
|
+
|
|
39
|
+
value: Optional[CommandResultValue] = None
|
|
40
|
+
"""The value for this command."""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class CommandResultActivity(_CommandResultBase, ActivityBase):
|
|
44
|
+
"""Output model for received command result activities with required fields and read-only properties."""
|
|
45
|
+
|
|
46
|
+
name: str # pyright: ignore [reportGeneralTypeIssues, reportIncompatibleVariableOverride]
|
|
47
|
+
"""The name of the event."""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class CommandResultActivityInput(_CommandResultBase, ActivityInputBase):
|
|
51
|
+
"""Input model for creating command result activities with builder methods."""
|
|
52
|
+
|
|
53
|
+
pass
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Any, Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ...models import ActivityBase, ActivityInputBase, CustomBaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CommandSendValue(CustomBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
The value field of a CommandActivity contains metadata related to a command.
|
|
14
|
+
An optional extensible data payload may be included if defined by the command activity name.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
command_id: str
|
|
18
|
+
"""ID of the command."""
|
|
19
|
+
|
|
20
|
+
data: Optional[Any] = None
|
|
21
|
+
"""
|
|
22
|
+
The data field containing optional parameters specific to this command activity,
|
|
23
|
+
as defined by the name. The value of the data field is a complex type.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class _CommandSendBase(CustomBaseModel):
|
|
28
|
+
"""Base class containing shared command send activity fields (all Optional except type)."""
|
|
29
|
+
|
|
30
|
+
type: Literal["command"] = "command"
|
|
31
|
+
|
|
32
|
+
name: Optional[str] = None
|
|
33
|
+
"""The name of the event."""
|
|
34
|
+
|
|
35
|
+
value: Optional[CommandSendValue] = None
|
|
36
|
+
"""The value for this command."""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class CommandSendActivity(_CommandSendBase, ActivityBase):
|
|
40
|
+
"""Output model for received command send activities with required fields and read-only properties."""
|
|
41
|
+
|
|
42
|
+
name: str # pyright: ignore [reportGeneralTypeIssues, reportIncompatibleVariableOverride]
|
|
43
|
+
"""The name of the event."""
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class CommandSendActivityInput(_CommandSendBase, ActivityInputBase):
|
|
47
|
+
"""Input model for creating command send activities with builder methods."""
|
|
48
|
+
|
|
49
|
+
pass
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Annotated, Union
|
|
7
|
+
|
|
8
|
+
from pydantic import Field
|
|
9
|
+
|
|
10
|
+
from .conversation_update import (
|
|
11
|
+
ConversationChannelData,
|
|
12
|
+
ConversationEventType,
|
|
13
|
+
ConversationUpdateActivity,
|
|
14
|
+
ConversationUpdateActivityInput,
|
|
15
|
+
)
|
|
16
|
+
from .end_of_conversation import EndOfConversationActivity, EndOfConversationActivityInput, EndOfConversationCode
|
|
17
|
+
|
|
18
|
+
ConversationActivity = Annotated[
|
|
19
|
+
Union[ConversationUpdateActivity, EndOfConversationActivity], Field(discriminator="type")
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"ConversationEventType",
|
|
24
|
+
"ConversationChannelData",
|
|
25
|
+
"ConversationUpdateActivity",
|
|
26
|
+
"ConversationUpdateActivityInput",
|
|
27
|
+
"EndOfConversationCode",
|
|
28
|
+
"EndOfConversationActivity",
|
|
29
|
+
"EndOfConversationActivityInput",
|
|
30
|
+
"ConversationActivity",
|
|
31
|
+
]
|
microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/conversation/conversation_update.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import List, Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ...models import Account, ActivityBase, ActivityInputBase, ChannelData, CustomBaseModel
|
|
9
|
+
|
|
10
|
+
ConversationEventType = Literal[
|
|
11
|
+
"channelCreated",
|
|
12
|
+
"channelDeleted",
|
|
13
|
+
"channelRenamed",
|
|
14
|
+
"channelRestored",
|
|
15
|
+
"teamArchived",
|
|
16
|
+
"teamDeleted",
|
|
17
|
+
"teamHardDeleted",
|
|
18
|
+
"teamRenamed",
|
|
19
|
+
"teamRestored",
|
|
20
|
+
"teamUnarchived",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ConversationChannelData(ChannelData, CustomBaseModel):
|
|
25
|
+
"""Extended ChannelData with event type."""
|
|
26
|
+
|
|
27
|
+
event_type: Optional[ConversationEventType] = None
|
|
28
|
+
"""The type of event that occurred."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class _ConversationUpdateBase(CustomBaseModel):
|
|
32
|
+
"""Base class containing shared conversation update activity fields (all Optional except type)."""
|
|
33
|
+
|
|
34
|
+
type: Literal["conversationUpdate"] = "conversationUpdate"
|
|
35
|
+
|
|
36
|
+
members_added: Optional[List[Account]] = None
|
|
37
|
+
"""The collection of members added to the conversation."""
|
|
38
|
+
|
|
39
|
+
members_removed: Optional[List[Account]] = None
|
|
40
|
+
"""The collection of members removed from the conversation."""
|
|
41
|
+
|
|
42
|
+
topic_name: Optional[str] = None
|
|
43
|
+
"""The updated topic name of the conversation."""
|
|
44
|
+
|
|
45
|
+
history_disclosed: Optional[bool] = None
|
|
46
|
+
"""Indicates whether the prior history of the channel is disclosed."""
|
|
47
|
+
|
|
48
|
+
channel_data: Optional[ConversationChannelData] = None
|
|
49
|
+
"""Channel data with event type information."""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class ConversationUpdateActivity(_ConversationUpdateBase, ActivityBase):
|
|
53
|
+
"""Output model for received conversation update activities with required fields and read-only properties."""
|
|
54
|
+
|
|
55
|
+
channel_data: ConversationChannelData # pyright: ignore [reportGeneralTypeIssues, reportIncompatibleVariableOverride]
|
|
56
|
+
"""Channel data with event type information."""
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class ConversationUpdateActivityInput(_ConversationUpdateBase, ActivityInputBase):
|
|
60
|
+
"""Input model for creating conversation update activities with builder methods."""
|
|
61
|
+
|
|
62
|
+
pass
|
microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/conversation/end_of_conversation.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ...models import ActivityBase, ActivityInputBase, CustomBaseModel
|
|
9
|
+
|
|
10
|
+
EndOfConversationCode = Literal[
|
|
11
|
+
"unknown", "completedSuccessfully", "userCancelled", "botTimedOut", "botIssuedInvalidMessage", "channelFailed"
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class _EndOfConversationBase(CustomBaseModel):
|
|
16
|
+
"""Base class containing shared end of conversation activity fields (all Optional except type)."""
|
|
17
|
+
|
|
18
|
+
type: Literal["endOfConversation"] = "endOfConversation"
|
|
19
|
+
|
|
20
|
+
code: Optional[EndOfConversationCode] = None
|
|
21
|
+
"""
|
|
22
|
+
The code for endOfConversation activities that indicates why the conversation ended.
|
|
23
|
+
Possible values include: 'unknown', 'completedSuccessfully', 'userCancelled', 'botTimedOut',
|
|
24
|
+
'botIssuedInvalidMessage', 'channelFailed'
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
text: Optional[str] = None
|
|
28
|
+
"""The text content of the message."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class EndOfConversationActivity(_EndOfConversationBase, ActivityBase):
|
|
32
|
+
"""Output model for received end of conversation activities with required fields and read-only properties."""
|
|
33
|
+
|
|
34
|
+
text: str # pyright: ignore [reportGeneralTypeIssues]
|
|
35
|
+
"""The text content of the message."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class EndOfConversationActivityInput(_EndOfConversationBase, ActivityInputBase):
|
|
39
|
+
"""Input model for creating end of conversation activities with builder methods."""
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Annotated, Union
|
|
7
|
+
|
|
8
|
+
from pydantic import Field
|
|
9
|
+
|
|
10
|
+
from .meeting_end import MeetingEndEventActivity
|
|
11
|
+
from .meeting_participant import MeetingParticipantEventActivity
|
|
12
|
+
from .meeting_participant_join import MeetingParticipantJoinEventActivity
|
|
13
|
+
from .meeting_participant_leave import MeetingParticipantLeaveEventActivity
|
|
14
|
+
from .meeting_start import MeetingStartEventActivity
|
|
15
|
+
from .read_reciept import ReadReceiptEventActivity
|
|
16
|
+
|
|
17
|
+
EventActivity = Annotated[
|
|
18
|
+
Union[
|
|
19
|
+
ReadReceiptEventActivity,
|
|
20
|
+
MeetingStartEventActivity,
|
|
21
|
+
MeetingEndEventActivity,
|
|
22
|
+
MeetingParticipantJoinEventActivity,
|
|
23
|
+
MeetingParticipantLeaveEventActivity,
|
|
24
|
+
],
|
|
25
|
+
Field(discriminator="name"),
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"MeetingEndEventActivity",
|
|
30
|
+
"MeetingStartEventActivity",
|
|
31
|
+
"MeetingParticipantEventActivity",
|
|
32
|
+
"MeetingParticipantJoinEventActivity",
|
|
33
|
+
"MeetingParticipantLeaveEventActivity",
|
|
34
|
+
"ReadReceiptEventActivity",
|
|
35
|
+
"EventActivity",
|
|
36
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing import Literal
|
|
8
|
+
|
|
9
|
+
from ...models import ActivityBase, CustomBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class MeetingEndEventValue(CustomBaseModel):
|
|
13
|
+
id: str
|
|
14
|
+
"""The meeting's Id, encoded as a BASE64 string."""
|
|
15
|
+
|
|
16
|
+
meeting_type: str
|
|
17
|
+
"""Type of the meeting"""
|
|
18
|
+
|
|
19
|
+
join_url: str
|
|
20
|
+
"""URL to join the meeting"""
|
|
21
|
+
|
|
22
|
+
title: str
|
|
23
|
+
"""Title of the meeting."""
|
|
24
|
+
|
|
25
|
+
end_time: datetime
|
|
26
|
+
"""Timestamp for meeting end, in UTC."""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class MeetingEndEventActivity(ActivityBase, CustomBaseModel):
|
|
30
|
+
"""
|
|
31
|
+
Represents a meeting end event activity in Microsoft Teams.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
type: Literal["event"] = "event" #
|
|
35
|
+
|
|
36
|
+
name: Literal["application/vnd.microsoft.meetingEnd"] = "application/vnd.microsoft.meetingEnd"
|
|
37
|
+
|
|
38
|
+
value: MeetingEndEventValue
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import List, Literal
|
|
7
|
+
|
|
8
|
+
from ...models import Account, ActivityBase, CustomBaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MeetingParticipantInfo(CustomBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
Represents information about a participant in a Microsoft Teams meeting.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
in_meeting: bool
|
|
17
|
+
"""Indicates whether the participant is currently in the meeting."""
|
|
18
|
+
|
|
19
|
+
role: str
|
|
20
|
+
"""The role of the participant in the meeting"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class MeetingParticipant(CustomBaseModel):
|
|
24
|
+
"""
|
|
25
|
+
Represents a participant in a Microsoft Teams meeting.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
user: Account
|
|
29
|
+
"""The participant account."""
|
|
30
|
+
|
|
31
|
+
meeting: MeetingParticipantInfo
|
|
32
|
+
"""The participant's info"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MeetingParticipantEventValue(CustomBaseModel):
|
|
36
|
+
members: List[MeetingParticipant]
|
|
37
|
+
"""The list of participants in the meeting."""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class MeetingParticipantEventActivity(ActivityBase, CustomBaseModel):
|
|
41
|
+
"""
|
|
42
|
+
Represents a meeting participant event activity in Microsoft Teams.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
type: Literal["event"] = "event" #
|
|
46
|
+
|
|
47
|
+
value: MeetingParticipantEventValue
|
|
48
|
+
"""
|
|
49
|
+
The value of the event.
|
|
50
|
+
"""
|
microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/meeting_participant_join.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Literal
|
|
7
|
+
|
|
8
|
+
from ...models import CustomBaseModel
|
|
9
|
+
from .meeting_participant import MeetingParticipantEventActivity
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class MeetingParticipantJoinEventActivity(MeetingParticipantEventActivity, CustomBaseModel):
|
|
13
|
+
name: Literal["application/vnd.microsoft.meetingParticipantJoin"] = (
|
|
14
|
+
"application/vnd.microsoft.meetingParticipantJoin"
|
|
15
|
+
)
|
microsoft_teams_api-0.0.1a1/src/microsoft/teams/api/activities/event/meeting_participant_leave.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the MIT License.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from typing import Literal
|
|
7
|
+
|
|
8
|
+
from ...models import CustomBaseModel
|
|
9
|
+
from .meeting_participant import MeetingParticipantEventActivity
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class MeetingParticipantLeaveEventActivity(MeetingParticipantEventActivity, CustomBaseModel):
|
|
13
|
+
name: Literal["application/vnd.microsoft.meetingParticipantLeave"] = (
|
|
14
|
+
"application/vnd.microsoft.meetingParticipantLeave"
|
|
15
|
+
)
|