Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Types/AnthropicCredential.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -54,7 +54,7 @@ class AnthropicCredential extends JsonSerializableType
/**
* @param array{
* provider: value-of<AnthropicCredentialProvider>,
* apiKey: string,
* apiKey?: ?string,
* id: string,
* orgId: string,
* createdAt: DateTime,
Expand All @@ -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'];
Expand Down
8 changes: 4 additions & 4 deletions src/Types/AnyscaleCredential.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -54,7 +54,7 @@ class AnyscaleCredential extends JsonSerializableType
/**
* @param array{
* provider: value-of<AnyscaleCredentialProvider>,
* apiKey: string,
* apiKey?: ?string,
* id: string,
* orgId: string,
* createdAt: DateTime,
Expand All @@ -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'];
Expand Down
8 changes: 4 additions & 4 deletions src/Types/AssemblyAiCredential.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -54,7 +54,7 @@ class AssemblyAiCredential extends JsonSerializableType
/**
* @param array{
* provider: value-of<AssemblyAiCredentialProvider>,
* apiKey: string,
* apiKey?: ?string,
* id: string,
* orgId: string,
* createdAt: DateTime,
Expand All @@ -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'];
Expand Down
8 changes: 4 additions & 4 deletions src/Types/AwsiamCredentialsAuthenticationPlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Types/BearerAuthenticationPlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand All @@ -27,15 +27,15 @@ class BearerAuthenticationPlan extends JsonSerializableType

/**
* @param array{
* token: string,
* token?: ?string,
* headerName?: ?string,
* bearerPrefixEnabled?: ?bool,
* } $values
*/
public function __construct(
array $values,
) {
$this->token = $values['token'];
$this->token = $values['token'] ?? null;
$this->headerName = $values['headerName'] ?? null;
$this->bearerPrefixEnabled = $values['bearerPrefixEnabled'] ?? null;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Types/ByoPhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ 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{
* id: string,
* orgId: string,
* createdAt: DateTime,
* updatedAt: DateTime,
* credentialId: string,
* credentialId?: ?string,
* fallbackDestination?: ?ByoPhoneNumberFallbackDestination,
* hooks?: ?array<ByoPhoneNumberHooksItem>,
* numberE164CheckEnabled?: ?bool,
Expand Down Expand Up @@ -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;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Types/CartesiaCredential.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -54,7 +54,7 @@ class CartesiaCredential extends JsonSerializableType
/**
* @param array{
* provider: value-of<CartesiaCredentialProvider>,
* apiKey: string,
* apiKey?: ?string,
* id: string,
* orgId: string,
* createdAt: DateTime,
Expand All @@ -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'];
Expand Down
8 changes: 4 additions & 4 deletions src/Types/CerebrasCredential.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -54,7 +54,7 @@ class CerebrasCredential extends JsonSerializableType
/**
* @param array{
* provider: value-of<CerebrasCredentialProvider>,
* apiKey: string,
* apiKey?: ?string,
* id: string,
* orgId: string,
* createdAt: DateTime,
Expand All @@ -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'];
Expand Down
8 changes: 4 additions & 4 deletions src/Types/CreateAnthropicCredentialDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Types/CreateAnyscaleCredentialDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Types/CreateAssemblyAiCredentialDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Types/CreateByoPhoneNumberDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -111,7 +111,7 @@ class CreateByoPhoneNumberDto extends JsonSerializableType

/**
* @param array{
* credentialId: string,
* credentialId?: ?string,
* fallbackDestination?: ?CreateByoPhoneNumberDtoFallbackDestination,
* hooks?: ?array<CreateByoPhoneNumberDtoHooksItem>,
* numberE164CheckEnabled?: ?bool,
Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/Types/CreateCartesiaCredentialDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}

Expand Down
Loading