microsoft-agents-activity 0.0.0__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.

Potentially problematic release.


This version of microsoft-agents-activity might be problematic. Click here for more details.

Files changed (195) hide show
  1. microsoft/agents/activity/__init__.py +191 -0
  2. microsoft/agents/activity/_load_configuration.py +25 -0
  3. microsoft/agents/activity/_type_aliases.py +5 -0
  4. microsoft/agents/activity/action_types.py +14 -0
  5. microsoft/agents/activity/activity.py +613 -0
  6. microsoft/agents/activity/activity_event_names.py +6 -0
  7. microsoft/agents/activity/activity_importance.py +7 -0
  8. microsoft/agents/activity/activity_types.py +22 -0
  9. microsoft/agents/activity/adaptive_card_invoke_action.py +24 -0
  10. microsoft/agents/activity/adaptive_card_invoke_response.py +20 -0
  11. microsoft/agents/activity/adaptive_card_invoke_value.py +22 -0
  12. microsoft/agents/activity/agents_model.py +18 -0
  13. microsoft/agents/activity/ai_entity.py +142 -0
  14. microsoft/agents/activity/animation_card.py +54 -0
  15. microsoft/agents/activity/attachment.py +24 -0
  16. microsoft/agents/activity/attachment_data.py +21 -0
  17. microsoft/agents/activity/attachment_info.py +19 -0
  18. microsoft/agents/activity/attachment_layout_types.py +6 -0
  19. microsoft/agents/activity/attachment_view.py +15 -0
  20. microsoft/agents/activity/audio_card.py +54 -0
  21. microsoft/agents/activity/basic_card.py +30 -0
  22. microsoft/agents/activity/caller_id_constants.py +7 -0
  23. microsoft/agents/activity/card_action.py +39 -0
  24. microsoft/agents/activity/card_image.py +19 -0
  25. microsoft/agents/activity/channel_account.py +33 -0
  26. microsoft/agents/activity/channel_adapter_protocol.py +76 -0
  27. microsoft/agents/activity/channels.py +158 -0
  28. microsoft/agents/activity/contact_relation_update_action_types.py +6 -0
  29. microsoft/agents/activity/conversation_account.py +38 -0
  30. microsoft/agents/activity/conversation_members.py +16 -0
  31. microsoft/agents/activity/conversation_parameters.py +37 -0
  32. microsoft/agents/activity/conversation_reference.py +60 -0
  33. microsoft/agents/activity/conversation_resource_response.py +19 -0
  34. microsoft/agents/activity/conversation_update_types.py +15 -0
  35. microsoft/agents/activity/conversations_result.py +17 -0
  36. microsoft/agents/activity/delivery_modes.py +9 -0
  37. microsoft/agents/activity/end_of_conversation_codes.py +10 -0
  38. microsoft/agents/activity/entity.py +38 -0
  39. microsoft/agents/activity/error.py +19 -0
  40. microsoft/agents/activity/error_response.py +12 -0
  41. microsoft/agents/activity/expected_replies.py +13 -0
  42. microsoft/agents/activity/fact.py +18 -0
  43. microsoft/agents/activity/geo_coordinates.py +27 -0
  44. microsoft/agents/activity/hero_card.py +30 -0
  45. microsoft/agents/activity/inner_http_error.py +14 -0
  46. microsoft/agents/activity/input_hints.py +10 -0
  47. microsoft/agents/activity/installation_update_action_types.py +6 -0
  48. microsoft/agents/activity/invoke_response.py +24 -0
  49. microsoft/agents/activity/media_card.py +54 -0
  50. microsoft/agents/activity/media_event_value.py +12 -0
  51. microsoft/agents/activity/media_url.py +16 -0
  52. microsoft/agents/activity/mention.py +19 -0
  53. microsoft/agents/activity/message_reaction.py +13 -0
  54. microsoft/agents/activity/message_reaction_types.py +11 -0
  55. microsoft/agents/activity/message_update_types.py +7 -0
  56. microsoft/agents/activity/oauth_card.py +24 -0
  57. microsoft/agents/activity/paged_members_result.py +16 -0
  58. microsoft/agents/activity/place.py +27 -0
  59. microsoft/agents/activity/receipt_card.py +36 -0
  60. microsoft/agents/activity/receipt_item.py +35 -0
  61. microsoft/agents/activity/resource_response.py +12 -0
  62. microsoft/agents/activity/role_types.py +7 -0
  63. microsoft/agents/activity/semantic_action.py +18 -0
  64. microsoft/agents/activity/semantic_actions_states.py +7 -0
  65. microsoft/agents/activity/sign_in_constants.py +13 -0
  66. microsoft/agents/activity/sign_in_resource.py +14 -0
  67. microsoft/agents/activity/signin_card.py +16 -0
  68. microsoft/agents/activity/suggested_actions.py +18 -0
  69. microsoft/agents/activity/teams/__init__.py +198 -0
  70. microsoft/agents/activity/teams/app_based_link_query.py +18 -0
  71. microsoft/agents/activity/teams/batch_failed_entries_response.py +15 -0
  72. microsoft/agents/activity/teams/batch_failed_entry.py +16 -0
  73. microsoft/agents/activity/teams/batch_operation_response.py +13 -0
  74. microsoft/agents/activity/teams/batch_operation_state_response.py +24 -0
  75. microsoft/agents/activity/teams/bot_config_auth.py +18 -0
  76. microsoft/agents/activity/teams/cache_info.py +18 -0
  77. microsoft/agents/activity/teams/cancel_operation_response.py +19 -0
  78. microsoft/agents/activity/teams/channel_info.py +21 -0
  79. microsoft/agents/activity/teams/config_auth_response.py +17 -0
  80. microsoft/agents/activity/teams/config_response.py +18 -0
  81. microsoft/agents/activity/teams/config_response_base.py +14 -0
  82. microsoft/agents/activity/teams/config_task_response.py +18 -0
  83. microsoft/agents/activity/teams/conversation_list.py +17 -0
  84. microsoft/agents/activity/teams/file_consent_card.py +24 -0
  85. microsoft/agents/activity/teams/file_consent_card_response.py +21 -0
  86. microsoft/agents/activity/teams/file_download_info.py +24 -0
  87. microsoft/agents/activity/teams/file_info_card.py +21 -0
  88. microsoft/agents/activity/teams/file_upload_info.py +26 -0
  89. microsoft/agents/activity/teams/meeting_details.py +23 -0
  90. microsoft/agents/activity/teams/meeting_details_base.py +21 -0
  91. microsoft/agents/activity/teams/meeting_end_event_details.py +15 -0
  92. microsoft/agents/activity/teams/meeting_event_details.py +15 -0
  93. microsoft/agents/activity/teams/meeting_info.py +24 -0
  94. microsoft/agents/activity/teams/meeting_notification.py +15 -0
  95. microsoft/agents/activity/teams/meeting_notification_base.py +14 -0
  96. microsoft/agents/activity/teams/meeting_notification_channel_data.py +16 -0
  97. microsoft/agents/activity/teams/meeting_notification_recipient_failure_info.py +20 -0
  98. microsoft/agents/activity/teams/meeting_notification_response.py +20 -0
  99. microsoft/agents/activity/teams/meeting_participant_info.py +18 -0
  100. microsoft/agents/activity/teams/meeting_participants_event_details.py +16 -0
  101. microsoft/agents/activity/teams/meeting_stage_surface.py +25 -0
  102. microsoft/agents/activity/teams/meeting_start_event_details.py +15 -0
  103. microsoft/agents/activity/teams/meeting_tab_icon_surface.py +15 -0
  104. microsoft/agents/activity/teams/message_actions_payload.py +70 -0
  105. microsoft/agents/activity/teams/message_actions_payload_app.py +29 -0
  106. microsoft/agents/activity/teams/message_actions_payload_attachment.py +30 -0
  107. microsoft/agents/activity/teams/message_actions_payload_body.py +17 -0
  108. microsoft/agents/activity/teams/message_actions_payload_conversation.py +20 -0
  109. microsoft/agents/activity/teams/message_actions_payload_from.py +25 -0
  110. microsoft/agents/activity/teams/message_actions_payload_mention.py +23 -0
  111. microsoft/agents/activity/teams/message_actions_payload_reaction.py +23 -0
  112. microsoft/agents/activity/teams/message_actions_payload_user.py +27 -0
  113. microsoft/agents/activity/teams/messaging_extension_action.py +37 -0
  114. microsoft/agents/activity/teams/messaging_extension_action_response.py +24 -0
  115. microsoft/agents/activity/teams/messaging_extension_attachment.py +32 -0
  116. microsoft/agents/activity/teams/messaging_extension_parameter.py +17 -0
  117. microsoft/agents/activity/teams/messaging_extension_query.py +27 -0
  118. microsoft/agents/activity/teams/messaging_extension_query_options.py +17 -0
  119. microsoft/agents/activity/teams/messaging_extension_response.py +21 -0
  120. microsoft/agents/activity/teams/messaging_extension_result.py +34 -0
  121. microsoft/agents/activity/teams/messaging_extension_suggested_action.py +17 -0
  122. microsoft/agents/activity/teams/notification_info.py +21 -0
  123. microsoft/agents/activity/teams/o365_connector_card.py +32 -0
  124. microsoft/agents/activity/teams/o365_connector_card_action_base.py +21 -0
  125. microsoft/agents/activity/teams/o365_connector_card_action_card.py +30 -0
  126. microsoft/agents/activity/teams/o365_connector_card_action_query.py +15 -0
  127. microsoft/agents/activity/teams/o365_connector_card_date_input.py +30 -0
  128. microsoft/agents/activity/teams/o365_connector_card_fact.py +17 -0
  129. microsoft/agents/activity/teams/o365_connector_card_http_post.py +25 -0
  130. microsoft/agents/activity/teams/o365_connector_card_image.py +18 -0
  131. microsoft/agents/activity/teams/o365_connector_card_input_base.py +28 -0
  132. microsoft/agents/activity/teams/o365_connector_card_multichoice_input.py +40 -0
  133. microsoft/agents/activity/teams/o365_connector_card_multichoice_input_choice.py +17 -0
  134. microsoft/agents/activity/teams/o365_connector_card_open_uri.py +26 -0
  135. microsoft/agents/activity/teams/o365_connector_card_open_uri_target.py +17 -0
  136. microsoft/agents/activity/teams/o365_connector_card_section.py +42 -0
  137. microsoft/agents/activity/teams/o365_connector_card_text_input.py +31 -0
  138. microsoft/agents/activity/teams/o365_connector_card_view_action.py +25 -0
  139. microsoft/agents/activity/teams/on_behalf_of.py +23 -0
  140. microsoft/agents/activity/teams/read_receipt_info.py +47 -0
  141. microsoft/agents/activity/teams/signin_state_verification_query.py +14 -0
  142. microsoft/agents/activity/teams/surface.py +18 -0
  143. microsoft/agents/activity/teams/tab_context.py +14 -0
  144. microsoft/agents/activity/teams/tab_entity_context.py +15 -0
  145. microsoft/agents/activity/teams/tab_request.py +22 -0
  146. microsoft/agents/activity/teams/tab_response.py +16 -0
  147. microsoft/agents/activity/teams/tab_response_card.py +14 -0
  148. microsoft/agents/activity/teams/tab_response_cards.py +17 -0
  149. microsoft/agents/activity/teams/tab_response_payload.py +25 -0
  150. microsoft/agents/activity/teams/tab_submit.py +23 -0
  151. microsoft/agents/activity/teams/tab_submit_data.py +18 -0
  152. microsoft/agents/activity/teams/tab_suggested_actions.py +17 -0
  153. microsoft/agents/activity/teams/targeted_meeting_notification.py +19 -0
  154. microsoft/agents/activity/teams/targeted_meeting_notification_value.py +19 -0
  155. microsoft/agents/activity/teams/task_module_card_response.py +15 -0
  156. microsoft/agents/activity/teams/task_module_continue_response.py +19 -0
  157. microsoft/agents/activity/teams/task_module_message_response.py +18 -0
  158. microsoft/agents/activity/teams/task_module_request.py +25 -0
  159. microsoft/agents/activity/teams/task_module_request_context.py +15 -0
  160. microsoft/agents/activity/teams/task_module_response.py +20 -0
  161. microsoft/agents/activity/teams/task_module_response_base.py +17 -0
  162. microsoft/agents/activity/teams/task_module_task_info.py +30 -0
  163. microsoft/agents/activity/teams/team_details.py +29 -0
  164. microsoft/agents/activity/teams/team_info.py +20 -0
  165. microsoft/agents/activity/teams/teams_batch_operation_response.py +19 -0
  166. microsoft/agents/activity/teams/teams_channel_account.py +44 -0
  167. microsoft/agents/activity/teams/teams_channel_data.py +43 -0
  168. microsoft/agents/activity/teams/teams_channel_data_settings.py +15 -0
  169. microsoft/agents/activity/teams/teams_meeting_info.py +14 -0
  170. microsoft/agents/activity/teams/teams_meeting_member.py +19 -0
  171. microsoft/agents/activity/teams/teams_meeting_participant.py +24 -0
  172. microsoft/agents/activity/teams/teams_member.py +14 -0
  173. microsoft/agents/activity/teams/teams_paged_members_result.py +19 -0
  174. microsoft/agents/activity/teams/tenant_info.py +14 -0
  175. microsoft/agents/activity/teams/user_meeting_details.py +17 -0
  176. microsoft/agents/activity/text_format_types.py +7 -0
  177. microsoft/agents/activity/text_highlight.py +16 -0
  178. microsoft/agents/activity/thing.py +15 -0
  179. microsoft/agents/activity/thumbnail_card.py +30 -0
  180. microsoft/agents/activity/thumbnail_url.py +15 -0
  181. microsoft/agents/activity/token_exchange_invoke_request.py +21 -0
  182. microsoft/agents/activity/token_exchange_invoke_response.py +21 -0
  183. microsoft/agents/activity/token_exchange_resource.py +13 -0
  184. microsoft/agents/activity/token_exchange_state.py +38 -0
  185. microsoft/agents/activity/token_post_resource.py +11 -0
  186. microsoft/agents/activity/token_request.py +16 -0
  187. microsoft/agents/activity/token_response.py +25 -0
  188. microsoft/agents/activity/token_status.py +32 -0
  189. microsoft/agents/activity/transcript.py +13 -0
  190. microsoft/agents/activity/turn_context_protocol.py +65 -0
  191. microsoft/agents/activity/video_card.py +54 -0
  192. microsoft_agents_activity-0.0.0.dist-info/METADATA +11 -0
  193. microsoft_agents_activity-0.0.0.dist-info/RECORD +195 -0
  194. microsoft_agents_activity-0.0.0.dist-info/WHEEL +5 -0
  195. microsoft_agents_activity-0.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,17 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from pydantic import ConfigDict
