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,12 @@
1
+ from .agents_model import AgentsModel
2
+
3
+
4
+ class MediaEventValue(AgentsModel):
5
+ """Supplementary parameter for media events.
6
+
7
+ :param card_value: Callback parameter specified in the Value field of the
8
+ MediaCard that originated this event
9
+ :type card_value: object
10
+ """
11
+
12
+ card_value: object = None
@@ -0,0 +1,16 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class MediaUrl(AgentsModel):
6
+ """Media URL.
7
+
8
+ :param url: Url for the media
9
+ :type url: str
10
+ :param profile: Optional profile hint to the client to differentiate
11
+ multiple MediaUrl objects from each other
12
+ :type profile: str
13
+ """
14
+
15
+ url: NonEmptyString = None
16
+ profile: NonEmptyString = None
@@ -0,0 +1,19 @@
1
+ from .channel_account import ChannelAccount
2
+ from .entity import Entity
3
+ from ._type_aliases import NonEmptyString
4
+
5
+
6
+ class Mention(Entity):
7
+ """Mention information (entity type: "mention").
8
+
9
+ :param mentioned: The mentioned user
10
+ :type mentioned: ~microsoft.agents.protocols.models.ChannelAccount
11
+ :param text: Sub Text which represents the mention (can be null or empty)
12
+ :type text: str
13
+ :param type: Type of this entity (RFC 3987 IRI)
14
+ :type type: str
15
+ """
16
+
17
+ mentioned: ChannelAccount = None
18
+ text: NonEmptyString = None
19
+ type: NonEmptyString = None
@@ -0,0 +1,13 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class MessageReaction(AgentsModel):
6
+ """Message reaction object.
7
+
8
+ :param type: Message reaction type. Possible values include: 'like',
9
+ 'plusOne'
10
+ :type type: str or ~microsoft.agents.protocols.models.MessageReactionTypes
11
+ """
12
+
13
+ type: NonEmptyString
@@ -0,0 +1,11 @@
1
+ from enum import Enum
2
+
3
+
4
+ class MessageReactionTypes(str, Enum):
5
+ """MessageReactionType
6
+
7
+ Enum for message reaction types.
8
+ """
9
+
10
+ REACTIONS_ADDED = "reactionsAdded"
11
+ REACTIONS_REMOVED = "reactionsRemoved"
@@ -0,0 +1,7 @@
1
+ from enum import Enum
2
+
3
+
4
+ class MessageUpdateTypes(str, Enum):
5
+ EDIT_MESSAGE = "editMessage"
6
+ SOFT_DELETE_MESSAGE = "softDeleteMessage"
7
+ UNDELETE_MESSAGE = "undeleteMessage"
@@ -0,0 +1,24 @@
1
+ from typing import Optional
2
+ from .card_action import CardAction
3
+ from .agents_model import AgentsModel
4
+ from .token_exchange_resource import TokenExchangeResource
5
+ from .token_post_resource import TokenPostResource
6
+ from ._type_aliases import NonEmptyString
7
+
8
+
9
+ class OAuthCard(AgentsModel):
10
+ """A card representing a request to perform a sign in via OAuth.
11
+
12
+ :param text: Text for signin request
13
+ :type text: str
14
+ :param connection_name: The name of the registered connection
15
+ :type connection_name: str
16
+ :param buttons: Action to use to perform signin
17
+ :type buttons: list[~microsoft.agents.protocols.models.CardAction]
18
+ """
19
+
20
+ text: NonEmptyString = None
21
+ connection_name: NonEmptyString = None
22
+ buttons: list[CardAction] = None
23
+ token_exchange_resource: Optional[TokenExchangeResource] = None
24
+ token_post_resource: TokenPostResource = None
@@ -0,0 +1,16 @@
1
+ from .channel_account import ChannelAccount
2
+ from ._type_aliases import NonEmptyString
3
+ from .agents_model import AgentsModel
4
+
5
+
6
+ class PagedMembersResult(AgentsModel):
7
+ """Page of members.
8
+
9
+ :param continuation_token: Paging token
10
+ :type continuation_token: str
11
+ :param members: The Channel Accounts.
12
+ :type members: list[~microsoft.agents.protocols.models.ChannelAccount]
13
+ """
14
+
15
+ continuation_token: NonEmptyString = None
16
+ members: list[ChannelAccount] = None
@@ -0,0 +1,27 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class Place(AgentsModel):
6
+ """Place (entity type: "https://schema.org/Place").
7
+
8
+ :param address: Address of the place (may be `string` or complex object of
9
+ type `PostalAddress`)
10
+ :type address: object
11
+ :param geo: Geo coordinates of the place (may be complex object of type
12
+ `GeoCoordinates` or `GeoShape`)
13
+ :type geo: object
14
+ :param has_map: Map to the place (may be `string` (URL) or complex object
15
+ of type `Map`)
16
+ :type has_map: object
17
+ :param type: The type of the thing
18
+ :type type: str
19
+ :param name: The name of the thing
20
+ :type name: str
21
+ """
22
+
23
+ address: object = None
24
+ geo: object = None
25
+ has_map: object = None
26
+ type: NonEmptyString = None
27
+ name: NonEmptyString = None
@@ -0,0 +1,36 @@
1
+ from .fact import Fact
2
+ from .receipt_item import ReceiptItem
3
+ from .card_action import CardAction
4
+ from .agents_model import AgentsModel
5
+ from ._type_aliases import NonEmptyString
6
+
7
+
8
+ class ReceiptCard(AgentsModel):
9
+ """A receipt card.
10
+
11
+ :param title: Title of the card
12
+ :type title: str
13
+ :param facts: Array of Fact objects
14
+ :type facts: list[~microsoft.agents.protocols.models.Fact]
15
+ :param items: Array of Receipt Items
16
+ :type items: list[~microsoft.agents.protocols.models.ReceiptItem]
17
+ :param tap: This action will be activated when user taps on the card
18
+ :type tap: ~microsoft.agents.protocols.models.CardAction
19
+ :param total: Total amount of money paid (or to be paid)
20
+ :type total: str
21
+ :param tax: Total amount of tax paid (or to be paid)
22
+ :type tax: str
23
+ :param vat: Total amount of VAT paid (or to be paid)
24
+ :type vat: str
25
+ :param buttons: Set of actions applicable to the current card
26
+ :type buttons: list[~microsoft.agents.protocols.models.CardAction]
27
+ """
28
+
29
+ title: NonEmptyString = None
30
+ facts: list[Fact] = None
31
+ items: list[ReceiptItem] = None
32
+ tap: CardAction = None
33
+ total: NonEmptyString = None
34
+ tax: NonEmptyString = None
35
+ vat: NonEmptyString = None
36
+ buttons: list[CardAction] = None
@@ -0,0 +1,35 @@
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 ReceiptItem(AgentsModel):
8
+ """An item on a receipt card.
9
+
10
+ :param title: Title of the Card
11
+ :type title: str
12
+ :param subtitle: Subtitle appears just below Title field, differs from
13
+ Title in font styling only
14
+ :type subtitle: str
15
+ :param text: Text field appears just below subtitle, differs from Subtitle
16
+ in font styling only
17
+ :type text: str
18
+ :param image: Image
19
+ :type image: ~microsoft.agents.protocols.models.CardImage
20
+ :param price: Amount with currency
21
+ :type price: str
22
+ :param quantity: Number of items of given kind
23
+ :type quantity: str
24
+ :param tap: This action will be activated when user taps on the Item
25
+ bubble.
26
+ :type tap: ~microsoft.agents.protocols.models.CardAction
27
+ """
28
+
29
+ title: NonEmptyString = None
30
+ subtitle: NonEmptyString = None
31
+ text: NonEmptyString = None
32
+ image: CardImage = None
33
+ price: NonEmptyString = None
34
+ quantity: NonEmptyString = None
35
+ tap: CardAction = None
@@ -0,0 +1,12 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class ResourceResponse(AgentsModel):
6
+ """A response containing a resource ID.
7
+
8
+ :param id: Id of the resource
9
+ :type id: str
10
+ """
11
+
12
+ id: NonEmptyString = None
@@ -0,0 +1,7 @@
1
+ from enum import Enum
2
+
3
+
4
+ class RoleTypes(str, Enum):
5
+ user = "user"
6
+ agent = "bot"
7
+ skill = "skill"
@@ -0,0 +1,18 @@
1
+ from .agents_model import AgentsModel
2
+ from ._type_aliases import NonEmptyString
3
+
4
+
5
+ class SemanticAction(AgentsModel):
6
+ """Represents a reference to a programmatic action.
7
+
8
+ :param id: ID of this action
9
+ :type id: str
10
+ :param entities: Entities associated with this action
11
+ :type entities: dict[str, ~microsoft.agents.protocols.models.Entity]
12
+ :param state: State of this action. Allowed values: `start`, `continue`, `done`
13
+ :type state: str or ~microsoft.agents.protocols.models.SemanticActionStates
14
+ """
15
+
16
+ id: NonEmptyString
17
+ entities: dict = None
18
+ state: NonEmptyString = None
@@ -0,0 +1,7 @@
1
+ from enum import Enum
2
+
3
+
4
+ class SemanticActionsStates(str, Enum):
5
+ start_action = "start"
6
+ continue_action = "continue"
7
+ done_action = "done"
@@ -0,0 +1,13 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from enum import Enum
5
+
6
+
7
+ class SignInConstants(str, Enum):
8
+ # Name for the signin invoke to verify the 6-digit authentication code as part of sign-in.
9
+ verify_state_operation_name = "signin/verifyState"
10
+ # Name for signin invoke to perform a token exchange.
11
+ token_exchange_operation_name = "signin/tokenExchange"
12
+ # The EventActivity name when a token is sent to the agent.
13
+ token_response_event_name = "tokens/response"
@@ -0,0 +1,14 @@
1
+ from ._type_aliases import NonEmptyString
2
+ from .agents_model import AgentsModel
3
+ from .token_exchange_resource import TokenExchangeResource
4
+ from .token_post_resource import TokenPostResource
5
+
6
+
7
+ class SignInResource(AgentsModel):
8
+ """
9
+ A type containing information for single sign-on.
10
+ """
11
+
12
+ sign_in_link: NonEmptyString = None
13
+ token_exchange_resource: TokenExchangeResource = None
14
+ token_post_resource: TokenPostResource = None
@@ -0,0 +1,16 @@
1
+ from .card_action import CardAction
2
+ from .agents_model import AgentsModel
3
+ from ._type_aliases import NonEmptyString
4
+
5
+
6
+ class SigninCard(AgentsModel):
7
+ """A card representing a request to sign in.
8
+
9
+ :param text: Text for signin request
10
+ :type text: str
11
+ :param buttons: Action to use to perform signin
12
+ :type buttons: list[~microsoft.agents.protocols.models.CardAction]
13
+ """
14
+
15
+ text: NonEmptyString = None
16
+ buttons: list[CardAction] = None
@@ -0,0 +1,18 @@
1
+ from .card_action import CardAction
2
+ from .agents_model import AgentsModel
3
+ from ._type_aliases import NonEmptyString
4
+
5
+
6
+ class SuggestedActions(AgentsModel):
7
+ """SuggestedActions that can be performed.
8
+
9
+ :param to: Ids of the recipients that the actions should be shown to.
10
+ These Ids are relative to the channelId and a subset of all recipients of
11
+ the activity
12
+ :type to: list[str]
13
+ :param actions: Actions that can be shown to the user
14
+ :type actions: list[~microsoft.agents.protocols.models.CardAction]
15
+ """
16
+
17
+ to: list[NonEmptyString]
18
+ actions: list[CardAction]
@@ -0,0 +1,198 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from .app_based_link_query import AppBasedLinkQuery
5
+ from .batch_operation_response import BatchOperationResponse
6
+ from .batch_operation_state_response import BatchOperationStateResponse
7
+ from .batch_failed_entries_response import BatchFailedEntriesResponse
8
+ from .cancel_operation_response import CancelOperationResponse
9
+ from .channel_info import ChannelInfo
10
+ from .conversation_list import ConversationList
11
+ from .file_consent_card import FileConsentCard
12
+ from .file_consent_card_response import FileConsentCardResponse
13
+ from .file_download_info import FileDownloadInfo
14
+ from .file_info_card import FileInfoCard
15
+ from .file_upload_info import FileUploadInfo
16
+ from .meeting_details import MeetingDetails
17
+ from .meeting_info import MeetingInfo
18
+ from .meeting_start_event_details import MeetingStartEventDetails
19
+ from .meeting_end_event_details import MeetingEndEventDetails
20
+ from .message_actions_payload import MessageActionsPayload
21
+ from .message_actions_payload_app import MessageActionsPayloadApp
22
+ from .message_actions_payload_attachment import MessageActionsPayloadAttachment
23
+ from .message_actions_payload_body import MessageActionsPayloadBody
24
+ from .message_actions_payload_conversation import MessageActionsPayloadConversation
25
+ from .message_actions_payload_from import MessageActionsPayloadFrom
26
+ from .message_actions_payload_mention import MessageActionsPayloadMention
27
+ from .message_actions_payload_reaction import MessageActionsPayloadReaction
28
+ from .message_actions_payload_user import MessageActionsPayloadUser
29
+ from .messaging_extension_action import MessagingExtensionAction
30
+ from .messaging_extension_action_response import MessagingExtensionActionResponse
31
+ from .messaging_extension_attachment import MessagingExtensionAttachment
32
+ from .messaging_extension_parameter import MessagingExtensionParameter
33
+ from .messaging_extension_query import MessagingExtensionQuery
34
+ from .messaging_extension_query_options import MessagingExtensionQueryOptions
35
+ from .messaging_extension_response import MessagingExtensionResponse
36
+ from .messaging_extension_result import MessagingExtensionResult
37
+ from .messaging_extension_suggested_action import MessagingExtensionSuggestedAction
38
+ from .notification_info import NotificationInfo
39
+ from .o365_connector_card import O365ConnectorCard
40
+ from .o365_connector_card_action_base import O365ConnectorCardActionBase
41
+ from .o365_connector_card_action_card import O365ConnectorCardActionCard
42
+ from .o365_connector_card_action_query import O365ConnectorCardActionQuery
43
+ from .o365_connector_card_date_input import O365ConnectorCardDateInput
44
+ from .o365_connector_card_fact import O365ConnectorCardFact
45
+ from .o365_connector_card_http_post import O365ConnectorCardHttpPOST
46
+ from .o365_connector_card_image import O365ConnectorCardImage
47
+ from .o365_connector_card_input_base import O365ConnectorCardInputBase
48
+ from .o365_connector_card_multichoice_input import O365ConnectorCardMultichoiceInput
49
+ from .o365_connector_card_multichoice_input_choice import (
50
+ O365ConnectorCardMultichoiceInputChoice,
51
+ )
52
+ from .o365_connector_card_open_uri import O365ConnectorCardOpenUri
53
+ from .o365_connector_card_open_uri_target import O365ConnectorCardOpenUriTarget
54
+ from .o365_connector_card_section import O365ConnectorCardSection
55
+ from .o365_connector_card_text_input import O365ConnectorCardTextInput
56
+ from .o365_connector_card_view_action import O365ConnectorCardViewAction
57
+ from .signin_state_verification_query import SigninStateVerificationQuery
58
+ from .task_module_continue_response import TaskModuleContinueResponse
59
+ from .task_module_message_response import TaskModuleMessageResponse
60
+ from .task_module_request import TaskModuleRequest
61
+ from .task_module_request_context import TaskModuleRequestContext
62
+ from .task_module_response import TaskModuleResponse
63
+ from .task_module_response_base import TaskModuleResponseBase
64
+ from .task_module_task_info import TaskModuleTaskInfo
65
+ from .team_details import TeamDetails
66
+ from .team_info import TeamInfo
67
+ from .teams_channel_account import TeamsChannelAccount
68
+ from .teams_channel_data_settings import TeamsChannelDataSettings
69
+ from .teams_channel_data import TeamsChannelData
70
+ from .teams_member import TeamsMember
71
+ from .teams_paged_members_result import TeamsPagedMembersResult
72
+ from .tenant_info import TenantInfo
73
+ from .teams_meeting_info import TeamsMeetingInfo
74
+ from .teams_meeting_participant import TeamsMeetingParticipant
75
+ from .meeting_participant_info import MeetingParticipantInfo
76
+ from .cache_info import CacheInfo
77
+ from .tab_context import TabContext
78
+ from .tab_entity_context import TabEntityContext
79
+ from .tab_request import TabRequest
80
+ from .tab_response_card import TabResponseCard
81
+ from .tab_response_cards import TabResponseCards
82
+ from .tab_response_payload import TabResponsePayload
83
+ from .tab_response import TabResponse
84
+ from .tab_submit import TabSubmit
85
+ from .tab_submit_data import TabSubmitData
86
+ from .tab_suggested_actions import TabSuggestedActions
87
+ from .task_module_card_response import TaskModuleCardResponse
88
+ from .user_meeting_details import UserMeetingDetails
89
+ from .teams_meeting_member import TeamsMeetingMember
90
+ from .meeting_participants_event_details import MeetingParticipantsEventDetails
91
+ from .read_receipt_info import ReadReceiptInfo
92
+ from .bot_config_auth import BotConfigAuth
93
+ from .config_auth_response import ConfigAuthResponse
94
+ from .config_response import ConfigResponse
95
+ from .config_task_response import ConfigTaskResponse
96
+ from .meeting_notification_base import MeetingNotificationBase
97
+ from .meeting_notification import MeetingNotification
98
+ from .meeting_notification_response import MeetingNotificationResponse
99
+ from .on_behalf_of import OnBehalfOf
100
+ from .teams_batch_operation_response import TeamsBatchOperationResponse
101
+
102
+ __all__ = [
103
+ "AppBasedLinkQuery",
104
+ "BatchOperationResponse",
105
+ "BatchOperationStateResponse",
106
+ "BatchFailedEntriesResponse",
107
+ "CancelOperationResponse",
108
+ "ChannelInfo",
109
+ "ConversationList",
110
+ "FileConsentCard",
111
+ "FileConsentCardResponse",
112
+ "FileDownloadInfo",
113
+ "FileInfoCard",
114
+ "FileUploadInfo",
115
+ "MeetingDetails",
116
+ "MeetingInfo",
117
+ "MeetingStartEventDetails",
118
+ "MeetingEndEventDetails",
119
+ "MessageActionsPayload",
120
+ "MessageActionsPayloadApp",
121
+ "MessageActionsPayloadAttachment",
122
+ "MessageActionsPayloadBody",
123
+ "MessageActionsPayloadConversation",
124
+ "MessageActionsPayloadFrom",
125
+ "MessageActionsPayloadMention",
126
+ "MessageActionsPayloadReaction",
127
+ "MessageActionsPayloadUser",
128
+ "MessagingExtensionAction",
129
+ "MessagingExtensionActionResponse",
130
+ "MessagingExtensionAttachment",
131
+ "MessagingExtensionParameter",
132
+ "MessagingExtensionQuery",
133
+ "MessagingExtensionQueryOptions",
134
+ "MessagingExtensionResponse",
135
+ "MessagingExtensionResult",
136
+ "MessagingExtensionSuggestedAction",
137
+ "NotificationInfo",
138
+ "O365ConnectorCard",
139
+ "O365ConnectorCardActionBase",
140
+ "O365ConnectorCardActionCard",
141
+ "O365ConnectorCardActionQuery",
142
+ "O365ConnectorCardDateInput",
143
+ "O365ConnectorCardFact",
144
+ "O365ConnectorCardHttpPOST",
145
+ "O365ConnectorCardImage",
146
+ "O365ConnectorCardInputBase",
147
+ "O365ConnectorCardMultichoiceInput",
148
+ "O365ConnectorCardMultichoiceInputChoice",
149
+ "O365ConnectorCardOpenUri",
150
+ "O365ConnectorCardOpenUriTarget",
151
+ "O365ConnectorCardSection",
152
+ "O365ConnectorCardTextInput",
153
+ "O365ConnectorCardViewAction",
154
+ "SigninStateVerificationQuery",
155
+ "TaskModuleContinueResponse",
156
+ "TaskModuleMessageResponse",
157
+ "TaskModuleRequest",
158
+ "TaskModuleRequestContext",
159
+ "TaskModuleResponse",
160
+ "TaskModuleResponseBase",
161
+ "TaskModuleTaskInfo",
162
+ "TeamDetails",
163
+ "TeamInfo",
164
+ "TeamsChannelAccount",
165
+ "TeamsChannelDataSettings",
166
+ "TeamsChannelData",
167
+ "TeamsPagedMembersResult",
168
+ "TenantInfo",
169
+ "TeamsMember",
170
+ "TeamsMeetingInfo",
171
+ "TeamsMeetingParticipant",
172
+ "MeetingParticipantInfo",
173
+ "CacheInfo",
174
+ "TabContext",
175
+ "TabEntityContext",
176
+ "TabRequest",
177
+ "TabResponseCard",
178
+ "TabResponseCards",
179
+ "TabResponsePayload",
180
+ "TabResponse",
181
+ "TabSubmit",
182
+ "TabSubmitData",
183
+ "TabSuggestedActions",
184
+ "TaskModuleCardResponse",
185
+ "UserMeetingDetails",
186
+ "TeamsMeetingMember",
187
+ "MeetingParticipantsEventDetails",
188
+ "ReadReceiptInfo",
189
+ "BotConfigAuth",
190
+ "ConfigAuthResponse",
191
+ "ConfigResponse",
192
+ "ConfigTaskResponse",
193
+ "MeetingNotificationBase",
194
+ "MeetingNotification",
195
+ "MeetingNotificationResponse",
196
+ "OnBehalfOf",
197
+ "TeamsBatchOperationResponse",
198
+ ]
@@ -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 AppBasedLinkQuery(AgentsModel):
9
+ """Invoke request body type for app-based link query.
10
+
11
+ :param url: Url queried by user
12
+ :type url: Optional[str]
13
+ :param state: The magic code for OAuth Flow
14
+ :type state: Optional[str]
15
+ """
16
+
17
+ url: Optional[str]
18
+ state: Optional[str]
@@ -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 .batch_failed_entry import BatchFailedEntry
6
+
7
+
8
+ class BatchFailedEntriesResponse(AgentsModel):
9
+ """
10
+ :param operation_id: Unique identifier of the batch operation.
11
+ :type operation_id: str
12
+ """
13
+
14
+ continuation_token: str = None
15
+ failed_entries_responses: list[BatchFailedEntry] = 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
+
7
+ class BatchFailedEntry(AgentsModel):
8
+ """
9
+ :param id: Unique identifier of the entry in the batch operation.
10
+ :type id: str
11
+ :param error: Error message associated with the entry.
12
+ :type error: str
13
+ """
14
+
15
+ id: str = None
16
+ error: str = None
@@ -0,0 +1,13 @@
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 BatchOperationResponse(AgentsModel):
8
+ """
9
+ :param operation_id: Unique identifier of the batch operation.
10
+ :type operation_id: str
11
+ """
12
+
13
+ operation_id: str = None
@@ -0,0 +1,24 @@
1
+ # Copyright (c) Microsoft Corporation. All rights reserved.
2
+ # Licensed under the MIT License.
3
+
4
+ from datetime import datetime
5
+ from typing import Optional
6
+ from ..agents_model import AgentsModel
7
+
8
+
9
+ class BatchOperationStateResponse(AgentsModel):
10
+ """
11
+ :param state: The state of the batch operation.
12
+ :type state: str
13
+ :param status_map: A map of status codes to their counts.
14
+ :type status_map: dict[int, int]
15
+ :param retry_after: The time after which the operation can be retried.
16
+ :type retry_after: datetime
17
+ :param total_entries_count: The total number of entries in the batch operation.
18
+ :type total_entries_count: int
19
+ """
20
+
21
+ state: str = None
22
+ status_map: dict[int, int] = None
23
+ retry_after: Optional[datetime] = None
24
+ total_entries_count: int = 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 ..suggested_actions import SuggestedActions
6
+
7
+
8
+ class BotConfigAuth(AgentsModel):
9
+ """Specifies bot config auth, including type and suggestedActions.
10
+
11
+ :param type: The type of bot config auth.
12
+ :type type: str
13
+ :param suggested_actions: The suggested actions of bot config auth.
14
+ :type suggested_actions: SuggestedActions
15
+ """
16
+
17
+ type: str = "auth"
18
+ suggested_actions: SuggestedActions = None