Skip to content

Commit d6e365c

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

9 files changed

Lines changed: 9 additions & 33 deletions

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public partial interface ITranslateDocumentsClient
8787
/// </param>
8888
/// <param name="translationMemoryId">
8989
/// A unique ID assigned to a translation memory.<br/>
90-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
9190
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
9291
/// </param>
9392
/// <param name="translationMemoryThreshold">
@@ -169,7 +168,6 @@ public partial interface ITranslateDocumentsClient
169168
/// </param>
170169
/// <param name="translationMemoryId">
171170
/// A unique ID assigned to a translation memory.<br/>
172-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
173171
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
174172
/// </param>
175173
/// <param name="translationMemoryThreshold">
@@ -250,7 +248,6 @@ public partial interface ITranslateDocumentsClient
250248
/// </param>
251249
/// <param name="translationMemoryId">
252250
/// A unique ID assigned to a translation memory.<br/>
253-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
254251
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
255252
/// </param>
256253
/// <param name="translationMemoryThreshold">

src/libs/DeepL/Generated/DeepL.ITranslateTextClient.TranslateText.g.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,11 @@ public partial interface ITranslateTextClient
9999
/// <param name="styleId">
100100
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
101101
/// **Important:** The target language has to match the language of the style rule list.<br/>
102-
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
102+
/// All `model_type` values are supported.<br/>
103103
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
104104
/// </param>
105105
/// <param name="translationMemoryId">
106106
/// A unique ID assigned to a translation memory.<br/>
107-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
108107
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
109108
/// </param>
110109
/// <param name="translationMemoryThreshold">
@@ -114,8 +113,7 @@ public partial interface ITranslateTextClient
114113
/// </param>
115114
/// <param name="customInstructions">
116115
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
117-
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
118-
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
116+
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
119117
/// </param>
120118
/// <param name="tagHandling">
121119
/// Sets which kind of tags should be handled. Options currently available:<br/>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public sealed partial class TranslateDocumentRequest
9696

9797
/// <summary>
9898
/// A unique ID assigned to a translation memory.<br/>
99-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
10099
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
101100
/// </summary>
102101
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
@@ -183,7 +182,6 @@ public sealed partial class TranslateDocumentRequest
183182
/// </param>
184183
/// <param name="translationMemoryId">
185184
/// A unique ID assigned to a translation memory.<br/>
186-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
187185
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
188186
/// </param>
189187
/// <param name="translationMemoryThreshold">

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public sealed partial class TranslateTextRequest
117117
/// <summary>
118118
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
119119
/// **Important:** The target language has to match the language of the style rule list.<br/>
120-
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
120+
/// All `model_type` values are supported.<br/>
121121
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
122122
/// </summary>
123123
/// <example>7ff9bfd6-cd85-4190-8503-d6215a321519</example>
@@ -126,7 +126,6 @@ public sealed partial class TranslateTextRequest
126126

127127
/// <summary>
128128
/// A unique ID assigned to a translation memory.<br/>
129-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
130129
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
131130
/// </summary>
132131
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
@@ -144,8 +143,7 @@ public sealed partial class TranslateTextRequest
144143

145144
/// <summary>
146145
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
147-
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
148-
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
146+
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
149147
/// </summary>
150148
[global::System.Text.Json.Serialization.JsonPropertyName("custom_instructions")]
151149
public global::System.Collections.Generic.IList<string>? CustomInstructions { get; set; }
@@ -280,12 +278,11 @@ public sealed partial class TranslateTextRequest
280278
/// <param name="styleId">
281279
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
282280
/// **Important:** The target language has to match the language of the style rule list.<br/>
283-
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
281+
/// All `model_type` values are supported.<br/>
284282
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
285283
/// </param>
286284
/// <param name="translationMemoryId">
287285
/// A unique ID assigned to a translation memory.<br/>
288-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
289286
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
290287
/// </param>
291288
/// <param name="translationMemoryThreshold">
@@ -295,8 +292,7 @@ public sealed partial class TranslateTextRequest
295292
/// </param>
296293
/// <param name="customInstructions">
297294
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
298-
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
299-
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
295+
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
300296
/// </param>
301297
/// <param name="tagHandling">
302298
/// Sets which kind of tags should be handled. Options currently available:<br/>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public sealed partial class TranslateTextRequest2
114114

