Skip to content

Commit 4ffb035

Browse files
committed
[Librarian] Regenerated @ 330069c1eddda7f148dbcd8b26aaeec9c22b3409 3864ec4513c70a35c048caafc16ee3a36f3b2ed7
1 parent 33d79da commit 4ffb035

File tree

11 files changed

+208
-42
lines changed

11 files changed

+208
-42
lines changed

CHANGES.md

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

4+
[2025-06-12] Version 8.6.3
5+
--------------------------
6+
**Library - Fix**
7+
- [PR #867](https://github.com/twilio/twilio-php/pull/867): updating client to only use http and https. Thanks to [@manisha1997](https://github.com/manisha1997)!
8+
9+
**Api**
10+
- Change DependentPhoneNumber `capabilities` type `object` and `date_created`, `date_updated` to `date_time<rfc2822>`
11+
- Updated the `Default` value from 0 to 1 in the Recordings Resource `channels` property
12+
13+
**Serverless**
14+
- Update `ienum` type level in Logs api
15+
16+
**Verify**
17+
- Update Channel list in Verify Attempst API
18+
- Update `ienum` type for Conversion_Status in Verify Attempts API
19+
20+
**Twiml**
21+
- Add `us2` to the list of supported values for the region attribute in the `<Conference>` TwiML noun.
22+
23+
424
[2025-05-29] Version 8.6.2
525
--------------------------
626
**Api**

src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberInstance.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use Twilio\Values;
2323
use Twilio\Version;
2424
use Twilio\Deserialize;
25-
use Twilio\Base\PhoneNumberCapabilities;
2625

2726

2827
/**
@@ -35,14 +34,14 @@
3534
* @property string|null $voiceFallbackMethod
3635
* @property string|null $voiceFallbackUrl
3736
* @property bool|null $voiceCallerIdLookup
38-
* @property string|null $dateCreated
39-
* @property string|null $dateUpdated
37+
* @property \DateTime|null $dateCreated
38+
* @property \DateTime|null $dateUpdated
4039
* @property string|null $smsFallbackMethod
4140
* @property string|null $smsFallbackUrl
4241
* @property string|null $smsMethod
4342
* @property string|null $smsUrl
4443
* @property string $addressRequirements
45-
* @property PhoneNumberCapabilities|null $capabilities
44+
* @property array|null $capabilities
4645
* @property string|null $statusCallback
4746
* @property string|null $statusCallbackMethod
4847
* @property string|null $apiVersion
@@ -78,14 +77,14 @@ public function __construct(Version $version, array $payload, string $accountSid
7877
'voiceFallbackMethod' => Values::array_get($payload, 'voice_fallback_method'),
7978
'voiceFallbackUrl' => Values::array_get($payload, 'voice_fallback_url'),
8079
'voiceCallerIdLookup' => Values::array_get($payload, 'voice_caller_id_lookup'),
81-
'dateCreated' => Values::array_get($payload, 'date_created'),
82-
'dateUpdated' => Values::array_get($payload, 'date_updated'),
80+
'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')),
81+
'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')),
8382
'smsFallbackMethod' => Values::array_get($payload, 'sms_fallback_method'),
8483
'smsFallbackUrl' => Values::array_get($payload, 'sms_fallback_url'),
8584
'smsMethod' => Values::array_get($payload, 'sms_method'),
8685
'smsUrl' => Values::array_get($payload, 'sms_url'),
8786
'addressRequirements' => Values::array_get($payload, 'address_requirements'),
88-
'capabilities' => Deserialize::phoneNumberCapabilities(Values::array_get($payload, 'capabilities')),
87+
'capabilities' => Values::array_get($payload, 'capabilities'),
8988
'statusCallback' => Values::array_get($payload, 'status_callback'),
9089
'statusCallbackMethod' => Values::array_get($payload, 'status_callback_method'),
9190
'apiVersion' => Values::array_get($payload, 'api_version'),

src/Twilio/Rest/Api/V2010/Account/RecordingInstance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @property string|null $price
4141
* @property string|null $priceUnit
4242
* @property string $status
43-
* @property int $channels
43+
* @property int|null $channels
4444
* @property string $source
4545
* @property int|null $errorCode
4646
* @property string|null $uri

src/Twilio/Rest/Knowledge/V1/KnowledgeList.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
use Twilio\Exceptions\TwilioException;
2020
use Twilio\ListResource;
21+
use Twilio\Options;
2122
use Twilio\Stream;
2223
use Twilio\Values;
2324
use Twilio\Version;
@@ -68,6 +69,7 @@ public function create(KnowledgeV1ServiceCreateKnowledgeRequest $knowledgeV1Serv
6869
* Unlike stream(), this operation is eager and will load `limit` records into
6970
* memory before returning.
7071
*
72+
* @param array|Options $options Optional Arguments
7173
* @param int $limit Upper limit for the number of records to return. read()
7274
* guarantees to never return more than limit. Default is no
7375
* limit
@@ -78,9 +80,9 @@ public function create(KnowledgeV1ServiceCreateKnowledgeRequest $knowledgeV1Serv
7880
* efficient page size, i.e. min(limit, 1000)
7981
* @return KnowledgeInstance[] Array of results
8082
*/
81-
public function read(?int $limit = null, $pageSize = null): array
83+
public function read(array $options = [], ?int $limit = null, $pageSize = null): array
8284
{
83-
return \iterator_to_array($this->stream($limit, $pageSize), false);
85+
return \iterator_to_array($this->stream($options, $limit, $pageSize), false);
8486
}
8587

8688
/**
@@ -91,6 +93,7 @@ public function read(?int $limit = null, $pageSize = null): array
9193
* The results are returned as a generator, so this operation is memory
9294
* efficient.
9395
*
96+
* @param array|Options $options Optional Arguments
9497
* @param int $limit Upper limit for the number of records to return. stream()
9598
* guarantees to never return more than limit. Default is no
9699
* limit
@@ -101,11 +104,11 @@ public function read(?int $limit = null, $pageSize = null): array
101104
* efficient page size, i.e. min(limit, 1000)
102105
* @return Stream stream of results
103106
*/
104-
public function stream(?int $limit = null, $pageSize = null): Stream
107+
public function stream(array $options = [], ?int $limit = null, $pageSize = null): Stream
105108
{
106109
$limits = $this->version->readLimits($limit, $pageSize);
107110

108-
$page = $this->page($limits['pageSize']);
111+
$page = $this->page($options, $limits['pageSize']);
109112

110113
return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
111114
}
@@ -120,13 +123,17 @@ public function stream(?int $limit = null, $pageSize = null): Stream
120123
* @return KnowledgePage Page of KnowledgeInstance
121124
*/
122125
public function page(
126+
array $options = [],
123127
$pageSize = Values::NONE,
124128
string $pageToken = Values::NONE,
125129
$pageNumber = Values::NONE
126130
): KnowledgePage
127131
{
132+
$options = new Values($options);
128133

129134
$params = Values::of([
135+
'Tags' =>
136+
$options['tags'],
130137
'PageToken' => $pageToken,
131138
'Page' => $pageNumber,
132139
'PageSize' => $pageSize,
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?php
2+
/**
3+
* This code was generated by
4+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7+
*
8+
* Twilio - Knowledge
9+
* This is the public Twilio REST API.
10+
*
11+
* NOTE: This class is auto generated by OpenAPI Generator.
12+
* https://openapi-generator.tech
13+
* Do not edit the class manually.
14+
*/
15+
16+
namespace Twilio\Rest\Knowledge\V1;
17+
18+
use Twilio\Options;
19+
use Twilio\Values;
20+
21+
abstract class KnowledgeOptions
22+
{
23+
24+
25+
26+
/**
27+
* @param string $tags Json array of tag and value pairs for tag filtering.
28+
* @return ReadKnowledgeOptions Options builder
29+
*/
30+
public static function read(
31+
32+
string $tags = Values::NONE
33+
34+
): ReadKnowledgeOptions
35+
{
36+
return new ReadKnowledgeOptions(
37+
$tags
38+
);
39+
}
40+
41+
42+
}
43+
44+
45+
46+
47+
class ReadKnowledgeOptions extends Options
48+
{
49+
/**
50+
* @param string $tags Json array of tag and value pairs for tag filtering.
51+
*/
52+
public function __construct(
53+
54+
string $tags = Values::NONE
55+
56+
) {
57+
$this->options['tags'] = $tags;
58+
}
59+
60+
/**
61+
* Json array of tag and value pairs for tag filtering.
62+
*
63+
* @param string $tags Json array of tag and value pairs for tag filtering.
64+
* @return $this Fluent Builder
65+
*/
66+
public function setTags(string $tags): self
67+
{
68+
$this->options['tags'] = $tags;
69+
return $this;
70+
}
71+
72+
/**
73+
* Provide a friendly representation
74+
*
75+
* @return string Machine friendly representation
76+
*/
77+
public function __toString(): string
78+
{
79+
$options = \http_build_query(Values::of($this->options), '', ' ');
80+
return '[Twilio.Knowledge.V1.ReadKnowledgeOptions ' . $options . ']';
81+
}
82+
}
83+
84+

src/Twilio/Rest/Messaging/V1/Service/DestinationAlphaSenderList.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function create(string $alphaSender, array $options = []): DestinationAlp
8585
* Unlike stream(), this operation is eager and will load `limit` records into
8686
* memory before returning.
8787
*
88+
* @param array|Options $options Optional Arguments
8889
* @param int $limit Upper limit for the number of records to return. read()
8990
* guarantees to never return more than limit. Default is no
9091
* limit
@@ -95,9 +96,9 @@ public function create(string $alphaSender, array $options = []): DestinationAlp
9596
* efficient page size, i.e. min(limit, 1000)
9697
* @return DestinationAlphaSenderInstance[] Array of results
9798
*/
98-
public function read(?int $limit = null, $pageSize = null): array
99+
public function read(array $options = [], ?int $limit = null, $pageSize = null): array
99100
{
100-
return \iterator_to_array($this->stream($limit, $pageSize), false);
101+
return \iterator_to_array($this->stream($options, $limit, $pageSize), false);
101102
}
102103

103104
/**
@@ -108,6 +109,7 @@ public function read(?int $limit = null, $pageSize = null): array
108109
* The results are returned as a generator, so this operation is memory
109110
* efficient.
110111
*
112+
* @param array|Options $options Optional Arguments
111113
* @param int $limit Upper limit for the number of records to return. stream()
112114
* guarantees to never return more than limit. Default is no
113115
* limit
@@ -118,11 +120,11 @@ public function read(?int $limit = null, $pageSize = null): array
118120
* efficient page size, i.e. min(limit, 1000)
119121
* @return Stream stream of results
120122
*/
121-
public function stream(?int $limit = null, $pageSize = null): Stream
123+
public function stream(array $options = [], ?int $limit = null, $pageSize = null): Stream
122124
{
123125
$limits = $this->version->readLimits($limit, $pageSize);
124126

125-
$page = $this->page($limits['pageSize']);
127+
$page = $this->page($options, $limits['pageSize']);
126128

127129
return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
128130
}
@@ -137,13 +139,17 @@ public function stream(?int $limit = null, $pageSize = null): Stream
137139
* @return DestinationAlphaSenderPage Page of DestinationAlphaSenderInstance
138140
*/
139141
public function page(
142+
array $options = [],
140143
$pageSize = Values::NONE,
141144
string $pageToken = Values::NONE,
142145
$pageNumber = Values::NONE
143146
): DestinationAlphaSenderPage
144147
{
148+
$options = new Values($options);
145149

146150
$params = Values::of([
151+
'IsoCountryCode' =>
152+
$options['isoCountryCode'],
147153
'PageToken' => $pageToken,
148154
'Page' => $pageNumber,
149155
'PageSize' => $pageSize,

src/Twilio/Rest/Messaging/V1/Service/DestinationAlphaSenderOptions.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ public static function create(
3737

3838

3939

40+
/**
41+
* @param string $isoCountryCode Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.
42+
* @return ReadDestinationAlphaSenderOptions Options builder
43+
*/
44+
public static function read(
45+
46+
string $isoCountryCode = Values::NONE
47+
48+
): ReadDestinationAlphaSenderOptions
49+
{
50+
return new ReadDestinationAlphaSenderOptions(
51+
$isoCountryCode
52+
);
53+
}
4054

4155
}
4256

@@ -79,4 +93,40 @@ public function __toString(): string
7993

8094

8195

96+
class ReadDestinationAlphaSenderOptions extends Options
97+
{
98+
/**
99+
* @param string $isoCountryCode Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.
100+
*/
101+
public function __construct(
102+
103+
string $isoCountryCode = Values::NONE
104+
105+
) {
106+
$this->options['isoCountryCode'] = $isoCountryCode;
107+
}
108+
109+
/**
110+
* Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.
111+
*
112+
* @param string $isoCountryCode Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.
113+
* @return $this Fluent Builder
114+
*/
115+
public function setIsoCountryCode(string $isoCountryCode): self
116+
{
117+
$this->options['isoCountryCode'] = $isoCountryCode;
118+
return $this;
119+
}
120+
121+
/**
122+
* Provide a friendly representation
123+
*
124+
* @return string Machine friendly representation
125+
*/
126+
public function __toString(): string
127+
{
128+
$options = \http_build_query(Values::of($this->options), '', ' ');
129+
return '[Twilio.Messaging.V1.ReadDestinationAlphaSenderOptions ' . $options . ']';
130+
}
131+
}
82132

0 commit comments

Comments
 (0)