@aws-sdk/client-polly 3.1074.0 → 3.1076.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 CHANGED
@@ -1,23 +1,60 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
4
3
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
5
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
6
5
  exports.$Command = Command;
7
6
  exports.__Client = Client;
8
- const { resolveRegionConfig } = require("@smithy/core/config");
9
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
10
- const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
11
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
12
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
13
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
14
- const { resolveHttpAuthSchemeConfig, defaultPollyHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
15
- const { getRuntimeConfig } = require("./runtimeConfig");
16
- const { DeleteLexicon$, DescribeVoices$, GetLexicon$, GetSpeechSynthesisTask$, ListLexicons$, ListSpeechSynthesisTasks$, PutLexicon$, StartSpeechSynthesisStream$, StartSpeechSynthesisTask$, SynthesizeSpeech$ } = require("./schemas/schemas_0");
17
- __exportStar(require("./schemas/schemas_0"), exports);
18
- __exportStar(require("./models/errors"), exports);
19
- const { PollyServiceException } = require("./models/PollyServiceException");
20
- exports.PollyServiceException = PollyServiceException;
7
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
10
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
11
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
12
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
13
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
14
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
15
+ const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
16
+ const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
17
+ const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
18
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
19
+
20
+ const defaultPollyHttpAuthSchemeParametersProvider = async (config, context, input) => {
21
+ return {
22
+ operation: getSmithyContext(context).operation,
23
+ region: await normalizeProvider(config.region)() || (() => {
24
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
25
+ })(),
26
+ };
27
+ };
28
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
29
+ return {
30
+ schemeId: "aws.auth#sigv4",
31
+ signingProperties: {
32
+ name: "polly",
33
+ region: authParameters.region,
34
+ },
35
+ propertiesExtractor: (config, context) => ({
36
+ signingProperties: {
37
+ config,
38
+ context,
39
+ },
40
+ }),
41
+ };
42
+ }
43
+ const defaultPollyHttpAuthSchemeProvider = (authParameters) => {
44
+ const options = [];
45
+ switch (authParameters.operation) {
46
+ default: {
47
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
48
+ }
49
+ }
50
+ return options;
51
+ };
52
+ const resolveHttpAuthSchemeConfig = (config) => {
53
+ const config_0 = resolveAwsSdkSigV4Config(config);
54
+ return Object.assign(config_0, {
55
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
56
+ });
57
+ };
21
58
 
