Skip to content

Commit 9bdf18c

Browse files
committed
[Librarian] Regenerated @ fffff4e2a9903902262deb482f4cefeb44c2d081
1 parent 16b2e17 commit 9bdf18c

34 files changed

+808
-284
lines changed

CHANGES.md

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

4+
[2023-05-18] Version 6.6.1
5+
--------------------------
6+
**Conversations**
7+
- Added `AddressCountry` parameter to Address Configuration endpoint, to support regional short code addresses
8+
- Added query parameters `start_date`, `end_date` and `state` in list Conversations resource for filtering
9+
10+
**Insights**
11+
- Added annotations parameters to list summary api
12+
13+
**Messaging**
14+
- Add GET domainByMessagingService endpoint to linkShortening service
15+
- Add `disable_https` to link shortening domain_config properties
16+
17+
**Numbers**
18+
- Add bulk_eligibility api under version `/v1`.
19+
20+
421
[2023-05-04] Version 6.6.0
522
--------------------------
623
**Conversations**

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public class CreateAddressConfigurationOptions : IOptions<AddressConfigurationRe
6161
///<summary> For type `studio`, number of times to retry the webhook request </summary>
6262
public int? AutoCreationStudioRetryCount { get; set; }
6363

64+
///<summary> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </summary>
65+
public string AddressCountry { get; set; }
66+
6467

6568
/// <summary> Construct a new CreateConfigurationAddressOptions </summary>
6669
/// <param name="type"> </param>
@@ -122,6 +125,10 @@ public List<KeyValuePair<string, string>> GetParams()
122125
{
123126
p.Add(new KeyValuePair<string, string>("AutoCreation.StudioRetryCount", AutoCreationStudioRetryCount.ToString()));
124127
}
128+
if (AddressCountry != null)
129+
{
130+
p.Add(new KeyValuePair<string, string>("AddressCountry", AddressCountry));
131+
}
125132
return p;
126133
}
127134

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public static async System.Threading.Tasks.Task<AddressConfigurationResource> Cr
122122
/// <param name="autoCreationWebhookFilters"> The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated` </param>
123123
/// <param name="autoCreationStudioFlowSid"> For type `studio`, the studio flow SID where the webhook should be sent to. </param>
124124
/// <param name="autoCreationStudioRetryCount"> For type `studio`, number of times to retry the webhook request </param>
125+
/// <param name="addressCountry"> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </param>
125126
/// <param name="client"> Client to make requests to Twilio </param>
126127
/// <returns> A single instance of AddressConfiguration </returns>
127128
public static AddressConfigurationResource Create(
@@ -136,9 +137,10 @@ public static AddressConfigurationResource Create(
136137
List<string> autoCreationWebhookFilters = null,
137138
string autoCreationStudioFlowSid = null,
138139
int? autoCreationStudioRetryCount = null,
140+
string addressCountry = null,
139141
ITwilioRestClient client = null)
140142
{
141-
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount };
143+
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount, AddressCountry = addressCountry };
142144
return Create(options, client);
143145
}
144146

@@ -155,6 +157,7 @@ public static AddressConfigurationResource Create(
155157
/// <param name="autoCreationWebhookFilters"> The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated` </param>
156158
/// <param name="autoCreationStudioFlowSid"> For type `studio`, the studio flow SID where the webhook should be sent to. </param>
157159
/// <param name="autoCreationStudioRetryCount"> For type `studio`, number of times to retry the webhook request </param>
160+
/// <param name="addressCountry"> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </param>
158161
/// <param name="client"> Client to make requests to Twilio </param>
159162
/// <returns> Task that resolves to A single instance of AddressConfiguration </returns>
160163
public static async System.Threading.Tasks.Task<AddressConfigurationResource> CreateAsync(
@@ -169,9 +172,10 @@ public static async System.Threading.Tasks.Task<AddressConfigurationResource> Cr
169172
List<string> autoCreationWebhookFilters = null,
170173
string autoCreationStudioFlowSid = null,
171174
int? autoCreationStudioRetryCount = null,
175+
string addressCountry = null,
172176
ITwilioRestClient client = null)
173177
{
174-
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount };
178+
var options = new CreateAddressConfigurationOptions(type, address){ FriendlyName = friendlyName, AutoCreationEnabled = autoCreationEnabled, AutoCreationType = autoCreationType, AutoCreationConversationServiceSid = autoCreationConversationServiceSid, AutoCreationWebhookUrl = autoCreationWebhookUrl, AutoCreationWebhookMethod = autoCreationWebhookMethod, AutoCreationWebhookFilters = autoCreationWebhookFilters, AutoCreationStudioFlowSid = autoCreationStudioFlowSid, AutoCreationStudioRetryCount = autoCreationStudioRetryCount, AddressCountry = addressCountry };
175179
return await CreateAsync(options, client);
176180
}
177181
#endif
@@ -591,6 +595,10 @@ public static AddressConfigurationResource FromJson(string json)
591595
[JsonProperty("url")]
592596
public Uri Url { get; private set; }
593597

598+
///<summary> An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. </summary>
599+
[JsonProperty("address_country")]
600+
public string AddressCountry { get; private set; }
601+
594602

595603

596604
private AddressConfigurationResource() {

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ 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+
195204

196205

197206

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

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+
}
204225
if (PageSize != null)
205226
{
206227
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,31 +336,43 @@ 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>
339342
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
340343
/// <param name="limit"> Record limit </param>
341344
/// <param name="client"> Client to make requests to Twilio </param>
342345
/// <returns> A single instance of Conversation </returns>
343346
public static ResourceSet<ConversationResource> Read(
347+
string startDate = null,
348+
string endDate = null,
349+
ConversationResource.StateEnum state = null,
344350
int? pageSize = null,
345351
long? limit = null,
346352
ITwilioRestClient client = null)
347353
{
348-
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
354+
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
349355
return Read(options, client);
350356
}
351357

352358
#if !NET35
353359
/// <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>
354363
/// <param name="pageSize"> How many resources to return in each list page. The default is 50, and the maximum is 1000. </param>
355364
/// <param name="limit"> Record limit </param>
356365
/// <param name="client"> Client to make requests to Twilio </param>
357366
/// <returns> Task that resolves to A single instance of Conversation </returns>
358367
public static async System.Threading.Tasks.Task<ResourceSet<ConversationResource>> ReadAsync(
368+
string startDate = null,
369+
string endDate = null,
370+
ConversationResource.StateEnum state = null,
359371
int? pageSize = null,
360372
long? limit = null,
361373
ITwilioRestClient client = null)
362374
{
363-
var options = new ReadConversationOptions(){ PageSize = pageSize, Limit = limit};
375+
var options = new ReadConversationOptions(){ StartDate = startDate, EndDate = endDate, State = state, PageSize = pageSize, Limit = limit};
364376
return await ReadAsync(options, client);
365377
}
366378
#endif

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ 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+
217226

218227

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

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+
}
232253
if (PageSize != null)
233254
{
234255
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));

0 commit comments

Comments
 (0)