Skip to content

Commit 19322dc

Browse files
committed
[Librarian] Regenerated @ 42b8ce059dcc13e9d9713dbf88dcec856be2bbc9
1 parent db64f7b commit 19322dc

37 files changed

+199
-1989
lines changed

CHANGES.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
twilio-php Changelog
22
====================
33

4+
[2023-05-04] Version 7.4.0
5+
--------------------------
6+
**Conversations**
7+
- Remove `start_date`, `end_date` and `state` query parameters from list operation on Conversations resource **(breaking change)**
8+
9+
**Twiml**
10+
- Add support for new Amazon Polly voices (Q1 2023) for `Say` verb
11+
12+
413
[2023-04-19] Version 7.3.0
514
--------------------------
615
**Library - Docs**

src/Twilio/Rest/Conversations/V1/ConversationList.php

+4-14
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function create(array $options = []): ConversationInstance
9393
* Unlike stream(), this operation is eager and will load `limit` records into
9494
* memory before returning.
9595
*
96-
* @param array|Options $options Optional Arguments
9796
* @param int $limit Upper limit for the number of records to return. read()
9897
* guarantees to never return more than limit. Default is no
9998
* limit
@@ -104,9 +103,9 @@ public function create(array $options = []): ConversationInstance
104103
* efficient page size, i.e. min(limit, 1000)
105104
* @return ConversationInstance[] Array of results
106105
*/
107-
public function read(array $options = [], int $limit = null, $pageSize = null): array
106+
public function read(int $limit = null, $pageSize = null): array
108107
{
109-
return \iterator_to_array($this->stream($options, $limit, $pageSize), false);
108+
return \iterator_to_array($this->stream($limit, $pageSize), false);
110109
}
111110

112111
/**
@@ -117,7 +116,6 @@ public function read(array $options = [], int $limit = null, $pageSize = null):
117116
* The results are returned as a generator, so this operation is memory
118117
* efficient.
119118
*
120-
* @param array|Options $options Optional Arguments
121119
* @param int $limit Upper limit for the number of records to return. stream()
122120
* guarantees to never return more than limit. Default is no
123121
* limit
@@ -128,11 +126,11 @@ public function read(array $options = [], int $limit = null, $pageSize = null):
128126
* efficient page size, i.e. min(limit, 1000)
129127
* @return Stream stream of results
130128
*/
131-
public function stream(array $options = [], int $limit = null, $pageSize = null): Stream
129+
public function stream(int $limit = null, $pageSize = null): Stream
132130
{
133131
$limits = $this->version->readLimits($limit, $pageSize);
134132

135-
$page = $this->page($options, $limits['pageSize']);
133+
$page = $this->page($limits['pageSize']);
136134

137135
return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
138136
}
@@ -147,21 +145,13 @@ public function stream(array $options = [], int $limit = null, $pageSize = null)
147145
* @return ConversationPage Page of ConversationInstance
148146
*/
149147
public function page(
150-
array $options = [],
151148
$pageSize = Values::NONE,
152149
string $pageToken = Values::NONE,
153150
$pageNumber = Values::NONE
154151
): ConversationPage
155152
{
156-
$options = new Values($options);
157153

158154
$params = Values::of([
159-
'StartDate' =>
160-
$options['startDate'],
161-
'EndDate' =>
162-
$options['endDate'],
163-
'State' =>
164-
$options['state'],
165155
'PageToken' => $pageToken,
166156
'Page' => $pageNumber,
167157
'PageSize' => $pageSize,

src/Twilio/Rest/Conversations/V1/ConversationOptions.php

-86
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,6 @@ public static function delete(
7878
}
7979

8080

81-
/**
82-
* @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
83-
* @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
84-
* @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
85-
* @return ReadConversationOptions Options builder
86-
*/
87-
public static function read(
88-
89-
string $startDate = Values::NONE,
90-
string $endDate = Values::NONE,
91-
string $state = Values::NONE
92-
93-
): ReadConversationOptions
94-
{
95-
return new ReadConversationOptions(
96-
$startDate,
97-
$endDate,
98-
$state
99-
);
100-
}
10181

10282
/**
10383
* @param string $friendlyName The human-readable name of this conversation, limited to 256 characters. Optional.
@@ -351,72 +331,6 @@ public function __toString(): string
351331
}
352332

353333

354-
class ReadConversationOptions extends Options
355-
{
356-
/**
357-
* @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
358-
* @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
359-
* @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
360-
*/
361-
public function __construct(
362-
363-
string $startDate = Values::NONE,
364-
string $endDate = Values::NONE,
365-
string $state = Values::NONE
366-
367-
) {
368-
$this->options['startDate'] = $startDate;
369-
$this->options['endDate'] = $endDate;
370-
$this->options['state'] = $state;
371-
}
372-
373-
/**
374-
* Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
375-
*
376-
* @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
377-
* @return $this Fluent Builder
378-
*/
379-
public function setStartDate(string $startDate): self
380-
{
381-
$this->options['startDate'] = $startDate;
382-
return $this;
383-
}
384-
385-
/**
386-
* End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
387-
*
388-
* @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
389-
* @return $this Fluent Builder
390-
*/
391-
public function setEndDate(string $endDate): self
392-
{
393-
$this->options['endDate'] = $endDate;
394-
return $this;
395-
}
396-
397-
/**
398-
* State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
399-
*
400-
* @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
401-
* @return $this Fluent Builder
402-
*/
403-
public function setState(string $state): self
404-
{
405-
$this->options['state'] = $state;
406-
return $this;
407-
}
408-
409-
/**
410-
* Provide a friendly representation
411-
*
412-
* @return string Machine friendly representation
413-
*/
414-
public function __toString(): string
415-
{
416-
$options = \http_build_query(Values::of($this->options), '', ' ');
417-
return '[Twilio.Conversations.V1.ReadConversationOptions ' . $options . ']';
418-
}
419-
}
420334

421335
class UpdateConversationOptions extends Options
422336
{

src/Twilio/Rest/Conversations/V1/Service/ConversationList.php

+4-14
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ public function create(array $options = []): ConversationInstance
100100
* Unlike stream(), this operation is eager and will load `limit` records into
101101
* memory before returning.
102102
*
103-
* @param array|Options $options Optional Arguments
104103
* @param int $limit Upper limit for the number of records to return. read()
105104
* guarantees to never return more than limit. Default is no
106105
* limit
@@ -111,9 +110,9 @@ public function create(array $options = []): ConversationInstance
111110
* efficient page size, i.e. min(limit, 1000)
112111
* @return ConversationInstance[] Array of results
113112
*/
114-
public function read(array $options = [], int $limit = null, $pageSize = null): array
113+
public function read(int $limit = null, $pageSize = null): array
115114
{
116-
return \iterator_to_array($this->stream($options, $limit, $pageSize), false);
115+
return \iterator_to_array($this->stream($limit, $pageSize), false);
117116
}
118117

119118
/**
@@ -124,7 +123,6 @@ public function read(array $options = [], int $limit = null, $pageSize = null):
124123
* The results are returned as a generator, so this operation is memory
125124
* efficient.
126125
*
127-
* @param array|Options $options Optional Arguments
128126
* @param int $limit Upper limit for the number of records to return. stream()
129127
* guarantees to never return more than limit. Default is no
130128
* limit
@@ -135,11 +133,11 @@ public function read(array $options = [], int $limit = null, $pageSize = null):
135133
* efficient page size, i.e. min(limit, 1000)
136134
* @return Stream stream of results
137135
*/
138-
public function stream(array $options = [], int $limit = null, $pageSize = null): Stream
136+
public function stream(int $limit = null, $pageSize = null): Stream
139137
{
140138
$limits = $this->version->readLimits($limit, $pageSize);
141139

142-
$page = $this->page($options, $limits['pageSize']);
140+
$page = $this->page($limits['pageSize']);
143141

144142
return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
145143
}
@@ -154,21 +152,13 @@ public function stream(array $options = [], int $limit = null, $pageSize = null)
154152
* @return ConversationPage Page of ConversationInstance
155153
*/
156154
public function page(
157-
array $options = [],
158155
$pageSize = Values::NONE,
159156
string $pageToken = Values::NONE,
160157
$pageNumber = Values::NONE
161158
): ConversationPage
162159
{
163-
$options = new Values($options);
164160

165161
$params = Values::of([
166-
'StartDate' =>
167-
$options['startDate'],
168-
'EndDate' =>
169-
$options['endDate'],
170-
'State' =>
171-
$options['state'],
172162
'PageToken' => $pageToken,
173163
'Page' => $pageNumber,
174164
'PageSize' => $pageSize,

src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.php

-86
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,6 @@ public static function delete(
7878
}
7979

8080

81-
/**
82-
* @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
83-
* @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
84-
* @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
85-
* @return ReadConversationOptions Options builder
86-
*/
87-
public static function read(
88-
89-
string $startDate = Values::NONE,
90-
string $endDate = Values::NONE,
91-
string $state = Values::NONE
92-
93-
): ReadConversationOptions
94-
{
95-
return new ReadConversationOptions(
96-
$startDate,
97-
$endDate,
98-
$state
99-
);
100-
}
10181

10282
/**
10383
* @param string $friendlyName The human-readable name of this conversation, limited to 256 characters. Optional.
@@ -351,72 +331,6 @@ public function __toString(): string
351331
}
352332

353333

354-
class ReadConversationOptions extends Options
355-
{
356-
/**
357-
* @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
358-
* @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
359-
* @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
360-
*/
361-
public function __construct(
362-
363-
string $startDate = Values::NONE,
364-
string $endDate = Values::NONE,
365-
string $state = Values::NONE
366-
367-
) {
368-
$this->options['startDate'] = $startDate;
369-
$this->options['endDate'] = $endDate;
370-
$this->options['state'] = $state;
371-
}
372-
373-
/**
374-
* Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
375-
*
376-
* @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
377-
* @return $this Fluent Builder
378-
*/
379-
public function setStartDate(string $startDate): self
380-
{
381-
$this->options['startDate'] = $startDate;
382-
return $this;
383-
}
384-
385-
/**
386-
* End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
387-
*
388-
* @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
389-
* @return $this Fluent Builder
390-
*/
391-
public function setEndDate(string $endDate): self
392-
{
393-
$this->options['endDate'] = $endDate;
394-
return $this;
395-
}
396-
397-
/**
398-
* State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
399-
*
400-
* @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
401-
* @return $this Fluent Builder
402-
*/
403-
public function setState(string $state): self
404-
{
405-
$this->options['state'] = $state;
406-
return $this;
407-
}
408-
409-
/**
410-
* Provide a friendly representation
411-
*
412-
* @return string Machine friendly representation
413-
*/
414-
public function __toString(): string
415-
{
416-
$options = \http_build_query(Values::of($this->options), '', ' ');
417-
return '[Twilio.Conversations.V1.ReadConversationOptions ' . $options . ']';
418-
}
419-
}
420334

421335
class UpdateConversationOptions extends Options
422336
{

src/Twilio/Rest/FlexApi/V1.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@
5555
* @property WebChannelList $webChannel
5656
* @method \Twilio\Rest\FlexApi\V1\ChannelContext channel(string $sid)
5757
* @method \Twilio\Rest\FlexApi\V1\FlexFlowContext flexFlow(string $sid)
58-
* @method \Twilio\Rest\FlexApi\V1\AssessmentsContext assessments(string $assessmentId)
59-
* @method \Twilio\Rest\FlexApi\V1\InsightsQuestionnairesContext insightsQuestionnaires(string $id)
60-
* @method \Twilio\Rest\FlexApi\V1\InsightsQuestionnairesCategoryContext insightsQuestionnairesCategory(string $categoryId)
61-
* @method \Twilio\Rest\FlexApi\V1\InsightsQuestionnairesQuestionContext insightsQuestionnairesQuestion(string $questionId)
62-
* @method \Twilio\Rest\FlexApi\V1\InsightsSegmentsContext insightsSegments(string $segmentId)
58+
* @method \Twilio\Rest\FlexApi\V1\AssessmentsContext assessments(string $assessmentSid)
59+
* @method \Twilio\Rest\FlexApi\V1\InsightsQuestionnairesContext insightsQuestionnaires(string $questionnaireSid)
60+
* @method \Twilio\Rest\FlexApi\V1\InsightsQuestionnairesCategoryContext insightsQuestionnairesCategory(string $categorySid)
61+
* @method \Twilio\Rest\FlexApi\V1\InsightsQuestionnairesQuestionContext insightsQuestionnairesQuestion(string $questionSid)
6362
* @method \Twilio\Rest\FlexApi\V1\InteractionContext interaction(string $sid)
6463
* @method \Twilio\Rest\FlexApi\V1\WebChannelContext webChannel(string $sid)
6564
*/

src/Twilio/Rest/FlexApi/V1/AssessmentsContext.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ class AssessmentsContext extends InstanceContext
3030
* Initialize the AssessmentsContext
3131
*
3232
* @param Version $version Version that contains the resource
33-
* @param string $assessmentId The id of the assessment to be modified
33+
* @param string $assessmentSid The SID of the assessment to be modified
3434
*/
3535
public function __construct(
3636
Version $version,
37-
$assessmentId
37+
$assessmentSid
3838
) {
3939
parent::__construct($version);
4040

4141
// Path Solution
4242
$this->solution = [
43-
'assessmentId' =>
44-
$assessmentId,
43+
'assessmentSid' =>
44+
$assessmentSid,
4545
];
4646

47-
$this->uri = '/Insights/QM/Assessments/' . \rawurlencode($assessmentId)
47+
$this->uri = '/Insights/QualityManagement/Assessments/' . \rawurlencode($assessmentSid)
4848
.'';
4949
}
5050

@@ -79,7 +79,7 @@ public function update(string $offset, string $answerText, string $answerId, arr
7979
return new AssessmentsInstance(
8080
$this->version,
8181
$payload,
82-
$this->solution['assessmentId']
82+
$this->solution['assessmentSid']
8383
);
8484
}
8585

0 commit comments

Comments
 (0)