@aws-sdk/client-translate 3.301.0 → 3.303.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/models/models_0.js +55 -65
- package/dist-es/models/models_0.js +55 -65
- package/dist-types/models/models_0.d.ts +105 -55
- package/dist-types/ts3.4/models/models_0.d.ts +71 -55
- package/package.json +34 -34
|
@@ -31,24 +31,21 @@ class ConflictException extends TranslateServiceException_1.TranslateServiceExce
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.ConflictException = ConflictException;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
ParallelDataStatus["FAILED"] = "FAILED";
|
|
50
|
-
ParallelDataStatus["UPDATING"] = "UPDATING";
|
|
51
|
-
})(ParallelDataStatus = exports.ParallelDataStatus || (exports.ParallelDataStatus = {}));
|
|
34
|
+
exports.EncryptionKeyType = {
|
|
35
|
+
KMS: "KMS",
|
|
36
|
+
};
|
|
37
|
+
exports.ParallelDataFormat = {
|
|
38
|
+
CSV: "CSV",
|
|
39
|
+
TMX: "TMX",
|
|
40
|
+
TSV: "TSV",
|
|
41
|
+
};
|
|
42
|
+
exports.ParallelDataStatus = {
|
|
43
|
+
ACTIVE: "ACTIVE",
|
|
44
|
+
CREATING: "CREATING",
|
|
45
|
+
DELETING: "DELETING",
|
|
46
|
+
FAILED: "FAILED",
|
|
47
|
+
UPDATING: "UPDATING",
|
|
48
|
+
};
|
|
52
49
|
class InternalServerException extends TranslateServiceException_1.TranslateServiceException {
|
|
53
50
|
constructor(opts) {
|
|
54
51
|
super({
|
|
@@ -147,53 +144,46 @@ class ResourceNotFoundException extends TranslateServiceException_1.TranslateSer
|
|
|
147
144
|
}
|
|
148
145
|
}
|
|
149
146
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
DisplayLanguageCode["IT"] = "it";
|
|
191
|
-
DisplayLanguageCode["JA"] = "ja";
|
|
192
|
-
DisplayLanguageCode["KO"] = "ko";
|
|
193
|
-
DisplayLanguageCode["PT"] = "pt";
|
|
194
|
-
DisplayLanguageCode["ZH"] = "zh";
|
|
195
|
-
DisplayLanguageCode["ZH_TW"] = "zh-TW";
|
|
196
|
-
})(DisplayLanguageCode = exports.DisplayLanguageCode || (exports.DisplayLanguageCode = {}));
|
|
147
|
+
exports.JobStatus = {
|
|
148
|
+
COMPLETED: "COMPLETED",
|
|
149
|
+
COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
|
|
150
|
+
FAILED: "FAILED",
|
|
151
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
152
|
+
STOPPED: "STOPPED",
|
|
153
|
+
STOP_REQUESTED: "STOP_REQUESTED",
|
|
154
|
+
SUBMITTED: "SUBMITTED",
|
|
155
|
+
};
|
|
156
|
+
exports.Formality = {
|
|
157
|
+
FORMAL: "FORMAL",
|
|
158
|
+
INFORMAL: "INFORMAL",
|
|
159
|
+
};
|
|
160
|
+
exports.Profanity = {
|
|
161
|
+
MASK: "MASK",
|
|
162
|
+
};
|
|
163
|
+
exports.TerminologyDataFormat = {
|
|
164
|
+
CSV: "CSV",
|
|
165
|
+
TMX: "TMX",
|
|
166
|
+
TSV: "TSV",
|
|
167
|
+
};
|
|
168
|
+
exports.Directionality = {
|
|
169
|
+
MULTI: "MULTI",
|
|
170
|
+
UNI: "UNI",
|
|
171
|
+
};
|
|
172
|
+
exports.MergeStrategy = {
|
|
173
|
+
OVERWRITE: "OVERWRITE",
|
|
174
|
+
};
|
|
175
|
+
exports.DisplayLanguageCode = {
|
|
176
|
+
DE: "de",
|
|
177
|
+
EN: "en",
|
|
178
|
+
ES: "es",
|
|
179
|
+
FR: "fr",
|
|
180
|
+
IT: "it",
|
|
181
|
+
JA: "ja",
|
|
182
|
+
KO: "ko",
|
|
183
|
+
PT: "pt",
|
|
184
|
+
ZH: "zh",
|
|
185
|
+
ZH_TW: "zh-TW",
|
|
186
|
+
};
|
|
197
187
|
class UnsupportedDisplayLanguageCodeException extends TranslateServiceException_1.TranslateServiceException {
|
|
198
188
|
constructor(opts) {
|
|
199
189
|
super({
|
|
@@ -26,24 +26,21 @@ export class ConflictException extends __BaseException {
|
|
|
26
26
|
this.Message = opts.Message;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
ParallelDataStatus["FAILED"] = "FAILED";
|
|
45
|
-
ParallelDataStatus["UPDATING"] = "UPDATING";
|
|
46
|
-
})(ParallelDataStatus || (ParallelDataStatus = {}));
|
|
29
|
+
export const EncryptionKeyType = {
|
|
30
|
+
KMS: "KMS",
|
|
31
|
+
};
|
|
32
|
+
export const ParallelDataFormat = {
|
|
33
|
+
CSV: "CSV",
|
|
34
|
+
TMX: "TMX",
|
|
35
|
+
TSV: "TSV",
|
|
36
|
+
};
|
|
37
|
+
export const ParallelDataStatus = {
|
|
38
|
+
ACTIVE: "ACTIVE",
|
|
39
|
+
CREATING: "CREATING",
|
|
40
|
+
DELETING: "DELETING",
|
|
41
|
+
FAILED: "FAILED",
|
|
42
|
+
UPDATING: "UPDATING",
|
|
43
|
+
};
|
|
47
44
|
export class InternalServerException extends __BaseException {
|
|
48
45
|
constructor(opts) {
|
|
49
46
|
super({
|
|
@@ -135,53 +132,46 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
135
132
|
this.Message = opts.Message;
|
|
136
133
|
}
|
|
137
134
|
}
|
|
138
|
-
export
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
DisplayLanguageCode["IT"] = "it";
|
|
179
|
-
DisplayLanguageCode["JA"] = "ja";
|
|
180
|
-
DisplayLanguageCode["KO"] = "ko";
|
|
181
|
-
DisplayLanguageCode["PT"] = "pt";
|
|
182
|
-
DisplayLanguageCode["ZH"] = "zh";
|
|
183
|
-
DisplayLanguageCode["ZH_TW"] = "zh-TW";
|
|
184
|
-
})(DisplayLanguageCode || (DisplayLanguageCode = {}));
|
|
135
|
+
export const JobStatus = {
|
|
136
|
+
COMPLETED: "COMPLETED",
|
|
137
|
+
COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
|
|
138
|
+
FAILED: "FAILED",
|
|
139
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
140
|
+
STOPPED: "STOPPED",
|
|
141
|
+
STOP_REQUESTED: "STOP_REQUESTED",
|
|
142
|
+
SUBMITTED: "SUBMITTED",
|
|
143
|
+
};
|
|
144
|
+
export const Formality = {
|
|
145
|
+
FORMAL: "FORMAL",
|
|
146
|
+
INFORMAL: "INFORMAL",
|
|
147
|
+
};
|
|
148
|
+
export const Profanity = {
|
|
149
|
+
MASK: "MASK",
|
|
150
|
+
};
|
|
151
|
+
export const TerminologyDataFormat = {
|
|
152
|
+
CSV: "CSV",
|
|
153
|
+
TMX: "TMX",
|
|
154
|
+
TSV: "TSV",
|
|
155
|
+
};
|
|
156
|
+
export const Directionality = {
|
|
157
|
+
MULTI: "MULTI",
|
|
158
|
+
UNI: "UNI",
|
|
159
|
+
};
|
|
160
|
+
export const MergeStrategy = {
|
|
161
|
+
OVERWRITE: "OVERWRITE",
|
|
162
|
+
};
|
|
163
|
+
export const DisplayLanguageCode = {
|
|
164
|
+
DE: "de",
|
|
165
|
+
EN: "en",
|
|
166
|
+
ES: "es",
|
|
167
|
+
FR: "fr",
|
|
168
|
+
IT: "it",
|
|
169
|
+
JA: "ja",
|
|
170
|
+
KO: "ko",
|
|
171
|
+
PT: "pt",
|
|
172
|
+
ZH: "zh",
|
|
173
|
+
ZH_TW: "zh-TW",
|
|
174
|
+
};
|
|
185
175
|
export class UnsupportedDisplayLanguageCodeException extends __BaseException {
|
|
186
176
|
constructor(opts) {
|
|
187
177
|
super({
|
|
@@ -63,10 +63,15 @@ export declare class ConflictException extends __BaseException {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* @public
|
|
66
|
+
* @enum
|
|
66
67
|
*/
|
|
67
|
-
export declare
|
|
68
|
-
KMS
|
|
69
|
-
}
|
|
68
|
+
export declare const EncryptionKeyType: {
|
|
69
|
+
readonly KMS: "KMS";
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export type EncryptionKeyType = (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
|
|
70
75
|
/**
|
|
71
76
|
* @public
|
|
72
77
|
* <p>The encryption key used to encrypt this object.</p>
|
|
@@ -83,12 +88,17 @@ export interface EncryptionKey {
|
|
|
83
88
|
}
|
|
84
89
|
/**
|
|
85
90
|
* @public
|
|
91
|
+
* @enum
|
|
86
92
|
*/
|
|
87
|
-
export declare
|
|
88
|
-
CSV
|
|
89
|
-
TMX
|
|
90
|
-
TSV
|
|
91
|
-
}
|
|
93
|
+
export declare const ParallelDataFormat: {
|
|
94
|
+
readonly CSV: "CSV";
|
|
95
|
+
readonly TMX: "TMX";
|
|
96
|
+
readonly TSV: "TSV";
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export type ParallelDataFormat = (typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
|
|
92
102
|
/**
|
|
93
103
|
* @public
|
|
94
104
|
* <p>Specifies the format and S3 location of the parallel data input file.</p>
|
|
@@ -155,14 +165,19 @@ export interface CreateParallelDataRequest {
|
|
|
155
165
|
}
|
|
156
166
|
/**
|
|
157
167
|
* @public
|
|
168
|
+
* @enum
|
|
158
169
|
*/
|
|
159
|
-
export declare
|
|
160
|
-
ACTIVE
|
|
161
|
-
CREATING
|
|
162
|
-
DELETING
|
|
163
|
-
FAILED
|
|
164
|
-
UPDATING
|
|
165
|
-
}
|
|
170
|
+
export declare const ParallelDataStatus: {
|
|
171
|
+
readonly ACTIVE: "ACTIVE";
|
|
172
|
+
readonly CREATING: "CREATING";
|
|
173
|
+
readonly DELETING: "DELETING";
|
|
174
|
+
readonly FAILED: "FAILED";
|
|
175
|
+
readonly UPDATING: "UPDATING";
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export type ParallelDataStatus = (typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
|
|
166
181
|
/**
|
|
167
182
|
* @public
|
|
168
183
|
*/
|
|
@@ -393,16 +408,21 @@ export interface JobDetails {
|
|
|
393
408
|
}
|
|
394
409
|
/**
|
|
395
410
|
* @public
|
|
411
|
+
* @enum
|
|
396
412
|
*/
|
|
397
|
-
export declare
|
|
398
|
-
COMPLETED
|
|
399
|
-
COMPLETED_WITH_ERROR
|
|
400
|
-
FAILED
|
|
401
|
-
IN_PROGRESS
|
|
402
|
-
STOPPED
|
|
403
|
-
STOP_REQUESTED
|
|
404
|
-
SUBMITTED
|
|
405
|
-
}
|
|
413
|
+
export declare const JobStatus: {
|
|
414
|
+
readonly COMPLETED: "COMPLETED";
|
|
415
|
+
readonly COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR";
|
|
416
|
+
readonly FAILED: "FAILED";
|
|
417
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
418
|
+
readonly STOPPED: "STOPPED";
|
|
419
|
+
readonly STOP_REQUESTED: "STOP_REQUESTED";
|
|
420
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* @public
|
|
424
|
+
*/
|
|
425
|
+
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
406
426
|
/**
|
|
407
427
|
* @public
|
|
408
428
|
* <p>The output configuration properties for a batch translation job.</p>
|
|
@@ -420,17 +440,27 @@ export interface OutputDataConfig {
|
|
|
420
440
|
}
|
|
421
441
|
/**
|
|
422
442
|
* @public
|
|
443
|
+
* @enum
|
|
423
444
|
*/
|
|
424
|
-
export declare
|
|
425
|
-
FORMAL
|
|
426
|
-
INFORMAL
|
|
427
|
-
}
|
|
445
|
+
export declare const Formality: {
|
|
446
|
+
readonly FORMAL: "FORMAL";
|
|
447
|
+
readonly INFORMAL: "INFORMAL";
|
|
448
|
+
};
|
|
428
449
|
/**
|
|
429
450
|
* @public
|
|
430
451
|
*/
|
|
431
|
-
export
|
|
432
|
-
|
|
433
|
-
|
|
452
|
+
export type Formality = (typeof Formality)[keyof typeof Formality];
|
|
453
|
+
/**
|
|
454
|
+
* @public
|
|
455
|
+
* @enum
|
|
456
|
+
*/
|
|
457
|
+
export declare const Profanity: {
|
|
458
|
+
readonly MASK: "MASK";
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
463
|
+
export type Profanity = (typeof Profanity)[keyof typeof Profanity];
|
|
434
464
|
/**
|
|
435
465
|
* @public
|
|
436
466
|
* <p>Optional settings that configure the translation output. Use these settings for
|
|
@@ -706,12 +736,17 @@ export interface GetParallelDataResponse {
|
|
|
706
736
|
}
|
|
707
737
|
/**
|
|
708
738
|
* @public
|
|
739
|
+
* @enum
|
|
709
740
|
*/
|
|
710
|
-
export declare
|
|
711
|
-
CSV
|
|
712
|
-
TMX
|
|
713
|
-
TSV
|
|
714
|
-
}
|
|
741
|
+
export declare const TerminologyDataFormat: {
|
|
742
|
+
readonly CSV: "CSV";
|
|
743
|
+
readonly TMX: "TMX";
|
|
744
|
+
readonly TSV: "TSV";
|
|
745
|
+
};
|
|
746
|
+
/**
|
|
747
|
+
* @public
|
|
748
|
+
*/
|
|
749
|
+
export type TerminologyDataFormat = (typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
|
|
715
750
|
/**
|
|
716
751
|
* @public
|
|
717
752
|
*/
|
|
@@ -758,11 +793,16 @@ export interface TerminologyDataLocation {
|
|
|
758
793
|
}
|
|
759
794
|
/**
|
|
760
795
|
* @public
|
|
796
|
+
* @enum
|
|
761
797
|
*/
|
|
762
|
-
export declare
|
|
763
|
-
MULTI
|
|
764
|
-
UNI
|
|
765
|
-
}
|
|
798
|
+
export declare const Directionality: {
|
|
799
|
+
readonly MULTI: "MULTI";
|
|
800
|
+
readonly UNI: "UNI";
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
* @public
|
|
804
|
+
*/
|
|
805
|
+
export type Directionality = (typeof Directionality)[keyof typeof Directionality];
|
|
766
806
|
/**
|
|
767
807
|
* @public
|
|
768
808
|
* <p>The properties of the custom terminology.</p>
|
|
@@ -874,10 +914,15 @@ export interface GetTerminologyResponse {
|
|
|
874
914
|
}
|
|
875
915
|
/**
|
|
876
916
|
* @public
|
|
917
|
+
* @enum
|
|
877
918
|
*/
|
|
878
|
-
export declare
|
|
879
|
-
OVERWRITE
|
|
880
|
-
}
|
|
919
|
+
export declare const MergeStrategy: {
|
|
920
|
+
readonly OVERWRITE: "OVERWRITE";
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* @public
|
|
924
|
+
*/
|
|
925
|
+
export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
|
|
881
926
|
/**
|
|
882
927
|
* @public
|
|
883
928
|
* <p>The data associated with the custom terminology. For information about the custom terminology file, see
|
|
@@ -970,19 +1015,24 @@ export interface ImportTerminologyResponse {
|
|
|
970
1015
|
}
|
|
971
1016
|
/**
|
|
972
1017
|
* @public
|
|
1018
|
+
* @enum
|
|
973
1019
|
*/
|
|
974
|
-
export declare
|
|
975
|
-
DE
|
|
976
|
-
EN
|
|
977
|
-
ES
|
|
978
|
-
FR
|
|
979
|
-
IT
|
|
980
|
-
JA
|
|
981
|
-
KO
|
|
982
|
-
PT
|
|
983
|
-
ZH
|
|
984
|
-
ZH_TW
|
|
985
|
-
}
|
|
1020
|
+
export declare const DisplayLanguageCode: {
|
|
1021
|
+
readonly DE: "de";
|
|
1022
|
+
readonly EN: "en";
|
|
1023
|
+
readonly ES: "es";
|
|
1024
|
+
readonly FR: "fr";
|
|
1025
|
+
readonly IT: "it";
|
|
1026
|
+
readonly JA: "ja";
|
|
1027
|
+
readonly KO: "ko";
|
|
1028
|
+
readonly PT: "pt";
|
|
1029
|
+
readonly ZH: "zh";
|
|
1030
|
+
readonly ZH_TW: "zh-TW";
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* @public
|
|
1034
|
+
*/
|
|
1035
|
+
export type DisplayLanguageCode = (typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
|
|
986
1036
|
/**
|
|
987
1037
|
* @public
|
|
988
1038
|
*/
|
|
@@ -25,18 +25,22 @@ export declare class ConflictException extends __BaseException {
|
|
|
25
25
|
Message?: string;
|
|
26
26
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
27
27
|
}
|
|
28
|
-
export declare
|
|
29
|
-
KMS
|
|
30
|
-
}
|
|
28
|
+
export declare const EncryptionKeyType: {
|
|
29
|
+
readonly KMS: "KMS";
|
|
30
|
+
};
|
|
31
|
+
export type EncryptionKeyType =
|
|
32
|
+
(typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
|
|
31
33
|
export interface EncryptionKey {
|
|
32
34
|
Type: EncryptionKeyType | string | undefined;
|
|
33
35
|
Id: string | undefined;
|
|
34
36
|
}
|
|
35
|
-
export declare
|
|
36
|
-
CSV
|
|
37
|
-
TMX
|
|
38
|
-
TSV
|
|
39
|
-
}
|
|
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];
|
|
40
44
|
export interface ParallelDataConfig {
|
|
41
45
|
S3Uri: string | undefined;
|
|
42
46
|
Format: ParallelDataFormat | string | undefined;
|
|
@@ -53,13 +57,15 @@ export interface CreateParallelDataRequest {
|
|
|
53
57
|
ClientToken?: string;
|
|
54
58
|
Tags?: Tag[];
|
|
55
59
|
}
|
|
56
|
-
export declare
|
|
57
|
-
ACTIVE
|
|
58
|
-
CREATING
|
|
59
|
-
DELETING
|
|
60
|
-
FAILED
|
|
61
|
-
UPDATING
|
|
62
|
-
}
|
|
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];
|
|
63
69
|
export interface CreateParallelDataResponse {
|
|
64
70
|
Name?: string;
|
|
65
71
|
Status?: ParallelDataStatus | string;
|
|
@@ -142,26 +148,29 @@ export interface JobDetails {
|
|
|
142
148
|
DocumentsWithErrorsCount?: number;
|
|
143
149
|
InputDocumentsCount?: number;
|
|
144
150
|
}
|
|
145
|
-
export declare
|
|
146
|
-
COMPLETED
|
|
147
|
-
COMPLETED_WITH_ERROR
|
|
148
|
-
FAILED
|
|
149
|
-
IN_PROGRESS
|
|
150
|
-
STOPPED
|
|
151
|
-
STOP_REQUESTED
|
|
152
|
-
SUBMITTED
|
|
153
|
-
}
|
|
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];
|
|
154
161
|
export interface OutputDataConfig {
|
|
155
162
|
S3Uri: string | undefined;
|
|
156
163
|
EncryptionKey?: EncryptionKey;
|
|
157
164
|
}
|
|
158
|
-
export declare
|
|
159
|
-
FORMAL
|
|
160
|
-
INFORMAL
|
|
161
|
-
}
|
|
162
|
-
export
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
export declare const Formality: {
|
|
166
|
+
readonly FORMAL: "FORMAL";
|
|
167
|
+
readonly INFORMAL: "INFORMAL";
|
|
168
|
+
};
|
|
169
|
+
export type Formality = (typeof Formality)[keyof typeof Formality];
|
|
170
|
+
export declare const Profanity: {
|
|
171
|
+
readonly MASK: "MASK";
|
|
172
|
+
};
|
|
173
|
+
export type Profanity = (typeof Profanity)[keyof typeof Profanity];
|
|
165
174
|
export interface TranslationSettings {
|
|
166
175
|
Formality?: Formality | string;
|
|
167
176
|
Profanity?: Profanity | string;
|
|
@@ -218,11 +227,13 @@ export interface GetParallelDataResponse {
|
|
|
218
227
|
AuxiliaryDataLocation?: ParallelDataDataLocation;
|
|
219
228
|
LatestUpdateAttemptAuxiliaryDataLocation?: ParallelDataDataLocation;
|
|
220
229
|
}
|
|
221
|
-
export declare
|
|
222
|
-
CSV
|
|
223
|
-
TMX
|
|
224
|
-
TSV
|
|
225
|
-
}
|
|
230
|
+
export declare const TerminologyDataFormat: {
|
|
231
|
+
readonly CSV: "CSV";
|
|
232
|
+
readonly TMX: "TMX";
|
|
233
|
+
readonly TSV: "TSV";
|
|
234
|
+
};
|
|
235
|
+
export type TerminologyDataFormat =
|
|
236
|
+
(typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
|
|
226
237
|
export interface GetTerminologyRequest {
|
|
227
238
|
Name: string | undefined;
|
|
228
239
|
TerminologyDataFormat?: TerminologyDataFormat | string;
|
|
@@ -231,10 +242,12 @@ export interface TerminologyDataLocation {
|
|
|
231
242
|
RepositoryType: string | undefined;
|
|
232
243
|
Location: string | undefined;
|
|
233
244
|
}
|
|
234
|
-
export declare
|
|
235
|
-
MULTI
|
|
236
|
-
UNI
|
|
237
|
-
}
|
|
245
|
+
export declare const Directionality: {
|
|
246
|
+
readonly MULTI: "MULTI";
|
|
247
|
+
readonly UNI: "UNI";
|
|
248
|
+
};
|
|
249
|
+
export type Directionality =
|
|
250
|
+
(typeof Directionality)[keyof typeof Directionality];
|
|
238
251
|
export interface TerminologyProperties {
|
|
239
252
|
Name?: string;
|
|
240
253
|
Description?: string;
|
|
@@ -256,9 +269,10 @@ export interface GetTerminologyResponse {
|
|
|
256
269
|
TerminologyDataLocation?: TerminologyDataLocation;
|
|
257
270
|
AuxiliaryDataLocation?: TerminologyDataLocation;
|
|
258
271
|
}
|
|
259
|
-
export declare
|
|
260
|
-
OVERWRITE
|
|
261
|
-
}
|
|
272
|
+
export declare const MergeStrategy: {
|
|
273
|
+
readonly OVERWRITE: "OVERWRITE";
|
|
274
|
+
};
|
|
275
|
+
export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
|
|
262
276
|
export interface TerminologyData {
|
|
263
277
|
File: Uint8Array | undefined;
|
|
264
278
|
Format: TerminologyDataFormat | string | undefined;
|
|
@@ -276,18 +290,20 @@ export interface ImportTerminologyResponse {
|
|
|
276
290
|
TerminologyProperties?: TerminologyProperties;
|
|
277
291
|
AuxiliaryDataLocation?: TerminologyDataLocation;
|
|
278
292
|
}
|
|
279
|
-
export declare
|
|
280
|
-
DE
|
|
281
|
-
EN
|
|
282
|
-
ES
|
|
283
|
-
FR
|
|
284
|
-
IT
|
|
285
|
-
JA
|
|
286
|
-
KO
|
|
287
|
-
PT
|
|
288
|
-
ZH
|
|
289
|
-
ZH_TW
|
|
290
|
-
}
|
|
293
|
+
export declare const DisplayLanguageCode: {
|
|
294
|
+
readonly DE: "de";
|
|
295
|
+
readonly EN: "en";
|
|
296
|
+
readonly ES: "es";
|
|
297
|
+
readonly FR: "fr";
|
|
298
|
+
readonly IT: "it";
|
|
299
|
+
readonly JA: "ja";
|
|
300
|
+
readonly KO: "ko";
|
|
301
|
+
readonly PT: "pt";
|
|
302
|
+
readonly ZH: "zh";
|
|
303
|
+
readonly ZH_TW: "zh-TW";
|
|
304
|
+
};
|
|
305
|
+
export type DisplayLanguageCode =
|
|
306
|
+
(typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
|
|
291
307
|
export interface ListLanguagesRequest {
|
|
292
308
|
DisplayLanguageCode?: DisplayLanguageCode | string;
|
|
293
309
|
NextToken?: string;
|
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.303.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,43 +21,43 @@
|
|
|
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/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.303.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.303.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.303.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.303.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.303.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.303.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.303.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.303.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.303.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.303.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.303.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.303.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.303.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.303.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.303.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.303.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.303.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.303.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.303.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.303.0",
|
|
44
|
+
"@aws-sdk/types": "3.303.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.303.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.303.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.303.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.303.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.303.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.303.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.303.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0",
|
|
57
57
|
"uuid": "^8.3.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
60
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
61
61
|
"@tsconfig/node14": "1.0.3",
|
|
62
62
|
"@types/node": "^14.14.31",
|
|
63
63
|
"@types/uuid": "^8.3.0",
|