diff --git a/pyproject.toml b/pyproject.toml index 13f1976..54e885d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "vocode-api" -version = "0.0.24" +version = "0.0.25" description = "" readme = "README.md" authors = [] diff --git a/src/vocode/__init__.py b/src/vocode/__init__.py index f899b76..5e3d694 100644 --- a/src/vocode/__init__.py +++ b/src/vocode/__init__.py @@ -144,10 +144,13 @@ PlanType, PlayHtVoice, PlayHtVoiceParams, + PlayHtVoiceParamsVersion, PlayHtVoiceUpdateParams, PlayHtVoiceUpdateParamsApiKey, PlayHtVoiceUpdateParamsApiUserId, + PlayHtVoiceUpdateParamsVersion, PlayHtVoiceUpdateParamsVoiceId, + PlayHtVoiceVersion, Prompt, PromptPage, PromptParams, @@ -352,10 +355,13 @@ "PlanType", "PlayHtVoice", "PlayHtVoiceParams", + "PlayHtVoiceParamsVersion", "PlayHtVoiceUpdateParams", "PlayHtVoiceUpdateParamsApiKey", "PlayHtVoiceUpdateParamsApiUserId", + "PlayHtVoiceUpdateParamsVersion", "PlayHtVoiceUpdateParamsVoiceId", + "PlayHtVoiceVersion", "Prompt", "PromptPage", "PromptParams", diff --git a/src/vocode/core/client_wrapper.py b/src/vocode/core/client_wrapper.py index e7502cc..8db4e00 100644 --- a/src/vocode/core/client_wrapper.py +++ b/src/vocode/core/client_wrapper.py @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "vocode-api", - "X-Fern-SDK-Version": "0.0.24", + "X-Fern-SDK-Version": "0.0.25", } headers["Authorization"] = f"Bearer {self._get_token()}" return headers diff --git a/src/vocode/types/__init__.py b/src/vocode/types/__init__.py index bd99000..213c507 100644 --- a/src/vocode/types/__init__.py +++ b/src/vocode/types/__init__.py @@ -167,10 +167,13 @@ from .plan_type import PlanType from .play_ht_voice import PlayHtVoice from .play_ht_voice_params import PlayHtVoiceParams +from .play_ht_voice_params_version import PlayHtVoiceParamsVersion from .play_ht_voice_update_params import PlayHtVoiceUpdateParams from .play_ht_voice_update_params_api_key import PlayHtVoiceUpdateParamsApiKey from .play_ht_voice_update_params_api_user_id import PlayHtVoiceUpdateParamsApiUserId +from .play_ht_voice_update_params_version import PlayHtVoiceUpdateParamsVersion from .play_ht_voice_update_params_voice_id import PlayHtVoiceUpdateParamsVoiceId +from .play_ht_voice_version import PlayHtVoiceVersion from .prompt import Prompt from .prompt_page import PromptPage from .prompt_params import PromptParams @@ -379,10 +382,13 @@ "PlanType", "PlayHtVoice", "PlayHtVoiceParams", + "PlayHtVoiceParamsVersion", "PlayHtVoiceUpdateParams", "PlayHtVoiceUpdateParamsApiKey", "PlayHtVoiceUpdateParamsApiUserId", + "PlayHtVoiceUpdateParamsVersion", "PlayHtVoiceUpdateParamsVoiceId", + "PlayHtVoiceVersion", "Prompt", "PromptPage", "PromptParams", diff --git a/src/vocode/types/normalized_phone_number.py b/src/vocode/types/normalized_phone_number.py index ba617bc..390b67f 100644 --- a/src/vocode/types/normalized_phone_number.py +++ b/src/vocode/types/normalized_phone_number.py @@ -15,6 +15,7 @@ class NormalizedPhoneNumber(pydantic.BaseModel): label: typing.Optional[str] inbound_agent: str outbound_only: typing.Optional[bool] + example_context: typing.Optional[typing.Dict[str, str]] number: str def json(self, **kwargs: typing.Any) -> str: diff --git a/src/vocode/types/phone_number.py b/src/vocode/types/phone_number.py index 5fa2ec4..a78add8 100644 --- a/src/vocode/types/phone_number.py +++ b/src/vocode/types/phone_number.py @@ -16,6 +16,7 @@ class PhoneNumber(pydantic.BaseModel): label: typing.Optional[str] inbound_agent: Agent outbound_only: typing.Optional[bool] + example_context: typing.Optional[typing.Dict[str, str]] number: str def json(self, **kwargs: typing.Any) -> str: diff --git a/src/vocode/types/play_ht_voice.py b/src/vocode/types/play_ht_voice.py index c5e7a77..09244c0 100644 --- a/src/vocode/types/play_ht_voice.py +++ b/src/vocode/types/play_ht_voice.py @@ -6,14 +6,16 @@ import pydantic from ..core.datetime_utils import serialize_datetime +from .play_ht_voice_version import PlayHtVoiceVersion class PlayHtVoice(pydantic.BaseModel): id: str user_id: str voice_id: str - api_user_id: str - api_key: str + api_user_id: typing.Optional[str] + api_key: typing.Optional[str] + version: typing.Optional[PlayHtVoiceVersion] 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/play_ht_voice_params_version.py b/src/vocode/types/play_ht_voice_params_version.py new file mode 100644 index 0000000..112f805 --- /dev/null +++ b/src/vocode/types/play_ht_voice_params_version.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class PlayHtVoiceParamsVersion(str, enum.Enum): + ONE = "1" + TWO = "2" + + def visit(self, one: typing.Callable[[], T_Result], two: typing.Callable[[], T_Result]) -> T_Result: + if self is PlayHtVoiceParamsVersion.ONE: + return one() + if self is PlayHtVoiceParamsVersion.TWO: + return two() diff --git a/src/vocode/types/play_ht_voice_update_params_version.py b/src/vocode/types/play_ht_voice_update_params_version.py new file mode 100644 index 0000000..9ea4a02 --- /dev/null +++ b/src/vocode/types/play_ht_voice_update_params_version.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class PlayHtVoiceUpdateParamsVersion(str, enum.Enum): + ONE = "1" + TWO = "2" + + def visit(self, one: typing.Callable[[], T_Result], two: typing.Callable[[], T_Result]) -> T_Result: + if self is PlayHtVoiceUpdateParamsVersion.ONE: + return one() + if self is PlayHtVoiceUpdateParamsVersion.TWO: + return two() diff --git a/src/vocode/types/play_ht_voice_version.py b/src/vocode/types/play_ht_voice_version.py new file mode 100644 index 0000000..6e9ca23 --- /dev/null +++ b/src/vocode/types/play_ht_voice_version.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import enum +import typing + +T_Result = typing.TypeVar("T_Result") + + +class PlayHtVoiceVersion(str, enum.Enum): + ONE = "1" + TWO = "2" + + def visit(self, one: typing.Callable[[], T_Result], two: typing.Callable[[], T_Result]) -> T_Result: + if self is PlayHtVoiceVersion.ONE: + return one() + if self is PlayHtVoiceVersion.TWO: + return two()