@aws-sdk/client-translate 3.337.0 → 3.341.0
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/README.md +8 -0
- package/dist-cjs/Translate.js +2 -0
- package/dist-cjs/TranslateClient.js +2 -1
- package/dist-cjs/commands/CreateParallelDataCommand.js +2 -1
- package/dist-cjs/commands/DeleteParallelDataCommand.js +2 -1
- package/dist-cjs/commands/DeleteTerminologyCommand.js +2 -1
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +2 -1
- package/dist-cjs/commands/GetParallelDataCommand.js +2 -1
- package/dist-cjs/commands/GetTerminologyCommand.js +2 -1
- package/dist-cjs/commands/ImportTerminologyCommand.js +2 -1
- package/dist-cjs/commands/ListLanguagesCommand.js +2 -1
- package/dist-cjs/commands/ListParallelDataCommand.js +2 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
- package/dist-cjs/commands/ListTerminologiesCommand.js +2 -1
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js +2 -1
- package/dist-cjs/commands/StartTextTranslationJobCommand.js +2 -1
- package/dist-cjs/commands/StopTextTranslationJobCommand.js +2 -1
- package/dist-cjs/commands/TagResourceCommand.js +2 -1
- package/dist-cjs/commands/TranslateDocumentCommand.js +47 -0
- package/dist-cjs/commands/TranslateTextCommand.js +2 -1
- package/dist-cjs/commands/UntagResourceCommand.js +2 -1
- package/dist-cjs/commands/UpdateParallelDataCommand.js +2 -1
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/index.js +2 -2
- package/dist-cjs/models/TranslateServiceException.js +2 -1
- package/dist-cjs/models/models_0.js +35 -15
- package/dist-cjs/protocols/Aws_json1_1.js +88 -1
- package/dist-es/Translate.js +2 -0
- package/dist-es/TranslateClient.js +1 -0
- package/dist-es/commands/CreateParallelDataCommand.js +1 -0
- package/dist-es/commands/DeleteParallelDataCommand.js +1 -0
- package/dist-es/commands/DeleteTerminologyCommand.js +1 -0
- package/dist-es/commands/DescribeTextTranslationJobCommand.js +1 -0
- package/dist-es/commands/GetParallelDataCommand.js +1 -0
- package/dist-es/commands/GetTerminologyCommand.js +1 -0
- package/dist-es/commands/ImportTerminologyCommand.js +1 -0
- package/dist-es/commands/ListLanguagesCommand.js +1 -0
- package/dist-es/commands/ListParallelDataCommand.js +1 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -0
- package/dist-es/commands/ListTerminologiesCommand.js +1 -0
- package/dist-es/commands/ListTextTranslationJobsCommand.js +1 -0
- package/dist-es/commands/StartTextTranslationJobCommand.js +1 -0
- package/dist-es/commands/StopTextTranslationJobCommand.js +1 -0
- package/dist-es/commands/TagResourceCommand.js +1 -0
- package/dist-es/commands/TranslateDocumentCommand.js +43 -0
- package/dist-es/commands/TranslateTextCommand.js +1 -0
- package/dist-es/commands/UntagResourceCommand.js +1 -0
- package/dist-es/commands/UpdateParallelDataCommand.js +1 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/index.js +2 -2
- package/dist-es/models/TranslateServiceException.js +1 -0
- package/dist-es/models/models_0.js +29 -13
- package/dist-es/protocols/Aws_json1_1.js +85 -0
- package/dist-types/Translate.d.ts +7 -0
- package/dist-types/TranslateClient.d.ts +6 -5
- package/dist-types/commands/CreateParallelDataCommand.d.ts +4 -0
- package/dist-types/commands/DeleteParallelDataCommand.d.ts +4 -0
- package/dist-types/commands/DeleteTerminologyCommand.d.ts +4 -0
- package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +4 -0
- package/dist-types/commands/GetParallelDataCommand.d.ts +4 -0
- package/dist-types/commands/GetTerminologyCommand.d.ts +4 -0
- package/dist-types/commands/ImportTerminologyCommand.d.ts +4 -0
- package/dist-types/commands/ListLanguagesCommand.d.ts +4 -0
- package/dist-types/commands/ListParallelDataCommand.d.ts +4 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
- package/dist-types/commands/ListTerminologiesCommand.d.ts +4 -0
- package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +4 -0
- package/dist-types/commands/StartTextTranslationJobCommand.d.ts +5 -1
- package/dist-types/commands/StopTextTranslationJobCommand.d.ts +4 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/TranslateDocumentCommand.d.ts +144 -0
- package/dist-types/commands/TranslateTextCommand.d.ts +5 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateParallelDataCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/index.d.ts +7 -2
- package/dist-types/models/TranslateServiceException.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +147 -26
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Translate.d.ts +17 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +9 -3
- package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListLanguagesCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/TranslateDocumentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/index.d.ts +2 -2
- package/dist-types/ts3.4/models/TranslateServiceException.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +39 -8
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +28 -28
|
@@ -106,6 +106,10 @@ import {
|
|
|
106
106
|
TagResourceCommandInput,
|
|
107
107
|
TagResourceCommandOutput,
|
|
108
108
|
} from "./commands/TagResourceCommand";
|
|
109
|
+
import {
|
|
110
|
+
TranslateDocumentCommandInput,
|
|
111
|
+
TranslateDocumentCommandOutput,
|
|
112
|
+
} from "./commands/TranslateDocumentCommand";
|
|
109
113
|
import {
|
|
110
114
|
TranslateTextCommandInput,
|
|
111
115
|
TranslateTextCommandOutput,
|
|
@@ -123,6 +127,7 @@ import {
|
|
|
123
127
|
ClientResolvedEndpointParameters,
|
|
124
128
|
EndpointParameters,
|
|
125
129
|
} from "./endpoint/EndpointParameters";
|
|
130
|
+
export { __Client };
|
|
126
131
|
export type ServiceInputTypes =
|
|
127
132
|
| CreateParallelDataCommandInput
|
|
128
133
|
| DeleteParallelDataCommandInput
|
|
@@ -139,6 +144,7 @@ export type ServiceInputTypes =
|
|
|
139
144
|
| StartTextTranslationJobCommandInput
|
|
140
145
|
| StopTextTranslationJobCommandInput
|
|
141
146
|
| TagResourceCommandInput
|
|
147
|
+
| TranslateDocumentCommandInput
|
|
142
148
|
| TranslateTextCommandInput
|
|
143
149
|
| UntagResourceCommandInput
|
|
144
150
|
| UpdateParallelDataCommandInput;
|
|
@@ -158,6 +164,7 @@ export type ServiceOutputTypes =
|
|
|
158
164
|
| StartTextTranslationJobCommandOutput
|
|
159
165
|
| StopTextTranslationJobCommandOutput
|
|
160
166
|
| TagResourceCommandOutput
|
|
167
|
+
| TranslateDocumentCommandOutput
|
|
161
168
|
| TranslateTextCommandOutput
|
|
162
169
|
| UntagResourceCommandOutput
|
|
163
170
|
| UpdateParallelDataCommandOutput;
|
|
@@ -185,7 +192,7 @@ export interface ClientDefaults
|
|
|
185
192
|
logger?: __Logger;
|
|
186
193
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
187
194
|
}
|
|
188
|
-
type TranslateClientConfigType = Partial<
|
|
195
|
+
export type TranslateClientConfigType = Partial<
|
|
189
196
|
__SmithyConfiguration<__HttpHandlerOptions>
|
|
190
197
|
> &
|
|
191
198
|
ClientDefaults &
|
|
@@ -197,7 +204,7 @@ type TranslateClientConfigType = Partial<
|
|
|
197
204
|
UserAgentInputConfig &
|
|
198
205
|
ClientInputEndpointParameters;
|
|
199
206
|
export interface TranslateClientConfig extends TranslateClientConfigType {}
|
|
200
|
-
type TranslateClientResolvedConfigType =
|
|
207
|
+
export type TranslateClientResolvedConfigType =
|
|
201
208
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
202
209
|
Required<ClientDefaults> &
|
|
203
210
|
RegionResolvedConfig &
|
|
@@ -219,4 +226,3 @@ export declare class TranslateClient extends __Client<
|
|
|
219
226
|
constructor(configuration: TranslateClientConfig);
|
|
220
227
|
destroy(): void;
|
|
221
228
|
}
|
|
222
|
-
export {};
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface CreateParallelDataCommandInput
|
|
19
20
|
extends CreateParallelDataRequest {}
|
|
20
21
|
export interface CreateParallelDataCommandOutput
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface DeleteParallelDataCommandInput
|
|
19
20
|
extends DeleteParallelDataRequest {}
|
|
20
21
|
export interface DeleteParallelDataCommandOutput
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
ServiceOutputTypes,
|
|
13
13
|
TranslateClientResolvedConfig,
|
|
14
14
|
} from "../TranslateClient";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
15
16
|
export interface DeleteTerminologyCommandInput
|
|
16
17
|
extends DeleteTerminologyRequest {}
|
|
17
18
|
export interface DeleteTerminologyCommandOutput extends __MetadataBearer {}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface DescribeTextTranslationJobCommandInput
|
|
19
20
|
extends DescribeTextTranslationJobRequest {}
|
|
20
21
|
export interface DescribeTextTranslationJobCommandOutput
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface GetParallelDataCommandInput extends GetParallelDataRequest {}
|
|
19
20
|
export interface GetParallelDataCommandOutput
|
|
20
21
|
extends GetParallelDataResponse,
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface GetTerminologyCommandInput extends GetTerminologyRequest {}
|
|
19
20
|
export interface GetTerminologyCommandOutput
|
|
20
21
|
extends GetTerminologyResponse,
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface ImportTerminologyCommandInput
|
|
19
20
|
extends ImportTerminologyRequest {}
|
|
20
21
|
export interface ImportTerminologyCommandOutput
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface ListLanguagesCommandInput extends ListLanguagesRequest {}
|
|
19
20
|
export interface ListLanguagesCommandOutput
|
|
20
21
|
extends ListLanguagesResponse,
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface ListParallelDataCommandInput extends ListParallelDataRequest {}
|
|
19
20
|
export interface ListParallelDataCommandOutput
|
|
20
21
|
extends ListParallelDataResponse,
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface ListTagsForResourceCommandInput
|
|
19
20
|
extends ListTagsForResourceRequest {}
|
|
20
21
|
export interface ListTagsForResourceCommandOutput
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface ListTerminologiesCommandInput
|
|
19
20
|
extends ListTerminologiesRequest {}
|
|
20
21
|
export interface ListTerminologiesCommandOutput
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface ListTextTranslationJobsCommandInput
|
|
19
20
|
extends ListTextTranslationJobsRequest {}
|
|
20
21
|
export interface ListTextTranslationJobsCommandOutput
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface StartTextTranslationJobCommandInput
|
|
19
20
|
extends StartTextTranslationJobRequest {}
|
|
20
21
|
export interface StartTextTranslationJobCommandOutput
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface StopTextTranslationJobCommandInput
|
|
19
20
|
extends StopTextTranslationJobRequest {}
|
|
20
21
|
export interface StopTextTranslationJobCommandOutput
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
ServiceOutputTypes,
|
|
13
13
|
TranslateClientResolvedConfig,
|
|
14
14
|
} from "../TranslateClient";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
15
16
|
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
16
17
|
export interface TagResourceCommandOutput
|
|
17
18
|
extends TagResourceResponse,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
TranslateDocumentRequest,
|
|
11
|
+
TranslateDocumentResponse,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
ServiceInputTypes,
|
|
15
|
+
ServiceOutputTypes,
|
|
16
|
+
TranslateClientResolvedConfig,
|
|
17
|
+
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface TranslateDocumentCommandInput
|
|
20
|
+
extends TranslateDocumentRequest {}
|
|
21
|
+
export interface TranslateDocumentCommandOutput
|
|
22
|
+
extends TranslateDocumentResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class TranslateDocumentCommand extends $Command<
|
|
25
|
+
TranslateDocumentCommandInput,
|
|
26
|
+
TranslateDocumentCommandOutput,
|
|
27
|
+
TranslateClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: TranslateDocumentCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: TranslateDocumentCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: TranslateClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<TranslateDocumentCommandInput, TranslateDocumentCommandOutput>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface TranslateTextCommandInput extends TranslateTextRequest {}
|
|
19
20
|
export interface TranslateTextCommandOutput
|
|
20
21
|
extends TranslateTextResponse,
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
19
20
|
export interface UntagResourceCommandOutput
|
|
20
21
|
extends UntagResourceResponse,
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ServiceOutputTypes,
|
|
16
16
|
TranslateClientResolvedConfig,
|
|
17
17
|
} from "../TranslateClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
18
19
|
export interface UpdateParallelDataCommandInput
|
|
19
20
|
extends UpdateParallelDataRequest {}
|
|
20
21
|
export interface UpdateParallelDataCommandOutput
|
|
@@ -13,6 +13,7 @@ export * from "./ListTextTranslationJobsCommand";
|
|
|
13
13
|
export * from "./StartTextTranslationJobCommand";
|
|
14
14
|
export * from "./StopTextTranslationJobCommand";
|
|
15
15
|
export * from "./TagResourceCommand";
|
|
16
|
+
export * from "./TranslateDocumentCommand";
|
|
16
17
|
export * from "./TranslateTextCommand";
|
|
17
18
|
export * from "./UntagResourceCommand";
|
|
18
19
|
export * from "./UpdateParallelDataCommand";
|
|
@@ -25,7 +25,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
25
25
|
defaultSigningName: string;
|
|
26
26
|
};
|
|
27
27
|
export interface EndpointParameters extends __EndpointParameters {
|
|
28
|
-
Region
|
|
28
|
+
Region?: string;
|
|
29
29
|
UseDualStack?: boolean;
|
|
30
30
|
UseFIPS?: boolean;
|
|
31
31
|
Endpoint?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./Translate";
|
|
2
1
|
export * from "./TranslateClient";
|
|
2
|
+
export * from "./Translate";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./models";
|
|
5
4
|
export * from "./pagination";
|
|
5
|
+
export * from "./models";
|
|
6
6
|
export { TranslateServiceException } from "./models/TranslateServiceException";
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
ServiceException as __ServiceException,
|
|
3
3
|
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
4
4
|
} from "@aws-sdk/smithy-client";
|
|
5
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
5
6
|
export declare class TranslateServiceException extends __ServiceException {
|
|
6
7
|
constructor(options: __ServiceExceptionOptions);
|
|
7
8
|
}
|
|
@@ -416,6 +416,35 @@ export interface TagResourceRequest {
|
|
|
416
416
|
Tags: Tag[] | undefined;
|
|
417
417
|
}
|
|
418
418
|
export interface TagResourceResponse {}
|
|
419
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
420
|
+
readonly name: "ServiceUnavailableException";
|
|
421
|
+
readonly $fault: "server";
|
|
422
|
+
Message?: string;
|
|
423
|
+
constructor(
|
|
424
|
+
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
export interface Document {
|
|
428
|
+
Content: Uint8Array | undefined;
|
|
429
|
+
ContentType: string | undefined;
|
|
430
|
+
}
|
|
431
|
+
export interface TranslateDocumentRequest {
|
|
432
|
+
Document: Document | undefined;
|
|
433
|
+
TerminologyNames?: string[];
|
|
434
|
+
SourceLanguageCode: string | undefined;
|
|
435
|
+
TargetLanguageCode: string | undefined;
|
|
436
|
+
Settings?: TranslationSettings;
|
|
437
|
+
}
|
|
438
|
+
export interface TranslatedDocument {
|
|
439
|
+
Content: Uint8Array | undefined;
|
|
440
|
+
}
|
|
441
|
+
export interface TranslateDocumentResponse {
|
|
442
|
+
TranslatedDocument: TranslatedDocument | undefined;
|
|
443
|
+
SourceLanguageCode: string | undefined;
|
|
444
|
+
TargetLanguageCode: string | undefined;
|
|
445
|
+
AppliedTerminologies?: AppliedTerminology[];
|
|
446
|
+
AppliedSettings?: TranslationSettings;
|
|
447
|
+
}
|
|
419
448
|
export declare class DetectedLanguageLowConfidenceException extends __BaseException {
|
|
420
449
|
readonly name: "DetectedLanguageLowConfidenceException";
|
|
421
450
|
readonly $fault: "client";
|
|
@@ -428,14 +457,6 @@ export declare class DetectedLanguageLowConfidenceException extends __BaseExcept
|
|
|
428
457
|
>
|
|
429
458
|
);
|
|
430
459
|
}
|
|
431
|
-
export declare class ServiceUnavailableException extends __BaseException {
|
|
432
|
-
readonly name: "ServiceUnavailableException";
|
|
433
|
-
readonly $fault: "server";
|
|
434
|
-
Message?: string;
|
|
435
|
-
constructor(
|
|
436
|
-
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
437
|
-
);
|
|
438
|
-
}
|
|
439
460
|
export declare class TextSizeLimitExceededException extends __BaseException {
|
|
440
461
|
readonly name: "TextSizeLimitExceededException";
|
|
441
462
|
readonly $fault: "client";
|
|
@@ -481,3 +502,13 @@ export declare const TerminologyDataFilterSensitiveLog: (
|
|
|
481
502
|
export declare const ImportTerminologyRequestFilterSensitiveLog: (
|
|
482
503
|
obj: ImportTerminologyRequest
|
|
483
504
|
) => any;
|
|
505
|
+
export declare const DocumentFilterSensitiveLog: (obj: Document) => any;
|
|
506
|
+
export declare const TranslateDocumentRequestFilterSensitiveLog: (
|
|
507
|
+
obj: TranslateDocumentRequest
|
|
508
|
+
) => any;
|
|
509
|
+
export declare const TranslatedDocumentFilterSensitiveLog: (
|
|
510
|
+
obj: TranslatedDocument
|
|
511
|
+
) => any;
|
|
512
|
+
export declare const TranslateDocumentResponseFilterSensitiveLog: (
|
|
513
|
+
obj: TranslateDocumentResponse
|
|
514
|
+
) => any;
|
|
@@ -63,6 +63,10 @@ import {
|
|
|
63
63
|
TagResourceCommandInput,
|
|
64
64
|
TagResourceCommandOutput,
|
|
65
65
|
} from "../commands/TagResourceCommand";
|
|
66
|
+
import {
|
|
67
|
+
TranslateDocumentCommandInput,
|
|
68
|
+
TranslateDocumentCommandOutput,
|
|
69
|
+
} from "../commands/TranslateDocumentCommand";
|
|
66
70
|
import {
|
|
67
71
|
TranslateTextCommandInput,
|
|
68
72
|
TranslateTextCommandOutput,
|
|
@@ -135,6 +139,10 @@ export declare const se_TagResourceCommand: (
|
|
|
135
139
|
input: TagResourceCommandInput,
|
|
136
140
|
context: __SerdeContext
|
|
137
141
|
) => Promise<__HttpRequest>;
|
|
142
|
+
export declare const se_TranslateDocumentCommand: (
|
|
143
|
+
input: TranslateDocumentCommandInput,
|
|
144
|
+
context: __SerdeContext
|
|
145
|
+
) => Promise<__HttpRequest>;
|
|
138
146
|
export declare const se_TranslateTextCommand: (
|
|
139
147
|
input: TranslateTextCommandInput,
|
|
140
148
|
context: __SerdeContext
|
|
@@ -207,6 +215,10 @@ export declare const de_TagResourceCommand: (
|
|
|
207
215
|
output: __HttpResponse,
|
|
208
216
|
context: __SerdeContext
|
|
209
217
|
) => Promise<TagResourceCommandOutput>;
|
|
218
|
+
export declare const de_TranslateDocumentCommand: (
|
|
219
|
+
output: __HttpResponse,
|
|
220
|
+
context: __SerdeContext
|
|
221
|
+
) => Promise<TranslateDocumentCommandOutput>;
|
|
210
222
|
export declare const de_TranslateTextCommand: (
|
|
211
223
|
output: __HttpResponse,
|
|
212
224
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-translate",
|
|
3
3
|
"description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.341.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,36 +21,36 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.341.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.341.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.341.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.341.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.341.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.341.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.341.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.341.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.341.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.341.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.341.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.341.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.341.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.341.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.341.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.341.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.341.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.341.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.341.0",
|
|
43
|
+
"@aws-sdk/types": "3.341.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.341.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.341.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.341.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.341.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.341.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.341.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.341.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|