Skip to content

Commit 17530f0

Browse files
committed
[Librarian] Regenerated @ 0a245f5931e0ff292c12b643839bbb9a1b3831e3 4727b4211b32329ec55ad87676be1f406d3fd9e9
1 parent 95cc216 commit 17530f0

File tree

12 files changed

+75
-80
lines changed

12 files changed

+75
-80
lines changed

CHANGES.md

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

4+
[2025-01-09] Version 7.8.1
5+
--------------------------
6+
**Numbers**
7+
- Change beta feature flag to use v2/BulkHostedNumberOrders
8+
9+
410
[2024-12-05] Version 7.8.0
511
--------------------------
612
**Library - Fix**

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 the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </summary>
76+
///<summary> The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </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 the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </param>
134+
/// <param name="intelligenceService"> The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </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 the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </param>
177+
/// <param name="intelligenceService"> The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </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: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public static string ToJson(object model)
345345

346346
///<summary> The description of knowledge. </summary>
347347
[JsonProperty("id")]
348-
public string Id { get; private set; }
348+
public string Id { get; }
349349

350350
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. </summary>
351351
[JsonProperty("account_sid")]
@@ -357,27 +357,31 @@ public static string ToJson(object model)
357357

358358
///<summary> The name of the knowledge source. </summary>
359359
[JsonProperty("name")]
360-
public string Name { get; private set; }
360+
public string Name { get; }
361361

362362
///<summary> The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') </summary>
363363
[JsonProperty("status")]
364364
public string Status { get; private set; }
365365

366366
///<summary> The type of knowledge source ('Web', 'Database', 'Text', 'File') </summary>
367367
[JsonProperty("type")]
368-
public string Type { get; private set; }
368+
public string Type { get; }
369369

370370
///<summary> The url of the knowledge resource. </summary>
371371
[JsonProperty("url")]
372372
public string Url { get; private set; }
373373

374+
///<summary> The embedding model to be used for the knowledge source. </summary>
375+
[JsonProperty("embedding_model")]
376+
public string EmbeddingModel { get; private set; }
377+
374378
///<summary> The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. </summary>
375379
[JsonProperty("date_created")]
376-
public DateTime? DateCreated { get; private set; }
380+
public DateTime? DateCreated { get; }
377381

378382
///<summary> The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. </summary>
379383
[JsonProperty("date_updated")]
380-
public DateTime? DateUpdated { get; private set; }
384+
public DateTime? DateUpdated { get; }
381385

382386

383387

