Skip to content

Commit

Permalink
Release 0.0.47
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 16, 2024
1 parent dbd91db commit fc99c5e
Show file tree
Hide file tree
Showing 27 changed files with 380 additions and 867 deletions.
60 changes: 4 additions & 56 deletions src/vocode/types/action_params_request.py
Original file line number Diff line number Diff line change
@@ -1,70 +1,18 @@
# This file was auto-generated by Fern from our API Definition.

from __future__ import annotations

import typing

from .add_to_conference_action_params import AddToConferenceActionParams
from .dtmf_action_params import DtmfActionParams
from .end_conversation_action_params import EndConversationActionParams
from .external_action_params import ExternalActionParams
from .set_hold_action_params import SetHoldActionParams
from .transfer_call_action_params import TransferCallActionParams


class ActionParamsRequest_ActionTransferCall(TransferCallActionParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class ActionParamsRequest_ActionEndConversation(EndConversationActionParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class ActionParamsRequest_ActionDtmf(DtmfActionParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class ActionParamsRequest_ActionAddToConference(AddToConferenceActionParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class ActionParamsRequest_ActionSetHold(SetHoldActionParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class ActionParamsRequest_ActionExternal(ExternalActionParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


ActionParamsRequest = typing.Union[
TransferCallActionParams,
EndConversationActionParams,
DtmfActionParams,
AddToConferenceActionParams,
SetHoldActionParams,
DtmfActionParams,
EndConversationActionParams,
ExternalActionParams,
SetHoldActionParams,
TransferCallActionParams,
]
38 changes: 14 additions & 24 deletions src/vocode/types/add_to_conference_action_params.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
# This file was auto-generated by Fern from our API Definition.

import datetime as dt
from ..core.pydantic_utilities import UniversalBaseModel
import typing
import typing_extensions

from ..core.datetime_utils import serialize_datetime
from .add_to_conference_action_params_action_trigger import AddToConferenceActionParamsActionTrigger
from .add_to_conference_config import AddToConferenceConfig

try:
import pydantic.v1 as pydantic # type: ignore
except ImportError:
import pydantic # type: ignore
from .add_to_conference_action_params_action_trigger import AddToConferenceActionParamsActionTrigger
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic


class AddToConferenceActionParams(pydantic.BaseModel):
type: typing_extensions.Literal["action_add_to_conference"]
class AddToConferenceActionParams(UniversalBaseModel):
type: typing.Literal["action_add_to_conference"] = "action_add_to_conference"
config: AddToConferenceConfig
action_trigger: typing.Optional[AddToConferenceActionParamsActionTrigger]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)
action_trigger: typing.Optional[AddToConferenceActionParamsActionTrigger] = None

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().dict(**kwargs_with_defaults)
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
json_encoders = {dt.datetime: serialize_datetime}
class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
40 changes: 15 additions & 25 deletions src/vocode/types/add_to_conference_action_update_params.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
# This file was auto-generated by Fern from our API Definition.

import datetime as dt
from ..core.pydantic_utilities import UniversalBaseModel
import typing

from ..core.datetime_utils import serialize_datetime
from .add_to_conference_action_update_params_action_trigger import AddToConferenceActionUpdateParamsActionTrigger
from .add_to_conference_action_update_params_config import AddToConferenceActionUpdateParamsConfig
import typing_extensions

try:
import pydantic.v1 as pydantic # type: ignore
except ImportError:
import pydantic # type: ignore

from .add_to_conference_action_update_params_action_trigger import AddToConferenceActionUpdateParamsActionTrigger
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic

class AddToConferenceActionUpdateParams(pydantic.BaseModel):
type: typing_extensions.Literal["action_add_to_conference"]
config: typing.Optional[AddToConferenceActionUpdateParamsConfig]
action_trigger: typing.Optional[AddToConferenceActionUpdateParamsActionTrigger]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)
class AddToConferenceActionUpdateParams(UniversalBaseModel):
type: typing.Literal["action_add_to_conference"] = "action_add_to_conference"
config: typing.Optional[AddToConferenceActionUpdateParamsConfig] = None
action_trigger: typing.Optional[AddToConferenceActionUpdateParamsActionTrigger] = None

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().dict(**kwargs_with_defaults)
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
json_encoders = {dt.datetime: serialize_datetime}
class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
62 changes: 4 additions & 58 deletions src/vocode/types/agent_update_params_actions_item_one.py
Original file line number Diff line number Diff line change
@@ -1,72 +1,18 @@
# This file was auto-generated by Fern from our API Definition.

from __future__ import annotations

import typing

from .add_to_conference_action_update_params import AddToConferenceActionUpdateParams
from .dtmf_action_update_params import DtmfActionUpdateParams
from .end_conversation_action_update_params import EndConversationActionUpdateParams
from .external_action_update_params import ExternalActionUpdateParams
from .set_hold_action_update_params import SetHoldActionUpdateParams
from .transfer_call_action_update_params import TransferCallActionUpdateParams


class AgentUpdateParamsActionsItemOne_ActionTransferCall(
TransferCallActionUpdateParams
):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsActionsItemOne_ActionEndConversation(
EndConversationActionUpdateParams
):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsActionsItemOne_ActionDtmf(DtmfActionUpdateParams):
class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsActionsItemOne_ActionAddToConference(
AddToConferenceActionUpdateParams
):
class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsActionsItemOne_ActionSetHold(SetHoldActionUpdateParams):
class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsActionsItemOne_ActionExternal(ExternalActionUpdateParams):
class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


AgentUpdateParamsActionsItemOne = typing.Union[
TransferCallActionUpdateParams,
EndConversationActionUpdateParams,
DtmfActionUpdateParams,
AddToConferenceActionUpdateParams,
SetHoldActionUpdateParams,
DtmfActionUpdateParams,
EndConversationActionUpdateParams,
ExternalActionUpdateParams,
SetHoldActionUpdateParams,
TransferCallActionUpdateParams,
]
42 changes: 3 additions & 39 deletions src/vocode/types/agent_update_params_voice_one.py
Original file line number Diff line number Diff line change
@@ -1,52 +1,16 @@
# This file was auto-generated by Fern from our API Definition.

from __future__ import annotations

import typing

import typing_extensions

from .azure_voice_update_params import AzureVoiceUpdateParams
from .eleven_labs_voice_update_params import ElevenLabsVoiceUpdateParams
from .play_ht_voice_update_params import PlayHtVoiceUpdateParams
from .rime_voice_update_params import RimeVoiceUpdateParams


class AgentUpdateParamsVoiceOne_VoiceAzure(AzureVoiceUpdateParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsVoiceOne_VoiceRime(RimeVoiceUpdateParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsVoiceOne_VoiceElevenLabs(ElevenLabsVoiceUpdateParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True


class AgentUpdateParamsVoiceOne_VoicePlayHt(PlayHtVoiceUpdateParams):

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True

from .vocode_voice_update_params import VocodeVoiceUpdateParams

AgentUpdateParamsVoiceOne = typing.Union[
AzureVoiceUpdateParams,
RimeVoiceUpdateParams,
ElevenLabsVoiceUpdateParams,
PlayHtVoiceUpdateParams,
RimeVoiceUpdateParams,
VocodeVoiceUpdateParams,
]
38 changes: 14 additions & 24 deletions src/vocode/types/azure_voice_params.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
# This file was auto-generated by Fern from our API Definition.

import datetime as dt
from ..core.pydantic_utilities import UniversalBaseModel
import typing
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic

from ..core.datetime_utils import serialize_datetime

try:
import pydantic.v1 as pydantic # type: ignore
except ImportError:
import pydantic # type: ignore


class AzureVoiceParams(pydantic.BaseModel):
type: typing_extensions.Literal["voice_azure"]
class AzureVoiceParams(UniversalBaseModel):
type: typing.Literal["voice_azure"] = "voice_azure"
voice_name: str
pitch: typing.Optional[int]
rate: typing.Optional[int]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)
pitch: typing.Optional[int] = None
rate: typing.Optional[int] = None

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().dict(**kwargs_with_defaults)
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
json_encoders = {dt.datetime: serialize_datetime}
class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
Loading

0 comments on commit fc99c5e

Please sign in to comment.