New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@aws-sdk/client-translate

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-translate - npm Package Compare versions

Comparing version 3.40.0 to 3.41.0

@@ -133,2 +133,6 @@ "use strict";

},
{
hostname: "translate-fips.{region}.c2s.ic.gov",
tags: ["fips"],
},
],

@@ -144,2 +148,6 @@ },

},
{
hostname: "translate-fips.{region}.sc2s.sgov.gov",
tags: ["fips"],
},
],

@@ -146,0 +154,0 @@ },

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StartTextTranslationJobResponse = 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.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;
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = void 0;
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;
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = exports.StartTextTranslationJobResponse = void 0;
const smithy_client_1 = require("@aws-sdk/smithy-client");

@@ -200,2 +200,3 @@ var Term;

TerminologyDataFormat["TMX"] = "TMX";
TerminologyDataFormat["TSV"] = "TSV";
})(TerminologyDataFormat = exports.TerminologyDataFormat || (exports.TerminologyDataFormat = {}));

@@ -214,2 +215,7 @@ var GetTerminologyRequest;

})(TerminologyDataLocation = exports.TerminologyDataLocation || (exports.TerminologyDataLocation = {}));
var Directionality;
(function (Directionality) {
Directionality["MULTI"] = "MULTI";
Directionality["UNI"] = "UNI";
})(Directionality = exports.Directionality || (exports.Directionality = {}));
var TerminologyProperties;

@@ -216,0 +222,0 @@ (function (TerminologyProperties) {

@@ -131,2 +131,6 @@ import { __assign, __awaiter, __generator } from "tslib";

},
{
hostname: "translate-fips.{region}.c2s.ic.gov",
tags: ["fips"],
},
],

@@ -142,2 +146,6 @@ },

},
{
hostname: "translate-fips.{region}.sc2s.sgov.gov",
tags: ["fips"],
},
],

@@ -144,0 +152,0 @@ },

@@ -143,2 +143,3 @@ import { __assign } from "tslib";

TerminologyDataFormat["TMX"] = "TMX";
TerminologyDataFormat["TSV"] = "TSV";
})(TerminologyDataFormat || (TerminologyDataFormat = {}));

@@ -153,2 +154,7 @@ export var GetTerminologyRequest;

})(TerminologyDataLocation || (TerminologyDataLocation = {}));
export var Directionality;
(function (Directionality) {
Directionality["MULTI"] = "MULTI";
Directionality["UNI"] = "UNI";
})(Directionality || (Directionality = {}));
export var TerminologyProperties;

@@ -155,0 +161,0 @@ (function (TerminologyProperties) {

@@ -26,3 +26,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link CreateParallelDataCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -29,0 +29,0 @@ */

@@ -23,3 +23,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link DeleteParallelDataCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -26,0 +26,0 @@ */

@@ -23,3 +23,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link DeleteTerminologyCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -26,0 +26,0 @@ */

@@ -24,3 +24,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link DescribeTextTranslationJobCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -27,0 +27,0 @@ */

@@ -23,3 +23,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link GetParallelDataCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -26,0 +26,0 @@ */

@@ -23,3 +23,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link GetTerminologyCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -26,0 +26,0 @@ */

@@ -30,3 +30,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link ImportTerminologyCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -33,0 +33,0 @@ */

@@ -23,3 +23,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link ListParallelDataCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -26,0 +26,0 @@ */

@@ -23,3 +23,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link ListTerminologiesCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -26,0 +26,0 @@ */

@@ -23,3 +23,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link ListTextTranslationJobsCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -26,0 +26,0 @@ */

@@ -30,3 +30,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link StartTextTranslationJobCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -33,0 +33,0 @@ */

@@ -29,3 +29,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link StopTextTranslationJobCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -32,0 +32,0 @@ */

@@ -24,3 +24,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link TranslateTextCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -27,0 +27,0 @@ */

@@ -24,3 +24,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* @see {@link UpdateParallelDataCommandOutput} for command's `response` shape.
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
* @see {@link TranslateClientResolvedConfig | config} for TranslateClient's `config` shape.
*

@@ -27,0 +27,0 @@ */

@@ -362,3 +362,4 @@ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";

* <code>application/x-xliff+xml</code>: The input data consists of one or more XML
* Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate supports only XLIFF version 1.2.</p>
* Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate supports only
* XLIFF version 1.2.</p>
* </li>

@@ -694,3 +695,4 @@ * </ul>

CSV = "CSV",
TMX = "TMX"
TMX = "TMX",
TSV = "TSV"
}

@@ -703,5 +705,10 @@ export interface GetTerminologyRequest {

/**
* <p>The data format of the custom terminology being retrieved, either CSV or TMX.</p>
* <p>The data format of the custom terminology being retrieved.</p>
* <p>If you don't specify this parameter, Amazon Translate returns a file that has the same
* format as the file that was imported to create the terminology. </p>
* <p>If you specify this parameter when you retrieve a multi-directional terminology resource,
* you must specify the same format as that of the input file that was imported to create it.
* Otherwise, Amazon Translate throws an error.</p>
*/
TerminologyDataFormat: TerminologyDataFormat | string | undefined;
TerminologyDataFormat?: TerminologyDataFormat | string;
}

@@ -733,2 +740,6 @@ export declare namespace GetTerminologyRequest {

}
export declare enum Directionality {
MULTI = "MULTI",
UNI = "UNI"
}
/**

@@ -756,4 +767,4 @@ * <p>The properties of the custom terminology.</p>

/**
* <p>The language codes for the target languages available with the custom terminology file.
* All possible target languages are returned in array.</p>
* <p>The language codes for the target languages available with the custom terminology
* resource. All possible target languages are returned in array.</p>
*/

@@ -781,2 +792,31 @@ TargetLanguageCodes?: string[];

LastUpdatedAt?: Date;
/**
* <p>The directionality of your terminology resource indicates whether it has one source
* language (uni-directional) or multiple (multi-directional). </p>
* <dl>
* <dt>UNI</dt>
* <dd>
* <p>The terminology resource has one source language (the first column in a CSV file),
* and all of its other languages are target languages.</p>
* </dd>
* <dt>MULTI</dt>
* <dd>
* <p>Any language in the terminology resource can be the source language.</p>
* </dd>
* </dl>
*/
Directionality?: Directionality | string;
/**
* <p>Additional information from Amazon Translate about the terminology resource.</p>
*/
Message?: string;
/**
* <p>The number of terms in the input file that Amazon Translate skipped when you created or
* updated the terminology resource.</p>
*/
SkippedTermCount?: number;
/**
* <p>The format of the custom terminology input file.</p>
*/
Format?: TerminologyDataFormat | string;
}