5
+ from ..agents_model import AgentsModel
6
+
7
+
8
+ class TaskModuleResponseBase(AgentsModel):
9
+ """Base class for task module responses.
10
+
11
+ :param type: The type of response.
12
+ :type type: str
13
+ """
14
+
15
+ model_config = ConfigDict(extra="allow")
16
+
17
+ type: str = None
@@ -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
+
6
+ from ..attachment import Attachment
7
+
8
+
9
+ class TaskModuleTaskInfo(AgentsModel):
10
+ """Information about a task module task.
11
+
12
+ :param title: The title of the task module.
13
+ :type title: str
14
+ :param height: The height of the task module.
15
+ :type height: int
16
+ :param width: The width of the task module.
17
+ :type width: int
18
+ :param url: The URL of the task module.
19
+ :type url: str
20
+ :param card: The adaptive card for the task module.
21
+ :type card: object
22
+ """
23
+
24
+ title: str = None
25
+ height: object = None
26
+ width: object = None
27
+ url: str = None
28
+ card: Attachment = None
29
+ fallback_url: str = None
30
+ completion_bot_id: str = None
@@ -0,0 +1,29 @@
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 TeamDetails(AgentsModel):
8
+ """Details related to a team.
9
+
10
+ :param id: Unique identifier representing a team
11
+ :type id: str
12
+ :param name: Name of team.
13
+ :type name: str
14
+ :param aad_group_id: Azure Active Directory (AAD) Group Id for the team.
15
+ :type aad_group_id: str
16
+ :param channel_count: The count of channels in the team.
17
+ :type channel_count: int
18
+ :param member_count: The count of members in the team.
19
+ :type member_count: int
20
+ :param type: The team type
21
+ :type type: str
22
+ """
23
+
24
+ id: str = None
25
+ name: str = None
26
+ aad_group_id: str = None
27
+ channel_count: int = None
28
+ member_count: int = None
29
+ type: 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 TeamInfo(AgentsModel):
8
+ """Describes a team.
9
+
10
+ :param id: Unique identifier representing a team
11
+ :type id: str
12
+ :param name: Name of team.
13
+ :type name: str
14
+ :param aad_group_id: Azure AD Teams group ID.
15
+ :type aad_group_id: str
16
+ """
17
+
18
+ id: str = None
19
+ name: str = None
20
+ aad_group_id: str = None
@@ -0,0 +1,19 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from .batch_operation_response import BatchOperationResponse
5
+
6
+
7
+ class TeamsBatchOperationResponse(BatchOperationResponse):
8
+ """
9
+ :param operation_id: Unique identifier of the batch operation.
10
+ :type operation_id: str
11
+ :param body_as_text: The body of the request as text.
12
+ :type body_as_text: str
13
+ :param parsed_body: The parsed body of the request.
14
+ :type parsed_body: BatchOperationResponse
15
+ """
16
+
17
+ operation_id: str = None
18
+ body_as_text: str = None
19
+ parsed_body: BatchOperationResponse = None
@@ -0,0 +1,44 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from typing import Any
5
+ from pydantic import ConfigDict
6
+ from ..agents_model import AgentsModel
7
+
8
+
9
+ class TeamsChannelAccount(AgentsModel):
10
+ """Teams channel account detailing user Azure Active Directory details.
11
+
12
+ :param id: Channel id for the user or bot on this channel (Example: joe@smith.com, or @joesmith or 123456)
13
+ :type id: str
14
+ :param name: Display friendly name
15
+ :type name: str
16
+ :param given_name: Given name part of the user name.
17
+ :type given_name: str
18
+ :param surname: Surname part of the user name.
19
+ :type surname: str
20
+ :param email: Email Id of the user.
21
+ :type email: str
22
+ :param user_principal_name: Unique user principal name.
23
+ :type user_principal_name: str
24
+ :param tenant_id: Tenant Id of the user.
25
+ :type tenant_id: str
26
+ :param user_role: User Role of the user.
27
+ :type user_role: str
28
+ """
29
+
30
+ model_config = ConfigDict(extra="allow")
31
+
32
+ id: str = None
33
+ name: str = None
34
+ given_name: str = None
35
+ surname: str = None
36
+ email: str = None
37
+ user_principal_name: str = None
38
+ tenant_id: str = None
39
+ user_role: str = None
40
+
41
+ @property
42
+ def properties(self) -> dict[str, Any]:
43
+ """Returns the set of properties that are not None."""
44
+ return self.model_extra
@@ -0,0 +1,43 @@
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 .channel_info import ChannelInfo
7
+ from .team_info import TeamInfo
8
+ from .notification_info import NotificationInfo
9
+ from .tenant_info import TenantInfo
10
+ from .teams_meeting_info import TeamsMeetingInfo
11
+ from .teams_channel_data_settings import TeamsChannelDataSettings
12
+ from .on_behalf_of import OnBehalfOf
13
+
14
+
15
+ class TeamsChannelData(AgentsModel):
16
+ """Channel data specific to messages received in Microsoft Teams.
17
+
18
+ :param channel: Information about the channel in which the message was sent
19
+ :type channel: ChannelInfo
20
+ :param event_type: Type of event.
21
+ :type event_type: str
22
+ :param team: Information about the team in which the message was sent
23
+ :type team: TeamInfo
24
+ :param notification: Notification settings for the message
25
+ :type notification: NotificationInfo
26
+ :param tenant: Information about the tenant in which the message was sent
27
+ :type tenant: TenantInfo
28
+ :param meeting: Information about the meeting in which the message was sent
29
+ :type meeting: TeamsMeetingInfo
30
+ :param settings: Information about the settings in which the message was sent
31
+ :type settings: TeamsChannelDataSettings
32
+ :param on_behalf_of: The OnBehalfOf list for user attribution
33
+ :type on_behalf_of: List[OnBehalfOf]
34
+ """
35
+
36
+ channel: ChannelInfo = None
37
+ event_type: str = None
38
+ team: TeamInfo = None
39
+ notification: NotificationInfo = None
40
+ tenant: TenantInfo = None
41
+ meeting: TeamsMeetingInfo = None
42
+ settings: TeamsChannelDataSettings = None
43
+ on_behalf_of: List[OnBehalfOf] = 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 .channel_info import ChannelInfo
6
+
7
+
8
+ class TeamsChannelDataSettings(AgentsModel):
9
+ """Represents the settings information for a Teams channel data.
10
+
11
+ :param selected_channel: Information about the selected Teams channel.
12
+ :type selected_channel: ChannelInfo
13
+ """
14
+
15
+ selected_channel: ChannelInfo = 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 TeamsMeetingInfo(AgentsModel):
8
+ """Describes a Teams Meeting.
9
+
10
+ :param id: Unique identifier representing a meeting
11
+ :type id: str
12
+ """
13
+
14
+ id: str = None
@@ -0,0 +1,19 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from ..agents_model import AgentsModel
5
+ from .teams_channel_account import TeamsChannelAccount
6
+ from .user_meeting_details import UserMeetingDetails
7
+
8
+
9
+ class TeamsMeetingMember(AgentsModel):
10
+ """Data about the meeting participants.
11
+
12
+ :param user: The channel user data.
13
+ :type user: TeamsChannelAccount
14
+ :param meeting: The user meeting details.
15
+ :type meeting: UserMeetingDetails
16
+ """
17
+
18
+ user: TeamsChannelAccount = None
19
+ meeting: UserMeetingDetails = 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 .teams_channel_account import TeamsChannelAccount
7
+ from .meeting_participant_info import MeetingParticipantInfo
8
+ from ..conversation_account import ConversationAccount
9
+
10
+
11
+ class TeamsMeetingParticipant(AgentsModel):
12
+ """Teams participant channel account detailing user Azure Active Directory and meeting participant details.
13
+
14
+ :param user: Teams Channel Account information for this meeting participant
15
+ :type user: TeamsChannelAccount
16
+ :param meeting: Information specific to this participant in the specific meeting.
17
+ :type meeting: MeetingParticipantInfo
18
+ :param conversation: Conversation Account for the meeting.
19
+ :type conversation: ConversationAccount
20
+ """
21
+
22
+ user: TeamsChannelAccount = None
23
+ meeting: MeetingParticipantInfo = None
24
+ conversation: ConversationAccount = 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 TeamsMember(AgentsModel):
8
+ """Describes a member.
9
+
10
+ :param id: Unique identifier representing a member (user or channel).
11
+ :type id: str
12
+ """
13
+
14
+ id: str = None
@@ -0,0 +1,19 @@
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_channel_account import TeamsChannelAccount
7
+
8
+
9
+ class TeamsPagedMembersResult(AgentsModel):
10
+ """Page of members for Teams.
11
+
12
+ :param continuation_token: Paging token
13
+ :type continuation_token: str
14
+ :param members: The Teams Channel Accounts.
15
+ :type members: list[TeamsChannelAccount]
16
+ """
17
+
18
+ continuation_token: str = None
19
+ members: List[TeamsChannelAccount] = 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 TenantInfo(AgentsModel):
8
+ """Describes a tenant.
9
+
10
+ :param id: Unique identifier representing a tenant
11
+ :type id: str
12
+ """
13
+
14
+ id: str = None
@@ -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 UserMeetingDetails(AgentsModel):
8
+ """Specific details of a user in a Teams meeting.
9
+
10
+ :param role: Role of the participant in the current meeting.
11
+ :type role: str
12
+ :param in_meeting: True, if the participant is in the meeting.
13
+ :type in_meeting: bool
14
+ """
15
+
16
+ role: str = None
17
+ in_meeting: bool = None
@@ -0,0 +1,7 @@
1
+ from enum import Enum
2
+
3
+
4
+ class TextFormatTypes(str, Enum):
5
+ markdown = "markdown"
6
+ plain = "plain"
7
+ xml = "xml"
@@ -0,0 +1,16 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class TextHighlight(AgentsModel):
6
+ """Refers to a substring of content within another field.
7
+
8
+ :param text: Defines the snippet of text to highlight
9
+ :type text: str
10
+ :param occurrence: Occurrence of the text field within the referenced
11
+ text, if multiple exist.
12
+ :type occurrence: int
13
+ """
14
+
15
+ text: NonEmptyString
16
+ occurrence: int
@@ -0,0 +1,15 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class Thing(AgentsModel):
6
+ """Thing (entity type: "https://schema.org/Thing").
7
+
8
+ :param type: The type of the thing
9
+ :type type: str
10
+ :param name: The name of the thing
11
+ :type name: str
12
+ """
13
+
14
+ type: NonEmptyString = None
15
+ name: NonEmptyString = None
@@ -0,0 +1,30 @@
1
+ from .card_image import CardImage
2
+ from .card_action import CardAction
3
+ from .agents_model import AgentsModel
4
+ from ._type_aliases import NonEmptyString
5
+
6
+
7
+ class ThumbnailCard(AgentsModel):
8
+ """A thumbnail card (card with a single, small thumbnail image).
9
+
10
+ :param title: Title of the card
11
+ :type title: str
12
+ :param subtitle: Subtitle of the card
13
+ :type subtitle: str
14
+ :param text: Text for the card
15
+ :type text: str
16
+ :param images: Array of images for the card
17
+ :type images: list[~microsoft.agents.protocols.models.CardImage]
18
+ :param buttons: Set of actions applicable to the current card
19
+ :type buttons: list[~microsoft.agents.protocols.models.CardAction]
20
+ :param tap: This action will be activated when user taps on the card
21
+ itself
22
+ :type tap: ~microsoft.agents.protocols.models.CardAction
23
+ """
24
+
25
+ title: NonEmptyString = None
26
+ subtitle: NonEmptyString = None
27
+ text: NonEmptyString = None
28
+ images: list[CardImage] = None
29
+ buttons: list[CardAction] = None
30
+ tap: CardAction = None
@@ -0,0 +1,15 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class ThumbnailUrl(AgentsModel):
6
+ """Thumbnail URL.
7
+
8
+ :param url: URL pointing to the thumbnail to use for media content
9
+ :type url: str
10
+ :param alt: HTML alt text to include on this thumbnail image
11
+ :type alt: str
12
+ """
13
+
14
+ url: NonEmptyString = None
15
+ alt: NonEmptyString = None
@@ -0,0 +1,21 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class TokenExchangeInvokeRequest(AgentsModel):
6
+ """TokenExchangeInvokeRequest.
7
+
8
+ :param id: The id from the OAuthCard.
9
+ :type id: str
10
+ :param connection_name: The connection name.
11
+ :type connection_name: str
12
+ :param token: The user token that can be exchanged.
13
+ :type token: str
14
+ :param properties: Extension data for overflow of properties.
15
+ :type properties: dict[str, object]
16
+ """
17
+
18
+ id: NonEmptyString = None
19
+ connection_name: NonEmptyString = None
20
+ token: NonEmptyString = None
21
+ properties: dict = None
@@ -0,0 +1,21 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class TokenExchangeInvokeResponse(AgentsModel):
6
+ """TokenExchangeInvokeResponse.
7
+
8
+ :param id: The id from the OAuthCard.
9
+ :type id: str
10
+ :param connection_name: The connection name.
11
+ :type connection_name: str
12
+ :param failure_detail: The details of why the token exchange failed.
13
+ :type failure_detail: str
14
+ :param properties: Extension data for overflow of properties.
15
+ :type properties: dict[str, object]
16
+ """
17
+
18
+ id: NonEmptyString = None
19
+ connection_name: NonEmptyString = None
20
+ failure_detail: NonEmptyString = None
21
+ properties: dict = None
@@ -0,0 +1,13 @@
1
+ from .agents_model import AgentsModel
2
+
3
+ from ._type_aliases import NonEmptyString
4
+
5
+
6
+ class TokenExchangeResource(AgentsModel):
7
+ """
8
+ A type containing information for token exchange.
9
+ """
10
+
11
+ id: NonEmptyString = None
12
+ uri: NonEmptyString = None
13
+ provider_id: NonEmptyString = None
@@ -0,0 +1,38 @@
1
+ import base64
2
+ import json
3
+ from typing import Optional
4
+ from pydantic import Field
5
+
6
+ from .conversation_reference import ConversationReference
7
+ from .agents_model import AgentsModel
8
+ from ._type_aliases import NonEmptyString
9
+
10
+
11
+ class TokenExchangeState(AgentsModel):
12
+ """TokenExchangeState
13
+
14
+ :param connection_name: The connection name that was used.
15
+ :type connection_name: str
16
+ :param conversation: Gets or sets a reference to the conversation.
17
+ :type conversation: ~microsoft.agents.protocols.models.ConversationReference
18
+ :param relates_to: Gets or sets a reference to a related parent conversation for this token exchange.
19
+ :type relates_to: ~microsoft.agents.protocols.models.ConversationReference
20
+ :param agent_url: The URL of the agent messaging endpoint.
21
+ :type agent_url: str
22
+ :param ms_app_id: The agent's registered application ID.
23
+ :type ms_app_id: str
24
+ """
25
+
26
+ connection_name: NonEmptyString = None
27
+ conversation: ConversationReference = None
28
+ relates_to: Optional[ConversationReference] = None
29
+ agent_url: NonEmptyString = Field(None, alias="bot_url")
30
+ ms_app_id: NonEmptyString = None
31
+
32
+ def get_encoded_state(self) -> str:
33
+ """Returns the encoded state for the token exchange."""
34
+ return base64.b64encode(
35
+ json.dumps(
36
+ self.model_dump(by_alias=True, exclude_none=True, exclude_unset=True)
37
+ ).encode(encoding="UTF-8", errors="strict")
38
+ ).decode()
@@ -0,0 +1,11 @@
1
+ from .agents_model import AgentsModel
2
+
3
+ from ._type_aliases import NonEmptyString
4
+
5
+
6
+ class TokenPostResource(AgentsModel):
7
+ """
8
+ A type containing information for token posting.
9
+ """
10
+
11
+ sas_url: NonEmptyString = None
@@ -0,0 +1,16 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class TokenRequest(AgentsModel):
6
+ """A request to receive a user token.
7
+
8
+ :param provider: The provider to request a user token from
9
+ :type provider: str
10
+ :param settings: A collection of settings for the specific provider for
11
+ this request
12
+ :type settings: dict[str, object]
13
+ """
14
+
15
+ provider: NonEmptyString = None
16
+ settings: dict = 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 ._type_aliases import NonEmptyString
6
+
7
+
8
+ class TokenResponse(AgentsModel):
9
+ """A response that includes a user token.
10
+
11
+ :param connection_name: The connection name
12
+ :type connection_name: str
13
+ :param token: The user token
14
+ :type token: str
15
+ :param expiration: Expiration for the token, in ISO 8601 format (e.g.
16
+ "2007-04-05T14:30Z")
17
+ :type expiration: str
18
+ :param channel_id: The channelId of the TokenResponse
19
+ :type channel_id: str
20
+ """
21
+
22
+ connection_name: NonEmptyString = None
23
+ token: NonEmptyString = None
24
+ expiration: NonEmptyString = None
25
+ channel_id: NonEmptyString = None
@@ -0,0 +1,32 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ """Models for token status operations."""
5
+
6
+ from typing import Optional
7
+ from pydantic import Field
8
+
9
+ from .agents_model import AgentsModel
10
+ from ._type_aliases import NonEmptyString
11
+
12
+
13
+ class TokenStatus(AgentsModel):
14
+ """
15
+ The status of a user token.
16
+
17
+ :param channel_id: The channelId of the token status pertains to.
18
+ :type channel_id: str
19
+ :param connection_name: The name of the connection the token status pertains to.
20
+ :type connection_name: str
21
+ :param has_token: True if a token is stored for this ConnectionName.
22
+ :type has_token: bool
23
+ :param service_provider_display_name: The display name of the service provider for which this Token belongs to.
24
+ :type service_provider_display_name: str
25
+ """
26
+
27
+ channel_id: Optional[NonEmptyString] = Field(None, alias="channelId")
28
+ connection_name: Optional[NonEmptyString] = Field(None, alias="connectionName")
29
+ has_token: Optional[bool] = Field(None, alias="hasToken")
30
+ service_provider_display_name: Optional[NonEmptyString] = Field(
31
+ None, alias="serviceProviderDisplayName"
32
+ )
@@ -0,0 +1,13 @@
1
+ from .activity import Activity
2
+ from .agents_model import AgentsModel
3
+
4
+
5
+ class Transcript(AgentsModel):
6
+ """Transcript.
7
+
8
+ :param activities: A collection of Activities that conforms to the
9
+ Transcript schema.
10
+ :type activities: list[~microsoft.agents.protocols.models.Activity]
11
+ """
12
+
13
+ activities: list[Activity] = None