@maxim_mazurok/gapi.client.translate-v3 0.0.20230210 → 0.0.20230224

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.
Files changed (3) hide show
  1. package/index.d.ts +15 -15
  2. package/package.json +1 -1
  3. package/tests.ts +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: 20230210
12
+ // Revision: 20230224
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -76,11 +76,11 @@ declare namespace gapi.client {
76
76
  /** 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. */
77
77
  outputConfig?: BatchDocumentOutputConfig;
78
78
  /**
79
- * Required. The BCP-47 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language
79
+ * 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
80
80
  * Support](https://cloud.google.com/translate/docs/languages).
81
81
  */
82
82
  sourceLanguageCode?: string;
83
- /** Required. The BCP-47 language code to use for translation of the input document. Specify up to 10 language codes here. */
83
+ /** Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. */
84
84
  targetLanguageCodes?: string[];
85
85
  }
86
86
  interface BatchTranslateTextRequest {
@@ -147,7 +147,7 @@ declare namespace gapi.client {
147
147
  interface DetectedLanguage {
148
148
  /** The confidence of the detection result for this language. */
149
149
  confidence?: number;
150
- /** The BCP-47 language code of the source content in the request, detected automatically. */
150
+ /** The ISO-639 language code of the source content in the request, detected automatically. */
151
151
  languageCode?: string;
152
152
  }
153
153
  interface DetectLanguageRequest {
@@ -336,14 +336,14 @@ declare namespace gapi.client {
336
336
  usage?: string;
337
337
  }
338
338
  interface LanguageCodePair {
339
- /** Required. The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code. */
339
+ /** Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code. */
340
340
  sourceLanguageCode?: string;
341
- /** Required. The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. */
341
+ /** Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. */
342
342
  targetLanguageCode?: string;
343
343
  }
344
344
  interface LanguageCodesSet {
345
345
  /**
346
- * The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for
346
+ * The ISO-639 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for
347
347
  * GlossaryTerm.language_code.
348
348
  */
349
349
  languageCodes?: string[];
@@ -493,7 +493,7 @@ declare namespace gapi.client {
493
493
  /** Human-readable name of the language localized in the display language specified in the request. */
494
494
  displayName?: string;
495
495
  /**
496
- * Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are
496
+ * Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes including language and region identifiers are
497
497
  * returned (for example, 'zh-TW' and 'zh-CN').
498
498
  */
499
499
  languageCode?: string;
@@ -541,12 +541,12 @@ declare namespace gapi.client {
541
541
  */
542
542
  model?: string;
543
543
  /**
544
- * Optional. The BCP-47 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
545
- * 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
546
- * contains a glossary or a custom model.
544
+ * 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
545
+ * 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
546
+ * the request contains a glossary or a custom model.
547
547
  */
548
548
  sourceLanguageCode?: string;
549
- /** Required. The BCP-47 language code to use for translation of the input document, set to one of the language codes listed in Language Support. */
549
+ /** 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. */
550
550
  targetLanguageCode?: string;
551
551
  }
552
552
  interface TranslateDocumentResponse {
@@ -595,11 +595,11 @@ declare namespace gapi.client {
595
595
  */
596
596
  model?: string;
597
597
  /**
598
- * Optional. The BCP-47 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
598
+ * 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
599
599
  * isn't specified, the API attempts to identify the source language automatically and returns the source language within the response.
600
600
  */
601
601
  sourceLanguageCode?: string;
602
- /** Required. The BCP-47 language code to use for translation of the input text, set to one of the language codes listed in Language Support. */
602
+ /** 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. */
603
603
  targetLanguageCode?: string;
604
604
  }
605
605
  interface TranslateTextResponse {
@@ -610,7 +610,7 @@ declare namespace gapi.client {
610
610
  }
611
611
  interface Translation {
612
612
  /**
613
- * The BCP-47 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was
613
+ * The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was
614
614
  * passed, auto-detection of the language does not occur and this field is empty.
615
615
  */
616
616
  detectedLanguageCode?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.translate-v3",
3
- "version": "0.0.20230210",
3
+ "version": "0.0.20230224",
4
4
  "description": "TypeScript typings for Cloud Translation API v3",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230210
6
+ // Revision: 20230224
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */