@maxim_mazurok/gapi.client.translate-v3 0.0.20241218 → 0.0.20250414

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 +24 -24
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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: 20241218
12
+ // Revision: 20250414
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Translation API v3 */
18
18
  function load(
19
- urlOrObject: 'https://translation.googleapis.com/$discovery/rest?version=v3'
19
+ urlOrObject: 'https://translation.googleapis.com/$discovery/rest?version=v3',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'translate', version: 'v3'): Promise<void>;
@@ -795,7 +795,7 @@ declare namespace gapi.client {
795
795
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
796
796
  uploadType?: string;
797
797
  },
798
- body: AdaptiveMtDataset
798
+ body: AdaptiveMtDataset,
799
799
  ): Request<AdaptiveMtDataset>;
800
800
  /** Deletes an Adaptive MT dataset, including all its entries and associated metadata. */
801
801
  delete(request?: {
@@ -907,7 +907,7 @@ declare namespace gapi.client {
907
907
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
908
908
  uploadType?: string;
909
909
  },
910
- body: ImportAdaptiveMtFileRequest
910
+ body: ImportAdaptiveMtFileRequest,
911
911
  ): Request<ImportAdaptiveMtFileResponse>;
912
912
  /** Lists all Adaptive MT datasets for which the caller has read permission. */
913
913
  list(request?: {
@@ -1037,7 +1037,7 @@ declare namespace gapi.client {
1037
1037
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1038
1038
  uploadType?: string;
1039
1039
  },
1040
- body: Dataset
1040
+ body: Dataset,
1041
1041
  ): Request<Operation>;
1042
1042
  /** Deletes a dataset and all of its contents. */
1043
1043
  delete(request?: {
@@ -1122,7 +1122,7 @@ declare namespace gapi.client {
1122
1122
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1123
1123
  uploadType?: string;
1124
1124
  },
1125
- body: ExportDataRequest
1125
+ body: ExportDataRequest,
1126
1126
  ): Request<Operation>;
1127
1127
  /** Gets a Dataset. */
1128
1128
  get(request?: {
@@ -1207,7 +1207,7 @@ declare namespace gapi.client {
1207
1207
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1208
1208
  uploadType?: string;
1209
1209
  },
1210
- body: ImportDataRequest
1210
+ body: ImportDataRequest,
1211
1211
  ): Request<Operation>;
1212
1212
  /** Lists datasets. */
1213
1213
  list(request?: {
@@ -1299,7 +1299,7 @@ declare namespace gapi.client {
1299
1299
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1300
1300
  uploadType?: string;
1301
1301
  },
1302
- body: GlossaryEntry
1302
+ body: GlossaryEntry,
1303
1303
  ): Request<GlossaryEntry>;
1304
1304
  /** Deletes a single entry from the glossary */
1305
1305
  delete(request?: {
@@ -1442,7 +1442,7 @@ declare namespace gapi.client {
1442
1442
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1443
1443
  uploadType?: string;
1444
1444
  },
1445
- body: GlossaryEntry
1445
+ body: GlossaryEntry,
1446
1446
  ): Request<GlossaryEntry>;
1447
1447
  }
1448
1448
  interface GlossariesResource {
@@ -1502,7 +1502,7 @@ declare namespace gapi.client {
1502
1502
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1503
1503
  uploadType?: string;
1504
1504
  },
1505
- body: Glossary
1505
+ body: Glossary,
1506
1506
  ): Request<Operation>;
1507
1507
  /** Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist. */
1508
1508
  delete(request?: {
@@ -1651,7 +1651,7 @@ declare namespace gapi.client {
1651
1651
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1652
1652
  uploadType?: string;
1653
1653
  },
1654
- body: Glossary
1654
+ body: Glossary,
1655
1655
  ): Request<Operation>;
1656
1656
  glossaryEntries: GlossaryEntriesResource;
1657
1657
  }
@@ -1712,7 +1712,7 @@ declare namespace gapi.client {
1712
1712
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1713
1713
  uploadType?: string;
1714
1714
  },
1715
- body: Model
1715
+ body: Model,
1716
1716
  ): Request<Operation>;
1717
1717
  /** Deletes a model. */
1718
1718
  delete(request?: {
@@ -1859,7 +1859,7 @@ declare namespace gapi.client {
1859
1859
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1860
1860
  uploadType?: string;
1861
1861
  },
1862
- body: CancelOperationRequest
1862
+ body: CancelOperationRequest,
1863
1863
  ): Request<{}>;
1864
1864
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1865
1865
  delete(request?: {
@@ -2004,7 +2004,7 @@ declare namespace gapi.client {
2004
2004
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2005
2005
  uploadType?: string;
2006
2006
  },
2007
- body: WaitOperationRequest
2007
+ body: WaitOperationRequest,
2008
2008
  ): Request<Operation>;
2009
2009
  }
2010
2010
  interface LocationsResource {
@@ -2064,7 +2064,7 @@ declare namespace gapi.client {
2064
2064
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2065
2065
  uploadType?: string;
2066
2066
  },
2067
- body: AdaptiveMtTranslateRequest
2067
+ body: AdaptiveMtTranslateRequest,
2068
2068
  ): Request<AdaptiveMtTranslateResponse>;
2069
2069
  /** Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. */
2070
2070
  batchTranslateDocument(request: {
@@ -2122,7 +2122,7 @@ declare namespace gapi.client {
2122
2122
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2123
2123
  uploadType?: string;
2124
2124
  },
2125
- body: BatchTranslateDocumentRequest
2125
+ body: BatchTranslateDocumentRequest,
2126
2126
  ): Request<Operation>;
2127
2127
  /** Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. */
2128
2128
  batchTranslateText(request: {
@@ -2180,7 +2180,7 @@ declare namespace gapi.client {
2180
2180
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2181
2181
  uploadType?: string;
2182
2182
  },
2183
- body: BatchTranslateTextRequest
2183
+ body: BatchTranslateTextRequest,
2184
2184
  ): Request<Operation>;
2185
2185
  /** Detects the language of text within a request. */
2186
2186
  detectLanguage(request: {
@@ -2238,7 +2238,7 @@ declare namespace gapi.client {
2238
2238
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2239
2239
  uploadType?: string;
2240
2240
  },
2241
- body: DetectLanguageRequest
2241
+ body: DetectLanguageRequest,
2242
2242
  ): Request<DetectLanguageResponse>;
2243
2243
  /** Gets information about a location. */
2244
2244
  get(request?: {
@@ -2387,7 +2387,7 @@ declare namespace gapi.client {
2387
2387
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2388
2388
  uploadType?: string;
2389
2389
  },
2390
- body: RomanizeTextRequest
2390
+ body: RomanizeTextRequest,
2391
2391
  ): Request<RomanizeTextResponse>;
2392
2392
  /** Translates documents in synchronous mode. */
2393
2393
  translateDocument(request: {
@@ -2445,7 +2445,7 @@ declare namespace gapi.client {
2445
2445
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2446
2446
  uploadType?: string;
2447
2447
  },
2448
- body: TranslateDocumentRequest
2448
+ body: TranslateDocumentRequest,
2449
2449
  ): Request<TranslateDocumentResponse>;
2450
2450
  /** Translates input text and returns translated text. */
2451
2451
  translateText(request: {
@@ -2503,7 +2503,7 @@ declare namespace gapi.client {
2503
2503
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2504
2504
  uploadType?: string;
2505
2505
  },
2506
- body: TranslateTextRequest
2506
+ body: TranslateTextRequest,
2507
2507
  ): Request<TranslateTextResponse>;
2508
2508
  adaptiveMtDatasets: AdaptiveMtDatasetsResource;
2509
2509
  datasets: DatasetsResource;
@@ -2568,7 +2568,7 @@ declare namespace gapi.client {
2568
2568
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2569
2569
  uploadType?: string;
2570
2570
  },
2571
- body: DetectLanguageRequest
2571
+ body: DetectLanguageRequest,
2572
2572
  ): Request<DetectLanguageResponse>;
2573
2573
  /** Returns a list of supported languages for translation. */
2574
2574
  getSupportedLanguages(request?: {
@@ -2657,7 +2657,7 @@ declare namespace gapi.client {
2657
2657
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2658
2658
  uploadType?: string;
2659
2659
  },
2660
- body: RomanizeTextRequest
2660
+ body: RomanizeTextRequest,
2661
2661
  ): Request<RomanizeTextResponse>;
2662
2662
  /** Translates input text and returns translated text. */
2663
2663
  translateText(request: {
@@ -2715,7 +2715,7 @@ declare namespace gapi.client {
2715
2715
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2716
2716
  uploadType?: string;
2717
2717
  },
2718
- body: TranslateTextRequest
2718
+ body: TranslateTextRequest,
2719
2719
  ): Request<TranslateTextResponse>;
2720
2720
  locations: LocationsResource;
2721
2721
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.translate-v3",
3
- "version": "0.0.20241218",
3
+ "version": "0.0.20250414",
4
4
  "description": "TypeScript typings for Cloud Translation API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.translate
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -65,7 +65,7 @@ gapi.auth.authorize(
65
65
  } else {
66
66
  /* handle authorization error */
67
67
  }
68
- }
68
+ },
69
69
  );
70
70
  ```
71
71