@maxim_mazurok/gapi.client.translate-v3 0.0.20250507 → 0.0.20250729
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +11 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://translation.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250729
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -111,9 +111,11 @@ declare namespace gapi.client {
|
|
|
111
111
|
models?: {[P in string]: string};
|
|
112
112
|
/** Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs. */
|
|
113
113
|
outputConfig?: BatchDocumentOutputConfig;
|
|
114
|
+
/** Optional. If true, only native pdf pages will be translated. */
|
|
115
|
+
pdfNativeOnly?: boolean;
|
|
114
116
|
/** Required. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages). */
|
|
115
117
|
sourceLanguageCode?: string;
|
|
116
|
-
/** Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. */
|
|
118
|
+
/** Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages). */
|
|
117
119
|
targetLanguageCodes?: string[];
|
|
118
120
|
}
|
|
119
121
|
interface BatchTranslateTextRequest {
|
|
@@ -127,9 +129,9 @@ declare namespace gapi.client {
|
|
|
127
129
|
models?: {[P in string]: string};
|
|
128
130
|
/** Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs. */
|
|
129
131
|
outputConfig?: OutputConfig;
|
|
130
|
-
/** Required. Source language code. */
|
|
132
|
+
/** Required. Source language code. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages). */
|
|
131
133
|
sourceLanguageCode?: string;
|
|
132
|
-
/** Required. Specify up to 10 language codes here. */
|
|
134
|
+
/** Required. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages). */
|
|
133
135
|
targetLanguageCodes?: string[];
|
|
134
136
|
}
|
|
135
137
|
interface CancelOperationRequest {}
|
|
@@ -473,7 +475,7 @@ declare namespace gapi.client {
|
|
|
473
475
|
interface RomanizeTextRequest {
|
|
474
476
|
/** Required. The content of the input in string format. */
|
|
475
477
|
contents?: string[];
|
|
476
|
-
/** Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language for each content in the response. */
|
|
478
|
+
/** Optional. The ISO-639 language code of the input text if known, for example, "hi" or "zh". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages#roman). If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language for each content in the response. */
|
|
477
479
|
sourceLanguageCode?: string;
|
|
478
480
|
}
|
|
479
481
|
interface RomanizeTextResponse {
|
|
@@ -521,9 +523,9 @@ declare namespace gapi.client {
|
|
|
521
523
|
labels?: {[P in string]: string};
|
|
522
524
|
/** Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If not provided, the default Google model (NMT) will be used for translation. */
|
|
523
525
|
model?: string;
|
|
524
|
-
/** Optional. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language within the response. Source language must be specified if the request contains a glossary or a custom model. */
|
|
526
|
+
/** Optional. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages). If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language within the response. Source language must be specified if the request contains a glossary or a custom model. */
|
|
525
527
|
sourceLanguageCode?: string;
|
|
526
|
-
/** Required. The ISO-639 language code to use for translation of the input document, set to one of the language codes listed in Language Support. */
|
|
528
|
+
/** Required. The ISO-639 language code to use for translation of the input document, set to one of the language codes listed in [Language Support](https://cloud.google.com/translate/docs/languages). */
|
|
527
529
|
targetLanguageCode?: string;
|
|
528
530
|
}
|
|
529
531
|
interface TranslateDocumentResponse {
|
|
@@ -555,9 +557,9 @@ declare namespace gapi.client {
|
|
|
555
557
|
mimeType?: string;
|
|
556
558
|
/** Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - Translation LLM models: `projects/{project-number-or-id}/locations/{location-id}/models/general/translation-llm`, For global (non-regionalized) requests, use `location-id` `global`. For example, `projects/{project-number-or-id}/locations/global/models/general/nmt`. If not provided, the default Google model (NMT) will be used */
|
|
557
559
|
model?: string;
|
|
558
|
-
/** Optional. The ISO-639 language code of the input text if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language within the response. */
|
|
560
|
+
/** Optional. The ISO-639 language code of the input text if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages). If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language within the response. */
|
|
559
561
|
sourceLanguageCode?: string;
|
|
560
|
-
/** Required. The ISO-639 language code to use for translation of the input text, set to one of the language codes listed in Language Support. */
|
|
562
|
+
/** Required. The ISO-639 language code to use for translation of the input text, set to one of the language codes listed in [Language Support](https://cloud.google.com/translate/docs/languages). */
|
|
561
563
|
targetLanguageCode?: string;
|
|
562
564
|
/** Optional. Transliteration to be applied. */
|
|
563
565
|
transliterationConfig?: TransliterationConfig;
|