@aws-sdk/client-polly 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +722 -811
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/PollyClient.js +2 -0
- package/dist-es/commands/DeleteLexiconCommand.js +3 -9
- package/dist-es/commands/DescribeVoicesCommand.js +3 -9
- package/dist-es/commands/GetLexiconCommand.js +3 -10
- package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +3 -9
- package/dist-es/commands/ListLexiconsCommand.js +3 -9
- package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +3 -9
- package/dist-es/commands/PutLexiconCommand.js +3 -10
- package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +3 -9
- package/dist-es/commands/SynthesizeSpeechCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -16
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +649 -0
- package/dist-types/PollyClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +65 -0
- package/dist-types/ts3.4/PollyClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -10
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +71 -0
- package/package.json +34 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -672
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -83
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -116
|
@@ -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");
|
|
@@ -26,6 +27,7 @@ const getRuntimeConfig = (config) => {
|
|
|
26
27
|
},
|
|
27
28
|
],
|
|
28
29
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
30
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.polly" }),
|
|
29
31
|
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
|
|
30
32
|
serviceId: config?.serviceId ?? "Polly",
|
|
31
33
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
package/dist-es/PollyClient.js
CHANGED
|
@@ -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 PollyClient 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 {
|
|
4
|
+
import { DeleteLexicon } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DeleteLexiconCommand 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("Parrot_v1", "DeleteLexicon", {})
|
|
17
13
|
.n("PollyClient", "DeleteLexiconCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DeleteLexiconCommand)
|
|
20
|
-
.de(de_DeleteLexiconCommand)
|
|
14
|
+
.sc(DeleteLexicon)
|
|
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 {
|
|
4
|
+
import { DescribeVoices } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DescribeVoicesCommand 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("Parrot_v1", "DescribeVoices", {})
|
|
17
13
|
.n("PollyClient", "DescribeVoicesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DescribeVoicesCommand)
|
|
20
|
-
.de(de_DescribeVoicesCommand)
|
|
14
|
+
.sc(DescribeVoices)
|
|
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 {
|
|
6
|
-
import { de_GetLexiconCommand, se_GetLexiconCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { GetLexicon } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class GetLexiconCommand 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("Parrot_v1", "GetLexicon", {})
|
|
18
13
|
.n("PollyClient", "GetLexiconCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_GetLexiconCommand)
|
|
21
|
-
.de(de_GetLexiconCommand)
|
|
14
|
+
.sc(GetLexicon)
|
|
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 {
|
|
4
|
+
import { GetSpeechSynthesisTask } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetSpeechSynthesisTaskCommand 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("Parrot_v1", "GetSpeechSynthesisTask", {})
|
|
17
13
|
.n("PollyClient", "GetSpeechSynthesisTaskCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetSpeechSynthesisTaskCommand)
|
|
20
|
-
.de(de_GetSpeechSynthesisTaskCommand)
|
|
14
|
+
.sc(GetSpeechSynthesisTask)
|
|
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 {
|
|
4
|
+
import { ListLexicons } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListLexiconsCommand 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("Parrot_v1", "ListLexicons", {})
|
|
17
13
|
.n("PollyClient", "ListLexiconsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListLexiconsCommand)
|
|
20
|
-
.de(de_ListLexiconsCommand)
|
|
14
|
+
.sc(ListLexicons)
|
|
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 {
|
|
4
|
+
import { ListSpeechSynthesisTasks } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListSpeechSynthesisTasksCommand 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("Parrot_v1", "ListSpeechSynthesisTasks", {})
|
|
17
13
|
.n("PollyClient", "ListSpeechSynthesisTasksCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListSpeechSynthesisTasksCommand)
|
|
20
|
-
.de(de_ListSpeechSynthesisTasksCommand)
|
|
14
|
+
.sc(ListSpeechSynthesisTasks)
|
|
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 {
|
|
6
|
-
import { de_PutLexiconCommand, se_PutLexiconCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { PutLexicon } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class PutLexiconCommand 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("Parrot_v1", "PutLexicon", {})
|
|
18
13
|
.n("PollyClient", "PutLexiconCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_PutLexiconCommand)
|
|
21
|
-
.de(de_PutLexiconCommand)
|
|
14
|
+
.sc(PutLexicon)
|
|
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 {
|
|
4
|
+
import { StartSpeechSynthesisTask } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartSpeechSynthesisTaskCommand 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("Parrot_v1", "StartSpeechSynthesisTask", {})
|
|
17
13
|
.n("PollyClient", "StartSpeechSynthesisTaskCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartSpeechSynthesisTaskCommand)
|
|
20
|
-
.de(de_StartSpeechSynthesisTaskCommand)
|
|
14
|
+
.sc(StartSpeechSynthesisTask)
|
|
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 {
|
|
6
|
-
import { de_SynthesizeSpeechCommand, se_SynthesizeSpeechCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { SynthesizeSpeech } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class SynthesizeSpeechCommand 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("Parrot_v1", "SynthesizeSpeech", {})
|
|
18
13
|
.n("PollyClient", "SynthesizeSpeechCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_SynthesizeSpeechCommand)
|
|
21
|
-
.de(de_SynthesizeSpeechCommand)
|
|
14
|
+
.sc(SynthesizeSpeech)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { PollyServiceException as __BaseException } from "./PollyServiceException";
|
|
3
2
|
export class LexiconNotFoundException extends __BaseException {
|
|
4
3
|
name = "LexiconNotFoundException";
|
|
@@ -431,18 +430,3 @@ export class TextLengthExceededException extends __BaseException {
|
|
|
431
430
|
Object.setPrototypeOf(this, TextLengthExceededException.prototype);
|
|
432
431
|
}
|
|
433
432
|
}
|
|
434
|
-
export const LexiconFilterSensitiveLog = (obj) => ({
|
|
435
|
-
...obj,
|
|
436
|
-
...(obj.Content && { Content: SENSITIVE_STRING }),
|
|
437
|
-
});
|
|
438
|
-
export const GetLexiconOutputFilterSensitiveLog = (obj) => ({
|
|
439
|
-
...obj,
|
|
440
|
-
...(obj.Lexicon && { Lexicon: LexiconFilterSensitiveLog(obj.Lexicon) }),
|
|
441
|
-
});
|
|
442
|
-
export const PutLexiconInputFilterSensitiveLog = (obj) => ({
|
|
443
|
-
...obj,
|
|
444
|
-
...(obj.Content && { Content: SENSITIVE_STRING }),
|
|
445
|
-
});
|
|
446
|
-
export const SynthesizeSpeechOutputFilterSensitiveLog = (obj) => ({
|
|
447
|
-
...obj,
|
|
448
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } 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";
|
|
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
24
|
},
|
|
24
25
|
],
|
|
25
26
|
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.polly" }),
|
|
26
28
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
27
29
|
serviceId: config?.serviceId ?? "Polly",
|
|
28
30
|
urlParser: config?.urlParser ?? parseUrl,
|