Skip to content

Commit 72303d1

Browse files
feat: add subscription_limits field to Call type
Add an optional `subscription_limits` field to the `Call` model that exposes org-level subscription limits (including concurrency limit information) at the time of a call. This surfaces a new `SubscriptionLimits` type and wires it as an aliased optional field on `Call`. Key changes: - Add `SubscriptionLimits` import to `call.py` - Add optional `subscription_limits` field (aliased as `subscriptionLimits`) to the `Call` model - Field defaults to `None` and includes description of concurrency limit context 🌿 Generated with Fern
1 parent 6779b2c commit 72303d1

6 files changed

Lines changed: 30 additions & 16 deletions

File tree

.fern/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "4.65.1",
2+
"cliVersion": "4.86.2",
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": "46b109d88752307f8952db91eaa642f61c3875b4",
12-
"sdkVersion": "1.10.0"
11+
"originGitCommit": "7dc5137b61f1c65ebff4ce5d2fb11de2d945a1cf",
12+
"sdkVersion": "1.11.0"
1313
}

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.11.0 - 2026-04-22
2+
### Added
3+
* **`Call.subscription_limits`** — new optional field that exposes the org's `SubscriptionLimits` (including concurrency limit information) at the time of a call.
4+
15
## 1.10.0 - 2026-04-10
26
* The SDK now supports `aiohttp` as an optional async HTTP transport backend. Install the new extra (`pip install vapi_server_sdk[aiohttp]`) to have `AsyncVapi` automatically use `httpx-aiohttp` under the hood. Two new convenience classes, `DefaultAioHttpClient` and `DefaultAsyncHttpxClient`, are also now available for users who want to configure the async HTTP client explicitly.
37

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 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 = "1.10.0"
7+
version = "1.11.0"
88
description = ""
99
readme = "README.md"
1010
authors = []

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/1.10.0",
30+
"User-Agent": "vapi_server_sdk/1.11.0",
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": "1.10.0",
35+
"X-Fern-SDK-Version": "1.11.0",
3636
**(self.get_custom_headers() or {}),
3737
}
3838
headers["Authorization"] = f"Bearer {self._get_token()}"

src/vapi/types/call.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from .import_twilio_phone_number_dto import ImportTwilioPhoneNumberDto
2929
from .monitor import Monitor
3030
from .schedule_plan import SchedulePlan
31+
from .subscription_limits import SubscriptionLimits
3132
from .workflow_overrides import WorkflowOverrides
3233

3334

@@ -297,6 +298,15 @@ class Call(UncheckedBaseModel):
297298
This is the transport of the call.
298299
"""
299300

301+
subscription_limits: typing_extensions.Annotated[
302+
typing.Optional[SubscriptionLimits],
303+
FieldMetadata(alias="subscriptionLimits"),
304+
pydantic.Field(
305+
alias="subscriptionLimits",
306+
description="These are the subscription limits for the org at the time of the call. Includes concurrency limit information.",
307+
),
308+
] = None
309+
300310
if IS_PYDANTIC_V2:
301311
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
302312
else:

0 commit comments

Comments
 (0)