Skip to content

Commit 018a764

Browse files
committed
[Librarian] Regenerated @ 42b8ce059dcc13e9d9713dbf88dcec856be2bbc9
1 parent 62e7d60 commit 018a764

21 files changed

+252
-1588
lines changed

CHANGES.md

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

4+
[2023-05-04] Version 6.6.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 6.5.0
514
--------------------------
615
**Library - Docs**

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,6 @@ public List<KeyValuePair<string, string>> GetParams()
192192
public class ReadConversationOptions : ReadOptions<ConversationResource>
193193
{
194194

195-
///<summary> 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. </summary>
196-
public string StartDate { get; set; }
197-
198-
///<summary> 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. </summary>
199-
public string EndDate { get; set; }
200-
201-
///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>
202-
public ConversationResource.StateEnum State { get; set; }
203-
204195

205196

206197

@@ -210,18 +201,6 @@ public override List<KeyValuePair<string, string>> GetParams()
210201
{
211202
var p = new List<KeyValuePair<string, string>>();
212203

213-
if (StartDate != null)
214-
{
215-
p.Add(new KeyValuePair<string, string>("StartDate", StartDate));
216-
}
217-
if (EndDate != null)
218-
{
219-
p.Add(new KeyValuePair<string, string>("EndDate", EndDate));
220-
}
221-
if (State != null)
222-
{
223-
p.Add(new KeyValuePair<string, string>("State", State.ToString()));
224-
}
225204
if (PageSize != null)
226205
{
227206
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));

src/Twilio/Rest/Conversations/V1/ConversationResource.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -336,43 +336,31 @@ public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource
336336
}
337337
#endif
338338
/// <summary> Retrieve a list of conversations in your account's default service </summary>
339-
/// <param name="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. </param>
340-
/// <param name="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. </param>
341-
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
342339
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
343340
/// <param name="limit"> Record limit </param>
344341
/// <param name="client"> Client to make requests to Twilio </param>
345342
/// <returns> A single instance of Conversation </returns>
346343
public static ResourceSet<ConversationResource> Read(
347-
string startDate = null,
348-
string endDate = null,
349-
ConversationResource.StateEnum state = null,
350344
int? pageSize = null,
351345
long? limit = null,
352346
ITwilioRestClient client = null)
353347
{
354-
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
348+
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
355349
return Read(options, client);
356350
}
357351

358352
#if !NET35
359353
/// <summary> Retrieve a list of conversations in your account's default service </summary>
360-
/// <param name="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. </param>
361-
/// <param name="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. </param>
362-
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
363354
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
364355
/// <param name="limit"> Record limit </param>
365356
/// <param name="client"> Client to make requests to Twilio </param>
366357
/// <returns> Task that resolves to A single instance of Conversation </returns>
367358
public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource>> ReadAsync(
368-
string startDate = null,
369-
string endDate = null,
370-
ConversationResource.StateEnum state = null,
371359
int? pageSize = null,
372360
long? limit = null,
373361
ITwilioRestClient client = null)
374362
{
375-
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
363+
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
376364
return await ReadAsync(options, client);
377365
}
378366
#endif

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,6 @@ public class ReadConversationOptions : ReadOptions<ConversationResource>
214214
///<summary> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </summary>
215215
public string PathChatServiceSid { get; }
216216

217-
///<summary> 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. </summary>
218-
public string StartDate { get; set; }
219-
220-
///<summary> 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. </summary>
221-
public string EndDate { get; set; }
222-
223-
///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>
224-
public ConversationResource.StateEnum State { get; set; }
225-
226217

227218

228219
/// <summary> Construct a new ListServiceConversationOptions </summary>
@@ -238,18 +229,6 @@ public override List<KeyValuePair<string, string>> GetParams()
238229
{
239230
var p = new List<KeyValuePair<string, string>>();
240231

241-
if (StartDate != null)
242-
{
243-
p.Add(new KeyValuePair<string, string>("StartDate", StartDate));
244-
}
245-
if (EndDate != null)
246-
{
247-
p.Add(new KeyValuePair<string, string>("EndDate", EndDate));
248-
}
249-
if (State != null)
250-
{
251-
p.Add(new KeyValuePair<string, string>("State", State.ToString()));
252-
}
253232
if (PageSize != null)
254233
{
255234
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));

