@maxim_mazurok/gapi.client.translate-v3 0.0.20250103 → 0.0.20250424
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 +26 -24
- package/package.json +1 -1
- 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:
|
|
12
|
+
// Revision: 20250424
|
|
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?: {
|
|
@@ -2308,6 +2308,8 @@ declare namespace gapi.client {
|
|
|
2308
2308
|
alt?: string;
|
|
2309
2309
|
/** JSONP */
|
|
2310
2310
|
callback?: string;
|
|
2311
|
+
/** Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations. */
|
|
2312
|
+
extraLocationTypes?: string | string[];
|
|
2311
2313
|
/** Selector specifying which fields to include in a partial response. */
|
|
2312
2314
|
fields?: string;
|
|
2313
2315
|
/** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
|
|
@@ -2387,7 +2389,7 @@ declare namespace gapi.client {
|
|
|
2387
2389
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2388
2390
|
uploadType?: string;
|
|
2389
2391
|
},
|
|
2390
|
-
body: RomanizeTextRequest
|
|
2392
|
+
body: RomanizeTextRequest,
|
|
2391
2393
|
): Request<RomanizeTextResponse>;
|
|
2392
2394
|
/** Translates documents in synchronous mode. */
|
|
2393
2395
|
translateDocument(request: {
|
|
@@ -2445,7 +2447,7 @@ declare namespace gapi.client {
|
|
|
2445
2447
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2446
2448
|
uploadType?: string;
|
|
2447
2449
|
},
|
|
2448
|
-
body: TranslateDocumentRequest
|
|
2450
|
+
body: TranslateDocumentRequest,
|
|
2449
2451
|
): Request<TranslateDocumentResponse>;
|
|
2450
2452
|
/** Translates input text and returns translated text. */
|
|
2451
2453
|
translateText(request: {
|
|
@@ -2503,7 +2505,7 @@ declare namespace gapi.client {
|
|
|
2503
2505
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2504
2506
|
uploadType?: string;
|
|
2505
2507
|
},
|
|
2506
|
-
body: TranslateTextRequest
|
|
2508
|
+
body: TranslateTextRequest,
|
|
2507
2509
|
): Request<TranslateTextResponse>;
|
|
2508
2510
|
adaptiveMtDatasets: AdaptiveMtDatasetsResource;
|
|
2509
2511
|
datasets: DatasetsResource;
|
|
@@ -2568,7 +2570,7 @@ declare namespace gapi.client {
|
|
|
2568
2570
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2569
2571
|
uploadType?: string;
|
|
2570
2572
|
},
|
|
2571
|
-
body: DetectLanguageRequest
|
|
2573
|
+
body: DetectLanguageRequest,
|
|
2572
2574
|
): Request<DetectLanguageResponse>;
|
|
2573
2575
|
/** Returns a list of supported languages for translation. */
|
|
2574
2576
|
getSupportedLanguages(request?: {
|
|
@@ -2657,7 +2659,7 @@ declare namespace gapi.client {
|
|
|
2657
2659
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2658
2660
|
uploadType?: string;
|
|
2659
2661
|
},
|
|
2660
|
-
body: RomanizeTextRequest
|
|
2662
|
+
body: RomanizeTextRequest,
|
|
2661
2663
|
): Request<RomanizeTextResponse>;
|
|
2662
2664
|
/** Translates input text and returns translated text. */
|
|
2663
2665
|
translateText(request: {
|
|
@@ -2715,7 +2717,7 @@ declare namespace gapi.client {
|
|
|
2715
2717
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2716
2718
|
uploadType?: string;
|
|
2717
2719
|
},
|
|
2718
|
-
body: TranslateTextRequest
|
|
2720
|
+
body: TranslateTextRequest,
|
|
2719
2721
|
): Request<TranslateTextResponse>;
|
|
2720
2722
|
locations: LocationsResource;
|
|
2721
2723
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED