@aws-sdk/client-polly 3.1012.0 → 3.1013.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 (40) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +45 -3
  3. package/dist-cjs/models/errors.js +50 -1
  4. package/dist-cjs/runtimeConfig.browser.js +5 -0
  5. package/dist-cjs/runtimeConfig.js +8 -1
  6. package/dist-cjs/runtimeConfig.native.js +4 -0
  7. package/dist-cjs/schemas/schemas_0.js +120 -2
  8. package/dist-es/Polly.js +2 -0
  9. package/dist-es/PollyClient.js +7 -3
  10. package/dist-es/commands/StartSpeechSynthesisStreamCommand.js +25 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/enums.js +13 -0
  13. package/dist-es/models/errors.js +46 -0
  14. package/dist-es/runtimeConfig.browser.js +6 -1
  15. package/dist-es/runtimeConfig.js +9 -2
  16. package/dist-es/runtimeConfig.native.js +4 -0
  17. package/dist-es/schemas/schemas_0.js +119 -1
  18. package/dist-types/Polly.d.ts +7 -0
  19. package/dist-types/PollyClient.d.ts +18 -5
  20. package/dist-types/commands/StartSpeechSynthesisStreamCommand.d.ts +147 -0
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/enums.d.ts +37 -0
  23. package/dist-types/models/errors.d.ts +63 -0
  24. package/dist-types/models/models_0.d.ts +336 -3
  25. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  26. package/dist-types/runtimeConfig.d.ts +3 -1
  27. package/dist-types/runtimeConfig.native.d.ts +2 -0
  28. package/dist-types/schemas/schemas_0.d.ts +16 -1
  29. package/dist-types/ts3.4/Polly.d.ts +17 -0
  30. package/dist-types/ts3.4/PollyClient.d.ts +22 -0
  31. package/dist-types/ts3.4/commands/StartSpeechSynthesisStreamCommand.d.ts +51 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/enums.d.ts +17 -0
  34. package/dist-types/ts3.4/models/errors.d.ts +28 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +153 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  40. package/package.json +10 -5
