"""
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
"""

from typing import Literal

from ...models import O365ConnectorCardActionQuery
from ..invoke_activity import InvokeActivity


class ExecuteActionInvokeActivity(InvokeActivity):
    """
    Execute action invoke activity for actionableMessage/executeAction invokes.

    Represents an invoke activity when a user clicks on an action button
    in an O365 connector card message.
    """

    name: Literal["actionableMessage/executeAction"] = "actionableMessage/executeAction"  #
    """The name of the operation associated with an invoke or event activity."""

    value: O365ConnectorCardActionQuery
    """A value that is associated with the activity."""
