@aws-sdk/client-translate 3.933.0 → 3.935.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/dist-cjs/index.js +59 -58
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +58 -0
- package/dist-es/models/errors.js +219 -0
- package/dist-es/models/models_0.js +1 -277
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +146 -0
- package/dist-types/models/errors.d.ts +230 -0
- package/dist-types/models/models_0.d.ts +1 -376
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +75 -0
- package/dist-types/ts3.4/models/errors.d.ts +136 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -211
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -178,7 +178,7 @@ const _s = "server";
|
|
|
178
178
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.translate";
|
|
179
179
|
const n0 = "com.amazonaws.translate";
|
|
180
180
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
181
|
-
import { ConcurrentModificationException as __ConcurrentModificationException, ConflictException as __ConflictException, DetectedLanguageLowConfidenceException as __DetectedLanguageLowConfidenceException, InternalServerException as __InternalServerException, InvalidFilterException as __InvalidFilterException, InvalidParameterValueException as __InvalidParameterValueException, InvalidRequestException as __InvalidRequestException, LimitExceededException as __LimitExceededException, ResourceNotFoundException as __ResourceNotFoundException, ServiceUnavailableException as __ServiceUnavailableException, TextSizeLimitExceededException as __TextSizeLimitExceededException, TooManyRequestsException as __TooManyRequestsException, TooManyTagsException as __TooManyTagsException, UnsupportedDisplayLanguageCodeException as __UnsupportedDisplayLanguageCodeException, UnsupportedLanguagePairException as __UnsupportedLanguagePairException, } from "../models/
|
|
181
|
+
import { ConcurrentModificationException as __ConcurrentModificationException, ConflictException as __ConflictException, DetectedLanguageLowConfidenceException as __DetectedLanguageLowConfidenceException, InternalServerException as __InternalServerException, InvalidFilterException as __InvalidFilterException, InvalidParameterValueException as __InvalidParameterValueException, InvalidRequestException as __InvalidRequestException, LimitExceededException as __LimitExceededException, ResourceNotFoundException as __ResourceNotFoundException, ServiceUnavailableException as __ServiceUnavailableException, TextSizeLimitExceededException as __TextSizeLimitExceededException, TooManyRequestsException as __TooManyRequestsException, TooManyTagsException as __TooManyTagsException, UnsupportedDisplayLanguageCodeException as __UnsupportedDisplayLanguageCodeException, UnsupportedLanguagePairException as __UnsupportedLanguagePairException, } from "../models/errors";
|
|
182
182
|
import { TranslateServiceException as __TranslateServiceException } from "../models/TranslateServiceException";
|
|
183
183
|
export var DocumentContent = [0, n0, _DC, 8, 21];
|
|
184
184
|
export var TerminologyFile = [0, n0, _TF, 8, 21];
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { TranslateExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
-
export * from "./models";
|
|
13
|
+
export * from "./models/enums";
|
|
14
|
+
export * from "./models/errors";
|
|
15
|
+
export type * from "./models/models_0";
|
|
14
16
|
export { TranslateServiceException } from "./models/TranslateServiceException";
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const EncryptionKeyType: {
|
|
6
|
+
readonly KMS: "KMS";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export type EncryptionKeyType = (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* @enum
|
|
15
|
+
*/
|
|
16
|
+
export declare const ParallelDataFormat: {
|
|
17
|
+
readonly CSV: "CSV";
|
|
18
|
+
readonly TMX: "TMX";
|
|
19
|
+
readonly TSV: "TSV";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type ParallelDataFormat = (typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
* @enum
|
|
28
|
+
*/
|
|
29
|
+
export declare const ParallelDataStatus: {
|
|
30
|
+
readonly ACTIVE: "ACTIVE";
|
|
31
|
+
readonly CREATING: "CREATING";
|
|
32
|
+
readonly DELETING: "DELETING";
|
|
33
|
+
readonly FAILED: "FAILED";
|
|
34
|
+
readonly UPDATING: "UPDATING";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type ParallelDataStatus = (typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @enum
|
|
43
|
+
*/
|
|
44
|
+
export declare const JobStatus: {
|
|
45
|
+
readonly COMPLETED: "COMPLETED";
|
|
46
|
+
readonly COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR";
|
|
47
|
+
readonly FAILED: "FAILED";
|
|
48
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
49
|
+
readonly STOPPED: "STOPPED";
|
|
50
|
+
readonly STOP_REQUESTED: "STOP_REQUESTED";
|
|
51
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* @enum
|
|
60
|
+
*/
|
|
61
|
+
export declare const Brevity: {
|
|
62
|
+
readonly ON: "ON";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export type Brevity = (typeof Brevity)[keyof typeof Brevity];
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* @enum
|
|
71
|
+
*/
|
|
72
|
+
export declare const Formality: {
|
|
73
|
+
readonly FORMAL: "FORMAL";
|
|
74
|
+
readonly INFORMAL: "INFORMAL";
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export type Formality = (typeof Formality)[keyof typeof Formality];
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
* @enum
|
|
83
|
+
*/
|
|
84
|
+
export declare const Profanity: {
|
|
85
|
+
readonly MASK: "MASK";
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export type Profanity = (typeof Profanity)[keyof typeof Profanity];
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
* @enum
|
|
94
|
+
*/
|
|
95
|
+
export declare const TerminologyDataFormat: {
|
|
96
|
+
readonly CSV: "CSV";
|
|
97
|
+
readonly TMX: "TMX";
|
|
98
|
+
readonly TSV: "TSV";
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export type TerminologyDataFormat = (typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* @enum
|
|
107
|
+
*/
|
|
108
|
+
export declare const Directionality: {
|
|
109
|
+
readonly MULTI: "MULTI";
|
|
110
|
+
readonly UNI: "UNI";
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export type Directionality = (typeof Directionality)[keyof typeof Directionality];
|
|
116
|
+
/**
|
|
117
|
+
* @public
|
|
118
|
+
* @enum
|
|
119
|
+
*/
|
|
120
|
+
export declare const MergeStrategy: {
|
|
121
|
+
readonly OVERWRITE: "OVERWRITE";
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
* @enum
|
|
130
|
+
*/
|
|
131
|
+
export declare const DisplayLanguageCode: {
|
|
132
|
+
readonly DE: "de";
|
|
133
|
+
readonly EN: "en";
|
|
134
|
+
readonly ES: "es";
|
|
135
|
+
readonly FR: "fr";
|
|
136
|
+
readonly IT: "it";
|
|
137
|
+
readonly JA: "ja";
|
|
138
|
+
readonly KO: "ko";
|
|
139
|
+
readonly PT: "pt";
|
|
140
|
+
readonly ZH: "zh";
|
|
141
|
+
readonly ZH_TW: "zh-TW";
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
export type DisplayLanguageCode = (typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>Another modification is being made. That modification must complete before you can make
|
|
5
|
+
* your change.</p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class ConcurrentModificationException extends __BaseException {
|
|
9
|
+
readonly name: "ConcurrentModificationException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
Message?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* <p>There was a conflict processing the request. Try your request again.</p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare class ConflictException extends __BaseException {
|
|
22
|
+
readonly name: "ConflictException";
|
|
23
|
+
readonly $fault: "client";
|
|
24
|
+
Message?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export declare class InternalServerException extends __BaseException {
|
|
35
|
+
readonly name: "InternalServerException";
|
|
36
|
+
readonly $fault: "server";
|
|
37
|
+
Message?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* <p>The value of the parameter is not valid. Review the value of the parameter you are using
|
|
45
|
+
* to correct it, and then retry your operation.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export declare class InvalidParameterValueException extends __BaseException {
|
|
49
|
+
readonly name: "InvalidParameterValueException";
|
|
50
|
+
readonly $fault: "client";
|
|
51
|
+
Message?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* <p> The request that you made is not valid. Check your request to determine why it's not
|
|
59
|
+
* valid and then retry the request. </p>
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export declare class InvalidRequestException extends __BaseException {
|
|
63
|
+
readonly name: "InvalidRequestException";
|
|
64
|
+
readonly $fault: "client";
|
|
65
|
+
Message?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* <p>The specified limit has been exceeded. Review your request and retry it with a quantity
|
|
73
|
+
* below the stated limit.</p>
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class LimitExceededException extends __BaseException {
|
|
77
|
+
readonly name: "LimitExceededException";
|
|
78
|
+
readonly $fault: "client";
|
|
79
|
+
Message?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
87
|
+
* then try your request again.</p>
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class TooManyRequestsException extends __BaseException {
|
|
91
|
+
readonly name: "TooManyRequestsException";
|
|
92
|
+
readonly $fault: "client";
|
|
93
|
+
Message?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* <p>You have added too many tags to this resource. The maximum is 50 tags.</p>
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class TooManyTagsException extends __BaseException {
|
|
104
|
+
readonly name: "TooManyTagsException";
|
|
105
|
+
readonly $fault: "client";
|
|
106
|
+
ResourceArn?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* <p>The resource you are looking for has not been found. Review the resource you're looking
|
|
114
|
+
* for and see if a different resource will accomplish your needs before retrying the revised
|
|
115
|
+
* request.</p>
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
119
|
+
readonly name: "ResourceNotFoundException";
|
|
120
|
+
readonly $fault: "client";
|
|
121
|
+
Message?: string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* <p>Requested display language code is not supported.</p>
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
export declare class UnsupportedDisplayLanguageCodeException extends __BaseException {
|
|
132
|
+
readonly name: "UnsupportedDisplayLanguageCodeException";
|
|
133
|
+
readonly $fault: "client";
|
|
134
|
+
Message?: string | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* <p>Language code passed in with the request.</p>
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
DisplayLanguageCode?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
constructor(opts: __ExceptionOptionType<UnsupportedDisplayLanguageCodeException, __BaseException>);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* <p>The filter specified for the operation is not valid. Specify a different filter.</p>
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
export declare class InvalidFilterException extends __BaseException {
|
|
150
|
+
readonly name: "InvalidFilterException";
|
|
151
|
+
readonly $fault: "client";
|
|
152
|
+
Message?: string | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
constructor(opts: __ExceptionOptionType<InvalidFilterException, __BaseException>);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* <p>Amazon Translate does not support translation from the language of the source text into the requested
|
|
160
|
+
* target language. For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>. </p>
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
export declare class UnsupportedLanguagePairException extends __BaseException {
|
|
164
|
+
readonly name: "UnsupportedLanguagePairException";
|
|
165
|
+
readonly $fault: "client";
|
|
166
|
+
Message?: string | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* <p>The language code for the language of the input text. </p>
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
SourceLanguageCode?: string | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* <p>The language code for the language of the translated text. </p>
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
TargetLanguageCode?: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
constructor(opts: __ExceptionOptionType<UnsupportedLanguagePairException, __BaseException>);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* <p>The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your
|
|
184
|
+
* request.</p>
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
188
|
+
readonly name: "ServiceUnavailableException";
|
|
189
|
+
readonly $fault: "server";
|
|
190
|
+
Message?: string | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* <p>The confidence that Amazon Comprehend accurately detected the source language is low. If a
|
|
198
|
+
* low confidence level is acceptable for your application, you can use the language in the
|
|
199
|
+
* exception to call Amazon Translate again. For more information, see the <a href="https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html">DetectDominantLanguage</a> operation in the <i>Amazon Comprehend Developer
|
|
200
|
+
* Guide</i>. </p>
|
|
201
|
+
* @public
|
|
202
|
+
*/
|
|
203
|
+
export declare class DetectedLanguageLowConfidenceException extends __BaseException {
|
|
204
|
+
readonly name: "DetectedLanguageLowConfidenceException";
|
|
205
|
+
readonly $fault: "client";
|
|
206
|
+
Message?: string | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* <p>The language code of the auto-detected language from Amazon Comprehend.</p>
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
DetectedLanguageCode?: string | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* @internal
|
|
214
|
+
*/
|
|
215
|
+
constructor(opts: __ExceptionOptionType<DetectedLanguageLowConfidenceException, __BaseException>);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* <p> The size of the text you submitted exceeds the size limit. Reduce the size of the text or
|
|
219
|
+
* use a smaller document and then retry your request. </p>
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
export declare class TextSizeLimitExceededException extends __BaseException {
|
|
223
|
+
readonly name: "TextSizeLimitExceededException";
|
|
224
|
+
readonly $fault: "client";
|
|
225
|
+
Message?: string | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
constructor(opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>);
|
|
230
|
+
}
|