@aws-sdk/client-translate 3.335.0 → 3.338.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 (110) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/Translate.js +2 -0
  3. package/dist-cjs/TranslateClient.js +2 -1
  4. package/dist-cjs/commands/CreateParallelDataCommand.js +2 -1
  5. package/dist-cjs/commands/DeleteParallelDataCommand.js +2 -1
  6. package/dist-cjs/commands/DeleteTerminologyCommand.js +2 -1
  7. package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +2 -1
  8. package/dist-cjs/commands/GetParallelDataCommand.js +2 -1
  9. package/dist-cjs/commands/GetTerminologyCommand.js +2 -1
  10. package/dist-cjs/commands/ImportTerminologyCommand.js +2 -1
  11. package/dist-cjs/commands/ListLanguagesCommand.js +2 -1
  12. package/dist-cjs/commands/ListParallelDataCommand.js +2 -1
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
  14. package/dist-cjs/commands/ListTerminologiesCommand.js +2 -1
  15. package/dist-cjs/commands/ListTextTranslationJobsCommand.js +2 -1
  16. package/dist-cjs/commands/StartTextTranslationJobCommand.js +2 -1
  17. package/dist-cjs/commands/StopTextTranslationJobCommand.js +2 -1
  18. package/dist-cjs/commands/TagResourceCommand.js +2 -1
  19. package/dist-cjs/commands/TranslateDocumentCommand.js +47 -0
  20. package/dist-cjs/commands/TranslateTextCommand.js +2 -1
  21. package/dist-cjs/commands/UntagResourceCommand.js +2 -1
  22. package/dist-cjs/commands/UpdateParallelDataCommand.js +2 -1
  23. package/dist-cjs/commands/index.js +1 -0
  24. package/dist-cjs/endpoint/ruleset.js +3 -3
  25. package/dist-cjs/index.js +2 -2
  26. package/dist-cjs/models/TranslateServiceException.js +2 -1
  27. package/dist-cjs/models/models_0.js +35 -15
  28. package/dist-cjs/protocols/Aws_json1_1.js +88 -1
  29. package/dist-es/Translate.js +2 -0
  30. package/dist-es/TranslateClient.js +1 -0
  31. package/dist-es/commands/CreateParallelDataCommand.js +1 -0
  32. package/dist-es/commands/DeleteParallelDataCommand.js +1 -0
  33. package/dist-es/commands/DeleteTerminologyCommand.js +1 -0
  34. package/dist-es/commands/DescribeTextTranslationJobCommand.js +1 -0
  35. package/dist-es/commands/GetParallelDataCommand.js +1 -0
  36. package/dist-es/commands/GetTerminologyCommand.js +1 -0
  37. package/dist-es/commands/ImportTerminologyCommand.js +1 -0
  38. package/dist-es/commands/ListLanguagesCommand.js +1 -0
  39. package/dist-es/commands/ListParallelDataCommand.js +1 -0
  40. package/dist-es/commands/ListTagsForResourceCommand.js +1 -0
  41. package/dist-es/commands/ListTerminologiesCommand.js +1 -0
  42. package/dist-es/commands/ListTextTranslationJobsCommand.js +1 -0
  43. package/dist-es/commands/StartTextTranslationJobCommand.js +1 -0
  44. package/dist-es/commands/StopTextTranslationJobCommand.js +1 -0
  45. package/dist-es/commands/TagResourceCommand.js +1 -0
  46. package/dist-es/commands/TranslateDocumentCommand.js +43 -0
  47. package/dist-es/commands/TranslateTextCommand.js +1 -0
  48. package/dist-es/commands/UntagResourceCommand.js +1 -0
  49. package/dist-es/commands/UpdateParallelDataCommand.js +1 -0
  50. package/dist-es/commands/index.js +1 -0
  51. package/dist-es/endpoint/ruleset.js +3 -3
  52. package/dist-es/index.js +2 -2
  53. package/dist-es/models/TranslateServiceException.js +1 -0
  54. package/dist-es/models/models_0.js +29 -13
  55. package/dist-es/protocols/Aws_json1_1.js +85 -0
  56. package/dist-types/Translate.d.ts +7 -0
  57. package/dist-types/TranslateClient.d.ts +6 -5
  58. package/dist-types/commands/CreateParallelDataCommand.d.ts +4 -0
  59. package/dist-types/commands/DeleteParallelDataCommand.d.ts +4 -0
  60. package/dist-types/commands/DeleteTerminologyCommand.d.ts +4 -0
  61. package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +4 -0
  62. package/dist-types/commands/GetParallelDataCommand.d.ts +4 -0
  63. package/dist-types/commands/GetTerminologyCommand.d.ts +4 -0
  64. package/dist-types/commands/ImportTerminologyCommand.d.ts +4 -0
  65. package/dist-types/commands/ListLanguagesCommand.d.ts +4 -0
  66. package/dist-types/commands/ListParallelDataCommand.d.ts +4 -0
  67. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
  68. package/dist-types/commands/ListTerminologiesCommand.d.ts +4 -0
  69. package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +4 -0
  70. package/dist-types/commands/StartTextTranslationJobCommand.d.ts +5 -1
  71. package/dist-types/commands/StopTextTranslationJobCommand.d.ts +4 -0
  72. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  73. package/dist-types/commands/TranslateDocumentCommand.d.ts +144 -0
  74. package/dist-types/commands/TranslateTextCommand.d.ts +5 -1
  75. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  76. package/dist-types/commands/UpdateParallelDataCommand.d.ts +4 -0
  77. package/dist-types/commands/index.d.ts +1 -0
  78. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  79. package/dist-types/index.d.ts +7 -2
  80. package/dist-types/models/TranslateServiceException.d.ts +1 -0
  81. package/dist-types/models/models_0.d.ts +147 -26
  82. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  83. package/dist-types/ts3.4/Translate.d.ts +17 -0
  84. package/dist-types/ts3.4/TranslateClient.d.ts +9 -3
  85. package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +1 -0
  86. package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +1 -0
  87. package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +1 -0
  88. package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +1 -0
  89. package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +1 -0
  90. package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +1 -0
  91. package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +1 -0
  92. package/dist-types/ts3.4/commands/ListLanguagesCommand.d.ts +1 -0
  93. package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +1 -0
  94. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -0
  95. package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +1 -0
  96. package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +1 -0
  97. package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +1 -0
  98. package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +1 -0
  99. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -0
  100. package/dist-types/ts3.4/commands/TranslateDocumentCommand.d.ts +39 -0
  101. package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +1 -0
  102. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -0
  103. package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +1 -0
  104. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  105. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  106. package/dist-types/ts3.4/index.d.ts +2 -2
  107. package/dist-types/ts3.4/models/TranslateServiceException.d.ts +1 -0
  108. package/dist-types/ts3.4/models/models_0.d.ts +39 -8
  109. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  110. package/package.json +28 -28
