Skip to content

Commit b5eb4c8

Browse files
feat: add subscriptionLimits field to Call type
Add an optional `subscriptionLimits` property to the `Call` class that exposes the organization's subscription limits (including concurrency limit information) at the time of the call. Key changes: - Add `?SubscriptionLimits $subscriptionLimits` property to `Call` - Add `subscriptionLimits` as an optional constructor parameter - Deserialize `subscriptionLimits` from the `subscriptionLimits` JSON property 🌿 Generated with Fern
1 parent 225102d commit b5eb4c8

5 files changed

Lines changed: 22 additions & 6 deletions

File tree

.fern/metadata.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"cliVersion": "4.65.1",
2+
"cliVersion": "4.86.2",
33
"generatorName": "fernapi/fern-php-sdk",
44
"generatorVersion": "2.4.0",
55
"generatorConfig": {
66
"namespace": "Vapi",
77
"client-class-name": "VapiClient"
88
},
9-
"originGitCommit": "46b109d88752307f8952db91eaa642f61c3875b4",
10-
"sdkVersion": "1.0.1"
9+
"originGitCommit": "7dc5137b61f1c65ebff4ce5d2fb11de2d945a1cf",
10+
"originGitCommitIsDirty": true,
11+
"invokedBy": "ci",
12+
"requestedVersion": "AUTO",
13+
"ciProvider": "unknown",
14+
"sdkVersion": "1.1.0"
1115
}

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.0 - 2026-04-22
2+
### Added
3+
* **`Call::$subscriptionLimits`** — new optional `SubscriptionLimits` field on `Call` that exposes the organization's concurrency and subscription limits at the time of the call.
4+
15
## 1.0.1 - 2026-04-10
26
* style: use string interpolation in JsonException messages
37
* Replace string concatenation with double-quoted string interpolation

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vapi/vapi",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Vapi PHP Library",
55
"keywords": [
66
"vapi",

src/Types/Call.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ class Call extends JsonSerializableType
330330
#[JsonProperty('transport'), ArrayType(['string' => 'mixed'])]
331331
public ?array $transport;
332332

333+
/**
334+
* @var ?SubscriptionLimits $subscriptionLimits These are the subscription limits for the org at the time of the call. Includes concurrency limit information.
335+
*/
336+
#[JsonProperty('subscriptionLimits')]
337+
public ?SubscriptionLimits $subscriptionLimits;
338+
333339
/**
334340
* @param array{
335341
* id: string,
@@ -378,6 +384,7 @@ class Call extends JsonSerializableType
378384
* name?: ?string,
379385
* schedulePlan?: ?SchedulePlan,
380386
* transport?: ?array<string, mixed>,
387+
* subscriptionLimits?: ?SubscriptionLimits,
381388
* } $values
382389
*/
383390
public function __construct(
@@ -423,6 +430,7 @@ public function __construct(
423430
$this->name = $values['name'] ?? null;
424431
$this->schedulePlan = $values['schedulePlan'] ?? null;
425432
$this->transport = $values['transport'] ?? null;
433+
$this->subscriptionLimits = $values['subscriptionLimits'] ?? null;
426434
}
427435

428436
/**

src/VapiClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ public function __construct(
131131
'Authorization' => "Bearer $token",
132132
'X-Fern-Language' => 'PHP',
133133
'X-Fern-SDK-Name' => 'Vapi',
134-
'X-Fern-SDK-Version' => '1.0.1',
135-
'User-Agent' => 'vapi/vapi/1.0.1',
134+
'X-Fern-SDK-Version' => '1.1.0',
135+
'User-Agent' => 'vapi/vapi/1.1.0',
136136
];
137137

138138
$this->options = $options ?? [];

0 commit comments

Comments
 (0)