Skip to content

Commit 2a91807

Browse files
committed
Release v0.5.1
1 parent 5984dad commit 2a91807

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+481
-72
lines changed

poetry.lock

+3-3
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.2.0"
6+
version = "v0.5.1"
77
description = ""
88
readme = "README.md"
99
authors = []

src/vapi/calls/client.py

+10
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def create(
133133
customers: typing.Optional[typing.Sequence[CreateCustomerDto]] = OMIT,
134134
name: typing.Optional[str] = OMIT,
135135
schedule_plan: typing.Optional[SchedulePlan] = OMIT,
136+
transport: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
136137
assistant_id: typing.Optional[str] = OMIT,
137138
assistant: typing.Optional[CreateAssistantDto] = OMIT,
138139
assistant_overrides: typing.Optional[AssistantOverrides] = OMIT,
@@ -158,6 +159,9 @@ def create(
158159
schedule_plan : typing.Optional[SchedulePlan]
159160
This is the schedule plan of the call.
160161
162+
transport : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
163+
This is the transport of the call.
164+
161165
assistant_id : typing.Optional[str]
162166
This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead.
163167
@@ -212,6 +216,7 @@ def create(
212216
"schedulePlan": convert_and_respect_annotation_metadata(
213217
object_=schedule_plan, annotation=SchedulePlan, direction="write"
214218
),
219+
"transport": transport,
215220
"assistantId": assistant_id,
216221
"assistant": convert_and_respect_annotation_metadata(
217222
object_=assistant, annotation=CreateAssistantDto, direction="write"
@@ -473,6 +478,7 @@ async def create(
473478
customers: typing.Optional[typing.Sequence[CreateCustomerDto]] = OMIT,
474479
name: typing.Optional[str] = OMIT,
475480
schedule_plan: typing.Optional[SchedulePlan] = OMIT,
481+
transport: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
476482
assistant_id: typing.Optional[str] = OMIT,
477483
assistant: typing.Optional[CreateAssistantDto] = OMIT,
478484
assistant_overrides: typing.Optional[AssistantOverrides] = OMIT,
@@ -498,6 +504,9 @@ async def create(
498504
schedule_plan : typing.Optional[SchedulePlan]
499505
This is the schedule plan of the call.
500506
507+
transport : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
508+
This is the transport of the call.
509+
501510
assistant_id : typing.Optional[str]
502511
This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead.
503512
@@ -552,6 +561,7 @@ async def create(
552561
"schedulePlan": convert_and_respect_annotation_metadata(
553562
object_=schedule_plan, annotation=SchedulePlan, direction="write"
554563
),
564+
"transport": transport,
555565
"assistantId": assistant_id,
556566
"assistant": convert_and_respect_annotation_metadata(
557567
object_=assistant, annotation=CreateAssistantDto, direction="write"

src/vapi/core/client_wrapper.py

+1-1
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": "1.2.0",
25+
"X-Fern-SDK-Version": "v0.5.1",
2626
}
2727
headers["Authorization"] = f"Bearer {self._get_token()}"
2828
return headers

src/vapi/tools/types/tools_create_request.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ...types.create_google_sheets_row_append_tool_dto import CreateGoogleSheetsRowAppendToolDto
1717
from ...types.create_google_calendar_check_availability_tool_dto import CreateGoogleCalendarCheckAvailabilityToolDto
1818
from ...types.create_slack_send_message_tool_dto import CreateSlackSendMessageToolDto
19+
from ...types.create_sms_send_tool_dto import CreateSmsSendToolDto
1920
from ...types.create_mcp_tool_dto import CreateMcpToolDto
2021

2122
ToolsCreateRequest = typing.Union[
@@ -34,5 +35,6 @@
3435
CreateGoogleSheetsRowAppendToolDto,
3536
CreateGoogleCalendarCheckAvailabilityToolDto,
3637
CreateSlackSendMessageToolDto,
38+
CreateSmsSendToolDto,
3739
CreateMcpToolDto,
3840
]

src/vapi/tools/types/tools_create_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ...types.google_sheets_row_append_tool import GoogleSheetsRowAppendTool
1717
from ...types.google_calendar_check_availability_tool import GoogleCalendarCheckAvailabilityTool
1818
from ...types.slack_send_message_tool import SlackSendMessageTool
19+
from ...types.sms_send_tool import SmsSendTool
1920
from ...types.mcp_tool import McpTool
2021

2122
ToolsCreateResponse = typing.Union[
@@ -34,5 +35,6 @@
3435
GoogleSheetsRowAppendTool,
3536
GoogleCalendarCheckAvailabilityTool,
3637
SlackSendMessageTool,
38+
SmsSendTool,
3739
McpTool,
3840
]

src/vapi/tools/types/tools_delete_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ...types.google_sheets_row_append_tool import GoogleSheetsRowAppendTool
1717
from ...types.google_calendar_check_availability_tool import GoogleCalendarCheckAvailabilityTool
1818
from ...types.slack_send_message_tool import SlackSendMessageTool
19+
from ...types.sms_send_tool import SmsSendTool
1920
from ...types.mcp_tool import McpTool
2021

2122
ToolsDeleteResponse = typing.Union[
@@ -34,5 +35,6 @@
3435
GoogleSheetsRowAppendTool,
3536
GoogleCalendarCheckAvailabilityTool,
3637
SlackSendMessageTool,
38+
SmsSendTool,
3739
McpTool,
3840
]

src/vapi/tools/types/tools_get_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ...types.google_sheets_row_append_tool import GoogleSheetsRowAppendTool
1717
from ...types.google_calendar_check_availability_tool import GoogleCalendarCheckAvailabilityTool
1818
from ...types.slack_send_message_tool import SlackSendMessageTool
19+
from ...types.sms_send_tool import SmsSendTool
1920
from ...types.mcp_tool import McpTool
2021

2122
ToolsGetResponse = typing.Union[
@@ -34,5 +35,6 @@
3435
GoogleSheetsRowAppendTool,
3536
GoogleCalendarCheckAvailabilityTool,
3637
SlackSendMessageTool,
38+
SmsSendTool,
3739
McpTool,
3840
]

src/vapi/tools/types/tools_list_response_item.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ...types.google_sheets_row_append_tool import GoogleSheetsRowAppendTool
1717
from ...types.google_calendar_check_availability_tool import GoogleCalendarCheckAvailabilityTool
1818
from ...types.slack_send_message_tool import SlackSendMessageTool
19+
from ...types.sms_send_tool import SmsSendTool
1920
from ...types.mcp_tool import McpTool
2021

2122
ToolsListResponseItem = typing.Union[
@@ -34,5 +35,6 @@
3435
GoogleSheetsRowAppendTool,
3536
GoogleCalendarCheckAvailabilityTool,
3637
SlackSendMessageTool,
38+
SmsSendTool,
3739
McpTool,
3840
]

src/vapi/tools/types/tools_update_request.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ...types.update_google_sheets_row_append_tool_dto import UpdateGoogleSheetsRowAppendToolDto
1717
from ...types.update_google_calendar_check_availability_tool_dto import UpdateGoogleCalendarCheckAvailabilityToolDto
1818
from ...types.update_slack_send_message_tool_dto import UpdateSlackSendMessageToolDto
19+
from ...types.update_sms_send_tool_dto import UpdateSmsSendToolDto
1920
from ...types.update_mcp_tool_dto import UpdateMcpToolDto
2021

2122
ToolsUpdateRequest = typing.Union[
@@ -34,5 +35,6 @@
3435
UpdateGoogleSheetsRowAppendToolDto,
3536
UpdateGoogleCalendarCheckAvailabilityToolDto,
3637
UpdateSlackSendMessageToolDto,
38+
UpdateSmsSendToolDto,
3739
UpdateMcpToolDto,
3840
]

src/vapi/tools/types/tools_update_response.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ...types.google_sheets_row_append_tool import GoogleSheetsRowAppendTool
1717
from ...types.google_calendar_check_availability_tool import GoogleCalendarCheckAvailabilityTool
1818
from ...types.slack_send_message_tool import SlackSendMessageTool
19+
from ...types.sms_send_tool import SmsSendTool
1920
from ...types.mcp_tool import McpTool
2021

2122
ToolsUpdateResponse = typing.Union[
@@ -34,5 +35,6 @@
3435
GoogleSheetsRowAppendTool,
3536
GoogleCalendarCheckAvailabilityTool,
3637
SlackSendMessageTool,
38+
SmsSendTool,
3739
McpTool,
3840
]

src/vapi/types/ai_edge_condition.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
from ..core.unchecked_base_model import UncheckedBaseModel
44
import typing
5-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
65
import pydantic
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
77

88

99
class AiEdgeCondition(UncheckedBaseModel):
1010
type: typing.Literal["ai"] = "ai"
11-
matches: typing.List[str]
11+
prompt: str = pydantic.Field()
12+
"""
13+
This is the prompt for the AI edge condition. It should evaluate to a boolean.
14+
"""
1215

1316
if IS_PYDANTIC_V2:
1417
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/vapi/types/assembly_ai_transcriber.py

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ class AssemblyAiTranscriber(UncheckedBaseModel):
2020
This is the language that will be set for the transcription.
2121
"""
2222

23+
confidence_threshold: typing_extensions.Annotated[
24+
typing.Optional[float], FieldMetadata(alias="confidenceThreshold")
25+
] = pydantic.Field(default=None)
26+
"""
27+
Transcripts below this confidence threshold will be discarded.
28+
29+
@default 0.4
30+
"""
31+
2332
realtime_url: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="realtimeUrl")] = (
2433
pydantic.Field(default=None)
2534
)

src/vapi/types/call.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from .analysis import Analysis
2020
from .monitor import Monitor
2121
from .artifact import Artifact
22-
from .transport import Transport
2322
from .create_assistant_dto import CreateAssistantDto
2423
from .assistant_overrides import AssistantOverrides
2524
from .create_squad_dto import CreateSquadDto
@@ -144,11 +143,6 @@ class Call(UncheckedBaseModel):
144143
These are the artifacts created from the call. Configure in `assistant.artifactPlan`.
145144
"""
146145

147-
transport: typing.Optional[Transport] = pydantic.Field(default=None)
148-
"""
149-
This is the transport used for the call.
150-
"""
151-
152146
phone_call_provider_id: typing_extensions.Annotated[
153147
typing.Optional[str], FieldMetadata(alias="phoneCallProviderId")
154148
] = pydantic.Field(default=None)
@@ -235,6 +229,11 @@ class Call(UncheckedBaseModel):
235229
This is the schedule plan of the call.
236230
"""
237231

232+
transport: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
233+
"""
234+
This is the transport of the call.
235+
"""
236+
238237
if IS_PYDANTIC_V2:
239238
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
240239
else:

src/vapi/types/call_ended_reason.py

+30-2
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,34 @@
241241
"call.in-progress.error-vapifault-anthropic-429-exceeded-quota",
242242
"call.in-progress.error-providerfault-anthropic-500-server-error",
243243
"call.in-progress.error-providerfault-anthropic-503-server-overloaded-error",
244+
"pipeline-error-anthropic-bedrock-400-bad-request-validation-failed",
245+
"pipeline-error-anthropic-bedrock-401-unauthorized",
246+
"pipeline-error-anthropic-bedrock-403-model-access-denied",
247+
"pipeline-error-anthropic-bedrock-429-exceeded-quota",
248+
"pipeline-error-anthropic-bedrock-500-server-error",
249+
"pipeline-error-anthropic-bedrock-503-server-overloaded-error",
250+
"pipeline-error-anthropic-bedrock-llm-failed",
251+
"call.in-progress.error-vapifault-anthropic-bedrock-llm-failed",
252+
"call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed",
253+
"call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized",
254+
"call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied",
255+
"call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota",
256+
"call.in-progress.error-providerfault-anthropic-bedrock-500-server-error",
257+
"call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error",
258+
"pipeline-error-anthropic-vertex-400-bad-request-validation-failed",
259+
"pipeline-error-anthropic-vertex-401-unauthorized",
260+
"pipeline-error-anthropic-vertex-403-model-access-denied",
261+
"pipeline-error-anthropic-vertex-429-exceeded-quota",
262+
"pipeline-error-anthropic-vertex-500-server-error",
263+
"pipeline-error-anthropic-vertex-503-server-overloaded-error",
264+
"pipeline-error-anthropic-vertex-llm-failed",
265+
"call.in-progress.error-vapifault-anthropic-vertex-llm-failed",
266+
"call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed",
267+
"call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized",
268+
"call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied",
269+
"call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota",
270+
"call.in-progress.error-providerfault-anthropic-vertex-500-server-error",
271+
"call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error",
244272
"pipeline-error-together-ai-400-bad-request-validation-failed",
245273
"pipeline-error-together-ai-401-unauthorized",
246274
"pipeline-error-together-ai-403-model-access-denied",
@@ -418,8 +446,8 @@
418446
"call.in-progress.error-providerfault-playht-504-gateway-error",
419447
"pipeline-error-custom-transcriber-failed",
420448
"call.in-progress.error-vapifault-custom-transcriber-failed",
421-
"pipeline-error-11labs-transcriber-failed",
422-
"call.in-progress.error-vapifault-11labs-transcriber-failed",
449+
"pipeline-error-eleven-labs-transcriber-failed",
450+
"call.in-progress.error-vapifault-eleven-labs-transcriber-failed",
423451
"pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination",
424452
"pipeline-error-deepgram-returning-401-invalid-credentials",
425453
"pipeline-error-deepgram-returning-403-model-access-denied",

src/vapi/types/call_type.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
import typing
44

5-
CallType = typing.Union[typing.Literal["inboundPhoneCall", "outboundPhoneCall", "webCall"], typing.Any]
5+
CallType = typing.Union[
6+
typing.Literal["inboundPhoneCall", "outboundPhoneCall", "webCall", "vapi.websocketCall"], typing.Any
7+
]
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3+
from __future__ import annotations
34
import typing
45

5-
CartesiaExperimentalControlsSpeed = typing.Union[
6-
typing.Literal["slowest", "slow", "normal", "fast", "fastest"], typing.Any
7-
]
6+
CartesiaExperimentalControlsSpeed = typing.Union["CartesiaExperimentalControlsSpeed", float]

src/vapi/types/create_customer_dto.py

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import typing
66
from ..core.serialization import FieldMetadata
77
import pydantic
8+
from .assistant_overrides import AssistantOverrides
89
from ..core.pydantic_utilities import IS_PYDANTIC_V2
910

1011

@@ -29,6 +30,14 @@ class CreateCustomerDto(UncheckedBaseModel):
2930
This is the extension that will be dialed after the call is answered.
3031
"""
3132

33+
assistant_overrides: typing_extensions.Annotated[
34+
typing.Optional[AssistantOverrides], FieldMetadata(alias="assistantOverrides")
35+
] = pydantic.Field(default=None)
36+
"""
37+
These are the overrides for the assistant's settings and template variables specific to this customer.
38+
This allows customization of the assistant's behavior for individual customers in batch calls.
39+
"""
40+
3241
number: typing.Optional[str] = pydantic.Field(default=None)
3342
"""
3443
This is the number of the customer.

src/vapi/types/create_outbound_call_dto.py

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ class CreateOutboundCallDto(UncheckedBaseModel):
3434
This is the schedule plan of the call.
3535
"""
3636

37+
transport: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
38+
"""
39+
This is the transport of the call.
40+
"""
41+
3742
assistant_id: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="assistantId")] = (
3843
pydantic.Field(default=None)
3944
)

0 commit comments

Comments
 (0)