@@ -10,6 +10,7 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
10
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
11
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ export { __Client };
13
14
  export class TranslateClient extends __Client {
14
15
  constructor(configuration) {
15
16
  const _config_0 = __getRuntimeConfig(configuration);
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_CreateParallelDataCommand, se_CreateParallelDataCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class CreateParallelDataCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DeleteParallelDataCommand, se_DeleteParallelDataCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class DeleteParallelDataCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DeleteTerminologyCommand, se_DeleteTerminologyCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class DeleteTerminologyCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DescribeTextTranslationJobCommand, se_DescribeTextTranslationJobCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class DescribeTextTranslationJobCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_GetParallelDataCommand, se_GetParallelDataCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class GetParallelDataCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_GetTerminologyCommand, se_GetTerminologyCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class GetTerminologyCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -3,6 +3,7 @@ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { ImportTerminologyRequestFilterSensitiveLog, } from "../models/models_0";
5
5
  import { de_ImportTerminologyCommand, se_ImportTerminologyCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
6
7
  export class ImportTerminologyCommand extends $Command {
7
8
  static getEndpointParameterInstructions() {
8
9
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListLanguagesCommand, se_ListLanguagesCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class ListLanguagesCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListParallelDataCommand, se_ListParallelDataCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class ListParallelDataCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class ListTagsForResourceCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListTerminologiesCommand, se_ListTerminologiesCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class ListTerminologiesCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListTextTranslationJobsCommand, se_ListTextTranslationJobsCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class ListTextTranslationJobsCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_StartTextTranslationJobCommand, se_StartTextTranslationJobCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class StartTextTranslationJobCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_StopTextTranslationJobCommand, se_StopTextTranslationJobCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class StopTextTranslationJobCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class TagResourceCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TranslateDocumentRequestFilterSensitiveLog, TranslateDocumentResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_TranslateDocumentCommand, se_TranslateDocumentCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class TranslateDocumentCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, TranslateDocumentCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "TranslateClient";
26
+ const commandName = "TranslateDocumentCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: TranslateDocumentRequestFilterSensitiveLog,
32
+ outputFilterSensitiveLog: TranslateDocumentResponseFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_TranslateDocumentCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_TranslateDocumentCommand(output, context);
42
+ }
43
+ }
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_TranslateTextCommand, se_TranslateTextCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class TranslateTextCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class UntagResourceCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_UpdateParallelDataCommand, se_UpdateParallelDataCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
5
6
  export class UpdateParallelDataCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -13,6 +13,7 @@ export * from "./ListTextTranslationJobsCommand";
13
13
  export * from "./StartTextTranslationJobCommand";
14
14
  export * from "./StopTextTranslationJobCommand";
15
15
  export * from "./TagResourceCommand";
16
+ export * from "./TranslateDocumentCommand";
16
17
  export * from "./TranslateTextCommand";
17
18
  export * from "./UntagResourceCommand";
18
19
  export * from "./UpdateParallelDataCommand";
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://translate-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://translate-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://translate.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://translate.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://translate-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://translate-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://translate.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://translate.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
package/dist-es/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./Translate";
2
1
  export * from "./TranslateClient";
2
+ export * from "./Translate";
3
3
  export * from "./commands";
4
- export * from "./models";
5
4
  export * from "./pagination";
5
+ export * from "./models";
6
6
  export { TranslateServiceException } from "./models/TranslateServiceException";
@@ -1,4 +1,5 @@
1
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
+ export { __ServiceException };
2
3
  export class TranslateServiceException extends __ServiceException {
3
4
  constructor(options) {
4
5
  super(options);
@@ -214,31 +214,31 @@ export class UnsupportedLanguagePairException extends __BaseException {
214
214
  this.TargetLanguageCode = opts.TargetLanguageCode;
215
215
  }
216
216
  }
217
- export class DetectedLanguageLowConfidenceException extends __BaseException {
217
+ export class ServiceUnavailableException extends __BaseException {
218
218
  constructor(opts) {
219
219
  super({
220
- name: "DetectedLanguageLowConfidenceException",
221
- $fault: "client",
220
+ name: "ServiceUnavailableException",
221
+ $fault: "server",
222
222
  ...opts,
223
223
  });
224
- this.name = "DetectedLanguageLowConfidenceException";
225
- this.$fault = "client";
226
- Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
224
+ this.name = "ServiceUnavailableException";
225
+ this.$fault = "server";
226
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
227
227
  this.Message = opts.Message;
228
- this.DetectedLanguageCode = opts.DetectedLanguageCode;
229
228
  }
230
229
  }
231
- export class ServiceUnavailableException extends __BaseException {
230
+ export class DetectedLanguageLowConfidenceException extends __BaseException {
232
231
  constructor(opts) {
233
232
  super({
234
- name: "ServiceUnavailableException",
235
- $fault: "server",
233
+ name: "DetectedLanguageLowConfidenceException",
234
+ $fault: "client",
236
235
  ...opts,
237
236
  });
238
- this.name = "ServiceUnavailableException";
239
- this.$fault = "server";
240
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
237
+ this.name = "DetectedLanguageLowConfidenceException";
238
+ this.$fault = "client";
239
+ Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
241
240
  this.Message = opts.Message;
241
+ this.DetectedLanguageCode = opts.DetectedLanguageCode;
242
242
  }
243
243
  }
244
244
  export class TextSizeLimitExceededException extends __BaseException {
@@ -262,3 +262,19 @@ export const ImportTerminologyRequestFilterSensitiveLog = (obj) => ({
262
262
  ...obj,
263
263
  ...(obj.TerminologyData && { TerminologyData: TerminologyDataFilterSensitiveLog(obj.TerminologyData) }),
264
264
  });
265
+ export const DocumentFilterSensitiveLog = (obj) => ({
266
+ ...obj,
267
+ ...(obj.Content && { Content: SENSITIVE_STRING }),
268
+ });
269
+ export const TranslateDocumentRequestFilterSensitiveLog = (obj) => ({
270
+ ...obj,
271
+ ...(obj.Document && { Document: DocumentFilterSensitiveLog(obj.Document) }),
272
+ });
273
+ export const TranslatedDocumentFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ ...(obj.Content && { Content: SENSITIVE_STRING }),
276
+ });
277
+ export const TranslateDocumentResponseFilterSensitiveLog = (obj) => ({
278
+ ...obj,
279
+ ...(obj.TranslatedDocument && { TranslatedDocument: TranslatedDocumentFilterSensitiveLog(obj.TranslatedDocument) }),
280
+ });
@@ -93,6 +93,12 @@ export const se_TagResourceCommand = async (input, context) => {
93
93
  body = JSON.stringify(_json(input));
94
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
95
  };
96
+ export const se_TranslateDocumentCommand = async (input, context) => {
97
+ const headers = sharedHeaders("TranslateDocument");
98
+ let body;
99
+ body = JSON.stringify(se_TranslateDocumentRequest(input, context));
100
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
+ };
96
102
  export const se_TranslateTextCommand = async (input, context) => {
97
103
  const headers = sharedHeaders("TranslateText");
98
104
  let body;
@@ -735,6 +741,56 @@ const de_TagResourceCommandError = async (output, context) => {
735
741
  });
736
742
  }
737
743
  };
744
+ export const de_TranslateDocumentCommand = async (output, context) => {
745
+ if (output.statusCode >= 300) {
746
+ return de_TranslateDocumentCommandError(output, context);
747
+ }
748
+ const data = await parseBody(output.body, context);
749
+ let contents = {};
750
+ contents = de_TranslateDocumentResponse(data, context);
751
+ const response = {
752
+ $metadata: deserializeMetadata(output),
753
+ ...contents,
754
+ };
755
+ return response;
756
+ };
757
+ const de_TranslateDocumentCommandError = async (output, context) => {
758
+ const parsedOutput = {
759
+ ...output,
760
+ body: await parseErrorBody(output.body, context),
761
+ };
762
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
763
+ switch (errorCode) {
764
+ case "InternalServerException":
765
+ case "com.amazonaws.translate#InternalServerException":
766
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
767
+ case "InvalidRequestException":
768
+ case "com.amazonaws.translate#InvalidRequestException":
769
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
770
+ case "LimitExceededException":
771
+ case "com.amazonaws.translate#LimitExceededException":
772
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
773
+ case "ResourceNotFoundException":
774
+ case "com.amazonaws.translate#ResourceNotFoundException":
775
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
776
+ case "ServiceUnavailableException":
777
+ case "com.amazonaws.translate#ServiceUnavailableException":
778
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
779
+ case "TooManyRequestsException":
780
+ case "com.amazonaws.translate#TooManyRequestsException":
781
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
782
+ case "UnsupportedLanguagePairException":
783
+ case "com.amazonaws.translate#UnsupportedLanguagePairException":
784
+ throw await de_UnsupportedLanguagePairExceptionRes(parsedOutput, context);
785
+ default:
786
+ const parsedBody = parsedOutput.body;
787
+ return throwDefaultError({
788
+ output,
789
+ parsedBody,
790
+ errorCode,
791
+ });
792
+ }
793
+ };
738
794
  export const de_TranslateTextCommand = async (output, context) => {
739
795
  if (output.statusCode >= 300) {
740
796
  return de_TranslateTextCommandError(output, context);
@@ -1027,6 +1083,12 @@ const se_CreateParallelDataRequest = (input, context) => {
1027
1083
  Tags: _json,
1028
1084
  });
1029
1085
  };
1086
+ const se_Document = (input, context) => {
1087
+ return take(input, {
1088
+ Content: context.base64Encoder,
1089
+ ContentType: [],
1090
+ });
1091
+ };
1030
1092
  const se_ImportTerminologyRequest = (input, context) => {
1031
1093
  return take(input, {
1032
1094
  Description: [],
@@ -1073,6 +1135,15 @@ const se_TextTranslationJobFilter = (input, context) => {
1073
1135
  SubmittedBeforeTime: (_) => Math.round(_.getTime() / 1000),
1074
1136
  });
1075
1137
  };
1138
+ const se_TranslateDocumentRequest = (input, context) => {
1139
+ return take(input, {
1140
+ Document: (_) => se_Document(_, context),
1141
+ Settings: _json,
1142
+ SourceLanguageCode: [],
1143
+ TargetLanguageCode: [],
1144
+ TerminologyNames: _json,
1145
+ });
1146
+ };
1076
1147
  const se_UpdateParallelDataRequest = (input, context) => {
1077
1148
  return take(input, {
1078
1149
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -1207,6 +1278,20 @@ const de_TextTranslationJobPropertiesList = (output, context) => {
1207
1278
  });
1208
1279
  return retVal;
1209
1280
  };
1281
+ const de_TranslatedDocument = (output, context) => {
1282
+ return take(output, {
1283
+ Content: context.base64Decoder,
1284
+ });
1285
+ };
1286
+ const de_TranslateDocumentResponse = (output, context) => {
1287
+ return take(output, {
1288
+ AppliedSettings: _json,
1289
+ AppliedTerminologies: _json,
1290
+ SourceLanguageCode: __expectString,
1291
+ TargetLanguageCode: __expectString,
1292
+ TranslatedDocument: (_) => de_TranslatedDocument(_, context),
1293
+ });
1294
+ };
1210
1295
  const de_UpdateParallelDataResponse = (output, context) => {
1211
1296
  return take(output, {
1212
1297
  LatestUpdateAttemptAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -14,6 +14,7 @@ import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutp
14
14
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "./commands/StartTextTranslationJobCommand";
15
15
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "./commands/StopTextTranslationJobCommand";
16
16
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
17
+ import { TranslateDocumentCommandInput, TranslateDocumentCommandOutput } from "./commands/TranslateDocumentCommand";
17
18
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
18
19
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
19
20
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
@@ -109,6 +110,12 @@ export interface Translate {
109
110
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
110
111
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
111
112
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link TranslateDocumentCommand}
115
+ */
116
+ translateDocument(args: TranslateDocumentCommandInput, options?: __HttpHandlerOptions): Promise<TranslateDocumentCommandOutput>;
117
+ translateDocument(args: TranslateDocumentCommandInput, cb: (err: any, data?: TranslateDocumentCommandOutput) => void): void;
118
+ translateDocument(args: TranslateDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TranslateDocumentCommandOutput) => void): void;
112
119
  /**
113
120
  * @see {@link TranslateTextCommand}
114
121
  */
@@ -23,18 +23,20 @@ import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutp
23
23
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "./commands/StartTextTranslationJobCommand";
24
24
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "./commands/StopTextTranslationJobCommand";
25
25
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
26
+ import { TranslateDocumentCommandInput, TranslateDocumentCommandOutput } from "./commands/TranslateDocumentCommand";
26
27
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
27
28
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
28
29
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
29
30
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
31
+ export { __Client };
30
32
  /**
31
33
  * @public
32
34
  */
33
- export type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListLanguagesCommandInput | ListParallelDataCommandInput | ListTagsForResourceCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TagResourceCommandInput | TranslateTextCommandInput | UntagResourceCommandInput | UpdateParallelDataCommandInput;
35
+ export type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListLanguagesCommandInput | ListParallelDataCommandInput | ListTagsForResourceCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TagResourceCommandInput | TranslateDocumentCommandInput | TranslateTextCommandInput | UntagResourceCommandInput | UpdateParallelDataCommandInput;
34
36
  /**
35
37
  * @public
36
38
  */
37
- export type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListLanguagesCommandOutput | ListParallelDataCommandOutput | ListTagsForResourceCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TagResourceCommandOutput | TranslateTextCommandOutput | UntagResourceCommandOutput | UpdateParallelDataCommandOutput;
39
+ export type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListLanguagesCommandOutput | ListParallelDataCommandOutput | ListTagsForResourceCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TagResourceCommandOutput | TranslateDocumentCommandOutput | TranslateTextCommandOutput | UntagResourceCommandOutput | UpdateParallelDataCommandOutput;
38
40
  /**
39
41
  * @public
40
42
  */
@@ -141,7 +143,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
141
143
  /**
142
144
  * @public
143
145
  */
144
- type TranslateClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
146
+ export type TranslateClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
145
147
  /**
146
148
  * @public
147
149
  *
@@ -152,7 +154,7 @@ export interface TranslateClientConfig extends TranslateClientConfigType {
152
154
  /**
153
155
  * @public
154
156
  */
155
- type TranslateClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
157
+ export type TranslateClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
156
158
  /**
157
159
  * @public
158
160
  *
@@ -177,4 +179,3 @@ export declare class TranslateClient extends __Client<__HttpHandlerOptions, Serv
177
179
  */
178
180
  destroy(): void;
179
181
  }
180
- export {};
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { CreateParallelDataRequest, CreateParallelDataResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { DeleteParallelDataRequest, DeleteParallelDataResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { DeleteTerminologyRequest } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { DescribeTextTranslationJobRequest, DescribeTextTranslationJobResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { GetParallelDataRequest, GetParallelDataResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { GetTerminologyRequest, GetTerminologyResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { ImportTerminologyRequest, ImportTerminologyResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { ListLanguagesRequest, ListLanguagesResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *