microsoft-agents-activity 0.7.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- microsoft_agents/activity/__init__.py +200 -0
- microsoft_agents/activity/_channel_id_field_mixin.py +95 -0
- microsoft_agents/activity/_load_configuration.py +33 -0
- microsoft_agents/activity/_model_utils.py +64 -0
- microsoft_agents/activity/_type_aliases.py +7 -0
- microsoft_agents/activity/_utils/__init__.py +6 -0
- microsoft_agents/activity/_utils/_deferred_string.py +34 -0
- microsoft_agents/activity/action_types.py +17 -0
- microsoft_agents/activity/activity.py +787 -0
- microsoft_agents/activity/activity_event_names.py +9 -0
- microsoft_agents/activity/activity_importance.py +10 -0
- microsoft_agents/activity/activity_types.py +25 -0
- microsoft_agents/activity/adaptive_card_invoke_action.py +27 -0
- microsoft_agents/activity/adaptive_card_invoke_response.py +23 -0
- microsoft_agents/activity/adaptive_card_invoke_value.py +25 -0
- microsoft_agents/activity/agents_model.py +49 -0
- microsoft_agents/activity/animation_card.py +57 -0
- microsoft_agents/activity/attachment.py +27 -0
- microsoft_agents/activity/attachment_data.py +24 -0
- microsoft_agents/activity/attachment_info.py +22 -0
- microsoft_agents/activity/attachment_layout_types.py +9 -0
- microsoft_agents/activity/attachment_view.py +18 -0
- microsoft_agents/activity/audio_card.py +57 -0
- microsoft_agents/activity/basic_card.py +33 -0
- microsoft_agents/activity/caller_id_constants.py +10 -0
- microsoft_agents/activity/card_action.py +42 -0
- microsoft_agents/activity/card_image.py +22 -0
- microsoft_agents/activity/channel_account.py +39 -0
- microsoft_agents/activity/channel_adapter_protocol.py +79 -0
- microsoft_agents/activity/channel_id.py +95 -0
- microsoft_agents/activity/channels.py +161 -0
- microsoft_agents/activity/contact_relation_update_action_types.py +9 -0
- microsoft_agents/activity/conversation_account.py +41 -0
- microsoft_agents/activity/conversation_members.py +19 -0
- microsoft_agents/activity/conversation_parameters.py +40 -0
- microsoft_agents/activity/conversation_reference.py +69 -0
- microsoft_agents/activity/conversation_resource_response.py +22 -0
- microsoft_agents/activity/conversation_update_types.py +18 -0
- microsoft_agents/activity/conversations_result.py +20 -0
- microsoft_agents/activity/delivery_modes.py +12 -0
- microsoft_agents/activity/end_of_conversation_codes.py +13 -0
- microsoft_agents/activity/entity/__init__.py +36 -0
- microsoft_agents/activity/entity/ai_entity.py +111 -0
- microsoft_agents/activity/entity/entity.py +41 -0
- microsoft_agents/activity/entity/entity_types.py +14 -0
- microsoft_agents/activity/entity/geo_coordinates.py +33 -0
- microsoft_agents/activity/entity/mention.py +24 -0
- microsoft_agents/activity/entity/place.py +33 -0
- microsoft_agents/activity/entity/product_info.py +20 -0
- microsoft_agents/activity/entity/thing.py +21 -0
- microsoft_agents/activity/error.py +22 -0
- microsoft_agents/activity/error_response.py +15 -0
- microsoft_agents/activity/errors/__init__.py +14 -0
- microsoft_agents/activity/errors/error_message.py +64 -0
- microsoft_agents/activity/errors/error_resources.py +52 -0
- microsoft_agents/activity/expected_replies.py +16 -0
- microsoft_agents/activity/fact.py +21 -0
- microsoft_agents/activity/hero_card.py +33 -0
- microsoft_agents/activity/inner_http_error.py +17 -0
- microsoft_agents/activity/input_hints.py +10 -0
- microsoft_agents/activity/installation_update_action_types.py +9 -0
- microsoft_agents/activity/invoke_response.py +27 -0
- microsoft_agents/activity/media_card.py +57 -0
- microsoft_agents/activity/media_event_value.py +15 -0
- microsoft_agents/activity/media_url.py +19 -0
- microsoft_agents/activity/message_reaction.py +16 -0
- microsoft_agents/activity/message_reaction_types.py +14 -0
- microsoft_agents/activity/message_update_types.py +10 -0
- microsoft_agents/activity/oauth_card.py +27 -0
- microsoft_agents/activity/paged_members_result.py +19 -0
- microsoft_agents/activity/receipt_card.py +39 -0
- microsoft_agents/activity/receipt_item.py +38 -0
- microsoft_agents/activity/resource_response.py +15 -0
- microsoft_agents/activity/role_types.py +12 -0
- microsoft_agents/activity/semantic_action.py +21 -0
- microsoft_agents/activity/semantic_actions_states.py +10 -0
- microsoft_agents/activity/sign_in_constants.py +13 -0
- microsoft_agents/activity/sign_in_resource.py +17 -0
- microsoft_agents/activity/signin_card.py +19 -0
- microsoft_agents/activity/suggested_actions.py +21 -0
- microsoft_agents/activity/teams/__init__.py +198 -0
- microsoft_agents/activity/teams/app_based_link_query.py +18 -0
- microsoft_agents/activity/teams/batch_failed_entries_response.py +15 -0
- microsoft_agents/activity/teams/batch_failed_entry.py +16 -0
- microsoft_agents/activity/teams/batch_operation_response.py +13 -0
- microsoft_agents/activity/teams/batch_operation_state_response.py +24 -0
- microsoft_agents/activity/teams/bot_config_auth.py +18 -0
- microsoft_agents/activity/teams/cache_info.py +18 -0
- microsoft_agents/activity/teams/cancel_operation_response.py +19 -0
- microsoft_agents/activity/teams/channel_info.py +21 -0
- microsoft_agents/activity/teams/config_auth_response.py +17 -0
- microsoft_agents/activity/teams/config_response.py +18 -0
- microsoft_agents/activity/teams/config_response_base.py +14 -0
- microsoft_agents/activity/teams/config_task_response.py +18 -0
- microsoft_agents/activity/teams/conversation_list.py +17 -0
- microsoft_agents/activity/teams/file_consent_card.py +24 -0
- microsoft_agents/activity/teams/file_consent_card_response.py +21 -0
- microsoft_agents/activity/teams/file_download_info.py +24 -0
- microsoft_agents/activity/teams/file_info_card.py +21 -0
- microsoft_agents/activity/teams/file_upload_info.py +26 -0
- microsoft_agents/activity/teams/meeting_details.py +23 -0
- microsoft_agents/activity/teams/meeting_details_base.py +21 -0
- microsoft_agents/activity/teams/meeting_end_event_details.py +15 -0
- microsoft_agents/activity/teams/meeting_event_details.py +15 -0
- microsoft_agents/activity/teams/meeting_info.py +24 -0
- microsoft_agents/activity/teams/meeting_notification.py +15 -0
- microsoft_agents/activity/teams/meeting_notification_base.py +14 -0
- microsoft_agents/activity/teams/meeting_notification_channel_data.py +16 -0
- microsoft_agents/activity/teams/meeting_notification_recipient_failure_info.py +20 -0
- microsoft_agents/activity/teams/meeting_notification_response.py +20 -0
- microsoft_agents/activity/teams/meeting_participant_info.py +18 -0
- microsoft_agents/activity/teams/meeting_participants_event_details.py +16 -0
- microsoft_agents/activity/teams/meeting_stage_surface.py +25 -0
- microsoft_agents/activity/teams/meeting_start_event_details.py +15 -0
- microsoft_agents/activity/teams/meeting_tab_icon_surface.py +15 -0
- microsoft_agents/activity/teams/message_actions_payload.py +70 -0
- microsoft_agents/activity/teams/message_actions_payload_app.py +29 -0
- microsoft_agents/activity/teams/message_actions_payload_attachment.py +30 -0
- microsoft_agents/activity/teams/message_actions_payload_body.py +17 -0
- microsoft_agents/activity/teams/message_actions_payload_conversation.py +20 -0
- microsoft_agents/activity/teams/message_actions_payload_from.py +25 -0
- microsoft_agents/activity/teams/message_actions_payload_mention.py +23 -0
- microsoft_agents/activity/teams/message_actions_payload_reaction.py +23 -0
- microsoft_agents/activity/teams/message_actions_payload_user.py +27 -0
- microsoft_agents/activity/teams/messaging_extension_action.py +37 -0
- microsoft_agents/activity/teams/messaging_extension_action_response.py +24 -0
- microsoft_agents/activity/teams/messaging_extension_attachment.py +32 -0
- microsoft_agents/activity/teams/messaging_extension_parameter.py +17 -0
- microsoft_agents/activity/teams/messaging_extension_query.py +27 -0
- microsoft_agents/activity/teams/messaging_extension_query_options.py +17 -0
- microsoft_agents/activity/teams/messaging_extension_response.py +21 -0
- microsoft_agents/activity/teams/messaging_extension_result.py +34 -0
- microsoft_agents/activity/teams/messaging_extension_suggested_action.py +17 -0
- microsoft_agents/activity/teams/notification_info.py +21 -0
- microsoft_agents/activity/teams/o365_connector_card.py +32 -0
- microsoft_agents/activity/teams/o365_connector_card_action_base.py +21 -0
- microsoft_agents/activity/teams/o365_connector_card_action_card.py +30 -0
- microsoft_agents/activity/teams/o365_connector_card_action_query.py +15 -0
- microsoft_agents/activity/teams/o365_connector_card_date_input.py +30 -0
- microsoft_agents/activity/teams/o365_connector_card_fact.py +17 -0
- microsoft_agents/activity/teams/o365_connector_card_http_post.py +25 -0
- microsoft_agents/activity/teams/o365_connector_card_image.py +18 -0
- microsoft_agents/activity/teams/o365_connector_card_input_base.py +28 -0
- microsoft_agents/activity/teams/o365_connector_card_multichoice_input.py +40 -0
- microsoft_agents/activity/teams/o365_connector_card_multichoice_input_choice.py +17 -0
- microsoft_agents/activity/teams/o365_connector_card_open_uri.py +26 -0
- microsoft_agents/activity/teams/o365_connector_card_open_uri_target.py +17 -0
- microsoft_agents/activity/teams/o365_connector_card_section.py +42 -0
- microsoft_agents/activity/teams/o365_connector_card_text_input.py +31 -0
- microsoft_agents/activity/teams/o365_connector_card_view_action.py +25 -0
- microsoft_agents/activity/teams/on_behalf_of.py +23 -0
- microsoft_agents/activity/teams/read_receipt_info.py +47 -0
- microsoft_agents/activity/teams/signin_state_verification_query.py +14 -0
- microsoft_agents/activity/teams/surface.py +18 -0
- microsoft_agents/activity/teams/tab_context.py +14 -0
- microsoft_agents/activity/teams/tab_entity_context.py +15 -0
- microsoft_agents/activity/teams/tab_request.py +22 -0
- microsoft_agents/activity/teams/tab_response.py +16 -0
- microsoft_agents/activity/teams/tab_response_card.py +14 -0
- microsoft_agents/activity/teams/tab_response_cards.py +17 -0
- microsoft_agents/activity/teams/tab_response_payload.py +25 -0
- microsoft_agents/activity/teams/tab_submit.py +23 -0
- microsoft_agents/activity/teams/tab_submit_data.py +18 -0
- microsoft_agents/activity/teams/tab_suggested_actions.py +17 -0
- microsoft_agents/activity/teams/targeted_meeting_notification.py +19 -0
- microsoft_agents/activity/teams/targeted_meeting_notification_value.py +19 -0
- microsoft_agents/activity/teams/task_module_card_response.py +15 -0
- microsoft_agents/activity/teams/task_module_continue_response.py +19 -0
- microsoft_agents/activity/teams/task_module_message_response.py +18 -0
- microsoft_agents/activity/teams/task_module_request.py +25 -0
- microsoft_agents/activity/teams/task_module_request_context.py +15 -0
- microsoft_agents/activity/teams/task_module_response.py +20 -0
- microsoft_agents/activity/teams/task_module_response_base.py +17 -0
- microsoft_agents/activity/teams/task_module_task_info.py +30 -0
- microsoft_agents/activity/teams/team_details.py +29 -0
- microsoft_agents/activity/teams/team_info.py +20 -0
- microsoft_agents/activity/teams/teams_batch_operation_response.py +19 -0
- microsoft_agents/activity/teams/teams_channel_account.py +44 -0
- microsoft_agents/activity/teams/teams_channel_data.py +43 -0
- microsoft_agents/activity/teams/teams_channel_data_settings.py +15 -0
- microsoft_agents/activity/teams/teams_meeting_info.py +14 -0
- microsoft_agents/activity/teams/teams_meeting_member.py +19 -0
- microsoft_agents/activity/teams/teams_meeting_participant.py +24 -0
- microsoft_agents/activity/teams/teams_member.py +14 -0
- microsoft_agents/activity/teams/teams_paged_members_result.py +19 -0
- microsoft_agents/activity/teams/tenant_info.py +14 -0
- microsoft_agents/activity/teams/user_meeting_details.py +17 -0
- microsoft_agents/activity/text_format_types.py +10 -0
- microsoft_agents/activity/text_highlight.py +19 -0
- microsoft_agents/activity/thumbnail_card.py +33 -0
- microsoft_agents/activity/thumbnail_url.py +18 -0
- microsoft_agents/activity/token_exchange_invoke_request.py +24 -0
- microsoft_agents/activity/token_exchange_invoke_response.py +24 -0
- microsoft_agents/activity/token_exchange_resource.py +16 -0
- microsoft_agents/activity/token_exchange_state.py +41 -0
- microsoft_agents/activity/token_or_sign_in_resource_response.py +21 -0
- microsoft_agents/activity/token_post_resource.py +14 -0
- microsoft_agents/activity/token_request.py +19 -0
- microsoft_agents/activity/token_response.py +46 -0
- microsoft_agents/activity/token_status.py +32 -0
- microsoft_agents/activity/transcript.py +16 -0
- microsoft_agents/activity/turn_context_protocol.py +68 -0
- microsoft_agents/activity/video_card.py +57 -0
- microsoft_agents_activity-0.7.0.dev0.dist-info/METADATA +173 -0
- microsoft_agents_activity-0.7.0.dev0.dist-info/RECORD +208 -0
- microsoft_agents_activity-0.7.0.dev0.dist-info/WHEEL +5 -0
- microsoft_agents_activity-0.7.0.dev0.dist-info/licenses/LICENSE +21 -0
- microsoft_agents_activity-0.7.0.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
|
|
6
|
+
from .config_response import ConfigResponse
|
|
7
|
+
from .task_module_response_base import TaskModuleResponseBase
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConfigTaskResponse(ConfigResponse):
|
|
11
|
+
"""Envelope for Config Task Response.
|
|
12
|
+
|
|
13
|
+
This class uses TaskModuleResponseBase as the type for the config parameter.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
config: TaskModuleResponseBase = Field(
|
|
17
|
+
default_factory=lambda: TaskModuleResponseBase()
|
|
18
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from .channel_info import ChannelInfo
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConversationList(AgentsModel):
|
|
11
|
+
"""List of channels under a team.
|
|
12
|
+
|
|
13
|
+
:param conversations: List of ChannelInfo objects.
|
|
14
|
+
:type conversations: List[ChannelInfo]
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
conversations: List[ChannelInfo]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Any, Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FileConsentCard(AgentsModel):
|
|
9
|
+
"""File consent card attachment.
|
|
10
|
+
|
|
11
|
+
:param description: File description.
|
|
12
|
+
:type description: str
|
|
13
|
+
:param size_in_bytes: Size of the file to be uploaded in Bytes.
|
|
14
|
+
:type size_in_bytes: Optional[int]
|
|
15
|
+
:param accept_context: Context sent back to the Bot if user consented to upload.
|
|
16
|
+
:type accept_context: Any
|
|
17
|
+
:param decline_context: Context sent back to the Bot if user declined.
|
|
18
|
+
:type decline_context: Any
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
description: str
|
|
22
|
+
size_in_bytes: Optional[int]
|
|
23
|
+
accept_context: Any
|
|
24
|
+
decline_context: Any
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Any, Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FileConsentCardResponse(AgentsModel):
|
|
9
|
+
"""Represents the value of the invoke activity sent when the user acts on a file consent card.
|
|
10
|
+
|
|
11
|
+
:param action: The action the user took. Possible values include: 'accept', 'decline'
|
|
12
|
+
:type action: Optional[str]
|
|
13
|
+
:param context: The context associated with the action.
|
|
14
|
+
:type context: Optional[Any]
|
|
15
|
+
:param upload_info: If the user accepted the file, contains information about the file to be uploaded.
|
|
16
|
+
:type upload_info: Optional[Any]
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
action: Optional[str]
|
|
20
|
+
context: Optional[Any]
|
|
21
|
+
upload_info: Optional[Any]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FileDownloadInfo(AgentsModel):
|
|
9
|
+
"""File download info attachment.
|
|
10
|
+
|
|
11
|
+
:param download_url: File download url.
|
|
12
|
+
:type download_url: str
|
|
13
|
+
:param unique_id: Unique Id for the file.
|
|
14
|
+
:type unique_id: str
|
|
15
|
+
:param file_type: Type of file.
|
|
16
|
+
:type file_type: str
|
|
17
|
+
:param etag: ETag for the file.
|
|
18
|
+
:type etag: Optional[str]
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
download_url: str
|
|
22
|
+
unique_id: str
|
|
23
|
+
file_type: str
|
|
24
|
+
etag: Optional[str]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FileInfoCard(AgentsModel):
|
|
9
|
+
"""File info card.
|
|
10
|
+
|
|
11
|
+
:param unique_id: Unique Id for the file.
|
|
12
|
+
:type unique_id: str
|
|
13
|
+
:param file_type: Type of file.
|
|
14
|
+
:type file_type: str
|
|
15
|
+
:param etag: ETag for the file.
|
|
16
|
+
:type etag: Optional[str]
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
unique_id: str
|
|
20
|
+
file_type: str
|
|
21
|
+
etag: Optional[str]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class FileUploadInfo(AgentsModel):
|
|
8
|
+
"""Information about the file to be uploaded.
|
|
9
|
+
|
|
10
|
+
:param name: Name of the file.
|
|
11
|
+
:type name: str
|
|
12
|
+
:param upload_url: URL to an upload session that the bot can use to set the file contents.
|
|
13
|
+
:type upload_url: str
|
|
14
|
+
:param content_url: URL to file.
|
|
15
|
+
:type content_url: str
|
|
16
|
+
:param unique_id: ID that uniquely identifies the file.
|
|
17
|
+
:type unique_id: str
|
|
18
|
+
:param file_type: Type of the file.
|
|
19
|
+
:type file_type: str
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
name: str
|
|
23
|
+
upload_url: str
|
|
24
|
+
content_url: str
|
|
25
|
+
unique_id: str
|
|
26
|
+
file_type: str
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MeetingDetails(AgentsModel):
|
|
8
|
+
"""Specific details of a Teams meeting.
|
|
9
|
+
|
|
10
|
+
:param ms_graph_resource_id: The MsGraphResourceId, used specifically for MS Graph API calls.
|
|
11
|
+
:type ms_graph_resource_id: str
|
|
12
|
+
:param scheduled_start_time: The meeting's scheduled start time, in UTC.
|
|
13
|
+
:type scheduled_start_time: str
|
|
14
|
+
:param scheduled_end_time: The meeting's scheduled end time, in UTC.
|
|
15
|
+
:type scheduled_end_time: str
|
|
16
|
+
:param type: The meeting's type.
|
|
17
|
+
:type type: str
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
ms_graph_resource_id: str = None
|
|
21
|
+
scheduled_start_time: str = None
|
|
22
|
+
scheduled_end_time: str = None
|
|
23
|
+
type: str = None
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from ..agents_model import AgentsModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingDetailsBase(AgentsModel):
|
|
9
|
+
"""Specific details of a Teams meeting.
|
|
10
|
+
|
|
11
|
+
:param id: The meeting's Id, encoded as a BASE64 string.
|
|
12
|
+
:type id: str
|
|
13
|
+
:param join_url: The URL used to join the meeting.
|
|
14
|
+
:type join_url: str
|
|
15
|
+
:param title: The title of the meeting.
|
|
16
|
+
:type title: str
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
id: str = Field(None, alias="uniqueId")
|
|
20
|
+
join_url: str = None
|
|
21
|
+
title: str = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingEndEventDetails(AgentsModel):
|
|
9
|
+
"""Specific details of a Teams meeting end event.
|
|
10
|
+
|
|
11
|
+
:param end_time: Timestamp for meeting end, in UTC.
|
|
12
|
+
:type end_time: str
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
end_time: str = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingEventDetails(AgentsModel):
|
|
9
|
+
"""Base class for Teams meeting start and end events.
|
|
10
|
+
|
|
11
|
+
:param meeting_type: The meeting's type.
|
|
12
|
+
:type meeting_type: str
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
meeting_type: str = None
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
|
|
6
|
+
from .meeting_details import MeetingDetails
|
|
7
|
+
from .teams_channel_account import TeamsChannelAccount
|
|
8
|
+
from ..conversation_account import ConversationAccount
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MeetingInfo(AgentsModel):
|
|
12
|
+
"""General information about a Teams meeting.
|
|
13
|
+
|
|
14
|
+
:param details: The specific details of a Teams meeting.
|
|
15
|
+
:type details: MeetingDetails
|
|
16
|
+
:param conversation: The Conversation Account for the meeting.
|
|
17
|
+
:type conversation: ConversationAccount
|
|
18
|
+
:param organizer: The meeting's organizer details.
|
|
19
|
+
:type organizer: TeamsChannelAccount
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
details: MeetingDetails = None
|
|
23
|
+
conversation: ConversationAccount = None
|
|
24
|
+
organizer: TeamsChannelAccount = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from .meeting_notification_base import MeetingNotificationBase
|
|
5
|
+
from .targeted_meeting_notification_value import TargetedMeetingNotificationValue
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingNotification(MeetingNotificationBase):
|
|
9
|
+
"""Specifies Bot meeting notification including meeting notification value.
|
|
10
|
+
|
|
11
|
+
:param value: Teams Bot meeting notification value.
|
|
12
|
+
:type value: TargetedMeetingNotificationValue
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
value: TargetedMeetingNotificationValue = None
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MeetingNotificationBase(AgentsModel):
|
|
8
|
+
"""Specifies Bot meeting notification base including channel data and type.
|
|
9
|
+
|
|
10
|
+
:param type: Type of Bot meeting notification.
|
|
11
|
+
:type type: str
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
type: str = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import List
|
|
6
|
+
from .on_behalf_of import OnBehalfOf
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class MeetingNotificationChannelData(AgentsModel):
|
|
10
|
+
"""Specify Teams Bot meeting notification channel data.
|
|
11
|
+
|
|
12
|
+
:param on_behalf_of_list: The Teams Bot meeting notification's OnBehalfOf list.
|
|
13
|
+
:type on_behalf_of_list: list[OnBehalfOf]
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
on_behalf_of_list: List[OnBehalfOf] = None
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MeetingNotificationRecipientFailureInfo(AgentsModel):
|
|
8
|
+
"""Information regarding failure to notify a recipient of a meeting notification.
|
|
9
|
+
|
|
10
|
+
:param recipient_mri: The MRI for a recipient meeting notification failure.
|
|
11
|
+
:type recipient_mri: str
|
|
12
|
+
:param error_code: The error code for a meeting notification.
|
|
13
|
+
:type error_code: str
|
|
14
|
+
:param failure_reason: The reason why a participant meeting notification failed.
|
|
15
|
+
:type failure_reason: str
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
recipient_mri: str = None
|
|
19
|
+
error_code: str = None
|
|
20
|
+
failure_reason: str = None
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import List
|
|
6
|
+
from .meeting_notification_recipient_failure_info import (
|
|
7
|
+
MeetingNotificationRecipientFailureInfo,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MeetingNotificationResponse(AgentsModel):
|
|
12
|
+
"""Specifies Bot meeting notification response.
|
|
13
|
+
|
|
14
|
+
Contains list of MeetingNotificationRecipientFailureInfo.
|
|
15
|
+
|
|
16
|
+
:param recipients_failure_info: The list of MeetingNotificationRecipientFailureInfo.
|
|
17
|
+
:type recipients_failure_info: list[MeetingNotificationRecipientFailureInfo]
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
recipients_failure_info: List[MeetingNotificationRecipientFailureInfo] = None
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingParticipantInfo(AgentsModel):
|
|
9
|
+
"""Information about a meeting participant.
|
|
10
|
+
|
|
11
|
+
:param role: The role of the participant in the meeting.
|
|
12
|
+
:type role: str
|
|
13
|
+
:param in_meeting: Indicates whether the participant is currently in the meeting.
|
|
14
|
+
:type in_meeting: bool
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
role: str = None
|
|
18
|
+
in_meeting: bool = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import List
|
|
6
|
+
from .teams_meeting_member import TeamsMeetingMember
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class MeetingParticipantsEventDetails(AgentsModel):
|
|
10
|
+
"""Data about the meeting participants.
|
|
11
|
+
|
|
12
|
+
:param members: The members involved in the meeting event.
|
|
13
|
+
:type members: list[TeamsMeetingMember]
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
members: List[TeamsMeetingMember] = None
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
from .surface import Surface, SurfaceType
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ContentType(int, Enum):
|
|
10
|
+
UNKNOWN = 0
|
|
11
|
+
TASK = 1
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class MeetingStageSurface(Surface):
|
|
15
|
+
"""Specifies meeting stage surface.
|
|
16
|
+
|
|
17
|
+
:param content_type: The content type of this MeetingStageSurface.
|
|
18
|
+
:type content_type: ContentType
|
|
19
|
+
:param content: The content of this MeetingStageSurface.
|
|
20
|
+
:type content: Any
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
type: SurfaceType = SurfaceType.MEETING_STAGE
|
|
24
|
+
content_type: ContentType = ContentType.TASK
|
|
25
|
+
content: object = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingStartEventDetails(AgentsModel):
|
|
9
|
+
"""Specific details of a Teams meeting start event.
|
|
10
|
+
|
|
11
|
+
:param start_time: Timestamp for meeting start, in UTC.
|
|
12
|
+
:type start_time: str
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
start_time: str = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from .surface import Surface, SurfaceType
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MeetingTabIconSurface(Surface):
|
|
8
|
+
"""Specifies meeting tab icon surface.
|
|
9
|
+
|
|
10
|
+
:param tab_entity_id: The tab entity Id of this MeetingTabIconSurface.
|
|
11
|
+
:type tab_entity_id: str
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
type: SurfaceType = SurfaceType.MEETING_TAB_ICON
|
|
15
|
+
tab_entity_id: str = None
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from ..agents_model import AgentsModel
|
|
6
|
+
from typing import Annotated, List
|
|
7
|
+
|
|
8
|
+
from .message_actions_payload_from import MessageActionsPayloadFrom
|
|
9
|
+
from .message_actions_payload_body import MessageActionsPayloadBody
|
|
10
|
+
from .message_actions_payload_attachment import MessageActionsPayloadAttachment
|
|
11
|
+
from .message_actions_payload_mention import MessageActionsPayloadMention
|
|
12
|
+
from .message_actions_payload_reaction import MessageActionsPayloadReaction
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class MessageActionsPayload(AgentsModel):
|
|
16
|
+
"""Represents the individual message within a chat or channel where a message action is taken.
|
|
17
|
+
|
|
18
|
+
:param id: Unique id of the message.
|
|
19
|
+
:type id: str
|
|
20
|
+
:param reply_to_id: Id of the parent/root message of the thread.
|
|
21
|
+
:type reply_to_id: str
|
|
22
|
+
:param message_type: Type of message - automatically set to message.
|
|
23
|
+
:type message_type: str
|
|
24
|
+
:param created_date_time: Timestamp of when the message was created.
|
|
25
|
+
:type created_date_time: str
|
|
26
|
+
:param last_modified_date_time: Timestamp of when the message was edited or updated.
|
|
27
|
+
:type last_modified_date_time: str
|
|
28
|
+
:param deleted: Indicates whether a message has been soft deleted.
|
|
29
|
+
:type deleted: bool
|
|
30
|
+
:param subject: Subject line of the message.
|
|
31
|
+
:type subject: str
|
|
32
|
+
:param summary: Summary text of the message that could be used for notifications.
|
|
33
|
+
:type summary: str
|
|
34
|
+
:param importance: The importance of the message. Possible values include: 'normal', 'high', 'urgent'
|
|
35
|
+
:type importance: Annotated[str, Field(pattern=r"^(normal|high|urgent)$")]
|
|
36
|
+
:param locale: Locale of the message set by the client.
|
|
37
|
+
:type locale: str
|
|
38
|
+
:param link_to_message: Link back to the message.
|
|
39
|
+
:type link_to_message: str
|
|
40
|
+
:param from_property: Sender of the message.
|
|
41
|
+
:type from_property: MessageActionsPayloadFrom
|
|
42
|
+
:param body: Plaintext/HTML representation of the content of the message.
|
|
43
|
+
:type body: MessageActionsPayloadBody
|
|
44
|
+
:param attachment_layout: How the attachment(s) are displayed in the message.
|
|
45
|
+
:type attachment_layout: str
|
|
46
|
+
:param attachments: Attachments in the message - card, image, file, etc.
|
|
47
|
+
:type attachments: List[MessageActionsPayloadAttachment]
|
|
48
|
+
:param mentions: List of entities mentioned in the message.
|
|
49
|
+
:type mentions: List[MessageActionsPayloadMention]
|
|
50
|
+
:param reactions: Reactions for the message.
|
|
51
|
+
:type reactions: List[MessageActionsPayloadReaction]
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
id: str = None
|
|
55
|
+
reply_to_id: str = None
|
|
56
|
+
message_type: str = None
|
|
57
|
+
created_date_time: str = None
|
|
58
|
+
last_modified_date_time: str = None
|
|
59
|
+
deleted: bool = None
|
|
60
|
+
subject: str = None
|
|
61
|
+
summary: str = None
|
|
62
|
+
importance: Annotated[str, Field(pattern=r"^(normal|high|urgent)$")] = None
|
|
63
|
+
locale: str = None
|
|
64
|
+
link_to_message: str = None
|
|
65
|
+
from_property: MessageActionsPayloadFrom = None
|
|
66
|
+
body: MessageActionsPayloadBody = None
|
|
67
|
+
attachment_layout: str = None
|
|
68
|
+
attachments: List[MessageActionsPayloadAttachment] = None
|
|
69
|
+
mentions: List[MessageActionsPayloadMention] = None
|
|
70
|
+
reactions: List[MessageActionsPayloadReaction] = None
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
from ..agents_model import AgentsModel
|
|
6
|
+
from typing import Annotated, Optional
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class MessageActionsPayloadApp(AgentsModel):
|
|
10
|
+
"""Represents an application entity.
|
|
11
|
+
|
|
12
|
+
:param application_identity_type: The type of application. Possible values include: 'aadApplication', 'bot', 'tenantBot', 'office365Connector', 'webhook'
|
|
13
|
+
:type application_identity_type: Optional[str]
|
|
14
|
+
:param id: The id of the application.
|
|
15
|
+
:type id: Optional[str]
|
|
16
|
+
:param display_name: The plaintext display name of the application.
|
|
17
|
+
:type display_name: Optional[str]
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
application_identity_type: Optional[
|
|
21
|
+
Annotated[
|
|
22
|
+
str,
|
|
23
|
+
Field(
|
|
24
|
+
pattern=r"^(aadApplication|bot|tenantBot|office365Connector|webhook)$"
|
|
25
|
+
),
|
|
26
|
+
]
|
|
27
|
+
]
|
|
28
|
+
id: Optional[str]
|
|
29
|
+
display_name: Optional[str]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Any, Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MessageActionsPayloadAttachment(AgentsModel):
|
|
9
|
+
"""Represents the attachment in a message.
|
|
10
|
+
|
|
11
|
+
:param id: The id of the attachment.
|
|
12
|
+
:type id: Optional[str]
|
|
13
|
+
:param content_type: The type of the attachment.
|
|
14
|
+
:type content_type: Optional[str]
|
|
15
|
+
:param content_url: The url of the attachment, in case of an external link.
|
|
16
|
+
:type content_url: Optional[str]
|
|
17
|
+
:param content: The content of the attachment, in case of a code snippet, email, or file.
|
|
18
|
+
:type content: Optional[Any]
|
|
19
|
+
:param name: The plaintext display name of the attachment.
|
|
20
|
+
:type name: Optional[str]
|
|
21
|
+
:param thumbnail_url: The url of a thumbnail image that might be embedded in the attachment, in case of a card.
|
|
22
|
+
:type thumbnail_url: Optional[str]
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
id: Optional[str]
|
|
26
|
+
content_type: Optional[str]
|
|
27
|
+
content_url: Optional[str]
|
|
28
|
+
content: Optional[Any]
|
|
29
|
+
name: Optional[str]
|
|
30
|
+
thumbnail_url: Optional[str]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MessageActionsPayloadBody(AgentsModel):
|
|
8
|
+
"""Plaintext/HTML representation of the content of the message.
|
|
9
|
+
|
|
10
|
+
:param content_type: Type of the content. Possible values include: 'html', 'text'
|
|
11
|
+
:type content_type: str
|
|
12
|
+
:param content: The content of the body.
|
|
13
|
+
:type content: str
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
content_type: str = None
|
|
17
|
+
content: str = None
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MessageActionsPayloadConversation(AgentsModel):
|
|
8
|
+
"""Represents a team or channel entity.
|
|
9
|
+
|
|
10
|
+
:param conversation_identity_type: The type of conversation, whether a team or channel.
|
|
11
|
+
:type conversation_identity_type: str
|
|
12
|
+
:param id: The id of the team or channel.
|
|
13
|
+
:type id: str
|
|
14
|
+
:param display_name: The plaintext display name of the team or channel entity.
|
|
15
|
+
:type display_name: str
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
conversation_identity_type: str = None
|
|
19
|
+
id: str = None
|
|
20
|
+
display_name: str = None
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
from ..agents_model import AgentsModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
from .message_actions_payload_user import MessageActionsPayloadUser
|
|
8
|
+
from .message_actions_payload_app import MessageActionsPayloadApp
|
|
9
|
+
from .message_actions_payload_conversation import MessageActionsPayloadConversation
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class MessageActionsPayloadFrom(AgentsModel):
|
|
13
|
+
"""Represents a user, application, or conversation type that either sent or was referenced in a message.
|
|
14
|
+
|
|
15
|
+
:param user: Represents details of the user.
|
|
16
|
+
:type user: Optional["MessageActionsPayloadUser"]
|
|
17
|
+
:param application: Represents details of the app.
|
|
18
|
+
:type application: Optional["MessageActionsPayloadApp"]
|
|
19
|
+
:param conversation: Represents details of the conversation.
|
|
20
|
+
:type conversation: Optional["MessageActionsPayloadConversation"]
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
user: Optional[MessageActionsPayloadUser]
|
|
24
|
+
application: Optional[MessageActionsPayloadApp]
|
|
25
|
+
conversation: Optional[MessageActionsPayloadConversation]
|