Skip to content

Commit f09664e

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent a2e0d0a commit f09664e

8 files changed

+294
-108
lines changed

src/libs/ElevenLabs/Generated/ElevenLabs..JsonSerializerContext.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ namespace ElevenLabs
636636
typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter<global::ElevenLabs.ConvAISecretLocator, global::ElevenLabs.ConvAIUserSecretDBModel>),
637637
typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter<string, global::ElevenLabs.ConvAISecretLocator>),
638638
typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter<global::ElevenLabs.CreateTwilioPhoneNumberRequest, global::ElevenLabs.CreateSIPTrunkPhoneNumberRequestV2>),
639-
typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>),
639+
typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextWebhookResponseModel, global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>),
640640
typeof(global::ElevenLabs.JsonConverters.UnixTimestampJsonConverter),
641641
})]
642642

src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToTextClient.CreateSpeechToText.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public partial interface ISpeechToTextClient
1818
/// <param name="request"></param>
1919
/// <param name="cancellationToken">The token to cancel the operation with</param>
2020
/// <exception cref="global::ElevenLabs.ApiException"></exception>
21-
global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>> CreateSpeechToTextAsync(
21+
global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextWebhookResponseModel>> CreateSpeechToTextAsync(
2222
global::ElevenLabs.BodySpeechToTextV1SpeechToTextPost request,
2323
bool? enableLogging = default,
2424
string? xiApiKey = default,
@@ -95,7 +95,7 @@ public partial interface ISpeechToTextClient
9595
/// </param>
9696
/// <param name="cancellationToken">The token to cancel the operation with</param>
9797
/// <exception cref="global::System.InvalidOperationException"></exception>
98-
global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>> CreateSpeechToTextAsync(
98+
global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextWebhookResponseModel>> CreateSpeechToTextAsync(
9999
string modelId,
100100
bool? enableLogging = default,
101101
string? xiApiKey = default,

src/libs/ElevenLabs/Generated/ElevenLabs.JsonSerializerContextTypes.g.cs

Lines changed: 104 additions & 100 deletions
Large diffs are not rendered by default.

src/libs/ElevenLabs/Generated/ElevenLabs.Models.LLM.g.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,18 @@ public enum LLM
9999
/// <summary>
100100
///
101101
/// </summary>
102+
Qwen330bA3b,
103+
/// <summary>
104+
///
105+
/// </summary>
102106
WattTool8b,
103107
/// <summary>
104108
///
105109
/// </summary>
110+
WattTool70b,
111+
/// <summary>
112+
///
113+
/// </summary>
106114
Gemini25FlashPreview0520,
107115
/// <summary>
108116
///
@@ -240,7 +248,9 @@ public static string ToValueString(this LLM value)
240248
LLM.GrokBeta => "grok-beta",
241249
LLM.CustomLlm => "custom-llm",
242250
LLM.Qwen34b => "qwen3-4b",
251+
LLM.Qwen330bA3b => "qwen3-30b-a3b",
243252
LLM.WattTool8b => "watt-tool-8b",
253+
LLM.WattTool70b => "watt-tool-70b",
244254
LLM.Gemini25FlashPreview0520 => "gemini-2.5-flash-preview-05-20",
245255
LLM.Gemini25FlashPreview0417 => "gemini-2.5-flash-preview-04-17",
246256
LLM.Gemini25FlashLitePreview0617 => "gemini-2.5-flash-lite-preview-06-17",
@@ -299,7 +309,9 @@ public static string ToValueString(this LLM value)
299309
"grok-beta" => LLM.GrokBeta,
300310
"custom-llm" => LLM.CustomLlm,
301311
"qwen3-4b" => LLM.Qwen34b,
312+
"qwen3-30b-a3b" => LLM.Qwen330bA3b,
302313
"watt-tool-8b" => LLM.WattTool8b,
314+
"watt-tool-70b" => LLM.WattTool70b,
303315
"gemini-2.5-flash-preview-05-20" => LLM.Gemini25FlashPreview0520,
304316
"gemini-2.5-flash-preview-04-17" => LLM.Gemini25FlashPreview0417,
305317
"gemini-2.5-flash-lite-preview-06-17" => LLM.Gemini25FlashLitePreview0617,
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#nullable enable
2+
3+
namespace ElevenLabs
4+
{
5+
public sealed partial class SpeechToTextWebhookResponseModel
6+
{
7+
/// <summary>
8+
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
9+
/// </summary>
10+
public string ToJson(
11+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
12+
{
13+
return global::System.Text.Json.JsonSerializer.Serialize(
14+
this,
15+
this.GetType(),
16+
jsonSerializerContext);
17+
}
18+
19+
/// <summary>
20+
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
21+
/// </summary>
22+
#if NET8_0_OR_GREATER
23+
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
24+
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
25+
#endif
26+
public string ToJson(
27+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
28+
{
29+
return global::System.Text.Json.JsonSerializer.Serialize(
30+
this,
31+
jsonSerializerOptions);
32+
}
33+
34+
/// <summary>
35+
/// Deserializes a JSON string using the provided JsonSerializerContext.
36+
/// </summary>
37+
public static global::ElevenLabs.SpeechToTextWebhookResponseModel? FromJson(
38+
string json,
39+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
40+
{
41+
return global::System.Text.Json.JsonSerializer.Deserialize(
42+
json,
43+
typeof(global::ElevenLabs.SpeechToTextWebhookResponseModel),
44+
jsonSerializerContext) as global::ElevenLabs.SpeechToTextWebhookResponseModel;
45+
}
46+
47+
/// <summary>
48+
/// Deserializes a JSON string using the provided JsonSerializerOptions.
49+
/// </summary>
50+
#if NET8_0_OR_GREATER
51+
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
52+
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
53+
#endif
54+
public static global::ElevenLabs.SpeechToTextWebhookResponseModel? FromJson(
55+
string json,
56+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
57+
{
58+
return global::System.Text.Json.JsonSerializer.Deserialize<global::ElevenLabs.SpeechToTextWebhookResponseModel>(
59+
json,
60+
jsonSerializerOptions);
61+
}
62+
63+
/// <summary>
64+
/// Deserializes a JSON stream using the provided JsonSerializerContext.
65+
/// </summary>
66+
public static async global::System.Threading.Tasks.ValueTask<global::ElevenLabs.SpeechToTextWebhookResponseModel?> FromJsonStreamAsync(
67+
global::System.IO.Stream jsonStream,
68+
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
69+
{
70+
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
71+
jsonStream,
72+
typeof(global::ElevenLabs.SpeechToTextWebhookResponseModel),
73+
jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SpeechToTextWebhookResponseModel;
74+
}
75+
76+
/// <summary>
77+
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
78+
/// </summary>
79+
#if NET8_0_OR_GREATER
80+
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
81+
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
82+
#endif
83+
public static global::System.Threading.Tasks.ValueTask<global::ElevenLabs.SpeechToTextWebhookResponseModel?> FromJsonStreamAsync(
84+
global::System.IO.Stream jsonStream,
85+
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
86+
{
87+
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::ElevenLabs.SpeechToTextWebhookResponseModel?>(
88+
jsonStream,
89+
jsonSerializerOptions);
90+
}
91+
}
92+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
#nullable enable
3+
4+
namespace ElevenLabs
5+
{
6+
/// <summary>
7+
///
8+
/// </summary>
9+
public sealed partial class SpeechToTextWebhookResponseModel
10+
{
11+
/// <summary>
12+
/// The message of the webhook response.
13+
/// </summary>
14+
[global::System.Text.Json.Serialization.JsonPropertyName("message")]
15+
[global::System.Text.Json.Serialization.JsonRequired]
16+
public required string Message { get; set; }
17+
18+
/// <summary>
19+
/// The request ID of the webhook response.
20+
/// </summary>
21+
[global::System.Text.Json.Serialization.JsonPropertyName("request_id")]
22+
[global::System.Text.Json.Serialization.JsonRequired]
23+
public required string RequestId { get; set; }
24+
25+
/// <summary>
26+
/// Additional properties that are not explicitly defined in the schema
27+
/// </summary>
28+
[global::System.Text.Json.Serialization.JsonExtensionData]
29+
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
30+
31+
/// <summary>
32+
/// Initializes a new instance of the <see cref="SpeechToTextWebhookResponseModel" /> class.
33+
/// </summary>
34+
/// <param name="message">
35+
/// The message of the webhook response.
36+
/// </param>
37+
/// <param name="requestId">
38+
/// The request ID of the webhook response.
39+
/// </param>
40+
#if NET7_0_OR_GREATER
41+
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
42+
#endif
43+
public SpeechToTextWebhookResponseModel(
44+
string message,
45+
string requestId)
46+
{
47+
this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message));
48+
this.RequestId = requestId ?? throw new global::System.ArgumentNullException(nameof(requestId));
49+
}
50+
51+
/// <summary>
52+
/// Initializes a new instance of the <see cref="SpeechToTextWebhookResponseModel" /> class.
53+
/// </summary>
54+
public SpeechToTextWebhookResponseModel()
55+
{
56+
}
57+
}
58+
}

src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToTextClient.CreateSpeechToText.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ partial void ProcessCreateSpeechToTextResponseContent(
3939
/// <param name="request"></param>
4040
/// <param name="cancellationToken">The token to cancel the operation with</param>
4141
/// <exception cref="global::ElevenLabs.ApiException"></exception>
42-
public async global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>> CreateSpeechToTextAsync(
42+
public async global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextWebhookResponseModel>> CreateSpeechToTextAsync(
4343
global::ElevenLabs.BodySpeechToTextV1SpeechToTextPost request,
4444
bool? enableLogging = default,
4545
string? xiApiKey = default,
@@ -281,7 +281,7 @@ partial void ProcessCreateSpeechToTextResponseContent(
281281
__response.EnsureSuccessStatusCode();
282282

283283
return
284-
global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>.FromJson(__content, JsonSerializerContext) ??
284+
global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextWebhookResponseModel>.FromJson(__content, JsonSerializerContext) ??
285285
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
286286
}
287287
catch (global::System.Exception __ex)
@@ -312,7 +312,7 @@ partial void ProcessCreateSpeechToTextResponseContent(
312312
).ConfigureAwait(false);
313313

314314
return
315-
await global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
315+
await global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextWebhookResponseModel>.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
316316
throw new global::System.InvalidOperationException("Response deserialization failed.");
317317
}
318318
catch (global::System.Exception __ex)
@@ -402,7 +402,7 @@ partial void ProcessCreateSpeechToTextResponseContent(
402402
/// </param>
403403
/// <param name="cancellationToken">The token to cancel the operation with</param>
404404
/// <exception cref="global::System.InvalidOperationException"></exception>
405-
public async global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel>> CreateSpeechToTextAsync(
405+
public async global::System.Threading.Tasks.Task<global::ElevenLabs.AnyOf<global::ElevenLabs.SpeechToTextChunkResponseModel, global::ElevenLabs.MultichannelSpeechToTextResponseModel, global::ElevenLabs.SpeechToTextWebhookResponseModel>> CreateSpeechToTextAsync(
406406
string modelId,
407407
bool? enableLogging = default,
408408
string? xiApiKey = default,

src/libs/ElevenLabs/openapi.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5626,10 +5626,10 @@ paths:
56265626
anyOf:
56275627
- $ref: '#/components/schemas/SpeechToTextChunkResponseModel'
56285628
- $ref: '#/components/schemas/MultichannelSpeechToTextResponseModel'
5629+
- $ref: '#/components/schemas/SpeechToTextWebhookResponseModel'
56295630
oneOf:
56305631
- $ref: '#/components/schemas/SpeechToTextChunkResponseModel'
56315632
- $ref: '#/components/schemas/MultichannelSpeechToTextResponseModel'
5632-
nullable: true
56335633
examples:
56345634
single_channel:
56355635
summary: Single channel response
@@ -17882,7 +17882,9 @@ components:
1788217882
- grok-beta
1788317883
- custom-llm
1788417884
- qwen3-4b
17885+
- qwen3-30b-a3b
1788517886
- watt-tool-8b
17887+
- watt-tool-70b
1788617888
- gemini-2.5-flash-preview-05-20
1788717889
- gemini-2.5-flash-preview-04-17
1788817890
- gemini-2.5-flash-lite-preview-06-17
@@ -21968,6 +21970,24 @@ components:
2196821970
start: 0.5
2196921971
text: world!
2197021972
type: word
21973+
SpeechToTextWebhookResponseModel:
21974+
title: SpeechToTextWebhookResponseModel
21975+
required:
21976+
- message
21977+
- request_id
21978+
type: object
21979+
properties:
21980+
message:
21981+
title: Message
21982+
type: string
21983+
description: The message of the webhook response.
21984+
request_id:
21985+
title: Request Id
21986+
type: string
21987+
description: The request ID of the webhook response.
21988+
example:
21989+
message: Request accepted. Transcription result will be sent to the webhook endpoint.
21990+
request_id: '1234567890'
2197121991
SpeechToTextWordResponseModel:
2197221992
title: SpeechToTextWordResponseModel
2197321993
required:

0 commit comments

Comments
 (0)