diff --git a/src/Types/AnthropicCredential.php b/src/Types/AnthropicCredential.php index 05584f81..31bf0871 100644 --- a/src/Types/AnthropicCredential.php +++ b/src/Types/AnthropicCredential.php @@ -16,10 +16,10 @@ class AnthropicCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class AnthropicCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/AnyscaleCredential.php b/src/Types/AnyscaleCredential.php index ba7e2cfa..e189fd35 100644 --- a/src/Types/AnyscaleCredential.php +++ b/src/Types/AnyscaleCredential.php @@ -16,10 +16,10 @@ class AnyscaleCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class AnyscaleCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/AssemblyAiCredential.php b/src/Types/AssemblyAiCredential.php index 0e65d455..86449a6e 100644 --- a/src/Types/AssemblyAiCredential.php +++ b/src/Types/AssemblyAiCredential.php @@ -16,10 +16,10 @@ class AssemblyAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class AssemblyAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/AwsiamCredentialsAuthenticationPlan.php b/src/Types/AwsiamCredentialsAuthenticationPlan.php index 8414b000..fae71c98 100644 --- a/src/Types/AwsiamCredentialsAuthenticationPlan.php +++ b/src/Types/AwsiamCredentialsAuthenticationPlan.php @@ -14,22 +14,22 @@ class AwsiamCredentialsAuthenticationPlan extends JsonSerializableType public string $awsAccessKeyId; /** - * @var string $awsSecretAccessKey AWS Secret Access Key. This is not returned in the API. + * @var ?string $awsSecretAccessKey AWS Secret Access Key. This is not returned in the API. */ #[JsonProperty('awsSecretAccessKey')] - public string $awsSecretAccessKey; + public ?string $awsSecretAccessKey; /** * @param array{ * awsAccessKeyId: string, - * awsSecretAccessKey: string, + * awsSecretAccessKey?: ?string, * } $values */ public function __construct( array $values, ) { $this->awsAccessKeyId = $values['awsAccessKeyId']; - $this->awsSecretAccessKey = $values['awsSecretAccessKey']; + $this->awsSecretAccessKey = $values['awsSecretAccessKey'] ?? null; } /** diff --git a/src/Types/BearerAuthenticationPlan.php b/src/Types/BearerAuthenticationPlan.php index 4bb58c5c..e49c98b8 100644 --- a/src/Types/BearerAuthenticationPlan.php +++ b/src/Types/BearerAuthenticationPlan.php @@ -8,10 +8,10 @@ class BearerAuthenticationPlan extends JsonSerializableType { /** - * @var string $token This is the bearer token value. + * @var ?string $token This is the bearer token value. */ #[JsonProperty('token')] - public string $token; + public ?string $token; /** * @var ?string $headerName This is the header name where the bearer token will be sent. Defaults to 'Authorization'. @@ -27,7 +27,7 @@ class BearerAuthenticationPlan extends JsonSerializableType /** * @param array{ - * token: string, + * token?: ?string, * headerName?: ?string, * bearerPrefixEnabled?: ?bool, * } $values @@ -35,7 +35,7 @@ class BearerAuthenticationPlan extends JsonSerializableType public function __construct( array $values, ) { - $this->token = $values['token']; + $this->token = $values['token'] ?? null; $this->headerName = $values['headerName'] ?? null; $this->bearerPrefixEnabled = $values['bearerPrefixEnabled'] ?? null; } diff --git a/src/Types/ByoPhoneNumber.php b/src/Types/ByoPhoneNumber.php index f35fc44a..0dac7772 100644 --- a/src/Types/ByoPhoneNumber.php +++ b/src/Types/ByoPhoneNumber.php @@ -136,10 +136,10 @@ class ByoPhoneNumber extends JsonSerializableType * * You can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId. * - * @var string $credentialId + * @var ?string $credentialId */ #[JsonProperty('credentialId')] - public string $credentialId; + public ?string $credentialId; /** * @param array{ @@ -147,7 +147,7 @@ class ByoPhoneNumber extends JsonSerializableType * orgId: string, * createdAt: DateTime, * updatedAt: DateTime, - * credentialId: string, + * credentialId?: ?string, * fallbackDestination?: ?ByoPhoneNumberFallbackDestination, * hooks?: ?array, * numberE164CheckEnabled?: ?bool, @@ -177,7 +177,7 @@ public function __construct( $this->squadId = $values['squadId'] ?? null; $this->server = $values['server'] ?? null; $this->number = $values['number'] ?? null; - $this->credentialId = $values['credentialId']; + $this->credentialId = $values['credentialId'] ?? null; } /** diff --git a/src/Types/CartesiaCredential.php b/src/Types/CartesiaCredential.php index 6c34e406..02f231f8 100644 --- a/src/Types/CartesiaCredential.php +++ b/src/Types/CartesiaCredential.php @@ -16,10 +16,10 @@ class CartesiaCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class CartesiaCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/CerebrasCredential.php b/src/Types/CerebrasCredential.php index d8cccfad..f3d6a7df 100644 --- a/src/Types/CerebrasCredential.php +++ b/src/Types/CerebrasCredential.php @@ -16,10 +16,10 @@ class CerebrasCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class CerebrasCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/CreateAnthropicCredentialDto.php b/src/Types/CreateAnthropicCredentialDto.php index 42a243ba..d1aefa6c 100644 --- a/src/Types/CreateAnthropicCredentialDto.php +++ b/src/Types/CreateAnthropicCredentialDto.php @@ -8,10 +8,10 @@ class CreateAnthropicCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateAnthropicCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateAnyscaleCredentialDto.php b/src/Types/CreateAnyscaleCredentialDto.php index 12e880f6..2ecda7ae 100644 --- a/src/Types/CreateAnyscaleCredentialDto.php +++ b/src/Types/CreateAnyscaleCredentialDto.php @@ -8,10 +8,10 @@ class CreateAnyscaleCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateAnyscaleCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateAssemblyAiCredentialDto.php b/src/Types/CreateAssemblyAiCredentialDto.php index 9d1d1fa5..b82e92d4 100644 --- a/src/Types/CreateAssemblyAiCredentialDto.php +++ b/src/Types/CreateAssemblyAiCredentialDto.php @@ -8,10 +8,10 @@ class CreateAssemblyAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateAssemblyAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateByoPhoneNumberDto.php b/src/Types/CreateByoPhoneNumberDto.php index 7fbd96e7..5cdb7f84 100644 --- a/src/Types/CreateByoPhoneNumberDto.php +++ b/src/Types/CreateByoPhoneNumberDto.php @@ -54,10 +54,10 @@ class CreateByoPhoneNumberDto extends JsonSerializableType * * You can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId. * - * @var string $credentialId + * @var ?string $credentialId */ #[JsonProperty('credentialId')] - public string $credentialId; + public ?string $credentialId; /** * @var ?string $name This is the name of the phone number. This is just for your own reference. @@ -111,7 +111,7 @@ class CreateByoPhoneNumberDto extends JsonSerializableType /** * @param array{ - * credentialId: string, + * credentialId?: ?string, * fallbackDestination?: ?CreateByoPhoneNumberDtoFallbackDestination, * hooks?: ?array, * numberE164CheckEnabled?: ?bool, @@ -130,7 +130,7 @@ public function __construct( $this->hooks = $values['hooks'] ?? null; $this->numberE164CheckEnabled = $values['numberE164CheckEnabled'] ?? null; $this->number = $values['number'] ?? null; - $this->credentialId = $values['credentialId']; + $this->credentialId = $values['credentialId'] ?? null; $this->name = $values['name'] ?? null; $this->assistantId = $values['assistantId'] ?? null; $this->workflowId = $values['workflowId'] ?? null; diff --git a/src/Types/CreateCartesiaCredentialDto.php b/src/Types/CreateCartesiaCredentialDto.php index da2e5708..e0705246 100644 --- a/src/Types/CreateCartesiaCredentialDto.php +++ b/src/Types/CreateCartesiaCredentialDto.php @@ -8,10 +8,10 @@ class CreateCartesiaCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateCartesiaCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateCerebrasCredentialDto.php b/src/Types/CreateCerebrasCredentialDto.php index 716194ae..ca8d74b3 100644 --- a/src/Types/CreateCerebrasCredentialDto.php +++ b/src/Types/CreateCerebrasCredentialDto.php @@ -8,10 +8,10 @@ class CreateCerebrasCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateCerebrasCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateCustomLlmCredentialDto.php b/src/Types/CreateCustomLlmCredentialDto.php index a41c3dbb..40215cf3 100644 --- a/src/Types/CreateCustomLlmCredentialDto.php +++ b/src/Types/CreateCustomLlmCredentialDto.php @@ -8,10 +8,10 @@ class CreateCustomLlmCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?OAuth2AuthenticationPlan $authenticationPlan This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey @@ -27,7 +27,7 @@ class CreateCustomLlmCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * authenticationPlan?: ?OAuth2AuthenticationPlan, * name?: ?string, * } $values @@ -35,7 +35,7 @@ class CreateCustomLlmCredentialDto extends JsonSerializableType public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->authenticationPlan = $values['authenticationPlan'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateDeepInfraCredentialDto.php b/src/Types/CreateDeepInfraCredentialDto.php index 9b25d01e..279bdfe0 100644 --- a/src/Types/CreateDeepInfraCredentialDto.php +++ b/src/Types/CreateDeepInfraCredentialDto.php @@ -8,10 +8,10 @@ class CreateDeepInfraCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateDeepInfraCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateDeepSeekCredentialDto.php b/src/Types/CreateDeepSeekCredentialDto.php index 9f4cd26d..07b8a036 100644 --- a/src/Types/CreateDeepSeekCredentialDto.php +++ b/src/Types/CreateDeepSeekCredentialDto.php @@ -8,10 +8,10 @@ class CreateDeepSeekCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateDeepSeekCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateDeepgramCredentialDto.php b/src/Types/CreateDeepgramCredentialDto.php index c0b3e541..7410aab7 100644 --- a/src/Types/CreateDeepgramCredentialDto.php +++ b/src/Types/CreateDeepgramCredentialDto.php @@ -8,10 +8,10 @@ class CreateDeepgramCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $apiUrl This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com. @@ -27,7 +27,7 @@ class CreateDeepgramCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * apiUrl?: ?string, * name?: ?string, * } $values @@ -35,7 +35,7 @@ class CreateDeepgramCredentialDto extends JsonSerializableType public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->apiUrl = $values['apiUrl'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateElevenLabsCredentialDto.php b/src/Types/CreateElevenLabsCredentialDto.php index 754a5bb1..17f26f2b 100644 --- a/src/Types/CreateElevenLabsCredentialDto.php +++ b/src/Types/CreateElevenLabsCredentialDto.php @@ -8,10 +8,10 @@ class CreateElevenLabsCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateElevenLabsCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateGladiaCredentialDto.php b/src/Types/CreateGladiaCredentialDto.php index 0ac748a6..a2b28bd6 100644 --- a/src/Types/CreateGladiaCredentialDto.php +++ b/src/Types/CreateGladiaCredentialDto.php @@ -8,10 +8,10 @@ class CreateGladiaCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateGladiaCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateGoHighLevelCredentialDto.php b/src/Types/CreateGoHighLevelCredentialDto.php index 8d72662c..3d1d5d56 100644 --- a/src/Types/CreateGoHighLevelCredentialDto.php +++ b/src/Types/CreateGoHighLevelCredentialDto.php @@ -8,10 +8,10 @@ class CreateGoHighLevelCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateGoHighLevelCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateGoogleCredentialDto.php b/src/Types/CreateGoogleCredentialDto.php index a2f01f57..383b2244 100644 --- a/src/Types/CreateGoogleCredentialDto.php +++ b/src/Types/CreateGoogleCredentialDto.php @@ -8,10 +8,10 @@ class CreateGoogleCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateGoogleCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateGroqCredentialDto.php b/src/Types/CreateGroqCredentialDto.php index 0bb167ec..09a1f184 100644 --- a/src/Types/CreateGroqCredentialDto.php +++ b/src/Types/CreateGroqCredentialDto.php @@ -8,10 +8,10 @@ class CreateGroqCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateGroqCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateHumeCredentialDto.php b/src/Types/CreateHumeCredentialDto.php index c0d984c1..a4b4b1ab 100644 --- a/src/Types/CreateHumeCredentialDto.php +++ b/src/Types/CreateHumeCredentialDto.php @@ -8,10 +8,10 @@ class CreateHumeCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateHumeCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateInflectionAiCredentialDto.php b/src/Types/CreateInflectionAiCredentialDto.php index 87a6083f..2f0f8ba2 100644 --- a/src/Types/CreateInflectionAiCredentialDto.php +++ b/src/Types/CreateInflectionAiCredentialDto.php @@ -8,10 +8,10 @@ class CreateInflectionAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateInflectionAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateInworldCredentialDto.php b/src/Types/CreateInworldCredentialDto.php index dc263a15..274fda72 100644 --- a/src/Types/CreateInworldCredentialDto.php +++ b/src/Types/CreateInworldCredentialDto.php @@ -8,10 +8,10 @@ class CreateInworldCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is the Inworld Basic (Base64) authentication token. This is not returned in the API. + * @var ?string $apiKey This is the Inworld Basic (Base64) authentication token. This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateInworldCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateLangfuseCredentialDto.php b/src/Types/CreateLangfuseCredentialDto.php index 9865c9ba..982d1bba 100644 --- a/src/Types/CreateLangfuseCredentialDto.php +++ b/src/Types/CreateLangfuseCredentialDto.php @@ -14,10 +14,10 @@ class CreateLangfuseCredentialDto extends JsonSerializableType public string $publicKey; /** - * @var string $apiKey The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API. + * @var ?string $apiKey The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $apiUrl The host URL for Langfuse project. Eg: https://cloud.langfuse.com @@ -34,7 +34,7 @@ class CreateLangfuseCredentialDto extends JsonSerializableType /** * @param array{ * publicKey: string, - * apiKey: string, + * apiKey?: ?string, * apiUrl: string, * name?: ?string, * } $values @@ -43,7 +43,7 @@ public function __construct( array $values, ) { $this->publicKey = $values['publicKey']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->apiUrl = $values['apiUrl']; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateLmntCredentialDto.php b/src/Types/CreateLmntCredentialDto.php index 09613ba3..432f3db4 100644 --- a/src/Types/CreateLmntCredentialDto.php +++ b/src/Types/CreateLmntCredentialDto.php @@ -8,10 +8,10 @@ class CreateLmntCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateLmntCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateMakeCredentialDto.php b/src/Types/CreateMakeCredentialDto.php index ebf2692c..2d8c871a 100644 --- a/src/Types/CreateMakeCredentialDto.php +++ b/src/Types/CreateMakeCredentialDto.php @@ -20,10 +20,10 @@ class CreateMakeCredentialDto extends JsonSerializableType public string $region; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -35,7 +35,7 @@ class CreateMakeCredentialDto extends JsonSerializableType * @param array{ * teamId: string, * region: string, - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ @@ -44,7 +44,7 @@ public function __construct( ) { $this->teamId = $values['teamId']; $this->region = $values['region']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateMinimaxCredentialDto.php b/src/Types/CreateMinimaxCredentialDto.php index 8d688e68..360a6b2d 100644 --- a/src/Types/CreateMinimaxCredentialDto.php +++ b/src/Types/CreateMinimaxCredentialDto.php @@ -8,10 +8,10 @@ class CreateMinimaxCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $groupId This is the Minimax Group ID. @@ -27,7 +27,7 @@ class CreateMinimaxCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * groupId: string, * name?: ?string, * } $values @@ -35,7 +35,7 @@ class CreateMinimaxCredentialDto extends JsonSerializableType public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->groupId = $values['groupId']; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateMistralCredentialDto.php b/src/Types/CreateMistralCredentialDto.php index a3b2053f..df40ff65 100644 --- a/src/Types/CreateMistralCredentialDto.php +++ b/src/Types/CreateMistralCredentialDto.php @@ -8,10 +8,10 @@ class CreateMistralCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateMistralCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateNeuphonicCredentialDto.php b/src/Types/CreateNeuphonicCredentialDto.php index fd6fa897..737f16c9 100644 --- a/src/Types/CreateNeuphonicCredentialDto.php +++ b/src/Types/CreateNeuphonicCredentialDto.php @@ -8,10 +8,10 @@ class CreateNeuphonicCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateNeuphonicCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateOpenAiCredentialDto.php b/src/Types/CreateOpenAiCredentialDto.php index f4f12253..ce1ec7ec 100644 --- a/src/Types/CreateOpenAiCredentialDto.php +++ b/src/Types/CreateOpenAiCredentialDto.php @@ -8,10 +8,10 @@ class CreateOpenAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateOpenAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateOpenRouterCredentialDto.php b/src/Types/CreateOpenRouterCredentialDto.php index ad88d54c..c7a7fbde 100644 --- a/src/Types/CreateOpenRouterCredentialDto.php +++ b/src/Types/CreateOpenRouterCredentialDto.php @@ -8,10 +8,10 @@ class CreateOpenRouterCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateOpenRouterCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreatePerplexityAiCredentialDto.php b/src/Types/CreatePerplexityAiCredentialDto.php index e2890318..faaf2414 100644 --- a/src/Types/CreatePerplexityAiCredentialDto.php +++ b/src/Types/CreatePerplexityAiCredentialDto.php @@ -8,10 +8,10 @@ class CreatePerplexityAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreatePerplexityAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreatePlayHtCredentialDto.php b/src/Types/CreatePlayHtCredentialDto.php index 5e823542..9042bd13 100644 --- a/src/Types/CreatePlayHtCredentialDto.php +++ b/src/Types/CreatePlayHtCredentialDto.php @@ -8,10 +8,10 @@ class CreatePlayHtCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $userId @@ -27,7 +27,7 @@ class CreatePlayHtCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * userId: string, * name?: ?string, * } $values @@ -35,7 +35,7 @@ class CreatePlayHtCredentialDto extends JsonSerializableType public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->userId = $values['userId']; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateRimeAiCredentialDto.php b/src/Types/CreateRimeAiCredentialDto.php index 8fa41ac6..9f792c2a 100644 --- a/src/Types/CreateRimeAiCredentialDto.php +++ b/src/Types/CreateRimeAiCredentialDto.php @@ -8,10 +8,10 @@ class CreateRimeAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateRimeAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateRunpodCredentialDto.php b/src/Types/CreateRunpodCredentialDto.php index 18260ad7..e3a1e143 100644 --- a/src/Types/CreateRunpodCredentialDto.php +++ b/src/Types/CreateRunpodCredentialDto.php @@ -8,10 +8,10 @@ class CreateRunpodCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateRunpodCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateS3CredentialDto.php b/src/Types/CreateS3CredentialDto.php index 5fec7214..c9c3da60 100644 --- a/src/Types/CreateS3CredentialDto.php +++ b/src/Types/CreateS3CredentialDto.php @@ -14,10 +14,10 @@ class CreateS3CredentialDto extends JsonSerializableType public string $awsAccessKeyId; /** - * @var string $awsSecretAccessKey AWS access key secret. This is not returned in the API. + * @var ?string $awsSecretAccessKey AWS access key secret. This is not returned in the API. */ #[JsonProperty('awsSecretAccessKey')] - public string $awsSecretAccessKey; + public ?string $awsSecretAccessKey; /** * @var string $region AWS region in which the S3 bucket is located. @@ -52,7 +52,7 @@ class CreateS3CredentialDto extends JsonSerializableType /** * @param array{ * awsAccessKeyId: string, - * awsSecretAccessKey: string, + * awsSecretAccessKey?: ?string, * region: string, * s3BucketName: string, * s3PathPrefix: string, @@ -64,7 +64,7 @@ public function __construct( array $values, ) { $this->awsAccessKeyId = $values['awsAccessKeyId']; - $this->awsSecretAccessKey = $values['awsSecretAccessKey']; + $this->awsSecretAccessKey = $values['awsSecretAccessKey'] ?? null; $this->region = $values['region']; $this->s3BucketName = $values['s3BucketName']; $this->s3PathPrefix = $values['s3PathPrefix']; diff --git a/src/Types/CreateSmallestAiCredentialDto.php b/src/Types/CreateSmallestAiCredentialDto.php index f9ac5c18..93afe1da 100644 --- a/src/Types/CreateSmallestAiCredentialDto.php +++ b/src/Types/CreateSmallestAiCredentialDto.php @@ -8,10 +8,10 @@ class CreateSmallestAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateSmallestAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateSonioxCredentialDto.php b/src/Types/CreateSonioxCredentialDto.php index 056aa62f..1ec78f41 100644 --- a/src/Types/CreateSonioxCredentialDto.php +++ b/src/Types/CreateSonioxCredentialDto.php @@ -8,10 +8,10 @@ class CreateSonioxCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateSonioxCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateSpeechmaticsCredentialDto.php b/src/Types/CreateSpeechmaticsCredentialDto.php index 5a61e5ff..df9531b8 100644 --- a/src/Types/CreateSpeechmaticsCredentialDto.php +++ b/src/Types/CreateSpeechmaticsCredentialDto.php @@ -8,10 +8,10 @@ class CreateSpeechmaticsCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateSpeechmaticsCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateTavusCredentialDto.php b/src/Types/CreateTavusCredentialDto.php index d5f442f4..28ef1d94 100644 --- a/src/Types/CreateTavusCredentialDto.php +++ b/src/Types/CreateTavusCredentialDto.php @@ -8,10 +8,10 @@ class CreateTavusCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateTavusCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateTelnyxPhoneNumberDto.php b/src/Types/CreateTelnyxPhoneNumberDto.php index 20c46255..dc75d082 100644 --- a/src/Types/CreateTelnyxPhoneNumberDto.php +++ b/src/Types/CreateTelnyxPhoneNumberDto.php @@ -34,10 +34,10 @@ class CreateTelnyxPhoneNumberDto extends JsonSerializableType public string $number; /** - * @var string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. + * @var ?string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ #[JsonProperty('credentialId')] - public string $credentialId; + public ?string $credentialId; /** * @var ?string $name This is the name of the phone number. This is just for your own reference. @@ -92,7 +92,7 @@ class CreateTelnyxPhoneNumberDto extends JsonSerializableType /** * @param array{ * number: string, - * credentialId: string, + * credentialId?: ?string, * fallbackDestination?: ?CreateTelnyxPhoneNumberDtoFallbackDestination, * hooks?: ?array, * name?: ?string, @@ -108,7 +108,7 @@ public function __construct( $this->fallbackDestination = $values['fallbackDestination'] ?? null; $this->hooks = $values['hooks'] ?? null; $this->number = $values['number']; - $this->credentialId = $values['credentialId']; + $this->credentialId = $values['credentialId'] ?? null; $this->name = $values['name'] ?? null; $this->assistantId = $values['assistantId'] ?? null; $this->workflowId = $values['workflowId'] ?? null; diff --git a/src/Types/CreateTogetherAiCredentialDto.php b/src/Types/CreateTogetherAiCredentialDto.php index f9ca5b6c..29651bbe 100644 --- a/src/Types/CreateTogetherAiCredentialDto.php +++ b/src/Types/CreateTogetherAiCredentialDto.php @@ -8,10 +8,10 @@ class CreateTogetherAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateTogetherAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateTrieveCredentialDto.php b/src/Types/CreateTrieveCredentialDto.php index 25b769b0..fbade0ed 100644 --- a/src/Types/CreateTrieveCredentialDto.php +++ b/src/Types/CreateTrieveCredentialDto.php @@ -8,10 +8,10 @@ class CreateTrieveCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateTrieveCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateVonageCredentialDto.php b/src/Types/CreateVonageCredentialDto.php index 0bbb341f..67c8d892 100644 --- a/src/Types/CreateVonageCredentialDto.php +++ b/src/Types/CreateVonageCredentialDto.php @@ -8,16 +8,16 @@ class CreateVonageCredentialDto extends JsonSerializableType { /** - * @var string $apiSecret This is not returned in the API. + * @var ?string $apiSecret This is not returned in the API. */ #[JsonProperty('apiSecret')] - public string $apiSecret; + public ?string $apiSecret; /** - * @var string $apiKey + * @var ?string $apiKey */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -27,16 +27,16 @@ class CreateVonageCredentialDto extends JsonSerializableType /** * @param array{ - * apiSecret: string, - * apiKey: string, + * apiSecret?: ?string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiSecret = $values['apiSecret']; - $this->apiKey = $values['apiKey']; + $this->apiSecret = $values['apiSecret'] ?? null; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateVonagePhoneNumberDto.php b/src/Types/CreateVonagePhoneNumberDto.php index 444db91c..0f2ddc56 100644 --- a/src/Types/CreateVonagePhoneNumberDto.php +++ b/src/Types/CreateVonagePhoneNumberDto.php @@ -34,10 +34,10 @@ class CreateVonagePhoneNumberDto extends JsonSerializableType public string $number; /** - * @var string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. + * @var ?string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ #[JsonProperty('credentialId')] - public string $credentialId; + public ?string $credentialId; /** * @var ?string $name This is the name of the phone number. This is just for your own reference. @@ -92,7 +92,7 @@ class CreateVonagePhoneNumberDto extends JsonSerializableType /** * @param array{ * number: string, - * credentialId: string, + * credentialId?: ?string, * fallbackDestination?: ?CreateVonagePhoneNumberDtoFallbackDestination, * hooks?: ?array, * name?: ?string, @@ -108,7 +108,7 @@ public function __construct( $this->fallbackDestination = $values['fallbackDestination'] ?? null; $this->hooks = $values['hooks'] ?? null; $this->number = $values['number']; - $this->credentialId = $values['credentialId']; + $this->credentialId = $values['credentialId'] ?? null; $this->name = $values['name'] ?? null; $this->assistantId = $values['assistantId'] ?? null; $this->workflowId = $values['workflowId'] ?? null; diff --git a/src/Types/CreateWellSaidCredentialDto.php b/src/Types/CreateWellSaidCredentialDto.php index 504444d9..cc4be4be 100644 --- a/src/Types/CreateWellSaidCredentialDto.php +++ b/src/Types/CreateWellSaidCredentialDto.php @@ -8,10 +8,10 @@ class CreateWellSaidCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateWellSaidCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CreateXAiCredentialDto.php b/src/Types/CreateXAiCredentialDto.php index e9378c08..6fd4a478 100644 --- a/src/Types/CreateXAiCredentialDto.php +++ b/src/Types/CreateXAiCredentialDto.php @@ -8,10 +8,10 @@ class CreateXAiCredentialDto extends JsonSerializableType { /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?string $name This is the name of credential. This is just for your reference. @@ -21,14 +21,14 @@ class CreateXAiCredentialDto extends JsonSerializableType /** * @param array{ - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ public function __construct( array $values, ) { - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->name = $values['name'] ?? null; } diff --git a/src/Types/CredentialSessionResponse.php b/src/Types/CredentialSessionResponse.php index 4438cb34..8eba499d 100644 --- a/src/Types/CredentialSessionResponse.php +++ b/src/Types/CredentialSessionResponse.php @@ -8,20 +8,20 @@ class CredentialSessionResponse extends JsonSerializableType { /** - * @var string $sessionToken + * @var ?string $sessionToken */ #[JsonProperty('sessionToken')] - public string $sessionToken; + public ?string $sessionToken; /** * @param array{ - * sessionToken: string, + * sessionToken?: ?string, * } $values */ public function __construct( array $values, ) { - $this->sessionToken = $values['sessionToken']; + $this->sessionToken = $values['sessionToken'] ?? null; } /** diff --git a/src/Types/CustomLlmCredential.php b/src/Types/CustomLlmCredential.php index 758a0e7c..715e3d18 100644 --- a/src/Types/CustomLlmCredential.php +++ b/src/Types/CustomLlmCredential.php @@ -16,10 +16,10 @@ class CustomLlmCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var ?OAuth2AuthenticationPlan $authenticationPlan This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey @@ -66,7 +66,7 @@ class CustomLlmCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -80,7 +80,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->authenticationPlan = $values['authenticationPlan'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; diff --git a/src/Types/DeepInfraCredential.php b/src/Types/DeepInfraCredential.php index fa164bec..bb200a2d 100644 --- a/src/Types/DeepInfraCredential.php +++ b/src/Types/DeepInfraCredential.php @@ -16,10 +16,10 @@ class DeepInfraCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class DeepInfraCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/DeepSeekCredential.php b/src/Types/DeepSeekCredential.php index f797c7ba..2fc5bdb2 100644 --- a/src/Types/DeepSeekCredential.php +++ b/src/Types/DeepSeekCredential.php @@ -16,10 +16,10 @@ class DeepSeekCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class DeepSeekCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/DeepgramCredential.php b/src/Types/DeepgramCredential.php index 0b44f473..c8964671 100644 --- a/src/Types/DeepgramCredential.php +++ b/src/Types/DeepgramCredential.php @@ -16,10 +16,10 @@ class DeepgramCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -60,7 +60,7 @@ class DeepgramCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -73,7 +73,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/ElevenLabsCredential.php b/src/Types/ElevenLabsCredential.php index 218a1c68..d4b83fac 100644 --- a/src/Types/ElevenLabsCredential.php +++ b/src/Types/ElevenLabsCredential.php @@ -16,10 +16,10 @@ class ElevenLabsCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class ElevenLabsCredential extends JsonSerializableType /** * @param array{ * provider: '11labs', - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/GcpKey.php b/src/Types/GcpKey.php index 5e2eb9d6..a4af7b44 100644 --- a/src/Types/GcpKey.php +++ b/src/Types/GcpKey.php @@ -54,10 +54,10 @@ class GcpKey extends JsonSerializableType public string $authUri; /** - * @var string $tokenUri This is the URI for the auth provider's token endpoint. + * @var ?string $tokenUri This is the URI for the auth provider's token endpoint. */ #[JsonProperty('tokenUri')] - public string $tokenUri; + public ?string $tokenUri; /** * @var string $authProviderX509CertUrl This is the URL of the public x509 certificate for the auth provider. @@ -86,7 +86,7 @@ class GcpKey extends JsonSerializableType * clientEmail: string, * clientId: string, * authUri: string, - * tokenUri: string, + * tokenUri?: ?string, * authProviderX509CertUrl: string, * clientX509CertUrl: string, * universeDomain: string, @@ -102,7 +102,7 @@ public function __construct( $this->clientEmail = $values['clientEmail']; $this->clientId = $values['clientId']; $this->authUri = $values['authUri']; - $this->tokenUri = $values['tokenUri']; + $this->tokenUri = $values['tokenUri'] ?? null; $this->authProviderX509CertUrl = $values['authProviderX509CertUrl']; $this->clientX509CertUrl = $values['clientX509CertUrl']; $this->universeDomain = $values['universeDomain']; diff --git a/src/Types/GladiaCredential.php b/src/Types/GladiaCredential.php index f85784ed..e38d5a7b 100644 --- a/src/Types/GladiaCredential.php +++ b/src/Types/GladiaCredential.php @@ -16,10 +16,10 @@ class GladiaCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class GladiaCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/GoHighLevelCredential.php b/src/Types/GoHighLevelCredential.php index c70fe861..f467bd90 100644 --- a/src/Types/GoHighLevelCredential.php +++ b/src/Types/GoHighLevelCredential.php @@ -16,10 +16,10 @@ class GoHighLevelCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class GoHighLevelCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/GoogleCredential.php b/src/Types/GoogleCredential.php index 4ed3310b..e107d030 100644 --- a/src/Types/GoogleCredential.php +++ b/src/Types/GoogleCredential.php @@ -16,10 +16,10 @@ class GoogleCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class GoogleCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/GroqCredential.php b/src/Types/GroqCredential.php index 0264e642..f09ec965 100644 --- a/src/Types/GroqCredential.php +++ b/src/Types/GroqCredential.php @@ -16,10 +16,10 @@ class GroqCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class GroqCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/HmacAuthenticationPlan.php b/src/Types/HmacAuthenticationPlan.php index 176e7ef8..593d8b50 100644 --- a/src/Types/HmacAuthenticationPlan.php +++ b/src/Types/HmacAuthenticationPlan.php @@ -8,10 +8,10 @@ class HmacAuthenticationPlan extends JsonSerializableType { /** - * @var string $secretKey This is the HMAC secret key used to sign requests. + * @var ?string $secretKey This is the HMAC secret key used to sign requests. */ #[JsonProperty('secretKey')] - public string $secretKey; + public ?string $secretKey; /** * @var value-of $algorithm This is the HMAC algorithm to use for signing. @@ -69,7 +69,7 @@ class HmacAuthenticationPlan extends JsonSerializableType /** * @param array{ - * secretKey: string, + * secretKey?: ?string, * algorithm: value-of, * signatureHeader?: ?string, * timestampHeader?: ?string, @@ -84,7 +84,7 @@ class HmacAuthenticationPlan extends JsonSerializableType public function __construct( array $values, ) { - $this->secretKey = $values['secretKey']; + $this->secretKey = $values['secretKey'] ?? null; $this->algorithm = $values['algorithm']; $this->signatureHeader = $values['signatureHeader'] ?? null; $this->timestampHeader = $values['timestampHeader'] ?? null; diff --git a/src/Types/HumeCredential.php b/src/Types/HumeCredential.php index 713fcb15..b692b2ee 100644 --- a/src/Types/HumeCredential.php +++ b/src/Types/HumeCredential.php @@ -16,10 +16,10 @@ class HumeCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class HumeCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/ImportVonagePhoneNumberDto.php b/src/Types/ImportVonagePhoneNumberDto.php index e6e50577..f252acac 100644 --- a/src/Types/ImportVonagePhoneNumberDto.php +++ b/src/Types/ImportVonagePhoneNumberDto.php @@ -34,10 +34,10 @@ class ImportVonagePhoneNumberDto extends JsonSerializableType public string $vonagePhoneNumber; /** - * @var string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. + * @var ?string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ #[JsonProperty('credentialId')] - public string $credentialId; + public ?string $credentialId; /** * @var ?string $name This is the name of the phone number. This is just for your own reference. @@ -92,7 +92,7 @@ class ImportVonagePhoneNumberDto extends JsonSerializableType /** * @param array{ * vonagePhoneNumber: string, - * credentialId: string, + * credentialId?: ?string, * fallbackDestination?: ?ImportVonagePhoneNumberDtoFallbackDestination, * hooks?: ?array, * name?: ?string, @@ -108,7 +108,7 @@ public function __construct( $this->fallbackDestination = $values['fallbackDestination'] ?? null; $this->hooks = $values['hooks'] ?? null; $this->vonagePhoneNumber = $values['vonagePhoneNumber']; - $this->credentialId = $values['credentialId']; + $this->credentialId = $values['credentialId'] ?? null; $this->name = $values['name'] ?? null; $this->assistantId = $values['assistantId'] ?? null; $this->workflowId = $values['workflowId'] ?? null; diff --git a/src/Types/InflectionAiCredential.php b/src/Types/InflectionAiCredential.php index b0fa02d3..4a2c77ee 100644 --- a/src/Types/InflectionAiCredential.php +++ b/src/Types/InflectionAiCredential.php @@ -16,10 +16,10 @@ class InflectionAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class InflectionAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/InworldCredential.php b/src/Types/InworldCredential.php index b5ea8635..b5126960 100644 --- a/src/Types/InworldCredential.php +++ b/src/Types/InworldCredential.php @@ -16,10 +16,10 @@ class InworldCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is the Inworld Basic (Base64) authentication token. This is not returned in the API. + * @var ?string $apiKey This is the Inworld Basic (Base64) authentication token. This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class InworldCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/JwtResponse.php b/src/Types/JwtResponse.php index 4a78f7ec..fe4e23f6 100644 --- a/src/Types/JwtResponse.php +++ b/src/Types/JwtResponse.php @@ -9,10 +9,10 @@ class JwtResponse extends JsonSerializableType { /** - * @var string $accessToken + * @var ?string $accessToken */ #[JsonProperty('accessToken')] - public string $accessToken; + public ?string $accessToken; /** * @var array $aud @@ -22,14 +22,14 @@ class JwtResponse extends JsonSerializableType /** * @param array{ - * accessToken: string, + * accessToken?: ?string, * aud: array, * } $values */ public function __construct( array $values, ) { - $this->accessToken = $values['accessToken']; + $this->accessToken = $values['accessToken'] ?? null; $this->aud = $values['aud']; } diff --git a/src/Types/LangfuseCredential.php b/src/Types/LangfuseCredential.php index bc3aaa4d..01bbb3c3 100644 --- a/src/Types/LangfuseCredential.php +++ b/src/Types/LangfuseCredential.php @@ -22,10 +22,10 @@ class LangfuseCredential extends JsonSerializableType public string $publicKey; /** - * @var string $apiKey The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API. + * @var ?string $apiKey The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $apiUrl The host URL for Langfuse project. Eg: https://cloud.langfuse.com @@ -67,7 +67,7 @@ class LangfuseCredential extends JsonSerializableType * @param array{ * provider: value-of, * publicKey: string, - * apiKey: string, + * apiKey?: ?string, * apiUrl: string, * id: string, * orgId: string, @@ -81,7 +81,7 @@ public function __construct( ) { $this->provider = $values['provider']; $this->publicKey = $values['publicKey']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->apiUrl = $values['apiUrl']; $this->id = $values['id']; $this->orgId = $values['orgId']; diff --git a/src/Types/LmntCredential.php b/src/Types/LmntCredential.php index fafd799e..2d6c70d0 100644 --- a/src/Types/LmntCredential.php +++ b/src/Types/LmntCredential.php @@ -16,10 +16,10 @@ class LmntCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class LmntCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/MakeCredential.php b/src/Types/MakeCredential.php index c3b93c9d..15a4207e 100644 --- a/src/Types/MakeCredential.php +++ b/src/Types/MakeCredential.php @@ -28,10 +28,10 @@ class MakeCredential extends JsonSerializableType public string $region; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -68,7 +68,7 @@ class MakeCredential extends JsonSerializableType * provider: value-of, * teamId: string, * region: string, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -82,7 +82,7 @@ public function __construct( $this->provider = $values['provider']; $this->teamId = $values['teamId']; $this->region = $values['region']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/MistralCredential.php b/src/Types/MistralCredential.php index 5908ee5d..f72dfe22 100644 --- a/src/Types/MistralCredential.php +++ b/src/Types/MistralCredential.php @@ -16,10 +16,10 @@ class MistralCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class MistralCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/NeuphonicCredential.php b/src/Types/NeuphonicCredential.php index 55fd43c6..cc9987e2 100644 --- a/src/Types/NeuphonicCredential.php +++ b/src/Types/NeuphonicCredential.php @@ -16,10 +16,10 @@ class NeuphonicCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class NeuphonicCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/OAuth2AuthenticationPlan.php b/src/Types/OAuth2AuthenticationPlan.php index cc302fdc..81f155d3 100644 --- a/src/Types/OAuth2AuthenticationPlan.php +++ b/src/Types/OAuth2AuthenticationPlan.php @@ -26,10 +26,10 @@ class OAuth2AuthenticationPlan extends JsonSerializableType public string $clientId; /** - * @var string $clientSecret This is the OAuth2 client secret. + * @var ?string $clientSecret This is the OAuth2 client secret. */ #[JsonProperty('clientSecret')] - public string $clientSecret; + public ?string $clientSecret; /** * @var ?string $scope This is the scope of the OAuth2 token. @@ -42,7 +42,7 @@ class OAuth2AuthenticationPlan extends JsonSerializableType * type: value-of, * url: string, * clientId: string, - * clientSecret: string, + * clientSecret?: ?string, * scope?: ?string, * } $values */ @@ -52,7 +52,7 @@ public function __construct( $this->type = $values['type']; $this->url = $values['url']; $this->clientId = $values['clientId']; - $this->clientSecret = $values['clientSecret']; + $this->clientSecret = $values['clientSecret'] ?? null; $this->scope = $values['scope'] ?? null; } diff --git a/src/Types/OpenAiCredential.php b/src/Types/OpenAiCredential.php index a01b2e01..52353a25 100644 --- a/src/Types/OpenAiCredential.php +++ b/src/Types/OpenAiCredential.php @@ -16,10 +16,10 @@ class OpenAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class OpenAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/OpenRouterCredential.php b/src/Types/OpenRouterCredential.php index c4f4afe7..c838eb6e 100644 --- a/src/Types/OpenRouterCredential.php +++ b/src/Types/OpenRouterCredential.php @@ -16,10 +16,10 @@ class OpenRouterCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class OpenRouterCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/PerplexityAiCredential.php b/src/Types/PerplexityAiCredential.php index c882fd37..8631b331 100644 --- a/src/Types/PerplexityAiCredential.php +++ b/src/Types/PerplexityAiCredential.php @@ -16,10 +16,10 @@ class PerplexityAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class PerplexityAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/PlayHtCredential.php b/src/Types/PlayHtCredential.php index 21c67a1d..47f1ee82 100644 --- a/src/Types/PlayHtCredential.php +++ b/src/Types/PlayHtCredential.php @@ -16,10 +16,10 @@ class PlayHtCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -60,7 +60,7 @@ class PlayHtCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -73,7 +73,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/RimeAiCredential.php b/src/Types/RimeAiCredential.php index 1cae2945..bb39af4b 100644 --- a/src/Types/RimeAiCredential.php +++ b/src/Types/RimeAiCredential.php @@ -16,10 +16,10 @@ class RimeAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class RimeAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/RunpodCredential.php b/src/Types/RunpodCredential.php index 3de4b9e3..7af85c1b 100644 --- a/src/Types/RunpodCredential.php +++ b/src/Types/RunpodCredential.php @@ -16,10 +16,10 @@ class RunpodCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class RunpodCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/S3Credential.php b/src/Types/S3Credential.php index 52781820..da4ad5a2 100644 --- a/src/Types/S3Credential.php +++ b/src/Types/S3Credential.php @@ -22,10 +22,10 @@ class S3Credential extends JsonSerializableType public string $awsAccessKeyId; /** - * @var string $awsSecretAccessKey AWS access key secret. This is not returned in the API. + * @var ?string $awsSecretAccessKey AWS access key secret. This is not returned in the API. */ #[JsonProperty('awsSecretAccessKey')] - public string $awsSecretAccessKey; + public ?string $awsSecretAccessKey; /** * @var string $region AWS region in which the S3 bucket is located. @@ -85,7 +85,7 @@ class S3Credential extends JsonSerializableType * @param array{ * provider: value-of, * awsAccessKeyId: string, - * awsSecretAccessKey: string, + * awsSecretAccessKey?: ?string, * region: string, * s3BucketName: string, * s3PathPrefix: string, @@ -102,7 +102,7 @@ public function __construct( ) { $this->provider = $values['provider']; $this->awsAccessKeyId = $values['awsAccessKeyId']; - $this->awsSecretAccessKey = $values['awsSecretAccessKey']; + $this->awsSecretAccessKey = $values['awsSecretAccessKey'] ?? null; $this->region = $values['region']; $this->s3BucketName = $values['s3BucketName']; $this->s3PathPrefix = $values['s3PathPrefix']; diff --git a/src/Types/SipAuthentication.php b/src/Types/SipAuthentication.php index 59271214..6d2c08ef 100644 --- a/src/Types/SipAuthentication.php +++ b/src/Types/SipAuthentication.php @@ -20,15 +20,15 @@ class SipAuthentication extends JsonSerializableType public string $username; /** - * @var string $password This will be expected to generate the `response` field of the `authorization` header of the SIP INVITE, through digest authentication. + * @var ?string $password This will be expected to generate the `response` field of the `authorization` header of the SIP INVITE, through digest authentication. */ #[JsonProperty('password')] - public string $password; + public ?string $password; /** * @param array{ * username: string, - * password: string, + * password?: ?string, * realm?: ?string, * } $values */ @@ -37,7 +37,7 @@ public function __construct( ) { $this->realm = $values['realm'] ?? null; $this->username = $values['username']; - $this->password = $values['password']; + $this->password = $values['password'] ?? null; } /** diff --git a/src/Types/SmallestAiCredential.php b/src/Types/SmallestAiCredential.php index 794bbe75..e57496c9 100644 --- a/src/Types/SmallestAiCredential.php +++ b/src/Types/SmallestAiCredential.php @@ -16,10 +16,10 @@ class SmallestAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class SmallestAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/SonioxCredential.php b/src/Types/SonioxCredential.php index 207edd35..9df089b7 100644 --- a/src/Types/SonioxCredential.php +++ b/src/Types/SonioxCredential.php @@ -16,10 +16,10 @@ class SonioxCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class SonioxCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/SpeechmaticsCredential.php b/src/Types/SpeechmaticsCredential.php index 8d56e896..262d8569 100644 --- a/src/Types/SpeechmaticsCredential.php +++ b/src/Types/SpeechmaticsCredential.php @@ -16,10 +16,10 @@ class SpeechmaticsCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class SpeechmaticsCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/SupabaseBucketPlan.php b/src/Types/SupabaseBucketPlan.php index f9e4dc38..20f5a6ad 100644 --- a/src/Types/SupabaseBucketPlan.php +++ b/src/Types/SupabaseBucketPlan.php @@ -39,10 +39,10 @@ class SupabaseBucketPlan extends JsonSerializableType * This is the Supabase S3 Secret Access Key. * The user creates this in the Supabase project Storage settings along with the access key id * - * @var string $secretAccessKey + * @var ?string $secretAccessKey */ #[JsonProperty('secretAccessKey')] - public string $secretAccessKey; + public ?string $secretAccessKey; /** * This is the Supabase S3 Bucket Name. @@ -71,7 +71,7 @@ class SupabaseBucketPlan extends JsonSerializableType * region: value-of, * url: string, * accessKeyId: string, - * secretAccessKey: string, + * secretAccessKey?: ?string, * name: string, * path?: ?string, * } $values @@ -82,7 +82,7 @@ public function __construct( $this->region = $values['region']; $this->url = $values['url']; $this->accessKeyId = $values['accessKeyId']; - $this->secretAccessKey = $values['secretAccessKey']; + $this->secretAccessKey = $values['secretAccessKey'] ?? null; $this->name = $values['name']; $this->path = $values['path'] ?? null; } diff --git a/src/Types/TavusCredential.php b/src/Types/TavusCredential.php index fc7c6813..6f11f3dd 100644 --- a/src/Types/TavusCredential.php +++ b/src/Types/TavusCredential.php @@ -16,10 +16,10 @@ class TavusCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class TavusCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/TelnyxPhoneNumber.php b/src/Types/TelnyxPhoneNumber.php index a5d4da67..0e9d1781 100644 --- a/src/Types/TelnyxPhoneNumber.php +++ b/src/Types/TelnyxPhoneNumber.php @@ -116,10 +116,10 @@ class TelnyxPhoneNumber extends JsonSerializableType public string $number; /** - * @var string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. + * @var ?string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ #[JsonProperty('credentialId')] - public string $credentialId; + public ?string $credentialId; /** * @param array{ @@ -128,7 +128,7 @@ class TelnyxPhoneNumber extends JsonSerializableType * createdAt: DateTime, * updatedAt: DateTime, * number: string, - * credentialId: string, + * credentialId?: ?string, * fallbackDestination?: ?TelnyxPhoneNumberFallbackDestination, * hooks?: ?array, * status?: ?value-of, @@ -155,7 +155,7 @@ public function __construct( $this->squadId = $values['squadId'] ?? null; $this->server = $values['server'] ?? null; $this->number = $values['number']; - $this->credentialId = $values['credentialId']; + $this->credentialId = $values['credentialId'] ?? null; } /** diff --git a/src/Types/TogetherAiCredential.php b/src/Types/TogetherAiCredential.php index e510408e..8be56608 100644 --- a/src/Types/TogetherAiCredential.php +++ b/src/Types/TogetherAiCredential.php @@ -16,10 +16,10 @@ class TogetherAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class TogetherAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/TrieveCredential.php b/src/Types/TrieveCredential.php index b31b0de3..a192e5fc 100644 --- a/src/Types/TrieveCredential.php +++ b/src/Types/TrieveCredential.php @@ -16,10 +16,10 @@ class TrieveCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class TrieveCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/VonageCredential.php b/src/Types/VonageCredential.php index d48f8725..f555c14f 100644 --- a/src/Types/VonageCredential.php +++ b/src/Types/VonageCredential.php @@ -22,10 +22,10 @@ class VonageCredential extends JsonSerializableType public string $provider; /** - * @var string $apiSecret This is not returned in the API. + * @var ?string $apiSecret This is not returned in the API. */ #[JsonProperty('apiSecret')] - public string $apiSecret; + public ?string $apiSecret; /** * @var string $id This is the unique identifier for the credential. @@ -68,22 +68,22 @@ class VonageCredential extends JsonSerializableType public ?string $name; /** - * @var string $apiKey + * @var ?string $apiKey */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @param array{ * vonageApplicationPrivateKey: string, * provider: value-of, - * apiSecret: string, + * apiSecret?: ?string, * id: string, * orgId: string, * createdAt: DateTime, * updatedAt: DateTime, * vonageApplicationId: string, - * apiKey: string, + * apiKey?: ?string, * name?: ?string, * } $values */ @@ -92,14 +92,14 @@ public function __construct( ) { $this->vonageApplicationPrivateKey = $values['vonageApplicationPrivateKey']; $this->provider = $values['provider']; - $this->apiSecret = $values['apiSecret']; + $this->apiSecret = $values['apiSecret'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; $this->updatedAt = $values['updatedAt']; $this->vonageApplicationId = $values['vonageApplicationId']; $this->name = $values['name'] ?? null; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; } /** diff --git a/src/Types/VonagePhoneNumber.php b/src/Types/VonagePhoneNumber.php index ca6c3978..e5627172 100644 --- a/src/Types/VonagePhoneNumber.php +++ b/src/Types/VonagePhoneNumber.php @@ -116,10 +116,10 @@ class VonagePhoneNumber extends JsonSerializableType public string $number; /** - * @var string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. + * @var ?string $credentialId This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ #[JsonProperty('credentialId')] - public string $credentialId; + public ?string $credentialId; /** * @param array{ @@ -128,7 +128,7 @@ class VonagePhoneNumber extends JsonSerializableType * createdAt: DateTime, * updatedAt: DateTime, * number: string, - * credentialId: string, + * credentialId?: ?string, * fallbackDestination?: ?VonagePhoneNumberFallbackDestination, * hooks?: ?array, * status?: ?value-of, @@ -155,7 +155,7 @@ public function __construct( $this->squadId = $values['squadId'] ?? null; $this->server = $values['server'] ?? null; $this->number = $values['number']; - $this->credentialId = $values['credentialId']; + $this->credentialId = $values['credentialId'] ?? null; } /** diff --git a/src/Types/WellSaidCredential.php b/src/Types/WellSaidCredential.php index 633b85be..70a34559 100644 --- a/src/Types/WellSaidCredential.php +++ b/src/Types/WellSaidCredential.php @@ -16,10 +16,10 @@ class WellSaidCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class WellSaidCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt']; diff --git a/src/Types/XAiCredential.php b/src/Types/XAiCredential.php index b6e98485..7e7524be 100644 --- a/src/Types/XAiCredential.php +++ b/src/Types/XAiCredential.php @@ -16,10 +16,10 @@ class XAiCredential extends JsonSerializableType public string $provider; /** - * @var string $apiKey This is not returned in the API. + * @var ?string $apiKey This is not returned in the API. */ #[JsonProperty('apiKey')] - public string $apiKey; + public ?string $apiKey; /** * @var string $id This is the unique identifier for the credential. @@ -54,7 +54,7 @@ class XAiCredential extends JsonSerializableType /** * @param array{ * provider: value-of, - * apiKey: string, + * apiKey?: ?string, * id: string, * orgId: string, * createdAt: DateTime, @@ -66,7 +66,7 @@ public function __construct( array $values, ) { $this->provider = $values['provider']; - $this->apiKey = $values['apiKey']; + $this->apiKey = $values['apiKey'] ?? null; $this->id = $values['id']; $this->orgId = $values['orgId']; $this->createdAt = $values['createdAt'];