src/Twilio/Rest/Conversations/V1/Service/ConversationResource.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -354,46 +354,34 @@ public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource
354354
#endif
355355
/// <summary> Retrieve a list of conversations in your service </summary>
356356
/// <param name="pathChatServiceSid"> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </param>
357-
/// <param name="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. </param>
358-
/// <param name="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. </param>
359-
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
360357
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
361358
/// <param name="limit"> Record limit </param>
362359
/// <param name="client"> Client to make requests to Twilio </param>
363360
/// <returns> A single instance of Conversation </returns>
364361
public static ResourceSet<ConversationResource> Read(
365362
string pathChatServiceSid,
366-
string startDate = null,
367-
string endDate = null,
368-
ConversationResource.StateEnum state = null,
369363
int? pageSize = null,
370364
long? limit = null,
371365
ITwilioRestClient client = null)
372366
{
373-
var options = new ReadConversationOptions(pathChatServiceSid){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
367+
var options = new ReadConversationOptions(pathChatServiceSid){ PageSize = pageSize, Limit = limit};
374368
return Read(options, client);
375369
}
376370

377371
#if !NET35
378372
/// <summary> Retrieve a list of conversations in your service </summary>
379373
/// <param name="pathChatServiceSid"> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </param>
380-
/// <param name="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. </param>
381-
/// <param name="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. </param>
382-
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
383374
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
384375
/// <param name="limit"> Record limit </param>
385376
/// <param name="client"> Client to make requests to Twilio </param>
386377
/// <returns> Task that resolves to A single instance of Conversation </returns>
387378
public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource>> ReadAsync(
388379
string pathChatServiceSid,
389-
string startDate = null,
390-
string endDate = null,
391-
ConversationResource.StateEnum state = null,
392380
int? pageSize = null,
393381
long? limit = null,
394382
ITwilioRestClient client = null)
395383
{
396-
var options = new ReadConversationOptions(pathChatServiceSid){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
384+
var options = new ReadConversationOptions(pathChatServiceSid){ PageSize = pageSize, Limit = limit};
397385
return await ReadAsync(options, client);
398386
}
399387
#endif

src/Twilio/Rest/FlexApi/V1/AssessmentsOptions.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ namespace Twilio.Rest.FlexApi.V1
2828
public class CreateAssessmentsOptions : IOptions<AssessmentsResource>
2929
{
3030

31-
///<summary> The id of the category </summary>
32-
public string CategoryId { get; }
31+
///<summary> The SID of the category </summary>
32+
public string CategorySid { get; }
3333

3434
///<summary> The name of the category </summary>
3535
public string CategoryName { get; }
@@ -49,7 +49,7 @@ public class CreateAssessmentsOptions : IOptions<AssessmentsResource>
4949
///<summary> The offset of the conversation. </summary>
5050
public decimal? Offset { get; }
5151

52-
///<summary> The question Id selected for assessment </summary>
52+
///<summary> The question SID selected for assessment </summary>
5353
public string MetricId { get; }
5454

5555
///<summary> The question name of the assessment </summary>
@@ -61,29 +61,29 @@ public class CreateAssessmentsOptions : IOptions<AssessmentsResource>
6161
///<summary> The id of the answer selected by user </summary>
6262
public string AnswerId { get; }
6363

64-
///<summary> Questionnaire Id of the associated question </summary>
65-
public string QuestionnaireId { get; }
64+
///<summary> Questionnaire SID of the associated question </summary>
65+
public string QuestionnaireSid { get; }
6666

6767
///<summary> The Token HTTP request header </summary>
6868
public string Token { get; set; }
6969

7070

7171
/// <summary> Construct a new CreateInsightsAssessmentsOptions </summary>
72-
/// <param name="categoryId"> The id of the category </param>
72+
/// <param name="categorySid"> The SID of the category </param>
7373
/// <param name="categoryName"> The name of the category </param>
7474
/// <param name="segmentId"> Segment Id of the conversation </param>
7575
/// <param name="userName"> Name of the user assessing conversation </param>
7676
/// <param name="userEmail"> Email of the user assessing conversation </param>
7777
/// <param name="agentId"> The id of the Agent </param>
7878
/// <param name="offset"> The offset of the conversation. </param>
79-
/// <param name="metricId"> The question Id selected for assessment </param>
79+
/// <param name="metricId"> The question SID selected for assessment </param>
8080
/// <param name="metricName"> The question name of the assessment </param>
8181
/// <param name="answerText"> The answer text selected by user </param>
8282
/// <param name="answerId"> The id of the answer selected by user </param>
83-
/// <param name="questionnaireId"> Questionnaire Id of the associated question </param>
84-
public CreateAssessmentsOptions(string categoryId, string categoryName, string segmentId, string userName, string userEmail, string agentId, decimal? offset, string metricId, string metricName, string answerText, string answerId, string questionnaireId)
83+
/// <param name="questionnaireSid"> Questionnaire SID of the associated question </param>
84+
public CreateAssessmentsOptions(string categorySid, string categoryName, string segmentId, string userName, string userEmail, string agentId, decimal? offset, string metricId, string metricName, string answerText, string answerId, string questionnaireSid)
8585
{
86-
CategoryId = categoryId;
86+
CategorySid = categorySid;
8787
CategoryName = categoryName;
8888
SegmentId = segmentId;
8989
UserName = userName;
@@ -94,7 +94,7 @@ public CreateAssessmentsOptions(string categoryId, string categoryName, string s
9494
MetricName = metricName;
9595
AnswerText = answerText;
9696
AnswerId = answerId;
97-
QuestionnaireId = questionnaireId;
97+
QuestionnaireSid = questionnaireSid;
9898
}
9999

100100

@@ -103,9 +103,9 @@ public List<KeyValuePair<string, string>> GetParams()
103103
{
104104
var p = new List<KeyValuePair<string, string>>();
105105

106-
if (CategoryId != null)
106+
if (CategorySid != null)
107107
{
108-
p.Add(new KeyValuePair<string, string>("CategoryId", CategoryId));
108+
p.Add(new KeyValuePair<string, string>("CategorySid", CategorySid));
109109
}
110110
if (CategoryName != null)
111111
{
@@ -147,9 +147,9 @@ public List<KeyValuePair<string, string>> GetParams()
147147
{
148148
p.Add(new KeyValuePair<string, string>("AnswerId", AnswerId));
149149
}
150-
if (QuestionnaireId != null)
150+
if (QuestionnaireSid != null)
151151
{
152-
p.Add(new KeyValuePair<string, string>("QuestionnaireId", QuestionnaireId));
152+
p.Add(new KeyValuePair<string, string>("QuestionnaireSid", QuestionnaireSid));
153153
}
154154
return p;
155155
}
@@ -213,8 +213,8 @@ public List<KeyValuePair<string, string>> GetHeaderParams()
213213
public class UpdateAssessmentsOptions : IOptions<AssessmentsResource>
214214
{
215215

216-
///<summary> The id of the assessment to be modified </summary>
217-
public string PathAssessmentId { get; }
216+
///<summary> The SID of the assessment to be modified </summary>
217+
public string PathAssessmentSid { get; }
218218

219219
///<summary> The offset of the conversation </summary>
220220
public decimal? Offset { get; }
@@ -231,13 +231,13 @@ public class UpdateAssessmentsOptions : IOptions<AssessmentsResource>
231231

232232

233233
/// <summary> Construct a new UpdateInsightsAssessmentsOptions </summary>
234-
/// <param name="pathAssessmentId"> The id of the assessment to be modified </param>
234+
/// <param name="pathAssessmentSid"> The SID of the assessment to be modified </param>
235235
/// <param name="offset"> The offset of the conversation </param>
236236
/// <param name="answerText"> The answer text selected by user </param>
237237
/// <param name="answerId"> The id of the answer selected by user </param>
238-
public UpdateAssessmentsOptions(string pathAssessmentId, decimal? offset, string answerText, string answerId)
238+
public UpdateAssessmentsOptions(string pathAssessmentSid, decimal? offset, string answerText, string answerId)
239239
{
240-
PathAssessmentId = pathAssessmentId;
240+
PathAssessmentSid = pathAssessmentSid;
241241
Offset = offset;
242242
AnswerText = answerText;
243243
AnswerId = answerId;

0 commit comments

Comments
 (0)