Skip to content

Commit 41b3690

Browse files
committed
[Librarian] Regenerated @ b32d3e1eba2177c81eeca51181f67e618fe86dbe
1 parent b78e551 commit 41b3690

10 files changed

+81
-44
lines changed

CHANGES.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
twilio-csharp Changelog
22
=======================
33

4+
[2023-09-07] Version 6.13.0
5+
---------------------------
6+
**Library - Fix**
7+
- [PR #687](https://github.com/twilio/twilio-csharp/pull/687): Update dotnet version. Thanks to [@kridai](https://github.com/kridai)!
8+
9+
**Api**
10+
- Make message tagging parameters public **(breaking change)**
11+
12+
**Flex**
13+
- Adding `agent_conv_end_methods` to Flex Configuration
14+
15+
**Messaging**
16+
- Mark Mesasging Services fallback_to_long_code feature obsolete
17+
18+
**Numbers**
19+
- Add Create Port In request api
20+
- Renaming sid for bulk_hosting_sid and remove account_sid response field in numbers/v2/BulkHostedNumberOrders **(breaking change)**
21+
22+
**Pricing**
23+
- gate resources behind a beta_feature
24+
25+
426
[2023-08-24] Version 6.12.0
527
---------------------------
628
**Api**

src/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@
2424
namespace Twilio.Rest.Api.V2010.Account.Message
2525
{
2626

27-
/// <summary> create </summary>
27+
/// <summary> Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message </summary>
2828
public class CreateFeedbackOptions : IOptions<FeedbackResource>
2929
{
3030

31-
///<summary> The SID of the Message resource for which the feedback was provided. </summary>
31+
///<summary> The SID of the Message resource for which to create MessageFeedback. </summary>
3232
public string PathMessageSid { get; }
3333

34-
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. </summary>
34+
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. </summary>
3535
public string PathAccountSid { get; set; }
3636

3737

3838
public FeedbackResource.OutcomeEnum Outcome { get; set; }
3939

4040

4141
/// <summary> Construct a new CreateMessageFeedbackOptions </summary>
42-
/// <param name="pathMessageSid"> The SID of the Message resource for which the feedback was provided. </param>
42+
/// <param name="pathMessageSid"> The SID of the Message resource for which to create MessageFeedback. </param>
4343
public CreateFeedbackOptions(string pathMessageSid)
4444
{
4545
PathMessageSid = pathMessageSid;

src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs

+12-12
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static Request BuildCreateRequest(CreateFeedbackOptions options, ITwilio
6363
);
6464
}
6565

66-
/// <summary> create </summary>
66+
/// <summary> Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message </summary>
6767
/// <param name="options"> Create Feedback parameters </param>
6868
/// <param name="client"> Client to make requests to Twilio </param>
6969
/// <returns> A single instance of Feedback </returns>
@@ -75,7 +75,7 @@ public static FeedbackResource Create(CreateFeedbackOptions options, ITwilioRest
7575
}
7676

7777
#if !NET35
78-
/// <summary> create </summary>
78+
/// <summary> Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message </summary>
7979
/// <param name="options"> Create Feedback parameters </param>
8080
/// <param name="client"> Client to make requests to Twilio </param>
8181
/// <returns> Task that resolves to A single instance of Feedback </returns>
@@ -88,9 +88,9 @@ public static async System.Threading.Tasks.Task<FeedbackResource> CreateAsync(Cr
8888
}
8989
#endif
9090

91-
/// <summary> create </summary>
92-
/// <param name="pathMessageSid"> The SID of the Message resource for which the feedback was provided. </param>
93-
/// <param name="pathAccountSid"> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. </param>
91+
/// <summary> Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message </summary>
92+
/// <param name="pathMessageSid"> The SID of the Message resource for which to create MessageFeedback. </param>
93+
/// <param name="pathAccountSid"> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. </param>
9494
/// <param name="outcome"> </param>
9595
/// <param name="client"> Client to make requests to Twilio </param>
9696
/// <returns> A single instance of Feedback </returns>
@@ -105,9 +105,9 @@ public static FeedbackResource Create(
105105
}
106106

107107
#if !NET35
108-
/// <summary> create </summary>
109-
/// <param name="pathMessageSid"> The SID of the Message resource for which the feedback was provided. </param>
110-
/// <param name="pathAccountSid"> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. </param>
108+
/// <summary> Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message </summary>
109+
/// <param name="pathMessageSid"> The SID of the Message resource for which to create MessageFeedback. </param>
110+
/// <param name="pathAccountSid"> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. </param>
111111
/// <param name="outcome"> </param>
112112
/// <param name="client"> Client to make requests to Twilio </param>
113113
/// <returns> Task that resolves to A single instance of Feedback </returns>
@@ -140,23 +140,23 @@ public static FeedbackResource FromJson(string json)
140140
}
141141

142142

143-
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource. </summary>
143+
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource. </summary>
144144
[JsonProperty("account_sid")]
145145
public string AccountSid { get; private set; }
146146

147-
///<summary> The SID of the Message resource for which the feedback was provided. </summary>
147+
///<summary> The SID of the Message resource associated with this MessageFeedback resource. </summary>
148148
[JsonProperty("message_sid")]
149149
public string MessageSid { get; private set; }
150150

151151

152152
[JsonProperty("outcome")]
153153
public FeedbackResource.OutcomeEnum Outcome { get; private set; }
154154

155-
///<summary> The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. </summary>
155+
///<summary> The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. </summary>
156156
[JsonProperty("date_created")]
157157
public DateTime? DateCreated { get; private set; }
158158

159-
///<summary> The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. </summary>
159+
///<summary> The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. </summary>
160160
[JsonProperty("date_updated")]
161161
public DateTime? DateUpdated { get; private set; }
162162

src/Twilio/Rest/Api/V2010/Account/MessageOptions.cs

+7
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public class CreateMessageOptions : IOptions<MessageResource>
8282
///<summary> For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. </summary>
8383
public string ContentVariables { get; set; }
8484

85+
///<summary> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. </summary>
86+
public string Tags { get; set; }
87+
8588

8689
public MessageResource.RiskCheckEnum RiskCheck { get; set; }
8790

@@ -184,6 +187,10 @@ public List<KeyValuePair<string, string>> GetParams()
184187
{
185188
p.Add(new KeyValuePair<string, string>("ContentVariables", ContentVariables));
186189
}
190+
if (Tags != null)
191+
{
192+
p.Add(new KeyValuePair<string, string>("Tags", Tags));
193+
}
187194
if (RiskCheck != null)
188195
{
189196
p.Add(new KeyValuePair<string, string>("RiskCheck", RiskCheck.ToString()));

src/Twilio/Rest/Api/V2010/Account/MessageResource.cs

+10-2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public static async System.Threading.Tasks.Task<MessageResource> CreateAsync(Cre
194194
/// <param name="sendAt"> The time that Twilio will send the message. Must be in ISO 8601 format. </param>
195195
/// <param name="sendAsMms"> If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. </param>
196196
/// <param name="contentVariables"> For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. </param>
197+
/// <param name="tags"> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. </param>
197198
/// <param name="riskCheck"> </param>
198199
/// <param name="client"> Client to make requests to Twilio </param>
199200
/// <returns> A single instance of Message </returns>
@@ -221,10 +222,11 @@ public static MessageResource Create(
221222
DateTime? sendAt = null,
222223
bool? sendAsMms = null,
223224
string contentVariables = null,
225+
string tags = null,
224226
MessageResource.RiskCheckEnum riskCheck = null,
225227
ITwilioRestClient client = null)
226228
{
227-
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, RiskCheck = riskCheck };
229+
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, Tags = tags, RiskCheck = riskCheck };
228230
return Create(options, client);
229231
}
230232

@@ -253,6 +255,7 @@ public static MessageResource Create(
253255
/// <param name="sendAt"> The time that Twilio will send the message. Must be in ISO 8601 format. </param>
254256
/// <param name="sendAsMms"> If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. </param>
255257
/// <param name="contentVariables"> For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. </param>
258+
/// <param name="tags"> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. </param>
256259
/// <param name="riskCheck"> </param>
257260
/// <param name="client"> Client to make requests to Twilio </param>
258261
/// <returns> Task that resolves to A single instance of Message </returns>
@@ -280,10 +283,11 @@ public static async System.Threading.Tasks.Task<MessageResource> CreateAsync(
280283
DateTime? sendAt = null,
281284
bool? sendAsMms = null,
282285
string contentVariables = null,
286+
string tags = null,
283287
MessageResource.RiskCheckEnum riskCheck = null,
284288
ITwilioRestClient client = null)
285289
{
286-
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, RiskCheck = riskCheck };
290+
var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, Tags = tags, RiskCheck = riskCheck };
287291
return await CreateAsync(options, client);
288292
}
289293
#endif
@@ -757,6 +761,10 @@ public static MessageResource FromJson(string json)
757761
[JsonProperty("subresource_uris")]
758762
public Dictionary<string, string> SubresourceUris { get; private set; }
759763

764+
///<summary> A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. </summary>
765+
[JsonProperty("tags")]
766+
public object Tags { get; private set; }
767+
760768

761769

762770
private MessageResource() {

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

+4
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ public static ConfigurationResource FromJson(string json)
306306
[JsonProperty("flex_ui_status_report")]
307307
public object FlexUiStatusReport { get; private set; }
308308

309+
///<summary> Agent conversation end methods. </summary>
310+
[JsonProperty("agent_conv_end_methods")]
311+
public object AgentConvEndMethods { get; private set; }
312+
309313

310314

311315
private ConfigurationResource() {

src/Twilio/Rest/Messaging/V1/ServiceOptions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class CreateServiceOptions : IOptions<ServiceResource>
5858

5959
public ServiceResource.ScanMessageContentEnum ScanMessageContent { get; set; }
6060

61-
///<summary> Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. </summary>
61+
///<summary> [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. </summary>
6262
public bool? FallbackToLongCode { get; set; }
6363

6464
///<summary> Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. </summary>
@@ -277,7 +277,7 @@ public class UpdateServiceOptions : IOptions<ServiceResource>
277277

278278
public ServiceResource.ScanMessageContentEnum ScanMessageContent { get; set; }
279279

280-
///<summary> Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. </summary>
280+
///<summary> [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. </summary>
281281
public bool? FallbackToLongCode { get; set; }
282282

283283
///<summary> Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. </summary>

0 commit comments

Comments
 (0)