@maxim_mazurok/gapi.client.translate-v3 0.0.20240718 → 0.0.20240821

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 (2) hide show
  1. package/index.d.ts +12 -6
  2. 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: 20240718
12
+ // Revision: 20240821
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -70,7 +70,7 @@ declare namespace gapi.client {
70
70
  /** Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}` */
71
71
  dataset?: string;
72
72
  /** Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned. */
73
- glossaryConfig?: TranslateTextGlossaryConfig;
73
+ glossaryConfig?: GlossaryConfig;
74
74
  /** Configuration for caller provided reference sentences. */
75
75
  referenceSentenceConfig?: ReferenceSentenceConfig;
76
76
  }
@@ -207,7 +207,7 @@ declare namespace gapi.client {
207
207
  }
208
208
  interface Empty {}
209
209
  interface Example {
210
- /** Output only. The resource name of the example, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}' */
210
+ /** Output only. The resource name of the example, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}` */
211
211
  name?: string;
212
212
  /** Sentence in source language. */
213
213
  sourceText?: string;
@@ -262,10 +262,16 @@ declare namespace gapi.client {
262
262
  /** Output only. When CreateGlossary was called. */
263
263
  submitTime?: string;
264
264
  }
265
+ interface GlossaryConfig {
266
+ /** Required. The `glossary` to be applied for this translation. The format depends on the glossary: - User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}` */
267
+ glossary?: string;
268
+ /** Optional. Indicates match is case insensitive. The default value is `false` if missing. */
269
+ ignoreCase?: boolean;
270
+ }
265
271
  interface GlossaryEntry {
266
272
  /** Describes the glossary entry. */
267
273
  description?: string;
268
- /** Identifier. The resource name of the entry. Format: "projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*" */
274
+ /** Identifier. The resource name of the entry. Format: `projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*` */
269
275
  name?: string;
270
276
  /** Used for an unidirectional glossary. */
271
277
  termsPair?: GlossaryTermsPair;
@@ -1390,7 +1396,7 @@ declare namespace gapi.client {
1390
1396
  fields?: string;
1391
1397
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1392
1398
  key?: string;
1393
- /** Identifier. The resource name of the entry. Format: "projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*" */
1399
+ /** Identifier. The resource name of the entry. Format: `projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*` */
1394
1400
  name: string;
1395
1401
  /** OAuth 2.0 token for the current user. */
1396
1402
  oauth_token?: string;
@@ -1419,7 +1425,7 @@ declare namespace gapi.client {
1419
1425
  fields?: string;
1420
1426
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1421
1427
  key?: string;
1422
- /** Identifier. The resource name of the entry. Format: "projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*" */
1428
+ /** Identifier. The resource name of the entry. Format: `projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*` */
1423
1429
  name: string;
1424
1430
  /** OAuth 2.0 token for the current user. */
1425
1431
  oauth_token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.translate-v3",
3
- "version": "0.0.20240718",
3
+ "version": "0.0.20240821",
4
4
  "description": "TypeScript typings for Cloud Translation API v3",
5
5
  "repository": {
6
6
  "type": "git",