src/Twilio/Rest/Assistants/V1/AssistantResource.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ public class AssistantsV1ServiceKnowledge
213213
private string Type {get; set;}
214214
[JsonProperty("url")]
215215
private string Url {get; set;}
216+
[JsonProperty("embedding_model")]
217+
private string EmbeddingModel {get; set;}
216218
[JsonProperty("date_created")]
217219
private DateTime? DateCreated {get; set;}
218220
[JsonProperty("date_updated")]
@@ -264,6 +266,11 @@ public Builder WithUrl(string url)
264266
_assistantsV1ServiceKnowledge.Url= url;
265267
return this;
266268
}
269+
public Builder WithEmbeddingModel(string embeddingModel)
270+
{
271+
_assistantsV1ServiceKnowledge.EmbeddingModel= embeddingModel;
272+
return this;
273+
}
267274
public Builder WithDateCreated(DateTime? dateCreated)
268275
{
269276
_assistantsV1ServiceKnowledge.DateCreated= dateCreated;

src/Twilio/Rest/Assistants/V1/KnowledgeResource.cs

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public class AssistantsV1ServiceCreateKnowledgeRequest
9494
private AssistantsV1ServiceCreatePolicyRequest Policy {get; set;}
9595
[JsonProperty("type")]
9696
private string Type {get; set;}
97+
[JsonProperty("embedding_model")]
98+
private string EmbeddingModel {get; set;}
9799
public AssistantsV1ServiceCreateKnowledgeRequest() { }
98100
public class Builder
99101
{
@@ -131,6 +133,11 @@ public Builder WithType(string type)
131133
_assistantsV1ServiceCreateKnowledgeRequest.Type= type;
132134
return this;
133135
}
136+
public Builder WithEmbeddingModel(string embeddingModel)
137+
{
138+
_assistantsV1ServiceCreateKnowledgeRequest.EmbeddingModel= embeddingModel;
139+
return this;
140+
}
134141
public AssistantsV1ServiceCreateKnowledgeRequest Build()
135142
{
136143
return _assistantsV1ServiceCreateKnowledgeRequest;
@@ -149,6 +156,8 @@ public class AssistantsV1ServiceUpdateKnowledgeRequest
149156
private AssistantsV1ServiceCreatePolicyRequest Policy {get; set;}
150157
[JsonProperty("type")]
151158
private string Type {get; set;}
159+
[JsonProperty("embedding_model")]
160+
private string EmbeddingModel {get; set;}
152161
public AssistantsV1ServiceUpdateKnowledgeRequest() { }
153162
public class Builder
154163
{
@@ -181,6 +190,11 @@ public Builder WithType(string type)
181190
_assistantsV1ServiceUpdateKnowledgeRequest.Type= type;
182191
return this;
183192
}
193+
public Builder WithEmbeddingModel(string embeddingModel)
194+
{
195+
_assistantsV1ServiceUpdateKnowledgeRequest.EmbeddingModel= embeddingModel;
196+
return this;
197+
}
184198
public AssistantsV1ServiceUpdateKnowledgeRequest Build()
185199
{
186200
return _assistantsV1ServiceUpdateKnowledgeRequest;
@@ -623,7 +637,7 @@ public static string ToJson(object model)
623637

624638
///<summary> The description of knowledge. </summary>
625639
[JsonProperty("id")]
626-
public string Id { get; private set; }
640+
public string Id { get; }
627641

628642
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource. </summary>
629643
[JsonProperty("account_sid")]
@@ -635,27 +649,31 @@ public static string ToJson(object model)
635649

636650
///<summary> The name of the knowledge source. </summary>
637651
[JsonProperty("name")]
638-
public string Name { get; private set; }
652+
public string Name { get; }
639653

640654
///<summary> The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED') </summary>
641655
[JsonProperty("status")]
642656
public string Status { get; private set; }
643657

644658
///<summary> The type of knowledge source ('Web', 'Database', 'Text', 'File') </summary>
645659
[JsonProperty("type")]
646-
public string Type { get; private set; }
660+
public string Type { get; }
647661

648662
///<summary> The url of the knowledge resource. </summary>
649663
[JsonProperty("url")]
650664
public string Url { get; private set; }
651665

666+
///<summary> The embedding model to be used for the knowledge source. </summary>
667+
[JsonProperty("embedding_model")]
668+
public string EmbeddingModel { get; private set; }
669+
652670
///<summary> The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. </summary>
653671
[JsonProperty("date_created")]
654-
public DateTime? DateCreated { get; private set; }
672+
public DateTime? DateCreated { get; }
655673

656674
///<summary> The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. </summary>
657675
[JsonProperty("date_updated")]
658-
public DateTime? DateUpdated { get; private set; }
676+
public DateTime? DateUpdated { get; }
659677

660678

661679

src/Twilio/Rest/Content/V1/ContentResource.cs

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -673,45 +673,12 @@ public TwilioCarousel Build()
673673
}
674674
}
675675
}
676-
public class FlowsPageComponentSelectItem
677-
{
678-
[JsonProperty("id")]
679-
private string Id {get; set;}
680-
[JsonProperty("title")]
681-
private string Title {get; set;}
682-
public FlowsPageComponentSelectItem() { }
683-
public class Builder
684-
{
685-
private FlowsPageComponentSelectItem _flowsPageComponentSelectItem = new FlowsPageComponentSelectItem();
686-
public Builder()
687-
{
688-
}
689-
public Builder WithId(string id)
690-
{
691-
_flowsPageComponentSelectItem.Id= id;
692-
return this;
693-
}
694-
public Builder WithTitle(string title)
695-
{
696-
_flowsPageComponentSelectItem.Title= title;
697-
return this;
698-
}
699-
public FlowsPageComponentSelectItem Build()
700-
{
701-
return _flowsPageComponentSelectItem;
702-
}
703-
}
704-
}
705676
public class FlowsPageComponent
706677
{
707678
[JsonProperty("label")]
708679
private string Label {get; set;}
709680
[JsonProperty("type")]
710681
private string Type {get; set;}
711-
[JsonProperty("text")]
712-
private string Text {get; set;}
713-
[JsonProperty("options")]
714-
private List<FlowsPageComponentSelectItem> Options {get; set;}
715682
public FlowsPageComponent() { }
716683
public class Builder
717684
{
@@ -729,16 +696,6 @@ public Builder WithType(string type)
729696
_flowsPageComponent.Type= type;
730697
return this;
731698
}
732-
public Builder WithText(string text)
733-
{
734-
_flowsPageComponent.Text= text;
735-
return this;
736-
}
737-
public Builder WithOptions(List<FlowsPageComponentSelectItem> options)
738-
{
739-
_flowsPageComponent.Options= options;
740-
return this;
741-
}
742699
public FlowsPageComponent Build()
743700
{
744701
return _flowsPageComponent;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public static implicit operator TypeEnum(string value)
5757
public static readonly TypeEnum Messenger = new TypeEnum("messenger");
5858
public static readonly TypeEnum Gbm = new TypeEnum("gbm");
5959
public static readonly TypeEnum Email = new TypeEnum("email");
60+
public static readonly TypeEnum Rcs = new TypeEnum("rcs");
6061

6162
}
6263
public sealed class AutoCreationTypeEnum : StringEnum

src/Twilio/Rest/Iam/V1/KeyOptions.cs renamed to src/Twilio/Rest/Iam/V1/NewApiKeyOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Twilio.Rest.Iam.V1
2525
{
2626

2727
/// <summary> Create a new Signing Key for the account making the request. </summary>
28-
public class CreateKeyOptions : IOptions<KeyResource>
28+
public class CreateNewApiKeyOptions : IOptions<NewApiKeyResource>
2929
{
3030

3131
///<summary> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. </summary>
@@ -35,15 +35,15 @@ public class CreateKeyOptions : IOptions<KeyResource>
3535
public string FriendlyName { get; set; }
3636

3737

38-
public KeyResource.KeytypeEnum KeyType { get; set; }
38+
public NewApiKeyResource.KeytypeEnum KeyType { get; set; }
3939

4040
///<summary> The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys). </summary>
4141
public object Policy { get; set; }
4242

4343

4444
/// <summary> Construct a new CreateNewKeyOptions </summary>
4545
/// <param name="accountSid"> The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. </param>
46-
public CreateKeyOptions(string accountSid)
46+
public CreateNewApiKeyOptions(string accountSid)
4747
{
4848
AccountSid = accountSid;
4949
}

0 commit comments

Comments
 (0)