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,23 @@
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_from import MessageActionsPayloadFrom
8
+
9
+
10
+ class MessageActionsPayloadMention(AgentsModel):
11
+ """Represents the entity that was mentioned in the message.
12
+
13
+ :param id: The id of the mentioned entity.
14
+ :type id: Optional[int]
15
+ :param mention_text: The plaintext display name of the mentioned entity.
16
+ :type mention_text: Optional[str]
17
+ :param mentioned: Provides more details on the mentioned entity.
18
+ :type mentioned: Optional["MessageActionsPayloadFrom"]
19
+ """
20
+
21
+ id: Optional[int]
22
+ mention_text: Optional[str]
23
+ mentioned: Optional[MessageActionsPayloadFrom]
@@ -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 typing import Optional
6
+
7
+ from .message_actions_payload_from import MessageActionsPayloadFrom
8
+
9
+
10
+ class MessageActionsPayloadReaction(AgentsModel):
11
+ """Represents the reaction of a user to a message.
12
+
13
+ :param reaction_type: The type of reaction given to the message. Possible values include: 'like', 'heart', 'laugh', 'surprised', 'sad', 'angry'
14
+ :type reaction_type: Optional[str]
15
+ :param created_date_time: Timestamp of when the user reacted to the message.
16
+ :type created_date_time: Optional[str]
17
+ :param user: The user with which the reaction is associated.
18
+ :type user: Optional["MessageActionsPayloadFrom"]
19
+ """
20
+
21
+ reaction_type: Optional[str]
22
+ created_date_time: Optional[str]
23
+ user: Optional[MessageActionsPayloadFrom]
@@ -0,0 +1,27 @@
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 MessageActionsPayloadUser(AgentsModel):
10
+ """Represents a user entity.
11
+
12
+ :param user_identity_type: The identity type of the user. Possible values include: 'aadUser', 'onPremiseAadUser', 'anonymousGuest', 'federatedUser'
13
+ :type user_identity_type: Optional[str]
14
+ :param id: The id of the user.
15
+ :type id: Optional[str]
16
+ :param display_name: The plaintext display name of the user.
17
+ :type display_name: Optional[str]
18
+ """
19
+
20
+ user_identity_type: Optional[
21
+ Annotated[
22
+ str,
23
+ Field(pattern=r"^(aadUser|onPremiseAadUser|anonymousGuest|federatedUser)$"),
24
+ ]
25
+ ]
26
+ id: Optional[str]
27
+ display_name: Optional[str]
@@ -0,0 +1,37 @@
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, List
6
+
7
+ from .task_module_request_context import TaskModuleRequestContext
8
+ from .message_actions_payload import MessageActionsPayload
9
+ from ..activity import Activity
10
+
11
+
12
+ class MessagingExtensionAction(AgentsModel):
13
+ """Messaging extension action.
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: TaskModuleRequestContext
19
+ :param command_id: Id of the command assigned by Bot
20
+ :type command_id: str
21
+ :param command_context: The context from which the command originates. Possible values include: 'message', 'compose', 'commandbox'
22
+ :type command_context: str
23
+ :param bot_message_preview_action: Bot message preview action taken by user. Possible values include: 'edit', 'send'
24
+ :type bot_message_preview_action: str
25
+ :param bot_activity_preview: List of bot activity previews.
26
+ :type bot_activity_preview: List[Activity]
27
+ :param message_payload: Message content sent as part of the command request.
28
+ :type message_payload: MessageActionsPayload
29
+ """
30
+
31
+ data: object = None
32
+ context: TaskModuleRequestContext = None
33
+ command_id: str = None
34
+ command_context: str = None
35
+ bot_message_preview_action: str = None
36
+ bot_activity_preview: List[Activity] = None
37
+ message_payload: MessageActionsPayload = 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 .task_module_response_base import TaskModuleResponseBase
7
+ from .messaging_extension_result import MessagingExtensionResult
8
+ from .cache_info import CacheInfo
9
+
10
+
11
+ class MessagingExtensionActionResponse(AgentsModel):
12
+ """Response of messaging extension action.
13
+
14
+ :param task: The JSON for the Adaptive card to appear in the task module.
15
+ :type task: "TaskModuleResponseBase"
16
+ :param compose_extension: The compose extension result.
17
+ :type compose_extension: "MessagingExtensionResult"
18
+ :param cache_info: CacheInfo for this MessagingExtensionActionResponse.
19
+ :type cache_info: "CacheInfo"
20
+ """
21
+
22
+ task: TaskModuleResponseBase = None
23
+ compose_extension: MessagingExtensionResult = None
24
+ cache_info: CacheInfo = None
@@ -0,0 +1,32 @@
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 ..attachment import Attachment
8
+
9
+
10
+ class MessagingExtensionAttachment(AgentsModel):
11
+ """Messaging extension attachment.
12
+
13
+ :param content_type: mimetype/Contenttype for the file
14
+ :type content_type: str
15
+ :param content_url: Content Url
16
+ :type content_url: str
17
+ :param content: Embedded content
18
+ :type content: object
19
+ :param name: (OPTIONAL) The name of the attachment
20
+ :type name: str
21
+ :param thumbnail_url: (OPTIONAL) Thumbnail associated with attachment
22
+ :type thumbnail_url: str
23
+ :param preview: Preview attachment
24
+ :type preview: "Attachment"
25
+ """
26
+
27
+ content_type: str
28
+ content_url: str
29
+ content: object = None
30
+ name: Optional[str] = None
31
+ thumbnail_url: Optional[str] = None
32
+ preview: Attachment = 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 MessagingExtensionParameter(AgentsModel):
8
+ """Messaging extension query parameters.
9
+
10
+ :param name: Name of the parameter
11
+ :type name: str
12
+ :param value: Value of the parameter
13
+ :type value: Any
14
+ """
15
+
16
+ name: str = None
17
+ value: object = None
@@ -0,0 +1,27 @@
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
+
7
+ from .messaging_extension_parameter import MessagingExtensionParameter
8
+ from .messaging_extension_query_options import MessagingExtensionQueryOptions
9
+
10
+
11
+ class MessagingExtensionQuery(AgentsModel):
12
+ """Messaging extension query.
13
+
14
+ :param command_id: Id of the command assigned by Bot
15
+ :type command_id: str
16
+ :param parameters: Parameters for the query
17
+ :type parameters: List["MessagingExtensionParameter"]
18
+ :param query_options: Query options for the extension
19
+ :type query_options: Optional["MessagingExtensionQueryOptions"]
20
+ :param state: State parameter passed back to the bot after authentication/configuration flow
21
+ :type state: str
22
+ """
23
+
24
+ command_id: str = None
25
+ parameters: List[MessagingExtensionParameter] = None
26
+ query_options: Optional[MessagingExtensionQueryOptions] = None
27
+ state: 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 MessagingExtensionQueryOptions(AgentsModel):
8
+ """Messaging extension query options.
9
+
10
+ :param skip: Number of entities to skip
11
+ :type skip: int
12
+ :param count: Number of entities to fetch
13
+ :type count: int
14
+ """
15
+
16
+ skip: int = None
17
+ count: int = None
@@ -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
+ from .messaging_extension_result import MessagingExtensionResult
8
+ from .cache_info import CacheInfo
9
+
10
+
11
+ class MessagingExtensionResponse(AgentsModel):
12
+ """Messaging extension response.
13
+
14
+ :param compose_extension: The compose extension result.
15
+ :type compose_extension: Optional["MessagingExtensionResult"]
16
+ :param cache_info: CacheInfo for this MessagingExtensionResponse.
17
+ :type cache_info: Optional["CacheInfo"]
18
+ """
19
+
20
+ compose_extension: Optional[MessagingExtensionResult] = None
21
+ cache_info: Optional[CacheInfo] = None
@@ -0,0 +1,34 @@
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
+
7
+ from .messaging_extension_attachment import MessagingExtensionAttachment
8
+ from .messaging_extension_suggested_action import MessagingExtensionSuggestedAction
9
+ from ..activity import Activity
10
+
11
+
12
+ class MessagingExtensionResult(AgentsModel):
13
+ """Messaging extension result.
14
+
15
+ :param attachment_layout: Hint for how to deal with multiple attachments.
16
+ :type attachment_layout: str
17
+ :param type: The type of the result. Possible values include: 'result', 'auth', 'config', 'message', 'botMessagePreview'
18
+ :type type: str
19
+ :param attachments: (Only when type is result) Attachments
20
+ :type attachments: List["MessagingExtensionAttachment"]
21
+ :param suggested_actions: Suggested actions for the result.
22
+ :type suggested_actions: Optional["MessagingExtensionSuggestedAction"]
23
+ :param text: (Only when type is message) Text
24
+ :type text: Optional[str]
25
+ :param activity_preview: (Only when type is botMessagePreview) Message activity to preview
26
+ :type activity_preview: Optional["Activity"]
27
+ """
28
+
29
+ attachment_layout: str = None
30
+ type: str = None
31
+ attachments: List[MessagingExtensionAttachment] = None
32
+ suggested_actions: Optional[MessagingExtensionSuggestedAction] = None
33
+ text: Optional[str] = None
34
+ activity_preview: Optional["Activity"] = 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 MessagingExtensionSuggestedAction(AgentsModel):
11
+ """Messaging extension suggested actions.
12
+
13
+ :param actions: List of suggested actions.
14
+ :type actions: List["CardAction"]
15
+ """
16
+
17
+ actions: List[CardAction] = None
@@ -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 NotificationInfo(AgentsModel):
9
+ """Specifies if a notification is to be sent for the mentions.
10
+
11
+ :param alert: True if notification is to be sent to the user, false otherwise.
12
+ :type alert: bool
13
+ :param alert_in_meeting: True if notification is to be sent in a meeting context.
14
+ :type alert_in_meeting: Optional[bool]
15
+ :param external_resource_url: URL for external resources related to the notification.
16
+ :type external_resource_url: Optional[str]
17
+ """
18
+
19
+ alert: bool = None
20
+ alert_in_meeting: Optional[bool] = None
21
+ external_resource_url: Optional[str] = None
@@ -0,0 +1,32 @@
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_section import O365ConnectorCardSection
7
+ from .o365_connector_card_action_base import O365ConnectorCardActionBase
8
+
9
+
10
+ class O365ConnectorCard(AgentsModel):
11
+ """O365 connector card.
12
+
13
+ :param title: Title of the item
14
+ :type title: str
15
+ :param text: Text for the card
16
+ :type text: Optional[str]
17
+ :param summary: Summary for the card
18
+ :type summary: Optional[str]
19
+ :param theme_color: Theme color for the card
20
+ :type theme_color: Optional[str]
21
+ :param sections: Set of sections for the current card
22
+ :type sections: Optional[List["O365ConnectorCardSection"]]
23
+ :param potential_action: Set of actions for the current card
24
+ :type potential_action: Optional[List["O365ConnectorCardActionBase"]]
25
+ """
26
+
27
+ title: str = None
28
+ text: Optional[str] = None
29
+ summary: Optional[str] = None
30
+ theme_color: Optional[str] = None
31
+ sections: Optional[List[O365ConnectorCardSection]] = None
32
+ potential_action: Optional[List[O365ConnectorCardActionBase]] = 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 O365ConnectorCardActionBase(AgentsModel):
9
+ """O365 connector card action base.
10
+
11
+ :param type: Type of the action. Possible values include: 'ViewAction', 'OpenUri', 'HttpPOST', 'ActionCard'
12
+ :type type: str
13
+ :param name: Name of the action that will be used as button title
14
+ :type name: str
15
+ :param id: Action Id
16
+ :type id: str
17
+ """
18
+
19
+ type: str = Field(None, alias="@type")
20
+ name: str = None
21
+ id: str = Field(None, alias="@id")
@@ -0,0 +1,30 @@
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 List
7
+ from .o365_connector_card_input_base import O365ConnectorCardInputBase
8
+ from .o365_connector_card_action_base import O365ConnectorCardActionBase
9
+
10
+
11
+ class O365ConnectorCardActionCard(AgentsModel):
12
+ """O365 connector card ActionCard action.
13
+
14
+ :param type: Type of the action. Possible values include: 'ViewAction', 'OpenUri', 'HttpPOST', 'ActionCard'
15
+ :type type: str
16
+ :param name: Name of the action that will be used as button title
17
+ :type name: str
18
+ :param id: Action Id
19
+ :type id: str
20
+ :param inputs: Set of inputs contained in this ActionCard
21
+ :type inputs: List["O365ConnectorCardInputBase"]
22
+ :param actions: Set of actions contained in this ActionCard
23
+ :type actions: List["O365ConnectorCardActionBase"]
24
+ """
25
+
26
+ type: str = Field(None, alias="@type")
27
+ name: str = None
28
+ id: str = Field(None, alias="@id")
29
+ inputs: List[O365ConnectorCardInputBase] = None
30
+ actions: List[O365ConnectorCardActionBase] = 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 O365ConnectorCardActionQuery(AgentsModel):
8
+ """O365 connector card action query.
9
+
10
+ :param body: Body of the action query.
11
+ :type body: str
12
+ """
13
+
14
+ body: str = None
15
+ action_id: str = None
@@ -0,0 +1,30 @@
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 O365ConnectorCardDateInput(AgentsModel):
9
+ """O365 connector card date input.
10
+
11
+ :param type: Input type name. Possible values include: 'textInput', 'dateInput', 'multichoiceInput'
12
+ :type type: str
13
+ :param id: Input Id. It must be unique per entire O365 connector card.
14
+ :type id: str
15
+ :param is_required: Define if this input is a required field. Default value is false.
16
+ :type is_required: bool
17
+ :param title: Input title that will be shown as the placeholder
18
+ :type title: str
19
+ :param value: Default value for this input field
20
+ :type value: str
21
+ :param include_time: Include time input field. Default value is false (date only).
22
+ :type include_time: bool
23
+ """
24
+
25
+ type: str = Field(None, alias="@type")
26
+ id: str = None
27
+ is_required: bool = None
28
+ title: str = None
29
+ value: str = None
30
+ include_time: bool = 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 O365ConnectorCardFact(AgentsModel):
8
+ """O365 connector card fact.
9
+
10
+ :param name: Display name of the fact
11
+ :type name: str
12
+ :param value: Display value for the fact
13
+ :type value: str
14
+ """
15
+
16
+ name: str = None
17
+ value: 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 Optional
7
+
8
+
9
+ class O365ConnectorCardHttpPOST(AgentsModel):
10
+ """O365 connector card HttpPOST action.
11
+
12
+ :param type: Type of the action. Default is 'HttpPOST'.
13
+ :type type: str
14
+ :param name: Name of the HttpPOST action.
15
+ :type name: str
16
+ :param id: Id of the HttpPOST action.
17
+ :type id: str
18
+ :param body: Content of the HttpPOST action.
19
+ :type body: Optional[str]
20
+ """
21
+
22
+ type: str = Field(None, alias="@type")
23
+ name: str = None
24
+ id: str = Field(None, alias="@id")
25
+ body: Optional[str] = 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 O365ConnectorCardImage(AgentsModel):
9
+ """O365 connector card image.
10
+
11
+ :param image: URL for the image.
12
+ :type image: str
13
+ :param title: Title of the image.
14
+ :type title: Optional[str]
15
+ """
16
+
17
+ image: str = None
18
+ title: Optional[str] = None
@@ -0,0 +1,28 @@
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 O365ConnectorCardInputBase(AgentsModel):
10
+ """Base class for O365 connector card inputs.
11
+
12
+ :param type: Input type name. Possible values include: 'textInput', 'dateInput', 'multichoiceInput'
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
+ """
23
+
24
+ type: str = Field(None, alias="@type")
25
+ id: str = None
26
+ is_required: Optional[bool] = None
27
+ title: Optional[str] = None
28
+ value: Optional[str] = None
@@ -0,0 +1,40 @@
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 List, Optional
7
+ from .o365_connector_card_multichoice_input_choice import (
8
+ O365ConnectorCardMultichoiceInputChoice,
9
+ )
10
+
11
+
12
+ class O365ConnectorCardMultichoiceInput(AgentsModel):
13
+ """O365 connector card multichoice input.
14
+
15
+ :param type: Input type name. Default is 'multichoiceInput'.
16
+ :type type: str
17
+ :param id: Input Id. It must be unique per entire O365 connector card.
18
+ :type id: str
19
+ :param is_required: Define if this input is a required field. Default value is false.
20
+ :type is_required: Optional[bool]
21
+ :param title: Input title that will be shown as the placeholder
22
+ :type title: Optional[str]
23
+ :param value: Default value for this input field
24
+ :type value: Optional[str]
25
+ :param choices: Set of choices for this input field.
26
+ :type choices: List["O365ConnectorCardMultichoiceInputChoice"]
27
+ :param style: Choice style. Possible values include: 'compact', 'expanded'
28
+ :type style: Optional[str]
29
+ :param is_multi_select: Define if this input field allows multiple selections. Default value is false.
30
+ :type is_multi_select: Optional[bool]
31
+ """
32
+
33
+ type: str = Field(None, alias="@type")
34
+ id: str = None
35
+ is_required: Optional[bool] = None
36
+ title: Optional[str] = None
37
+ value: Optional[str] = None
38
+ choices: List[O365ConnectorCardMultichoiceInputChoice] = None
39
+ style: Optional[str] = None
40
+ is_multi_select: Optional[bool] = 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 O365ConnectorCardMultichoiceInputChoice(AgentsModel):
8
+ """O365 connector card multichoice input choice.
9
+
10
+ :param display: Display text for the choice.
11
+ :type display: str
12
+ :param value: Value for the choice.
13
+ :type value: str
14
+ """
15
+
16
+ display: str = None
17
+ value: str = None
@@ -0,0 +1,26 @@
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 List
7
+ from .o365_connector_card_open_uri_target import O365ConnectorCardOpenUriTarget
8
+
9
+
10
+ class O365ConnectorCardOpenUri(AgentsModel):
11
+ """O365 connector card OpenUri action.
12
+
13
+ :param type: Type of the action. Default is 'OpenUri'.
14
+ :type type: str
15
+ :param name: Name of the OpenUri action.
16
+ :type name: str
17
+ :param id: Id of the OpenUri action.
18
+ :type id: str
19
+ :param targets: List of targets for the OpenUri action.
20
+ :type targets: List["O365ConnectorCardOpenUriTarget"]
21
+ """
22
+
23
+ type: str = Field(None, alias="@type")
24
+ name: str = None
25
+ id: str = Field(None, alias="@id")
26
+ targets: List[O365ConnectorCardOpenUriTarget] = 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 O365ConnectorCardOpenUriTarget(AgentsModel):
8
+ """O365 connector card OpenUri target.
9
+
10
+ :param os: Target operating system. Possible values include: 'default', 'iOS', 'android', 'windows'
11
+ :type os: str
12
+ :param uri: Target URI.
13
+ :type uri: str
14
+ """
15
+
16
+ os: str = None
17
+ uri: str = None