Skip to content

Commit 613e224

Browse files
feat!: rename CartesiaExperimentalControlsSpeedZero and FallbackAzureVoiceVoiceIdZero types
Rename two public enum types and their associated enum cases to use more consistent naming conventions. These are breaking changes because existing Swift switch statements and pattern matches on the old case names will no longer compile. Key changes: - Remove `CartesiaExperimentalControlsSpeedZero` and replace with `CartesiaSpeedControlZero` - Rename `CartesiaSpeedControl.cartesiaExperimentalControlsSpeedZero` case to `.cartesiaSpeedControlZero` - Remove `FallbackAzureVoiceVoiceIdZero` and replace with `FallbackAzureVoiceIdZero` - Rename `FallbackAzureVoiceId.fallbackAzureVoiceVoiceIdZero` case to `.fallbackAzureVoiceIdZero` 🌿 Generated with Fern
1 parent 9c7e950 commit 613e224

9 files changed

Lines changed: 33 additions & 28 deletions

.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.86.2",
2+
"cliVersion": "5.51.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": "7dc5137b61f1c65ebff4ce5d2fb11de2d945a1cf",
11-
"sdkVersion": "0.1.0"
10+
"originGitCommit": "5a015aa01196915bea6110904c69d5804f457ff5",
11+
"sdkVersion": "1.0.0"
1212
}

Sources/Schemas/CartesiaExperimentalControlsSpeedZero.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

Sources/Schemas/CartesiaSpeedControl.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import Foundation
22

33
public enum CartesiaSpeedControl: Codable, Hashable, Sendable {
4-
case cartesiaExperimentalControlsSpeedZero(CartesiaExperimentalControlsSpeedZero)
4+
case cartesiaSpeedControlZero(CartesiaSpeedControlZero)
55
case double(Double)
66

77
public init(from decoder: Decoder) throws {
88
let container = try decoder.singleValueContainer()
9-
if let value = try? container.decode(CartesiaExperimentalControlsSpeedZero.self) {
10-
self = .cartesiaExperimentalControlsSpeedZero(value)
9+
if let value = try? container.decode(CartesiaSpeedControlZero.self) {
10+
self = .cartesiaSpeedControlZero(value)
1111
} else if let value = try? container.decode(Double.self) {
1212
self = .double(value)
1313
} else {
@@ -21,7 +21,7 @@ public enum CartesiaSpeedControl: Codable, Hashable, Sendable {
2121
public func encode(to encoder: Encoder) throws -> Void {
2222
var container = encoder.singleValueContainer()
2323
switch self {
24-
case .cartesiaExperimentalControlsSpeedZero(let value):
24+
case .cartesiaSpeedControlZero(let value):
2525
try container.encode(value)
2626
case .double(let value):
2727
try container.encode(value)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import Foundation
2+
3+
public enum CartesiaSpeedControlZero: String, Codable, Hashable, CaseIterable, Sendable {
4+
case slowest
5+
case slow
6+
case normal
7+
case fast
8+
case fastest
9+
}

Sources/Schemas/FallbackAzureVoiceId.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import Foundation
22

33
/// This is the provider-specific ID that will be used.
44
public enum FallbackAzureVoiceId: Codable, Hashable, Sendable {
5-
case fallbackAzureVoiceVoiceIdZero(FallbackAzureVoiceVoiceIdZero)
5+
case fallbackAzureVoiceIdZero(FallbackAzureVoiceIdZero)
66
case string(String)
77

88
public init(from decoder: Decoder) throws {
99
let container = try decoder.singleValueContainer()
10-
if let value = try? container.decode(FallbackAzureVoiceVoiceIdZero.self) {
11-
self = .fallbackAzureVoiceVoiceIdZero(value)
10+
if let value = try? container.decode(FallbackAzureVoiceIdZero.self) {
11+
self = .fallbackAzureVoiceIdZero(value)
1212
} else if let value = try? container.decode(String.self) {
1313
self = .string(value)
1414
} else {
@@ -22,7 +22,7 @@ public enum FallbackAzureVoiceId: Codable, Hashable, Sendable {
2222
public func encode(to encoder: Encoder) throws -> Void {
2323
var container = encoder.singleValueContainer()
2424
switch self {
25-
case .fallbackAzureVoiceVoiceIdZero(let value):
25+
case .fallbackAzureVoiceIdZero(let value):
2626
try container.encode(value)
2727
case .string(let value):
2828
try container.encode(value)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Foundation
2+
3+
public enum FallbackAzureVoiceIdZero: String, Codable, Hashable, CaseIterable, Sendable {
4+
case andrew
5+
case brian
6+
case emma
7+
}

Sources/Schemas/FallbackAzureVoiceVoiceIdZero.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

Sources/Version.swift

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

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.0.0 - 2026-06-24
2+
### Breaking Changes
3+
* **`CartesiaExperimentalControlsSpeedZero`** has been removed and replaced by **`CartesiaSpeedControlZero`**. Update any references to this type and rename pattern matches on `CartesiaSpeedControl.cartesiaExperimentalControlsSpeedZero` to `.cartesiaSpeedControlZero`.
4+
* **`FallbackAzureVoiceVoiceIdZero`** has been removed and replaced by **`FallbackAzureVoiceIdZero`**. Update any references to this type and rename pattern matches on `FallbackAzureVoiceId.fallbackAzureVoiceVoiceIdZero` to `.fallbackAzureVoiceIdZero`.
5+
16
## 0.1.0 - 2026-04-22
27
### Added
38
* **`Call.subscriptionLimits`** — new optional `SubscriptionLimits?` property on `Call` that exposes org-level subscription and concurrency limit information at the time of the call.

0 commit comments

Comments
 (0)