Skip to content

Commit 774be03

Browse files
committed
[Librarian] Regenerated @ d9b0f7b0297f064eec2f219b29fd4193559c54f3 405f363a58346c6557d4194de16d9911b797e208
1 parent 5f51413 commit 774be03

File tree

13 files changed

+392
-58
lines changed

13 files changed

+392
-58
lines changed

CHANGES.md

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

4+
[2025-01-13] Version 7.8.2
5+
--------------------------
6+
**Messaging**
7+
- Adds validity period Default value in service resource documentation
8+
9+
410
[2025-01-09] Version 7.8.1
511
--------------------------
612
**Numbers**

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

+1-1
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 [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </summary>
76+
///<summary> The SID 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>
7777
public string IntelligenceService { get; set; }
7878

7979

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

+2-2
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 [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </param>
134+
/// <param name="intelligenceService"> The SID 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>
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 [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. </param>
177+
/// <param name="intelligenceService"> The SID 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>
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/Conversations/V1/Configuration/WebhookOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class UpdateWebhookOptions : IOptions<WebhookResource>
5151
///<summary> The HTTP method to be used when sending a webhook request. </summary>
5252
public string Method { get; set; }
5353

54-
///<summary> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` </summary>
54+
///<summary> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated` </summary>
5555
public List<string> Filters { get; set; }
5656

5757
///<summary> The absolute url the pre-event webhook request should be sent to. </summary>

src/Twilio/Rest/Conversations/V1/Configuration/WebhookResource.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static async System.Threading.Tasks.Task<WebhookResource> UpdateAsync(Upd
162162

163163
/// <summary> update </summary>
164164
/// <param name="method"> The HTTP method to be used when sending a webhook request. </param>
165-
/// <param name="filters"> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` </param>
165+
/// <param name="filters"> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated` </param>
166166
/// <param name="preWebhookUrl"> The absolute url the pre-event webhook request should be sent to. </param>
167167
/// <param name="postWebhookUrl"> The absolute url the post-event webhook request should be sent to. </param>
168168
/// <param name="target"> </param>
@@ -183,7 +183,7 @@ public static WebhookResource Update(
183183
#if !NET35
184184
/// <summary> update </summary>
185185
/// <param name="method"> The HTTP method to be used when sending a webhook request. </param>
186-
/// <param name="filters"> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` </param>
186+
/// <param name="filters"> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated` </param>
187187
/// <param name="preWebhookUrl"> The absolute url the pre-event webhook request should be sent to. </param>
188188
/// <param name="postWebhookUrl"> The absolute url the post-event webhook request should be sent to. </param>
189189
/// <param name="target"> </param>
@@ -244,7 +244,7 @@ public static string ToJson(object model)
244244
[JsonProperty("method")]
245245
public WebhookResource.MethodEnum Method { get; private set; }
246246

247-
///<summary> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` </summary>
247+
///<summary> The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated` </summary>
248248
[JsonProperty("filters")]
249249
public List<string> Filters { get; private set; }
250250

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

+3-3
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 CreateNewApiKeyOptions : IOptions<NewApiKeyResource>
28+
public class CreateKeyOptions : IOptions<KeyResource>
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 CreateNewApiKeyOptions : IOptions<NewApiKeyResource>
3535
public string FriendlyName { get; set; }
3636

3737

38-
public NewApiKeyResource.KeytypeEnum KeyType { get; set; }
38+
public KeyResource.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 CreateNewApiKeyOptions(string accountSid)
46+
public CreateKeyOptions(string accountSid)
4747
{
4848
AccountSid = accountSid;
4949
}

src/Twilio/Rest/Iam/V1/NewApiKeyResource.cs renamed to src/Twilio/Rest/Iam/V1/KeyResource.cs

+21-21
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
namespace Twilio.Rest.Iam.V1
2929
{
30-
public class NewApiKeyResource : Resource
30+
public class KeyResource : Resource
3131
{
3232

3333

@@ -45,7 +45,7 @@ public static implicit operator KeytypeEnum(string value)
4545
}
4646

4747

48-
private static Request BuildCreateRequest(CreateNewApiKeyOptions options, ITwilioRestClient client)
48+
private static Request BuildCreateRequest(CreateKeyOptions options, ITwilioRestClient client)
4949
{
5050

5151
string path = "/v1/Keys";
@@ -62,10 +62,10 @@ private static Request BuildCreateRequest(CreateNewApiKeyOptions options, ITwili
6262
}
6363

6464
/// <summary> Create a new Signing Key for the account making the request. </summary>
65-
/// <param name="options"> Create NewApiKey parameters </param>
65+
/// <param name="options"> Create Key parameters </param>
6666
/// <param name="client"> Client to make requests to Twilio </param>
67-
/// <returns> A single instance of NewApiKey </returns>
68-
public static NewApiKeyResource Create(CreateNewApiKeyOptions options, ITwilioRestClient client = null)
67+
/// <returns> A single instance of Key </returns>
68+
public static KeyResource Create(CreateKeyOptions options, ITwilioRestClient client = null)
6969
{
7070
client = client ?? TwilioClient.GetRestClient();
7171
var response = client.Request(BuildCreateRequest(options, client));
@@ -74,10 +74,10 @@ public static NewApiKeyResource Create(CreateNewApiKeyOptions options, ITwilioRe
7474

7575
#if !NET35
7676
/// <summary> Create a new Signing Key for the account making the request. </summary>
77-
/// <param name="options"> Create NewApiKey parameters </param>
77+
/// <param name="options"> Create Key parameters </param>
7878
/// <param name="client"> Client to make requests to Twilio </param>
79-
/// <returns> Task that resolves to A single instance of NewApiKey </returns>
80-
public static async System.Threading.Tasks.Task<NewApiKeyResource> CreateAsync(CreateNewApiKeyOptions options, ITwilioRestClient client = null)
79+
/// <returns> Task that resolves to A single instance of Key </returns>
80+
public static async System.Threading.Tasks.Task<KeyResource> CreateAsync(CreateKeyOptions options, ITwilioRestClient client = null)
8181
{
8282
client = client ?? TwilioClient.GetRestClient();
8383
var response = await client.RequestAsync(BuildCreateRequest(options, client));
@@ -91,15 +91,15 @@ public static async System.Threading.Tasks.Task<NewApiKeyResource> CreateAsync(C
9191
/// <param name="keyType"> </param>
9292
/// <param name="policy"> 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). </param>
9393
/// <param name="client"> Client to make requests to Twilio </param>
94-
/// <returns> A single instance of NewApiKey </returns>
95-
public static NewApiKeyResource Create(
94+
/// <returns> A single instance of Key </returns>
95+
public static KeyResource Create(
9696
string accountSid,
9797
string friendlyName = null,
98-
NewApiKeyResource.KeytypeEnum keyType = null,
98+
KeyResource.KeytypeEnum keyType = null,
9999
object policy = null,
100100
ITwilioRestClient client = null)
101101
{
102-
var options = new CreateNewApiKeyOptions(accountSid){ FriendlyName = friendlyName, KeyType = keyType, Policy = policy };
102+
var options = new CreateKeyOptions(accountSid){ FriendlyName = friendlyName, KeyType = keyType, Policy = policy };
103103
return Create(options, client);
104104
}
105105

@@ -110,29 +110,29 @@ public static NewApiKeyResource Create(
110110
/// <param name="keyType"> </param>
111111
/// <param name="policy"> 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). </param>
112112
/// <param name="client"> Client to make requests to Twilio </param>
113-
/// <returns> Task that resolves to A single instance of NewApiKey </returns>
114-
public static async System.Threading.Tasks.Task<NewApiKeyResource> CreateAsync(
113+
/// <returns> Task that resolves to A single instance of Key </returns>
114+
public static async System.Threading.Tasks.Task<KeyResource> CreateAsync(
115115
string accountSid,
116116
string friendlyName = null,
117-
NewApiKeyResource.KeytypeEnum keyType = null,
117+
KeyResource.KeytypeEnum keyType = null,
118118
object policy = null,
119119
ITwilioRestClient client = null)
120120
{
121-
var options = new CreateNewApiKeyOptions(accountSid){ FriendlyName = friendlyName, KeyType = keyType, Policy = policy };
121+
var options = new CreateKeyOptions(accountSid){ FriendlyName = friendlyName, KeyType = keyType, Policy = policy };
122122
return await CreateAsync(options, client);
123123
}
124124
#endif
125125

126126
/// <summary>
127-
/// Converts a JSON string into a NewApiKeyResource object
127+
/// Converts a JSON string into a KeyResource object
128128
/// </summary>
129129
/// <param name="json"> Raw JSON string </param>
130-
/// <returns> NewApiKeyResource object represented by the provided JSON </returns>
131-
public static NewApiKeyResource FromJson(string json)
130+
/// <returns> KeyResource object represented by the provided JSON </returns>
131+
public static KeyResource FromJson(string json)
132132
{
133133
try
134134
{
135-
return JsonConvert.DeserializeObject<NewApiKeyResource>(json);
135+
return JsonConvert.DeserializeObject<KeyResource>(json);
136136
}
137137
catch (JsonException e)
138138
{
@@ -183,7 +183,7 @@ public static string ToJson(object model)
183183

184184

185185

186-
private NewApiKeyResource() {
186+
private KeyResource() {
187187

188188
}
189189
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Marketplace
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
using System;
17+
using System.Collections.Generic;
18+
using Twilio.Base;
19+
using Twilio.Converters;
20+
21+
22+
23+
24+
namespace Twilio.Rest.Marketplace.V1
25+
{
26+
27+
/// <summary> This endpoint creates a Listing based on the given data. </summary>
28+
public class CreateModuleDataOptions : IOptions<ModuleDataResource>
29+
{
30+
31+
///<summary> A JSON object containing essential attributes that define a Listing. </summary>
32+
public string ModuleInfo { get; set; }
33+
34+
///<summary> A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more. </summary>
35+
public string Configuration { get; set; }
36+
37+
38+
39+
40+
/// <summary> Generate the necessary parameters </summary>
41+
public List<KeyValuePair<string, string>> GetParams()
42+
{
43+
var p = new List<KeyValuePair<string, string>>();
44+
45+
if (ModuleInfo != null)
46+
{
47+
p.Add(new KeyValuePair<string, string>("ModuleInfo", ModuleInfo));
48+
}
49+
if (Configuration != null)
50+
{
51+
p.Add(new KeyValuePair<string, string>("Configuration", Configuration));
52+
}
53+
return p;
54+
}
55+
56+
57+
58+
}
59+
/// <summary> This endpoint returns the Listings owned by the authenticated Account. </summary>
60+
public class FetchModuleDataOptions : IOptions<ModuleDataResource>
61+
{
62+
63+
64+
65+
66+
67+
/// <summary> Generate the necessary parameters </summary>
68+
public List<KeyValuePair<string, string>> GetParams()
69+
{
70+
var p = new List<KeyValuePair<string, string>>();
71+
72+
return p;
73+
}
74+
75+
76+
77+
}
78+
79+
80+
}
81+

0 commit comments

Comments
 (0)