Skip to content

Commit 46c890f

Browse files
committed
[Librarian] Regenerated @ 1baa147fbfa3bf2798f86ec43796ef1df42570d4 a3170b07f36450c6d179edf9b044cbf5f6b94e3a
1 parent b90dcef commit 46c890f

File tree

73 files changed

+3847
-736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3847
-736
lines changed

CHANGES.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
twilio-php Changelog
22
====================
33

4+
[2024-05-24] Version 8.1.0
5+
--------------------------
6+
**Library - Docs**
7+
- [PR #807](https://github.com/twilio/twilio-php/pull/807): updated readme with page example. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
9+
**Library - Chore**
10+
- [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)!
11+
12+
**Api**
13+
- Add ie1 as supported region for UserDefinedMessage and UserDefinedMessageSubscription.
14+
15+
**Flex**
16+
- Adding validated field to `plugin_versions`
17+
- Corrected the data type for `runtime_domain`, `call_recording_webhook_url`, `crm_callback_url`, `crm_fallback_url`, `flex_url` in Flex Configuration
18+
- Making `routing` optional in Create Interactions endpoint
19+
20+
**Intelligence**
21+
- Expose operator authoring apis to public visibility
22+
- Deleted `language_code` parameter from updating service in v2 **(breaking change)**
23+
- Add read_only_attached_operator_sids to v2 services
24+
25+
**Numbers**
26+
- Add API endpoint for GET Porting Webhook Configurations By Account SID
27+
- Remove bulk portability api under version `/v1`. **(breaking change)**
28+
- Removed porting_port_in_fetch.json files and move the content into porting_port_in.json files
29+
- Add API endpoint to deleting Webhook Configurations
30+
- Add Get Phone Number by Port in request SID and Phone Number SID api
31+
- Add Create Porting webhook configuration API
32+
- Added bundle_sid and losing_carrier_information fields to Create PortInRequest api to support Japan porting
33+
34+
**Taskrouter**
35+
- Add back `routing_target` property to tasks
36+
- Add back `ignore_capacity` property to tasks
37+
- Removing `routing_target` property to tasks due to revert
38+
- Removing `ignore_capacity` property to tasks due to revert
39+
- Add `routing_target` property to tasks
40+
- Add `ignore_capacity` property to tasks
41+
42+
**Trusthub**
43+
- Add new field errors to bundle as part of public API response in customer_profile.json and trust_product.json **(breaking change)**
44+
- Add themeSetId field in compliance_tollfree_inquiry.
45+
46+
**Verify**
47+
- Update `friendly_name` description on service docs
48+
49+
450
[2024-04-18] Version 8.0.1
551
--------------------------
652
**Flex**

src/Twilio/Rest/Client.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
* @property Intelligence $intelligence
3232
* @property IpMessaging $ipMessaging
3333
* @property Lookups $lookups
34-
* @property PreviewMessaging $previewMessaging
3534
* @property Messaging $messaging
3635
* @property Microvisor $microvisor
3736
* @property Monitor $monitor
@@ -110,7 +109,6 @@ class Client extends BaseClient {
110109
protected $_intelligence;
111110
protected $_ipMessaging;
112111
protected $_lookups;
113-
protected $_previewMessaging;
114112
protected $_messaging;
115113
protected $_microvisor;
116114
protected $_monitor;
@@ -276,17 +274,6 @@ protected function getLookups(): Lookups {
276274
}
277275
return $this->_lookups;
278276
}
279-
/**
280-
* Access the PreviewMessaging Twilio Domain
281-
*
282-
* @return PreviewMessaging PreviewMessaging Twilio Domain
283-
*/
284-
protected function getPreviewMessaging(): PreviewMessaging {
285-
if (!$this->_previewMessaging) {
286-
$this->_previewMessaging = new PreviewMessaging($this);
287-
}
288-
return $this->_previewMessaging;
289-
}
290277
/**
291278
* Access the Messaging Twilio Domain
292279
*

src/Twilio/Rest/PreviewMessaging/V1.php renamed to src/Twilio/Rest/Content/V2.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,57 +5,57 @@
55
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
66
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
77
*
8-
* Bulk Messaging and Broadcast
9-
* 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.
8+
* Twilio - Content
9+
* This is the public Twilio REST API.
1010
*
1111
* NOTE: This class is auto generated by OpenAPI Generator.
1212
* https://openapi-generator.tech
1313
* Do not edit the class manually.
1414
*/
1515

16-
namespace Twilio\Rest\PreviewMessaging;
16+
namespace Twilio\Rest\Content;
1717

1818
use Twilio\Domain;
1919
use Twilio\Exceptions\TwilioException;
2020
use Twilio\InstanceContext;
21-
use Twilio\Rest\PreviewMessaging\V1\BroadcastList;
22-
use Twilio\Rest\PreviewMessaging\V1\MessageList;
21+
use Twilio\Rest\Content\V2\ContentList;
22+
use Twilio\Rest\Content\V2\ContentAndApprovalsList;
2323
use Twilio\Version;
2424

2525
/**
26-
* @property BroadcastList $broadcasts
27-
* @property MessageList $messages
26+
* @property ContentList $contents
27+
* @property ContentAndApprovalsList $contentAndApprovals
2828
*/
29-
class V1 extends Version
29+
class V2 extends Version
3030
{
31-
protected $_broadcasts;
32-
protected $_messages;
31+
protected $_contents;
32+
protected $_contentAndApprovals;
3333

3434
/**
35-
* Construct the V1 version of PreviewMessaging
35+
* Construct the V2 version of Content
3636
*
3737
* @param Domain $domain Domain that contains the version
3838
*/
3939
public function __construct(Domain $domain)
4040
{
4141
parent::__construct($domain);
42-
$this->version = 'v1';
42+
$this->version = 'v2';
4343
}
4444

45-
protected function getBroadcasts(): BroadcastList
45+
protected function getContents(): ContentList
4646
{
47-
if (!$this->_broadcasts) {
48-
$this->_broadcasts = new BroadcastList($this);
47+
if (!$this->_contents) {
48+
$this->_contents = new ContentList($this);
4949
}
50-
return $this->_broadcasts;
50+
return $this->_contents;
5151
}
5252

53-
protected function getMessages(): MessageList
53+
protected function getContentAndApprovals(): ContentAndApprovalsList
5454
{
55-
if (!$this->_messages) {
56-
$this->_messages = new MessageList($this);
55+
if (!$this->_contentAndApprovals) {
56+
$this->_contentAndApprovals = new ContentAndApprovalsList($this);
5757
}
58-
return $this->_messages;
58+
return $this->_contentAndApprovals;
5959
}
6060

6161
/**
@@ -100,6 +100,6 @@ public function __call(string $name, array $arguments): InstanceContext
100100
*/
101101
public function __toString(): string
102102
{
103-
return '[Twilio.PreviewMessaging.V1]';
103+
return '[Twilio.Content.V2]';
104104
}
105105
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?php
2+
3+
/**
4+
* This code was generated by
5+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
6+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
7+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
8+
*
9+
* Twilio - Content
10+
* This is the public Twilio REST API.
11+
*
12+
* NOTE: This class is auto generated by OpenAPI Generator.
13+
* https://openapi-generator.tech
14+
* Do not edit the class manually.
15+
*/
16+
17+
18+
namespace Twilio\Rest\Content\V2;
19+
20+
use Twilio\Exceptions\TwilioException;
21+
use Twilio\InstanceResource;
22+
use Twilio\Values;
23+
use Twilio\Version;
24+
use Twilio\Deserialize;
25+
26+
27+
/**
28+
* @property \DateTime|null $dateCreated
29+
* @property \DateTime|null $dateUpdated
30+
* @property string|null $sid
31+
* @property string|null $accountSid
32+
* @property string|null $friendlyName
33+
* @property string|null $language
34+
* @property array|null $variables
35+
* @property array|null $types
36+
* @property array|null $approvalRequests
37+
*/
38+
class ContentAndApprovalsInstance extends InstanceResource
39+
{
40+
/**
41+
* Initialize the ContentAndApprovalsInstance
42+
*
43+
* @param Version $version Version that contains the resource
44+
* @param mixed[] $payload The response payload
45+
*/
46+
public function __construct(Version $version, array $payload)
47+
{
48+
parent::__construct($version);
49+
50+
// Marshaled Properties
51+
$this->properties = [
52+
'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
53+
'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
54+
'sid' => Values::array_get($payload, 'sid'),
55+
'accountSid' => Values::array_get($payload, 'account_sid'),
56+
'friendlyName' => Values::array_get($payload, 'friendly_name'),
57+
'language' => Values::array_get($payload, 'language'),
58+
'variables' => Values::array_get($payload, 'variables'),
59+
'types' => Values::array_get($payload, 'types'),
60+
'approvalRequests' => Values::array_get($payload, 'approval_requests'),
61+
];
62+
63+
$this->solution = [];
64+
}
65+
66+
/**
67+
* Magic getter to access properties
68+
*
69+
* @param string $name Property to access
70+
* @return mixed The requested property
71+
* @throws TwilioException For unknown properties
72+
*/
73+
public function __get(string $name)
74+
{
75+
if (\array_key_exists($name, $this->properties)) {
76+
return $this->properties[$name];
77+
}
78+
79+
if (\property_exists($this, '_' . $name)) {
80+
$method = 'get' . \ucfirst($name);
81+
return $this->$method();
82+
}
83+
84+
throw new TwilioException('Unknown property: ' . $name);
85+
}
86+
87+
/**
88+
* Provide a friendly representation
89+
*
90+
* @return string Machine friendly representation
91+
*/
92+
public function __toString(): string
93+
{
94+
return '[Twilio.Content.V2.ContentAndApprovalsInstance]';
95+
}
96+
}
97+

0 commit comments

Comments
 (0)