Skip to content

Commit d6537ce

Browse files
committed
[Librarian] Regenerated @ 24dcf52b3ba6769ea21d08329aa544a79742b6c2
1 parent 6731e0f commit d6537ce

24 files changed

+453
-1049
lines changed

CHANGES.md

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

4+
[2023-11-17] Version 6.15.1
5+
---------------------------
6+
**Api**
7+
- Update documentation to reflect RiskCheck GA
8+
9+
**Flex**
10+
- Adding `provisioning_status` for Email Manager
11+
12+
**Intelligence**
13+
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.
14+
15+
**Messaging**
16+
- Add tollfree edit_allowed and edit_reason fields
17+
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
18+
- Add DELETE support to Tollfree Verification resource
19+
20+
**Serverless**
21+
- Add node18 as a valid Build runtime
22+
23+
**Taskrouter**
24+
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
25+
26+
**Trusthub**
27+
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
28+
- Add new optional field notification_email to compliance_tollfree_inquiry.json
29+
30+
**Verify**
31+
- Add `Tags` optional parameter on Verification creation.
32+
- Update Verify TOTP maturity to GA.
33+
34+
435
[2023-10-19] Version 6.15.0
536
---------------------------
637
**Accounts**

src/Twilio/Rest/Domain.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public static implicit operator Domain(string value)
4242
public static readonly Domain Monitor = new Domain("monitor");
4343
public static readonly Domain Notify = new Domain("notify");
4444
public static readonly Domain Numbers = new Domain("numbers");
45-
public static readonly Domain Oauth = new Domain("oauth");
4645
public static readonly Domain Preview = new Domain("preview");
4746
public static readonly Domain Pricing = new Domain("pricing");
4847
public static readonly Domain Proxy = new Domain("proxy");

src/Twilio/Rest/Oauth/V1/OauthOptions.cs renamed to src/Twilio/Rest/FlexApi/V1/ProvisioningStatusOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
55
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
66
*
7-
* Twilio - Oauth
7+
* Twilio - Flex
88
* This is the public Twilio REST API.
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator.
@@ -21,10 +21,10 @@
2121

2222

2323

