@aws-sdk/client-polly 3.1172.0 → 3.1174.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 (47) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +384 -137
  3. package/dist-es/Polly.js +11 -1
  4. package/dist-es/commands/CreateVoiceCommand.js +4 -0
  5. package/dist-es/commands/DeleteVoiceCommand.js +4 -0
  6. package/dist-es/commands/GetVoiceCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/index.js +1 -0
  9. package/dist-es/models/enums.js +49 -21
  10. package/dist-es/models/errors.js +129 -97
  11. package/dist-es/schemas/schemas_0.js +125 -17
  12. package/dist-es/waiters/index.js +1 -0
  13. package/dist-es/waiters/waitForVoiceActive.js +40 -0
  14. package/dist-types/Polly.d.ts +29 -1
  15. package/dist-types/PollyClient.d.ts +5 -2
  16. package/dist-types/commands/CreateVoiceCommand.d.ts +174 -0
  17. package/dist-types/commands/DeleteVoiceCommand.d.ts +99 -0
  18. package/dist-types/commands/DescribeVoicesCommand.d.ts +45 -9
  19. package/dist-types/commands/GetVoiceCommand.d.ts +129 -0
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  21. package/dist-types/commands/StartSpeechSynthesisStreamCommand.d.ts +26 -2
  22. package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +31 -10
  23. package/dist-types/commands/SynthesizeSpeechCommand.d.ts +24 -0
  24. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  25. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  26. package/dist-types/commands/index.d.ts +3 -0
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/models/enums.d.ts +101 -41
  29. package/dist-types/models/errors.d.ts +183 -126
  30. package/dist-types/models/models_0.d.ts +369 -77
  31. package/dist-types/schemas/schemas_0.d.ts +15 -0
  32. package/dist-types/ts3.4/Polly.d.ts +47 -0
  33. package/dist-types/ts3.4/PollyClient.d.ts +9 -0
  34. package/dist-types/ts3.4/commands/CreateVoiceCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/DeleteVoiceCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/GetVoiceCommand.d.ts +38 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  38. package/dist-types/ts3.4/index.d.ts +1 -0
  39. package/dist-types/ts3.4/models/enums.d.ts +60 -27
  40. package/dist-types/ts3.4/models/errors.d.ts +61 -46
  41. package/dist-types/ts3.4/models/models_0.d.ts +64 -16
  42. package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
  43. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  44. package/dist-types/ts3.4/waiters/waitForVoiceActive.d.ts +12 -0
  45. package/dist-types/waiters/index.d.ts +1 -0
  46. package/dist-types/waiters/waitForVoiceActive.d.ts +15 -0
  47. package/package.json +1 -1
@@ -6,6 +6,8 @@ import {
6
6
  StaticUnionSchema,
7
7
  } from "@smithy/types";
8
8
  export declare var PollyServiceException$: StaticErrorSchema;
9
+ export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var ConflictException$: StaticErrorSchema;
9
11
  export declare var EngineNotSupportedException$: StaticErrorSchema;
10
12
  export declare var InvalidLexiconException$: StaticErrorSchema;
11
13
  export declare var InvalidNextTokenException$: StaticErrorSchema;
@@ -36,8 +38,13 @@ export declare var ValidationException$: StaticErrorSchema;
36
38
  export declare const errorTypeRegistries: TypeRegistry[];
37
39
  export declare var AudioEvent$: StaticStructureSchema;
38
40
  export declare var CloseStreamEvent$: StaticStructureSchema;
41
+ export declare var CreateVoiceInput$: StaticStructureSchema;
42
+ export declare var CreateVoiceOutput$: StaticStructureSchema;
43
+ export declare var CustomerManagedEncryption$: StaticStructureSchema;
39
44
  export declare var DeleteLexiconInput$: StaticStructureSchema;
40
45
  export declare var DeleteLexiconOutput$: StaticStructureSchema;
46
+ export declare var DeleteVoiceInput$: StaticStructureSchema;
47
+ export declare var DeleteVoiceOutput$: StaticStructureSchema;
41
48
  export declare var DescribeVoicesInput$: StaticStructureSchema;
42
49
  export declare var DescribeVoicesOutput$: StaticStructureSchema;
43
50
  export declare var FlushStreamConfiguration$: StaticStructureSchema;
@@ -45,6 +52,8 @@ export declare var GetLexiconInput$: StaticStructureSchema;
45
52
  export declare var GetLexiconOutput$: StaticStructureSchema;
46
53
  export declare var GetSpeechSynthesisTaskInput$: StaticStructureSchema;
47
54
  export declare var GetSpeechSynthesisTaskOutput$: StaticStructureSchema;
55
+ export declare var GetVoiceInput$: StaticStructureSchema;
56
+ export declare var GetVoiceOutput$: StaticStructureSchema;
48
57
  export declare var Lexicon$: StaticStructureSchema;
49
58
  export declare var LexiconAttributes$: StaticStructureSchema;
50
59
  export declare var LexiconDescription$: StaticStructureSchema;
@@ -56,6 +65,8 @@ export declare var ListTagsForResourceInput$: StaticStructureSchema;
56
65
  export declare var ListTagsForResourceOutput$: StaticStructureSchema;
57
66
  export declare var PutLexiconInput$: StaticStructureSchema;
58
67
  export declare var PutLexiconOutput$: StaticStructureSchema;
68
+ export declare var Recording$: StaticStructureSchema;
69
+ export declare var RecordingData$: StaticStructureSchema;
59
70
  export declare var StartSpeechSynthesisStreamInput$: StaticStructureSchema;
60
71
  export declare var StartSpeechSynthesisStreamOutput$: StaticStructureSchema;
61
72
  export declare var StartSpeechSynthesisTaskInput$: StaticStructureSchema;
@@ -72,12 +83,16 @@ export declare var UntagResourceInput$: StaticStructureSchema;
72
83
  export declare var UntagResourceOutput$: StaticStructureSchema;
73
84
  export declare var ValidationExceptionField$: StaticStructureSchema;
74
85
  export declare var Voice$: StaticStructureSchema;
86
+ export declare var VoiceCreationData$: StaticStructureSchema;
75
87
  export declare var StartSpeechSynthesisStreamActionStream$: StaticUnionSchema;
76
88
  export declare var StartSpeechSynthesisStreamEventStream$: StaticUnionSchema;
89
+ export declare var CreateVoice$: StaticOperationSchema;
77
90
  export declare var DeleteLexicon$: StaticOperationSchema;
91
+ export declare var DeleteVoice$: StaticOperationSchema;
78
92
  export declare var DescribeVoices$: StaticOperationSchema;
79
93
  export declare var GetLexicon$: StaticOperationSchema;
80
94
  export declare var GetSpeechSynthesisTask$: StaticOperationSchema;
95
+ export declare var GetVoice$: StaticOperationSchema;
81
96
  export declare var ListLexicons$: StaticOperationSchema;
82
97
  export declare var ListSpeechSynthesisTasks$: StaticOperationSchema;
83
98
  export declare var ListTagsForResource$: StaticOperationSchema;
@@ -0,0 +1 @@
1
+ export * from "./waitForVoiceActive";
@@ -0,0 +1,12 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/core/client";
2
+ import { GetVoiceCommandInput, GetVoiceCommandOutput } from "../commands/GetVoiceCommand";
3
+ import { PollyServiceException } from "../models/PollyServiceException";
4
+ import { PollyClient } from "../PollyClient";
5
+ export declare const waitForVoiceActive: (
6
+ params: WaiterConfiguration<PollyClient>,
7
+ input: GetVoiceCommandInput,
8
+ ) => Promise<WaiterResult<GetVoiceCommandOutput | PollyServiceException>>;
9
+ export declare const waitUntilVoiceActive: (
10
+ params: WaiterConfiguration<PollyClient>,
11
+ input: GetVoiceCommandInput,
12
+ ) => Promise<WaiterResult<GetVoiceCommandOutput>>;
@@ -0,0 +1 @@
1
+ export * from "./waitForVoiceActive";
@@ -0,0 +1,15 @@
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
2
+ import { type GetVoiceCommandInput, type GetVoiceCommandOutput } from "../commands/GetVoiceCommand";
3
+ import type { PollyServiceException } from "../models/PollyServiceException";
4
+ import type { PollyClient } from "../PollyClient";
5
+ /**
6
+ * Wait until a custom voice is active and can be used for speech synthesis.
7
+ * @deprecated Use waitUntilVoiceActive instead. waitForVoiceActive does not throw error in non-success cases.
8
+ */
9
+ export declare const waitForVoiceActive: (params: WaiterConfiguration<PollyClient>, input: GetVoiceCommandInput) => Promise<WaiterResult<GetVoiceCommandOutput | PollyServiceException>>;
10
+ /**
11
+ * Wait until a custom voice is active and can be used for speech synthesis.
12
+ * @param params - Waiter configuration options.
13
+ * @param input - The input to GetVoiceCommand for polling.
14
+ */
15
+ export declare const waitUntilVoiceActive: (params: WaiterConfiguration<PollyClient>, input: GetVoiceCommandInput) => Promise<WaiterResult<GetVoiceCommandOutput>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-polly",
3
- "version": "3.1172.0",
3
+ "version": "3.1174.0",
4
4
  "description": "AWS SDK for JavaScript Polly Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-polly",
6
6
  "license": "Apache-2.0",