22
59
  const resolveClientEndpointParameters = (options) => {
23
60
  return Object.assign(options, {
@@ -33,6 +70,962 @@ const commonParams = {
33
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
34
71
  };
35
72
 
73
+ var version = "3.1075.0";
74
+ var packageInfo = {
75
+ version: version};
76
+
77
+ const k = "ref";
78
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
79
+ const _data = {
80
+ conditions: [
81
+ [c, [g]],
82
+ [c, j],
83
+ ["aws.partition", j, d],
84
+ [e, [{ [k]: "UseFIPS" }, b]],
85
+ [e, [{ [k]: "UseDualStack" }, b]],
86
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
87
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
88
+ ],
89
+ results: [
90
+ [a],
91
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
92
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
93
+ [g, i],
94
+ ["https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
95
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
96
+ ["https://polly-fips.{Region}.{PartitionResult#dnsSuffix}", i],
97
+ [a, "FIPS is enabled but this partition does not support FIPS"],
98
+ ["https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
99
+ [a, "DualStack is enabled but this partition does not support DualStack"],
100
+ ["https://polly.{Region}.{PartitionResult#dnsSuffix}", i],
101
+ [a, "Invalid Configuration: Missing Region"]
102
+ ]
103
+ };
104
+ const root = 2;
105
+ const r = 100_000_000;
106
+ const nodes = new Int32Array([
107
+ -1, 1, -1,
108
+ 0, 12, 3,
109
+ 1, 4, r + 11,
110
+ 2, 5, r + 11,
111
+ 3, 8, 6,
112
+ 4, 7, r + 10,
113
+ 5, r + 8, r + 9,
114
+ 4, 10, 9,
115
+ 6, r + 6, r + 7,
116
+ 5, 11, r + 5,
117
+ 6, r + 4, r + 5,
118
+ 3, r + 1, 13,
119
+ 4, r + 2, r + 3,
120
+ ]);
121
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
122
+
123
+ const cache = new EndpointCache({
124
+ size: 50,
125
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
126
+ });
127
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
128
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
129
+ endpointParams: endpointParams,
130
+ logger: context.logger,
131
+ }));
132
+ };
133
+ customEndpointFunctions.aws = awsEndpointFunctions;
134
+
135
+ class PollyServiceException extends ServiceException {
136
+ constructor(options) {
137
+ super(options);
138
+ Object.setPrototypeOf(this, PollyServiceException.prototype);
139
+ }
140
+ }
141
+
142
+ class LexiconNotFoundException extends PollyServiceException {
143
+ name = "LexiconNotFoundException";
144
+ $fault = "client";
145
+ constructor(opts) {
146
+ super({
147
+ name: "LexiconNotFoundException",
148
+ $fault: "client",
149
+ ...opts,
150
+ });
151
+ Object.setPrototypeOf(this, LexiconNotFoundException.prototype);
152
+ }
153
+ }
154
+ class ServiceFailureException extends PollyServiceException {
155
+ name = "ServiceFailureException";
156
+ $fault = "server";
157
+ constructor(opts) {
158
+ super({
159
+ name: "ServiceFailureException",
160
+ $fault: "server",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ServiceFailureException.prototype);
164
+ }
165
+ }
166
+ class InvalidNextTokenException extends PollyServiceException {
167
+ name = "InvalidNextTokenException";
168
+ $fault = "client";
169
+ constructor(opts) {
170
+ super({
171
+ name: "InvalidNextTokenException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
176
+ }
177
+ }
178
+ class EngineNotSupportedException extends PollyServiceException {
179
+ name = "EngineNotSupportedException";
180
+ $fault = "client";
181
+ constructor(opts) {
182
+ super({
183
+ name: "EngineNotSupportedException",
184
+ $fault: "client",
185
+ ...opts,
186
+ });
187
+ Object.setPrototypeOf(this, EngineNotSupportedException.prototype);
188
+ }
189
+ }
190
+ class InvalidTaskIdException extends PollyServiceException {
191
+ name = "InvalidTaskIdException";
192
+ $fault = "client";
193
+ constructor(opts) {
194
+ super({
195
+ name: "InvalidTaskIdException",
196
+ $fault: "client",
197
+ ...opts,
198
+ });
199
+ Object.setPrototypeOf(this, InvalidTaskIdException.prototype);
200
+ }
201
+ }
202
+ class SynthesisTaskNotFoundException extends PollyServiceException {
203
+ name = "SynthesisTaskNotFoundException";
204
+ $fault = "client";
205
+ constructor(opts) {
206
+ super({
207
+ name: "SynthesisTaskNotFoundException",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, SynthesisTaskNotFoundException.prototype);
212
+ }
213
+ }
214
+ class InvalidLexiconException extends PollyServiceException {
215
+ name = "InvalidLexiconException";
216
+ $fault = "client";
217
+ constructor(opts) {
218
+ super({
219
+ name: "InvalidLexiconException",
220
+ $fault: "client",
221
+ ...opts,
222
+ });
223
+ Object.setPrototypeOf(this, InvalidLexiconException.prototype);
224
+ }
225
+ }
226
+ class InvalidS3BucketException extends PollyServiceException {
227
+ name = "InvalidS3BucketException";
228
+ $fault = "client";
229
+ constructor(opts) {
230
+ super({
231
+ name: "InvalidS3BucketException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, InvalidS3BucketException.prototype);
236
+ }
237
+ }
238
+ class InvalidS3KeyException extends PollyServiceException {
239
+ name = "InvalidS3KeyException";
240
+ $fault = "client";
241
+ constructor(opts) {
242
+ super({
243
+ name: "InvalidS3KeyException",
244
+ $fault: "client",
245
+ ...opts,
246
+ });
247
+ Object.setPrototypeOf(this, InvalidS3KeyException.prototype);
248
+ }
249
+ }
250
+ class InvalidSampleRateException extends PollyServiceException {
251
+ name = "InvalidSampleRateException";
252
+ $fault = "client";
253
+ constructor(opts) {
254
+ super({
255
+ name: "InvalidSampleRateException",
256
+ $fault: "client",
257
+ ...opts,
258
+ });
259
+ Object.setPrototypeOf(this, InvalidSampleRateException.prototype);
260
+ }
261
+ }
262
+ class InvalidSnsTopicArnException extends PollyServiceException {
263
+ name = "InvalidSnsTopicArnException";
264
+ $fault = "client";
265
+ constructor(opts) {
266
+ super({
267
+ name: "InvalidSnsTopicArnException",
268
+ $fault: "client",
269
+ ...opts,
270
+ });
271
+ Object.setPrototypeOf(this, InvalidSnsTopicArnException.prototype);
272
+ }
273
+ }
274
+ class InvalidSsmlException extends PollyServiceException {
275
+ name = "InvalidSsmlException";
276
+ $fault = "client";
277
+ constructor(opts) {
278
+ super({
279
+ name: "InvalidSsmlException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, InvalidSsmlException.prototype);
284
+ }
285
+ }
286
+ class LanguageNotSupportedException extends PollyServiceException {
287
+ name = "LanguageNotSupportedException";
288
+ $fault = "client";
289
+ constructor(opts) {
290
+ super({
291
+ name: "LanguageNotSupportedException",
292
+ $fault: "client",
293
+ ...opts,
294
+ });
295
+ Object.setPrototypeOf(this, LanguageNotSupportedException.prototype);
296
+ }
297
+ }
298
+ class LexiconSizeExceededException extends PollyServiceException {
299
+ name = "LexiconSizeExceededException";
300
+ $fault = "client";
301
+ constructor(opts) {
302
+ super({
303
+ name: "LexiconSizeExceededException",
304
+ $fault: "client",
305
+ ...opts,
306
+ });
307
+ Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
308
+ }
309
+ }
310
+ class MarksNotSupportedForFormatException extends PollyServiceException {
311
+ name = "MarksNotSupportedForFormatException";
312
+ $fault = "client";
313
+ constructor(opts) {
314
+ super({
315
+ name: "MarksNotSupportedForFormatException",
316
+ $fault: "client",
317
+ ...opts,
318
+ });
319
+ Object.setPrototypeOf(this, MarksNotSupportedForFormatException.prototype);
320
+ }
321
+ }
322
+ class MaxLexemeLengthExceededException extends PollyServiceException {
323
+ name = "MaxLexemeLengthExceededException";
324
+ $fault = "client";
325
+ constructor(opts) {
326
+ super({
327
+ name: "MaxLexemeLengthExceededException",
328
+ $fault: "client",
329
+ ...opts,
330
+ });
331
+ Object.setPrototypeOf(this, MaxLexemeLengthExceededException.prototype);
332
+ }
333
+ }
334
+ class MaxLexiconsNumberExceededException extends PollyServiceException {
335
+ name = "MaxLexiconsNumberExceededException";
336
+ $fault = "client";
337
+ constructor(opts) {
338
+ super({
339
+ name: "MaxLexiconsNumberExceededException",
340
+ $fault: "client",
341
+ ...opts,
342
+ });
343
+ Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
344
+ }
345
+ }
346
+ class UnsupportedPlsAlphabetException extends PollyServiceException {
347
+ name = "UnsupportedPlsAlphabetException";
348
+ $fault = "client";
349
+ constructor(opts) {
350
+ super({
351
+ name: "UnsupportedPlsAlphabetException",
352
+ $fault: "client",
353
+ ...opts,
354
+ });
355
+ Object.setPrototypeOf(this, UnsupportedPlsAlphabetException.prototype);
356
+ }
357
+ }
358
+ class UnsupportedPlsLanguageException extends PollyServiceException {
359
+ name = "UnsupportedPlsLanguageException";
360
+ $fault = "client";
361
+ constructor(opts) {
362
+ super({
363
+ name: "UnsupportedPlsLanguageException",
364
+ $fault: "client",
365
+ ...opts,
366
+ });
367
+ Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);
368
+ }
369
+ }
370
+ class ServiceQuotaExceededException extends PollyServiceException {
371
+ name = "ServiceQuotaExceededException";
372
+ $fault = "client";
373
+ quotaCode;
374
+ serviceCode;
375
+ constructor(opts) {
376
+ super({
377
+ name: "ServiceQuotaExceededException",
378
+ $fault: "client",
379
+ ...opts,
380
+ });
381
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
382
+ this.quotaCode = opts.quotaCode;
383
+ this.serviceCode = opts.serviceCode;
384
+ }
385
+ }
386
+ class ThrottlingException extends PollyServiceException {
387
+ name = "ThrottlingException";
388
+ $fault = "client";
389
+ throttlingReasons;
390
+ constructor(opts) {
391
+ super({
392
+ name: "ThrottlingException",
393
+ $fault: "client",
394
+ ...opts,
395
+ });
396
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
397
+ this.throttlingReasons = opts.throttlingReasons;
398
+ }
399
+ }
400
+ class ValidationException extends PollyServiceException {
401
+ name = "ValidationException";
402
+ $fault = "client";
403
+ reason;
404
+ fields;
405
+ constructor(opts) {
406
+ super({
407
+ name: "ValidationException",
408
+ $fault: "client",
409
+ ...opts,
410
+ });
411
+ Object.setPrototypeOf(this, ValidationException.prototype);
412
+ this.reason = opts.reason;
413
+ this.fields = opts.fields;
414
+ }
415
+ }
416
+ class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
417
+ name = "SsmlMarksNotSupportedForTextTypeException";
418
+ $fault = "client";
419
+ constructor(opts) {
420
+ super({
421
+ name: "SsmlMarksNotSupportedForTextTypeException",
422
+ $fault: "client",
423
+ ...opts,
424
+ });
425
+ Object.setPrototypeOf(this, SsmlMarksNotSupportedForTextTypeException.prototype);
426
+ }
427
+ }
428
+ class TextLengthExceededException extends PollyServiceException {
429
+ name = "TextLengthExceededException";
430
+ $fault = "client";
431
+ constructor(opts) {
432
+ super({
433
+ name: "TextLengthExceededException",
434
+ $fault: "client",
435
+ ...opts,
436
+ });
437
+ Object.setPrototypeOf(this, TextLengthExceededException.prototype);
438
+ }
439
+ }
440
+
441
+ const _A = "Alphabet";
442
+ const _AC = "AudioChunk";
443
+ const _AE = "AudioEvent";
444
+ const _ALC = "AdditionalLanguageCodes";
445
+ const _AS = "AudioStream";
446
+ const _ASc = "ActionStream";
447
+ const _At = "Attributes";
448
+ const _C = "Content";
449
+ const _CSE = "CloseStreamEvent";
450
+ const _CT = "CreationTime";
451
+ const _CT_ = "Content-Type";
452
+ const _CTo = "ContentType";
453
+ const _DL = "DeleteLexicon";
454
+ const _DLI = "DeleteLexiconInput";
455
+ const _DLO = "DeleteLexiconOutput";
456
+ const _DV = "DescribeVoices";
457
+ const _DVI = "DescribeVoicesInput";
458
+ const _DVO = "DescribeVoicesOutput";
459
+ const _E = "Engine";
460
+ const _ENSE = "EngineNotSupportedException";
461
+ const _ES = "EventStream";
462
+ const _F = "Force";
463
+ const _FSC = "FlushStreamConfiguration";
464
+ const _G = "Gender";
465
+ const _GL = "GetLexicon";
466
+ const _GLI = "GetLexiconInput";
467
+ const _GLO = "GetLexiconOutput";
468
+ const _GSST = "GetSpeechSynthesisTask";
469
+ const _GSSTI = "GetSpeechSynthesisTaskInput";
470
+ const _GSSTO = "GetSpeechSynthesisTaskOutput";
471
+ const _I = "Id";
472
+ const _IALC = "IncludeAdditionalLanguageCodes";
473
+ const _ILE = "InvalidLexiconException";
474
+ const _INTE = "InvalidNextTokenException";
475
+ const _ISBE = "InvalidS3BucketException";
476
+ const _ISE = "InvalidSsmlException";
477
+ const _ISKE = "InvalidS3KeyException";
478
+ const _ISRE = "InvalidSampleRateException";
479
+ const _ISTAE = "InvalidSnsTopicArnException";
480
+ const _ITIE = "InvalidTaskIdException";
481
+ const _L = "Lexicon";
482
+ const _LA = "LexiconAttributes";
483
+ const _LAe = "LexiconArn";
484
+ const _LC = "LexiconContent";
485
+ const _LCa = "LanguageCode";
486
+ const _LCe = "LexemesCount";
487
+ const _LD = "LexiconDescription";
488
+ const _LDL = "LexiconDescriptionList";
489
+ const _LL = "ListLexicons";
490
+ const _LLI = "ListLexiconsInput";
491
+ const _LLO = "ListLexiconsOutput";
492
+ const _LM = "LastModified";
493
+ const _LN = "LexiconNames";
494
+ const _LNFE = "LexiconNotFoundException";
495
+ const _LNSE = "LanguageNotSupportedException";
496
+ const _LNa = "LanguageName";
497
+ const _LSEE = "LexiconSizeExceededException";
498
+ const _LSST = "ListSpeechSynthesisTasks";
499
+ const _LSSTI = "ListSpeechSynthesisTasksInput";
500
+ const _LSSTO = "ListSpeechSynthesisTasksOutput";
501
+ const _Le = "Lexicons";
502
+ const _MLLEE = "MaxLexemeLengthExceededException";
503
+ const _MLNEE = "MaxLexiconsNumberExceededException";
504
+ const _MNSFFE = "MarksNotSupportedForFormatException";
505
+ const _MR = "MaxResults";
506
+ const _N = "Name";
507
+ const _NT = "NextToken";
508
+ const _OF = "OutputFormat";
509
+ const _OSBN = "OutputS3BucketName";
510
+ const _OSKP = "OutputS3KeyPrefix";
511
+ const _OU = "OutputUri";
512
+ const _PL = "PutLexicon";
513
+ const _PLI = "PutLexiconInput";
514
+ const _PLO = "PutLexiconOutput";
515
+ const _RC = "RequestCharacters";
516
+ const _S = "Size";
517
+ const _SCE = "StreamClosedEvent";
518
+ const _SE = "SupportedEngines";
519
+ const _SFE = "ServiceFailureException";
520
+ const _SMNSFTTE = "SsmlMarksNotSupportedForTextTypeException";
521
+ const _SMT = "SpeechMarkTypes";
522
+ const _SQEE = "ServiceQuotaExceededException";
523
+ const _SR = "SampleRate";
524
+ const _SS = "SynthesizeSpeech";
525
+ const _SSI = "SynthesizeSpeechInput";
526
+ const _SSO = "SynthesizeSpeechOutput";
527
+ const _SSSS = "StartSpeechSynthesisStream";
528
+ const _SSSSAS = "StartSpeechSynthesisStreamActionStream";
529
+ const _SSSSES = "StartSpeechSynthesisStreamEventStream";
530
+ const _SSSSI = "StartSpeechSynthesisStreamInput";
531
+ const _SSSSO = "StartSpeechSynthesisStreamOutput";
532
+ const _SSST = "StartSpeechSynthesisTask";
533
+ const _SSSTI = "StartSpeechSynthesisTaskInput";
534
+ const _SSSTO = "StartSpeechSynthesisTaskOutput";
535
+ const _ST = "SynthesisTask";
536
+ const _STA = "SnsTopicArn";
537
+ const _STNFE = "SynthesisTaskNotFoundException";
538
+ const _STy = "SynthesisTasks";
539
+ const _St = "Status";
540
+ const _T = "Text";
541
+ const _TE = "ThrottlingException";
542
+ const _TEe = "TextEvent";
543
+ const _TI = "TaskId";
544
+ const _TLEE = "TextLengthExceededException";
545
+ const _TR = "ThrottlingReason";
546
+ const _TRL = "ThrottlingReasonList";
547
+ const _TS = "TaskStatus";
548
+ const _TSR = "TaskStatusReason";
549
+ const _TT = "TextType";
550
+ const _UPAE = "UnsupportedPlsAlphabetException";
551
+ const _UPLE = "UnsupportedPlsLanguageException";
552
+ const _V = "Voices";
553
+ const _VE = "ValidationException";
554
+ const _VEF = "ValidationExceptionField";
555
+ const _VEFL = "ValidationExceptionFieldList";
556
+ const _VI = "VoiceId";
557
+ const _VL = "VoiceList";
558
+ const _Vo = "Voice";
559
+ const _aQE = "awsQueryError";
560
+ const _c = "client";
561
+ const _e = "error";
562
+ const _eP = "eventPayload";
563
+ const _f = "fields";
564
+ const _h = "http";
565
+ const _hE = "httpError";
566
+ const _hH = "httpHeader";
567
+ const _hQ = "httpQuery";
568
+ const _m = "message";
569
+ const _n = "name";
570
+ const _qC = "quotaCode";
571
+ const _r = "reason";
572
+ const _re = "resource";
573
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
574
+ const _sC = "serviceCode";
575
+ const _se = "server";
576
+ const _st = "streaming";
577
+ const _tR = "throttlingReasons";
578
+ const _xaE = "x-amzn-Engine";
579
+ const _xaL = "x-amzn-LanguageCode";
580
+ const _xaL_ = "x-amzn-LexiconNames";
581
+ const _xaO = "x-amzn-OutputFormat";
582
+ const _xaR = "x-amzn-RequestCharacters";
583
+ const _xaS = "x-amzn-SampleRate";
584
+ const _xaV = "x-amzn-VoiceId";
585
+ const n0 = "com.amazonaws.polly";
586
+ const _s_registry = TypeRegistry.for(_s);
587
+ var PollyServiceException$ = [-3, _s, "PollyServiceException", 0, [], []];
588
+ _s_registry.registerError(PollyServiceException$, PollyServiceException);
589
+ const n0_registry = TypeRegistry.for(n0);
590
+ var EngineNotSupportedException$ = [-3, n0, _ENSE,
591
+ { [_e]: _c, [_hE]: 400 },
592
+ [_m],
593
+ [0]
594
+ ];
595
+ n0_registry.registerError(EngineNotSupportedException$, EngineNotSupportedException);
596
+ var InvalidLexiconException$ = [-3, n0, _ILE,
597
+ { [_e]: _c, [_hE]: 400 },
598
+ [_m],
599
+ [0]
600
+ ];
601
+ n0_registry.registerError(InvalidLexiconException$, InvalidLexiconException);
602
+ var InvalidNextTokenException$ = [-3, n0, _INTE,
603
+ { [_e]: _c, [_hE]: 400 },
604
+ [_m],
605
+ [0]
606
+ ];
607
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
608
+ var InvalidS3BucketException$ = [-3, n0, _ISBE,
609
+ { [_e]: _c, [_hE]: 400 },
610
+ [_m],
611
+ [0]
612
+ ];
613
+ n0_registry.registerError(InvalidS3BucketException$, InvalidS3BucketException);
614
+ var InvalidS3KeyException$ = [-3, n0, _ISKE,
615
+ { [_e]: _c, [_hE]: 400 },
616
+ [_m],
617
+ [0]
618
+ ];
619
+ n0_registry.registerError(InvalidS3KeyException$, InvalidS3KeyException);
620
+ var InvalidSampleRateException$ = [-3, n0, _ISRE,
621
+ { [_e]: _c, [_hE]: 400 },
622
+ [_m],
623
+ [0]
624
+ ];
625
+ n0_registry.registerError(InvalidSampleRateException$, InvalidSampleRateException);
626
+ var InvalidSnsTopicArnException$ = [-3, n0, _ISTAE,
627
+ { [_e]: _c, [_hE]: 400 },
628
+ [_m],
629
+ [0]
630
+ ];
631
+ n0_registry.registerError(InvalidSnsTopicArnException$, InvalidSnsTopicArnException);
632
+ var InvalidSsmlException$ = [-3, n0, _ISE,
633
+ { [_e]: _c, [_hE]: 400 },
634
+ [_m],
635
+ [0]
636
+ ];
637
+ n0_registry.registerError(InvalidSsmlException$, InvalidSsmlException);
638
+ var InvalidTaskIdException$ = [-3, n0, _ITIE,
639
+ { [_e]: _c, [_hE]: 400 },
640
+ [_m],
641
+ [0]
642
+ ];
643
+ n0_registry.registerError(InvalidTaskIdException$, InvalidTaskIdException);
644
+ var LanguageNotSupportedException$ = [-3, n0, _LNSE,
645
+ { [_e]: _c, [_hE]: 400 },
646
+ [_m],
647
+ [0]
648
+ ];
649
+ n0_registry.registerError(LanguageNotSupportedException$, LanguageNotSupportedException);
650
+ var LexiconNotFoundException$ = [-3, n0, _LNFE,
651
+ { [_e]: _c, [_hE]: 404 },
652
+ [_m],
653
+ [0]
654
+ ];
655
+ n0_registry.registerError(LexiconNotFoundException$, LexiconNotFoundException);
656
+ var LexiconSizeExceededException$ = [-3, n0, _LSEE,
657
+ { [_e]: _c, [_hE]: 400 },
658
+ [_m],
659
+ [0]
660
+ ];
661
+ n0_registry.registerError(LexiconSizeExceededException$, LexiconSizeExceededException);
662
+ var MarksNotSupportedForFormatException$ = [-3, n0, _MNSFFE,
663
+ { [_e]: _c, [_hE]: 400 },
664
+ [_m],
665
+ [0]
666
+ ];
667
+ n0_registry.registerError(MarksNotSupportedForFormatException$, MarksNotSupportedForFormatException);
668
+ var MaxLexemeLengthExceededException$ = [-3, n0, _MLLEE,
669
+ { [_e]: _c, [_hE]: 400 },
670
+ [_m],
671
+ [0]
672
+ ];
673
+ n0_registry.registerError(MaxLexemeLengthExceededException$, MaxLexemeLengthExceededException);
674
+ var MaxLexiconsNumberExceededException$ = [-3, n0, _MLNEE,
675
+ { [_e]: _c, [_hE]: 400 },
676
+ [_m],
677
+ [0]
678
+ ];
679
+ n0_registry.registerError(MaxLexiconsNumberExceededException$, MaxLexiconsNumberExceededException);
680
+ var ServiceFailureException$ = [-3, n0, _SFE,
681
+ { [_e]: _se, [_hE]: 500 },
682
+ [_m],
683
+ [0]
684
+ ];
685
+ n0_registry.registerError(ServiceFailureException$, ServiceFailureException);
686
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
687
+ { [_e]: _c, [_hE]: 402 },
688
+ [_m, _qC, _sC],
689
+ [0, 0, 0], 3
690
+ ];
691
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
692
+ var SsmlMarksNotSupportedForTextTypeException$ = [-3, n0, _SMNSFTTE,
693
+ { [_e]: _c, [_hE]: 400 },
694
+ [_m],
695
+ [0]
696
+ ];
697
+ n0_registry.registerError(SsmlMarksNotSupportedForTextTypeException$, SsmlMarksNotSupportedForTextTypeException);
698
+ var SynthesisTaskNotFoundException$ = [-3, n0, _STNFE,
699
+ { [_e]: _c, [_hE]: 400 },
700
+ [_m],
701
+ [0]
702
+ ];
703
+ n0_registry.registerError(SynthesisTaskNotFoundException$, SynthesisTaskNotFoundException);
704
+ var TextLengthExceededException$ = [-3, n0, _TLEE,
705
+ { [_e]: _c, [_hE]: 400 },
706
+ [_m],
707
+ [0]
708
+ ];
709
+ n0_registry.registerError(TextLengthExceededException$, TextLengthExceededException);
710
+ var ThrottlingException$ = [-3, n0, _TE,
711
+ { [_aQE]: [`Throttling`, 400], [_e]: _c, [_hE]: 400 },
712
+ [_m, _tR],
713
+ [0, () => ThrottlingReasonList]
714
+ ];
715
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
716
+ var UnsupportedPlsAlphabetException$ = [-3, n0, _UPAE,
717
+ { [_e]: _c, [_hE]: 400 },
718
+ [_m],
719
+ [0]
720
+ ];
721
+ n0_registry.registerError(UnsupportedPlsAlphabetException$, UnsupportedPlsAlphabetException);
722
+ var UnsupportedPlsLanguageException$ = [-3, n0, _UPLE,
723
+ { [_e]: _c, [_hE]: 400 },
724
+ [_m],
725
+ [0]
726
+ ];
727
+ n0_registry.registerError(UnsupportedPlsLanguageException$, UnsupportedPlsLanguageException);
728
+ var ValidationException$ = [-3, n0, _VE,
729
+ { [_e]: _c, [_hE]: 400 },
730
+ [_m, _r, _f],
731
+ [0, 0, () => ValidationExceptionFieldList], 2
732
+ ];
733
+ n0_registry.registerError(ValidationException$, ValidationException);
734
+ const errorTypeRegistries = [
735
+ _s_registry,
736
+ n0_registry,
737
+ ];
738
+ var AudioStream = [0, n0, _AS, { [_st]: 1 }, 42];
739
+ var LexiconContent = [0, n0, _LC, 8, 0];
740
+ var AudioEvent$ = [3, n0, _AE,
741
+ 0,
742
+ [_AC],
743
+ [[21, { [_eP]: 1 }]]
744
+ ];
745
+ var CloseStreamEvent$ = [3, n0, _CSE,
746
+ 0,
747
+ [],
748
+ []
749
+ ];
750
+ var DeleteLexiconInput$ = [3, n0, _DLI,
751
+ 0,
752
+ [_N],
753
+ [[0, 1]], 1
754
+ ];
755
+ var DeleteLexiconOutput$ = [3, n0, _DLO,
756
+ 0,
757
+ [],
758
+ []
759
+ ];
760
+ var DescribeVoicesInput$ = [3, n0, _DVI,
761
+ 0,
762
+ [_E, _LCa, _IALC, _NT],
763
+ [[0, { [_hQ]: _E }], [0, { [_hQ]: _LCa }], [2, { [_hQ]: _IALC }], [0, { [_hQ]: _NT }]]
764
+ ];
765
+ var DescribeVoicesOutput$ = [3, n0, _DVO,
766
+ 0,
767
+ [_V, _NT],
768
+ [() => VoiceList, 0]
769
+ ];
770
+ var FlushStreamConfiguration$ = [3, n0, _FSC,
771
+ 0,
772
+ [_F],
773
+ [2]
774
+ ];
775
+ var GetLexiconInput$ = [3, n0, _GLI,
776
+ 0,
777
+ [_N],
778
+ [[0, 1]], 1
779
+ ];
780
+ var GetLexiconOutput$ = [3, n0, _GLO,
781
+ 0,
782
+ [_L, _LA],
783
+ [[() => Lexicon$, 0], () => LexiconAttributes$]
784
+ ];
785
+ var GetSpeechSynthesisTaskInput$ = [3, n0, _GSSTI,
786
+ 0,
787
+ [_TI],
788
+ [[0, 1]], 1
789
+ ];
790
+ var GetSpeechSynthesisTaskOutput$ = [3, n0, _GSSTO,
791
+ 0,
792
+ [_ST],
793
+ [() => SynthesisTask$]
794
+ ];
795
+ var Lexicon$ = [3, n0, _L,
796
+ 0,
797
+ [_C, _N],
798
+ [[() => LexiconContent, 0], 0]
799
+ ];
800
+ var LexiconAttributes$ = [3, n0, _LA,
801
+ 0,
802
+ [_A, _LCa, _LM, _LAe, _LCe, _S],
803
+ [0, 0, 4, 0, 1, 1]
804
+ ];
805
+ var LexiconDescription$ = [3, n0, _LD,
806
+ 0,
807
+ [_N, _At],
808
+ [0, () => LexiconAttributes$]
809
+ ];
810
+ var ListLexiconsInput$ = [3, n0, _LLI,
811
+ 0,
812
+ [_NT],
813
+ [[0, { [_hQ]: _NT }]]
814
+ ];
815
+ var ListLexiconsOutput$ = [3, n0, _LLO,
816
+ 0,
817
+ [_Le, _NT],
818
+ [() => LexiconDescriptionList, 0]
819
+ ];
820
+ var ListSpeechSynthesisTasksInput$ = [3, n0, _LSSTI,
821
+ 0,
822
+ [_MR, _NT, _St],
823
+ [[1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }], [0, { [_hQ]: _St }]]
824
+ ];
825
+ var ListSpeechSynthesisTasksOutput$ = [3, n0, _LSSTO,
826
+ 0,
827
+ [_NT, _STy],
828
+ [0, () => SynthesisTasks]
829
+ ];
830
+ var PutLexiconInput$ = [3, n0, _PLI,
831
+ 0,
832
+ [_N, _C],
833
+ [[0, 1], [() => LexiconContent, 0]], 2
834
+ ];
835
+ var PutLexiconOutput$ = [3, n0, _PLO,
836
+ 0,
837
+ [],
838
+ []
839
+ ];
840
+ var StartSpeechSynthesisStreamInput$ = [3, n0, _SSSSI,
841
+ 0,
842
+ [_E, _OF, _VI, _LCa, _LN, _SR, _ASc],
843
+ [[0, { [_hH]: _xaE }], [0, { [_hH]: _xaO }], [0, { [_hH]: _xaV }], [0, { [_hH]: _xaL }], [64 | 0, { [_hH]: _xaL_ }], [0, { [_hH]: _xaS }], [() => StartSpeechSynthesisStreamActionStream$, 16]], 3
844
+ ];
845
+ var StartSpeechSynthesisStreamOutput$ = [3, n0, _SSSSO,
846
+ 0,
847
+ [_ES],
848
+ [[() => StartSpeechSynthesisStreamEventStream$, 16]]
849
+ ];
850
+ var StartSpeechSynthesisTaskInput$ = [3, n0, _SSSTI,
851
+ 0,
852
+ [_OF, _OSBN, _T, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],
853
+ [0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 64 | 0, 0], 4
854
+ ];
855
+ var StartSpeechSynthesisTaskOutput$ = [3, n0, _SSSTO,
856
+ 0,
857
+ [_ST],
858
+ [() => SynthesisTask$]
859
+ ];
860
+ var StreamClosedEvent$ = [3, n0, _SCE,
861
+ 0,
862
+ [_RC],
863
+ [1]
864
+ ];
865
+ var SynthesisTask$ = [3, n0, _ST,
866
+ 0,
867
+ [_E, _TI, _TS, _TSR, _OU, _CT, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],
868
+ [0, 0, 0, 0, 0, 4, 1, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0]
869
+ ];
870
+ var SynthesizeSpeechInput$ = [3, n0, _SSI,
871
+ 0,
872
+ [_OF, _T, _VI, _E, _LCa, _LN, _SR, _SMT, _TT],
873
+ [0, 0, 0, 0, 0, 64 | 0, 0, 64 | 0, 0], 3
874
+ ];
875
+ var SynthesizeSpeechOutput$ = [3, n0, _SSO,
876
+ 0,
877
+ [_AS, _CTo, _RC],
878
+ [[() => AudioStream, 16], [0, { [_hH]: _CT_ }], [1, { [_hH]: _xaR }]]
879
+ ];
880
+ var TextEvent$ = [3, n0, _TEe,
881
+ 0,
882
+ [_T, _TT, _FSC],
883
+ [0, 0, () => FlushStreamConfiguration$], 1
884
+ ];
885
+ var ThrottlingReason$ = [3, n0, _TR,
886
+ 0,
887
+ [_r, _re],
888
+ [0, 0]
889
+ ];
890
+ var ValidationExceptionField$ = [3, n0, _VEF,
891
+ 0,
892
+ [_n, _m],
893
+ [0, 0], 2
894
+ ];
895
+ var Voice$ = [3, n0, _Vo,
896
+ 0,
897
+ [_G, _I, _LCa, _LNa, _N, _ALC, _SE],
898
+ [0, 0, 0, 0, 0, 64 | 0, 64 | 0]
899
+ ];
900
+ var LexiconDescriptionList = [1, n0, _LDL,
901
+ 0, () => LexiconDescription$
902
+ ];
903
+ var SynthesisTasks = [1, n0, _STy,
904
+ 0, () => SynthesisTask$
905
+ ];
906
+ var ThrottlingReasonList = [1, n0, _TRL,
907
+ 0, () => ThrottlingReason$
908
+ ];
909
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
910
+ 0, () => ValidationExceptionField$
911
+ ];
912
+ var VoiceList = [1, n0, _VL,
913
+ 0, () => Voice$
914
+ ];
915
+ var StartSpeechSynthesisStreamActionStream$ = [4, n0, _SSSSAS,
916
+ { [_st]: 1 },
917
+ [_TEe, _CSE],
918
+ [() => TextEvent$, () => CloseStreamEvent$]
919
+ ];
920
+ var StartSpeechSynthesisStreamEventStream$ = [4, n0, _SSSSES,
921
+ { [_st]: 1 },
922
+ [_AE, _SCE, _VE, _SQEE, _SFE, _TE],
923
+ [[() => AudioEvent$, 0], () => StreamClosedEvent$, [() => ValidationException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceFailureException$, 0], [() => ThrottlingException$, 0]]
924
+ ];
925
+ var DeleteLexicon$ = [9, n0, _DL,
926
+ { [_h]: ["DELETE", "/v1/lexicons/{Name}", 200] }, () => DeleteLexiconInput$, () => DeleteLexiconOutput$
927
+ ];
928
+ var DescribeVoices$ = [9, n0, _DV,
929
+ { [_h]: ["GET", "/v1/voices", 200] }, () => DescribeVoicesInput$, () => DescribeVoicesOutput$
930
+ ];
931
+ var GetLexicon$ = [9, n0, _GL,
932
+ { [_h]: ["GET", "/v1/lexicons/{Name}", 200] }, () => GetLexiconInput$, () => GetLexiconOutput$
933
+ ];
934
+ var GetSpeechSynthesisTask$ = [9, n0, _GSST,
935
+ { [_h]: ["GET", "/v1/synthesisTasks/{TaskId}", 200] }, () => GetSpeechSynthesisTaskInput$, () => GetSpeechSynthesisTaskOutput$
936
+ ];
937
+ var ListLexicons$ = [9, n0, _LL,
938
+ { [_h]: ["GET", "/v1/lexicons", 200] }, () => ListLexiconsInput$, () => ListLexiconsOutput$
939
+ ];
940
+ var ListSpeechSynthesisTasks$ = [9, n0, _LSST,
941
+ { [_h]: ["GET", "/v1/synthesisTasks", 200] }, () => ListSpeechSynthesisTasksInput$, () => ListSpeechSynthesisTasksOutput$
942
+ ];
943
+ var PutLexicon$ = [9, n0, _PL,
944
+ { [_h]: ["PUT", "/v1/lexicons/{Name}", 200] }, () => PutLexiconInput$, () => PutLexiconOutput$
945
+ ];
946
+ var StartSpeechSynthesisStream$ = [9, n0, _SSSS,
947
+ { [_h]: ["POST", "/v1/synthesisStream", 200] }, () => StartSpeechSynthesisStreamInput$, () => StartSpeechSynthesisStreamOutput$
948
+ ];
949
+ var StartSpeechSynthesisTask$ = [9, n0, _SSST,
950
+ { [_h]: ["POST", "/v1/synthesisTasks", 200] }, () => StartSpeechSynthesisTaskInput$, () => StartSpeechSynthesisTaskOutput$
951
+ ];
952
+ var SynthesizeSpeech$ = [9, n0, _SS,
953
+ { [_h]: ["POST", "/v1/speech", 200] }, () => SynthesizeSpeechInput$, () => SynthesizeSpeechOutput$
954
+ ];
955
+
956
+ const getRuntimeConfig$1 = (config) => {
957
+ return {
958
+ apiVersion: "2016-06-10",
959
+ base64Decoder: config?.base64Decoder ?? fromBase64,
960
+ base64Encoder: config?.base64Encoder ?? toBase64,
961
+ disableHostPrefix: config?.disableHostPrefix ?? false,
962
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
963
+ extensions: config?.extensions ?? [],
964
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPollyHttpAuthSchemeProvider,
965
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
966
+ {
967
+ schemeId: "aws.auth#sigv4",
968
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
969
+ signer: new AwsSdkSigV4Signer(),
970
+ },
971
+ ],
972
+ logger: config?.logger ?? new NoOpLogger(),
973
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
974
+ protocolSettings: config?.protocolSettings ?? {
975
+ defaultNamespace: "com.amazonaws.polly",
976
+ errorTypeRegistries,
977
+ xmlNamespace: "http://polly.amazonaws.com/doc/v1",
978
+ version: "2016-06-10",
979
+ serviceTarget: "Parrot_v1",
980
+ },
981
+ sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
982
+ serviceId: config?.serviceId ?? "Polly",
983
+ urlParser: config?.urlParser ?? parseUrl,
984
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
985
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
986
+ };
987
+ };
988
+
989
+ const getRuntimeConfig = (config) => {
990
+ emitWarningIfUnsupportedVersion(process.version);
991
+ const defaultsMode = resolveDefaultsModeConfig(config);
992
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
993
+ const clientSharedValues = getRuntimeConfig$1(config);
994
+ emitWarningIfUnsupportedVersion$1(process.version);
995
+ const loaderConfig = {
996
+ profile: config?.profile,
997
+ logger: clientSharedValues.logger,
998
+ };
999
+ return {
1000
+ ...clientSharedValues,
1001
+ ...config,
1002
+ runtime: "node",
1003
+ defaultsMode,
1004
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1005
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1006
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1007
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1008
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
1009
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
1010
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1011
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1012
+ requestHandler: NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
1013
+ ...await defaultConfigProvider(),
1014
+ disableConcurrentStreams: true
1015
+ }))),
1016
+ retryMode: config?.retryMode ??
1017
+ loadConfig({
1018
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1019
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1020
+ }, config),
1021
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1022
+ streamCollector: config?.streamCollector ?? streamCollector,
1023
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1024
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1025
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1026
+ };
1027
+ };
1028
+
36
1029
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
37
1030
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
38
1031
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -465,27 +1458,122 @@ const ValidationExceptionReason = {
465
1458
  UNSUPPORTED_OPERATION: "unsupportedOperation",
466
1459
  };
