Skip to content

Commit eee003a

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#32)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent ea6a66c commit eee003a

8 files changed

Lines changed: 72 additions & 32 deletions

src/libs/DeepL/Generated/DeepL.IVoiceAPIClient.GetVoiceStreamingUrl.g.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ public partial interface IVoiceAPIClient
9191
/// Example: [de, fr, es]
9292
/// </param>
9393
/// <param name="targetMediaLanguages">
94-
/// (EAP) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
94+
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
9595
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
9696
/// Default Value: []<br/>
9797
/// Example: [de, en-GB]
9898
/// </param>
9999
/// <param name="targetMediaContentType">
100-
/// (EAP) The audio format for synthesized target media streaming.<br/>
100+
/// (closed beta) The audio format for synthesized target media streaming.<br/>
101101
/// Specifies container, codec, and encoding parameters for the audio returned in target_media_chunk messages.<br/>
102102
/// If not specified, defaults to audio/webm;codecs=opus.<br/>
103103
/// Only applies when target_media_languages is specified.<br/>
@@ -128,9 +128,13 @@ public partial interface IVoiceAPIClient
128128
/// Example: audio/webm;codecs=opus
129129
/// </param>
130130
/// <param name="targetMediaVoice">
131-
/// (EAP) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
131+
/// (closed beta) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
132132
/// Example: female
133133
/// </param>
134+
/// <param name="spokenTermsId">
135+
/// (beta) The ID of a spoken terms list used to inform transcription.<br/>
136+
/// Example: 7c4f1080-cfe2-41d4-8269-0e6ec15a0354
137+
/// </param>
134138
/// <param name="glossaryId">
135139
/// A unique ID assigned to a glossary.<br/>
136140
/// Example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
@@ -156,6 +160,7 @@ public partial interface IVoiceAPIClient
156160
global::System.Collections.Generic.IList<global::DeepL.VoiceTargetMediaLanguage>? targetMediaLanguages = default,
157161
global::DeepL.VoiceTargetMediaContentType? targetMediaContentType = default,
158162
global::DeepL.VoiceTargetMediaVoice? targetMediaVoice = default,
163+
global::System.Guid? spokenTermsId = default,
159164
string? glossaryId = default,
160165
global::DeepL.VoiceFormality? formality = default,
161166
global::DeepL.AutoSDKRequestOptions? requestOptions = default,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ namespace DeepL
10171017
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.DocumentKey))]
10181018
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.Formality), TypeInfoPropertyName = "Formality2")]
10191019
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.GlossaryEntriesFormat), TypeInfoPropertyName = "GlossaryEntriesFormat2")]
1020+
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))]
10201021
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.ModelType), TypeInfoPropertyName = "ModelType2")]
10211022
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.MonolingualGlossary))]
10221023
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.MultilingualGlossary))]
@@ -1029,7 +1030,6 @@ namespace DeepL
10291030
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.PreserveFormattingOptionStr), TypeInfoPropertyName = "PreserveFormattingOptionStr2")]
10301031
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.SplitSentencesOption), TypeInfoPropertyName = "SplitSentencesOption2")]
10311032
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.TranslationMemory))]
1032-
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))]
10331033
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.TranslationMemorySourceLanguage), TypeInfoPropertyName = "TranslationMemorySourceLanguage2")]
10341034
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::DeepL.TranslationMemoryTargetLanguage>))]
10351035
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::DeepL.TranslationMemoryTargetLanguage), TypeInfoPropertyName = "TranslationMemoryTargetLanguage2")]

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -784,55 +784,55 @@ public sealed partial class JsonSerializerContextTypes
784784
/// <summary>
785785
///
786786
/// </summary>
787-
public global::DeepL.ModelType? Type189 { get; set; }
787+
public global::System.Guid? Type189 { get; set; }
788788
/// <summary>
789789
///
790790
/// </summary>
791-
public global::DeepL.MonolingualGlossary? Type190 { get; set; }
791+
public global::DeepL.ModelType? Type190 { get; set; }
792792
/// <summary>
793793
///
794794
/// </summary>
795-
public global::DeepL.MultilingualGlossary? Type191 { get; set; }
795+
public global::DeepL.MonolingualGlossary? Type191 { get; set; }
796796
/// <summary>
797797
///
798798
/// </summary>
799-
public global::DeepL.MultilingualGlossaryEntries? Type192 { get; set; }
799+
public global::DeepL.MultilingualGlossary? Type192 { get; set; }
800800
/// <summary>
801801
///
802802
/// </summary>
803-
public global::DeepL.MultilingualGlossaryEntriesResponse? Type193 { get; set; }
803+
public global::DeepL.MultilingualGlossaryEntries? Type193 { get; set; }
804804
/// <summary>
805805
///
806806
/// </summary>
807-
public global::System.Collections.Generic.IList<global::DeepL.MultilingualGlossaryEntriesInformation>? Type194 { get; set; }
807+
public global::DeepL.MultilingualGlossaryEntriesResponse? Type194 { get; set; }
808808
/// <summary>
809809
///
810810
/// </summary>
811-
public global::DeepL.MultilingualGlossaryEntriesInformation? Type195 { get; set; }
811+
public global::System.Collections.Generic.IList<global::DeepL.MultilingualGlossaryEntriesInformation>? Type195 { get; set; }
812812
/// <summary>
813813
///
814814
/// </summary>
815-
public global::DeepL.OutlineDetectionOptionStr? Type196 { get; set; }
815+
public global::DeepL.MultilingualGlossaryEntriesInformation? Type196 { get; set; }
816816
/// <summary>
817817
///
818818
/// </summary>
819-
public global::DeepL.PatchMultilingualGlossaryParameters? Type197 { get; set; }
819+
public global::DeepL.OutlineDetectionOptionStr? Type197 { get; set; }
820820
/// <summary>
821821
///
822822
/// </summary>
823-
public global::DeepL.PreserveFormattingOptionStr? Type198 { get; set; }
823+
public global::DeepL.PatchMultilingualGlossaryParameters? Type198 { get; set; }
824824
/// <summary>
825825
///
826826
/// </summary>
827-
public global::DeepL.SplitSentencesOption? Type199 { get; set; }
827+
public global::DeepL.PreserveFormattingOptionStr? Type199 { get; set; }
828828
/// <summary>
829829
///
830830
/// </summary>
831-
public global::DeepL.TranslationMemory? Type200 { get; set; }
831+
public global::DeepL.SplitSentencesOption? Type200 { get; set; }
832832
/// <summary>
833833
///
834834
/// </summary>
835-
public global::System.Guid? Type201 { get; set; }
835+
public global::DeepL.TranslationMemory? Type201 { get; set; }
836836
/// <summary>
837837
///
838838
/// </summary>

src/libs/DeepL/Generated/DeepL.Models.GetVoiceStreamingUrlRequest.g.cs

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public sealed partial class GetVoiceStreamingUrlRequest
9393
public global::System.Collections.Generic.IList<global::DeepL.VoiceTargetLanguage>? TargetLanguages { get; set; }
9494

9595
/// <summary>
96-
/// (EAP) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
96+
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
9797
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
9898
/// Default Value: []<br/>
9999
/// Example: [de, en-GB]
@@ -103,7 +103,7 @@ public sealed partial class GetVoiceStreamingUrlRequest
103103
public global::System.Collections.Generic.IList<global::DeepL.VoiceTargetMediaLanguage>? TargetMediaLanguages { get; set; }
104104

105105
/// <summary>
106-
/// (EAP) The audio format for synthesized target media streaming.<br/>
106+
/// (closed beta) The audio format for synthesized target media streaming.<br/>
107107
/// Specifies container, codec, and encoding parameters for the audio returned in target_media_chunk messages.<br/>
108108
/// If not specified, defaults to audio/webm;codecs=opus.<br/>
109109
/// Only applies when target_media_languages is specified.<br/>
@@ -139,14 +139,22 @@ public sealed partial class GetVoiceStreamingUrlRequest
139139
public global::DeepL.VoiceTargetMediaContentType? TargetMediaContentType { get; set; }
140140