@@ -799,2 +839,9 @@ export declare namespace TerminologyProperties {

TerminologyDataLocation?: TerminologyDataLocation;
/**
* <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
* by your input file. This file was created when Amazon Translate attempted to create a
* terminology resource. The location is returned as a presigned URL to that has a 30 minute
* expiration.</p>
*/
AuxiliaryDataLocation?: TerminologyDataLocation;
}

@@ -821,5 +868,27 @@ export declare namespace GetTerminologyResponse {

/**
* <p>The data format of the custom terminology. Either CSV or TMX.</p>
* <p>The data format of the custom terminology.</p>
*/
Format: TerminologyDataFormat | string | undefined;
/**
* <p>The directionality of your terminology resource indicates whether it has one source
* language (uni-directional) or multiple (multi-directional).</p>
* <dl>
* <dt>UNI</dt>
* <dd>
* <p>The terminology resource has one source language (for example, the first column in a
* CSV file), and all of its other languages are target languages. </p>
* </dd>
* <dt>MULTI</dt>
* <dd>
* <p>Any language in the terminology resource can be the source language or a target
* language. A single multi-directional terminology resource can be used for jobs that
* translate different language pairs. For example, if the terminology contains terms in
* English and Spanish, then it can be used for jobs that translate English to Spanish and
* jobs that translate Spanish to English.</p>
* </dd>
* </dl>
* <p>When you create a custom terminology resource without specifying the directionality, it
* behaves as uni-directional terminology, although this parameter will have a null value.</p>
*/
Directionality?: Directionality | string;
}

@@ -867,2 +936,9 @@ export declare namespace TerminologyData {

TerminologyProperties?: TerminologyProperties;
/**
* <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
* by your input file. This file was created when Amazon Translate attempted to create a
* terminology resource. The location is returned as a presigned URL to that has a 30 minute
* expiration.</p>
*/
AuxiliaryDataLocation?: TerminologyDataLocation;
}

@@ -869,0 +945,0 @@ export declare namespace ImportTerminologyResponse {

@@ -364,3 +364,4 @@ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";

CSV = "CSV",
TMX = "TMX"
TMX = "TMX",
TSV = "TSV"
}

@@ -371,3 +372,3 @@ export interface GetTerminologyRequest {

TerminologyDataFormat: TerminologyDataFormat | string | undefined;
TerminologyDataFormat?: TerminologyDataFormat | string;
}

@@ -389,2 +390,6 @@ export declare namespace GetTerminologyRequest {

}
export declare enum Directionality {
MULTI = "MULTI",
UNI = "UNI"
}

@@ -412,2 +417,10 @@ export interface TerminologyProperties {

LastUpdatedAt?: Date;
Directionality?: Directionality | string;
Message?: string;
SkippedTermCount?: number;
Format?: TerminologyDataFormat | string;
}

@@ -423,2 +436,4 @@ export declare namespace TerminologyProperties {

TerminologyDataLocation?: TerminologyDataLocation;
AuxiliaryDataLocation?: TerminologyDataLocation;
}

@@ -438,2 +453,4 @@ export declare namespace GetTerminologyResponse {

Format: TerminologyDataFormat | string | undefined;
Directionality?: Directionality | string;
}

@@ -463,2 +480,4 @@ export declare namespace TerminologyData {

TerminologyProperties?: TerminologyProperties;
AuxiliaryDataLocation?: TerminologyDataLocation;
}

@@ -465,0 +484,0 @@ export declare namespace ImportTerminologyResponse {

{
"name": "@aws-sdk/client-translate",
"description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
"version": "3.40.0",
"version": "3.41.0",
"scripts": {

@@ -24,5 +24,5 @@ "build": "yarn build:cjs && yarn build:es && yarn build:types",

"@aws-crypto/sha256-js": "2.0.0",
"@aws-sdk/client-sts": "3.40.0",
"@aws-sdk/client-sts": "3.41.0",
"@aws-sdk/config-resolver": "3.40.0",
"@aws-sdk/credential-provider-node": "3.40.0",
"@aws-sdk/credential-provider-node": "3.41.0",
"@aws-sdk/fetch-http-handler": "3.40.0",

@@ -42,3 +42,3 @@ "@aws-sdk/hash-node": "3.40.0",

"@aws-sdk/protocol-http": "3.40.0",
"@aws-sdk/smithy-client": "3.40.0",
"@aws-sdk/smithy-client": "3.41.0",
"@aws-sdk/types": "3.40.0",

@@ -45,0 +45,0 @@ "@aws-sdk/url-parser": "3.40.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display