Skip to content

Commit

Permalink
Release 0.0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 13, 2023
1 parent 055b096 commit 487fbca
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vocode-api"
version = "0.0.24"
version = "0.0.25"
description = ""
readme = "README.md"
authors = []
Expand Down
6 changes: 6 additions & 0 deletions src/vocode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@
PlanType,
PlayHtVoice,
PlayHtVoiceParams,
PlayHtVoiceParamsVersion,
PlayHtVoiceUpdateParams,
PlayHtVoiceUpdateParamsApiKey,
PlayHtVoiceUpdateParamsApiUserId,
PlayHtVoiceUpdateParamsVersion,
PlayHtVoiceUpdateParamsVoiceId,
PlayHtVoiceVersion,
Prompt,
PromptPage,
PromptParams,
Expand Down Expand Up @@ -352,10 +355,13 @@
"PlanType",
"PlayHtVoice",
"PlayHtVoiceParams",
"PlayHtVoiceParamsVersion",
"PlayHtVoiceUpdateParams",
"PlayHtVoiceUpdateParamsApiKey",
"PlayHtVoiceUpdateParamsApiUserId",
"PlayHtVoiceUpdateParamsVersion",
"PlayHtVoiceUpdateParamsVoiceId",
"PlayHtVoiceVersion",
"Prompt",
"PromptPage",
"PromptParams",
Expand Down
2 changes: 1 addition & 1 deletion src/vocode/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/vocode/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -379,10 +382,13 @@
"PlanType",
"PlayHtVoice",
"PlayHtVoiceParams",
"PlayHtVoiceParamsVersion",
"PlayHtVoiceUpdateParams",
"PlayHtVoiceUpdateParamsApiKey",
"PlayHtVoiceUpdateParamsApiUserId",
"PlayHtVoiceUpdateParamsVersion",
"PlayHtVoiceUpdateParamsVoiceId",
"PlayHtVoiceVersion",
"Prompt",
"PromptPage",
"PromptParams",
Expand Down
1 change: 1 addition & 0 deletions src/vocode/types/normalized_phone_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/vocode/types/phone_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions src/vocode/types/play_ht_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
17 changes: 17 additions & 0 deletions src/vocode/types/play_ht_voice_params_version.py
Original file line number Diff line number Diff line change
@@ -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()
17 changes: 17 additions & 0 deletions src/vocode/types/play_ht_voice_update_params_version.py
Original file line number Diff line number Diff line change
@@ -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()
17 changes: 17 additions & 0 deletions src/vocode/types/play_ht_voice_version.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 487fbca

Please sign in to comment.