Skip to content

Commit c9c04d1

Browse files
feat: add subscriptionLimits field to Call type
Add an optional `subscription_limits` field to the `Call` type that surfaces `SubscriptionLimits` data directly on call objects. This is a backward-compatible addition — existing code that does not reference this field is unaffected. Key changes: - Add optional `subscription_limits` field (mapped from `subscriptionLimits`) to `Vapi::Types::Call` - Field is typed as `Vapi::Types::SubscriptionLimits` and is nullable: false, optional: true 🌿 Generated with Fern
1 parent 75744e2 commit c9c04d1

6 files changed

Lines changed: 14 additions & 9 deletions

File tree

.fern/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"cliVersion": "4.63.5",
2+
"cliVersion": "4.86.2",
33
"generatorName": "fernapi/fern-ruby-sdk",
44
"generatorVersion": "1.1.13",
55
"generatorConfig": {
66
"clientClassName": "Vapi",
77
"rubocopVariableNumberStyle": "disabled"
88
},
9-
"originGitCommit": "ecacee725cec63772e1117c532970df6fe444101",
10-
"sdkVersion": "1.0.0"
9+
"originGitCommit": "7dc5137b61f1c65ebff4ce5d2fb11de2d945a1cf",
10+
"sdkVersion": "1.1.0"
1111
}

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
PATH
22
remote: .
33
specs:
4-
vapi_server_sdk (1.0.0)
4+
vapi_server_sdk (0.0.0.pre.fern.pre.placeholder)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
99
addressable (2.9.0)
1010
public_suffix (>= 2.0.2, < 8.0)
1111
ast (2.4.3)
12-
bigdecimal (4.1.1)
12+
bigdecimal (4.1.2)
1313
coderay (1.1.3)
1414
crack (1.0.1)
1515
bigdecimal
1616
rexml
1717
hashdiff (1.2.1)
1818
io-console (0.8.2)
19-
json (2.19.3)
19+
json (2.19.4)
2020
language_server-protocol (3.17.0.5)
2121
lint_roller (1.1.0)
2222
method_source (1.1.0)
@@ -35,7 +35,7 @@ GEM
3535
public_suffix (7.0.5)
3636
racc (1.8.1)
3737
rainbow (3.1.1)
38-
rake (13.3.1)
38+
rake (13.4.2)
3939
regexp_parser (2.12.0)
4040
reline (0.6.3)
4141
io-console (~> 0.5)

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#subscription_limits`** — new optional field exposing `SubscriptionLimits` data directly on `Call` objects.
4+
15
## 0.0.3 - 2026-04-11
26
* chore: remove User-Agent header from HTTP client
37
* Remove the hardcoded `User-Agent` header from the default headers sent

lib/vapi/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize(token:, base_url: nil)
1010
@raw_client = Vapi::Internal::Http::RawClient.new(
1111
base_url: base_url || Vapi::Environment::DEFAULT,
1212
headers: {
13-
"User-Agent" => "vapi_server_sdk/1.0.0",
13+
"User-Agent" => "vapi_server_sdk/1.1.0",
1414
"X-Fern-Language" => "Ruby",
1515
Authorization: "Bearer #{token}"
1616
}

lib/vapi/types/call.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class Call < Internal::Types::Model
4343
field :name, -> { String }, optional: true, nullable: false
4444
field :schedule_plan, -> { Vapi::Types::SchedulePlan }, optional: true, nullable: false, api_name: "schedulePlan"
4545
field :transport, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
46+
field :subscription_limits, -> { Vapi::Types::SubscriptionLimits }, optional: true, nullable: false, api_name: "subscriptionLimits"
4647
end
4748
end
4849
end

lib/vapi/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Vapi
4-
VERSION = "1.0.0"
4+
VERSION = "1.1.0"
55
end

0 commit comments

Comments
 (0)