Skip to content

Commit

Permalink
[Librarian] Regenerated @ 42b8ce059dcc13e9d9713dbf88dcec856be2bbc9
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed May 4, 2023
1 parent 62e7d60 commit 018a764
Show file tree
Hide file tree
Showing 21 changed files with 252 additions and 1,588 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
twilio-csharp Changelog
=======================

[2023-05-04] Version 6.6.0
--------------------------
**Conversations**
- Remove `start_date`, `end_date` and `state` query parameters from list operation on Conversations resource **(breaking change)**

**Twiml**
- Add support for new Amazon Polly voices (Q1 2023) for `Say` verb


[2023-04-19] Version 6.5.0
--------------------------
**Library - Docs**
Expand Down
21 changes: 0 additions & 21 deletions src/Twilio/Rest/Conversations/V1/ConversationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,6 @@ public List<KeyValuePair<string, string>> GetParams()
public class ReadConversationOptions : ReadOptions<ConversationResource>
{

///<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>
public string StartDate { get; set; }

///<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>
public string EndDate { get; set; }

///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>
public ConversationResource.StateEnum State { get; set; }




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

if (StartDate != null)
{
p.Add(new KeyValuePair<string, string>("StartDate", StartDate));
}
if (EndDate != null)
{
p.Add(new KeyValuePair<string, string>("EndDate", EndDate));
}
if (State != null)
{
p.Add(new KeyValuePair<string, string>("State", State.ToString()));
}
if (PageSize != null)
{
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
Expand Down
16 changes: 2 additions & 14 deletions src/Twilio/Rest/Conversations/V1/ConversationResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,43 +336,31 @@ public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource
}
#endif
/// <summary> Retrieve a list of conversations in your account's default service </summary>
/// <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>
/// <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>
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Conversation </returns>
public static ResourceSet<ConversationResource> Read(
string startDate = null,
string endDate = null,
ConversationResource.StateEnum state = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
return Read(options, client);
}

#if !NET35
/// <summary> Retrieve a list of conversations in your account's default service </summary>
/// <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>
/// <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>
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Conversation </returns>
public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource>> ReadAsync(
string startDate = null,
string endDate = null,
ConversationResource.StateEnum state = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
return await ReadAsync(options, client);
}
#endif
Expand Down
21 changes: 0 additions & 21 deletions src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,6 @@ public class ReadConversationOptions : ReadOptions<ConversationResource>
///<summary> The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. </summary>
public string PathChatServiceSid { get; }

///<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>
public string StartDate { get; set; }

///<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>
public string EndDate { get; set; }

///<summary> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </summary>
public ConversationResource.StateEnum State { get; set; }



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

if (StartDate != null)
{
p.Add(new KeyValuePair<string, string>("StartDate", StartDate));
}
if (EndDate != null)
{
p.Add(new KeyValuePair<string, string>("EndDate", EndDate));
}
if (State != null)
{
p.Add(new KeyValuePair<string, string>("State", State.ToString()));
}
if (PageSize != null)
{
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
Expand Down
16 changes: 2 additions & 14 deletions src/Twilio/Rest/Conversations/V1/Service/ConversationResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,46 +354,34 @@ public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource
#endif
/// <summary> Retrieve a list of conversations in your service </summary>
/// <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>
/// <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>
/// <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>
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Conversation </returns>
public static ResourceSet<ConversationResource> Read(
string pathChatServiceSid,
string startDate = null,
string endDate = null,
ConversationResource.StateEnum state = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadConversationOptions(pathChatServiceSid){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
var options = new ReadConversationOptions(pathChatServiceSid){ PageSize = pageSize, Limit = limit};
return Read(options, client);
}

#if !NET35
/// <summary> Retrieve a list of conversations in your service </summary>
/// <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>
/// <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>
/// <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>
/// <param name="state"> State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` </param>
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Conversation </returns>
public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource>> ReadAsync(
string pathChatServiceSid,
string startDate = null,
string endDate = null,
ConversationResource.StateEnum state = null,
int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadConversationOptions(pathChatServiceSid){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
var options = new ReadConversationOptions(pathChatServiceSid){ PageSize = pageSize, Limit = limit};
return await ReadAsync(options, client);
}
#endif
Expand Down
40 changes: 20 additions & 20 deletions src/Twilio/Rest/FlexApi/V1/AssessmentsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ namespace Twilio.Rest.FlexApi.V1
public class CreateAssessmentsOptions : IOptions<AssessmentsResource>
{

///<summary> The id of the category </summary>
public string CategoryId { get; }
///<summary> The SID of the category </summary>
public string CategorySid { get; }

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

///<summary> The question Id selected for assessment </summary>
///<summary> The question SID selected for assessment </summary>
public string MetricId { get; }

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

///<summary> Questionnaire Id of the associated question </summary>
public string QuestionnaireId { get; }
///<summary> Questionnaire SID of the associated question </summary>
public string QuestionnaireSid { get; }

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


/// <summary> Construct a new CreateInsightsAssessmentsOptions </summary>
/// <param name="categoryId"> The id of the category </param>
/// <param name="categorySid"> The SID of the category </param>
/// <param name="categoryName"> The name of the category </param>
/// <param name="segmentId"> Segment Id of the conversation </param>
/// <param name="userName"> Name of the user assessing conversation </param>
/// <param name="userEmail"> Email of the user assessing conversation </param>
/// <param name="agentId"> The id of the Agent </param>
/// <param name="offset"> The offset of the conversation. </param>
/// <param name="metricId"> The question Id selected for assessment </param>
/// <param name="metricId"> The question SID selected for assessment </param>
/// <param name="metricName"> The question name of the assessment </param>
/// <param name="answerText"> The answer text selected by user </param>
/// <param name="answerId"> The id of the answer selected by user </param>
/// <param name="questionnaireId"> Questionnaire Id of the associated question </param>
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)
/// <param name="questionnaireSid"> Questionnaire SID of the associated question </param>
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)
{
CategoryId = categoryId;
CategorySid = categorySid;
CategoryName = categoryName;
SegmentId = segmentId;
UserName = userName;
Expand All @@ -94,7 +94,7 @@ public CreateAssessmentsOptions(string categoryId, string categoryName, string s
MetricName = metricName;
AnswerText = answerText;
AnswerId = answerId;
QuestionnaireId = questionnaireId;
QuestionnaireSid = questionnaireSid;
}


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

if (CategoryId != null)
if (CategorySid != null)
{
p.Add(new KeyValuePair<string, string>("CategoryId", CategoryId));
p.Add(new KeyValuePair<string, string>("CategorySid", CategorySid));
}
if (CategoryName != null)
{
Expand Down Expand Up @@ -147,9 +147,9 @@ public List<KeyValuePair<string, string>> GetParams()
{
p.Add(new KeyValuePair<string, string>("AnswerId", AnswerId));
}
if (QuestionnaireId != null)
if (QuestionnaireSid != null)
{
p.Add(new KeyValuePair<string, string>("QuestionnaireId", QuestionnaireId));
p.Add(new KeyValuePair<string, string>("QuestionnaireSid", QuestionnaireSid));
}
return p;
}
Expand Down Expand Up @@ -213,8 +213,8 @@ public List<KeyValuePair<string, string>> GetHeaderParams()
public class UpdateAssessmentsOptions : IOptions<AssessmentsResource>
{

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

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


/// <summary> Construct a new UpdateInsightsAssessmentsOptions </summary>
/// <param name="pathAssessmentId"> The id of the assessment to be modified </param>
/// <param name="pathAssessmentSid"> The SID of the assessment to be modified </param>
/// <param name="offset"> The offset of the conversation </param>
/// <param name="answerText"> The answer text selected by user </param>
/// <param name="answerId"> The id of the answer selected by user </param>
public UpdateAssessmentsOptions(string pathAssessmentId, decimal? offset, string answerText, string answerId)
public UpdateAssessmentsOptions(string pathAssessmentSid, decimal? offset, string answerText, string answerId)
{
PathAssessmentId = pathAssessmentId;
PathAssessmentSid = pathAssessmentSid;
Offset = offset;
AnswerText = answerText;
AnswerId = answerId;
Expand Down
Loading

0 comments on commit 018a764

Please sign in to comment.