Skip to content

Commit 9c7e950

Browse files
feat: add subscriptionLimits field to Call schema
Add an optional `subscriptionLimits` property to the `Call` struct, exposing org-level subscription and concurrency limit information at the time of a call. The field is fully optional and backward-compatible. Key changes: - Add optional `subscriptionLimits: SubscriptionLimits?` property to `Call` - Update `Call` memberwise initializer with new optional parameter (defaults to nil) - Add decoding/encoding support for `subscriptionLimits` via `CodingKeys` 🌿 Generated with Fern
1 parent 9eddf93 commit 9c7e950

4 files changed

Lines changed: 15 additions & 4 deletions

File tree

.fern/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"cliVersion": "4.63.5",
2+
"cliVersion": "4.86.2",
33
"generatorName": "fernapi/fern-swift-sdk",
44
"generatorVersion": "0.31.0",
55
"generatorConfig": {
66
"clientClassName": "VapiClient",
77
"moduleName": "Vapi",
88
"environmentEnumName": "VapiEnvironment"
99
},
10-
"originGitCommit": "ecacee725cec63772e1117c532970df6fe444101",
11-
"sdkVersion": "0.0.5"
10+
"originGitCommit": "7dc5137b61f1c65ebff4ce5d2fb11de2d945a1cf",
11+
"sdkVersion": "0.1.0"
1212
}

Sources/Schemas/Call.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ public struct Call: Codable, Hashable, Sendable {
125125
public let schedulePlan: SchedulePlan?
126126
/// This is the transport of the call.
127127
public let transport: [String: JSONValue]?
128+
/// These are the subscription limits for the org at the time of the call. Includes concurrency limit information.
129+
public let subscriptionLimits: SubscriptionLimits?
128130
/// Additional properties that are not explicitly defined in the schema
129131
public let additionalProperties: [String: JSONValue]
130132

@@ -169,6 +171,7 @@ public struct Call: Codable, Hashable, Sendable {
169171
name: String? = nil,
170172
schedulePlan: SchedulePlan? = nil,
171173
transport: [String: JSONValue]? = nil,
174+
subscriptionLimits: SubscriptionLimits? = nil,
172175
additionalProperties: [String: JSONValue] = .init()
173176
) {
174177
self.type = type
@@ -211,6 +214,7 @@ public struct Call: Codable, Hashable, Sendable {
211214
self.name = name
212215
self.schedulePlan = schedulePlan
213216
self.transport = transport
217+
self.subscriptionLimits = subscriptionLimits
214218
self.additionalProperties = additionalProperties
215219
}
216220

@@ -256,6 +260,7 @@ public struct Call: Codable, Hashable, Sendable {
256260
self.name = try container.decodeIfPresent(String.self, forKey: .name)
257261
self.schedulePlan = try container.decodeIfPresent(SchedulePlan.self, forKey: .schedulePlan)
258262
self.transport = try container.decodeIfPresent([String: JSONValue].self, forKey: .transport)
263+
self.subscriptionLimits = try container.decodeIfPresent(SubscriptionLimits.self, forKey: .subscriptionLimits)
259264
self.additionalProperties = try decoder.decodeAdditionalProperties(using: CodingKeys.self)
260265
}
261266

@@ -302,6 +307,7 @@ public struct Call: Codable, Hashable, Sendable {
302307
try container.encodeIfPresent(self.name, forKey: .name)
303308
try container.encodeIfPresent(self.schedulePlan, forKey: .schedulePlan)
304309
try container.encodeIfPresent(self.transport, forKey: .transport)
310+
try container.encodeIfPresent(self.subscriptionLimits, forKey: .subscriptionLimits)
305311
}
306312

307313
/// Keys for encoding/decoding struct properties.
@@ -346,5 +352,6 @@ public struct Call: Codable, Hashable, Sendable {
346352
case name
347353
case schedulePlan
348354
case transport
355+
case subscriptionLimits
349356
}
350357
}

Sources/Version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
public let sdkVersion = "0.0.5"
1+
public let sdkVersion = "0.1.0"

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.0 - 2026-04-22
2+
### Added
3+
* **`Call.subscriptionLimits`** — new optional `SubscriptionLimits?` property on `Call` that exposes org-level subscription and concurrency limit information at the time of the call.
4+
15
## 0.0.1 - 2026-04-10
26
* Initial SDK generation
37
* 🌿 Generated with Fern

0 commit comments

Comments
 (0)