Skip to content

Commit

Permalink
Release 0.0.0-alpha6
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 10, 2024
1 parent 2914f59 commit 2ae8051
Show file tree
Hide file tree
Showing 37 changed files with 279 additions and 223 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Vapi Python Library

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Ffern-demo%2Fvapi-python-sdk)
[![pypi](https://img.shields.io/pypi/v/Vapi)](https://pypi.python.org/pypi/Vapi)
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FVapiAI%2Fserver-sdk-python)
[![pypi](https://img.shields.io/pypi/v/vapi_server_sdk)](https://pypi.python.org/pypi/vapi_server_sdk)

The Vapi Python library provides convenient access to the Vapi API from Python.

## Installation

```sh
pip install Vapi
pip install vapi_server_sdk
```

## Reference
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Vapi"
version = "0.0.0-alpha4"
name = "vapi_server_sdk"
version = "0.0.0-alpha6"
description = ""
readme = "README.md"
authors = []
Expand Down Expand Up @@ -28,7 +28,7 @@ packages = [
]

[project.urls]
Repository = 'https://github.com/fern-demo/vapi-python-sdk'
Repository = 'https://github.com/VapiAI/server-sdk-python'

[tool.poetry.dependencies]
python = "^3.8"
Expand Down
46 changes: 30 additions & 16 deletions src/vapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
AzureOpenAiCredentialModelsItem,
AzureOpenAiCredentialRegion,
AzureVoice,
AzureVoiceVoiceId,
AzureVoiceId,
AzureVoiceIdEnum,
BlockCompleteMessage,
BlockCompleteMessageConditionsItem,
BlockStartMessage,
Expand Down Expand Up @@ -197,13 +198,15 @@
DeepgramTranscriberLanguage,
DeepgramTranscriberModel,
DeepgramVoice,
DeepgramVoiceVoiceId,
DeepgramVoiceId,
DeepgramVoiceIdEnum,
DtmfTool,
DtmfToolMessagesItem,
ElevenLabsCredential,
ElevenLabsVoice,
ElevenLabsVoiceId,
ElevenLabsVoiceIdEnum,
ElevenLabsVoiceModel,
ElevenLabsVoiceVoiceId,
EndCallTool,
EndCallToolMessagesItem,
Error,
Expand Down Expand Up @@ -248,7 +251,8 @@
KnowledgeBase,
LmntCredential,
LmntVoice,
LmntVoiceVoiceId,
LmntVoiceId,
LmntVoiceIdEnum,
Log,
LogRequestHttpMethod,
LogResource,
Expand All @@ -268,7 +272,8 @@
Monitor,
MonitorPlan,
NeetsVoice,
NeetsVoiceVoiceId,
NeetsVoiceId,
NeetsVoiceIdEnum,
OpenAiCredential,
OpenAiFunction,
OpenAiFunctionParameters,
Expand All @@ -279,7 +284,7 @@
OpenAiModelModel,
OpenAiModelToolsItem,
OpenAiVoice,
OpenAiVoiceVoiceId,
OpenAiVoiceId,
OpenRouterCredential,
OpenRouterModel,
OpenRouterModelToolsItem,
Expand All @@ -294,15 +299,17 @@
PlayHtCredential,
PlayHtVoice,
PlayHtVoiceEmotion,
PlayHtVoiceVoiceId,
PlayHtVoiceId,
PlayHtVoiceIdEnum,
PunctuationBoundary,
RegexOption,
RegexOptionType,
RegexReplacement,
RimeAiCredential,
RimeAiVoice,
RimeAiVoiceId,
RimeAiVoiceIdEnum,
RimeAiVoiceModel,
RimeAiVoiceVoiceId,
RuleBasedCondition,
RuleBasedConditionOperator,
RunpodCredential,
Expand Down Expand Up @@ -578,7 +585,8 @@
"AzureOpenAiCredentialModelsItem",
"AzureOpenAiCredentialRegion",
"AzureVoice",
"AzureVoiceVoiceId",
"AzureVoiceId",
"AzureVoiceIdEnum",
"BadRequestError",
"BlockCompleteMessage",
"BlockCompleteMessageConditionsItem",
Expand Down Expand Up @@ -737,13 +745,15 @@
"DeepgramTranscriberLanguage",
"DeepgramTranscriberModel",
"DeepgramVoice",
"DeepgramVoiceVoiceId",
"DeepgramVoiceId",
"DeepgramVoiceIdEnum",
"DtmfTool",
"DtmfToolMessagesItem",
"ElevenLabsCredential",
"ElevenLabsVoice",
"ElevenLabsVoiceId",
"ElevenLabsVoiceIdEnum",
"ElevenLabsVoiceModel",
"ElevenLabsVoiceVoiceId",
"EndCallTool",
"EndCallToolMessagesItem",
"Error",
Expand Down Expand Up @@ -788,7 +798,8 @@
"KnowledgeBase",
"LmntCredential",
"LmntVoice",
"LmntVoiceVoiceId",
"LmntVoiceId",
"LmntVoiceIdEnum",
"Log",
"LogRequestHttpMethod",
"LogResource",
Expand All @@ -810,7 +821,8 @@
"Monitor",
"MonitorPlan",
"NeetsVoice",
"NeetsVoiceVoiceId",
"NeetsVoiceId",
"NeetsVoiceIdEnum",
"OpenAiCredential",
"OpenAiFunction",
"OpenAiFunctionParameters",
Expand All @@ -821,7 +833,7 @@
"OpenAiModelModel",
"OpenAiModelToolsItem",
"OpenAiVoice",
"OpenAiVoiceVoiceId",
"OpenAiVoiceId",
"OpenRouterCredential",
"OpenRouterModel",
"OpenRouterModelToolsItem",
Expand All @@ -842,15 +854,17 @@
"PlayHtCredential",
"PlayHtVoice",
"PlayHtVoiceEmotion",
"PlayHtVoiceVoiceId",
"PlayHtVoiceId",
"PlayHtVoiceIdEnum",
"PunctuationBoundary",
"RegexOption",
"RegexOptionType",
"RegexReplacement",
"RimeAiCredential",
"RimeAiVoice",
"RimeAiVoiceId",
"RimeAiVoiceIdEnum",
"RimeAiVoiceModel",
"RimeAiVoiceVoiceId",
"RuleBasedCondition",
"RuleBasedConditionOperator",
"RunpodCredential",
Expand Down
4 changes: 2 additions & 2 deletions src/vapi/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def __init__(
def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "Vapi",
"X-Fern-SDK-Version": "0.0.0-alpha4",
"X-Fern-SDK-Name": "vapi_server_sdk",
"X-Fern-SDK-Version": "0.0.0-alpha6",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
46 changes: 30 additions & 16 deletions src/vapi/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
from .azure_open_ai_credential_models_item import AzureOpenAiCredentialModelsItem
from .azure_open_ai_credential_region import AzureOpenAiCredentialRegion
from .azure_voice import AzureVoice
from .azure_voice_voice_id import AzureVoiceVoiceId
from .azure_voice_id import AzureVoiceId
from .azure_voice_id_enum import AzureVoiceIdEnum
from .block_complete_message import BlockCompleteMessage
from .block_complete_message_conditions_item import BlockCompleteMessageConditionsItem
from .block_start_message import BlockStartMessage
Expand Down Expand Up @@ -196,13 +197,15 @@
from .deepgram_transcriber_language import DeepgramTranscriberLanguage
from .deepgram_transcriber_model import DeepgramTranscriberModel
from .deepgram_voice import DeepgramVoice
from .deepgram_voice_voice_id import DeepgramVoiceVoiceId
from .deepgram_voice_id import DeepgramVoiceId
from .deepgram_voice_id_enum import DeepgramVoiceIdEnum
from .dtmf_tool import DtmfTool
from .dtmf_tool_messages_item import DtmfToolMessagesItem
from .eleven_labs_credential import ElevenLabsCredential
from .eleven_labs_voice import ElevenLabsVoice
from .eleven_labs_voice_id import ElevenLabsVoiceId
from .eleven_labs_voice_id_enum import ElevenLabsVoiceIdEnum
from .eleven_labs_voice_model import ElevenLabsVoiceModel
from .eleven_labs_voice_voice_id import ElevenLabsVoiceVoiceId
from .end_call_tool import EndCallTool
from .end_call_tool_messages_item import EndCallToolMessagesItem
from .error import Error
Expand Down Expand Up @@ -247,7 +250,8 @@
from .knowledge_base import KnowledgeBase
from .lmnt_credential import LmntCredential
from .lmnt_voice import LmntVoice
from .lmnt_voice_voice_id import LmntVoiceVoiceId
from .lmnt_voice_id import LmntVoiceId
from .lmnt_voice_id_enum import LmntVoiceIdEnum
from .log import Log
from .log_request_http_method import LogRequestHttpMethod
from .log_resource import LogResource
Expand All @@ -267,7 +271,8 @@
from .monitor import Monitor
from .monitor_plan import MonitorPlan
from .neets_voice import NeetsVoice
from .neets_voice_voice_id import NeetsVoiceVoiceId
from .neets_voice_id import NeetsVoiceId
from .neets_voice_id_enum import NeetsVoiceIdEnum
from .open_ai_credential import OpenAiCredential
from .open_ai_function import OpenAiFunction
from .open_ai_function_parameters import OpenAiFunctionParameters
Expand All @@ -278,7 +283,7 @@
from .open_ai_model_model import OpenAiModelModel
from .open_ai_model_tools_item import OpenAiModelToolsItem
from .open_ai_voice import OpenAiVoice
from .open_ai_voice_voice_id import OpenAiVoiceVoiceId
from .open_ai_voice_id import OpenAiVoiceId
from .open_router_credential import OpenRouterCredential
from .open_router_model import OpenRouterModel
from .open_router_model_tools_item import OpenRouterModelToolsItem
Expand All @@ -293,15 +298,17 @@
from .play_ht_credential import PlayHtCredential
from .play_ht_voice import PlayHtVoice
from .play_ht_voice_emotion import PlayHtVoiceEmotion
from .play_ht_voice_voice_id import PlayHtVoiceVoiceId
from .play_ht_voice_id import PlayHtVoiceId
from .play_ht_voice_id_enum import PlayHtVoiceIdEnum
from .punctuation_boundary import PunctuationBoundary
from .regex_option import RegexOption
from .regex_option_type import RegexOptionType
from .regex_replacement import RegexReplacement
from .rime_ai_credential import RimeAiCredential
from .rime_ai_voice import RimeAiVoice
from .rime_ai_voice_id import RimeAiVoiceId
from .rime_ai_voice_id_enum import RimeAiVoiceIdEnum
from .rime_ai_voice_model import RimeAiVoiceModel
from .rime_ai_voice_voice_id import RimeAiVoiceVoiceId
from .rule_based_condition import RuleBasedCondition
from .rule_based_condition_operator import RuleBasedConditionOperator
from .runpod_credential import RunpodCredential
Expand Down Expand Up @@ -535,7 +542,8 @@
"AzureOpenAiCredentialModelsItem",
"AzureOpenAiCredentialRegion",
"AzureVoice",
"AzureVoiceVoiceId",
"AzureVoiceId",
"AzureVoiceIdEnum",
"BlockCompleteMessage",
"BlockCompleteMessageConditionsItem",
"BlockStartMessage",
Expand Down Expand Up @@ -687,13 +695,15 @@
"DeepgramTranscriberLanguage",
"DeepgramTranscriberModel",
"DeepgramVoice",
"DeepgramVoiceVoiceId",
"DeepgramVoiceId",
"DeepgramVoiceIdEnum",
"DtmfTool",
"DtmfToolMessagesItem",
"ElevenLabsCredential",
"ElevenLabsVoice",
"ElevenLabsVoiceId",
"ElevenLabsVoiceIdEnum",
"ElevenLabsVoiceModel",
"ElevenLabsVoiceVoiceId",
"EndCallTool",
"EndCallToolMessagesItem",
"Error",
Expand Down Expand Up @@ -738,7 +748,8 @@
"KnowledgeBase",
"LmntCredential",
"LmntVoice",
"LmntVoiceVoiceId",
"LmntVoiceId",
"LmntVoiceIdEnum",
"Log",
"LogRequestHttpMethod",
"LogResource",
Expand All @@ -758,7 +769,8 @@
"Monitor",
"MonitorPlan",
"NeetsVoice",
"NeetsVoiceVoiceId",
"NeetsVoiceId",
"NeetsVoiceIdEnum",
"OpenAiCredential",
"OpenAiFunction",
"OpenAiFunctionParameters",
Expand All @@ -769,7 +781,7 @@
"OpenAiModelModel",
"OpenAiModelToolsItem",
"OpenAiVoice",
"OpenAiVoiceVoiceId",
"OpenAiVoiceId",
"OpenRouterCredential",
"OpenRouterModel",
"OpenRouterModelToolsItem",
Expand All @@ -784,15 +796,17 @@
"PlayHtCredential",
"PlayHtVoice",
"PlayHtVoiceEmotion",
"PlayHtVoiceVoiceId",
"PlayHtVoiceId",
"PlayHtVoiceIdEnum",
"PunctuationBoundary",
"RegexOption",
"RegexOptionType",
"RegexReplacement",
"RimeAiCredential",
"RimeAiVoice",
"RimeAiVoiceId",
"RimeAiVoiceIdEnum",
"RimeAiVoiceModel",
"RimeAiVoiceVoiceId",
"RuleBasedCondition",
"RuleBasedConditionOperator",
"RunpodCredential",
Expand Down
4 changes: 2 additions & 2 deletions src/vapi/types/azure_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import typing
from ..core.serialization import FieldMetadata
import pydantic
from .azure_voice_voice_id import AzureVoiceVoiceId
from .azure_voice_id import AzureVoiceId
from .chunk_plan import ChunkPlan
from ..core.pydantic_utilities import IS_PYDANTIC_V2

Expand All @@ -25,7 +25,7 @@ class AzureVoice(UniversalBaseModel):
This is the voice provider that will be used.
"""

voice_id: typing_extensions.Annotated[AzureVoiceVoiceId, FieldMetadata(alias="voiceId")] = pydantic.Field()
voice_id: typing_extensions.Annotated[AzureVoiceId, FieldMetadata(alias="voiceId")] = pydantic.Field()
"""
This is the provider-specific ID that will be used.
"""
Expand Down
6 changes: 6 additions & 0 deletions src/vapi/types/azure_voice_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

import typing
from .azure_voice_id_enum import AzureVoiceIdEnum

AzureVoiceId = typing.Union[AzureVoiceIdEnum, str]
5 changes: 5 additions & 0 deletions src/vapi/types/azure_voice_id_enum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

AzureVoiceIdEnum = typing.Union[typing.Literal["andrew", "brian", "emma"], typing.Any]
5 changes: 0 additions & 5 deletions src/vapi/types/azure_voice_voice_id.py

This file was deleted.

Loading

0 comments on commit 2ae8051

Please sign in to comment.