24-
namespace Twilio.Rest.Oauth.V1
24+
namespace Twilio.Rest.FlexApi.V1
2525
{
26-
/// <summary> Fetches public JWKs </summary>
27-
public class FetchOauthOptions : IOptions<OauthResource>
26+
/// <summary> fetch </summary>
27+
public class FetchProvisioningStatusOptions : IOptions<ProvisioningStatusResource>
2828
{
2929

3030

src/Twilio/Rest/Oauth/V1/OauthResource.cs renamed to src/Twilio/Rest/FlexApi/V1/ProvisioningStatusResource.cs

Lines changed: 47 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
55
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
66
*
7-
* Twilio - Oauth
7+
* Twilio - Flex
88
* This is the public Twilio REST API.
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator.
@@ -22,88 +22,103 @@
2222
using Twilio.Converters;
2323
using Twilio.Exceptions;
2424
using Twilio.Http;
25+
using Twilio.Types;
2526

2627

27-
28-
namespace Twilio.Rest.Oauth.V1
28+
namespace Twilio.Rest.FlexApi.V1
2929
{
30-
public class OauthResource : Resource
30+
public class ProvisioningStatusResource : Resource
3131
{
3232

3333

3434

35+
[JsonConverter(typeof(StringEnumConverter))]
36+
public sealed class StatusEnum : StringEnum
37+
{
38+
private StatusEnum(string value) : base(value) {}
39+
public StatusEnum() {}
40+
public static implicit operator StatusEnum(string value)
41+
{
42+
return new StatusEnum(value);
43+
}
44+
public static readonly StatusEnum Active = new StatusEnum("active");
45+
public static readonly StatusEnum InProgress = new StatusEnum("in-progress");
46+
public static readonly StatusEnum NotConfigured = new StatusEnum("not-configured");
47+
public static readonly StatusEnum Failed = new StatusEnum("failed");
48+
49+
}
3550

3651

37-
private static Request BuildFetchRequest(FetchOauthOptions options, ITwilioRestClient client)
52+
private static Request BuildFetchRequest(FetchProvisioningStatusOptions options, ITwilioRestClient client)
3853
{
3954

40-
string path = "/v1/certs";
55+
string path = "/v1/account/provision/status";
4156

4257

4358
return new Request(
4459
HttpMethod.Get,
45-
Rest.Domain.Oauth,
60+
Rest.Domain.FlexApi,
4661
path,
4762
queryParams: options.GetParams(),
4863
headerParams: null
4964
);
5065
}
5166

52-
/// <summary> Fetches public JWKs </summary>
53-
/// <param name="options"> Fetch Oauth parameters </param>
67+
/// <summary> fetch </summary>
68+
/// <param name="options"> Fetch ProvisioningStatus parameters </param>
5469
/// <param name="client"> Client to make requests to Twilio </param>
55-
/// <returns> A single instance of Oauth </returns>
56-
public static OauthResource Fetch(FetchOauthOptions options, ITwilioRestClient client = null)
70+
/// <returns> A single instance of ProvisioningStatus </returns>
71+
public static ProvisioningStatusResource Fetch(FetchProvisioningStatusOptions options, ITwilioRestClient client = null)
5772
{
5873
client = client ?? TwilioClient.GetRestClient();
5974
var response = client.Request(BuildFetchRequest(options, client));
6075
return FromJson(response.Content);
6176
}
6277

6378
#if !NET35
64-
/// <summary> Fetches public JWKs </summary>
65-
/// <param name="options"> Fetch Oauth parameters </param>
79+
/// <summary> fetch </summary>
80+
/// <param name="options"> Fetch ProvisioningStatus parameters </param>
6681
/// <param name="client"> Client to make requests to Twilio </param>
67-
/// <returns> Task that resolves to A single instance of Oauth </returns>
68-
public static async System.Threading.Tasks.Task<OauthResource> FetchAsync(FetchOauthOptions options,
82+
/// <returns> Task that resolves to A single instance of ProvisioningStatus </returns>
83+
public static async System.Threading.Tasks.Task<ProvisioningStatusResource> FetchAsync(FetchProvisioningStatusOptions options,
6984
ITwilioRestClient client = null)
7085
{
7186
client = client ?? TwilioClient.GetRestClient();
7287
var response = await client.RequestAsync(BuildFetchRequest(options, client));
7388
return FromJson(response.Content);
7489
}
7590
#endif
76-
/// <summary> Fetches public JWKs </summary>
91+
/// <summary> fetch </summary>
7792
/// <param name="client"> Client to make requests to Twilio </param>
78-
/// <returns> A single instance of Oauth </returns>
79-
public static OauthResource Fetch(
93+
/// <returns> A single instance of ProvisioningStatus </returns>
94+
public static ProvisioningStatusResource Fetch(
8095
ITwilioRestClient client = null)
8196
{
82-
var options = new FetchOauthOptions(){ };
97+
var options = new FetchProvisioningStatusOptions(){ };
8398
return Fetch(options, client);
8499
}
85100

86101
#if !NET35
87-
/// <summary> Fetches public JWKs </summary>
102+
/// <summary> fetch </summary>
88103
/// <param name="client"> Client to make requests to Twilio </param>
89-
/// <returns> Task that resolves to A single instance of Oauth </returns>
90-
public static async System.Threading.Tasks.Task<OauthResource> FetchAsync(ITwilioRestClient client = null)
104+
/// <returns> Task that resolves to A single instance of ProvisioningStatus </returns>
105+
public static async System.Threading.Tasks.Task<ProvisioningStatusResource> FetchAsync(ITwilioRestClient client = null)
91106
{
92-
var options = new FetchOauthOptions(){ };
107+
var options = new FetchProvisioningStatusOptions(){ };
93108
return await FetchAsync(options, client);
94109
}
95110
#endif
96111

97112
/// <summary>
98-
/// Converts a JSON string into a OauthResource object
113+
/// Converts a JSON string into a ProvisioningStatusResource object
99114
/// </summary>
100115
/// <param name="json"> Raw JSON string </param>
101-
/// <returns> OauthResource object represented by the provided JSON </returns>
102-
public static OauthResource FromJson(string json)
116+
/// <returns> ProvisioningStatusResource object represented by the provided JSON </returns>
117+
public static ProvisioningStatusResource FromJson(string json)
103118
{
104119
try
105120
{
106-
return JsonConvert.DeserializeObject<OauthResource>(json);
121+
return JsonConvert.DeserializeObject<ProvisioningStatusResource>(json);
107122
}
108123
catch (JsonException e)
109124
{
@@ -128,17 +143,17 @@ public static string ToJson(object model)
128143
}
129144

130145

131-
///<summary> A collection of certificates where are signed Twilio-issued tokens. </summary>
132-
[JsonProperty("keys")]
133-
public object Keys { get; private set; }
146+
147+
[JsonProperty("status")]
148+
public ProvisioningStatusResource.StatusEnum Status { get; private set; }
134149

135-
///<summary> The url </summary>
150+
///<summary> The absolute URL of the resource. </summary>
136151
[JsonProperty("url")]
137152
public Uri Url { get; private set; }
138153

139154

140155

141-
private OauthResource() {
156+
private ProvisioningStatusResource() {
142157

143158
}
144159
}

src/Twilio/Rest/Insights/V1/Call/AnnotationResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static string ToJson(object model)
296296
[JsonProperty("incident")]
297297
public string Incident { get; private set; }
298298

299-
///<summary> The URL of this resource. </summary>
299+
///<summary> The url </summary>
300300
[JsonProperty("url")]
301301
public Uri Url { get; private set; }
302302

src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultResource.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ public static string ToJson(object model)
335335
[JsonProperty("extract_results")]
336336
public object ExtractResults { get; private set; }
337337

338+
///<summary> Output of a text generation operator for example Conversation Sumamary. </summary>
339+
[JsonProperty("text_generation_results")]
340+
public object TextGenerationResults { get; private set; }
341+
338342
///<summary> A 34 character string that uniquely identifies this Transcript. </summary>
339343
[JsonProperty("transcript_sid")]
340344
public string TranscriptSid { get; private set; }

src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static string ToJson(object model)
296296
[JsonProperty("date_updated")]
297297
public DateTime? DateUpdated { get; private set; }
298298

299-
///<summary> The url </summary>
299+
///<summary> The absolute URL of the ChannelSender resource. </summary>
300300
[JsonProperty("url")]
301301
public Uri Url { get; private set; }
302302

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,36 @@ public List<KeyValuePair<string, string>> GetParams()
227227

228228

229229
}
230+
/// <summary> delete </summary>
231+
public class DeleteTollfreeVerificationOptions : IOptions<TollfreeVerificationResource>
232+
{
233+
234+
///<summary> The unique string to identify Tollfree Verification. </summary>
235+
public string PathSid { get; }
236+
237+
238+
239+
/// <summary> Construct a new DeleteTollfreeVerificationOptions </summary>
240+
/// <param name="pathSid"> The unique string to identify Tollfree Verification. </param>
241+
public DeleteTollfreeVerificationOptions(string pathSid)
242+
{
243+
PathSid = pathSid;
244+
}
245+
246+
247+
/// <summary> Generate the necessary parameters </summary>
248+
public List<KeyValuePair<string, string>> GetParams()
249+
{
250+
var p = new List<KeyValuePair<string, string>>();
251+
252+
return p;
253+
}
254+
255+
256+
257+
}
258+
259+
230260
/// <summary> fetch </summary>
231261
public class FetchTollfreeVerificationOptions : IOptions<TollfreeVerificationResource>
232262
{
@@ -362,6 +392,9 @@ public class UpdateTollfreeVerificationOptions : IOptions<TollfreeVerificationRe
362392
///<summary> The phone number of the contact for the business or organization using the Tollfree number. </summary>
363393
public Types.PhoneNumber BusinessContactPhone { get; set; }
364394

395+
///<summary> Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'. </summary>
396+
public string EditReason { get; set; }
397+
365398

366399

367400
/// <summary> Construct a new UpdateTollfreeVerificationOptions </summary>
@@ -459,6 +492,10 @@ public List<KeyValuePair<string, string>> GetParams()
459492
{
460493
p.Add(new KeyValuePair<string, string>("BusinessContactPhone", BusinessContactPhone.ToString()));
461494
}
495+
if (EditReason != null)
496+
{
497+
p.Add(new KeyValuePair<string, string>("EditReason", EditReason));
498+
}
462499
return p;
463500
}
464501

0 commit comments

Comments
 (0)