Skip to content

Commit 93c4937

Browse files
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.3.3
1 parent 01ebf69 commit 93c4937

114 files changed

Lines changed: 1572 additions & 440 deletions

File tree

Some content is hidden

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

‎.fern/metadata.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "5.112.0",
2+
"cliVersion": "5.160.0",
33
"generatorName": "fernapi/fern-python-sdk",
44
"generatorVersion": "5.3.3",
55
"generatorConfig": {
@@ -8,6 +8,6 @@
88
},
99
"client_class_name": "Vapi"
1010
},
11-
"originGitCommit": "406e7e1ea2bdeb0ebcd01252883626f9a240ecf3",
12-
"sdkVersion": "3.0.0"
11+
"originGitCommit": "9c2d4590896be80f2c5e182c1972bcad068fc381",
12+
"sdkVersion": "0.0.0.dev0"
1313
}

‎poetry.lock‎

Lines changed: 339 additions & 343 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "vapi_server_sdk"
7-
version = "3.0.0"
7+
version = "0.0.0.dev0"
88
description = ""
99
readme = "README.md"
1010
authors = []
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.12",
2020
"Programming Language :: Python :: 3.13",
2121
"Programming Language :: Python :: 3.14",
22+
"Programming Language :: Python :: 3.15",
2223
"Operating System :: OS Independent",
2324
"Operating System :: POSIX",
2425
"Operating System :: MacOS",

‎reference.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7643,7 +7643,8 @@ The result depends on the schema type:
76437643
This is the model that will be used to extract the structured output.
76447644

