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.
Files changed (208) hide show
  1. microsoft_agents/activity/__init__.py +200 -0
  2. microsoft_agents/activity/_channel_id_field_mixin.py +95 -0
  3. microsoft_agents/activity/_load_configuration.py +33 -0
  4. microsoft_agents/activity/_model_utils.py +64 -0
  5. microsoft_agents/activity/_type_aliases.py +7 -0
  6. microsoft_agents/activity/_utils/__init__.py +6 -0
  7. microsoft_agents/activity/_utils/_deferred_string.py +34 -0
  8. microsoft_agents/activity/action_types.py +17 -0
  9. microsoft_agents/activity/activity.py +787 -0
  10. microsoft_agents/activity/activity_event_names.py +9 -0
  11. microsoft_agents/activity/activity_importance.py +10 -0
  12. microsoft_agents/activity/activity_types.py +25 -0
  13. microsoft_agents/activity/adaptive_card_invoke_action.py +27 -0
  14. microsoft_agents/activity/adaptive_card_invoke_response.py +23 -0
  15. microsoft_agents/activity/adaptive_card_invoke_value.py +25 -0
  16. microsoft_agents/activity/agents_model.py +49 -0
  17. microsoft_agents/activity/animation_card.py +57 -0
  18. microsoft_agents/activity/attachment.py +27 -0
  19. microsoft_agents/activity/attachment_data.py +24 -0
  20. microsoft_agents/activity/attachment_info.py +22 -0
  21. microsoft_agents/activity/attachment_layout_types.py +9 -0
  22. microsoft_agents/activity/attachment_view.py +18 -0
  23. microsoft_agents/activity/audio_card.py +57 -0
  24. microsoft_agents/activity/basic_card.py +33 -0
  25. microsoft_agents/activity/caller_id_constants.py +10 -0
  26. microsoft_agents/activity/card_action.py +42 -0
  27. microsoft_agents/activity/card_image.py +22 -0
  28. microsoft_agents/activity/channel_account.py +39 -0
  29. microsoft_agents/activity/channel_adapter_protocol.py +79 -0
  30. microsoft_agents/activity/channel_id.py +95 -0
  31. microsoft_agents/activity/channels.py +161 -0
  32. microsoft_agents/activity/contact_relation_update_action_types.py +9 -0
  33. microsoft_agents/activity/conversation_account.py +41 -0
  34. microsoft_agents/activity/conversation_members.py +19 -0
  35. microsoft_agents/activity/conversation_parameters.py +40 -0
  36. microsoft_agents/activity/conversation_reference.py +69 -0
  37. microsoft_agents/activity/conversation_resource_response.py +22 -0
  38. microsoft_agents/activity/conversation_update_types.py +18 -0
  39. microsoft_agents/activity/conversations_result.py +20 -0
  40. microsoft_agents/activity/delivery_modes.py +12 -0
  41. microsoft_agents/activity/end_of_conversation_codes.py +13 -0
  42. microsoft_agents/activity/entity/__init__.py +36 -0
  43. microsoft_agents/activity/entity/ai_entity.py +111 -0
  44. microsoft_agents/activity/entity/entity.py +41 -0
  45. microsoft_agents/activity/entity/entity_types.py +14 -0
  46. microsoft_agents/activity/entity/geo_coordinates.py +33 -0
  47. microsoft_agents/activity/entity/mention.py +24 -0
  48. microsoft_agents/activity/entity/place.py +33 -0
  49. microsoft_agents/activity/entity/product_info.py +20 -0
  50. microsoft_agents/activity/entity/thing.py +21 -0
  51. microsoft_agents/activity/error.py +22 -0
  52. microsoft_agents/activity/error_response.py +15 -0
  53. microsoft_agents/activity/errors/__init__.py +14 -0
  54. microsoft_agents/activity/errors/error_message.py +64 -0
  55. microsoft_agents/activity/errors/error_resources.py +52 -0
  56. microsoft_agents/activity/expected_replies.py +16 -0
  57. microsoft_agents/activity/fact.py +21 -0
  58. microsoft_agents/activity/hero_card.py +33 -0
  59. microsoft_agents/activity/inner_http_error.py +17 -0
  60. microsoft_agents/activity/input_hints.py +10 -0
  61. microsoft_agents/activity/installation_update_action_types.py +9 -0
  62. microsoft_agents/activity/invoke_response.py +27 -0
  63. microsoft_agents/activity/media_card.py +57 -0
  64. microsoft_agents/activity/media_event_value.py +15 -0
  65. microsoft_agents/activity/media_url.py +19 -0
  66. microsoft_agents/activity/message_reaction.py +16 -0
  67. microsoft_agents/activity/message_reaction_types.py +14 -0
  68. microsoft_agents/activity/message_update_types.py +10 -0
  69. microsoft_agents/activity/oauth_card.py +27 -0
  70. microsoft_agents/activity/paged_members_result.py +19 -0
  71. microsoft_agents/activity/receipt_card.py +39 -0
  72. microsoft_agents/activity/receipt_item.py +38 -0
  73. microsoft_agents/activity/resource_response.py +15 -0
  74. microsoft_agents/activity/role_types.py +12 -0
  75. microsoft_agents/activity/semantic_action.py +21 -0
  76. microsoft_agents/activity/semantic_actions_states.py +10 -0
  77. microsoft_agents/activity/sign_in_constants.py +13 -0
  78. microsoft_agents/activity/sign_in_resource.py +17 -0
  79. microsoft_agents/activity/signin_card.py +19 -0
  80. microsoft_agents/activity/suggested_actions.py +21 -0
  81. microsoft_agents/activity/teams/__init__.py +198 -0
  82. microsoft_agents/activity/teams/app_based_link_query.py +18 -0
  83. microsoft_agents/activity/teams/batch_failed_entries_response.py +15 -0
  84. microsoft_agents/activity/teams/batch_failed_entry.py +16 -0
  85. microsoft_agents/activity/teams/batch_operation_response.py +13 -0
  86. microsoft_agents/activity/teams/batch_operation_state_response.py +24 -0
  87. microsoft_agents/activity/teams/bot_config_auth.py +18 -0
  88. microsoft_agents/activity/teams/cache_info.py +18 -0
  89. microsoft_agents/activity/teams/cancel_operation_response.py +19 -0
  90. microsoft_agents/activity/teams/channel_info.py +21 -0
  91. microsoft_agents/activity/teams/config_auth_response.py +17 -0
  92. microsoft_agents/activity/teams/config_response.py +18 -0
  93. microsoft_agents/activity/teams/config_response_base.py +14 -0
  94. microsoft_agents/activity/teams/config_task_response.py +18 -0
  95. microsoft_agents/activity/teams/conversation_list.py +17 -0
  96. microsoft_agents/activity/teams/file_consent_card.py +24 -0
  97. microsoft_agents/activity/teams/file_consent_card_response.py +21 -0
  98. microsoft_agents/activity/teams/file_download_info.py +24 -0
  99. microsoft_agents/activity/teams/file_info_card.py +21 -0
  100. microsoft_agents/activity/teams/file_upload_info.py +26 -0
  101. microsoft_agents/activity/teams/meeting_details.py +23 -0
  102. microsoft_agents/activity/teams/meeting_details_base.py +21 -0
  103. microsoft_agents/activity/teams/meeting_end_event_details.py +15 -0
  104. microsoft_agents/activity/teams/meeting_event_details.py +15 -0
  105. microsoft_agents/activity/teams/meeting_info.py +24 -0
  106. microsoft_agents/activity/teams/meeting_notification.py +15 -0
  107. microsoft_agents/activity/teams/meeting_notification_base.py +14 -0
  108. microsoft_agents/activity/teams/meeting_notification_channel_data.py +16 -0
  109. microsoft_agents/activity/teams/meeting_notification_recipient_failure_info.py +20 -0
  110. microsoft_agents/activity/teams/meeting_notification_response.py +20 -0
  111. microsoft_agents/activity/teams/meeting_participant_info.py +18 -0
  112. microsoft_agents/activity/teams/meeting_participants_event_details.py +16 -0
  113. microsoft_agents/activity/teams/meeting_stage_surface.py +25 -0
  114. microsoft_agents/activity/teams/meeting_start_event_details.py +15 -0
  115. microsoft_agents/activity/teams/meeting_tab_icon_surface.py +15 -0
  116. microsoft_agents/activity/teams/message_actions_payload.py +70 -0
  117. microsoft_agents/activity/teams/message_actions_payload_app.py +29 -0
  118. microsoft_agents/activity/teams/message_actions_payload_attachment.py +30 -0
  119. microsoft_agents/activity/teams/message_actions_payload_body.py +17 -0
  120. microsoft_agents/activity/teams/message_actions_payload_conversation.py +20 -0
  121. microsoft_agents/activity/teams/message_actions_payload_from.py +25 -0
  122. microsoft_agents/activity/teams/message_actions_payload_mention.py +23 -0
  123. microsoft_agents/activity/teams/message_actions_payload_reaction.py +23 -0
  124. microsoft_agents/activity/teams/message_actions_payload_user.py +27 -0
  125. microsoft_agents/activity/teams/messaging_extension_action.py +37 -0
  126. microsoft_agents/activity/teams/messaging_extension_action_response.py +24 -0
  127. microsoft_agents/activity/teams/messaging_extension_attachment.py +32 -0
  128. microsoft_agents/activity/teams/messaging_extension_parameter.py +17 -0
  129. microsoft_agents/activity/teams/messaging_extension_query.py +27 -0
  130. microsoft_agents/activity/teams/messaging_extension_query_options.py +17 -0
  131. microsoft_agents/activity/teams/messaging_extension_response.py +21 -0
  132. microsoft_agents/activity/teams/messaging_extension_result.py +34 -0
  133. microsoft_agents/activity/teams/messaging_extension_suggested_action.py +17 -0
  134. microsoft_agents/activity/teams/notification_info.py +21 -0
  135. microsoft_agents/activity/teams/o365_connector_card.py +32 -0
  136. microsoft_agents/activity/teams/o365_connector_card_action_base.py +21 -0
  137. microsoft_agents/activity/teams/o365_connector_card_action_card.py +30 -0
  138. microsoft_agents/activity/teams/o365_connector_card_action_query.py +15 -0
  139. microsoft_agents/activity/teams/o365_connector_card_date_input.py +30 -0
  140. microsoft_agents/activity/teams/o365_connector_card_fact.py +17 -0
  141. microsoft_agents/activity/teams/o365_connector_card_http_post.py +25 -0
  142. microsoft_agents/activity/teams/o365_connector_card_image.py +18 -0
  143. microsoft_agents/activity/teams/o365_connector_card_input_base.py +28 -0
  144. microsoft_agents/activity/teams/o365_connector_card_multichoice_input.py +40 -0
  145. microsoft_agents/activity/teams/o365_connector_card_multichoice_input_choice.py +17 -0
  146. microsoft_agents/activity/teams/o365_connector_card_open_uri.py +26 -0
  147. microsoft_agents/activity/teams/o365_connector_card_open_uri_target.py +17 -0
  148. microsoft_agents/activity/teams/o365_connector_card_section.py +42 -0
  149. microsoft_agents/activity/teams/o365_connector_card_text_input.py +31 -0
  150. microsoft_agents/activity/teams/o365_connector_card_view_action.py +25 -0
  151. microsoft_agents/activity/teams/on_behalf_of.py +23 -0
  152. microsoft_agents/activity/teams/read_receipt_info.py +47 -0
  153. microsoft_agents/activity/teams/signin_state_verification_query.py +14 -0
  154. microsoft_agents/activity/teams/surface.py +18 -0
  155. microsoft_agents/activity/teams/tab_context.py +14 -0
  156. microsoft_agents/activity/teams/tab_entity_context.py +15 -0
  157. microsoft_agents/activity/teams/tab_request.py +22 -0
  158. microsoft_agents/activity/teams/tab_response.py +16 -0
  159. microsoft_agents/activity/teams/tab_response_card.py +14 -0
  160. microsoft_agents/activity/teams/tab_response_cards.py +17 -0
  161. microsoft_agents/activity/teams/tab_response_payload.py +25 -0
  162. microsoft_agents/activity/teams/tab_submit.py +23 -0
  163. microsoft_agents/activity/teams/tab_submit_data.py +18 -0
  164. microsoft_agents/activity/teams/tab_suggested_actions.py +17 -0
  165. microsoft_agents/activity/teams/targeted_meeting_notification.py +19 -0
  166. microsoft_agents/activity/teams/targeted_meeting_notification_value.py +19 -0
  167. microsoft_agents/activity/teams/task_module_card_response.py +15 -0
  168. microsoft_agents/activity/teams/task_module_continue_response.py +19 -0
  169. microsoft_agents/activity/teams/task_module_message_response.py +18 -0
  170. microsoft_agents/activity/teams/task_module_request.py +25 -0
  171. microsoft_agents/activity/teams/task_module_request_context.py +15 -0
  172. microsoft_agents/activity/teams/task_module_response.py +20 -0
  173. microsoft_agents/activity/teams/task_module_response_base.py +17 -0
  174. microsoft_agents/activity/teams/task_module_task_info.py +30 -0
  175. microsoft_agents/activity/teams/team_details.py +29 -0
  176. microsoft_agents/activity/teams/team_info.py +20 -0
  177. microsoft_agents/activity/teams/teams_batch_operation_response.py +19 -0
  178. microsoft_agents/activity/teams/teams_channel_account.py +44 -0
  179. microsoft_agents/activity/teams/teams_channel_data.py +43 -0
  180. microsoft_agents/activity/teams/teams_channel_data_settings.py +15 -0
  181. microsoft_agents/activity/teams/teams_meeting_info.py +14 -0
  182. microsoft_agents/activity/teams/teams_meeting_member.py +19 -0
  183. microsoft_agents/activity/teams/teams_meeting_participant.py +24 -0
  184. microsoft_agents/activity/teams/teams_member.py +14 -0
  185. microsoft_agents/activity/teams/teams_paged_members_result.py +19 -0
  186. microsoft_agents/activity/teams/tenant_info.py +14 -0
  187. microsoft_agents/activity/teams/user_meeting_details.py +17 -0
  188. microsoft_agents/activity/text_format_types.py +10 -0
  189. microsoft_agents/activity/text_highlight.py +19 -0
  190. microsoft_agents/activity/thumbnail_card.py +33 -0
  191. microsoft_agents/activity/thumbnail_url.py +18 -0
  192. microsoft_agents/activity/token_exchange_invoke_request.py +24 -0
  193. microsoft_agents/activity/token_exchange_invoke_response.py +24 -0
  194. microsoft_agents/activity/token_exchange_resource.py +16 -0
  195. microsoft_agents/activity/token_exchange_state.py +41 -0
  196. microsoft_agents/activity/token_or_sign_in_resource_response.py +21 -0
  197. microsoft_agents/activity/token_post_resource.py +14 -0
  198. microsoft_agents/activity/token_request.py +19 -0
  199. microsoft_agents/activity/token_response.py +46 -0
  200. microsoft_agents/activity/token_status.py +32 -0
  201. microsoft_agents/activity/transcript.py +16 -0
  202. microsoft_agents/activity/turn_context_protocol.py +68 -0
  203. microsoft_agents/activity/video_card.py +57 -0
  204. microsoft_agents_activity-0.7.0.dev0.dist-info/METADATA +173 -0
  205. microsoft_agents_activity-0.7.0.dev0.dist-info/RECORD +208 -0
  206. microsoft_agents_activity-0.7.0.dev0.dist-info/WHEEL +5 -0
  207. microsoft_agents_activity-0.7.0.dev0.dist-info/licenses/LICENSE +21 -0
  208. microsoft_agents_activity-0.7.0.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,42 @@
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, Optional
6
+ from .o365_connector_card_fact import O365ConnectorCardFact
7
+ from .o365_connector_card_image import O365ConnectorCardImage
8
+ from .o365_connector_card_action_base import O365ConnectorCardActionBase
9
+
10
+
11
+ class O365ConnectorCardSection(AgentsModel):
12
+ """O365 connector card section.
13
+
14
+ :param title: Title of the section.
15
+ :type title: Optional[str]
16
+ :param text: Text for the section.
17
+ :type text: Optional[str]
18
+ :param activity_title: Activity title.
19
+ :type activity_title: Optional[str]
20
+ :param activity_subtitle: Activity subtitle.
21
+ :type activity_subtitle: Optional[str]
22
+ :param activity_image: Activity image URL.
23
+ :type activity_image: Optional[str]
24
+ :param activity_text: Activity text.
25
+ :type activity_text: Optional[str]
26
+ :param facts: List of facts for the section.
27
+ :type facts: Optional[List["O365ConnectorCardFact"]]
28
+ :param images: List of images for the section.
29
+ :type images: Optional[List["O365ConnectorCardImage"]]
30
+ :param potential_action: List of actions for the section.
31
+ :type potential_action: Optional[List["O365ConnectorCardActionBase"]]
32
+ """
33
+
34
+ title: Optional[str] = None
35
+ text: Optional[str] = None
36
+ activity_title: Optional[str] = None
37
+ activity_subtitle: Optional[str] = None
38
+ activity_image: Optional[str] = None
39
+ activity_text: Optional[str] = None
40
+ facts: Optional[List[O365ConnectorCardFact]] = None
41
+ images: Optional[List[O365ConnectorCardImage]] = None
42
+ potential_action: Optional[List[O365ConnectorCardActionBase]] = None
@@ -0,0 +1,31 @@
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 Optional
7
+
8
+
9
+ class O365ConnectorCardTextInput(AgentsModel):
10
+ """O365 connector card text input.
11
+
12
+ :param type: Input type name. Default is 'textInput'.
13
+ :type type: str
14
+ :param id: Input Id. It must be unique per entire O365 connector card.
15
+ :type id: str
16
+ :param is_required: Define if this input is a required field. Default value is false.
17
+ :type is_required: Optional[bool]
18
+ :param title: Input title that will be shown as the placeholder
19
+ :type title: Optional[str]
20
+ :param value: Default value for this input field
21
+ :type value: Optional[str]
22
+ :param is_multiline: Define if this input field allows multiple lines of text. Default value is false.
23
+ :type is_multiline: Optional[bool]
24
+ """
25
+
26
+ type: str = Field(None, alias="@type")
27
+ id: str = None
28
+ is_required: Optional[bool] = None
29
+ title: Optional[str] = None
30
+ value: Optional[str] = None
31
+ is_multiline: Optional[bool] = None
@@ -0,0 +1,25 @@
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 Optional
7
+
8
+
9
+ class O365ConnectorCardViewAction(AgentsModel):
10
+ """O365 connector card ViewAction action.
11
+
12
+ :param type: Type of the action. Default is 'ViewAction'.
13
+ :type type: str
14
+ :param name: Name of the ViewAction action.
15
+ :type name: str
16
+ :param id: Id of the ViewAction action.
17
+ :type id: str
18
+ :param target: Target URL for the ViewAction action.
19
+ :type target: Optional[str]
20
+ """
21
+
22
+ type: str = Field(None, alias="@type")
23
+ name: str = None
24
+ id: str = Field(None, alias="@id")
25
+ target: Optional[str] = None
@@ -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 OnBehalfOf(AgentsModel):
8
+ """Specifies the OnBehalfOf entity for meeting notifications.
9
+
10
+ :param item_id: The item id of the OnBehalfOf entity.
11
+ :type item_id: str
12
+ :param mention_type: The mention type. Default is "person".
13
+ :type mention_type: str
14
+ :param display_name: The display name of the OnBehalfOf entity.
15
+ :type display_name: str
16
+ :param mri: The MRI of the OnBehalfOf entity.
17
+ :type mri: str
18
+ """
19
+
20
+ item_id: str = None
21
+ mention_type: str = None
22
+ display_name: str = None
23
+ mri: str = None
@@ -0,0 +1,47 @@
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 ReadReceiptInfo(AgentsModel):
8
+ """General information about a read receipt.
9
+
10
+ :param last_read_message_id: The id of the last read message.
11
+ :type last_read_message_id: str
12
+ """
13
+
14
+ last_read_message_id: str = None
15
+
16
+ @staticmethod
17
+ def is_message_read(compare_message_id: str, last_read_message_id: str) -> bool:
18
+ """
19
+ Helper method useful for determining if a message has been read.
20
+ This method converts the strings to integers. If the compare_message_id is
21
+ less than or equal to the last_read_message_id, then the message has been read.
22
+
23
+ :param compare_message_id: The id of the message to compare.
24
+ :param last_read_message_id: The id of the last message read by the user.
25
+ :return: True if the compare_message_id is less than or equal to the last_read_message_id.
26
+ """
27
+ if not compare_message_id or not last_read_message_id:
28
+ return False
29
+
30
+ try:
31
+ compare_message_id_long = int(compare_message_id)
32
+ last_read_message_id_long = int(last_read_message_id)
33
+ except ValueError:
34
+ return False
35
+
36
+ return compare_message_id_long <= last_read_message_id_long
37
+
38
+ def is_message_read_instance(self, compare_message_id: str) -> bool:
39
+ """
40
+ Helper method useful for determining if a message has been read.
41
+ If the compare_message_id is less than or equal to the last_read_message_id,
42
+ then the message has been read.
43
+
44
+ :param compare_message_id: The id of the message to compare.
45
+ :return: True if the compare_message_id is less than or equal to the last_read_message_id.
46
+ """
47
+ return self.is_message_read(compare_message_id, self.last_read_message_id)
@@ -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 SigninStateVerificationQuery(AgentsModel):
8
+ """Represents the state verification query for sign-in.
9
+
10
+ :param state: The state value used for verification.
11
+ :type state: str
12
+ """
13
+
14
+ state: str = None
@@ -0,0 +1,18 @@
1
+ from ..agents_model import AgentsModel
2
+ from enum import Enum
3
+
4
+
5
+ class SurfaceType(int, Enum):
6
+ UNKNOWN = 0
7
+ MEETING_STAGE = 1
8
+ MEETING_TAB_ICON = 2
9
+
10
+
11
+ class Surface(AgentsModel):
12
+ """Specifies where the notification will be rendered in the meeting UX.
13
+
14
+ :param type: The value indicating where the notification will be rendered in the meeting UX.
15
+ :type type: SurfaceType
16
+ """
17
+
18
+ type: SurfaceType
@@ -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 TabContext(AgentsModel):
8
+ """Current tab request context, i.e., the current theme.
9
+
10
+ :param theme: Gets or sets the current user's theme.
11
+ :type theme: str
12
+ """
13
+
14
+ theme: 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
+
6
+
7
+ class TabEntityContext(AgentsModel):
8
+ """
9
+ Current TabRequest entity context, or 'tabEntityId'.
10
+
11
+ :param tab_entity_id: Gets or sets the entity id of the tab.
12
+ :type tab_entity_id: str
13
+ """
14
+
15
+ tab_entity_id: str
@@ -0,0 +1,22 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from ..agents_model import AgentsModel
5
+ from .tab_entity_context import TabEntityContext
6
+ from .tab_context import TabContext
7
+
8
+
9
+ class TabRequest(AgentsModel):
10
+ """Invoke ('tab/fetch') request value payload.
11
+
12
+ :param tab_entity_context: Gets or sets current tab entity request context.
13
+ :type tab_entity_context: TabEntityContext
14
+ :param context: Gets or sets current tab entity request context.
15
+ :type context: TabContext
16
+ :param state: Gets or sets state, which is the magic code for OAuth Flow.
17
+ :type state: str
18
+ """
19
+
20
+ tab_entity_context: TabEntityContext = None
21
+ context: TabContext = None
22
+ state: 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
+
6
+ from .tab_response_payload import TabResponsePayload
7
+
8
+
9
+ class TabResponse(AgentsModel):
10
+ """Envelope for Card Tab Response Payload.
11
+
12
+ :param tab: Possible values include: 'continue', 'auth' or 'silentAuth'
13
+ :type type: TabResponsePayload
14
+ """
15
+
16
+ tab: TabResponsePayload = 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 TabResponseCard(AgentsModel):
8
+ """Envelope for cards for a Tab request.
9
+
10
+ :param card: Gets or sets adaptive card for this card tab response.
11
+ :type card: object
12
+ """
13
+
14
+ card: object = None
@@ -0,0 +1,17 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.from ..agents_model import AgentsModel
3
+
4
+ from ..agents_model import AgentsModel
5
+ from typing import List
6
+
7
+ from .tab_response_card import TabResponseCard
8
+
9
+
10
+ class TabResponseCards(AgentsModel):
11
+ """Envelope for cards for a TabResponse.
12
+
13
+ :param cards: Gets or sets adaptive card for this card tab response.
14
+ :type cards: list[TabResponseCard]
15
+ """
16
+
17
+ cards: List[TabResponseCard] = 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
+
6
+ from .tab_response_cards import TabResponseCards
7
+ from .tab_suggested_actions import TabSuggestedActions
8
+
9
+
10
+ class TabResponsePayload(AgentsModel):
11
+ """Initializes a new instance of the TabResponsePayload class.
12
+
13
+ :param type: Gets or sets choice of action options when responding to the
14
+ tab/fetch message. Possible values include: 'continue', 'auth' or 'silentAuth'
15
+ :type type: str
16
+ :param value: Gets or sets the TabResponseCards when responding to
17
+ tab/fetch activity with type of 'continue'.
18
+ :type value: TabResponseCards
19
+ :param suggested_actions: Gets or sets the Suggested Actions for this card tab.
20
+ :type suggested_actions: TabSuggestedActions
21
+ """
22
+
23
+ type: str = None
24
+ value: TabResponseCards = None
25
+ suggested_actions: TabSuggestedActions = None
@@ -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
+ from .tab_entity_context import TabEntityContext
6
+ from .tab_context import TabContext
7
+ from .tab_submit_data import TabSubmitData
8
+
9
+
10
+ class TabSubmit(AgentsModel):
11
+ """Initializes a new instance of the TabSubmit class.
12
+
13
+ :param tab_entity_context: Gets or sets current tab entity request context.
14
+ :type tab_entity_context: TabEntityContext
15
+ :param context: Gets or sets current user context, i.e., the current theme.
16
+ :type context: TabContext
17
+ :param data: User input data. Free payload containing properties of key-value pairs.
18
+ :type data: TabSubmitData
19
+ """
20
+
21
+ tab_entity_context: TabEntityContext = None
22
+ context: TabContext = None
23
+ data: TabSubmitData = 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
+
6
+
7
+ class TabSubmitData(AgentsModel):
8
+ """Invoke ('tab/submit') request value payload data.
9
+
10
+ :param type: Currently, 'tab/submit'.
11
+ :type type: str
12
+ :param properties: Gets or sets properties that are not otherwise defined by the TabSubmit
13
+ type but that might appear in the serialized REST JSON object.
14
+ :type properties: object
15
+ """
16
+
17
+ type: str = None
18
+ properties: object = 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
+ from typing import List
6
+
7
+ from ..card_action import CardAction
8
+
9
+
10
+ class TabSuggestedActions(AgentsModel):
11
+ """Tab SuggestedActions (Only when type is 'auth' or 'silentAuth').
12
+
13
+ :param actions: Gets or sets adaptive card for this card tab response.
14
+ :type actions: list[CardAction]
15
+ """
16
+
17
+ actions: List[CardAction] = None
@@ -0,0 +1,19 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from .meeting_notification import MeetingNotification
5
+ from .targeted_meeting_notification_value import TargetedMeetingNotificationValue
6
+ from .meeting_notification_channel_data import MeetingNotificationChannelData
7
+
8
+
9
+ class TargetedMeetingNotification(MeetingNotification):
10
+ """Specifies Teams targeted meeting notification.
11
+
12
+ :param value: The value of the TargetedMeetingNotification.
13
+ :type value: TargetedMeetingNotificationValue
14
+ :param channel_data: Teams Bot meeting notification channel data.
15
+ :type channel_data: MeetingNotificationChannelData
16
+ """
17
+
18
+ value: TargetedMeetingNotificationValue = None
19
+ channel_data: MeetingNotificationChannelData = 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 .surface import Surface
7
+
8
+
9
+ class TargetedMeetingNotificationValue(AgentsModel):
10
+ """Specifies the value for targeted meeting notifications.
11
+
12
+ :param recipients: List of recipient MRIs for the notification.
13
+ :type recipients: List[str]
14
+ :param message: The message content of the notification.
15
+ :type message: str
16
+ """
17
+
18
+ recipients: List[str] = None
19
+ surfaces: List[Surface] = 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 .tab_response import TabResponse
6
+
7
+
8
+ class TaskModuleCardResponse(AgentsModel):
9
+ """Tab Response to 'task/submit' from a tab.
10
+
11
+ :param value: The JSON for the Adaptive cards to appear in the tab.
12
+ :type value: TabResponse
13
+ """
14
+
15
+ value: TabResponse = 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 Optional
6
+ from .task_module_task_info import TaskModuleTaskInfo
7
+
8
+
9
+ class TaskModuleContinueResponse(AgentsModel):
10
+ """Response to continue a task module.
11
+
12
+ :param type: The type of response. Default is 'continue'.
13
+ :type type: str
14
+ :param value: The task module task info.
15
+ :type value: Optional["TaskModuleTaskInfo"]
16
+ """
17
+
18
+ type: str = None
19
+ value: Optional[TaskModuleTaskInfo] = 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 TaskModuleMessageResponse(AgentsModel):
9
+ """Response to display a message in a task module.
10
+
11
+ :param type: The type of response. Default is 'message'.
12
+ :type type: str
13
+ :param value: The message to display.
14
+ :type value: Optional[str]
15
+ """
16
+
17
+ type: str = None
18
+ value: Optional[str] = None
@@ -0,0 +1,25 @@
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 Any, Optional
7
+
8
+ from .task_module_request_context import TaskModuleRequestContext
9
+ from .tab_entity_context import TabEntityContext
10
+
11
+
12
+ class TaskModuleRequest(AgentsModel):
13
+ """Task module invoke request value payload.
14
+
15
+ :param data: User input data. Free payload with key-value pairs.
16
+ :type data: object
17
+ :param context: Current user context, i.e., the current theme
18
+ :type context: Optional[Any]
19
+ :param tab_entity_context: Gets or sets current tab request context.
20
+ :type tab_entity_context: Optional[TabEntityContext]
21
+ """
22
+
23
+ data: Optional[Any]
24
+ context: Optional[TaskModuleRequestContext]
25
+ tab_entity_context: Optional[TabEntityContext] = Field(None, alias="tabContext")
@@ -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 TaskModuleRequestContext(AgentsModel):
9
+ """Context for a task module request.
10
+
11
+ :param theme: The current user's theme.
12
+ :type theme: Optional[str]
13
+ """
14
+
15
+ theme: Optional[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
+ from .task_module_response_base import TaskModuleResponseBase
7
+ from .cache_info import CacheInfo
8
+
9
+
10
+ class TaskModuleResponse(TaskModuleResponseBase):
11
+ """Envelope for Task Module Response.
12
+
13
+ :param task: The JSON for the Adaptive card to appear in the task module.
14
+ :task task: ~botframework.connector.teams.models.TaskModuleResponseBase
15
+ :param cache_info: CacheInfo for this TaskModuleResponse.
16
+ :task cache_info: ~botframework.connector.teams.models.CacheInfo
17
+ """
18
+
19
+ task: TaskModuleResponseBase = None
20
+ cache_info: CacheInfo = None
@@ -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