Skip to content

Commit 5e755ba

Browse files
feat!: rename CartesiaExperimentalControlsSpeedZero and FallbackAzureVoiceVoiceIdZero enums
Two public enum classes have been renamed for consistency. Existing code referencing the old names will fail with a class-not-found error and must be updated to use the new names. Key changes: - Rename `CartesiaExperimentalControlsSpeedZero` → `CartesiaSpeedControlZero` - Rename `FallbackAzureVoiceVoiceIdZero` → `FallbackAzureVoiceIdZero` - Update PHPDoc annotations in `CartesiaExperimentalControls` and `FallbackAzureVoice` to reference the new enum names 🌿 Generated with Fern
1 parent b5eb4c8 commit 5e755ba

8 files changed

Lines changed: 17 additions & 12 deletions

.fern/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"cliVersion": "4.86.2",
2+
"cliVersion": "5.51.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": "7dc5137b61f1c65ebff4ce5d2fb11de2d945a1cf",
9+
"originGitCommit": "5a015aa01196915bea6110904c69d5804f457ff5",
1010
"originGitCommitIsDirty": true,
1111
"invokedBy": "ci",
1212
"requestedVersion": "AUTO",
1313
"ciProvider": "unknown",
14-
"sdkVersion": "1.1.0"
14+
"sdkVersion": "2.0.0"
1515
}

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.0.0 - 2026-06-24
2+
### Breaking Changes
3+
* **`CartesiaExperimentalControlsSpeedZero`** has been renamed to `CartesiaSpeedControlZero`. Update any references to this enum in your code to use the new name.
4+
* **`FallbackAzureVoiceVoiceIdZero`** has been renamed to `FallbackAzureVoiceIdZero`. Update any references to this enum in your code to use the new name.
5+
16
## 1.1.0 - 2026-04-22
27
### Added
38
* **`Call::$subscriptionLimits`** — new optional `SubscriptionLimits` field on `Call` that exposes the organization's concurrency and subscription limits at the time of the call.

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.1.0",
3+
"version": "2.0.0",
44
"description": "Vapi PHP Library",
55
"keywords": [
66
"vapi",

src/Types/CartesiaExperimentalControls.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CartesiaExperimentalControls extends JsonSerializableType
1010
{
1111
/**
1212
* @var (
13-
* value-of<CartesiaExperimentalControlsSpeedZero>
13+
* value-of<CartesiaSpeedControlZero>
1414
* |float
1515
* )|null $speed
1616
*/
@@ -26,7 +26,7 @@ class CartesiaExperimentalControls extends JsonSerializableType
2626
/**
2727
* @param array{
2828
* speed?: (
29-
* value-of<CartesiaExperimentalControlsSpeedZero>
29+
* value-of<CartesiaSpeedControlZero>
3030
* |float
3131
* )|null,
3232
* emotion?: ?value-of<CartesiaExperimentalControlsEmotion>,

src/Types/CartesiaExperimentalControlsSpeedZero.php renamed to src/Types/CartesiaSpeedControlZero.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Vapi\Types;
44

5-
enum CartesiaExperimentalControlsSpeedZero: string
5+
enum CartesiaSpeedControlZero: string
66
{
77
case Slowest = "slowest";
88
case Slow = "slow";

src/Types/FallbackAzureVoice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FallbackAzureVoice extends JsonSerializableType
1515

1616
/**
1717
* @var (
18-
* value-of<FallbackAzureVoiceVoiceIdZero>
18+
* value-of<FallbackAzureVoiceIdZero>
1919
* |string
2020
* ) $voiceId This is the provider-specific ID that will be used.
2121
*/
@@ -43,7 +43,7 @@ class FallbackAzureVoice extends JsonSerializableType
4343
/**
4444
* @param array{
4545
* voiceId: (
46-
* value-of<FallbackAzureVoiceVoiceIdZero>
46+
* value-of<FallbackAzureVoiceIdZero>
4747
* |string
4848
* ),
4949
* cachingEnabled?: ?bool,

src/Types/FallbackAzureVoiceVoiceIdZero.php renamed to src/Types/FallbackAzureVoiceIdZero.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Vapi\Types;
44

5-
enum FallbackAzureVoiceVoiceIdZero: string
5+
enum FallbackAzureVoiceIdZero: string
66
{
77
case Andrew = "andrew";
88
case Brian = "brian";

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.1.0',
135-
'User-Agent' => 'vapi/vapi/1.1.0',
134+
'X-Fern-SDK-Version' => '2.0.0',
135+
'User-Agent' => 'vapi/vapi/2.0.0',
136136
];
137137

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

0 commit comments

Comments
 (0)