@maxim_mazurok/gapi.client.translate-v3beta1 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 +15 -13
- 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=v3beta1
|
|
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 v3beta1 */
|
|
18
18
|
function load(
|
|
19
|
-
urlOrObject: 'https://translation.googleapis.com/$discovery/rest?version=v3beta1'
|
|
19
|
+
urlOrObject: 'https://translation.googleapis.com/$discovery/rest?version=v3beta1',
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/** @deprecated Please load APIs with discovery documents. */
|
|
22
22
|
function load(name: 'translate', version: 'v3beta1'): Promise<void>;
|
|
@@ -24,7 +24,7 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(
|
|
25
25
|
name: 'translate',
|
|
26
26
|
version: 'v3beta1',
|
|
27
|
-
callback: () => any
|
|
27
|
+
callback: () => any,
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace translate {
|
|
@@ -365,7 +365,7 @@ declare namespace gapi.client {
|
|
|
365
365
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
366
366
|
uploadType?: string;
|
|
367
367
|
},
|
|
368
|
-
body: Glossary
|
|
368
|
+
body: Glossary,
|
|
369
369
|
): Request<Operation>;
|
|
370
370
|
/** Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist. */
|
|
371
371
|
delete(request?: {
|
|
@@ -512,7 +512,7 @@ declare namespace gapi.client {
|
|
|
512
512
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
513
513
|
uploadType?: string;
|
|
514
514
|
},
|
|
515
|
-
body: CancelOperationRequest
|
|
515
|
+
body: CancelOperationRequest,
|
|
516
516
|
): Request<{}>;
|
|
517
517
|
/** 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`. */
|
|
518
518
|
delete(request?: {
|
|
@@ -657,7 +657,7 @@ declare namespace gapi.client {
|
|
|
657
657
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
658
658
|
uploadType?: string;
|
|
659
659
|
},
|
|
660
|
-
body: WaitOperationRequest
|
|
660
|
+
body: WaitOperationRequest,
|
|
661
661
|
): Request<Operation>;
|
|
662
662
|
}
|
|
663
663
|
interface LocationsResource {
|
|
@@ -717,7 +717,7 @@ declare namespace gapi.client {
|
|
|
717
717
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
718
718
|
uploadType?: string;
|
|
719
719
|
},
|
|
720
|
-
body: BatchTranslateDocumentRequest
|
|
720
|
+
body: BatchTranslateDocumentRequest,
|
|
721
721
|
): Request<Operation>;
|
|
722
722
|
/** 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. */
|
|
723
723
|
batchTranslateText(request: {
|
|
@@ -775,7 +775,7 @@ declare namespace gapi.client {
|
|
|
775
775
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
776
776
|
uploadType?: string;
|
|
777
777
|
},
|
|
778
|
-
body: BatchTranslateTextRequest
|
|
778
|
+
body: BatchTranslateTextRequest,
|
|
779
779
|
): Request<Operation>;
|
|
780
780
|
/** Detects the language of text within a request. */
|
|
781
781
|
detectLanguage(request: {
|
|
@@ -833,7 +833,7 @@ declare namespace gapi.client {
|
|
|
833
833
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
834
834
|
uploadType?: string;
|
|
835
835
|
},
|
|
836
|
-
body: DetectLanguageRequest
|
|
836
|
+
body: DetectLanguageRequest,
|
|
837
837
|
): Request<DetectLanguageResponse>;
|
|
838
838
|
/** Gets information about a location. */
|
|
839
839
|
get(request?: {
|
|
@@ -903,6 +903,8 @@ declare namespace gapi.client {
|
|
|
903
903
|
alt?: string;
|
|
904
904
|
/** JSONP */
|
|
905
905
|
callback?: string;
|
|
906
|
+
/** Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations. */
|
|
907
|
+
extraLocationTypes?: string | string[];
|
|
906
908
|
/** Selector specifying which fields to include in a partial response. */
|
|
907
909
|
fields?: string;
|
|
908
910
|
/** 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). */
|
|
@@ -982,7 +984,7 @@ declare namespace gapi.client {
|
|
|
982
984
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
983
985
|
uploadType?: string;
|
|
984
986
|
},
|
|
985
|
-
body: TranslateDocumentRequest
|
|
987
|
+
body: TranslateDocumentRequest,
|
|
986
988
|
): Request<TranslateDocumentResponse>;
|
|
987
989
|
/** Translates input text and returns translated text. */
|
|
988
990
|
translateText(request: {
|
|
@@ -1040,7 +1042,7 @@ declare namespace gapi.client {
|
|
|
1040
1042
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1041
1043
|
uploadType?: string;
|
|
1042
1044
|
},
|
|
1043
|
-
body: TranslateTextRequest
|
|
1045
|
+
body: TranslateTextRequest,
|
|
1044
1046
|
): Request<TranslateTextResponse>;
|
|
1045
1047
|
glossaries: GlossariesResource;
|
|
1046
1048
|
operations: OperationsResource;
|
|
@@ -1102,7 +1104,7 @@ declare namespace gapi.client {
|
|
|
1102
1104
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1103
1105
|
uploadType?: string;
|
|
1104
1106
|
},
|
|
1105
|
-
body: DetectLanguageRequest
|
|
1107
|
+
body: DetectLanguageRequest,
|
|
1106
1108
|
): Request<DetectLanguageResponse>;
|
|
1107
1109
|
/** Returns a list of supported languages for translation. */
|
|
1108
1110
|
getSupportedLanguages(request?: {
|
|
@@ -1191,7 +1193,7 @@ declare namespace gapi.client {
|
|
|
1191
1193
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1192
1194
|
uploadType?: string;
|
|
1193
1195
|
},
|
|
1194
|
-
body: TranslateTextRequest
|
|
1196
|
+
body: TranslateTextRequest,
|
|
1195
1197
|
): Request<TranslateTextResponse>;
|
|
1196
1198
|
locations: LocationsResource;
|
|
1197
1199
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED