@maxim_mazurok/gapi.client.translate-v3 0.0.20241029 → 0.0.20250103

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 +6 -2
  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: 20241029
12
+ // Revision: 20250103
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -263,6 +263,8 @@ declare namespace gapi.client {
263
263
  submitTime?: string;
264
264
  }
265
265
  interface GlossaryConfig {
266
+ /** Optional. If set to true, the glossary will be used for contextual translation. */
267
+ contextualTranslationEnabled?: boolean;
266
268
  /** 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
269
  glossary?: string;
268
270
  /** Optional. Indicates match is case insensitive. The default value is `false` if missing. */
@@ -535,6 +537,8 @@ declare namespace gapi.client {
535
537
  model?: string;
536
538
  }
537
539
  interface TranslateTextGlossaryConfig {
540
+ /** Optional. If set to true, the glossary will be used for contextual translation. */
541
+ contextualTranslationEnabled?: boolean;
538
542
  /** 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}` */
539
543
  glossary?: string;
540
544
  /** Optional. Indicates match is case insensitive. The default value is `false` if missing. */
@@ -1799,7 +1803,7 @@ declare namespace gapi.client {
1799
1803
  }): Request<ListModelsResponse>;
1800
1804
  }
1801
1805
  interface OperationsResource {
1802
- /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
1806
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
1803
1807
  cancel(request: {
1804
1808
  /** V1 error format. */
1805
1809
  '$.xgafv'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.translate-v3",
3
- "version": "0.0.20241029",
3
+ "version": "0.0.20250103",
4
4
  "description": "TypeScript typings for Cloud Translation API v3",
5
5
  "repository": {
6
6
  "type": "git",