@aws-sdk/client-polly 3.533.0 → 3.540.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 (29) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +4 -2
  2. package/dist-cjs/index.js +0 -3
  3. package/dist-es/endpoint/endpointResolver.js +3 -1
  4. package/dist-es/index.js +0 -1
  5. package/dist-types/Polly.d.ts +4 -1
  6. package/dist-types/PollyClient.d.ts +1 -1
  7. package/dist-types/commands/DeleteLexiconCommand.d.ts +2 -1
  8. package/dist-types/commands/DescribeVoicesCommand.d.ts +2 -1
  9. package/dist-types/commands/GetLexiconCommand.d.ts +2 -1
  10. package/dist-types/commands/GetSpeechSynthesisTaskCommand.d.ts +2 -1
  11. package/dist-types/commands/ListLexiconsCommand.d.ts +2 -1
  12. package/dist-types/commands/ListSpeechSynthesisTasksCommand.d.ts +2 -1
  13. package/dist-types/commands/PutLexiconCommand.d.ts +2 -1
  14. package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +2 -1
  15. package/dist-types/commands/SynthesizeSpeechCommand.d.ts +2 -1
  16. package/dist-types/index.d.ts +0 -1
  17. package/dist-types/models/models_0.d.ts +105 -105
  18. package/dist-types/ts3.4/Polly.d.ts +3 -0
  19. package/dist-types/ts3.4/commands/DeleteLexiconCommand.d.ts +9 -0
  20. package/dist-types/ts3.4/commands/DescribeVoicesCommand.d.ts +9 -0
  21. package/dist-types/ts3.4/commands/GetLexiconCommand.d.ts +9 -0
  22. package/dist-types/ts3.4/commands/GetSpeechSynthesisTaskCommand.d.ts +9 -0
  23. package/dist-types/ts3.4/commands/ListLexiconsCommand.d.ts +9 -0
  24. package/dist-types/ts3.4/commands/ListSpeechSynthesisTasksCommand.d.ts +9 -0
  25. package/dist-types/ts3.4/commands/PutLexiconCommand.d.ts +9 -0
  26. package/dist-types/ts3.4/commands/StartSpeechSynthesisTaskCommand.d.ts +9 -0
  27. package/dist-types/ts3.4/commands/SynthesizeSpeechCommand.d.ts +9 -0
  28. package/dist-types/ts3.4/index.d.ts +0 -1
  29. package/package.json +41 -41
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1629,9 +1629,6 @@ var Polly = _Polly;
1629
1629
  // src/pagination/ListSpeechSynthesisTasksPaginator.ts
1630
1630
 
1631
1631
  var paginateListSpeechSynthesisTasks = (0, import_core.createPaginator)(PollyClient, ListSpeechSynthesisTasksCommand, "NextToken", "NextToken", "MaxResults");
1632
-
1633
- // src/index.ts
1634
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
1635
1632
  // Annotate the CommonJS export names for ESM import in node:
1636
1633
 
