@aws-sdk/client-translate 3.927.0 → 3.929.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.
Files changed (43) hide show
  1. package/dist-cjs/index.js +822 -1023
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/TranslateClient.js +2 -0
  4. package/dist-es/commands/CreateParallelDataCommand.js +3 -9
  5. package/dist-es/commands/DeleteParallelDataCommand.js +3 -9
  6. package/dist-es/commands/DeleteTerminologyCommand.js +3 -9
  7. package/dist-es/commands/DescribeTextTranslationJobCommand.js +3 -9
  8. package/dist-es/commands/GetParallelDataCommand.js +3 -9
  9. package/dist-es/commands/GetTerminologyCommand.js +3 -9
  10. package/dist-es/commands/ImportTerminologyCommand.js +3 -10
  11. package/dist-es/commands/ListLanguagesCommand.js +3 -9
  12. package/dist-es/commands/ListParallelDataCommand.js +3 -9
  13. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  14. package/dist-es/commands/ListTerminologiesCommand.js +3 -9
  15. package/dist-es/commands/ListTextTranslationJobsCommand.js +3 -9
  16. package/dist-es/commands/StartTextTranslationJobCommand.js +3 -9
  17. package/dist-es/commands/StopTextTranslationJobCommand.js +3 -9
  18. package/dist-es/commands/TagResourceCommand.js +3 -9
  19. package/dist-es/commands/TranslateDocumentCommand.js +3 -10
  20. package/dist-es/commands/TranslateTextCommand.js +3 -9
  21. package/dist-es/commands/UntagResourceCommand.js +3 -9
  22. package/dist-es/commands/UpdateParallelDataCommand.js +3 -9
  23. package/dist-es/models/models_0.js +0 -25
  24. package/dist-es/runtimeConfig.shared.js +7 -0
  25. package/dist-es/schemas/schemas_0.js +741 -0
  26. package/dist-types/TranslateClient.d.ts +10 -1
  27. package/dist-types/models/models_0.d.ts +0 -24
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/runtimeConfig.shared.d.ts +2 -5
  32. package/dist-types/schemas/schemas_0.d.ts +107 -0
  33. package/dist-types/ts3.4/TranslateClient.d.ts +4 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +0 -16
  35. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +113 -0
  40. package/package.json +5 -6
  41. package/dist-es/protocols/Aws_json1_1.js +0 -819
  42. package/dist-types/protocols/Aws_json1_1.d.ts +0 -173
  43. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -233
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_1Protocol({
31
+ defaultNamespace: "com.amazonaws.translate",
32
+ serviceTarget: "AWSShineFrontendService_20170701",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "Translate",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class TranslateClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateParallelDataCommand, se_CreateParallelDataCommand } from "../protocols/Aws_json1_1";
4
+ import { CreateParallelData } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateParallelDataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "CreateParallelData", {})
17
13
  .n("TranslateClient", "CreateParallelDataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateParallelDataCommand)
20
- .de(de_CreateParallelDataCommand)
14
+ .sc(CreateParallelData)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteParallelDataCommand, se_DeleteParallelDataCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteParallelData } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteParallelDataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "DeleteParallelData", {})
17
13
  .n("TranslateClient", "DeleteParallelDataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteParallelDataCommand)
20
- .de(de_DeleteParallelDataCommand)
14
+ .sc(DeleteParallelData)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteTerminologyCommand, se_DeleteTerminologyCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteTerminology } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteTerminologyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "DeleteTerminology", {})
17
13
  .n("TranslateClient", "DeleteTerminologyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteTerminologyCommand)
20
- .de(de_DeleteTerminologyCommand)
14
+ .sc(DeleteTerminology)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeTextTranslationJobCommand, se_DescribeTextTranslationJobCommand } from "../protocols/Aws_json1_1";
4
+ import { DescribeTextTranslationJob } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeTextTranslationJobCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "DescribeTextTranslationJob", {})
17
13
  .n("TranslateClient", "DescribeTextTranslationJobCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeTextTranslationJobCommand)
20
- .de(de_DescribeTextTranslationJobCommand)
14
+ .sc(DescribeTextTranslationJob)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetParallelDataCommand, se_GetParallelDataCommand } from "../protocols/Aws_json1_1";
4
+ import { GetParallelData } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetParallelDataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "GetParallelData", {})
17
13
  .n("TranslateClient", "GetParallelDataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetParallelDataCommand)
20
- .de(de_GetParallelDataCommand)
14
+ .sc(GetParallelData)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetTerminologyCommand, se_GetTerminologyCommand } from "../protocols/Aws_json1_1";
4
+ import { GetTerminology } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTerminologyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "GetTerminology", {})
17
13
  .n("TranslateClient", "GetTerminologyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTerminologyCommand)
20
- .de(de_GetTerminologyCommand)
14
+ .sc(GetTerminology)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ImportTerminologyRequestFilterSensitiveLog, } from "../models/models_0";
6
- import { de_ImportTerminologyCommand, se_ImportTerminologyCommand } from "../protocols/Aws_json1_1";
4
+ import { ImportTerminology } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class ImportTerminologyCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AWSShineFrontendService_20170701", "ImportTerminology", {})
18
13
  .n("TranslateClient", "ImportTerminologyCommand")
