Skip to content

Commit ea6a66c

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

32 files changed

Lines changed: 445 additions & 2065 deletions

src/libs/DeepL/Generated/DeepL.IManageGlossariesClient.ListGlossaryLanguages.g.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/libs/DeepL/Generated/DeepL.IMetaInformationClient.GetLanguageResources.g.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ public partial interface IMetaInformationClient
1515
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1616
/// <param name="cancellationToken">The token to cancel the operation with</param>
1717
/// <exception cref="global::DeepL.ApiException"></exception>
18-
#if NET8_0_OR_GREATER
19-
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "DEEPL_BETA_001")]
20-
#endif
2118
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::DeepL.GetLanguageResourcesResponseItem>> GetLanguageResourcesAsync(
2219
global::DeepL.AutoSDKRequestOptions? requestOptions = default,
2320
global::System.Threading.CancellationToken cancellationToken = default);
@@ -32,9 +29,6 @@ public partial interface IMetaInformationClient
3229
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
3330
/// <param name="cancellationToken">The token to cancel the operation with</param>
3431
/// <exception cref="global::DeepL.ApiException"></exception>
35-
#if NET8_0_OR_GREATER
36-
[global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "DEEPL_BETA_001")]
37-
#endif
3832
global::System.Threading.Tasks.Task<global::DeepL.AutoSDKHttpResponse<global::System.Collections.Generic.IList<global::DeepL.GetLanguageResourcesResponseItem>>> GetLanguageResourcesAsResponseAsync(
3933
global::DeepL.AutoSDKRequestOptions? requestOptions = default,
4034
global::System.Threading.CancellationToken cancellationToken = default);

src/libs/DeepL/Generated/DeepL.IMetaInformationClient.GetLanguages.g.cs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,35 @@ namespace DeepL
55
public partial interface IMetaInformationClient
66
{
77
/// <summary>
8-
/// Retrieve Supported Languages
8+
/// Retrieve Languages<br/>
9+
/// Returns languages supported by the specified DeepL API resource. Each language indicates whether it can<br/>
10+
/// be used as a source language, a target language, or both, along with the features it supports for that<br/>
11+
/// resource.
912
/// </summary>
10-
/// <param name="type">
11-
/// Default Value: source
12-
/// </param>
13+
/// <param name="resource"></param>
14+
/// <param name="include"></param>
1315
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1416
/// <param name="cancellationToken">The token to cancel the operation with</param>
1517
/// <exception cref="global::DeepL.ApiException"></exception>
1618
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::DeepL.GetLanguagesResponseItem>> GetLanguagesAsync(
17-
global::DeepL.GetLanguagesType? type = default,
19+
global::DeepL.GetLanguagesResource resource,
20+
global::System.Collections.Generic.IList<global::DeepL.GetLanguagesIncludeItem>? include = default,
1821
global::DeepL.AutoSDKRequestOptions? requestOptions = default,
1922
global::System.Threading.CancellationToken cancellationToken = default);
2023
/// <summary>
21-
/// Retrieve Supported Languages
24+
/// Retrieve Languages<br/>
25+
/// Returns languages supported by the specified DeepL API resource. Each language indicates whether it can<br/>
26+
/// be used as a source language, a target language, or both, along with the features it supports for that<br/>
27+
/// resource.
2228
/// </summary>
23-
/// <param name="type">
24-
/// Default Value: source
25-
/// </param>
29+
/// <param name="resource"></param>
30+
/// <param name="include"></param>
2631
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
2732
/// <param name="cancellationToken">The token to cancel the operation with</param>
2833
/// <exception cref="global::DeepL.ApiException"></exception>
2934
global::System.Threading.Tasks.Task<global::DeepL.AutoSDKHttpResponse<global::System.Collections.Generic.IList<global::DeepL.GetLanguagesResponseItem>>> GetLanguagesAsResponseAsync(
30-
global::DeepL.GetLanguagesType? type = default,
35+
global::DeepL.GetLanguagesResource resource,
36+
global::System.Collections.Generic.IList<global::DeepL.GetLanguagesIncludeItem>? include = default,
3137
global::DeepL.AutoSDKRequestOptions? requestOptions = default,
3238
global::System.Threading.CancellationToken cancellationToken = default);
3339
}

src/libs/DeepL/Generated/DeepL.IMetaInformationClient.GetLanguages2.g.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/libs/DeepL/Generated/DeepL.ITranslateDocumentsClient.TranslateDocument.g.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public partial interface ITranslateDocumentsClient
3636
/// <param name="sourceLang">
3737
/// Language of the text to be translated. If this parameter is omitted, the API will attempt to<br/>
3838
/// detect the language of the text and translate it.<br/>
39-
/// For the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource) (beta).<br/>
39+
/// For the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource).<br/>
4040
/// Example: EN
4141
/// </param>
4242
/// <param name="targetLang">
4343
/// The language into which the text should be translated.<br/>
44-
/// For the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource) (beta).<br/>
44+
/// For the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource).<br/>
4545
/// Example: DE
4646
/// </param>
4747
/// <param name="file">
@@ -64,8 +64,8 @@ public partial interface ITranslateDocumentsClient
6464
/// </param>
6565
/// <param name="formality">
6666
/// Sets whether the translated text should lean towards formal or informal language.<br/>
67-
/// This feature is only available for certain target languages. Setting this parameter <br/>
68-
/// with a target language that does not support formality will fail, unless one of the <br/>
67+
/// This feature is only available for certain target languages. Setting this parameter<br/>
68+
/// with a target language that does not support formality will fail, unless one of the<br/>
6969
/// `prefer_...` options are used.<br/>
7070
/// Possible options are:<br/>
7171
/// * `default` (default)<br/>
@@ -100,12 +100,12 @@ public partial interface ITranslateDocumentsClient
100100
/// <param name="sourceLang">
101101
/// Language of the text to be translated. If this parameter is omitted, the API will attempt to<br/>
102102
/// detect the language of the text and translate it.<br/>
103-
/// For the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource) (beta).<br/>
103+
/// For the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource).<br/>
104104
/// Example: EN
105105
/// </param>
106106
/// <param name="targetLang">
107107
/// The language into which the text should be translated.<br/>
108-
/// For the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource) (beta).<br/>
108+
/// For the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource).<br/>
109109
/// Example: DE
110110
/// </param>
111111
/// <param name="file">
@@ -163,12 +163,12 @@ public partial interface ITranslateDocumentsClient
163163
/// <param name="sourceLang">
164164
/// Language of the text to be translated. If this parameter is omitted, the API will attempt to<br/>
165165
/// detect the language of the text and translate it.<br/>
166-
/// For the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource) (beta).<br/>
166+
/// For the full list of supported source languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource).<br/>
167167
/// Example: EN
168168
/// </param>
169169
/// <param name="targetLang">
170170
/// The language into which the text should be translated.<br/>
171-
/// For the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource) (beta).<br/>
171+
/// For the full list of supported target languages, see [supported languages](https://developers.deepl.com/docs/getting-started/supported-languages) or query the [`GET /v3/languages` endpoint](https://developers.deepl.com/api-reference/languages/retrieve-supported-languages-by-resource).<br/>
172172
/// Example: DE
173173
/// </param>
174174
/// <param name="file">

0 commit comments

Comments
 (0)