Skip to content

Commit 1397120

Browse files
committed
Release 1.4.3
1 parent 1820095 commit 1397120

32 files changed

+261
-65
lines changed

poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "vapi_server_sdk"
33

44
[tool.poetry]
55
name = "vapi_server_sdk"
6-
version = "1.4.2"
6+
version = "1.4.3"
77
description = ""
88
readme = "README.md"
99
authors = []

src/vapi/core/client_wrapper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def __init__(
2020

2121
def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
23-
"User-Agent": "vapi_server_sdk/1.4.2",
23+
"User-Agent": "vapi_server_sdk/1.4.3",
2424
"X-Fern-Language": "Python",
2525
"X-Fern-SDK-Name": "vapi_server_sdk",
26-
"X-Fern-SDK-Version": "1.4.2",
26+
"X-Fern-SDK-Version": "1.4.3",
2727
}
2828
headers["Authorization"] = f"Bearer {self._get_token()}"
2929
return headers

src/vapi/types/azure_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .azure_voice_id import AzureVoiceId
8-
from ..core.serialization import FieldMetadata
99
from .chunk_plan import ChunkPlan
1010
from .fallback_plan import FallbackPlan
1111
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1212

1313

1414
class AzureVoice(UncheckedBaseModel):
15+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
16+
pydantic.Field(default=None)
17+
)
18+
"""
19+
This is the flag to toggle voice caching for the assistant.
20+
"""
21+
1522
provider: typing.Literal["azure"] = pydantic.Field(default="azure")
1623
"""
1724
This is the voice provider that will be used.

src/vapi/types/cartesia_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4-
import typing
5-
import pydantic
64
import typing_extensions
5+
import typing
76
from ..core.serialization import FieldMetadata
7+
import pydantic
88
from .cartesia_voice_model import CartesiaVoiceModel
99
from .cartesia_voice_language import CartesiaVoiceLanguage
1010
from .cartesia_experimental_controls import CartesiaExperimentalControls
@@ -14,6 +14,13 @@
1414

1515

1616
class CartesiaVoice(UncheckedBaseModel):
17+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
18+
pydantic.Field(default=None)
19+
)
20+
"""
21+
This is the flag to toggle voice caching for the assistant.
22+
"""
23+
1724
provider: typing.Literal["cartesia"] = pydantic.Field(default="cartesia")
1825
"""
1926
This is the voice provider that will be used.

src/vapi/types/condition.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from ..core.unchecked_base_model import UncheckedBaseModel
44
from .condition_operator import ConditionOperator
55
import pydantic
6-
import typing
76
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
import typing
88

99

1010
class Condition(UncheckedBaseModel):
@@ -18,7 +18,7 @@ class Condition(UncheckedBaseModel):
1818
This is the name of the parameter that you want to check.
1919
"""
2020

21-
value: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
21+
value: str = pydantic.Field()
2222
"""
2323
This is the value you want to compare against the parameter.
2424
"""

src/vapi/types/custom_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .chunk_plan import ChunkPlan
8-
from ..core.serialization import FieldMetadata
99
from .server import Server
1010
from .fallback_plan import FallbackPlan
1111
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1212

1313

1414
class CustomVoice(UncheckedBaseModel):
15+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
16+
pydantic.Field(default=None)
17+
)
18+
"""
19+
This is the flag to toggle voice caching for the assistant.
20+
"""
21+
1522
provider: typing.Literal["custom-voice"] = pydantic.Field(default="custom-voice")
1623
"""
1724
This is the voice provider that will be used. Use `custom-voice` for providers that are not natively supported.

src/vapi/types/deepgram_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .deepgram_voice_id import DeepgramVoiceId
8-
from ..core.serialization import FieldMetadata
99
from .deepgram_voice_model import DeepgramVoiceModel
1010
from .chunk_plan import ChunkPlan
1111
from .fallback_plan import FallbackPlan
1212
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1313

1414

1515
class DeepgramVoice(UncheckedBaseModel):
16+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
17+
pydantic.Field(default=None)
18+
)
19+
"""
20+
This is the flag to toggle voice caching for the assistant.
21+
"""
22+
1623
provider: typing.Literal["deepgram"] = pydantic.Field(default="deepgram")
1724
"""
1825
This is the voice provider that will be used.

src/vapi/types/eleven_labs_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .eleven_labs_voice_id import ElevenLabsVoiceId
8-
from ..core.serialization import FieldMetadata
99
from .eleven_labs_voice_model import ElevenLabsVoiceModel
1010
from .chunk_plan import ChunkPlan
1111
from .fallback_plan import FallbackPlan
1212
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1313

1414

1515
class ElevenLabsVoice(UncheckedBaseModel):
16+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
17+
pydantic.Field(default=None)
18+
)
19+
"""
20+
This is the flag to toggle voice caching for the assistant.
21+
"""
22+
1623
provider: typing.Literal["11labs"] = pydantic.Field(default="11labs")
1724
"""
1825
This is the voice provider that will be used.

src/vapi/types/fallback_azure_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .fallback_azure_voice_id import FallbackAzureVoiceId
8-
from ..core.serialization import FieldMetadata
99
from .chunk_plan import ChunkPlan
1010
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1111

1212

1313
class FallbackAzureVoice(UncheckedBaseModel):
14+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
15+
pydantic.Field(default=None)
16+
)
17+
"""
18+
This is the flag to toggle voice caching for the assistant.
19+
"""
20+
1421
provider: typing.Literal["azure"] = pydantic.Field(default="azure")
1522
"""
1623
This is the voice provider that will be used.

src/vapi/types/fallback_cartesia_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4-
import typing
5-
import pydantic
64
import typing_extensions
5+
import typing
76
from ..core.serialization import FieldMetadata
7+
import pydantic
88
from .fallback_cartesia_voice_model import FallbackCartesiaVoiceModel
99
from .fallback_cartesia_voice_language import FallbackCartesiaVoiceLanguage
1010
from .cartesia_experimental_controls import CartesiaExperimentalControls
@@ -13,6 +13,13 @@
1313

1414

1515
class FallbackCartesiaVoice(UncheckedBaseModel):
16+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
17+
pydantic.Field(default=None)
18+
)
19+
"""
20+
This is the flag to toggle voice caching for the assistant.
21+
"""
22+
1623
provider: typing.Literal["cartesia"] = pydantic.Field(default="cartesia")
1724
"""
1825
This is the voice provider that will be used.

src/vapi/types/fallback_custom_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
68
from .server import Server
7-
import typing_extensions
89
from .chunk_plan import ChunkPlan
9-
from ..core.serialization import FieldMetadata
1010
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1111

1212

1313
class FallbackCustomVoice(UncheckedBaseModel):
14+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
15+
pydantic.Field(default=None)
16+
)
17+
"""
18+
This is the flag to toggle voice caching for the assistant.
19+
"""
20+
1421
provider: typing.Literal["custom-voice"] = pydantic.Field(default="custom-voice")
1522
"""
1623
This is the voice provider that will be used. Use `custom-voice` for providers that are not natively supported.

src/vapi/types/fallback_deepgram_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .fallback_deepgram_voice_id import FallbackDeepgramVoiceId
8-
from ..core.serialization import FieldMetadata
99
from .fallback_deepgram_voice_model import FallbackDeepgramVoiceModel
1010
from .chunk_plan import ChunkPlan
1111
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1212

1313

1414
class FallbackDeepgramVoice(UncheckedBaseModel):
15+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
16+
pydantic.Field(default=None)
17+
)
18+
"""
19+
This is the flag to toggle voice caching for the assistant.
20+
"""
21+
1522
provider: typing.Literal["deepgram"] = pydantic.Field(default="deepgram")
1623
"""
1724
This is the voice provider that will be used.

src/vapi/types/fallback_eleven_labs_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .fallback_eleven_labs_voice_id import FallbackElevenLabsVoiceId
8-
from ..core.serialization import FieldMetadata
99
from .fallback_eleven_labs_voice_model import FallbackElevenLabsVoiceModel
1010
from .chunk_plan import ChunkPlan
1111
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1212

1313

1414
class FallbackElevenLabsVoice(UncheckedBaseModel):
15+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
16+
pydantic.Field(default=None)
17+
)
18+
"""
19+
This is the flag to toggle voice caching for the assistant.
20+
"""
21+
1522
provider: typing.Literal["11labs"] = pydantic.Field(default="11labs")
1623
"""
1724
This is the voice provider that will be used.

src/vapi/types/fallback_hume_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4-
import typing
5-
import pydantic
64
import typing_extensions
5+
import typing
76
from ..core.serialization import FieldMetadata
7+
import pydantic
88
from .chunk_plan import ChunkPlan
99
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1010

1111

1212
class FallbackHumeVoice(UncheckedBaseModel):
13+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
14+
pydantic.Field(default=None)
15+
)
16+
"""
17+
This is the flag to toggle voice caching for the assistant.
18+
"""
19+
1320
provider: typing.Literal["hume"] = pydantic.Field(default="hume")
1421
"""
1522
This is the voice provider that will be used.

src/vapi/types/fallback_lmnt_voice.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
4+
import typing_extensions
45
import typing
6+
from ..core.serialization import FieldMetadata
57
import pydantic
6-
import typing_extensions
78
from .fallback_lmnt_voice_id import FallbackLmntVoiceId
8-
from ..core.serialization import FieldMetadata
99
from .chunk_plan import ChunkPlan
1010
from ..core.pydantic_utilities import IS_PYDANTIC_V2
1111

1212

1313
class FallbackLmntVoice(UncheckedBaseModel):
14+
caching_enabled: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="cachingEnabled")] = (
15+
pydantic.Field(default=None)
16+
)
17+
"""
18+
This is the flag to toggle voice caching for the assistant.
19+
"""
20+
1421
provider: typing.Literal["lmnt"] = pydantic.Field(default="lmnt")
1522
"""
1623
This is the voice provider that will be used.

0 commit comments

Comments
 (0)