Skip to content

Commit

Permalink
[Librarian] Regenerated @ 1baa147fbfa3bf2798f86ec43796ef1df42570d4 a3…
Browse files Browse the repository at this point in the history
…170b07f36450c6d179edf9b044cbf5f6b94e3a
  • Loading branch information
twilio-dx committed May 24, 2024
1 parent b90dcef commit 46c890f
Show file tree
Hide file tree
Showing 73 changed files with 3,847 additions and 736 deletions.
46 changes: 46 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,52 @@
twilio-php Changelog
====================

[2024-05-24] Version 8.1.0
--------------------------
**Library - Docs**
- [PR #807](https://github.com/twilio/twilio-php/pull/807): updated readme with page example. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Library - Chore**
- [PR #805](https://github.com/twilio/twilio-php/pull/805): adding support for PHP 8.2 and 8.3. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Api**
- Add ie1 as supported region for UserDefinedMessage and UserDefinedMessageSubscription.

**Flex**
- Adding validated field to `plugin_versions`
- Corrected the data type for `runtime_domain`, `call_recording_webhook_url`, `crm_callback_url`, `crm_fallback_url`, `flex_url` in Flex Configuration
- Making `routing` optional in Create Interactions endpoint

**Intelligence**
- Expose operator authoring apis to public visibility
- Deleted `language_code` parameter from updating service in v2 **(breaking change)**
- Add read_only_attached_operator_sids to v2 services

**Numbers**
- Add API endpoint for GET Porting Webhook Configurations By Account SID
- Remove bulk portability api under version `/v1`. **(breaking change)**
- Removed porting_port_in_fetch.json files and move the content into porting_port_in.json files
- Add API endpoint to deleting Webhook Configurations
- Add Get Phone Number by Port in request SID and Phone Number SID api
- Add Create Porting webhook configuration API
- Added bundle_sid and losing_carrier_information fields to Create PortInRequest api to support Japan porting

**Taskrouter**
- Add back `routing_target` property to tasks
- Add back `ignore_capacity` property to tasks
- Removing `routing_target` property to tasks due to revert
- Removing `ignore_capacity` property to tasks due to revert
- Add `routing_target` property to tasks
- Add `ignore_capacity` property to tasks

**Trusthub**
- Add new field errors to bundle as part of public API response in customer_profile.json and trust_product.json **(breaking change)**
- Add themeSetId field in compliance_tollfree_inquiry.

**Verify**
- Update `friendly_name` description on service docs


[2024-04-18] Version 8.0.1
--------------------------
**Flex**
Expand Down
13 changes: 0 additions & 13 deletions src/Twilio/Rest/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* @property Intelligence $intelligence
* @property IpMessaging $ipMessaging
* @property Lookups $lookups
* @property PreviewMessaging $previewMessaging
* @property Messaging $messaging
* @property Microvisor $microvisor
* @property Monitor $monitor
Expand Down Expand Up @@ -110,7 +109,6 @@ class Client extends BaseClient {
protected $_intelligence;
protected $_ipMessaging;
protected $_lookups;
protected $_previewMessaging;
protected $_messaging;
protected $_microvisor;
protected $_monitor;
Expand Down Expand Up @@ -276,17 +274,6 @@ protected function getLookups(): Lookups {
}
return $this->_lookups;
}
/**
* Access the PreviewMessaging Twilio Domain
*
* @return PreviewMessaging PreviewMessaging Twilio Domain
*/
protected function getPreviewMessaging(): PreviewMessaging {
if (!$this->_previewMessaging) {
$this->_previewMessaging = new PreviewMessaging($this);
}
return $this->_previewMessaging;
}
/**
* Access the Messaging Twilio Domain
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,57 +5,57 @@
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Bulk Messaging and Broadcast
* Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload.
* Twilio - Content
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace Twilio\Rest\PreviewMessaging;
namespace Twilio\Rest\Content;

use Twilio\Domain;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceContext;
use Twilio\Rest\PreviewMessaging\V1\BroadcastList;
use Twilio\Rest\PreviewMessaging\V1\MessageList;
use Twilio\Rest\Content\V2\ContentList;
use Twilio\Rest\Content\V2\ContentAndApprovalsList;
use Twilio\Version;

/**
* @property BroadcastList $broadcasts
* @property MessageList $messages
* @property ContentList $contents
* @property ContentAndApprovalsList $contentAndApprovals
*/
class V1 extends Version
class V2 extends Version
{
protected $_broadcasts;
protected $_messages;
protected $_contents;
protected $_contentAndApprovals;

/**
* Construct the V1 version of PreviewMessaging
* Construct the V2 version of Content
*
* @param Domain $domain Domain that contains the version
*/
public function __construct(Domain $domain)
{
parent::__construct($domain);
$this->version = 'v1';
$this->version = 'v2';
}

protected function getBroadcasts(): BroadcastList
protected function getContents(): ContentList
{
if (!$this->_broadcasts) {
$this->_broadcasts = new BroadcastList($this);
if (!$this->_contents) {
$this->_contents = new ContentList($this);
}
return $this->_broadcasts;
return $this->_contents;
}

protected function getMessages(): MessageList
protected function getContentAndApprovals(): ContentAndApprovalsList
{
if (!$this->_messages) {
$this->_messages = new MessageList($this);
if (!$this->_contentAndApprovals) {
$this->_contentAndApprovals = new ContentAndApprovalsList($this);
}
return $this->_messages;
return $this->_contentAndApprovals;
}

/**
Expand Down Expand Up @@ -100,6 +100,6 @@ public function __call(string $name, array $arguments): InstanceContext
*/
public function __toString(): string
{
return '[Twilio.PreviewMessaging.V1]';
return '[Twilio.Content.V2]';
}
}
97 changes: 97 additions & 0 deletions src/Twilio/Rest/Content/V2/ContentAndApprovalsInstance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php

/**
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Content
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/


namespace Twilio\Rest\Content\V2;

use Twilio\Exceptions\TwilioException;
use Twilio\InstanceResource;
use Twilio\Values;
use Twilio\Version;
use Twilio\Deserialize;


/**
* @property \DateTime|null $dateCreated
* @property \DateTime|null $dateUpdated
* @property string|null $sid
* @property string|null $accountSid
* @property string|null $friendlyName
* @property string|null $language
* @property array|null $variables
* @property array|null $types
* @property array|null $approvalRequests
*/
class ContentAndApprovalsInstance extends InstanceResource
{
/**
* Initialize the ContentAndApprovalsInstance
*
* @param Version $version Version that contains the resource
* @param mixed[] $payload The response payload
*/
public function __construct(Version $version, array $payload)
{
parent::__construct($version);

// Marshaled Properties
$this->properties = [
'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
'sid' => Values::array_get($payload, 'sid'),
'accountSid' => Values::array_get($payload, 'account_sid'),
'friendlyName' => Values::array_get($payload, 'friendly_name'),
'language' => Values::array_get($payload, 'language'),
'variables' => Values::array_get($payload, 'variables'),
'types' => Values::array_get($payload, 'types'),
'approvalRequests' => Values::array_get($payload, 'approval_requests'),
];

$this->solution = [];
}

/**
* Magic getter to access properties
*
* @param string $name Property to access
* @return mixed The requested property
* @throws TwilioException For unknown properties
*/
public function __get(string $name)
{
if (\array_key_exists($name, $this->properties)) {
return $this->properties[$name];
}

if (\property_exists($this, '_' . $name)) {
$method = 'get' . \ucfirst($name);
return $this->$method();
}

throw new TwilioException('Unknown property: ' . $name);
}

/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string
{
return '[Twilio.Content.V2.ContentAndApprovalsInstance]';
}
}

Loading

0 comments on commit 46c890f

Please sign in to comment.