@aws-sdk/client-translate 3.952.0 → 3.954.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 (39) hide show
  1. package/dist-cjs/index.js +346 -237
  2. package/dist-cjs/runtimeConfig.shared.js +6 -6
  3. package/dist-es/commands/CreateParallelDataCommand.js +2 -2
  4. package/dist-es/commands/DeleteParallelDataCommand.js +2 -2
  5. package/dist-es/commands/DeleteTerminologyCommand.js +2 -2
  6. package/dist-es/commands/DescribeTextTranslationJobCommand.js +2 -2
  7. package/dist-es/commands/GetParallelDataCommand.js +2 -2
  8. package/dist-es/commands/GetTerminologyCommand.js +2 -2
  9. package/dist-es/commands/ImportTerminologyCommand.js +2 -2
  10. package/dist-es/commands/ListLanguagesCommand.js +2 -2
  11. package/dist-es/commands/ListParallelDataCommand.js +2 -2
  12. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  13. package/dist-es/commands/ListTerminologiesCommand.js +2 -2
  14. package/dist-es/commands/ListTextTranslationJobsCommand.js +2 -2
  15. package/dist-es/commands/StartTextTranslationJobCommand.js +2 -2
  16. package/dist-es/commands/StopTextTranslationJobCommand.js +2 -2
  17. package/dist-es/commands/TagResourceCommand.js +2 -2
  18. package/dist-es/commands/TranslateDocumentCommand.js +2 -2
  19. package/dist-es/commands/TranslateTextCommand.js +2 -2
  20. package/dist-es/commands/UntagResourceCommand.js +2 -2
  21. package/dist-es/commands/UpdateParallelDataCommand.js +2 -2
  22. package/dist-es/index.js +1 -0
  23. package/dist-es/runtimeConfig.shared.js +6 -6
  24. package/dist-es/schemas/schemas_0.js +202 -184
  25. package/dist-types/TranslateClient.d.ts +1 -10
  26. package/dist-types/index.d.ts +1 -0
  27. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  28. package/dist-types/runtimeConfig.d.ts +6 -2
  29. package/dist-types/runtimeConfig.native.d.ts +6 -2
  30. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  31. package/dist-types/schemas/schemas_0.d.ts +92 -107
  32. package/dist-types/ts3.4/TranslateClient.d.ts +0 -4
  33. package/dist-types/ts3.4/index.d.ts +1 -0
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  37. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  38. package/dist-types/ts3.4/schemas/schemas_0.d.ts +91 -108
  39. package/package.json +34 -34
@@ -26,12 +26,12 @@ const getRuntimeConfig = (config) => {
26
26
  },
27
27
  ],
28
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
- }),
29
+ protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "com.amazonaws.translate",
32
+ version: "2017-07-01",
33
+ serviceTarget: "AWSShineFrontendService_20170701",
34
+ },
35
35
  serviceId: config?.serviceId ?? "Translate",
36
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
37
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { CreateParallelData } from "../schemas/schemas_0";
4
+ import { CreateParallelData$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class CreateParallelDataCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class CreateParallelDataCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "CreateParallelData", {})
13
13
  .n("TranslateClient", "CreateParallelDataCommand")
14
- .sc(CreateParallelData)
14
+ .sc(CreateParallelData$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DeleteParallelData } from "../schemas/schemas_0";
4
+ import { DeleteParallelData$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DeleteParallelDataCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DeleteParallelDataCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "DeleteParallelData", {})
13
13
  .n("TranslateClient", "DeleteParallelDataCommand")
14
- .sc(DeleteParallelData)
14
+ .sc(DeleteParallelData$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DeleteTerminology } from "../schemas/schemas_0";
4
+ import { DeleteTerminology$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DeleteTerminologyCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DeleteTerminologyCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "DeleteTerminology", {})
13
13
  .n("TranslateClient", "DeleteTerminologyCommand")
14
- .sc(DeleteTerminology)
14
+ .sc(DeleteTerminology$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DescribeTextTranslationJob } from "../schemas/schemas_0";
4
+ import { DescribeTextTranslationJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DescribeTextTranslationJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DescribeTextTranslationJobCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "DescribeTextTranslationJob", {})
13
13
  .n("TranslateClient", "DescribeTextTranslationJobCommand")
14
- .sc(DescribeTextTranslationJob)
14
+ .sc(DescribeTextTranslationJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetParallelData } from "../schemas/schemas_0";
4
+ import { GetParallelData$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetParallelDataCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetParallelDataCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "GetParallelData", {})
13
13
  .n("TranslateClient", "GetParallelDataCommand")
14
- .sc(GetParallelData)
14
+ .sc(GetParallelData$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetTerminology } from "../schemas/schemas_0";
4
+ import { GetTerminology$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetTerminologyCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetTerminologyCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "GetTerminology", {})
13
13
  .n("TranslateClient", "GetTerminologyCommand")
14
- .sc(GetTerminology)
14
+ .sc(GetTerminology$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ImportTerminology } from "../schemas/schemas_0";
4
+ import { ImportTerminology$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ImportTerminologyCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ImportTerminologyCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "ImportTerminology", {})
13
13
  .n("TranslateClient", "ImportTerminologyCommand")
14
- .sc(ImportTerminology)
14
+ .sc(ImportTerminology$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListLanguages } from "../schemas/schemas_0";
4
+ import { ListLanguages$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListLanguagesCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListLanguagesCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "ListLanguages", {})
13
13
  .n("TranslateClient", "ListLanguagesCommand")
14
- .sc(ListLanguages)
14
+ .sc(ListLanguages$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListParallelData } from "../schemas/schemas_0";
4
+ import { ListParallelData$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListParallelDataCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListParallelDataCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "ListParallelData", {})
13
13
  .n("TranslateClient", "ListParallelDataCommand")
14
- .sc(ListParallelData)
14
+ .sc(ListParallelData$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListTagsForResource } from "../schemas/schemas_0";
4
+ import { ListTagsForResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListTagsForResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListTagsForResourceCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "ListTagsForResource", {})
13
13
  .n("TranslateClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource)
14
+ .sc(ListTagsForResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListTerminologies } from "../schemas/schemas_0";
4
+ import { ListTerminologies$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListTerminologiesCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListTerminologiesCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "ListTerminologies", {})
13
13
  .n("TranslateClient", "ListTerminologiesCommand")
14
- .sc(ListTerminologies)
14
+ .sc(ListTerminologies$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListTextTranslationJobs } from "../schemas/schemas_0";
4
+ import { ListTextTranslationJobs$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListTextTranslationJobsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListTextTranslationJobsCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "ListTextTranslationJobs", {})
13
13
  .n("TranslateClient", "ListTextTranslationJobsCommand")
14
- .sc(ListTextTranslationJobs)
14
+ .sc(ListTextTranslationJobs$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StartTextTranslationJob } from "../schemas/schemas_0";
4
+ import { StartTextTranslationJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StartTextTranslationJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StartTextTranslationJobCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "StartTextTranslationJob", {})
13
13
  .n("TranslateClient", "StartTextTranslationJobCommand")
14
- .sc(StartTextTranslationJob)
14
+ .sc(StartTextTranslationJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { StopTextTranslationJob } from "../schemas/schemas_0";
4
+ import { StopTextTranslationJob$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class StopTextTranslationJobCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class StopTextTranslationJobCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "StopTextTranslationJob", {})
13
13
  .n("TranslateClient", "StopTextTranslationJobCommand")
14
- .sc(StopTextTranslationJob)
14
+ .sc(StopTextTranslationJob$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { TagResource } from "../schemas/schemas_0";
4
+ import { TagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class TagResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class TagResourceCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "TagResource", {})
13
13
  .n("TranslateClient", "TagResourceCommand")
14
- .sc(TagResource)
14
+ .sc(TagResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { TranslateDocument } from "../schemas/schemas_0";
4
+ import { TranslateDocument$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class TranslateDocumentCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class TranslateDocumentCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "TranslateDocument", {})
13
13
  .n("TranslateClient", "TranslateDocumentCommand")
14
- .sc(TranslateDocument)
14
+ .sc(TranslateDocument$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { TranslateText } from "../schemas/schemas_0";
4
+ import { TranslateText$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class TranslateTextCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class TranslateTextCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "TranslateText", {})
13
13
  .n("TranslateClient", "TranslateTextCommand")
14
- .sc(TranslateText)
14
+ .sc(TranslateText$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UntagResource } from "../schemas/schemas_0";
4
+ import { UntagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UntagResourceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UntagResourceCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "UntagResource", {})
13
13
  .n("TranslateClient", "UntagResourceCommand")
14
- .sc(UntagResource)
14
+ .sc(UntagResource$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UpdateParallelData } from "../schemas/schemas_0";
4
+ import { UpdateParallelData$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UpdateParallelDataCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UpdateParallelDataCommand extends $Command
11
11
  })
12
12
  .s("AWSShineFrontendService_20170701", "UpdateParallelData", {})
13
13
  .n("TranslateClient", "UpdateParallelDataCommand")
14
- .sc(UpdateParallelData)
14
+ .sc(UpdateParallelData$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./TranslateClient";
2
2
  export * from "./Translate";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./pagination";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
@@ -23,12 +23,12 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
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
- }),
26
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.translate",
29
+ version: "2017-07-01",
30
+ serviceTarget: "AWSShineFrontendService_20170701",
31
+ },
32
32
  serviceId: config?.serviceId ?? "Translate",
33
33
  urlParser: config?.urlParser ?? parseUrl,
34
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,