@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.
@@ -1,5 +1,16 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
1
+ import {
2
+ Brevity,
3
+ Directionality,
4
+ DisplayLanguageCode,
5
+ EncryptionKeyType,
6
+ Formality,
7
+ JobStatus,
8
+ MergeStrategy,
9
+ ParallelDataFormat,
10
+ ParallelDataStatus,
11
+ Profanity,
12
+ TerminologyDataFormat,
13
+ } from "./enums";
3
14
  export interface Term {
4
15
  SourceText?: string | undefined;
5
16
  TargetText?: string | undefined;
@@ -8,39 +19,10 @@ export interface AppliedTerminology {
8
19
  Name?: string | undefined;
9
20
  Terms?: Term[] | undefined;
10
21
  }
11
- export declare class ConcurrentModificationException extends __BaseException {
12
- readonly name: "ConcurrentModificationException";
13
- readonly $fault: "client";
14
- Message?: string | undefined;
15
- constructor(
16
- opts: __ExceptionOptionType<
17
- ConcurrentModificationException,
18
- __BaseException
19
- >
20
- );
21
- }
22
- export declare class ConflictException extends __BaseException {
23
- readonly name: "ConflictException";
24
- readonly $fault: "client";
25
- Message?: string | undefined;
26
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
27
- }
28
- export declare const EncryptionKeyType: {
29
- readonly KMS: "KMS";
30
- };
31
- export type EncryptionKeyType =
32
- (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
33
22
  export interface EncryptionKey {
34
23
  Type: EncryptionKeyType | undefined;
35
24
  Id: string | undefined;
36
25
  }
37
- export declare const ParallelDataFormat: {
38
- readonly CSV: "CSV";
39
- readonly TMX: "TMX";
40
- readonly TSV: "TSV";
41
- };
42
- export type ParallelDataFormat =
43
- (typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
44
26
  export interface ParallelDataConfig {
45
27
  S3Uri?: string | undefined;
46
28
  Format?: ParallelDataFormat | undefined;
@@ -57,67 +39,10 @@ export interface CreateParallelDataRequest {
57
39
  ClientToken?: string | undefined;
58
40
  Tags?: Tag[] | undefined;
59
41
  }
60
- export declare const ParallelDataStatus: {
61
- readonly ACTIVE: "ACTIVE";
62
- readonly CREATING: "CREATING";
63
- readonly DELETING: "DELETING";
64
- readonly FAILED: "FAILED";
65
- readonly UPDATING: "UPDATING";
66
- };
67
- export type ParallelDataStatus =
68
- (typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
69
42
  export interface CreateParallelDataResponse {
70
43
  Name?: string | undefined;
71
44
  Status?: ParallelDataStatus | undefined;
72
45
  }
73
- export declare class InternalServerException extends __BaseException {
74
- readonly name: "InternalServerException";
75
- readonly $fault: "server";
76
- Message?: string | undefined;
77
- constructor(
78
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
79
- );
80
- }
81
- export declare class InvalidParameterValueException extends __BaseException {
82
- readonly name: "InvalidParameterValueException";
83
- readonly $fault: "client";
84
- Message?: string | undefined;
85
- constructor(
86
- opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>
87
- );
88
- }
89
- export declare class InvalidRequestException extends __BaseException {
90
- readonly name: "InvalidRequestException";
91
- readonly $fault: "client";
92
- Message?: string | undefined;
93
- constructor(
94
- opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
95
- );
96
- }
97
- export declare class LimitExceededException extends __BaseException {
98
- readonly name: "LimitExceededException";
99
- readonly $fault: "client";
100
- Message?: string | undefined;
101
- constructor(
102
- opts: __ExceptionOptionType<LimitExceededException, __BaseException>
103
- );
104
- }
105
- export declare class TooManyRequestsException extends __BaseException {
106
- readonly name: "TooManyRequestsException";
107
- readonly $fault: "client";
108
- Message?: string | undefined;
109
- constructor(
110
- opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
111
- );
112
- }
113
- export declare class TooManyTagsException extends __BaseException {
114
- readonly name: "TooManyTagsException";
115
- readonly $fault: "client";
116
- ResourceArn?: string | undefined;
117
- constructor(
118
- opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
119
- );
120
- }
121
46
  export interface DeleteParallelDataRequest {
122
47
  Name: string | undefined;
123
48
  }
@@ -125,14 +50,6 @@ export interface DeleteParallelDataResponse {
125
50
  Name?: string | undefined;
126
51
  Status?: ParallelDataStatus | undefined;
127
52
  }
128
- export declare class ResourceNotFoundException extends __BaseException {
129
- readonly name: "ResourceNotFoundException";
130
- readonly $fault: "client";
131
- Message?: string | undefined;
132
- constructor(
133
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
134
- );
135
- }
136
53
  export interface DeleteTerminologyRequest {
137
54
  Name: string | undefined;
138
55
  }
@@ -148,33 +65,10 @@ export interface JobDetails {
148
65
  DocumentsWithErrorsCount?: number | undefined;
149
66
  InputDocumentsCount?: number | undefined;
150
67
  }
151
- export declare const JobStatus: {
152
- readonly COMPLETED: "COMPLETED";
153
- readonly COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR";
154
- readonly FAILED: "FAILED";
155
- readonly IN_PROGRESS: "IN_PROGRESS";
156
- readonly STOPPED: "STOPPED";
157
- readonly STOP_REQUESTED: "STOP_REQUESTED";
158
- readonly SUBMITTED: "SUBMITTED";
159
- };
160
- export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
161
68
  export interface OutputDataConfig {
162
69
  S3Uri: string | undefined;
163
70
  EncryptionKey?: EncryptionKey | undefined;
164
71
  }
165
- export declare const Brevity: {
166
- readonly ON: "ON";
167
- };
168
- export type Brevity = (typeof Brevity)[keyof typeof Brevity];
169
- export declare const Formality: {
170
- readonly FORMAL: "FORMAL";
171
- readonly INFORMAL: "INFORMAL";
172
- };
173
- export type Formality = (typeof Formality)[keyof typeof Formality];
174
- export declare const Profanity: {
175
- readonly MASK: "MASK";
176
- };
177
- export type Profanity = (typeof Profanity)[keyof typeof Profanity];
178
72
  export interface TranslationSettings {
179
73
  Formality?: Formality | undefined;
180
74
  Profanity?: Profanity | undefined;
@@ -234,13 +128,6 @@ export interface GetParallelDataResponse {
234
128
  | ParallelDataDataLocation
235
129
  | undefined;
236
130
  }
237
- export declare const TerminologyDataFormat: {
238
- readonly CSV: "CSV";
239
- readonly TMX: "TMX";
240
- readonly TSV: "TSV";
241
- };
242
- export type TerminologyDataFormat =
243
- (typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
244
131
  export interface GetTerminologyRequest {
245
132
  Name: string | undefined;
246
133
  TerminologyDataFormat?: TerminologyDataFormat | undefined;
@@ -249,12 +136,6 @@ export interface TerminologyDataLocation {
249
136
  RepositoryType: string | undefined;
250
137
  Location: string | undefined;
251
138
  }
252
- export declare const Directionality: {
253
- readonly MULTI: "MULTI";
254
- readonly UNI: "UNI";
255
- };
256
- export type Directionality =
257
- (typeof Directionality)[keyof typeof Directionality];
258
139
  export interface TerminologyProperties {
259
140
  Name?: string | undefined;
260
141
  Description?: string | undefined;
@@ -276,10 +157,6 @@ export interface GetTerminologyResponse {
276
157
  TerminologyDataLocation?: TerminologyDataLocation | undefined;
277
158
  AuxiliaryDataLocation?: TerminologyDataLocation | undefined;
278
159
  }
279
- export declare const MergeStrategy: {
280
- readonly OVERWRITE: "OVERWRITE";
281
- };
282
- export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
283
160
  export interface TerminologyData {
284
161
  File: Uint8Array | undefined;
285
162
  Format: TerminologyDataFormat | undefined;
@@ -297,20 +174,6 @@ export interface ImportTerminologyResponse {
297
174
  TerminologyProperties?: TerminologyProperties | undefined;
298
175
  AuxiliaryDataLocation?: TerminologyDataLocation | undefined;
299
176
  }
300
- export declare const DisplayLanguageCode: {
301
- readonly DE: "de";
302
- readonly EN: "en";
303
- readonly ES: "es";
304
- readonly FR: "fr";
305
- readonly IT: "it";
306
- readonly JA: "ja";
307
- readonly KO: "ko";
308
- readonly PT: "pt";
309
- readonly ZH: "zh";
310
- readonly ZH_TW: "zh-TW";
311
- };
312
- export type DisplayLanguageCode =
313
- (typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
314
177
  export interface ListLanguagesRequest {
315
178
  DisplayLanguageCode?: DisplayLanguageCode | undefined;
316
179
  NextToken?: string | undefined;
@@ -325,18 +188,6 @@ export interface ListLanguagesResponse {
325
188
  DisplayLanguageCode?: DisplayLanguageCode | undefined;
326
189
  NextToken?: string | undefined;
327
190
  }
328
- export declare class UnsupportedDisplayLanguageCodeException extends __BaseException {
329
- readonly name: "UnsupportedDisplayLanguageCodeException";
330
- readonly $fault: "client";
331
- Message?: string | undefined;
332
- DisplayLanguageCode?: string | undefined;
333
- constructor(
334
- opts: __ExceptionOptionType<
335
- UnsupportedDisplayLanguageCodeException,
336
- __BaseException
337
- >
338
- );
339
- }
340
191
  export interface ListParallelDataRequest {
341
192
  NextToken?: string | undefined;
342
193
  MaxResults?: number | undefined;
@@ -359,14 +210,6 @@ export interface ListTerminologiesResponse {
359
210
  TerminologyPropertiesList?: TerminologyProperties[] | undefined;
360
211
  NextToken?: string | undefined;
361
212
  }
362
- export declare class InvalidFilterException extends __BaseException {
363
- readonly name: "InvalidFilterException";
364
- readonly $fault: "client";
365
- Message?: string | undefined;
366
- constructor(
367
- opts: __ExceptionOptionType<InvalidFilterException, __BaseException>
368
- );
369
- }
370
213
  export interface TextTranslationJobFilter {
371
214
  JobName?: string | undefined;
372
215
  JobStatus?: JobStatus | undefined;
@@ -398,19 +241,6 @@ export interface StartTextTranslationJobResponse {
398
241
  JobId?: string | undefined;
399
242
  JobStatus?: JobStatus | undefined;
400
243
  }
401
- export declare class UnsupportedLanguagePairException extends __BaseException {
402
- readonly name: "UnsupportedLanguagePairException";
403
- readonly $fault: "client";
404
- Message?: string | undefined;
405
- SourceLanguageCode?: string | undefined;
406
- TargetLanguageCode?: string | undefined;
407
- constructor(
408
- opts: __ExceptionOptionType<
409
- UnsupportedLanguagePairException,
410
- __BaseException
411
- >
412
- );
413
- }
414
244
  export interface StopTextTranslationJobRequest {
415
245
  JobId: string | undefined;
416
246
  }
@@ -423,14 +253,6 @@ export interface TagResourceRequest {
423
253
  Tags: Tag[] | undefined;
424
254
  }
425
255
  export interface TagResourceResponse {}
426
- export declare class ServiceUnavailableException extends __BaseException {
427
- readonly name: "ServiceUnavailableException";
428
- readonly $fault: "server";
429
- Message?: string | undefined;
430
- constructor(
431
- opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
432
- );
433
- }
434
256
  export interface Document {
435
257
  Content: Uint8Array | undefined;
436
258
  ContentType: string | undefined;
@@ -452,26 +274,6 @@ export interface TranslateDocumentResponse {
452
274
  AppliedTerminologies?: AppliedTerminology[] | undefined;
453
275
  AppliedSettings?: TranslationSettings | undefined;
454
276
  }
455
- export declare class DetectedLanguageLowConfidenceException extends __BaseException {
456
- readonly name: "DetectedLanguageLowConfidenceException";
457
- readonly $fault: "client";
458
- Message?: string | undefined;
459
- DetectedLanguageCode?: string | undefined;
460
- constructor(
461
- opts: __ExceptionOptionType<
462
- DetectedLanguageLowConfidenceException,
463
- __BaseException
464
- >
465
- );
466
- }
467
- export declare class TextSizeLimitExceededException extends __BaseException {
468
- readonly name: "TextSizeLimitExceededException";
469
- readonly $fault: "client";
470
- Message?: string | undefined;
471
- constructor(
472
- opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>
473
- );
474
- }
475
277
  export interface TranslateTextRequest {
476
278
  Text: string | undefined;
477
279
  TerminologyNames?: string[] | undefined;
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.933.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-translate",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.932.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.932.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";