Skip to content

Commit 8521d75

Browse files
committed
[Librarian] Regenerated @ be1009287706f9668165e2c57e337a331cc8e657 217af8d5996ea240f27310f5573ccec8426015bd
1 parent dc59b77 commit 8521d75

32 files changed

+351
-165
lines changed

CHANGES.md

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

4+
[2025-05-13] Version 7.11.1
5+
---------------------------
6+
**Accounts**
7+
- Changes to add date_of_consent param in Bulk Consent API
8+
9+
**Api**
10+
- Change `friendly_name`, `date_created` and `date_updated` properties to type `string`.
11+
12+
**Twiml**
13+
- Update twiml definition for `<ConversationRelay>` and `<Assistant>`
14+
15+
416
[2025-05-05] Version 7.11.0
517
---------------------------
618
**Library - Chore**

src/Twilio/Rest/Accounts/V1/BulkConsentsOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ namespace Twilio.Rest.Accounts.V1
2828
public class CreateBulkConsentsOptions : IOptions<BulkConsentsResource>
2929
{
3030

31-
///<summary> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. </summary>
31+
///<summary> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty. </summary>
3232
public List<object> Items { get; }
3333

3434

3535
/// <summary> Construct a new CreateBulkConsentsOptions </summary>
36-
/// <param name="items"> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. </param>
36+
/// <param name="items"> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty. </param>
3737
public CreateBulkConsentsOptions(List<object> items)
3838
{
3939
Items = items;

src/Twilio/Rest/Accounts/V1/BulkConsentsResource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static async System.Threading.Tasks.Task<BulkConsentsResource> CreateAsyn
7575
#endif
7676

7777
/// <summary> create </summary>
78-
/// <param name="items"> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. </param>
78+
/// <param name="items"> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty. </param>
7979
/// <param name="client"> Client to make requests to Twilio </param>
8080
/// <returns> A single instance of BulkConsents </returns>
8181
public static BulkConsentsResource Create(
@@ -88,7 +88,7 @@ public static BulkConsentsResource Create(
8888

8989
#if !NET35
9090
/// <summary> create </summary>
91-
/// <param name="items"> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. </param>
91+
/// <param name="items"> This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty. </param>
9292
/// <param name="client"> Client to make requests to Twilio </param>
9393
/// <returns> Task that resolves to A single instance of BulkConsents </returns>
9494
public static async System.Threading.Tasks.Task<BulkConsentsResource> CreateAsync(

src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberResource.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ public static string ToJson(object model)
237237

238238
///<summary> The string that you assigned to describe the resource. </summary>
239239
[JsonProperty("friendly_name")]
240-
[JsonConverter(typeof(PhoneNumberConverter))]
241-
public Types.PhoneNumber FriendlyName { get; private set; }
240+
public string FriendlyName { get; private set; }
242241

243242
///<summary> The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. </summary>
244243
[JsonProperty("phone_number")]
@@ -267,11 +266,11 @@ public static string ToJson(object model)
267266

268267
///<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>
269268
[JsonProperty("date_created")]
270-
public DateTime? DateCreated { get; private set; }
269+
public string DateCreated { get; private set; }
271270

272271
///<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>
273272
[JsonProperty("date_updated")]
274-
public DateTime? DateUpdated { get; private set; }
273+
public string DateUpdated { get; private set; }
275274

276275
///<summary> The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. </summary>
277276
[JsonProperty("sms_fallback_method")]
@@ -293,9 +292,9 @@ public static string ToJson(object model)
293292
[JsonProperty("address_requirements")]
294293
public DependentPhoneNumberResource.AddressRequirementEnum AddressRequirements { get; private set; }
295294

296-
///<summary> The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. </summary>
295+
///<summary> The capabilities </summary>
297296
[JsonProperty("capabilities")]
298-
public object Capabilities { get; private set; }
297+
public PhoneNumberCapabilities Capabilities { get; private set; }
299298

300299
///<summary> The URL we call using the `status_callback_method` to send status information to your application. </summary>
301300
[JsonProperty("status_callback")]

src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class CreateTranscriptionOptions : IOptions<TranscriptionResource>
7373
///<summary> The provider will add punctuation to recognition result </summary>
7474
public bool? EnableAutomaticPunctuation { get; set; }
7575

76-
///<summary> The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . </summary>
76+
///<summary> The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . </summary>
7777
public string IntelligenceService { get; set; }
7878

7979

src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionResource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static async System.Threading.Tasks.Task<TranscriptionResource> CreateAsy
131131
/// <param name="speechModel"> Recognition model used by the transcription engine, among those supported by the provider </param>
132132
/// <param name="hints"> A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them. </param>
133133
/// <param name="enableAutomaticPunctuation"> The provider will add punctuation to recognition result </param>
134-
/// <param name="intelligenceService"> The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . </param>
134+
/// <param name="intelligenceService"> The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . </param>
135135
/// <param name="client"> Client to make requests to Twilio </param>
136136
/// <returns> A single instance of Transcription </returns>
137137
public static TranscriptionResource Create(
@@ -174,7 +174,7 @@ public static TranscriptionResource Create(
174174
/// <param name="speechModel"> Recognition model used by the transcription engine, among those supported by the provider </param>
175175
/// <param name="hints"> A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them. </param>
176176
/// <param name="enableAutomaticPunctuation"> The provider will add punctuation to recognition result </param>
177-
/// <param name="intelligenceService"> The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . </param>
177+
/// <param name="intelligenceService"> The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . </param>
178178
/// <param name="client"> Client to make requests to Twilio </param>
179179
/// <returns> Task that resolves to A single instance of Transcription </returns>
180180
public static async System.Threading.Tasks.Task<TranscriptionResource> CreateAsync(

src/Twilio/Rest/Assistants/V1/Assistant/AssistantsKnowledgeResource.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ private static Request BuildCreateRequest(CreateAssistantsKnowledgeOptions optio
4040
string path = "/v1/Assistants/{assistantId}/Knowledge/{id}";
4141

4242
string PathAssistantId = options.PathAssistantId;
43-
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
43+
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
4444
string PathId = options.PathId;
45-
path = path.Replace("{"+"Id"+"}", PathId);
45+
path = path.Replace("{"+"id"+"}", PathId);
4646

4747
return new Request(
4848
HttpMethod.Post,
@@ -118,9 +118,9 @@ private static Request BuildDeleteRequest(DeleteAssistantsKnowledgeOptions optio
118118
string path = "/v1/Assistants/{assistantId}/Knowledge/{id}";
119119

120120
string PathAssistantId = options.PathAssistantId;
121-
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
121+
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
122122
string PathId = options.PathId;
123-
path = path.Replace("{"+"Id"+"}", PathId);
123+
path = path.Replace("{"+"id"+"}", PathId);
124124

125125
return new Request(
126126
HttpMethod.Delete,
@@ -186,7 +186,7 @@ private static Request BuildReadRequest(ReadAssistantsKnowledgeOptions options,
186186
string path = "/v1/Assistants/{assistantId}/Knowledge";
187187

188188
string PathAssistantId = options.PathAssistantId;
189-
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
189+
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
190190

191191
return new Request(
192192
HttpMethod.Get,

src/Twilio/Rest/Assistants/V1/Assistant/AssistantsToolResource.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ private static Request BuildCreateRequest(CreateAssistantsToolOptions options, I
4040
string path = "/v1/Assistants/{assistantId}/Tools/{id}";
4141

4242
string PathAssistantId = options.PathAssistantId;
43-
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
43+
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
4444
string PathId = options.PathId;
45-
path = path.Replace("{"+"Id"+"}", PathId);
45+
path = path.Replace("{"+"id"+"}", PathId);
4646

4747
return new Request(
4848
HttpMethod.Post,
@@ -118,9 +118,9 @@ private static Request BuildDeleteRequest(DeleteAssistantsToolOptions options, I
118118
string path = "/v1/Assistants/{assistantId}/Tools/{id}";
119119

120120
string PathAssistantId = options.PathAssistantId;
121-
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
121+
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
122122
string PathId = options.PathId;
123-
path = path.Replace("{"+"Id"+"}", PathId);
123+
path = path.Replace("{"+"id"+"}", PathId);
124124

125125
return new Request(
126126
HttpMethod.Delete,
@@ -186,7 +186,7 @@ private static Request BuildReadRequest(ReadAssistantsToolOptions options, ITwil
186186
string path = "/v1/Assistants/{assistantId}/Tools";
187187

188188
string PathAssistantId = options.PathAssistantId;
189-
path = path.Replace("{"+"AssistantId"+"}", PathAssistantId);
189+
path = path.Replace("{"+"assistantId"+"}", PathAssistantId);
190190

191191
return new Request(
192192
HttpMethod.Get,

src/Twilio/Rest/Assistants/V1/Assistant/FeedbackResource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static Request BuildCreateRequest(CreateFeedbackOptions options, ITwilio
8383
string path = "/v1/Assistants/{id}/Feedbacks";
8484

8585
string PathId = options.PathId;
86-
path = path.Replace("{"+"Id"+"}", PathId);
86+
path = path.Replace("{"+"id"+"}", PathId);
8787

8888
return new Request(
8989
HttpMethod.Post,
@@ -156,7 +156,7 @@ private static Request BuildReadRequest(ReadFeedbackOptions options, ITwilioRest
156156
string path = "/v1/Assistants/{id}/Feedbacks";
157157

158158
string PathId = options.PathId;
159-
path = path.Replace("{"+"Id"+"}", PathId);
159+
path = path.Replace("{"+"id"+"}", PathId);
160160

161161
return new Request(
162162
HttpMethod.Get,

src/Twilio/Rest/Assistants/V1/Assistant/MessageResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private static Request BuildCreateRequest(CreateMessageOptions options, ITwilioR
9090
string path = "/v1/Assistants/{id}/Messages";
9191

9292
string PathId = options.PathId;
93-
path = path.Replace("{"+"Id"+"}", PathId);
93+
path = path.Replace("{"+"id"+"}", PathId);
9494

9595
return new Request(
9696
HttpMethod.Post,

0 commit comments

Comments
 (0)