Skip to content

Commit

Permalink
[Librarian] Regenerated @ 0a245f5931e0ff292c12b643839bbb9a1b3831e3 47…
Browse files Browse the repository at this point in the history
…27b4211b32329ec55ad87676be1f406d3fd9e9
  • Loading branch information
twilio-dx committed Jan 9, 2025
1 parent 1df304c commit 7f49209
Show file tree
Hide file tree
Showing 17 changed files with 108 additions and 128 deletions.
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
twilio-php Changelog
====================

[2025-01-09] Version 8.3.10
---------------------------
**Library - Fix**
- [PR #834](https://github.com/twilio/twilio-php/pull/834): avoid deprecation messages for PHP 8.4. Thanks to [@phpfui](https://github.com/phpfui)!

**Library - Chore**
- [PR #837](https://github.com/twilio/twilio-php/pull/837): revert 'fix: avoid deprecation messages for PHP 8.4'. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Numbers**
- Change beta feature flag to use v2/BulkHostedNumberOrders


[2024-12-05] Version 8.3.9
--------------------------
**Api**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class TranscriptionOptions
* @param string $speechModel Recognition model used by the transcription engine, among those supported by the provider
* @param string $hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
* @param bool $enableAutomaticPunctuation The provider will add punctuation to recognition result
* @param string $intelligenceService The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
* @param string $intelligenceService The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
* @return CreateTranscriptionOptions Options builder
*/
public static function create(
Expand Down Expand Up @@ -93,7 +93,7 @@ class CreateTranscriptionOptions extends Options
* @param string $speechModel Recognition model used by the transcription engine, among those supported by the provider
* @param string $hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
* @param bool $enableAutomaticPunctuation The provider will add punctuation to recognition result
* @param string $intelligenceService The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
* @param string $intelligenceService The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
*/
public function __construct(

Expand Down Expand Up @@ -284,9 +284,9 @@ public function setEnableAutomaticPunctuation(bool $enableAutomaticPunctuation):
}

/**
* The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
* The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
*
* @param string $intelligenceService The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
* @param string $intelligenceService The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
* @return $this Fluent Builder
*/
public function setIntelligenceService(string $intelligenceService): self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* @property string $status
* @property string $type
* @property string $url
* @property string $embeddingModel
* @property \DateTime $dateCreated
* @property \DateTime $dateUpdated
*/
Expand Down Expand Up @@ -60,6 +61,7 @@ public function __construct(Version $version, array $payload, string $assistantI
'status' => Values::array_get($payload, 'status'),
'type' => Values::array_get($payload, 'type'),
'url' => Values::array_get($payload, 'url'),
'embeddingModel' => Values::array_get($payload, 'embedding_model'),
'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
];
Expand Down
4 changes: 2 additions & 2 deletions src/Twilio/Rest/Assistants/V1/Assistant/FeedbackModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class AssistantsV1ServiceCreateFeedbackRequest implements \JsonSerializable
protected $sessionId;
protected $text;
public function __construct(array $payload = []) {
$this->messageId = Values::array_get($payload, 'messageId');
$this->messageId = Values::array_get($payload, 'message_id');
$this->score = Values::array_get($payload, 'score');
$this->sessionId = Values::array_get($payload, 'sessionId');
$this->sessionId = Values::array_get($payload, 'session_id');
$this->text = Values::array_get($payload, 'text');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Rest/Assistants/V1/Assistant/MessageModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AssistantsV1ServiceAssistantSendMessageRequest implements \JsonSerializabl
protected $mode;
public function __construct(array $payload = []) {
$this->identity = Values::array_get($payload, 'identity');
$this->sessionId = Values::array_get($payload, 'sessionId');
$this->sessionId = Values::array_get($payload, 'session_id');
$this->body = Values::array_get($payload, 'body');
$this->webhook = Values::array_get($payload, 'webhook');
$this->mode = Values::array_get($payload, 'mode');
Expand Down
22 changes: 11 additions & 11 deletions src/Twilio/Rest/Assistants/V1/AssistantModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class AssistantsV1ServiceCustomerAi implements \JsonSerializable
protected $perceptionEngineEnabled;
protected $personalizationEngineEnabled;
public function __construct(array $payload = []) {
$this->perceptionEngineEnabled = Values::array_get($payload, 'perceptionEngineEnabled');
$this->personalizationEngineEnabled = Values::array_get($payload, 'personalizationEngineEnabled');
$this->perceptionEngineEnabled = Values::array_get($payload, 'perception_engine_enabled');
$this->personalizationEngineEnabled = Values::array_get($payload, 'personalization_engine_enabled');
}

public function toArray(): array
Expand Down Expand Up @@ -101,9 +101,9 @@ class AssistantsV1ServiceSegmentCredential implements \JsonSerializable
protected $spaceId;
protected $writeKey;
public function __construct(array $payload = []) {
$this->profileApiKey = Values::array_get($payload, 'profileApiKey');
$this->spaceId = Values::array_get($payload, 'spaceId');
$this->writeKey = Values::array_get($payload, 'writeKey');
$this->profileApiKey = Values::array_get($payload, 'profile_api_key');
$this->spaceId = Values::array_get($payload, 'space_id');
$this->writeKey = Values::array_get($payload, 'write_key');
}

public function toArray(): array
Expand Down Expand Up @@ -136,11 +136,11 @@ class AssistantsV1ServiceCreateAssistantRequest implements \JsonSerializable
protected $personalityPrompt;
protected $segmentCredential;
public function __construct(array $payload = []) {
$this->customerAi = Values::array_get($payload, 'customerAi');
$this->customerAi = Values::array_get($payload, 'customer_ai');
$this->name = Values::array_get($payload, 'name');
$this->owner = Values::array_get($payload, 'owner');
$this->personalityPrompt = Values::array_get($payload, 'personalityPrompt');
$this->segmentCredential = Values::array_get($payload, 'segmentCredential');
$this->personalityPrompt = Values::array_get($payload, 'personality_prompt');
$this->segmentCredential = Values::array_get($payload, 'segment_credential');
}

public function toArray(): array
Expand Down Expand Up @@ -175,11 +175,11 @@ class AssistantsV1ServiceUpdateAssistantRequest implements \JsonSerializable
protected $personalityPrompt;
protected $segmentCredential;
public function __construct(array $payload = []) {
$this->customerAi = Values::array_get($payload, 'customerAi');
$this->customerAi = Values::array_get($payload, 'customer_ai');
$this->name = Values::array_get($payload, 'name');
$this->owner = Values::array_get($payload, 'owner');
$this->personalityPrompt = Values::array_get($payload, 'personalityPrompt');
$this->segmentCredential = Values::array_get($payload, 'segmentCredential');
$this->personalityPrompt = Values::array_get($payload, 'personality_prompt');
$this->segmentCredential = Values::array_get($payload, 'segment_credential');
}

public function toArray(): array
Expand Down
2 changes: 2 additions & 0 deletions src/Twilio/Rest/Assistants/V1/KnowledgeInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* @property string $status
* @property string $type
* @property string $url
* @property string $embeddingModel
* @property \DateTime $dateCreated
* @property \DateTime $dateUpdated
*/
Expand Down Expand Up @@ -64,6 +65,7 @@ public function __construct(Version $version, array $payload, string $id = null)
'status' => Values::array_get($payload, 'status'),
'type' => Values::array_get($payload, 'type'),
'url' => Values::array_get($payload, 'url'),
'embeddingModel' => Values::array_get($payload, 'embedding_model'),
'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
];
Expand Down
22 changes: 16 additions & 6 deletions src/Twilio/Rest/Assistants/V1/KnowledgeModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static function createAssistantsV1ServiceCreatePolicyRequest(array $paylo
* @property string $name The name of the tool.
* @property AssistantsV1ServiceCreatePolicyRequest $policy
* @property string $type The type of the knowledge source.
* @property string $embeddingModel The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
*/
public static function createAssistantsV1ServiceCreateKnowledgeRequest(array $payload = []): AssistantsV1ServiceCreateKnowledgeRequest
{
Expand All @@ -49,6 +50,7 @@ public static function createAssistantsV1ServiceCreateKnowledgeRequest(array $pa
* @property string $name The name of the knowledge source.
* @property AssistantsV1ServiceCreatePolicyRequest $policy
* @property string $type The description of the knowledge source.
* @property string $embeddingModel The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
*/
public static function createAssistantsV1ServiceUpdateKnowledgeRequest(array $payload = []): AssistantsV1ServiceUpdateKnowledgeRequest
{
Expand All @@ -75,7 +77,7 @@ public function __construct(array $payload = []) {
$this->description = Values::array_get($payload, 'description');
$this->id = Values::array_get($payload, 'id');
$this->name = Values::array_get($payload, 'name');
$this->policyDetails = Values::array_get($payload, 'policyDetails');
$this->policyDetails = Values::array_get($payload, 'policy_details');
$this->type = Values::array_get($payload, 'type');
}

Expand Down Expand Up @@ -105,20 +107,23 @@ class AssistantsV1ServiceCreateKnowledgeRequest implements \JsonSerializable
* @property string $name The name of the tool.
* @property AssistantsV1ServiceCreatePolicyRequest $policy
* @property string $type The type of the knowledge source.
* @property string $embeddingModel The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
*/
protected $assistantId;
protected $description;
protected $knowledgeSourceDetails;
protected $name;
protected $policy;
protected $type;
protected $embeddingModel;
public function __construct(array $payload = []) {
$this->assistantId = Values::array_get($payload, 'assistantId');
$this->assistantId = Values::array_get($payload, 'assistant_id');
$this->description = Values::array_get($payload, 'description');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledgeSourceDetails');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledge_source_details');
$this->name = Values::array_get($payload, 'name');
$this->policy = Values::array_get($payload, 'policy');
$this->type = Values::array_get($payload, 'type');
$this->embeddingModel = Values::array_get($payload, 'embedding_model');
}

public function toArray(): array
Expand All @@ -134,7 +139,8 @@ public function jsonSerialize(): array
'knowledgeSourceDetails' => $this->knowledgeSourceDetails,
'name' => $this->name,
'policy' => $this->policy,
'type' => $this->type
'type' => $this->type,
'embeddingModel' => $this->embeddingModel
];
}
}
Expand All @@ -147,18 +153,21 @@ class AssistantsV1ServiceUpdateKnowledgeRequest implements \JsonSerializable
* @property string $name The name of the knowledge source.
* @property AssistantsV1ServiceCreatePolicyRequest $policy
* @property string $type The description of the knowledge source.
* @property string $embeddingModel The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
*/
protected $description;
protected $knowledgeSourceDetails;
protected $name;
protected $policy;
protected $type;
protected $embeddingModel;
public function __construct(array $payload = []) {
$this->description = Values::array_get($payload, 'description');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledgeSourceDetails');
$this->knowledgeSourceDetails = Values::array_get($payload, 'knowledge_source_details');
$this->name = Values::array_get($payload, 'name');
$this->policy = Values::array_get($payload, 'policy');
$this->type = Values::array_get($payload, 'type');
$this->embeddingModel = Values::array_get($payload, 'embedding_model');
}

public function toArray(): array
Expand All @@ -173,7 +182,8 @@ public function jsonSerialize(): array
'knowledgeSourceDetails' => $this->knowledgeSourceDetails,
'name' => $this->name,
'policy' => $this->policy,
'type' => $this->type
'type' => $this->type,
'embeddingModel' => $this->embeddingModel
];
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Twilio/Rest/Assistants/V1/ToolModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function __construct(array $payload = []) {
$this->description = Values::array_get($payload, 'description');
$this->id = Values::array_get($payload, 'id');
$this->name = Values::array_get($payload, 'name');
$this->policyDetails = Values::array_get($payload, 'policyDetails');
$this->policyDetails = Values::array_get($payload, 'policy_details');
$this->type = Values::array_get($payload, 'type');
}

Expand Down Expand Up @@ -118,7 +118,7 @@ class AssistantsV1ServiceCreateToolRequest implements \JsonSerializable
protected $policy;
protected $type;
public function __construct(array $payload = []) {
$this->assistantId = Values::array_get($payload, 'assistantId');
$this->assistantId = Values::array_get($payload, 'assistant_id');
$this->description = Values::array_get($payload, 'description');
$this->enabled = Values::array_get($payload, 'enabled');
$this->meta = Values::array_get($payload, 'meta');
Expand Down Expand Up @@ -165,7 +165,7 @@ class AssistantsV1ServiceUpdateToolRequest implements \JsonSerializable
protected $policy;
protected $type;
public function __construct(array $payload = []) {
$this->assistantId = Values::array_get($payload, 'assistantId');
$this->assistantId = Values::array_get($payload, 'assistant_id');
$this->description = Values::array_get($payload, 'description');
$this->enabled = Values::array_get($payload, 'enabled');
$this->meta = Values::array_get($payload, 'meta');
Expand Down
Loading

0 comments on commit 7f49209

Please sign in to comment.