Skip to content

Commit

Permalink
add action triggers to fernignored actions (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 authored Apr 19, 2024
1 parent 7704673 commit 03b946c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vocode/types/end_conversation_action_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}
Expand Down
2 changes: 2 additions & 0 deletions src/vocode/types/end_conversation_action_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}
Expand Down
2 changes: 2 additions & 0 deletions src/vocode/types/transfer_call_action_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}
Expand Down
2 changes: 2 additions & 0 deletions src/vocode/types/transfer_call_action_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}
Expand Down

0 comments on commit 03b946c

Please sign in to comment.