76457645
To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages.
7646-
Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history.
7646+
For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history.
7647+
In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data.
76477648
Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition.
76487649
i.e.:
76497650
`{{structuredOutput}}`
@@ -9140,6 +9141,14 @@ client.simulation_runs.simulation_run_controller_create(
91409141
<dl>
91419142
<dd>
91429143

9144+
**idempotency_key:** `typing.Optional[str]` — Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists.
9145+
9146+
</dd>
9147+
</dl>
9148+
9149+
<dl>
9150+
<dd>
9151+
91439152
**iterations:** `typing.Optional[float]` — Number of times to run each simulation (default: 1)
91449153

91459154
</dd>

‎src/vapi/__init__.py‎

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
AnthropicBedrockModel,
3232
AnthropicBedrockModelFallbackModelsItem,
3333
AnthropicBedrockModelModel,
34+
AnthropicBedrockModelReasoningEffort,
3435
AnthropicBedrockModelToolsItem,
3536
AnthropicBedrockModelToolsItem_ApiRequest,
3637
AnthropicBedrockModelToolsItem_Bash,
@@ -59,6 +60,7 @@
5960
AnthropicCredentialProvider,
6061
AnthropicModel,
6162
AnthropicModelModel,
63+
AnthropicModelReasoningEffort,
6264
AnthropicModelToolsItem,
6365
AnthropicModelToolsItem_ApiRequest,
6466
AnthropicModelToolsItem_Bash,
@@ -323,6 +325,9 @@
323325
AssistantHookCallEnding,
324326
AssistantHookCustomerSpeechInterrupted,
325327
AssistantHooksItem,
328+
AssistantManagedConflictResponseDto,
329+
AssistantManagedConflictResponseDtoError,
330+
AssistantManagedVapiAgentsDto,
326331
AssistantMessage,
327332
AssistantMessageEvaluationContinuePlan,
328333
AssistantMessageJudgePlanAi,
@@ -500,7 +505,6 @@
500505
AssistantOverridesVoicemailDetectionZero,
501506
AssistantPaginatedResponse,
502507
AssistantPinnedConflictResponseDto,
503-
AssistantPinnedConflictResponseDtoError,
504508
AssistantServerMessagesItem,
505509
AssistantSpeechWordAlignmentTiming,
506510
AssistantSpeechWordProgressTiming,
@@ -2876,6 +2880,7 @@
28762880
MistralCredential,
28772881
MistralCredentialProvider,
28782882
ModelCost,
2883+
ModelCostServiceTierBreakdown,
28792884
ModelDeprecationNotice,
28802885
ModelDeprecationNoticeReplacementStatus,
28812886
Monitor,
@@ -3943,7 +3948,6 @@
39433948
TrafficAllocationLatestResponseDto,
39443949
TrafficAllocationPaginatedResponse,
39453950
TrafficAllocationStaleConflictResponseDto,
3946-
TrafficAllocationStaleConflictResponseDtoError,
39473951
TrafficAllocationTarget,
39483952
TrafficAllocationVersionConflictResponseDto,
39493953
TrafficAllocationVersionConflictResponseDtoError,
@@ -4731,10 +4735,12 @@
47314735
UpdateWorkflowDtoVoicemailDetectionZero,
47324736
UpdateXAiCredentialDto,
47334737
UpdateXAiCredentialDtoProvider,
4734-
User,
47354738
UserMessage,
47364739
UserMessageConfidenceSource,
47374740
UserMessageMetadata,
4741+
UserWithRole,
4742+
UserWithRoleRole,
4743+
UserWithRoleRoleZero,
47384744
VapiCost,
47394745
VapiCostSubType,
47404746
VapiModel,
@@ -5687,6 +5693,7 @@
56875693
"AnthropicBedrockModel": ".types",
56885694
"AnthropicBedrockModelFallbackModelsItem": ".types",
56895695
"AnthropicBedrockModelModel": ".types",
5696+
"AnthropicBedrockModelReasoningEffort": ".types",
56905697
"AnthropicBedrockModelToolsItem": ".types",
56915698
"AnthropicBedrockModelToolsItem_ApiRequest": ".types",
56925699
"AnthropicBedrockModelToolsItem_Bash": ".types",
@@ -5715,6 +5722,7 @@
57155722
"AnthropicCredentialProvider": ".types",
57165723
"AnthropicModel": ".types",
57175724
"AnthropicModelModel": ".types",
5725+
"AnthropicModelReasoningEffort": ".types",
57185726
"AnthropicModelToolsItem": ".types",
57195727
"AnthropicModelToolsItem_ApiRequest": ".types",
57205728
"AnthropicModelToolsItem_Bash": ".types",
@@ -5979,6 +5987,9 @@
59795987
"AssistantHookCallEnding": ".types",
59805988
"AssistantHookCustomerSpeechInterrupted": ".types",
59815989
"AssistantHooksItem": ".types",
5990+
"AssistantManagedConflictResponseDto": ".types",
5991+
"AssistantManagedConflictResponseDtoError": ".types",
5992+
"AssistantManagedVapiAgentsDto": ".types",
59825993
"AssistantMessage": ".types",
59835994
"AssistantMessageEvaluationContinuePlan": ".types",
59845995
"AssistantMessageJudgePlanAi": ".types",
@@ -6156,7 +6167,6 @@
61566167
"AssistantOverridesVoicemailDetectionZero": ".types",
61576168
"AssistantPaginatedResponse": ".types",
61586169
"AssistantPinnedConflictResponseDto": ".types",
6159-
"AssistantPinnedConflictResponseDtoError": ".types",
61606170
"AssistantServerMessagesItem": ".types",
61616171
"AssistantSpeechWordAlignmentTiming": ".types",
61626172
"AssistantSpeechWordProgressTiming": ".types",
@@ -8780,6 +8790,7 @@
87808790
"MistralCredential": ".types",
87818791
"MistralCredentialProvider": ".types",
87828792
"ModelCost": ".types",
8793+
"ModelCostServiceTierBreakdown": ".types",
87838794
"ModelDeprecationNotice": ".types",
87848795
"ModelDeprecationNoticeReplacementStatus": ".types",
87858796
"Monitor": ".types",
@@ -9890,7 +9901,6 @@
98909901
"TrafficAllocationLatestResponseDto": ".types",
98919902
"TrafficAllocationPaginatedResponse": ".types",
98929903
"TrafficAllocationStaleConflictResponseDto": ".types",
9893-
"TrafficAllocationStaleConflictResponseDtoError": ".types",
98949904
"TrafficAllocationTarget": ".types",
98959905
"TrafficAllocationVersionConflictResponseDto": ".types",
98969906
"TrafficAllocationVersionConflictResponseDtoError": ".types",
@@ -10881,10 +10891,12 @@
1088110891
"UpdateWorkflowDtoVoicemailDetectionZero": ".types",
1088210892
"UpdateXAiCredentialDto": ".types",
1088310893
"UpdateXAiCredentialDtoProvider": ".types",
10884-
"User": ".types",
1088510894
"UserMessage": ".types",
1088610895
"UserMessageConfidenceSource": ".types",
1088710896
"UserMessageMetadata": ".types",
10897+
"UserWithRole": ".types",
10898+
"UserWithRoleRole": ".types",
10899+
"UserWithRoleRoleZero": ".types",
1088810900
"Vapi": ".client",
1088910901
"VapiCost": ".types",
1089010902
"VapiCostSubType": ".types",
@@ -11330,6 +11342,7 @@ def __dir__():
1133011342
"AnthropicBedrockModel",
1133111343
"AnthropicBedrockModelFallbackModelsItem",
1133211344
"AnthropicBedrockModelModel",
11345+
"AnthropicBedrockModelReasoningEffort",
1133311346
"AnthropicBedrockModelToolsItem",
1133411347
"AnthropicBedrockModelToolsItem_ApiRequest",
1133511348
"AnthropicBedrockModelToolsItem_Bash",
@@ -11358,6 +11371,7 @@ def __dir__():
1135811371
"AnthropicCredentialProvider",
1135911372
"AnthropicModel",
1136011373
"AnthropicModelModel",
11374+
"AnthropicModelReasoningEffort",
1136111375
"AnthropicModelToolsItem",
1136211376
"AnthropicModelToolsItem_ApiRequest",
1136311377
"AnthropicModelToolsItem_Bash",
@@ -11622,6 +11636,9 @@ def __dir__():
1162211636
"AssistantHookCallEnding",
1162311637
"AssistantHookCustomerSpeechInterrupted",
1162411638
"AssistantHooksItem",
11639+
"AssistantManagedConflictResponseDto",
11640+
"AssistantManagedConflictResponseDtoError",
11641+
"AssistantManagedVapiAgentsDto",
1162511642
"AssistantMessage",
1162611643
"AssistantMessageEvaluationContinuePlan",
1162711644
"AssistantMessageJudgePlanAi",
@@ -11799,7 +11816,6 @@ def __dir__():
1179911816
"AssistantOverridesVoicemailDetectionZero",
1180011817
"AssistantPaginatedResponse",
1180111818
"AssistantPinnedConflictResponseDto",
11802-
"AssistantPinnedConflictResponseDtoError",
1180311819
"AssistantServerMessagesItem",
1180411820
"AssistantSpeechWordAlignmentTiming",
1180511821
"AssistantSpeechWordProgressTiming",
@@ -14423,6 +14439,7 @@ def __dir__():
1442314439
"MistralCredential",
1442414440
"MistralCredentialProvider",
1442514441
"ModelCost",
14442+
"ModelCostServiceTierBreakdown",
1442614443
"ModelDeprecationNotice",
1442714444
"ModelDeprecationNoticeReplacementStatus",
1442814445
"Monitor",
@@ -15533,7 +15550,6 @@ def __dir__():
1553315550
"TrafficAllocationLatestResponseDto",
1553415551
"TrafficAllocationPaginatedResponse",
1553515552
"TrafficAllocationStaleConflictResponseDto",
15536-
"TrafficAllocationStaleConflictResponseDtoError",
1553715553
"TrafficAllocationTarget",
1553815554
"TrafficAllocationVersionConflictResponseDto",
1553915555
"TrafficAllocationVersionConflictResponseDtoError",
@@ -16524,10 +16540,12 @@ def __dir__():
1652416540
"UpdateWorkflowDtoVoicemailDetectionZero",
1652516541
"UpdateXAiCredentialDto",
1652616542
"UpdateXAiCredentialDtoProvider",
16527-
"User",
1652816543
"UserMessage",
1652916544
"UserMessageConfidenceSource",
1653016545
"UserMessageMetadata",
16546+
"UserWithRole",
16547+
"UserWithRoleRole",
16548+
"UserWithRoleRoleZero",
1653116549
"Vapi",
1653216550
"VapiCost",
1653316551
"VapiCostSubType",

‎src/vapi/assistants/raw_client.py‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,17 @@ def update(
877877
),
878878
)
879879
return HttpResponse(response=_response, data=_data)
880+
if _response.status_code == 409:
881+
raise ConflictError(
882+
headers=dict(_response.headers),
883+
body=typing.cast(
884+
typing.Any,
885+
construct_type(
886+
type_=typing.Any, # type: ignore
887+
object_=_response.json(),
888+
),
889+
),
890+
)
880891
_response_json = _response.json()
881892
except JSONDecodeError:
882893
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
@@ -1715,6 +1726,17 @@ async def update(
17151726
),
17161727
)
17171728
return AsyncHttpResponse(response=_response, data=_data)
1729+
if _response.status_code == 409:
1730+
raise ConflictError(
1731+
headers=dict(_response.headers),
1732+
body=typing.cast(
1733+
typing.Any,
1734+
construct_type(
1735+
type_=typing.Any, # type: ignore
1736+
object_=_response.json(),
1737+
),
1738+
),
1739+
)
17181740
_response_json = _response.json()
17191741
except JSONDecodeError:
17201742
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)