1637
1634
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -3,5 +3,4 @@ export * from "./Polly";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { PollyServiceException } from "./models/PollyServiceException";
@@ -19,6 +19,7 @@ export interface Polly {
19
19
  /**
20
20
  * @see {@link DescribeVoicesCommand}
21
21
  */
22
+ describeVoices(): Promise<DescribeVoicesCommandOutput>;
22
23
  describeVoices(args: DescribeVoicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoicesCommandOutput>;
23
24
  describeVoices(args: DescribeVoicesCommandInput, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
24
25
  describeVoices(args: DescribeVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoicesCommandOutput) => void): void;
@@ -37,12 +38,14 @@ export interface Polly {
37
38
  /**
38
39
  * @see {@link ListLexiconsCommand}
39
40
  */
41
+ listLexicons(): Promise<ListLexiconsCommandOutput>;
40
42
  listLexicons(args: ListLexiconsCommandInput, options?: __HttpHandlerOptions): Promise<ListLexiconsCommandOutput>;
41
43
  listLexicons(args: ListLexiconsCommandInput, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
42
44
  listLexicons(args: ListLexiconsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLexiconsCommandOutput) => void): void;
43
45
  /**
44
46
  * @see {@link ListSpeechSynthesisTasksCommand}
45
47
  */
48
+ listSpeechSynthesisTasks(): Promise<ListSpeechSynthesisTasksCommandOutput>;
46
49
  listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeechSynthesisTasksCommandOutput>;
47
50
  listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
48
51
  listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
@@ -66,13 +69,13 @@ export interface Polly {
66
69
  synthesizeSpeech(args: SynthesizeSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
67
70
  }
68
71
  /**
69
- * @public
70
72
  * <p>Amazon Polly is a web service that makes it easy to synthesize speech from
71
73
  * text.</p>
72
74
  * <p>The Amazon Polly service provides API operations for synthesizing
73
75
  * high-quality speech from plain text and Speech Synthesis Markup Language
74
76
  * (SSML), along with managing pronunciations lexicons that enable you to get
75
77
  * the best results for your application domain.</p>
78
+ * @public
76
79
  */
77
80
  export declare class Polly extends PollyClient implements Polly {
78
81
  }
@@ -165,13 +165,13 @@ export type PollyClientResolvedConfigType = __SmithyResolvedConfiguration<__Http
165
165
  export interface PollyClientResolvedConfig extends PollyClientResolvedConfigType {
166
166
  }
167
167
  /**
168
- * @public
169
168
  * <p>Amazon Polly is a web service that makes it easy to synthesize speech from
170
169
  * text.</p>
171
170
  * <p>The Amazon Polly service provides API operations for synthesizing
172
171
  * high-quality speech from plain text and Speech Synthesis Markup Language
173
172
  * (SSML), along with managing pronunciations lexicons that enable you to get
174
173
  * the best results for your application domain.</p>
174
+ * @public
175
175
  */
176
176
  export declare class PollyClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PollyClientResolvedConfig> {
177
177
  /**
@@ -22,10 +22,10 @@ export interface DeleteLexiconCommandOutput extends DeleteLexiconOutput, __Metad
22
22
  }
23
23
  declare const DeleteLexiconCommand_base: {
24
24
  new (input: DeleteLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteLexiconCommandInput, DeleteLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteLexiconCommandInput, DeleteLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for
30
30
  * speech synthesis, nor is it possible to retrieve it using either the
31
31
  * <code>GetLexicon</code> or <code>ListLexicon</code> APIs.</p>
@@ -64,6 +64,7 @@ declare const DeleteLexiconCommand_base: {
64
64
  * @throws {@link PollyServiceException}
65
65
  * <p>Base exception class for all service exceptions from Polly service.</p>
66
66
  *
67
+ * @public
67
68
  * @example To delete a lexicon
68
69
  * ```javascript
69
70
  * // Deletes a specified pronunciation lexicon stored in an AWS Region.
@@ -22,10 +22,10 @@ export interface DescribeVoicesCommandOutput extends DescribeVoicesOutput, __Met
22
22
  }
23
23
  declare const DescribeVoicesCommand_base: {
24
24
  new (input: DescribeVoicesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeVoicesCommandInput, DescribeVoicesCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [DescribeVoicesCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeVoicesCommandInput, DescribeVoicesCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns the list of voices that are available for use when
30
30
  * requesting speech synthesis. Each voice speaks a specified language, is
31
31
  * either male or female, and is identified by an ID, which is the ASCII
@@ -93,6 +93,7 @@ declare const DescribeVoicesCommand_base: {
93
93
  * @throws {@link PollyServiceException}
94
94
  * <p>Base exception class for all service exceptions from Polly service.</p>
95
95
  *
96
+ * @public
96
97
  * @example To describe available voices
97
98
  * ```javascript
98
99
  * // Returns the list of voices that are available for use when requesting speech synthesis. Displayed languages are those within the specified language code. If no language code is specified, voices for all available languages are displayed.
@@ -22,10 +22,10 @@ export interface GetLexiconCommandOutput extends GetLexiconOutput, __MetadataBea
22
22
  }
23
23
  declare const GetLexiconCommand_base: {
24
24
  new (input: GetLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<GetLexiconCommandInput, GetLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<GetLexiconCommandInput, GetLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns the content of the specified pronunciation lexicon stored
30
30
  * in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
31
31
  * @example
@@ -75,6 +75,7 @@ declare const GetLexiconCommand_base: {
75
75
  * @throws {@link PollyServiceException}
76
76
  * <p>Base exception class for all service exceptions from Polly service.</p>
77
77
  *
78
+ * @public
78
79
  * @example To retrieve a lexicon
79
80
  * ```javascript
80
81
  * // Returns the content of the specified pronunciation lexicon stored in an AWS Region.
@@ -22,10 +22,10 @@ export interface GetSpeechSynthesisTaskCommandOutput extends GetSpeechSynthesisT
22
22
  }
23
23
  declare const GetSpeechSynthesisTaskCommand_base: {
24
24
  new (input: GetSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Retrieves a specific SpeechSynthesisTask object based on its TaskID.
30
30
  * This object contains information about the given speech synthesis task,
31
31
  * including the status of the task, and a link to the S3 bucket containing
@@ -87,6 +87,7 @@ declare const GetSpeechSynthesisTaskCommand_base: {
87
87
  * @throws {@link PollyServiceException}
88
88
  * <p>Base exception class for all service exceptions from Polly service.</p>
89
89
  *
90
+ * @public
90
91
  */
91
92
  export declare class GetSpeechSynthesisTaskCommand extends GetSpeechSynthesisTaskCommand_base {
92
93
  }
@@ -22,10 +22,10 @@ export interface ListLexiconsCommandOutput extends ListLexiconsOutput, __Metadat
22
22
  }
23
23
  declare const ListLexiconsCommand_base: {
24
24
  new (input: ListLexiconsCommandInput): import("@smithy/smithy-client").CommandImpl<ListLexiconsCommandInput, ListLexiconsCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [ListLexiconsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListLexiconsCommandInput, ListLexiconsCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns a list of pronunciation lexicons stored in an Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -73,6 +73,7 @@ declare const ListLexiconsCommand_base: {
73
73
  * @throws {@link PollyServiceException}
74
74
  * <p>Base exception class for all service exceptions from Polly service.</p>
75
75
  *
76
+ * @public
76
77
  * @example To list all lexicons in a region
77
78
  * ```javascript
78
79
  * // Returns a list of pronunciation lexicons stored in an AWS Region.
@@ -22,10 +22,10 @@ export interface ListSpeechSynthesisTasksCommandOutput extends ListSpeechSynthes
22
22
  }
23
23
  declare const ListSpeechSynthesisTasksCommand_base: {
24
24
  new (input: ListSpeechSynthesisTasksCommandInput): import("@smithy/smithy-client").CommandImpl<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [ListSpeechSynthesisTasksCommandInput]): import("@smithy/smithy-client").CommandImpl<ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns a list of SpeechSynthesisTask objects ordered by their
30
30
  * creation date. This operation can filter the tasks by their status, for
31
31
  * example, allowing users to list only tasks that are completed.</p>
@@ -87,6 +87,7 @@ declare const ListSpeechSynthesisTasksCommand_base: {
87
87
  * @throws {@link PollyServiceException}
88
88
  * <p>Base exception class for all service exceptions from Polly service.</p>
89
89
  *
90
+ * @public
90
91
  */
91
92
  export declare class ListSpeechSynthesisTasksCommand extends ListSpeechSynthesisTasksCommand_base {
92
93
  }
@@ -22,10 +22,10 @@ export interface PutLexiconCommandOutput extends PutLexiconOutput, __MetadataBea
22
22
  }
23
23
  declare const PutLexiconCommand_base: {
24
24
  new (input: PutLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<PutLexiconCommandInput, PutLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: PutLexiconCommandInput): import("@smithy/smithy-client").CommandImpl<PutLexiconCommandInput, PutLexiconCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Stores a pronunciation lexicon in an Amazon Web Services Region. If
30
30
  * a lexicon with the same name already exists in the region, it is
31
31
  * overwritten by the new lexicon. Lexicon operations have eventual
@@ -84,6 +84,7 @@ declare const PutLexiconCommand_base: {
84
84
  * @throws {@link PollyServiceException}
85
85
  * <p>Base exception class for all service exceptions from Polly service.</p>
86
86
  *
87
+ * @public
87
88
  * @example To save a lexicon
88
89
  * ```javascript
89
90
  * // Stores a pronunciation lexicon in an AWS Region.
@@ -22,10 +22,10 @@ export interface StartSpeechSynthesisTaskCommandOutput extends StartSpeechSynthe
22
22
  }
23
23
  declare const StartSpeechSynthesisTaskCommand_base: {
24
24
  new (input: StartSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: StartSpeechSynthesisTaskCommandInput): import("@smithy/smithy-client").CommandImpl<StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Allows the creation of an asynchronous synthesis task, by starting a
30
30
  * new <code>SpeechSynthesisTask</code>. This operation requires all the
31
31
  * standard information needed for speech synthesis, plus the name of an
@@ -153,6 +153,7 @@ declare const StartSpeechSynthesisTaskCommand_base: {
153
153
  * @throws {@link PollyServiceException}
154
154
  * <p>Base exception class for all service exceptions from Polly service.</p>
155
155
  *
156
+ * @public
156
157
  */
157
158
  export declare class StartSpeechSynthesisTaskCommand extends StartSpeechSynthesisTaskCommand_base {
158
159
  }
@@ -23,10 +23,10 @@ export interface SynthesizeSpeechCommandOutput extends Omit<SynthesizeSpeechOutp
23
23
  }
24
24
  declare const SynthesizeSpeechCommand_base: {
25
25
  new (input: SynthesizeSpeechCommandInput): import("@smithy/smithy-client").CommandImpl<SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SynthesizeSpeechCommandInput): import("@smithy/smithy-client").CommandImpl<SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput, PollyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
28
  };
28
29
  /**
29
- * @public
30
30
  * <p>Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes.
31
31
  * SSML input must be valid, well-formed SSML. Some alphabets might not be
32
32
  * available with all the voices (for example, Cyrillic might not be read at
@@ -116,6 +116,7 @@ declare const SynthesizeSpeechCommand_base: {
116
116
  * @throws {@link PollyServiceException}
117
117
  * <p>Base exception class for all service exceptions from Polly service.</p>
118
118
  *
119
+ * @public
119
120
  * @example To synthesize speech
120
121
  * ```javascript
121
122
  * // Synthesizes plain text or SSML into a file of human-like speech.
@@ -16,5 +16,4 @@ export { PollyExtensionConfiguration } from "./extensionConfiguration";
16
16
  export * from "./commands";
17
17
  export * from "./pagination";
18
18
  export * from "./models";
19
- import "@aws-sdk/util-endpoints";
20
19
  export { PollyServiceException } from "./models/PollyServiceException";