@maxim_mazurok/gapi.client.translate-v3beta1 0.0.20250103 → 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.
- package/index.d.ts +13 -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: 20250414
|
|
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?: {
|
|
@@ -982,7 +982,7 @@ declare namespace gapi.client {
|
|
|
982
982
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
983
983
|
uploadType?: string;
|
|
984
984
|
},
|
|
985
|
-
body: TranslateDocumentRequest
|
|
985
|
+
body: TranslateDocumentRequest,
|
|
986
986
|
): Request<TranslateDocumentResponse>;
|
|
987
987
|
/** Translates input text and returns translated text. */
|
|
988
988
|
translateText(request: {
|
|
@@ -1040,7 +1040,7 @@ declare namespace gapi.client {
|
|
|
1040
1040
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1041
1041
|
uploadType?: string;
|
|
1042
1042
|
},
|
|
1043
|
-
body: TranslateTextRequest
|
|
1043
|
+
body: TranslateTextRequest,
|
|
1044
1044
|
): Request<TranslateTextResponse>;
|
|
1045
1045
|
glossaries: GlossariesResource;
|
|
1046
1046
|
operations: OperationsResource;
|
|
@@ -1102,7 +1102,7 @@ declare namespace gapi.client {
|
|
|
1102
1102
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1103
1103
|
uploadType?: string;
|
|
1104
1104
|
},
|
|
1105
|
-
body: DetectLanguageRequest
|
|
1105
|
+
body: DetectLanguageRequest,
|
|
1106
1106
|
): Request<DetectLanguageResponse>;
|
|
1107
1107
|
/** Returns a list of supported languages for translation. */
|
|
1108
1108
|
getSupportedLanguages(request?: {
|
|
@@ -1191,7 +1191,7 @@ declare namespace gapi.client {
|
|
|
1191
1191
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1192
1192
|
uploadType?: string;
|
|
1193
1193
|
},
|
|
1194
|
-
body: TranslateTextRequest
|
|
1194
|
+
body: TranslateTextRequest,
|
|
1195
1195
|
): Request<TranslateTextResponse>;
|
|
1196
1196
|
locations: LocationsResource;
|
|
1197
1197
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED