Skip to content

Commit c5c2e18

Browse files
committed
Release 1.2.1
1 parent 2a91807 commit c5c2e18

32 files changed

+245
-29
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
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 = "v0.5.1"
6+
version = "1.2.1"
77
description = ""
88
readme = "README.md"
99
authors = []

src/vapi/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
2323
"X-Fern-Language": "Python",
2424
"X-Fern-SDK-Name": "vapi_server_sdk",
25-
"X-Fern-SDK-Version": "v0.5.1",
25+
"X-Fern-SDK-Version": "1.2.1",
2626
}
2727
headers["Authorization"] = f"Bearer {self._get_token()}"
2828
return headers

src/vapi/types/byo_phone_number.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ class ByoPhoneNumber(UncheckedBaseModel):
2525
If this is not set and above conditions are met, the inbound call is hung up with an error message.
2626
"""
2727

28+
hooks: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None)
29+
"""
30+
This is the hooks that will be used for incoming calls to this phone number.
31+
"""
32+
2833
provider: typing.Literal["byo-phone-number"] = "byo-phone-number"
2934
number_e_164_check_enabled: typing_extensions.Annotated[
3035
typing.Optional[bool], FieldMetadata(alias="numberE164CheckEnabled")

src/vapi/types/call_ended_reason.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@
482482
"phone-call-provider-closed-websocket",
483483
"silence-timed-out",
484484
"call.in-progress.error-sip-telephony-provider-failed-to-connect-call",
485+
"call.ringing.hook-executed-say",
486+
"call.ringing.hook-executed-transfer",
485487
"twilio-failed-to-connect-call",
486488
"twilio-reported-customer-misdialed",
487489
"vonage-rejected",

src/vapi/types/create_byo_phone_number_dto.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class CreateByoPhoneNumberDto(UncheckedBaseModel):
2323
If this is not set and above conditions are met, the inbound call is hung up with an error message.
2424
"""
2525

26+
hooks: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None)
27+
"""
28+
This is the hooks that will be used for incoming calls to this phone number.
29+
"""
30+
2631
provider: typing.Literal["byo-phone-number"] = "byo-phone-number"
2732
number_e_164_check_enabled: typing_extensions.Annotated[
2833
typing.Optional[bool], FieldMetadata(alias="numberE164CheckEnabled")

src/vapi/types/create_telnyx_phone_number_dto.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class CreateTelnyxPhoneNumberDto(UncheckedBaseModel):
2323
If this is not set and above conditions are met, the inbound call is hung up with an error message.
2424
"""
2525

26+
hooks: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None)
27+
"""
28+
This is the hooks that will be used for incoming calls to this phone number.
29+
"""
30+
2631
provider: typing.Literal["telnyx"] = "telnyx"
2732
number: str = pydantic.Field()
2833
"""

src/vapi/types/create_twilio_phone_number_dto.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class CreateTwilioPhoneNumberDto(UncheckedBaseModel):
2323
If this is not set and above conditions are met, the inbound call is hung up with an error message.
2424
"""
2525

26+
hooks: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None)
27+
"""
28+
This is the hooks that will be used for incoming calls to this phone number.
29+
"""
30+
2631
provider: typing.Literal["twilio"] = "twilio"
2732
number: str = pydantic.Field()
2833
"""

src/vapi/types/create_vapi_phone_number_dto.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ class CreateVapiPhoneNumberDto(UncheckedBaseModel):
2424
If this is not set and above conditions are met, the inbound call is hung up with an error message.
2525
"""
2626

27+
hooks: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None)
28+
"""
29+
This is the hooks that will be used for incoming calls to this phone number.
30+
"""
31+
2732
provider: typing.Literal["vapi"] = "vapi"
2833
number_desired_area_code: typing_extensions.Annotated[
2934
typing.Optional[str], FieldMetadata(alias="numberDesiredAreaCode")

src/vapi/types/create_vonage_phone_number_dto.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class CreateVonagePhoneNumberDto(UncheckedBaseModel):
2323
If this is not set and above conditions are met, the inbound call is hung up with an error message.
2424
"""
2525

26+
hooks: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None)
27+
"""
28+
This is the hooks that will be used for incoming calls to this phone number.
29+
"""
30+
2631
provider: typing.Literal["vonage"] = "vonage"
2732
number: str = pydantic.Field()
2833
"""

src/vapi/types/deepgram_voice.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import typing_extensions
77
from .deepgram_voice_id import DeepgramVoiceId
88
from ..core.serialization import FieldMetadata
9+
from .deepgram_voice_model import DeepgramVoiceModel
910
from .chunk_plan import ChunkPlan
1011
from .fallback_plan import FallbackPlan
1112
from ..core.pydantic_utilities import IS_PYDANTIC_V2
@@ -22,6 +23,11 @@ class DeepgramVoice(UncheckedBaseModel):
2223
This is the provider-specific ID that will be used.
2324
"""
2425

26+
model: typing.Optional[DeepgramVoiceModel] = pydantic.Field(default=None)
27+
"""
28+
This is the model that will be used. Defaults to 'aura-2' when not specified.
29+
"""
30+
2531
mip_opt_out: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="mipOptOut")] = pydantic.Field(
2632
default=None
2733
)

0 commit comments

Comments
 (0)