141141
/// <summary>
142-
/// (EAP) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
142+
/// (closed beta) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
143143
/// Example: female
144144
/// </summary>
145145
/// <example>female</example>
146146
[global::System.Text.Json.Serialization.JsonPropertyName("target_media_voice")]
147147
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::DeepL.JsonConverters.VoiceTargetMediaVoiceJsonConverter))]
148148
public global::DeepL.VoiceTargetMediaVoice? TargetMediaVoice { get; set; }
149149

150+
/// <summary>
151+
/// (beta) The ID of a spoken terms list used to inform transcription.<br/>
152+
/// Example: 7c4f1080-cfe2-41d4-8269-0e6ec15a0354
153+
/// </summary>
154+
/// <example>7c4f1080-cfe2-41d4-8269-0e6ec15a0354</example>
155+
[global::System.Text.Json.Serialization.JsonPropertyName("spoken_terms_id")]
156+
public global::System.Guid? SpokenTermsId { get; set; }
157+
150158
/// <summary>
151159
/// A unique ID assigned to a glossary.<br/>
152160
/// Example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
@@ -238,13 +246,13 @@ public sealed partial class GetVoiceStreamingUrlRequest
238246
/// Example: [de, fr, es]
239247
/// </param>
240248
/// <param name="targetMediaLanguages">
241-
/// (EAP) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
249+
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
242250
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
243251
/// Default Value: []<br/>
244252
/// Example: [de, en-GB]
245253
/// </param>
246254
/// <param name="targetMediaContentType">
247-
/// (EAP) The audio format for synthesized target media streaming.<br/>
255+
/// (closed beta) The audio format for synthesized target media streaming.<br/>
248256
/// Specifies container, codec, and encoding parameters for the audio returned in target_media_chunk messages.<br/>
249257
/// If not specified, defaults to audio/webm;codecs=opus.<br/>
250258
/// Only applies when target_media_languages is specified.<br/>
@@ -275,9 +283,13 @@ public sealed partial class GetVoiceStreamingUrlRequest
275283
/// Example: audio/webm;codecs=opus
276284
/// </param>
277285
/// <param name="targetMediaVoice">
278-
/// (EAP) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
286+
/// (closed beta) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
279287
/// Example: female
280288
/// </param>
289+
/// <param name="spokenTermsId">
290+
/// (beta) The ID of a spoken terms list used to inform transcription.<br/>
291+
/// Example: 7c4f1080-cfe2-41d4-8269-0e6ec15a0354
292+
/// </param>
281293
/// <param name="glossaryId">
282294
/// A unique ID assigned to a glossary.<br/>
283295
/// Example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
@@ -303,6 +315,7 @@ public GetVoiceStreamingUrlRequest(
303315
global::System.Collections.Generic.IList<global::DeepL.VoiceTargetMediaLanguage>? targetMediaLanguages,
304316
global::DeepL.VoiceTargetMediaContentType? targetMediaContentType,
305317
global::DeepL.VoiceTargetMediaVoice? targetMediaVoice,
318+
global::System.Guid? spokenTermsId,
306319
string? glossaryId,
307320
global::DeepL.VoiceFormality? formality)
308321
{
@@ -314,6 +327,7 @@ public GetVoiceStreamingUrlRequest(
314327
this.TargetMediaLanguages = targetMediaLanguages;
315328
this.TargetMediaContentType = targetMediaContentType;
316329
this.TargetMediaVoice = targetMediaVoice;
330+
this.SpokenTermsId = spokenTermsId;
317331
this.GlossaryId = glossaryId;
318332
this.Formality = formality;
319333
}

src/libs/DeepL/Generated/DeepL.Models.VoiceTargetMediaContentType.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace DeepL
55
{
66
/// <summary>
7-
/// (EAP) The audio format for synthesized target media streaming.<br/>
7+
/// (closed beta) The audio format for synthesized target media streaming.<br/>
88
/// Specifies container, codec, and encoding parameters for the audio returned in target_media_chunk messages.<br/>
99
/// If not specified, defaults to audio/webm;codecs=opus.<br/>
1010
/// Only applies when target_media_languages is specified.<br/>

src/libs/DeepL/Generated/DeepL.Models.VoiceTargetMediaVoice.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace DeepL
55
{
66
/// <summary>
7-
/// (EAP) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
7+
/// (closed beta) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
88
/// Example: female
99
/// </summary>
1010
public enum VoiceTargetMediaVoice

src/libs/DeepL/Generated/DeepL.VoiceAPIClient.GetVoiceStreamingUrl.g.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,13 @@ partial void ProcessGetVoiceStreamingUrlResponseContent(
729729
/// Example: [de, fr, es]
730730
/// </param>
731731
/// <param name="targetMediaLanguages">
732-
/// (EAP) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
732+
/// (closed beta) List of target languages for which to generate synthesized audio. Languages specified here will automatically be added to target_languages if not already present, ensuring you receive both text translation and audio synthesis for these languages. If omitted, only text transcription and translation will be provided (no audio synthesis). The maximum allowed target media languages per stream is 5. Language identifiers must comply with IETF BCP 47.<br/>
733733
/// Note: Some translated audio languages are provided through external service partners. See the [supported languages table](/api-reference/voice#show-supported-languages) for details.<br/>
734734
/// Default Value: []<br/>
735735
/// Example: [de, en-GB]
736736
/// </param>
737737
/// <param name="targetMediaContentType">
738-
/// (EAP) The audio format for synthesized target media streaming.<br/>
738+
/// (closed beta) The audio format for synthesized target media streaming.<br/>
739739
/// Specifies container, codec, and encoding parameters for the audio returned in target_media_chunk messages.<br/>
740740
/// If not specified, defaults to audio/webm;codecs=opus.<br/>
741741
/// Only applies when target_media_languages is specified.<br/>
@@ -766,9 +766,13 @@ partial void ProcessGetVoiceStreamingUrlResponseContent(
766766
/// Example: audio/webm;codecs=opus
767767
/// </param>
768768
/// <param name="targetMediaVoice">
769-
/// (EAP) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
769+
/// (closed beta) Target audio voice selection for synthesized speech. The default voice is language dependent.<br/>
770770
/// Example: female
771771
/// </param>
772+
/// <param name="spokenTermsId">
773+
/// (beta) The ID of a spoken terms list used to inform transcription.<br/>
774+
/// Example: 7c4f1080-cfe2-41d4-8269-0e6ec15a0354
775+
/// </param>
772776
/// <param name="glossaryId">
773777
/// A unique ID assigned to a glossary.<br/>
774778
/// Example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
@@ -794,6 +798,7 @@ partial void ProcessGetVoiceStreamingUrlResponseContent(
794798
global::System.Collections.Generic.IList<global::DeepL.VoiceTargetMediaLanguage>? targetMediaLanguages = default,
795799
global::DeepL.VoiceTargetMediaContentType? targetMediaContentType = default,
796800
global::DeepL.VoiceTargetMediaVoice? targetMediaVoice = default,
801+
global::System.Guid? spokenTermsId = default,
797802
string? glossaryId = default,
798803
global::DeepL.VoiceFormality? formality = default,
799804
global::DeepL.AutoSDKRequestOptions? requestOptions = default,
@@ -809,6 +814,7 @@ partial void ProcessGetVoiceStreamingUrlResponseContent(
809814
TargetMediaLanguages = targetMediaLanguages,
810815
TargetMediaContentType = targetMediaContentType,
811816
TargetMediaVoice = targetMediaVoice,
817+
SpokenTermsId = spokenTermsId,
812818
GlossaryId = glossaryId,
813819
Formality = formality,
814820
};

0 commit comments

Comments
 (0)