467
1460
 
1461
+ exports.AudioEvent$ = AudioEvent$;
1462
+ exports.CloseStreamEvent$ = CloseStreamEvent$;
1463
+ exports.DeleteLexicon$ = DeleteLexicon$;
468
1464
  exports.DeleteLexiconCommand = DeleteLexiconCommand;
1465
+ exports.DeleteLexiconInput$ = DeleteLexiconInput$;
1466
+ exports.DeleteLexiconOutput$ = DeleteLexiconOutput$;
1467
+ exports.DescribeVoices$ = DescribeVoices$;
469
1468
  exports.DescribeVoicesCommand = DescribeVoicesCommand;
1469
+ exports.DescribeVoicesInput$ = DescribeVoicesInput$;
1470
+ exports.DescribeVoicesOutput$ = DescribeVoicesOutput$;
470
1471
  exports.Engine = Engine;
1472
+ exports.EngineNotSupportedException = EngineNotSupportedException;
1473
+ exports.EngineNotSupportedException$ = EngineNotSupportedException$;
1474
+ exports.FlushStreamConfiguration$ = FlushStreamConfiguration$;
471
1475
  exports.Gender = Gender;
1476
+ exports.GetLexicon$ = GetLexicon$;
472
1477
  exports.GetLexiconCommand = GetLexiconCommand;