‎src/vapi/assistants/types/update_assistant_dto_model.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
from ...core.unchecked_base_model import UncheckedBaseModel, UnionMetadata
1212
from ...types.anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem
1313
from ...types.anthropic_bedrock_model_model import AnthropicBedrockModelModel
14+
from ...types.anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort
1415
from ...types.anthropic_model_model import AnthropicModelModel
16+
from ...types.anthropic_model_reasoning_effort import AnthropicModelReasoningEffort
1517
from ...types.anthropic_thinking_config import AnthropicThinkingConfig
1618
from ...types.cerebras_model_model import CerebrasModelModel
1719
from ...types.create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto
@@ -56,6 +58,11 @@ class UpdateAssistantDtoModel_Anthropic(UncheckedBaseModel):
5658
pydantic.Field(alias="knowledgeBase"),
5759
] = None
5860
model: AnthropicModelModel
61+
reasoning_effort: typing_extensions.Annotated[
62+
typing.Optional[AnthropicModelReasoningEffort],
63+
FieldMetadata(alias="reasoningEffort"),
64+
pydantic.Field(alias="reasoningEffort"),
65+
] = None
5966
thinking: typing.Optional[AnthropicThinkingConfig] = None
6067
temperature: typing.Optional[float] = None
6168
max_tokens: typing_extensions.Annotated[
@@ -105,6 +112,11 @@ class UpdateAssistantDtoModel_AnthropicBedrock(UncheckedBaseModel):
105112
FieldMetadata(alias="fallbackModels"),
106113
pydantic.Field(alias="fallbackModels"),
107114
] = None
115+
reasoning_effort: typing_extensions.Annotated[
116+
typing.Optional[AnthropicBedrockModelReasoningEffort],
117+
FieldMetadata(alias="reasoningEffort"),
118+
pydantic.Field(alias="reasoningEffort"),
119+
] = None
108120
thinking: typing.Optional[AnthropicThinkingConfig] = None
109121
temperature: typing.Optional[float] = None
110122
max_tokens: typing_extensions.Annotated[

‎src/vapi/core/client_wrapper.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2727
import platform
2828

2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "vapi_server_sdk/3.0.0",
30+
"User-Agent": "vapi_server_sdk/0.0.0-fern-placeholder",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-Runtime": f"python/{platform.python_version()}",
3333
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3434
"X-Fern-SDK-Name": "vapi_server_sdk",
35-
"X-Fern-SDK-Version": "3.0.0",
35+
"X-Fern-SDK-Version": "0.0.0.dev0",
3636
**(self.get_custom_headers() or {}),
3737
}
3838
headers["Authorization"] = f"Bearer {self._get_token()}"

