From 03b946c453b1d8c757245b730b476a2bcd7db974 Mon Sep 17 00:00:00 2001 From: Ajay Raj Date: Thu, 18 Apr 2024 21:04:40 -0700 Subject: [PATCH] add action triggers to fernignored actions (#9) --- src/vocode/types/end_conversation_action_params.py | 2 ++ src/vocode/types/end_conversation_action_update_params.py | 2 ++ src/vocode/types/transfer_call_action_params.py | 2 ++ src/vocode/types/transfer_call_action_update_params.py | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/vocode/types/end_conversation_action_params.py b/src/vocode/types/end_conversation_action_params.py index 80ab7a9..60644c5 100644 --- a/src/vocode/types/end_conversation_action_params.py +++ b/src/vocode/types/end_conversation_action_params.py @@ -6,6 +6,7 @@ import typing_extensions from ..core.datetime_utils import serialize_datetime +from .end_conversation_action_action_trigger import EndConversationActionActionTrigger from .empty_action_config import EmptyActionConfig try: @@ -17,6 +18,7 @@ class EndConversationActionParams(pydantic.BaseModel): type: typing_extensions.Literal["action_end_conversation"] config: typing.Optional[EmptyActionConfig] + action_trigger: typing.Optional[EndConversationActionActionTrigger] def json(self, **kwargs: typing.Any) -> str: kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} diff --git a/src/vocode/types/end_conversation_action_update_params.py b/src/vocode/types/end_conversation_action_update_params.py index 055b416..c2fa8c7 100644 --- a/src/vocode/types/end_conversation_action_update_params.py +++ b/src/vocode/types/end_conversation_action_update_params.py @@ -5,6 +5,7 @@ import typing_extensions from ..core.datetime_utils import serialize_datetime +from .end_conversation_action_action_trigger import EndConversationActionActionTrigger from .end_conversation_action_update_params_config import EndConversationActionUpdateParamsConfig try: @@ -16,6 +17,7 @@ class EndConversationActionUpdateParams(pydantic.BaseModel): type: typing_extensions.Literal["action_end_conversation"] config: typing.Optional[EndConversationActionUpdateParamsConfig] + action_trigger: typing.Optional[EndConversationActionActionTrigger] def json(self, **kwargs: typing.Any) -> str: kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} diff --git a/src/vocode/types/transfer_call_action_params.py b/src/vocode/types/transfer_call_action_params.py index 6c02bf5..d736834 100644 --- a/src/vocode/types/transfer_call_action_params.py +++ b/src/vocode/types/transfer_call_action_params.py @@ -6,6 +6,7 @@ import typing_extensions from ..core.datetime_utils import serialize_datetime +from .transfer_call_action_action_trigger import TransferCallActionActionTrigger from .transfer_call_config import TransferCallConfig try: @@ -17,6 +18,7 @@ class TransferCallActionParams(pydantic.BaseModel): type: typing_extensions.Literal["action_transfer_call"] config: TransferCallConfig + action_trigger: typing.Optional[TransferCallActionActionTrigger] def json(self, **kwargs: typing.Any) -> str: kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs} diff --git a/src/vocode/types/transfer_call_action_update_params.py b/src/vocode/types/transfer_call_action_update_params.py index 504f214..41a7701 100644 --- a/src/vocode/types/transfer_call_action_update_params.py +++ b/src/vocode/types/transfer_call_action_update_params.py @@ -5,6 +5,7 @@ import typing_extensions from ..core.datetime_utils import serialize_datetime +from .transfer_call_action_action_trigger import TransferCallActionActionTrigger from .transfer_call_action_update_params_config import TransferCallActionUpdateParamsConfig try: @@ -16,6 +17,7 @@ class TransferCallActionUpdateParams(pydantic.BaseModel): type: typing_extensions.Literal["action_transfer_call"] config: typing.Optional[TransferCallActionUpdateParamsConfig] + action_trigger: typing.Optional[TransferCallActionActionTrigger] def json(self, **kwargs: typing.Any) -> str: kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}