1478
+ exports.GetLexiconInput$ = GetLexiconInput$;
1479
+ exports.GetLexiconOutput$ = GetLexiconOutput$;
1480
+ exports.GetSpeechSynthesisTask$ = GetSpeechSynthesisTask$;
473
1481
  exports.GetSpeechSynthesisTaskCommand = GetSpeechSynthesisTaskCommand;
1482
+ exports.GetSpeechSynthesisTaskInput$ = GetSpeechSynthesisTaskInput$;
1483
+ exports.GetSpeechSynthesisTaskOutput$ = GetSpeechSynthesisTaskOutput$;
1484
+ exports.InvalidLexiconException = InvalidLexiconException;
1485
+ exports.InvalidLexiconException$ = InvalidLexiconException$;
1486
+ exports.InvalidNextTokenException = InvalidNextTokenException;
1487
+ exports.InvalidNextTokenException$ = InvalidNextTokenException$;
1488
+ exports.InvalidS3BucketException = InvalidS3BucketException;
1489
+ exports.InvalidS3BucketException$ = InvalidS3BucketException$;
1490
+ exports.InvalidS3KeyException = InvalidS3KeyException;
1491
+ exports.InvalidS3KeyException$ = InvalidS3KeyException$;
1492
+ exports.InvalidSampleRateException = InvalidSampleRateException;
1493
+ exports.InvalidSampleRateException$ = InvalidSampleRateException$;
1494
+ exports.InvalidSnsTopicArnException = InvalidSnsTopicArnException;
1495
+ exports.InvalidSnsTopicArnException$ = InvalidSnsTopicArnException$;
1496
+ exports.InvalidSsmlException = InvalidSsmlException;
1497
+ exports.InvalidSsmlException$ = InvalidSsmlException$;
1498
+ exports.InvalidTaskIdException = InvalidTaskIdException;
1499
+ exports.InvalidTaskIdException$ = InvalidTaskIdException$;
474
1500
  exports.LanguageCode = LanguageCode;