‎src/vapi/simulation_runs/client.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def simulation_run_controller_create(
164164
*,
165165
simulations: typing.Sequence[CreateSimulationRunDtoSimulationsItem],
166166
target: CreateSimulationRunDtoTarget,
167+
idempotency_key: typing.Optional[str] = None,
167168
iterations: typing.Optional[float] = OMIT,
168169
transport: typing.Optional[SimulationRunTransportConfiguration] = OMIT,
169170
request_options: typing.Optional[RequestOptions] = None,
@@ -179,6 +180,9 @@ def simulation_run_controller_create(
179180
target : CreateSimulationRunDtoTarget
180181
Target to test against
181182
183+
idempotency_key : typing.Optional[str]
184+
Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists.
185+
182186
iterations : typing.Optional[float]
183187
Number of times to run each simulation (default: 1)
184188
@@ -212,6 +216,7 @@ def simulation_run_controller_create(
212216
_response = self._raw_client.simulation_run_controller_create(
213217
simulations=simulations,
214218
target=target,
219+
idempotency_key=idempotency_key,
215220
iterations=iterations,
216221
transport=transport,
217222
request_options=request_options,
@@ -663,6 +668,7 @@ async def simulation_run_controller_create(
663668
*,
664669
simulations: typing.Sequence[CreateSimulationRunDtoSimulationsItem],
665670
target: CreateSimulationRunDtoTarget,
671+
idempotency_key: typing.Optional[str] = None,
666672
iterations: typing.Optional[float] = OMIT,
667673
transport: typing.Optional[SimulationRunTransportConfiguration] = OMIT,
668674
request_options: typing.Optional[RequestOptions] = None,
@@ -678,6 +684,9 @@ async def simulation_run_controller_create(
678684
target : CreateSimulationRunDtoTarget
679685
Target to test against
680686
687+
idempotency_key : typing.Optional[str]
688+
Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists.
689+
681690
iterations : typing.Optional[float]
682691
Number of times to run each simulation (default: 1)
683692
@@ -719,6 +728,7 @@ async def main() -> None:
719728
_response = await self._raw_client.simulation_run_controller_create(
720729
simulations=simulations,
721730
target=target,
731+
idempotency_key=idempotency_key,
722732
iterations=iterations,
723733
transport=transport,
724734
request_options=request_options,

0 commit comments

Comments
 (0)