115115
/// <summary>
116116
/// A unique ID assigned to a translation memory.<br/>
117-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
118117
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
119118
/// </summary>
120119
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
@@ -248,7 +247,6 @@ public sealed partial class TranslateTextRequest2
248247
/// </param>
249248
/// <param name="translationMemoryId">
250249
/// A unique ID assigned to a translation memory.<br/>
251-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
252250
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
253251
/// </param>
254252
/// <param name="translationMemoryThreshold">

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ public sealed partial class TranslationMemory
1010
{
1111
/// <summary>
1212
/// A unique ID assigned to a translation memory.<br/>
13-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
1413
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
1514
/// </summary>
1615
/// <example>a74d88fb-ed2a-4943-a664-a4512398b994</example>
@@ -66,7 +65,6 @@ public sealed partial class TranslationMemory
6665
/// </summary>
6766
/// <param name="translationMemoryId">
6867
/// A unique ID assigned to a translation memory.<br/>
69-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
7068
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
7169
/// </param>
7270
/// <param name="name">

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,6 @@ request.Filename is null
941941
/// </param>
942942
/// <param name="translationMemoryId">
943943
/// A unique ID assigned to a translation memory.<br/>
944-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
945944
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
946945
/// </param>
947946
/// <param name="translationMemoryThreshold">
@@ -1043,7 +1042,6 @@ request.Filename is null
10431042
/// </param>
10441043
/// <param name="translationMemoryId">
10451044
/// A unique ID assigned to a translation memory.<br/>
1046-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
10471045
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
10481046
/// </param>
10491047
/// <param name="translationMemoryThreshold">
@@ -1923,7 +1921,6 @@ request.Filename is null
19231921
/// </param>
19241922
/// <param name="translationMemoryId">
19251923
/// A unique ID assigned to a translation memory.<br/>
1926-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
19271924
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
19281925
/// </param>
19291926
/// <param name="translationMemoryThreshold">

src/libs/DeepL/Generated/DeepL.TranslateTextClient.TranslateText.g.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,12 +872,11 @@ partial void ProcessTranslateTextResponseContent(
872872
/// <param name="styleId">
873873
/// Specify the [style rule list](/api-reference/style-rules) to use for the translation.<br/>
874874
/// **Important:** The target language has to match the language of the style rule list.<br/>
875-
/// **Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.<br/>
875+
/// All `model_type` values are supported.<br/>
876876
/// Example: 7ff9bfd6-cd85-4190-8503-d6215a321519
877877
/// </param>
878878
/// <param name="translationMemoryId">
879879
/// A unique ID assigned to a translation memory.<br/>
880-
/// **Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.<br/>
881880
/// Example: a74d88fb-ed2a-4943-a664-a4512398b994
882881
/// </param>
883882
/// <param name="translationMemoryThreshold">
@@ -887,8 +886,7 @@ partial void ProcessTranslateTextResponseContent(
887886
/// </param>
888887
/// <param name="customInstructions">
889888
/// Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.<br/>
890-
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.<br/>
891-
/// **Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
889+
/// **Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
892890
/// </param>
893891
/// <param name="tagHandling">
894892
/// Sets which kind of tags should be handled. Options currently available:<br/>

src/libs/DeepL/openapi.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ paths:
586586
587587
**Important:** The target language has to match the language of the style rule list.
588588
589-
**Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.
589+
All `model_type` values are supported.
590590
type: string
591591
example: 7ff9bfd6-cd85-4190-8503-d6215a321519
592592
translation_memory_id:
@@ -598,8 +598,6 @@ paths:
598598
Specify a list of instructions to customize the translation behavior. Up to 10 custom instructions can be specified, each with a maximum of 300 characters.
599599
600600
**Important:** The target language must be `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `zh` or any variants of these languages.
601-
602-
**Note:** Any request with the `custom_instructions` parameter enabled will default to use the `quality_optimized` model type. Requests combining `custom_instructions` and `model_type: latency_optimized` will be rejected.
603601
type: array
604602
items:
605603
type: string
@@ -5431,8 +5429,6 @@ components:
54315429
format: uuid
54325430
description: |-
54335431
A unique ID assigned to a translation memory.
5434-
5435-
**Note:** Requests with the `translation_memory_id` parameter must use the `quality_optimized` model type. Requests combining `translation_memory_id` and `model_type: latency_optimized` will be rejected.
54365432
example: a74d88fb-ed2a-4943-a664-a4512398b994
54375433
TranslationMemorySourceLanguage:
54385434
description: The source language of the translation memory.

0 commit comments

Comments
 (0)