1501
+ exports.LanguageNotSupportedException = LanguageNotSupportedException;
1502
+ exports.LanguageNotSupportedException$ = LanguageNotSupportedException$;
1503
+ exports.Lexicon$ = Lexicon$;
1504
+ exports.LexiconAttributes$ = LexiconAttributes$;
1505
+ exports.LexiconDescription$ = LexiconDescription$;
1506
+ exports.LexiconNotFoundException = LexiconNotFoundException;
1507
+ exports.LexiconNotFoundException$ = LexiconNotFoundException$;
1508
+ exports.LexiconSizeExceededException = LexiconSizeExceededException;
1509
+ exports.LexiconSizeExceededException$ = LexiconSizeExceededException$;
1510
+ exports.ListLexicons$ = ListLexicons$;
475
1511
  exports.ListLexiconsCommand = ListLexiconsCommand;
1512
+ exports.ListLexiconsInput$ = ListLexiconsInput$;
1513
+ exports.ListLexiconsOutput$ = ListLexiconsOutput$;
1514
+ exports.ListSpeechSynthesisTasks$ = ListSpeechSynthesisTasks$;
476
1515
  exports.ListSpeechSynthesisTasksCommand = ListSpeechSynthesisTasksCommand;
1516
+ exports.ListSpeechSynthesisTasksInput$ = ListSpeechSynthesisTasksInput$;
1517
+ exports.ListSpeechSynthesisTasksOutput$ = ListSpeechSynthesisTasksOutput$;
1518
+ exports.MarksNotSupportedForFormatException = MarksNotSupportedForFormatException;
1519
+ exports.MarksNotSupportedForFormatException$ = MarksNotSupportedForFormatException$;
1520
+ exports.MaxLexemeLengthExceededException = MaxLexemeLengthExceededException;
1521
+ exports.MaxLexemeLengthExceededException$ = MaxLexemeLengthExceededException$;
1522
+ exports.MaxLexiconsNumberExceededException = MaxLexiconsNumberExceededException;
1523
+ exports.MaxLexiconsNumberExceededException$ = MaxLexiconsNumberExceededException$;
477
1524
  exports.OutputFormat = OutputFormat;
478
1525
  exports.Polly = Polly;
479
1526
  exports.PollyClient = PollyClient;
1527
+ exports.PollyServiceException = PollyServiceException;
1528
+ exports.PollyServiceException$ = PollyServiceException$;
1529
+ exports.PutLexicon$ = PutLexicon$;
480
1530
  exports.PutLexiconCommand = PutLexiconCommand;
1531
+ exports.PutLexiconInput$ = PutLexiconInput$;
1532
+ exports.PutLexiconOutput$ = PutLexiconOutput$;
481
1533
  exports.QuotaCode = QuotaCode;
482
1534
  exports.ServiceCode = ServiceCode;
1535
+ exports.ServiceFailureException = ServiceFailureException;
1536
+ exports.ServiceFailureException$ = ServiceFailureException$;
1537
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1538
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
483
1539
  exports.SpeechMarkType = SpeechMarkType;
1540
+ exports.SsmlMarksNotSupportedForTextTypeException = SsmlMarksNotSupportedForTextTypeException;
1541
+ exports.SsmlMarksNotSupportedForTextTypeException$ = SsmlMarksNotSupportedForTextTypeException$;
1542
+ exports.StartSpeechSynthesisStream$ = StartSpeechSynthesisStream$;
1543
+ exports.StartSpeechSynthesisStreamActionStream$ = StartSpeechSynthesisStreamActionStream$;
484
1544
  exports.StartSpeechSynthesisStreamCommand = StartSpeechSynthesisStreamCommand;
1545
+ exports.StartSpeechSynthesisStreamEventStream$ = StartSpeechSynthesisStreamEventStream$;
1546
+ exports.StartSpeechSynthesisStreamInput$ = StartSpeechSynthesisStreamInput$;
1547
+ exports.StartSpeechSynthesisStreamOutput$ = StartSpeechSynthesisStreamOutput$;
1548
+ exports.StartSpeechSynthesisTask$ = StartSpeechSynthesisTask$;
485
1549
  exports.StartSpeechSynthesisTaskCommand = StartSpeechSynthesisTaskCommand;
1550
+ exports.StartSpeechSynthesisTaskInput$ = StartSpeechSynthesisTaskInput$;
1551
+ exports.StartSpeechSynthesisTaskOutput$ = StartSpeechSynthesisTaskOutput$;
1552
+ exports.StreamClosedEvent$ = StreamClosedEvent$;
1553
+ exports.SynthesisTask$ = SynthesisTask$;
1554
+ exports.SynthesisTaskNotFoundException = SynthesisTaskNotFoundException;
1555
+ exports.SynthesisTaskNotFoundException$ = SynthesisTaskNotFoundException$;
1556
+ exports.SynthesizeSpeech$ = SynthesizeSpeech$;
486
1557
  exports.SynthesizeSpeechCommand = SynthesizeSpeechCommand;
1558
+ exports.SynthesizeSpeechInput$ = SynthesizeSpeechInput$;
1559
+ exports.SynthesizeSpeechOutput$ = SynthesizeSpeechOutput$;
487
1560
  exports.TaskStatus = TaskStatus;
1561
+ exports.TextEvent$ = TextEvent$;
1562
+ exports.TextLengthExceededException = TextLengthExceededException;
1563
+ exports.TextLengthExceededException$ = TextLengthExceededException$;
488
1564
  exports.TextType = TextType;
1565
+ exports.ThrottlingException = ThrottlingException;
1566
+ exports.ThrottlingException$ = ThrottlingException$;
1567
+ exports.ThrottlingReason$ = ThrottlingReason$;
1568
+ exports.UnsupportedPlsAlphabetException = UnsupportedPlsAlphabetException;
1569
+ exports.UnsupportedPlsAlphabetException$ = UnsupportedPlsAlphabetException$;
1570
+ exports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException;
1571
+ exports.UnsupportedPlsLanguageException$ = UnsupportedPlsLanguageException$;
1572
+ exports.ValidationException = ValidationException;
1573
+ exports.ValidationException$ = ValidationException$;
1574
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
489
1575
  exports.ValidationExceptionReason = ValidationExceptionReason;
1576
+ exports.Voice$ = Voice$;
490
1577
  exports.VoiceId = VoiceId;
1578
+ exports.errorTypeRegistries = errorTypeRegistries;
491
1579
  exports.paginateListSpeechSynthesisTasks = paginateListSpeechSynthesisTasks;