@@ -1,3 +1,7 @@
1
+ import {
2
+ EventStreamInputConfig,
3
+ EventStreamResolvedConfig,
4
+ } from "@aws-sdk/middleware-eventstream";
1
5
  import {
2
6
  HostHeaderInputConfig,
3
7
  HostHeaderResolvedConfig,
@@ -6,10 +10,15 @@ import {
6
10
  UserAgentInputConfig,
7
11
  UserAgentResolvedConfig,
8
12
  } from "@aws-sdk/middleware-user-agent";
13
+ import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
9
14
  import {
10
15
  RegionInputConfig,
11
16
  RegionResolvedConfig,
12
17
  } from "@smithy/config-resolver";
18
+ import {
19
+ EventStreamSerdeInputConfig,
20
+ EventStreamSerdeResolvedConfig,
21
+ } from "@smithy/eventstream-serde-config-resolver";
13
22
  import {
14
23
  EndpointInputConfig,
15
24
  EndpointResolvedConfig,
@@ -31,6 +40,7 @@ import {
31
40
  ChecksumConstructor as __ChecksumConstructor,
32
41
  Decoder as __Decoder,
33
42
  Encoder as __Encoder,
43
+ EventStreamSerdeProvider as __EventStreamSerdeProvider,
34
44
  HashConstructor as __HashConstructor,
35
45
  HttpHandlerOptions as __HttpHandlerOptions,
36
46
  Logger as __Logger,
@@ -74,6 +84,10 @@ import {
74
84
  PutLexiconCommandInput,
75
85
  PutLexiconCommandOutput,
76
86
  } from "./commands/PutLexiconCommand";
87
+ import {
88
+ StartSpeechSynthesisStreamCommandInput,
89
+ StartSpeechSynthesisStreamCommandOutput,
90
+ } from "./commands/StartSpeechSynthesisStreamCommand";
77
91
  import {
78
92
  StartSpeechSynthesisTaskCommandInput,
79
93
  StartSpeechSynthesisTaskCommandOutput,
@@ -97,6 +111,7 @@ export type ServiceInputTypes =
97
111
  | ListLexiconsCommandInput
98
112
  | ListSpeechSynthesisTasksCommandInput
99
113
  | PutLexiconCommandInput
114
+ | StartSpeechSynthesisStreamCommandInput
100
115
  | StartSpeechSynthesisTaskCommandInput
101
116
  | SynthesizeSpeechCommandInput;
102
117
  export type ServiceOutputTypes =
@@ -107,6 +122,7 @@ export type ServiceOutputTypes =
107
122
  | ListLexiconsCommandOutput
108
123
  | ListSpeechSynthesisTasksCommandOutput
109
124
  | PutLexiconCommandOutput
125
+ | StartSpeechSynthesisStreamCommandOutput
110
126
  | StartSpeechSynthesisTaskCommandOutput
111
127
  | SynthesizeSpeechCommandOutput;
112
128
  export interface ClientDefaults
@@ -133,7 +149,9 @@ export interface ClientDefaults
133
149
  retryMode?: string | __Provider<string>;
134
150
  logger?: __Logger;
135
151
  extensions?: RuntimeExtension[];
152
+ eventStreamSerdeProvider?: __EventStreamSerdeProvider;
136
153
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
154
+ eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
137
155
  sdkStreamMixin?: __SdkStreamMixinInjector;
138
156
  }
139
157
  export type PollyClientConfigType = Partial<
@@ -145,7 +163,9 @@ export type PollyClientConfigType = Partial<
145
163
  RegionInputConfig &
146
164
  HostHeaderInputConfig &
147
165
  EndpointInputConfig<EndpointParameters> &
166
+ EventStreamSerdeInputConfig &
148
167
  HttpAuthSchemeInputConfig &
168
+ EventStreamInputConfig &
149
169
  ClientInputEndpointParameters;
150
170
  export interface PollyClientConfig extends PollyClientConfigType {}
151
171
  export type PollyClientResolvedConfigType =
@@ -157,7 +177,9 @@ export type PollyClientResolvedConfigType =
157
177
  RegionResolvedConfig &
158
178
  HostHeaderResolvedConfig &
159
179
  EndpointResolvedConfig<EndpointParameters> &
180
+ EventStreamSerdeResolvedConfig &
160
181
  HttpAuthSchemeResolvedConfig &
182
+ EventStreamResolvedConfig &
161
183
  ClientResolvedEndpointParameters;
162
184
  export interface PollyClientResolvedConfig
163
185
  extends PollyClientResolvedConfigType {}
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ StartSpeechSynthesisStreamInput,
5
+ StartSpeechSynthesisStreamOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ PollyClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../PollyClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface StartSpeechSynthesisStreamCommandInput
15
+ extends StartSpeechSynthesisStreamInput {}
16
+ export interface StartSpeechSynthesisStreamCommandOutput
17
+ extends StartSpeechSynthesisStreamOutput,
18
+ __MetadataBearer {}
19
+ declare const StartSpeechSynthesisStreamCommand_base: {
20
+ new (
21
+ input: StartSpeechSynthesisStreamCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ StartSpeechSynthesisStreamCommandInput,
24
+ StartSpeechSynthesisStreamCommandOutput,
25
+ PollyClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: StartSpeechSynthesisStreamCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ StartSpeechSynthesisStreamCommandInput,
33
+ StartSpeechSynthesisStreamCommandOutput,
34
+ PollyClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class StartSpeechSynthesisStreamCommand extends StartSpeechSynthesisStreamCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: StartSpeechSynthesisStreamInput;
44
+ output: StartSpeechSynthesisStreamOutput;
45
+ };
46
+ sdk: {
47
+ input: StartSpeechSynthesisStreamCommandInput;
48
+ output: StartSpeechSynthesisStreamCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -5,5 +5,6 @@ export * from "./GetSpeechSynthesisTaskCommand";
5
5
  export * from "./ListLexiconsCommand";
6
6
  export * from "./ListSpeechSynthesisTasksCommand";
7
7
  export * from "./PutLexiconCommand";
8
+ export * from "./StartSpeechSynthesisStreamCommand";
8
9
  export * from "./StartSpeechSynthesisTaskCommand";
9
10
  export * from "./SynthesizeSpeechCommand";
@@ -192,3 +192,20 @@ export declare const TextType: {
192
192
  readonly TEXT: "text";
193
193
  };
194
194
  export type TextType = (typeof TextType)[keyof typeof TextType];
195
+ export declare const QuotaCode: {
196
+ readonly INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout";
197
+ readonly INPUT_STREAM_TIMEOUT: "input-stream-timeout";
198
+ };
199
+ export type QuotaCode = (typeof QuotaCode)[keyof typeof QuotaCode];
200
+ export declare const ServiceCode: {
201
+ readonly POLLY: "polly";
202
+ };
203
+ export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode];
204
+ export declare const ValidationExceptionReason: {
205
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
206
+ readonly INVALID_INBOUND_EVENT: "invalidInboundEvent";
207
+ readonly OTHER: "other";
208
+ readonly UNSUPPORTED_OPERATION: "unsupportedOperation";
209
+ };
210
+ export type ValidationExceptionReason =
211
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -1,4 +1,6 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { QuotaCode, ServiceCode, ValidationExceptionReason } from "./enums";
3
+ import { ThrottlingReason, ValidationExceptionField } from "./models_0";
2
4
  import { PollyServiceException as __BaseException } from "./PollyServiceException";
3
5
  export declare class LexiconNotFoundException extends __BaseException {
4
6
  readonly name: "LexiconNotFoundException";
@@ -148,6 +150,32 @@ export declare class UnsupportedPlsLanguageException extends __BaseException {
148
150
  >
149
151
  );
150
152
  }
153
+ export declare class ServiceQuotaExceededException extends __BaseException {
154
+ readonly name: "ServiceQuotaExceededException";
155
+ readonly $fault: "client";
156
+ quotaCode: QuotaCode | undefined;
157
+ serviceCode: ServiceCode | undefined;
158
+ constructor(
159
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
160
+ );
161
+ }
162
+ export declare class ThrottlingException extends __BaseException {
163
+ readonly name: "ThrottlingException";
164
+ readonly $fault: "client";
165
+ throttlingReasons?: ThrottlingReason[] | undefined;
166
+ constructor(
167
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
168
+ );
169
+ }
170
+ export declare class ValidationException extends __BaseException {
171
+ readonly name: "ValidationException";
172
+ readonly $fault: "client";
173
+ reason: ValidationExceptionReason | undefined;
174
+ fields?: ValidationExceptionField[] | undefined;
175
+ constructor(
176
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
177
+ );
178
+ }
151
179
  export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
152
180
  readonly name: "SsmlMarksNotSupportedForTextTypeException";
153
181
  readonly $fault: "client";
@@ -9,6 +9,16 @@ import {
9
9
  TextType,
10
10
  VoiceId,
11
11
  } from "./enums";
12
+ import {
13
+ ServiceFailureException,
14
+ ServiceQuotaExceededException,
15
+ ThrottlingException,
16
+ ValidationException,
17
+ } from "./errors";
18
+ export interface AudioEvent {
19
+ AudioChunk?: Uint8Array | undefined;
20
+ }
21
+ export interface CloseStreamEvent {}
12
22
  export interface DeleteLexiconInput {
13
23
  Name: string | undefined;
14
24
  }
@@ -32,6 +42,9 @@ export interface DescribeVoicesOutput {
32
42
  Voices?: Voice[] | undefined;
33
43
  NextToken?: string | undefined;
34
44
  }
45
+ export interface FlushStreamConfiguration {
46
+ Force?: boolean | undefined;
47
+ }
35
48
  export interface GetLexiconInput {
36
49
  Name: string | undefined;
37
50
  }
@@ -99,6 +112,146 @@ export interface PutLexiconInput {
99
112
  Content: string | undefined;
100
113
  }
101
114
  export interface PutLexiconOutput {}
115
+ export interface TextEvent {
116
+ Text: string | undefined;
117
+ TextType?: TextType | undefined;
118
+ FlushStreamConfiguration?: FlushStreamConfiguration | undefined;
119
+ }
120
+ export type StartSpeechSynthesisStreamActionStream =
121
+ | StartSpeechSynthesisStreamActionStream.CloseStreamEventMember
122
+ | StartSpeechSynthesisStreamActionStream.TextEventMember
123
+ | StartSpeechSynthesisStreamActionStream.$UnknownMember;
124
+ export declare namespace StartSpeechSynthesisStreamActionStream {
125
+ interface TextEventMember {
126
+ TextEvent: TextEvent;
127
+ CloseStreamEvent?: never;
128
+ $unknown?: never;
129
+ }
130
+ interface CloseStreamEventMember {
131
+ TextEvent?: never;
132
+ CloseStreamEvent: CloseStreamEvent;
133
+ $unknown?: never;
134
+ }
135
+ interface $UnknownMember {
136
+ TextEvent?: never;
137
+ CloseStreamEvent?: never;
138
+ $unknown: [string, any];
139
+ }
140
+ interface Visitor<T> {
141
+ TextEvent: (value: TextEvent) => T;
142
+ CloseStreamEvent: (value: CloseStreamEvent) => T;
143
+ _: (name: string, value: any) => T;
144
+ }
145
+ }
146
+ export interface StartSpeechSynthesisStreamInput {
147
+ Engine: Engine | undefined;
148
+ LanguageCode?: LanguageCode | undefined;
149
+ LexiconNames?: string[] | undefined;
150
+ OutputFormat: OutputFormat | undefined;
151
+ SampleRate?: string | undefined;
152
+ VoiceId: VoiceId | undefined;
153
+ ActionStream?:
154
+ | AsyncIterable<StartSpeechSynthesisStreamActionStream>
155
+ | undefined;
156
+ }
157
+ export interface StreamClosedEvent {
158
+ RequestCharacters?: number | undefined;
159
+ }
160
+ export interface ThrottlingReason {
161
+ reason?: string | undefined;
162
+ resource?: string | undefined;
163
+ }
164
+ export interface ValidationExceptionField {
165
+ name: string | undefined;
166
+ message: string | undefined;
167
+ }
168
+ export type StartSpeechSynthesisStreamEventStream =
169
+ | StartSpeechSynthesisStreamEventStream.AudioEventMember
170
+ | StartSpeechSynthesisStreamEventStream.ServiceFailureExceptionMember
171
+ | StartSpeechSynthesisStreamEventStream.ServiceQuotaExceededExceptionMember
172
+ | StartSpeechSynthesisStreamEventStream.StreamClosedEventMember
173
+ | StartSpeechSynthesisStreamEventStream.ThrottlingExceptionMember
174
+ | StartSpeechSynthesisStreamEventStream.ValidationExceptionMember
175
+ | StartSpeechSynthesisStreamEventStream.$UnknownMember;
176
+ export declare namespace StartSpeechSynthesisStreamEventStream {
177
+ interface AudioEventMember {
178
+ AudioEvent: AudioEvent;
179
+ StreamClosedEvent?: never;
180
+ ValidationException?: never;
181
+ ServiceQuotaExceededException?: never;
182
+ ServiceFailureException?: never;
183
+ ThrottlingException?: never;
184
+ $unknown?: never;
185
+ }
186
+ interface StreamClosedEventMember {
187
+ AudioEvent?: never;
188
+ StreamClosedEvent: StreamClosedEvent;
189
+ ValidationException?: never;
190
+ ServiceQuotaExceededException?: never;
191
+ ServiceFailureException?: never;
192
+ ThrottlingException?: never;
193
+ $unknown?: never;
194
+ }
195
+ interface ValidationExceptionMember {
196
+ AudioEvent?: never;
197
+ StreamClosedEvent?: never;
198
+ ValidationException: ValidationException;
199
+ ServiceQuotaExceededException?: never;
200
+ ServiceFailureException?: never;
201
+ ThrottlingException?: never;
202
+ $unknown?: never;
203
+ }
204
+ interface ServiceQuotaExceededExceptionMember {
205
+ AudioEvent?: never;
206
+ StreamClosedEvent?: never;
207
+ ValidationException?: never;
208
+ ServiceQuotaExceededException: ServiceQuotaExceededException;
209
+ ServiceFailureException?: never;
210
+ ThrottlingException?: never;
211
+ $unknown?: never;
212
+ }
213
+ interface ServiceFailureExceptionMember {
214
+ AudioEvent?: never;
215
+ StreamClosedEvent?: never;
216
+ ValidationException?: never;
217
+ ServiceQuotaExceededException?: never;
218
+ ServiceFailureException: ServiceFailureException;
219
+ ThrottlingException?: never;
220
+ $unknown?: never;
221
+ }
222
+ interface ThrottlingExceptionMember {
223
+ AudioEvent?: never;
224
+ StreamClosedEvent?: never;
225
+ ValidationException?: never;
226
+ ServiceQuotaExceededException?: never;
227
+ ServiceFailureException?: never;
228
+ ThrottlingException: ThrottlingException;
229
+ $unknown?: never;
230
+ }
231
+ interface $UnknownMember {
232
+ AudioEvent?: never;
233
+ StreamClosedEvent?: never;
234
+ ValidationException?: never;
235
+ ServiceQuotaExceededException?: never;
236
+ ServiceFailureException?: never;
237
+ ThrottlingException?: never;
238
+ $unknown: [string, any];
239
+ }
240
+ interface Visitor<T> {
241
+ AudioEvent: (value: AudioEvent) => T;
242
+ StreamClosedEvent: (value: StreamClosedEvent) => T;
243
+ ValidationException: (value: ValidationException) => T;
244
+ ServiceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
245
+ ServiceFailureException: (value: ServiceFailureException) => T;
246
+ ThrottlingException: (value: ThrottlingException) => T;
247
+ _: (name: string, value: any) => T;
248
+ }
249
+ }
250
+ export interface StartSpeechSynthesisStreamOutput {
251
+ EventStream?:
252
+ | AsyncIterable<StartSpeechSynthesisStreamEventStream>
253
+ | undefined;
254
+ }
102
255
  export interface StartSpeechSynthesisTaskInput {
103
256
  Engine?: Engine | undefined;
104
257
  LanguageCode?: LanguageCode | undefined;
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
14
14
  defaultUserAgentProvider: (
15
15
  config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
16
16
  ) => Promise<import("@smithy/types").UserAgent>;
17
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
18
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
17
19
  maxAttempts: number | import("@smithy/types").Provider<number>;
18
20
  region: string | import("@smithy/types").Provider<any>;
19
21
  requestHandler:
@@ -1,4 +1,4 @@
1
- import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
1
+ import { NodeHttp2Handler as RequestHandler } from "@smithy/node-http-handler";
2
2
  import { PollyClientConfig } from "./PollyClient";
3
3
  export declare const getRuntimeConfig: (config: PollyClientConfig) => {
4
4
  runtime: string;
@@ -15,6 +15,8 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
15
15
  defaultUserAgentProvider: (
16
16
  config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved
17
17
  ) => Promise<import("@smithy/types").UserAgent>;
18
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
19
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
18
20
  maxAttempts: number | import("@smithy/types").Provider<number>;
19
21
  region: string | import("@smithy/types").Provider<string>;
20
22
  requestHandler:
@@ -1,6 +1,7 @@
1
1
  import { PollyClientConfig } from "./PollyClient";
2
2
  export declare const getRuntimeConfig: (config: PollyClientConfig) => {
3
3
  runtime: string;
4
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
4
5
  sha256: import("@smithy/types").HashConstructor;
5
6
  requestHandler:
6
7
  | import("@smithy/types").NodeHttpHandlerOptions
@@ -45,6 +46,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
45
46
  retryMode: string | import("@smithy/types").Provider<string>;
46
47
  logger: import("@smithy/types").Logger;
47
48
  extensions: import("./runtimeExtensions").RuntimeExtension[];
49
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
48
50
  defaultsMode:
49
51
  | import("@smithy/smithy-client").DefaultsMode
50
52
  | import("@smithy/types").Provider<
@@ -3,6 +3,7 @@ import {
3
3
  StaticErrorSchema,
4
4
  StaticOperationSchema,
5
5
  StaticStructureSchema,
6
+ StaticUnionSchema,
6
7
  } from "@smithy/types";
7
8
  export declare var PollyServiceException$: StaticErrorSchema;
8
9
  export declare var EngineNotSupportedException$: StaticErrorSchema;
@@ -21,16 +22,22 @@ export declare var MarksNotSupportedForFormatException$: StaticErrorSchema;
21
22
  export declare var MaxLexemeLengthExceededException$: StaticErrorSchema;
22
23
  export declare var MaxLexiconsNumberExceededException$: StaticErrorSchema;
23
24
  export declare var ServiceFailureException$: StaticErrorSchema;
25
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
24
26
  export declare var SsmlMarksNotSupportedForTextTypeException$: StaticErrorSchema;
25
27
  export declare var SynthesisTaskNotFoundException$: StaticErrorSchema;
26
28
  export declare var TextLengthExceededException$: StaticErrorSchema;
29
+ export declare var ThrottlingException$: StaticErrorSchema;
27
30
  export declare var UnsupportedPlsAlphabetException$: StaticErrorSchema;
28
31
  export declare var UnsupportedPlsLanguageException$: StaticErrorSchema;
32
+ export declare var ValidationException$: StaticErrorSchema;
29
33
  export declare const errorTypeRegistries: TypeRegistry[];
34
+ export declare var AudioEvent$: StaticStructureSchema;
35
+ export declare var CloseStreamEvent$: StaticStructureSchema;
30
36
  export declare var DeleteLexiconInput$: StaticStructureSchema;
31
37
  export declare var DeleteLexiconOutput$: StaticStructureSchema;
32
38
  export declare var DescribeVoicesInput$: StaticStructureSchema;
33
39
  export declare var DescribeVoicesOutput$: StaticStructureSchema;
40
+ export declare var FlushStreamConfiguration$: StaticStructureSchema;
34
41
  export declare var GetLexiconInput$: StaticStructureSchema;
35
42
  export declare var GetLexiconOutput$: StaticStructureSchema;
36
43
  export declare var GetSpeechSynthesisTaskInput$: StaticStructureSchema;
@@ -44,12 +51,20 @@ export declare var ListSpeechSynthesisTasksInput$: StaticStructureSchema;
44
51
  export declare var ListSpeechSynthesisTasksOutput$: StaticStructureSchema;
45
52
  export declare var PutLexiconInput$: StaticStructureSchema;
46
53
  export declare var PutLexiconOutput$: StaticStructureSchema;
54
+ export declare var StartSpeechSynthesisStreamInput$: StaticStructureSchema;
55
+ export declare var StartSpeechSynthesisStreamOutput$: StaticStructureSchema;
47
56
  export declare var StartSpeechSynthesisTaskInput$: StaticStructureSchema;
48
57
  export declare var StartSpeechSynthesisTaskOutput$: StaticStructureSchema;
58
+ export declare var StreamClosedEvent$: StaticStructureSchema;
49
59
  export declare var SynthesisTask$: StaticStructureSchema;
50
60
  export declare var SynthesizeSpeechInput$: StaticStructureSchema;
51
61
  export declare var SynthesizeSpeechOutput$: StaticStructureSchema;
62
+ export declare var TextEvent$: StaticStructureSchema;
63
+ export declare var ThrottlingReason$: StaticStructureSchema;
64
+ export declare var ValidationExceptionField$: StaticStructureSchema;
52
65
  export declare var Voice$: StaticStructureSchema;
66
+ export declare var StartSpeechSynthesisStreamActionStream$: StaticUnionSchema;
67
+ export declare var StartSpeechSynthesisStreamEventStream$: StaticUnionSchema;
53
68
  export declare var DeleteLexicon$: StaticOperationSchema;
54
69
  export declare var DescribeVoices$: StaticOperationSchema;
55
70
  export declare var GetLexicon$: StaticOperationSchema;
@@ -57,5 +72,6 @@ export declare var GetSpeechSynthesisTask$: StaticOperationSchema;
57
72
  export declare var ListLexicons$: StaticOperationSchema;
58
73
  export declare var ListSpeechSynthesisTasks$: StaticOperationSchema;
59
74
  export declare var PutLexicon$: StaticOperationSchema;
75
+ export declare var StartSpeechSynthesisStream$: StaticOperationSchema;
60
76
  export declare var StartSpeechSynthesisTask$: StaticOperationSchema;
61
77
  export declare var SynthesizeSpeech$: StaticOperationSchema;
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.1012.0",
4
+ "version": "3.1013.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,19 +21,24 @@
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.21",
25
- "@aws-sdk/credential-provider-node": "^3.972.22",
24
+ "@aws-sdk/core": "^3.973.22",
25
+ "@aws-sdk/credential-provider-node": "^3.972.23",
26
+ "@aws-sdk/eventstream-handler-node": "^3.972.11",
27
+ "@aws-sdk/middleware-eventstream": "^3.972.8",
26
28
  "@aws-sdk/middleware-host-header": "^3.972.8",
27
29
  "@aws-sdk/middleware-logger": "^3.972.8",
28
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.8",
29
- "@aws-sdk/middleware-user-agent": "^3.972.22",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.23",
30
32
  "@aws-sdk/region-config-resolver": "^3.972.8",
31
33
  "@aws-sdk/types": "^3.973.6",
32
34
  "@aws-sdk/util-endpoints": "^3.996.5",
33
35
  "@aws-sdk/util-user-agent-browser": "^3.972.8",
34
- "@aws-sdk/util-user-agent-node": "^3.973.8",
36
+ "@aws-sdk/util-user-agent-node": "^3.973.9",
35
37
  "@smithy/config-resolver": "^4.4.11",
36
38
  "@smithy/core": "^3.23.12",
39
+ "@smithy/eventstream-serde-browser": "^4.2.12",
40
+ "@smithy/eventstream-serde-config-resolver": "^4.3.12",
41
+ "@smithy/eventstream-serde-node": "^4.2.12",
37
42
  "@smithy/fetch-http-handler": "^5.3.15",
38
43
  "@smithy/hash-node": "^4.2.12",
39
44
  "@smithy/invalid-dependency": "^4.2.12",