@aws-sdk/client-translate 3.42.0 → 3.47.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/CHANGELOG.md +50 -0
- package/dist-cjs/endpoints.js +1 -16
- package/dist-cjs/models/models_0.js +11 -80
- package/dist-cjs/protocols/Aws_json1_1.js +20 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -16
- package/dist-es/models/models_0.js +8 -52
- package/dist-es/protocols/Aws_json1_1.js +19 -3
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/TranslateClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +75 -88
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +20 -52
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -27,10 +27,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
27
27
|
$fault: "client";
|
|
28
28
|
Message?: string;
|
|
29
29
|
}
|
|
30
|
-
export declare namespace ConflictException {
|
|
31
|
-
|
|
32
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
33
|
-
}
|
|
34
30
|
export declare enum EncryptionKeyType {
|
|
35
31
|
KMS = "KMS"
|
|
36
32
|
}
|
|
@@ -100,60 +96,36 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
|
|
|
100
96
|
$fault: "server";
|
|
101
97
|
Message?: string;
|
|
102
98
|
}
|
|
103
|
-
export declare namespace InternalServerException {
|
|
104
|
-
|
|
105
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
106
|
-
}
|
|
107
99
|
|
|
108
100
|
export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
|
|
109
101
|
name: "InvalidParameterValueException";
|
|
110
102
|
$fault: "client";
|
|
111
103
|
Message?: string;
|
|
112
104
|
}
|
|
113
|
-
export declare namespace InvalidParameterValueException {
|
|
114
|
-
|
|
115
|
-
const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
|
|
116
|
-
}
|
|
117
105
|
|
|
118
106
|
export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
|
|
119
107
|
name: "InvalidRequestException";
|
|
120
108
|
$fault: "client";
|
|
121
109
|
Message?: string;
|
|
122
110
|
}
|
|
123
|
-
export declare namespace InvalidRequestException {
|
|
124
|
-
|
|
125
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
126
|
-
}
|
|
127
111
|
|
|
128
112
|
export interface LimitExceededException extends __SmithyException, $MetadataBearer {
|
|
129
113
|
name: "LimitExceededException";
|
|
130
114
|
$fault: "client";
|
|
131
115
|
Message?: string;
|
|
132
116
|
}
|
|
133
|
-
export declare namespace LimitExceededException {
|
|
134
|
-
|
|
135
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
136
|
-
}
|
|
137
117
|
|
|
138
118
|
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
|
|
139
119
|
name: "TooManyRequestsException";
|
|
140
120
|
$fault: "client";
|
|
141
121
|
Message?: string;
|
|
142
122
|
}
|
|
143
|
-
export declare namespace TooManyRequestsException {
|
|
144
|
-
|
|
145
|
-
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
146
|
-
}
|
|
147
123
|
|
|
148
124
|
export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
|
|
149
125
|
name: "ConcurrentModificationException";
|
|
150
126
|
$fault: "client";
|
|
151
127
|
Message?: string;
|
|
152
128
|
}
|
|
153
|
-
export declare namespace ConcurrentModificationException {
|
|
154
|
-
|
|
155
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
156
|
-
}
|
|
157
129
|
export interface DeleteParallelDataRequest {
|
|
158
130
|
|
|
159
131
|
Name: string | undefined;
|
|
@@ -178,10 +150,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
178
150
|
$fault: "client";
|
|
179
151
|
Message?: string;
|
|
180
152
|
}
|
|
181
|
-
export declare namespace ResourceNotFoundException {
|
|
182
|
-
|
|
183
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
184
|
-
}
|
|
185
153
|
export interface DeleteTerminologyRequest {
|
|
186
154
|
|
|
187
155
|
Name: string | undefined;
|
|
@@ -242,6 +210,18 @@ export declare namespace OutputDataConfig {
|
|
|
242
210
|
|
|
243
211
|
const filterSensitiveLog: (obj: OutputDataConfig) => any;
|
|
244
212
|
}
|
|
213
|
+
export declare enum Profanity {
|
|
214
|
+
MASK = "MASK"
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface TranslationSettings {
|
|
218
|
+
|
|
219
|
+
Profanity?: Profanity | string;
|
|
220
|
+
}
|
|
221
|
+
export declare namespace TranslationSettings {
|
|
222
|
+
|
|
223
|
+
const filterSensitiveLog: (obj: TranslationSettings) => any;
|
|
224
|
+
}
|
|
245
225
|
|
|
246
226
|
export interface TextTranslationJobProperties {
|
|
247
227
|
|
|
@@ -272,6 +252,8 @@ export interface TextTranslationJobProperties {
|
|
|
272
252
|
OutputDataConfig?: OutputDataConfig;
|
|
273
253
|
|
|
274
254
|
DataAccessRoleArn?: string;
|
|
255
|
+
|
|
256
|
+
Settings?: TranslationSettings;
|
|
275
257
|
}
|
|
276
258
|
export declare namespace TextTranslationJobProperties {
|
|
277
259
|
|
|
@@ -524,10 +506,6 @@ export interface InvalidFilterException extends __SmithyException, $MetadataBear
|
|
|
524
506
|
$fault: "client";
|
|
525
507
|
Message?: string;
|
|
526
508
|
}
|
|
527
|
-
export declare namespace InvalidFilterException {
|
|
528
|
-
|
|
529
|
-
const filterSensitiveLog: (obj: InvalidFilterException) => any;
|
|
530
|
-
}
|
|
531
509
|
|
|
532
510
|
export interface TextTranslationJobFilter {
|
|
533
511
|
|
|
@@ -584,6 +562,8 @@ export interface StartTextTranslationJobRequest {
|
|
|
584
562
|
ParallelDataNames?: string[];
|
|
585
563
|
|
|
586
564
|
ClientToken?: string;
|
|
565
|
+
|
|
566
|
+
Settings?: TranslationSettings;
|
|
587
567
|
}
|
|
588
568
|
export declare namespace StartTextTranslationJobRequest {
|
|
589
569
|
|
|
@@ -609,10 +589,6 @@ export interface UnsupportedLanguagePairException extends __SmithyException, $Me
|
|
|
609
589
|
|
|
610
590
|
TargetLanguageCode?: string;
|
|
611
591
|
}
|
|
612
|
-
export declare namespace UnsupportedLanguagePairException {
|
|
613
|
-
|
|
614
|
-
const filterSensitiveLog: (obj: UnsupportedLanguagePairException) => any;
|
|
615
|
-
}
|
|
616
592
|
export interface StopTextTranslationJobRequest {
|
|
617
593
|
|
|
618
594
|
JobId: string | undefined;
|
|
@@ -639,30 +615,18 @@ export interface DetectedLanguageLowConfidenceException extends __SmithyExceptio
|
|
|
639
615
|
|
|
640
616
|
DetectedLanguageCode?: string;
|
|
641
617
|
}
|
|
642
|
-
export declare namespace DetectedLanguageLowConfidenceException {
|
|
643
|
-
|
|
644
|
-
const filterSensitiveLog: (obj: DetectedLanguageLowConfidenceException) => any;
|
|
645
|
-
}
|
|
646
618
|
|
|
647
619
|
export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
|
|
648
620
|
name: "ServiceUnavailableException";
|
|
649
621
|
$fault: "server";
|
|
650
622
|
Message?: string;
|
|
651
623
|
}
|
|
652
|
-
export declare namespace ServiceUnavailableException {
|
|
653
|
-
|
|
654
|
-
const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
|
|
655
|
-
}
|
|
656
624
|
|
|
657
625
|
export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
|
|
658
626
|
name: "TextSizeLimitExceededException";
|
|
659
627
|
$fault: "client";
|
|
660
628
|
Message?: string;
|
|
661
629
|
}
|
|
662
|
-
export declare namespace TextSizeLimitExceededException {
|
|
663
|
-
|
|
664
|
-
const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
|
|
665
|
-
}
|
|
666
630
|
export interface TranslateTextRequest {
|
|
667
631
|
|
|
668
632
|
Text: string | undefined;
|
|
@@ -672,6 +636,8 @@ export interface TranslateTextRequest {
|
|
|
672
636
|
SourceLanguageCode: string | undefined;
|
|
673
637
|
|
|
674
638
|
TargetLanguageCode: string | undefined;
|
|
639
|
+
|
|
640
|
+
Settings?: TranslationSettings;
|
|
675
641
|
}
|
|
676
642
|
export declare namespace TranslateTextRequest {
|
|
677
643
|
|
|
@@ -686,6 +652,8 @@ export interface TranslateTextResponse {
|
|
|
686
652
|
TargetLanguageCode: string | undefined;
|
|
687
653
|
|
|
688
654
|
AppliedTerminologies?: AppliedTerminology[];
|
|
655
|
+
|
|
656
|
+
AppliedSettings?: TranslationSettings;
|
|
689
657
|
}
|
|
690
658
|
export declare namespace TranslateTextResponse {
|
|
691
659
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { TranslateClientConfig } from "./TranslateClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { TranslateClientConfig } from "./TranslateClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
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.47.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
-
"
|
|
12
|
-
"clean
|
|
13
|
-
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
16
13
|
},
|
|
17
14
|
"main": "./dist-cjs/index.js",
|
|
18
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,50 +18,46 @@
|
|
|
21
18
|
"dependencies": {
|
|
22
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
20
|
"@aws-crypto/sha256-js": "2.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-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
51
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.47.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.47.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.47.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.47.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.47.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.47.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.47.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.47.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.47.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.0",
|
|
39
|
+
"@aws-sdk/types": "3.47.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.0",
|
|
52
51
|
"tslib": "^2.3.0",
|
|
53
52
|
"uuid": "^8.3.2"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.0",
|
|
57
56
|
"@types/node": "^12.7.5",
|
|
58
|
-
"@types/uuid": "^8.3.0"
|
|
59
|
-
"downlevel-dts": "0.7.0",
|
|
60
|
-
"jest": "^26.1.0",
|
|
61
|
-
"rimraf": "^3.0.0",
|
|
62
|
-
"ts-jest": "^26.4.1",
|
|
63
|
-
"typedoc": "^0.19.2",
|
|
64
|
-
"typescript": "~4.3.5"
|
|
57
|
+
"@types/uuid": "^8.3.0"
|
|
65
58
|
},
|
|
66
59
|
"engines": {
|
|
67
|
-
"node": ">=
|
|
60
|
+
"node": ">=12.0.0"
|
|
68
61
|
},
|
|
69
62
|
"typesVersions": {
|
|
70
63
|
"<4.0": {
|