@aws-sdk/client-translate 3.40.0 → 3.41.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 +11 -0
- package/dist-cjs/endpoints.js +8 -0
- package/dist-cjs/models/models_0.js +8 -2
- package/dist-cjs/protocols/Aws_json1_1.js +12 -0
- package/dist-es/endpoints.js +8 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_json1_1.js +12 -1
- package/dist-types/commands/CreateParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/DeleteParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/GetTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/ImportTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/ListParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/ListTerminologiesCommand.d.ts +1 -1
- package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +1 -1
- package/dist-types/commands/StartTextTranslationJobCommand.d.ts +1 -1
- package/dist-types/commands/StopTextTranslationJobCommand.d.ts +1 -1
- package/dist-types/commands/TranslateTextCommand.d.ts +1 -1
- package/dist-types/commands/UpdateParallelDataCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +83 -7
- package/dist-types/ts3.4/models/models_0.d.ts +21 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -130,6 +130,10 @@ const partitionHash = {
|
|
|
130
130
|
hostname: "translate.{region}.c2s.ic.gov",
|
|
131
131
|
tags: [],
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
hostname: "translate-fips.{region}.c2s.ic.gov",
|
|
135
|
+
tags: ["fips"],
|
|
136
|
+
},
|
|
133
137
|
],
|
|
134
138
|
},
|
|
135
139
|
"aws-iso-b": {
|
|
@@ -140,6 +144,10 @@ const partitionHash = {
|
|
|
140
144
|
hostname: "translate.{region}.sc2s.sgov.gov",
|
|
141
145
|
tags: [],
|
|
142
146
|
},
|
|
147
|
+
{
|
|
148
|
+
hostname: "translate-fips.{region}.sc2s.sgov.gov",
|
|
149
|
+
tags: ["fips"],
|
|
150
|
+
},
|
|
143
151
|
],
|
|
144
152
|
},
|
|
145
153
|
"aws-us-gov": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = void 0;
|
|
3
|
+
exports.StartTextTranslationJobRequest = exports.ListTextTranslationJobsResponse = exports.ListTextTranslationJobsRequest = exports.TextTranslationJobFilter = exports.InvalidFilterException = exports.ListTerminologiesResponse = exports.ListTerminologiesRequest = exports.ListParallelDataResponse = exports.ListParallelDataRequest = exports.ImportTerminologyResponse = exports.ImportTerminologyRequest = exports.TerminologyData = exports.MergeStrategy = exports.GetTerminologyResponse = exports.TerminologyProperties = exports.Directionality = exports.TerminologyDataLocation = exports.GetTerminologyRequest = exports.TerminologyDataFormat = exports.GetParallelDataResponse = exports.ParallelDataProperties = exports.ParallelDataDataLocation = exports.GetParallelDataRequest = exports.DescribeTextTranslationJobResponse = exports.TextTranslationJobProperties = exports.OutputDataConfig = exports.JobStatus = exports.JobDetails = exports.InputDataConfig = exports.DescribeTextTranslationJobRequest = exports.DeleteTerminologyRequest = exports.ResourceNotFoundException = exports.DeleteParallelDataResponse = exports.DeleteParallelDataRequest = exports.ConcurrentModificationException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.InternalServerException = exports.CreateParallelDataResponse = exports.ParallelDataStatus = exports.CreateParallelDataRequest = exports.ParallelDataConfig = exports.ParallelDataFormat = exports.EncryptionKey = exports.EncryptionKeyType = exports.ConflictException = exports.AppliedTerminology = exports.Term = void 0;
|
|
4
|
+
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = exports.StartTextTranslationJobResponse = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
var Term;
|
|
7
7
|
(function (Term) {
|
|
@@ -197,6 +197,7 @@ var TerminologyDataFormat;
|
|
|
197
197
|
(function (TerminologyDataFormat) {
|
|
198
198
|
TerminologyDataFormat["CSV"] = "CSV";
|
|
199
199
|
TerminologyDataFormat["TMX"] = "TMX";
|
|
200
|
+
TerminologyDataFormat["TSV"] = "TSV";
|
|
200
201
|
})(TerminologyDataFormat = exports.TerminologyDataFormat || (exports.TerminologyDataFormat = {}));
|
|
201
202
|
var GetTerminologyRequest;
|
|
202
203
|
(function (GetTerminologyRequest) {
|
|
@@ -210,6 +211,11 @@ var TerminologyDataLocation;
|
|
|
210
211
|
...obj,
|
|
211
212
|
});
|
|
212
213
|
})(TerminologyDataLocation = exports.TerminologyDataLocation || (exports.TerminologyDataLocation = {}));
|
|
214
|
+
var Directionality;
|
|
215
|
+
(function (Directionality) {
|
|
216
|
+
Directionality["MULTI"] = "MULTI";
|
|
217
|
+
Directionality["UNI"] = "UNI";
|
|
218
|
+
})(Directionality = exports.Directionality || (exports.Directionality = {}));
|
|
213
219
|
var TerminologyProperties;
|
|
214
220
|
(function (TerminologyProperties) {
|
|
215
221
|
TerminologyProperties.filterSensitiveLog = (obj) => ({
|
|
@@ -1505,6 +1505,8 @@ const serializeAws_json1_1TargetLanguageCodeStringList = (input, context) => {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
const serializeAws_json1_1TerminologyData = (input, context) => {
|
|
1507
1507
|
return {
|
|
1508
|
+
...(input.Directionality !== undefined &&
|
|
1509
|
+
input.Directionality !== null && { Directionality: input.Directionality }),
|
|
1508
1510
|
...(input.File !== undefined && input.File !== null && { File: context.base64Encoder(input.File) }),
|
|
1509
1511
|
...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
|
|
1510
1512
|
};
|
|
@@ -1626,6 +1628,9 @@ const deserializeAws_json1_1GetParallelDataResponse = (output, context) => {
|
|
|
1626
1628
|
};
|
|
1627
1629
|
const deserializeAws_json1_1GetTerminologyResponse = (output, context) => {
|
|
1628
1630
|
return {
|
|
1631
|
+
AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
|
|
1632
|
+
? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1633
|
+
: undefined,
|
|
1629
1634
|
TerminologyDataLocation: output.TerminologyDataLocation !== undefined && output.TerminologyDataLocation !== null
|
|
1630
1635
|
? deserializeAws_json1_1TerminologyDataLocation(output.TerminologyDataLocation, context)
|
|
1631
1636
|
: undefined,
|
|
@@ -1636,6 +1641,9 @@ const deserializeAws_json1_1GetTerminologyResponse = (output, context) => {
|
|
|
1636
1641
|
};
|
|
1637
1642
|
const deserializeAws_json1_1ImportTerminologyResponse = (output, context) => {
|
|
1638
1643
|
return {
|
|
1644
|
+
AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
|
|
1645
|
+
? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1646
|
+
: undefined,
|
|
1639
1647
|
TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null
|
|
1640
1648
|
? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context)
|
|
1641
1649
|
: undefined,
|
|
@@ -1837,14 +1845,18 @@ const deserializeAws_json1_1TerminologyProperties = (output, context) => {
|
|
|
1837
1845
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1838
1846
|
: undefined,
|
|
1839
1847
|
Description: smithy_client_1.expectString(output.Description),
|
|
1848
|
+
Directionality: smithy_client_1.expectString(output.Directionality),
|
|
1840
1849
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1841
1850
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1842
1851
|
: undefined,
|
|
1852
|
+
Format: smithy_client_1.expectString(output.Format),
|
|
1843
1853
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
1844
1854
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
|
|
1845
1855
|
: undefined,
|
|
1856
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1846
1857
|
Name: smithy_client_1.expectString(output.Name),
|
|
1847
1858
|
SizeBytes: smithy_client_1.expectInt32(output.SizeBytes),
|
|
1859
|
+
SkippedTermCount: smithy_client_1.expectInt32(output.SkippedTermCount),
|
|
1848
1860
|
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1849
1861
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1850
1862
|
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
package/dist-es/endpoints.js
CHANGED
|
@@ -128,6 +128,10 @@ var partitionHash = {
|
|
|
128
128
|
hostname: "translate.{region}.c2s.ic.gov",
|
|
129
129
|
tags: [],
|
|
130
130
|
},
|
|
131
|
+
{
|
|
132
|
+
hostname: "translate-fips.{region}.c2s.ic.gov",
|
|
133
|
+
tags: ["fips"],
|
|
134
|
+
},
|
|
131
135
|
],
|
|
132
136
|
},
|
|
133
137
|
"aws-iso-b": {
|
|
@@ -138,6 +142,10 @@ var partitionHash = {
|
|
|
138
142
|
hostname: "translate.{region}.sc2s.sgov.gov",
|
|
139
143
|
tags: [],
|
|
140
144
|
},
|
|
145
|
+
{
|
|
146
|
+
hostname: "translate-fips.{region}.sc2s.sgov.gov",
|
|
147
|
+
tags: ["fips"],
|
|
148
|
+
},
|
|
141
149
|
],
|
|
142
150
|
},
|
|
143
151
|
"aws-us-gov": {
|
|
@@ -140,6 +140,7 @@ export var TerminologyDataFormat;
|
|
|
140
140
|
(function (TerminologyDataFormat) {
|
|
141
141
|
TerminologyDataFormat["CSV"] = "CSV";
|
|
142
142
|
TerminologyDataFormat["TMX"] = "TMX";
|
|
143
|
+
TerminologyDataFormat["TSV"] = "TSV";
|
|
143
144
|
})(TerminologyDataFormat || (TerminologyDataFormat = {}));
|
|
144
145
|
export var GetTerminologyRequest;
|
|
145
146
|
(function (GetTerminologyRequest) {
|
|
@@ -149,6 +150,11 @@ export var TerminologyDataLocation;
|
|
|
149
150
|
(function (TerminologyDataLocation) {
|
|
150
151
|
TerminologyDataLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
152
|
})(TerminologyDataLocation || (TerminologyDataLocation = {}));
|
|
153
|
+
export var Directionality;
|
|
154
|
+
(function (Directionality) {
|
|
155
|
+
Directionality["MULTI"] = "MULTI";
|
|
156
|
+
Directionality["UNI"] = "UNI";
|
|
157
|
+
})(Directionality || (Directionality = {}));
|
|
152
158
|
export var TerminologyProperties;
|
|
153
159
|
(function (TerminologyProperties) {
|
|
154
160
|
TerminologyProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1562,7 +1562,8 @@ var serializeAws_json1_1TargetLanguageCodeStringList = function (input, context)
|
|
|
1562
1562
|
});
|
|
1563
1563
|
};
|
|
1564
1564
|
var serializeAws_json1_1TerminologyData = function (input, context) {
|
|
1565
|
-
return __assign(__assign(
|
|
1565
|
+
return __assign(__assign(__assign({}, (input.Directionality !== undefined &&
|
|
1566
|
+
input.Directionality !== null && { Directionality: input.Directionality })), (input.File !== undefined && input.File !== null && { File: context.base64Encoder(input.File) })), (input.Format !== undefined && input.Format !== null && { Format: input.Format }));
|
|
1566
1567
|
};
|
|
1567
1568
|
var serializeAws_json1_1TextTranslationJobFilter = function (input, context) {
|
|
1568
1569
|
return __assign(__assign(__assign(__assign({}, (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus })), (input.SubmittedAfterTime !== undefined &&
|
|
@@ -1666,6 +1667,9 @@ var deserializeAws_json1_1GetParallelDataResponse = function (output, context) {
|
|
|
1666
1667
|
};
|
|
1667
1668
|
var deserializeAws_json1_1GetTerminologyResponse = function (output, context) {
|
|
1668
1669
|
return {
|
|
1670
|
+
AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
|
|
1671
|
+
? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1672
|
+
: undefined,
|
|
1669
1673
|
TerminologyDataLocation: output.TerminologyDataLocation !== undefined && output.TerminologyDataLocation !== null
|
|
1670
1674
|
? deserializeAws_json1_1TerminologyDataLocation(output.TerminologyDataLocation, context)
|
|
1671
1675
|
: undefined,
|
|
@@ -1676,6 +1680,9 @@ var deserializeAws_json1_1GetTerminologyResponse = function (output, context) {
|
|
|
1676
1680
|
};
|
|
1677
1681
|
var deserializeAws_json1_1ImportTerminologyResponse = function (output, context) {
|
|
1678
1682
|
return {
|
|
1683
|
+
AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
|
|
1684
|
+
? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1685
|
+
: undefined,
|
|
1679
1686
|
TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null
|
|
1680
1687
|
? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context)
|
|
1681
1688
|
: undefined,
|
|
@@ -1877,14 +1884,18 @@ var deserializeAws_json1_1TerminologyProperties = function (output, context) {
|
|
|
1877
1884
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
1878
1885
|
: undefined,
|
|
1879
1886
|
Description: __expectString(output.Description),
|
|
1887
|
+
Directionality: __expectString(output.Directionality),
|
|
1880
1888
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1881
1889
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1882
1890
|
: undefined,
|
|
1891
|
+
Format: __expectString(output.Format),
|
|
1883
1892
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
1884
1893
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
1885
1894
|
: undefined,
|
|
1895
|
+
Message: __expectString(output.Message),
|
|
1886
1896
|
Name: __expectString(output.Name),
|
|
1887
1897
|
SizeBytes: __expectInt32(output.SizeBytes),
|
|
1898
|
+
SkippedTermCount: __expectInt32(output.SkippedTermCount),
|
|
1888
1899
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1889
1900
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1890
1901
|
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
@@ -23,7 +23,7 @@ export interface CreateParallelDataCommandOutput extends CreateParallelDataRespo
|
|
|
23
23
|
*
|
|
24
24
|
* @see {@link CreateParallelDataCommandInput} for command's `input` shape.
|
|
25
25
|
* @see {@link CreateParallelDataCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
26
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
export declare class CreateParallelDataCommand extends $Command<CreateParallelDataCommandInput, CreateParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteParallelDataCommandOutput extends DeleteParallelDataRespo
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteParallelDataCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteParallelDataCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteParallelDataCommand extends $Command<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteTerminologyCommandOutput extends __MetadataBearer {
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteTerminologyCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteTerminologyCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteTerminologyCommand extends $Command<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTra
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link DescribeTextTranslationJobCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link DescribeTextTranslationJobCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class DescribeTextTranslationJobCommand extends $Command<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface GetParallelDataCommandOutput extends GetParallelDataResponse, _
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link GetParallelDataCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link GetParallelDataCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class GetParallelDataCommand extends $Command<GetParallelDataCommandInput, GetParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface GetTerminologyCommandOutput extends GetTerminologyResponse, __M
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link GetTerminologyCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link GetTerminologyCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class GetTerminologyCommand extends $Command<GetTerminologyCommandInput, GetTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -27,7 +27,7 @@ export interface ImportTerminologyCommandOutput extends ImportTerminologyRespons
|
|
|
27
27
|
*
|
|
28
28
|
* @see {@link ImportTerminologyCommandInput} for command's `input` shape.
|
|
29
29
|
* @see {@link ImportTerminologyCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
30
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
export declare class ImportTerminologyCommand extends $Command<ImportTerminologyCommandInput, ImportTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface ListParallelDataCommandOutput extends ListParallelDataResponse,
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link ListParallelDataCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link ListParallelDataCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class ListParallelDataCommand extends $Command<ListParallelDataCommandInput, ListParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface ListTerminologiesCommandOutput extends ListTerminologiesRespons
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link ListTerminologiesCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link ListTerminologiesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class ListTerminologiesCommand extends $Command<ListTerminologiesCommandInput, ListTerminologiesCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface ListTextTranslationJobsCommandOutput extends ListTextTranslatio
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link ListTextTranslationJobsCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link ListTextTranslationJobsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class ListTextTranslationJobsCommand extends $Command<ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -27,7 +27,7 @@ export interface StartTextTranslationJobCommandOutput extends StartTextTranslati
|
|
|
27
27
|
*
|
|
28
28
|
* @see {@link StartTextTranslationJobCommandInput} for command's `input` shape.
|
|
29
29
|
* @see {@link StartTextTranslationJobCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
30
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
export declare class StartTextTranslationJobCommand extends $Command<StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -26,7 +26,7 @@ export interface StopTextTranslationJobCommandOutput extends StopTextTranslation
|
|
|
26
26
|
*
|
|
27
27
|
* @see {@link StopTextTranslationJobCommandInput} for command's `input` shape.
|
|
28
28
|
* @see {@link StopTextTranslationJobCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
29
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
export declare class StopTextTranslationJobCommand extends $Command<StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface TranslateTextCommandOutput extends TranslateTextResponse, __Met
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link TranslateTextCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link TranslateTextCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class TranslateTextCommand extends $Command<TranslateTextCommandInput, TranslateTextCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface UpdateParallelDataCommandOutput extends UpdateParallelDataRespo
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link UpdateParallelDataCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link UpdateParallelDataCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link TranslateClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class UpdateParallelDataCommand extends $Command<UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -359,7 +359,8 @@ export interface InputDataConfig {
|
|
|
359
359
|
* <li>
|
|
360
360
|
* <p>
|
|
361
361
|
* <code>application/x-xliff+xml</code>: The input data consists of one or more XML
|
|
362
|
-
* Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate supports only
|
|
362
|
+
* Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate supports only
|
|
363
|
+
* XLIFF version 1.2.</p>
|
|
363
364
|
* </li>
|
|
364
365
|
* </ul>
|
|
365
366
|
* <important>
|
|
@@ -690,7 +691,8 @@ export declare namespace GetParallelDataResponse {
|
|
|
690
691
|
}
|
|
691
692
|
export declare enum TerminologyDataFormat {
|
|
692
693
|
CSV = "CSV",
|
|
693
|
-
TMX = "TMX"
|
|
694
|
+
TMX = "TMX",
|
|
695
|
+
TSV = "TSV"
|
|
694
696
|
}
|
|
695
697
|
export interface GetTerminologyRequest {
|
|
696
698
|
/**
|
|
@@ -698,9 +700,14 @@ export interface GetTerminologyRequest {
|
|
|
698
700
|
*/
|
|
699
701
|
Name: string | undefined;
|
|
700
702
|
/**
|
|
701
|
-
* <p>The data format of the custom terminology being retrieved
|
|
703
|
+
* <p>The data format of the custom terminology being retrieved.</p>
|
|
704
|
+
* <p>If you don't specify this parameter, Amazon Translate returns a file that has the same
|
|
705
|
+
* format as the file that was imported to create the terminology. </p>
|
|
706
|
+
* <p>If you specify this parameter when you retrieve a multi-directional terminology resource,
|
|
707
|
+
* you must specify the same format as that of the input file that was imported to create it.
|
|
708
|
+
* Otherwise, Amazon Translate throws an error.</p>
|
|
702
709
|
*/
|
|
703
|
-
TerminologyDataFormat
|
|
710
|
+
TerminologyDataFormat?: TerminologyDataFormat | string;
|
|
704
711
|
}
|
|
705
712
|
export declare namespace GetTerminologyRequest {
|
|
706
713
|
/**
|
|
@@ -727,6 +734,10 @@ export declare namespace TerminologyDataLocation {
|
|
|
727
734
|
*/
|
|
728
735
|
const filterSensitiveLog: (obj: TerminologyDataLocation) => any;
|
|
729
736
|
}
|
|
737
|
+
export declare enum Directionality {
|
|
738
|
+
MULTI = "MULTI",
|
|
739
|
+
UNI = "UNI"
|
|
740
|
+
}
|
|
730
741
|
/**
|
|
731
742
|
* <p>The properties of the custom terminology.</p>
|
|
732
743
|
*/
|
|
@@ -749,8 +760,8 @@ export interface TerminologyProperties {
|
|
|
749
760
|
*/
|
|
750
761
|
SourceLanguageCode?: string;
|
|
751
762
|
/**
|
|
752
|
-
* <p>The language codes for the target languages available with the custom terminology
|
|
753
|
-
* All possible target languages are returned in array.</p>
|
|
763
|
+
* <p>The language codes for the target languages available with the custom terminology
|
|
764
|
+
* resource. All possible target languages are returned in array.</p>
|
|
754
765
|
*/
|
|
755
766
|
TargetLanguageCodes?: string[];
|
|
756
767
|
/**
|
|
@@ -773,6 +784,35 @@ export interface TerminologyProperties {
|
|
|
773
784
|
* <p>The time at which the custom terminology was last update, based on the timestamp.</p>
|
|
774
785
|
*/
|
|
775
786
|
LastUpdatedAt?: Date;
|
|
787
|
+
/**
|
|
788
|
+
* <p>The directionality of your terminology resource indicates whether it has one source
|
|
789
|
+
* language (uni-directional) or multiple (multi-directional). </p>
|
|
790
|
+
* <dl>
|
|
791
|
+
* <dt>UNI</dt>
|
|
792
|
+
* <dd>
|
|
793
|
+
* <p>The terminology resource has one source language (the first column in a CSV file),
|
|
794
|
+
* and all of its other languages are target languages.</p>
|
|
795
|
+
* </dd>
|
|
796
|
+
* <dt>MULTI</dt>
|
|
797
|
+
* <dd>
|
|
798
|
+
* <p>Any language in the terminology resource can be the source language.</p>
|
|
799
|
+
* </dd>
|
|
800
|
+
* </dl>
|
|
801
|
+
*/
|
|
802
|
+
Directionality?: Directionality | string;
|
|
803
|
+
/**
|
|
804
|
+
* <p>Additional information from Amazon Translate about the terminology resource.</p>
|
|
805
|
+
*/
|
|
806
|
+
Message?: string;
|
|
807
|
+
/**
|
|
808
|
+
* <p>The number of terms in the input file that Amazon Translate skipped when you created or
|
|
809
|
+
* updated the terminology resource.</p>
|
|
810
|
+
*/
|
|
811
|
+
SkippedTermCount?: number;
|
|
812
|
+
/**
|
|
813
|
+
* <p>The format of the custom terminology input file.</p>
|
|
814
|
+
*/
|
|
815
|
+
Format?: TerminologyDataFormat | string;
|
|
776
816
|
}
|
|
777
817
|
export declare namespace TerminologyProperties {
|
|
778
818
|
/**
|
|
@@ -790,6 +830,13 @@ export interface GetTerminologyResponse {
|
|
|
790
830
|
* is returned in a presigned url that has a 30 minute expiration.</p>
|
|
791
831
|
*/
|
|
792
832
|
TerminologyDataLocation?: TerminologyDataLocation;
|
|
833
|
+
/**
|
|
834
|
+
* <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
|
|
835
|
+
* by your input file. This file was created when Amazon Translate attempted to create a
|
|
836
|
+
* terminology resource. The location is returned as a presigned URL to that has a 30 minute
|
|
837
|
+
* expiration.</p>
|
|
838
|
+
*/
|
|
839
|
+
AuxiliaryDataLocation?: TerminologyDataLocation;
|
|
793
840
|
}
|
|
794
841
|
export declare namespace GetTerminologyResponse {
|
|
795
842
|
/**
|
|
@@ -811,9 +858,31 @@ export interface TerminologyData {
|
|
|
811
858
|
*/
|
|
812
859
|
File: Uint8Array | undefined;
|
|
813
860
|
/**
|
|
814
|
-
* <p>The data format of the custom terminology
|
|
861
|
+
* <p>The data format of the custom terminology.</p>
|
|
815
862
|
*/
|
|
816
863
|
Format: TerminologyDataFormat | string | undefined;
|
|
864
|
+
/**
|
|
865
|
+
* <p>The directionality of your terminology resource indicates whether it has one source
|
|
866
|
+
* language (uni-directional) or multiple (multi-directional).</p>
|
|
867
|
+
* <dl>
|
|
868
|
+
* <dt>UNI</dt>
|
|
869
|
+
* <dd>
|
|
870
|
+
* <p>The terminology resource has one source language (for example, the first column in a
|
|
871
|
+
* CSV file), and all of its other languages are target languages. </p>
|
|
872
|
+
* </dd>
|
|
873
|
+
* <dt>MULTI</dt>
|
|
874
|
+
* <dd>
|
|
875
|
+
* <p>Any language in the terminology resource can be the source language or a target
|
|
876
|
+
* language. A single multi-directional terminology resource can be used for jobs that
|
|
877
|
+
* translate different language pairs. For example, if the terminology contains terms in
|
|
878
|
+
* English and Spanish, then it can be used for jobs that translate English to Spanish and
|
|
879
|
+
* jobs that translate Spanish to English.</p>
|
|
880
|
+
* </dd>
|
|
881
|
+
* </dl>
|
|
882
|
+
* <p>When you create a custom terminology resource without specifying the directionality, it
|
|
883
|
+
* behaves as uni-directional terminology, although this parameter will have a null value.</p>
|
|
884
|
+
*/
|
|
885
|
+
Directionality?: Directionality | string;
|
|
817
886
|
}
|
|
818
887
|
export declare namespace TerminologyData {
|
|
819
888
|
/**
|
|
@@ -856,6 +925,13 @@ export interface ImportTerminologyResponse {
|
|
|
856
925
|
* <p>The properties of the custom terminology being imported.</p>
|
|
857
926
|
*/
|
|
858
927
|
TerminologyProperties?: TerminologyProperties;
|
|
928
|
+
/**
|
|
929
|
+
* <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
|
|
930
|
+
* by your input file. This file was created when Amazon Translate attempted to create a
|
|
931
|
+
* terminology resource. The location is returned as a presigned URL to that has a 30 minute
|
|
932
|
+
* expiration.</p>
|
|
933
|
+
*/
|
|
934
|
+
AuxiliaryDataLocation?: TerminologyDataLocation;
|
|
859
935
|
}
|
|
860
936
|
export declare namespace ImportTerminologyResponse {
|
|
861
937
|
/**
|
|
@@ -361,13 +361,14 @@ export declare namespace GetParallelDataResponse {
|
|
|
361
361
|
}
|
|
362
362
|
export declare enum TerminologyDataFormat {
|
|
363
363
|
CSV = "CSV",
|
|
364
|
-
TMX = "TMX"
|
|
364
|
+
TMX = "TMX",
|
|
365
|
+
TSV = "TSV"
|
|
365
366
|
}
|
|
366
367
|
export interface GetTerminologyRequest {
|
|
367
368
|
|
|
368
369
|
Name: string | undefined;
|
|
369
370
|
|
|
370
|
-
TerminologyDataFormat
|
|
371
|
+
TerminologyDataFormat?: TerminologyDataFormat | string;
|
|
371
372
|
}
|
|
372
373
|
export declare namespace GetTerminologyRequest {
|
|
373
374
|
|
|
@@ -384,6 +385,10 @@ export declare namespace TerminologyDataLocation {
|
|
|
384
385
|
|
|
385
386
|
const filterSensitiveLog: (obj: TerminologyDataLocation) => any;
|
|
386
387
|
}
|
|
388
|
+
export declare enum Directionality {
|
|
389
|
+
MULTI = "MULTI",
|
|
390
|
+
UNI = "UNI"
|
|
391
|
+
}
|
|
387
392
|
|
|
388
393
|
export interface TerminologyProperties {
|
|
389
394
|
|
|
@@ -406,6 +411,14 @@ export interface TerminologyProperties {
|
|
|
406
411
|
CreatedAt?: Date;
|
|
407
412
|
|
|
408
413
|
LastUpdatedAt?: Date;
|
|
414
|
+
|
|
415
|
+
Directionality?: Directionality | string;
|
|
416
|
+
|
|
417
|
+
Message?: string;
|
|
418
|
+
|
|
419
|
+
SkippedTermCount?: number;
|
|
420
|
+
|
|
421
|
+
Format?: TerminologyDataFormat | string;
|
|
409
422
|
}
|
|
410
423
|
export declare namespace TerminologyProperties {
|
|
411
424
|
|
|
@@ -416,6 +429,8 @@ export interface GetTerminologyResponse {
|
|
|
416
429
|
TerminologyProperties?: TerminologyProperties;
|
|
417
430
|
|
|
418
431
|
TerminologyDataLocation?: TerminologyDataLocation;
|
|
432
|
+
|
|
433
|
+
AuxiliaryDataLocation?: TerminologyDataLocation;
|
|
419
434
|
}
|
|
420
435
|
export declare namespace GetTerminologyResponse {
|
|
421
436
|
|
|
@@ -430,6 +445,8 @@ export interface TerminologyData {
|
|
|
430
445
|
File: Uint8Array | undefined;
|
|
431
446
|
|
|
432
447
|
Format: TerminologyDataFormat | string | undefined;
|
|
448
|
+
|
|
449
|
+
Directionality?: Directionality | string;
|
|
433
450
|
}
|
|
434
451
|
export declare namespace TerminologyData {
|
|
435
452
|
|
|
@@ -454,6 +471,8 @@ export declare namespace ImportTerminologyRequest {
|
|
|
454
471
|
export interface ImportTerminologyResponse {
|
|
455
472
|
|
|
456
473
|
TerminologyProperties?: TerminologyProperties;
|
|
474
|
+
|
|
475
|
+
AuxiliaryDataLocation?: TerminologyDataLocation;
|
|
457
476
|
}
|
|
458
477
|
export declare namespace ImportTerminologyResponse {
|
|
459
478
|
|
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.41.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.41.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.40.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.41.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.40.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.40.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.40.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@aws-sdk/node-config-provider": "3.40.0",
|
|
39
39
|
"@aws-sdk/node-http-handler": "3.40.0",
|
|
40
40
|
"@aws-sdk/protocol-http": "3.40.0",
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
+
"@aws-sdk/smithy-client": "3.41.0",
|
|
42
42
|
"@aws-sdk/types": "3.40.0",
|
|
43
43
|
"@aws-sdk/url-parser": "3.40.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.37.0",
|