19
- .f(ImportTerminologyRequestFilterSensitiveLog, void 0)
20
- .ser(se_ImportTerminologyCommand)
21
- .de(de_ImportTerminologyCommand)
14
+ .sc(ImportTerminology)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListLanguagesCommand, se_ListLanguagesCommand } from "../protocols/Aws_json1_1";
4
+ import { ListLanguages } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListLanguagesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "ListLanguages", {})
17
13
  .n("TranslateClient", "ListLanguagesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListLanguagesCommand)
20
- .de(de_ListLanguagesCommand)
14
+ .sc(ListLanguages)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListParallelDataCommand, se_ListParallelDataCommand } from "../protocols/Aws_json1_1";
4
+ import { ListParallelData } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListParallelDataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "ListParallelData", {})
17
13
  .n("TranslateClient", "ListParallelDataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListParallelDataCommand)
20
- .de(de_ListParallelDataCommand)
14
+ .sc(ListParallelData)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "ListTagsForResource", {})
17
13
  .n("TranslateClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTerminologiesCommand, se_ListTerminologiesCommand } from "../protocols/Aws_json1_1";
4
+ import { ListTerminologies } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTerminologiesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "ListTerminologies", {})
17
13
  .n("TranslateClient", "ListTerminologiesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTerminologiesCommand)
20
- .de(de_ListTerminologiesCommand)
14
+ .sc(ListTerminologies)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTextTranslationJobsCommand, se_ListTextTranslationJobsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListTextTranslationJobs } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTextTranslationJobsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "ListTextTranslationJobs", {})
17
13
  .n("TranslateClient", "ListTextTranslationJobsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTextTranslationJobsCommand)
20
- .de(de_ListTextTranslationJobsCommand)
14
+ .sc(ListTextTranslationJobs)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartTextTranslationJobCommand, se_StartTextTranslationJobCommand } from "../protocols/Aws_json1_1";
4
+ import { StartTextTranslationJob } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartTextTranslationJobCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "StartTextTranslationJob", {})
17
13
  .n("TranslateClient", "StartTextTranslationJobCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartTextTranslationJobCommand)
20
- .de(de_StartTextTranslationJobCommand)
14
+ .sc(StartTextTranslationJob)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopTextTranslationJobCommand, se_StopTextTranslationJobCommand } from "../protocols/Aws_json1_1";
4
+ import { StopTextTranslationJob } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopTextTranslationJobCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "StopTextTranslationJob", {})
17
13
  .n("TranslateClient", "StopTextTranslationJobCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopTextTranslationJobCommand)
20
- .de(de_StopTextTranslationJobCommand)
14
+ .sc(StopTextTranslationJob)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "TagResource", {})
17
13
  .n("TranslateClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { TranslateDocumentRequestFilterSensitiveLog, TranslateDocumentResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_TranslateDocumentCommand, se_TranslateDocumentCommand } from "../protocols/Aws_json1_1";
4
+ import { TranslateDocument } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class TranslateDocumentCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AWSShineFrontendService_20170701", "TranslateDocument", {})
18
13
  .n("TranslateClient", "TranslateDocumentCommand")
19
- .f(TranslateDocumentRequestFilterSensitiveLog, TranslateDocumentResponseFilterSensitiveLog)
20
- .ser(se_TranslateDocumentCommand)
21
- .de(de_TranslateDocumentCommand)
14
+ .sc(TranslateDocument)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TranslateTextCommand, se_TranslateTextCommand } from "../protocols/Aws_json1_1";
4
+ import { TranslateText } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TranslateTextCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "TranslateText", {})
17
13
  .n("TranslateClient", "TranslateTextCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TranslateTextCommand)
20
- .de(de_TranslateTextCommand)
14
+ .sc(TranslateText)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "UntagResource", {})
17
13
  .n("TranslateClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateParallelDataCommand, se_UpdateParallelDataCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateParallelData } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateParallelDataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSShineFrontendService_20170701", "UpdateParallelData", {})
17
13
  .n("TranslateClient", "UpdateParallelDataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateParallelDataCommand)
20
- .de(de_UpdateParallelDataCommand)
14
+ .sc(UpdateParallelData)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
3
2
  export class ConcurrentModificationException extends __BaseException {
4
3
  name = "ConcurrentModificationException";
@@ -276,27 +275,3 @@ export class TextSizeLimitExceededException extends __BaseException {
276
275
  this.Message = opts.Message;
277
276
  }
278
277
  }
279
- export const TerminologyDataFilterSensitiveLog = (obj) => ({
280
- ...obj,
281
- ...(obj.File && { File: SENSITIVE_STRING }),
282
- });
283
- export const ImportTerminologyRequestFilterSensitiveLog = (obj) => ({
284
- ...obj,
285
- ...(obj.TerminologyData && { TerminologyData: TerminologyDataFilterSensitiveLog(obj.TerminologyData) }),
286
- });
287
- export const DocumentFilterSensitiveLog = (obj) => ({
288
- ...obj,
289
- ...(obj.Content && { Content: SENSITIVE_STRING }),
290
- });
291
- export const TranslateDocumentRequestFilterSensitiveLog = (obj) => ({
292
- ...obj,
293
- ...(obj.Document && { Document: DocumentFilterSensitiveLog(obj.Document) }),
294
- });
295
- export const TranslatedDocumentFilterSensitiveLog = (obj) => ({
296
- ...obj,
297
- ...(obj.Content && { Content: SENSITIVE_STRING }),
298
- });
299
- export const TranslateDocumentResponseFilterSensitiveLog = (obj) => ({
300
- ...obj,
301
- ...(obj.TranslatedDocument && { TranslatedDocument: TranslatedDocumentFilterSensitiveLog(obj.TranslatedDocument) }),
302
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.translate",
29
+ serviceTarget: "AWSShineFrontendService_20170701",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "Translate",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,