@aws-sdk/client-polly 3.975.0 → 3.980.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 +6 -3
- package/dist-es/Polly.js +5 -1
- package/dist-types/Polly.d.ts +8 -1
- package/dist-types/ts3.4/Polly.d.ts +12 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -869,6 +869,8 @@ class SynthesizeSpeechCommand extends smithyClient.Command
|
|
|
869
869
|
.build() {
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
+
const paginateListSpeechSynthesisTasks = core.createPaginator(PollyClient, ListSpeechSynthesisTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
873
|
+
|
|
872
874
|
const commands = {
|
|
873
875
|
DeleteLexiconCommand,
|
|
874
876
|
DescribeVoicesCommand,
|
|
@@ -880,11 +882,12 @@ const commands = {
|
|
|
880
882
|
StartSpeechSynthesisTaskCommand,
|
|
881
883
|
SynthesizeSpeechCommand,
|
|
882
884
|
};
|
|
885
|
+
const paginators = {
|
|
886
|
+
paginateListSpeechSynthesisTasks,
|
|
887
|
+
};
|
|
883
888
|
class Polly extends PollyClient {
|
|
884
889
|
}
|
|
885
|
-
smithyClient.createAggregatedClient(commands, Polly);
|
|
886
|
-
|
|
887
|
-
const paginateListSpeechSynthesisTasks = core.createPaginator(PollyClient, ListSpeechSynthesisTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
890
|
+
smithyClient.createAggregatedClient(commands, Polly, { paginators });
|
|
888
891
|
|
|
889
892
|
const Engine = {
|
|
890
893
|
GENERATIVE: "generative",
|
package/dist-es/Polly.js
CHANGED
|
@@ -8,6 +8,7 @@ import { ListSpeechSynthesisTasksCommand, } from "./commands/ListSpeechSynthesis
|
|
|
8
8
|
import { PutLexiconCommand } from "./commands/PutLexiconCommand";
|
|
9
9
|
import { StartSpeechSynthesisTaskCommand, } from "./commands/StartSpeechSynthesisTaskCommand";
|
|
10
10
|
import { SynthesizeSpeechCommand, } from "./commands/SynthesizeSpeechCommand";
|
|
11
|
+
import { paginateListSpeechSynthesisTasks } from "./pagination/ListSpeechSynthesisTasksPaginator";
|
|
11
12
|
import { PollyClient } from "./PollyClient";
|
|
12
13
|
const commands = {
|
|
13
14
|
DeleteLexiconCommand,
|
|
@@ -20,6 +21,9 @@ const commands = {
|
|
|
20
21
|
StartSpeechSynthesisTaskCommand,
|
|
21
22
|
SynthesizeSpeechCommand,
|
|
22
23
|
};
|
|
24
|
+
const paginators = {
|
|
25
|
+
paginateListSpeechSynthesisTasks,
|
|
26
|
+
};
|
|
23
27
|
export class Polly extends PollyClient {
|
|
24
28
|
}
|
|
25
|
-
createAggregatedClient(commands, Polly);
|
|
29
|
+
createAggregatedClient(commands, Polly, { paginators });
|
package/dist-types/Polly.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { DeleteLexiconCommandInput, DeleteLexiconCommandOutput } from "./commands/DeleteLexiconCommand";
|
|
3
3
|
import { DescribeVoicesCommandInput, DescribeVoicesCommandOutput } from "./commands/DescribeVoicesCommand";
|
|
4
4
|
import { GetLexiconCommandInput, GetLexiconCommandOutput } from "./commands/GetLexiconCommand";
|
|
@@ -67,6 +67,13 @@ export interface Polly {
|
|
|
67
67
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options?: __HttpHandlerOptions): Promise<SynthesizeSpeechCommandOutput>;
|
|
68
68
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
69
69
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* @see {@link ListSpeechSynthesisTasksCommand}
|
|
72
|
+
* @param args - command input.
|
|
73
|
+
* @param paginationConfig - optional pagination config.
|
|
74
|
+
* @returns AsyncIterable of {@link ListSpeechSynthesisTasksCommandOutput}.
|
|
75
|
+
*/
|
|
76
|
+
paginateListSpeechSynthesisTasks(args?: ListSpeechSynthesisTasksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSpeechSynthesisTasksCommandOutput>;
|
|
70
77
|
}
|
|
71
78
|
/**
|
|
72
79
|
* <p>Amazon Polly is a web service that makes it easy to synthesize speech from
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
DeleteLexiconCommandInput,
|
|
4
8
|
DeleteLexiconCommandOutput,
|
|
@@ -157,5 +161,12 @@ export interface Polly {
|
|
|
157
161
|
options: __HttpHandlerOptions,
|
|
158
162
|
cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void
|
|
159
163
|
): void;
|
|
164
|
+
paginateListSpeechSynthesisTasks(
|
|
165
|
+
args?: ListSpeechSynthesisTasksCommandInput,
|
|
166
|
+
paginationConfig?: Pick<
|
|
167
|
+
PaginationConfiguration,
|
|
168
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
169
|
+
>
|
|
170
|
+
): Paginator<ListSpeechSynthesisTasksCommandOutput>;
|
|
160
171
|
}
|
|
161
172
|
export declare class Polly extends PollyClient implements Polly {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-polly",
|
|
3
3
|
"description": "AWS SDK for JavaScript Polly Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.980.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-polly",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.5",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|