Skip to content

Commit 8e2c171

Browse files
committed
Release 0.6.0
1 parent e49f15f commit 8e2c171

File tree

111 files changed

+890
-309
lines changed

Some content is hidden

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

111 files changed

+890
-309
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 = "4.3.15"
6+
version = "0.6.0"
77
description = ""
88
readme = "README.md"
99
authors = []

src/vapi/__init__.py

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
AnthropicModel,
2020
AnthropicModelModel,
2121
AnthropicModelToolsItem,
22+
AnthropicThinkingConfig,
2223
AnyscaleCredential,
2324
AnyscaleModel,
2425
AnyscaleModelToolsItem,
@@ -222,11 +223,14 @@
222223
CreateOutputToolDtoMessagesItem,
223224
CreatePerplexityAiCredentialDto,
224225
CreatePlayHtCredentialDto,
226+
CreateQueryToolDto,
227+
CreateQueryToolDtoMessagesItem,
225228
CreateRimeAiCredentialDto,
226229
CreateRunpodCredentialDto,
227230
CreateS3CredentialDto,
228231
CreateSmallestAiCredentialDto,
229232
CreateSquadDto,
233+
CreateSupabaseCredentialDto,
230234
CreateTavusCredentialDto,
231235
CreateTextEditorToolDto,
232236
CreateTextEditorToolDtoMessagesItem,
@@ -245,7 +249,6 @@
245249
CreateTransferCallToolDtoDestinationsItem,
246250
CreateTransferCallToolDtoMessagesItem,
247251
CreateTrieveKnowledgeBaseDto,
248-
CreateTrieveKnowledgeBaseDtoCreatePlan,
249252
CreateTwilioCredentialDto,
250253
CreateTwilioPhoneNumberDto,
251254
CreateTwilioPhoneNumberDtoFallbackDestination,
@@ -315,6 +318,7 @@
315318
FallbackElevenLabsVoiceId,
316319
FallbackElevenLabsVoiceIdEnum,
317320
FallbackElevenLabsVoiceModel,
321+
FallbackHumeVoice,
318322
FallbackLmntVoice,
319323
FallbackLmntVoiceId,
320324
FallbackLmntVoiceIdEnum,
@@ -340,6 +344,7 @@
340344
FallbackSmallestAiVoiceIdEnum,
341345
FallbackTavusVoice,
342346
FallbackTavusVoiceVoiceId,
347+
FallbackVapiVoice,
343348
File,
344349
FileStatus,
345350
FormatPlan,
@@ -394,6 +399,9 @@
394399
InviteUserDtoRole,
395400
JsonSchema,
396401
JsonSchemaType,
402+
KeypadInputPlan,
403+
KeypadInputPlanDelimiters,
404+
KnowledgeBase,
397405
KnowledgeBaseResponseDocument,
398406
LangfuseCredential,
399407
LmntCredential,
@@ -457,6 +465,8 @@
457465
PlayHtVoiceLanguage,
458466
PlayHtVoiceModel,
459467
PunctuationBoundary,
468+
QueryTool,
469+
QueryToolMessagesItem,
460470
RegexOption,
461471
RegexOptionType,
462472
RegexReplacement,
@@ -558,6 +568,9 @@
558568
SuccessEvaluationPlan,
559569
SuccessEvaluationPlanRubric,
560570
SummaryPlan,
571+
SupabaseBucketPlan,
572+
SupabaseBucketPlanRegion,
573+
SupabaseCredential,
561574
SyncVoiceLibraryDto,
562575
SyncVoiceLibraryDtoProvidersItem,
563576
SystemMessage,
@@ -645,7 +658,6 @@
645658
TrieveKnowledgeBase,
646659
TrieveKnowledgeBaseChunkPlan,
647660
TrieveKnowledgeBaseCreate,
648-
TrieveKnowledgeBaseCreatePlan,
649661
TrieveKnowledgeBaseImport,
650662
TrieveKnowledgeBaseSearchPlan,
651663
TrieveKnowledgeBaseSearchPlanSearchType,
@@ -709,10 +721,13 @@
709721
UpdateOutputToolDtoMessagesItem,
710722
UpdatePerplexityAiCredentialDto,
711723
UpdatePlayHtCredentialDto,
724+
UpdateQueryToolDto,
725+
UpdateQueryToolDtoMessagesItem,
712726
UpdateRimeAiCredentialDto,
713727
UpdateRunpodCredentialDto,
714728
UpdateS3CredentialDto,
715729
UpdateSmallestAiCredentialDto,
730+
UpdateSupabaseCredentialDto,
716731
UpdateTavusCredentialDto,
717732
UpdateTextEditorToolDto,
718733
UpdateTextEditorToolDtoMessagesItem,
@@ -731,7 +746,6 @@
731746
UpdateTransferCallToolDtoDestinationsItem,
732747
UpdateTransferCallToolDtoMessagesItem,
733748
UpdateTrieveKnowledgeBaseDto,
734-
UpdateTrieveKnowledgeBaseDtoCreatePlan,
735749
UpdateTwilioCredentialDto,
736750
UpdateTwilioPhoneNumberDto,
737751
UpdateTwilioPhoneNumberDtoFallbackDestination,
@@ -864,6 +878,7 @@
864878
"AnthropicModel",
865879
"AnthropicModelModel",
866880
"AnthropicModelToolsItem",
881+
"AnthropicThinkingConfig",
867882
"AnyscaleCredential",
868883
"AnyscaleModel",
869884
"AnyscaleModelToolsItem",
@@ -1076,11 +1091,14 @@
10761091
"CreateOutputToolDtoMessagesItem",
10771092
"CreatePerplexityAiCredentialDto",
10781093
"CreatePlayHtCredentialDto",
1094+
"CreateQueryToolDto",
1095+
"CreateQueryToolDtoMessagesItem",
10791096
"CreateRimeAiCredentialDto",
10801097
"CreateRunpodCredentialDto",
10811098
"CreateS3CredentialDto",
10821099
"CreateSmallestAiCredentialDto",
10831100
"CreateSquadDto",
1101+
"CreateSupabaseCredentialDto",
10841102
"CreateTavusCredentialDto",
10851103
"CreateTextEditorToolDto",
10861104
"CreateTextEditorToolDtoMessagesItem",
@@ -1099,7 +1117,6 @@
10991117
"CreateTransferCallToolDtoDestinationsItem",
11001118
"CreateTransferCallToolDtoMessagesItem",
11011119
"CreateTrieveKnowledgeBaseDto",
1102-
"CreateTrieveKnowledgeBaseDtoCreatePlan",
11031120
"CreateTwilioCredentialDto",
11041121
"CreateTwilioPhoneNumberDto",
11051122
"CreateTwilioPhoneNumberDtoFallbackDestination",
@@ -1169,6 +1186,7 @@
11691186
"FallbackElevenLabsVoiceId",
11701187
"FallbackElevenLabsVoiceIdEnum",
11711188
"FallbackElevenLabsVoiceModel",
1189+
"FallbackHumeVoice",
11721190
"FallbackLmntVoice",
11731191
"FallbackLmntVoiceId",
11741192
"FallbackLmntVoiceIdEnum",
@@ -1194,6 +1212,7 @@
11941212
"FallbackSmallestAiVoiceIdEnum",
11951213
"FallbackTavusVoice",
11961214
"FallbackTavusVoiceVoiceId",
1215+
"FallbackVapiVoice",
11971216
"File",
11981217
"FileStatus",
11991218
"FormatPlan",
@@ -1248,6 +1267,9 @@
12481267
"InviteUserDtoRole",
12491268
"JsonSchema",
12501269
"JsonSchemaType",
1270+
"KeypadInputPlan",
1271+
"KeypadInputPlanDelimiters",
1272+
"KnowledgeBase",
12511273
"KnowledgeBaseResponseDocument",
12521274
"KnowledgeBasesCreateRequest",
12531275
"KnowledgeBasesCreateResponse",
@@ -1328,6 +1350,8 @@
13281350
"PlayHtVoiceLanguage",
13291351
"PlayHtVoiceModel",
13301352
"PunctuationBoundary",
1353+
"QueryTool",
1354+
"QueryToolMessagesItem",
13311355
"RegexOption",
13321356
"RegexOptionType",
13331357
"RegexReplacement",
@@ -1429,6 +1453,9 @@
14291453
"SuccessEvaluationPlan",
14301454
"SuccessEvaluationPlanRubric",
14311455
"SummaryPlan",
1456+
"SupabaseBucketPlan",
1457+
"SupabaseBucketPlanRegion",
1458+
"SupabaseCredential",
14321459
"SyncVoiceLibraryDto",
14331460
"SyncVoiceLibraryDtoProvidersItem",
14341461
"SystemMessage",
@@ -1526,7 +1553,6 @@
15261553
"TrieveKnowledgeBase",
15271554
"TrieveKnowledgeBaseChunkPlan",
15281555
"TrieveKnowledgeBaseCreate",
1529-
"TrieveKnowledgeBaseCreatePlan",
15301556
"TrieveKnowledgeBaseImport",
15311557
"TrieveKnowledgeBaseSearchPlan",
15321558
"TrieveKnowledgeBaseSearchPlanSearchType",
@@ -1598,10 +1624,13 @@
15981624
"UpdateOutputToolDtoMessagesItem",
15991625
"UpdatePerplexityAiCredentialDto",
16001626
"UpdatePlayHtCredentialDto",
1627+
"UpdateQueryToolDto",
1628+
"UpdateQueryToolDtoMessagesItem",
16011629
"UpdateRimeAiCredentialDto",
16021630
"UpdateRunpodCredentialDto",
16031631
"UpdateS3CredentialDto",
16041632
"UpdateSmallestAiCredentialDto",
1633+
"UpdateSupabaseCredentialDto",
16051634
"UpdateTavusCredentialDto",
16061635
"UpdateTextEditorToolDto",
16071636
"UpdateTextEditorToolDtoMessagesItem",
@@ -1620,7 +1649,6 @@
16201649
"UpdateTransferCallToolDtoDestinationsItem",
16211650
"UpdateTransferCallToolDtoMessagesItem",
16221651
"UpdateTrieveKnowledgeBaseDto",
1623-
"UpdateTrieveKnowledgeBaseDtoCreatePlan",
16241652
"UpdateTwilioCredentialDto",
16251653
"UpdateTwilioPhoneNumberDto",
16261654
"UpdateTwilioPhoneNumberDtoFallbackDestination",

src/vapi/assistants/client.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from ..types.monitor_plan import MonitorPlan
2929
from ..types.server import Server
3030
from ..types.assistant_hooks import AssistantHooks
31+
from ..types.keypad_input_plan import KeypadInputPlan
3132
from ..core.serialization import convert_and_respect_annotation_metadata
3233
from ..core.jsonable_encoder import jsonable_encoder
3334
from .types.update_assistant_dto_transcriber import UpdateAssistantDtoTranscriber
@@ -163,6 +164,7 @@ def create(
163164
credential_ids: typing.Optional[typing.Sequence[str]] = OMIT,
164165
server: typing.Optional[Server] = OMIT,
165166
hooks: typing.Optional[typing.Sequence[AssistantHooks]] = OMIT,
167+
keypad_input_plan: typing.Optional[KeypadInputPlan] = OMIT,
166168
request_options: typing.Optional[RequestOptions] = None,
167169
) -> Assistant:
168170
"""
@@ -314,6 +316,8 @@ def create(
314316
hooks : typing.Optional[typing.Sequence[AssistantHooks]]
315317
This is a set of actions that will be performed on certain events.
316318
319+
keypad_input_plan : typing.Optional[KeypadInputPlan]
320+
317321
request_options : typing.Optional[RequestOptions]
318322
Request-specific configuration.
319323
@@ -388,6 +392,9 @@ def create(
388392
"hooks": convert_and_respect_annotation_metadata(
389393
object_=hooks, annotation=typing.Sequence[AssistantHooks], direction="write"
390394
),
395+
"keypadInputPlan": convert_and_respect_annotation_metadata(
396+
object_=keypad_input_plan, annotation=KeypadInputPlan, direction="write"
397+
),
391398
},
392399
request_options=request_options,
393400
omit=OMIT,
@@ -506,6 +513,7 @@ def update(
506513
credential_ids: typing.Optional[typing.Sequence[str]] = OMIT,
507514
server: typing.Optional[Server] = OMIT,
508515
hooks: typing.Optional[typing.Sequence[AssistantHooks]] = OMIT,
516+
keypad_input_plan: typing.Optional[KeypadInputPlan] = OMIT,
509517
request_options: typing.Optional[RequestOptions] = None,
510518
) -> Assistant:
511519
"""
@@ -659,6 +667,8 @@ def update(
659667
hooks : typing.Optional[typing.Sequence[AssistantHooks]]
660668
This is a set of actions that will be performed on certain events.
661669
670+
keypad_input_plan : typing.Optional[KeypadInputPlan]
671+
662672
request_options : typing.Optional[RequestOptions]
663673
Request-specific configuration.
664674
@@ -733,6 +743,9 @@ def update(
733743
"hooks": convert_and_respect_annotation_metadata(
734744
object_=hooks, annotation=typing.Sequence[AssistantHooks], direction="write"
735745
),
746+
"keypadInputPlan": convert_and_respect_annotation_metadata(
747+
object_=keypad_input_plan, annotation=KeypadInputPlan, direction="write"
748+
),
736749
},
737750
headers={
738751
"content-type": "application/json",
@@ -874,6 +887,7 @@ async def create(
874887
credential_ids: typing.Optional[typing.Sequence[str]] = OMIT,
875888
server: typing.Optional[Server] = OMIT,
876889
hooks: typing.Optional[typing.Sequence[AssistantHooks]] = OMIT,
890+
keypad_input_plan: typing.Optional[KeypadInputPlan] = OMIT,
877891
request_options: typing.Optional[RequestOptions] = None,
878892
) -> Assistant:
879893
"""
@@ -1025,6 +1039,8 @@ async def create(
10251039
hooks : typing.Optional[typing.Sequence[AssistantHooks]]
10261040
This is a set of actions that will be performed on certain events.
10271041
1042+
keypad_input_plan : typing.Optional[KeypadInputPlan]
1043+
10281044
request_options : typing.Optional[RequestOptions]
10291045
Request-specific configuration.
10301046
@@ -1099,6 +1115,9 @@ async def create(
10991115
"hooks": convert_and_respect_annotation_metadata(
11001116
object_=hooks, annotation=typing.Sequence[AssistantHooks], direction="write"
11011117
),
1118+
"keypadInputPlan": convert_and_respect_annotation_metadata(
1119+
object_=keypad_input_plan, annotation=KeypadInputPlan, direction="write"
1120+
),
11021121
},
11031122
request_options=request_options,
11041123
omit=OMIT,
@@ -1217,6 +1236,7 @@ async def update(
12171236
credential_ids: typing.Optional[typing.Sequence[str]] = OMIT,
12181237
server: typing.Optional[Server] = OMIT,
12191238
hooks: typing.Optional[typing.Sequence[AssistantHooks]] = OMIT,
1239+
keypad_input_plan: typing.Optional[KeypadInputPlan] = OMIT,
12201240
request_options: typing.Optional[RequestOptions] = None,
12211241
) -> Assistant:
12221242
"""
@@ -1370,6 +1390,8 @@ async def update(
13701390
hooks : typing.Optional[typing.Sequence[AssistantHooks]]
13711391
This is a set of actions that will be performed on certain events.
13721392
1393+
keypad_input_plan : typing.Optional[KeypadInputPlan]
1394+
13731395
request_options : typing.Optional[RequestOptions]
13741396
Request-specific configuration.
13751397
@@ -1444,6 +1466,9 @@ async def update(
14441466
"hooks": convert_and_respect_annotation_metadata(
14451467
object_=hooks, annotation=typing.Sequence[AssistantHooks], direction="write"
14461468
),
1469+
"keypadInputPlan": convert_and_respect_annotation_metadata(
1470+
object_=keypad_input_plan, annotation=KeypadInputPlan, direction="write"
1471+
),
14471472
},
14481473
headers={
14491474
"content-type": "application/json",

src/vapi/assistants/types/update_assistant_dto_credentials_item.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from ...types.create_rime_ai_credential_dto import CreateRimeAiCredentialDto
2929
from ...types.create_runpod_credential_dto import CreateRunpodCredentialDto
3030
from ...types.create_s_3_credential_dto import CreateS3CredentialDto
31+
from ...types.create_supabase_credential_dto import CreateSupabaseCredentialDto
3132
from ...types.create_smallest_ai_credential_dto import CreateSmallestAiCredentialDto
3233
from ...types.create_tavus_credential_dto import CreateTavusCredentialDto
3334
from ...types.create_together_ai_credential_dto import CreateTogetherAiCredentialDto
@@ -64,6 +65,7 @@
6465
CreateRimeAiCredentialDto,
6566
CreateRunpodCredentialDto,
6667
CreateS3CredentialDto,
68+
CreateSupabaseCredentialDto,
6769
CreateSmallestAiCredentialDto,
6870
CreateTavusCredentialDto,
6971
CreateTogetherAiCredentialDto,

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

src/vapi/tools/types/tools_create_request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from ...types.create_bash_tool_dto import CreateBashToolDto
1212
from ...types.create_computer_tool_dto import CreateComputerToolDto
1313
from ...types.create_text_editor_tool_dto import CreateTextEditorToolDto
14+
from ...types.create_query_tool_dto import CreateQueryToolDto
1415

1516
ToolsCreateRequest = typing.Union[
1617
CreateDtmfToolDto,
@@ -23,4 +24,5 @@
2324
CreateBashToolDto,
2425
CreateComputerToolDto,
2526
CreateTextEditorToolDto,
27+
CreateQueryToolDto,
2628
]

src/vapi/tools/types/tools_create_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from ...types.bash_tool import BashTool
1212
from ...types.computer_tool import ComputerTool
1313
from ...types.text_editor_tool import TextEditorTool
14+
from ...types.query_tool import QueryTool
1415

1516
ToolsCreateResponse = typing.Union[
1617
DtmfTool,
@@ -23,4 +24,5 @@
2324
BashTool,
2425
ComputerTool,
2526
TextEditorTool,
27+
QueryTool,
2628
]

0 commit comments

Comments
 (0)