@aws-sdk/client-polly 3.54.0 → 3.56.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/CHANGELOG.md +24 -0
- package/dist-cjs/PollyClient.js +13 -13
- package/dist-cjs/commands/DeleteLexiconCommand.js +3 -3
- package/dist-cjs/commands/DescribeVoicesCommand.js +3 -3
- package/dist-cjs/commands/GetLexiconCommand.js +3 -3
- package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js +3 -3
- package/dist-cjs/commands/ListLexiconsCommand.js +3 -3
- package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js +3 -3
- package/dist-cjs/commands/PutLexiconCommand.js +3 -3
- package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js +3 -3
- package/dist-cjs/commands/SynthesizeSpeechCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +96 -96
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Polly.js +9 -9
- package/dist-es/pagination/ListSpeechSynthesisTasksPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +9 -9
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -14,7 +14,7 @@ const serializeAws_restJson1DeleteLexiconCommand = async (input, context) => {
|
|
|
14
14
|
if (labelValue.length <= 0) {
|
|
15
15
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
16
16
|
}
|
|
17
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
17
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -65,7 +65,7 @@ const serializeAws_restJson1GetLexiconCommand = async (input, context) => {
|
|
|
65
65
|
if (labelValue.length <= 0) {
|
|
66
66
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
67
67
|
}
|
|
68
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
68
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
69
69
|
}
|
|
70
70
|
else {
|
|
71
71
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -91,7 +91,7 @@ const serializeAws_restJson1GetSpeechSynthesisTaskCommand = async (input, contex
|
|
|
91
91
|
if (labelValue.length <= 0) {
|
|
92
92
|
throw new Error("Empty value provided for input HTTP label: TaskId.");
|
|
93
93
|
}
|
|
94
|
-
resolvedPath = resolvedPath.replace("{TaskId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
94
|
+
resolvedPath = resolvedPath.replace("{TaskId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
95
95
|
}
|
|
96
96
|
else {
|
|
97
97
|
throw new Error("No value provided for input HTTP label: TaskId.");
|
|
@@ -161,7 +161,7 @@ const serializeAws_restJson1PutLexiconCommand = async (input, context) => {
|
|
|
161
161
|
if (labelValue.length <= 0) {
|
|
162
162
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
163
163
|
}
|
|
164
|
-
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
164
|
+
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
165
165
|
}
|
|
166
166
|
else {
|
|
167
167
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -289,7 +289,7 @@ const deserializeAws_restJson1DeleteLexiconCommandError = async (output, context
|
|
|
289
289
|
$fault: "client",
|
|
290
290
|
$metadata: deserializeMetadata(output),
|
|
291
291
|
});
|
|
292
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
292
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
const deserializeAws_restJson1DescribeVoicesCommand = async (output, context) => {
|
|
@@ -301,9 +301,9 @@ const deserializeAws_restJson1DescribeVoicesCommand = async (output, context) =>
|
|
|
301
301
|
NextToken: undefined,
|
|
302
302
|
Voices: undefined,
|
|
303
303
|
};
|
|
304
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
304
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
305
305
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
306
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
306
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
307
307
|
}
|
|
308
308
|
if (data.Voices !== undefined && data.Voices !== null) {
|
|
309
309
|
contents.Voices = deserializeAws_restJson1VoiceList(data.Voices, context);
|
|
@@ -333,7 +333,7 @@ const deserializeAws_restJson1DescribeVoicesCommandError = async (output, contex
|
|
|
333
333
|
$fault: "client",
|
|
334
334
|
$metadata: deserializeMetadata(output),
|
|
335
335
|
});
|
|
336
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
336
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
const deserializeAws_restJson1GetLexiconCommand = async (output, context) => {
|
|
@@ -345,7 +345,7 @@ const deserializeAws_restJson1GetLexiconCommand = async (output, context) => {
|
|
|
345
345
|
Lexicon: undefined,
|
|
346
346
|
LexiconAttributes: undefined,
|
|
347
347
|
};
|
|
348
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
348
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
349
349
|
if (data.Lexicon !== undefined && data.Lexicon !== null) {
|
|
350
350
|
contents.Lexicon = deserializeAws_restJson1Lexicon(data.Lexicon, context);
|
|
351
351
|
}
|
|
@@ -377,7 +377,7 @@ const deserializeAws_restJson1GetLexiconCommandError = async (output, context) =
|
|
|
377
377
|
$fault: "client",
|
|
378
378
|
$metadata: deserializeMetadata(output),
|
|
379
379
|
});
|
|
380
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
380
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
const deserializeAws_restJson1GetSpeechSynthesisTaskCommand = async (output, context) => {
|
|
@@ -388,7 +388,7 @@ const deserializeAws_restJson1GetSpeechSynthesisTaskCommand = async (output, con
|
|
|
388
388
|
$metadata: deserializeMetadata(output),
|
|
389
389
|
SynthesisTask: undefined,
|
|
390
390
|
};
|
|
391
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
391
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
392
392
|
if (data.SynthesisTask !== undefined && data.SynthesisTask !== null) {
|
|
393
393
|
contents.SynthesisTask = deserializeAws_restJson1SynthesisTask(data.SynthesisTask, context);
|
|
394
394
|
}
|
|
@@ -420,7 +420,7 @@ const deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = async (output
|
|
|
420
420
|
$fault: "client",
|
|
421
421
|
$metadata: deserializeMetadata(output),
|
|
422
422
|
});
|
|
423
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
423
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
426
|
const deserializeAws_restJson1ListLexiconsCommand = async (output, context) => {
|
|
@@ -432,12 +432,12 @@ const deserializeAws_restJson1ListLexiconsCommand = async (output, context) => {
|
|
|
432
432
|
Lexicons: undefined,
|
|
433
433
|
NextToken: undefined,
|
|
434
434
|
};
|
|
435
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
435
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
436
436
|
if (data.Lexicons !== undefined && data.Lexicons !== null) {
|
|
437
437
|
contents.Lexicons = deserializeAws_restJson1LexiconDescriptionList(data.Lexicons, context);
|
|
438
438
|
}
|
|
439
439
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
440
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
440
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
441
441
|
}
|
|
442
442
|
return Promise.resolve(contents);
|
|
443
443
|
};
|
|
@@ -464,7 +464,7 @@ const deserializeAws_restJson1ListLexiconsCommandError = async (output, context)
|
|
|
464
464
|
$fault: "client",
|
|
465
465
|
$metadata: deserializeMetadata(output),
|
|
466
466
|
});
|
|
467
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
467
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
const deserializeAws_restJson1ListSpeechSynthesisTasksCommand = async (output, context) => {
|
|
@@ -476,9 +476,9 @@ const deserializeAws_restJson1ListSpeechSynthesisTasksCommand = async (output, c
|
|
|
476
476
|
NextToken: undefined,
|
|
477
477
|
SynthesisTasks: undefined,
|
|
478
478
|
};
|
|
479
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
479
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
480
480
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
481
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
481
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
482
482
|
}
|
|
483
483
|
if (data.SynthesisTasks !== undefined && data.SynthesisTasks !== null) {
|
|
484
484
|
contents.SynthesisTasks = deserializeAws_restJson1SynthesisTasks(data.SynthesisTasks, context);
|
|
@@ -508,7 +508,7 @@ const deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = async (outp
|
|
|
508
508
|
$fault: "client",
|
|
509
509
|
$metadata: deserializeMetadata(output),
|
|
510
510
|
});
|
|
511
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
511
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
const deserializeAws_restJson1PutLexiconCommand = async (output, context) => {
|
|
@@ -559,7 +559,7 @@ const deserializeAws_restJson1PutLexiconCommandError = async (output, context) =
|
|
|
559
559
|
$fault: "client",
|
|
560
560
|
$metadata: deserializeMetadata(output),
|
|
561
561
|
});
|
|
562
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
562
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
565
|
const deserializeAws_restJson1StartSpeechSynthesisTaskCommand = async (output, context) => {
|
|
@@ -570,7 +570,7 @@ const deserializeAws_restJson1StartSpeechSynthesisTaskCommand = async (output, c
|
|
|
570
570
|
$metadata: deserializeMetadata(output),
|
|
571
571
|
SynthesisTask: undefined,
|
|
572
572
|
};
|
|
573
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
573
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
574
574
|
if (data.SynthesisTask !== undefined && data.SynthesisTask !== null) {
|
|
575
575
|
contents.SynthesisTask = deserializeAws_restJson1SynthesisTask(data.SynthesisTask, context);
|
|
576
576
|
}
|
|
@@ -629,7 +629,7 @@ const deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = async (outp
|
|
|
629
629
|
$fault: "client",
|
|
630
630
|
$metadata: deserializeMetadata(output),
|
|
631
631
|
});
|
|
632
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
632
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
const deserializeAws_restJson1SynthesizeSpeechCommand = async (output, context) => {
|
|
@@ -646,7 +646,7 @@ const deserializeAws_restJson1SynthesizeSpeechCommand = async (output, context)
|
|
|
646
646
|
contents.ContentType = output.headers["content-type"];
|
|
647
647
|
}
|
|
648
648
|
if (output.headers["x-amzn-requestcharacters"] !== undefined) {
|
|
649
|
-
contents.RequestCharacters = smithy_client_1.strictParseInt32(output.headers["x-amzn-requestcharacters"]);
|
|
649
|
+
contents.RequestCharacters = (0, smithy_client_1.strictParseInt32)(output.headers["x-amzn-requestcharacters"]);
|
|
650
650
|
}
|
|
651
651
|
const data = output.body;
|
|
652
652
|
contents.AudioStream = data;
|
|
@@ -696,260 +696,260 @@ const deserializeAws_restJson1SynthesizeSpeechCommandError = async (output, cont
|
|
|
696
696
|
$fault: "client",
|
|
697
697
|
$metadata: deserializeMetadata(output),
|
|
698
698
|
});
|
|
699
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
699
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
700
700
|
}
|
|
701
701
|
};
|
|
702
702
|
const deserializeAws_restJson1EngineNotSupportedExceptionResponse = async (parsedOutput, context) => {
|
|
703
703
|
const contents = {};
|
|
704
704
|
const data = parsedOutput.body;
|
|
705
705
|
if (data.message !== undefined && data.message !== null) {
|
|
706
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
706
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
707
707
|
}
|
|
708
708
|
const exception = new models_0_1.EngineNotSupportedException({
|
|
709
709
|
$metadata: deserializeMetadata(parsedOutput),
|
|
710
710
|
...contents,
|
|
711
711
|
});
|
|
712
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
712
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
713
713
|
};
|
|
714
714
|
const deserializeAws_restJson1InvalidLexiconExceptionResponse = async (parsedOutput, context) => {
|
|
715
715
|
const contents = {};
|
|
716
716
|
const data = parsedOutput.body;
|
|
717
717
|
if (data.message !== undefined && data.message !== null) {
|
|
718
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
718
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
719
719
|
}
|
|
720
720
|
const exception = new models_0_1.InvalidLexiconException({
|
|
721
721
|
$metadata: deserializeMetadata(parsedOutput),
|
|
722
722
|
...contents,
|
|
723
723
|
});
|
|
724
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
724
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
725
725
|
};
|
|
726
726
|
const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
727
727
|
const contents = {};
|
|
728
728
|
const data = parsedOutput.body;
|
|
729
729
|
if (data.message !== undefined && data.message !== null) {
|
|
730
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
730
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
731
731
|
}
|
|
732
732
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
733
733
|
$metadata: deserializeMetadata(parsedOutput),
|
|
734
734
|
...contents,
|
|
735
735
|
});
|
|
736
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
736
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
737
737
|
};
|
|
738
738
|
const deserializeAws_restJson1InvalidS3BucketExceptionResponse = async (parsedOutput, context) => {
|
|
739
739
|
const contents = {};
|
|
740
740
|
const data = parsedOutput.body;
|
|
741
741
|
if (data.message !== undefined && data.message !== null) {
|
|
742
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
742
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
743
743
|
}
|
|
744
744
|
const exception = new models_0_1.InvalidS3BucketException({
|
|
745
745
|
$metadata: deserializeMetadata(parsedOutput),
|
|
746
746
|
...contents,
|
|
747
747
|
});
|
|
748
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
748
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
749
749
|
};
|
|
750
750
|
const deserializeAws_restJson1InvalidS3KeyExceptionResponse = async (parsedOutput, context) => {
|
|
751
751
|
const contents = {};
|
|
752
752
|
const data = parsedOutput.body;
|
|
753
753
|
if (data.message !== undefined && data.message !== null) {
|
|
754
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
754
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
755
755
|
}
|
|
756
756
|
const exception = new models_0_1.InvalidS3KeyException({
|
|
757
757
|
$metadata: deserializeMetadata(parsedOutput),
|
|
758
758
|
...contents,
|
|
759
759
|
});
|
|
760
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
760
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
761
761
|
};
|
|
762
762
|
const deserializeAws_restJson1InvalidSampleRateExceptionResponse = async (parsedOutput, context) => {
|
|
763
763
|
const contents = {};
|
|
764
764
|
const data = parsedOutput.body;
|
|
765
765
|
if (data.message !== undefined && data.message !== null) {
|
|
766
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
766
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
767
767
|
}
|
|
768
768
|
const exception = new models_0_1.InvalidSampleRateException({
|
|
769
769
|
$metadata: deserializeMetadata(parsedOutput),
|
|
770
770
|
...contents,
|
|
771
771
|
});
|
|
772
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
772
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
773
773
|
};
|
|
774
774
|
const deserializeAws_restJson1InvalidSnsTopicArnExceptionResponse = async (parsedOutput, context) => {
|
|
775
775
|
const contents = {};
|
|
776
776
|
const data = parsedOutput.body;
|
|
777
777
|
if (data.message !== undefined && data.message !== null) {
|
|
778
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
778
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
779
779
|
}
|
|
780
780
|
const exception = new models_0_1.InvalidSnsTopicArnException({
|
|
781
781
|
$metadata: deserializeMetadata(parsedOutput),
|
|
782
782
|
...contents,
|
|
783
783
|
});
|
|
784
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
784
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
785
785
|
};
|
|
786
786
|
const deserializeAws_restJson1InvalidSsmlExceptionResponse = async (parsedOutput, context) => {
|
|
787
787
|
const contents = {};
|
|
788
788
|
const data = parsedOutput.body;
|
|
789
789
|
if (data.message !== undefined && data.message !== null) {
|
|
790
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
790
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
791
791
|
}
|
|
792
792
|
const exception = new models_0_1.InvalidSsmlException({
|
|
793
793
|
$metadata: deserializeMetadata(parsedOutput),
|
|
794
794
|
...contents,
|
|
795
795
|
});
|
|
796
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
796
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
797
797
|
};
|
|
798
798
|
const deserializeAws_restJson1InvalidTaskIdExceptionResponse = async (parsedOutput, context) => {
|
|
799
799
|
const contents = {};
|
|
800
800
|
const data = parsedOutput.body;
|
|
801
801
|
if (data.message !== undefined && data.message !== null) {
|
|
802
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
802
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
803
803
|
}
|
|
804
804
|
const exception = new models_0_1.InvalidTaskIdException({
|
|
805
805
|
$metadata: deserializeMetadata(parsedOutput),
|
|
806
806
|
...contents,
|
|
807
807
|
});
|
|
808
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
808
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
809
809
|
};
|
|
810
810
|
const deserializeAws_restJson1LanguageNotSupportedExceptionResponse = async (parsedOutput, context) => {
|
|
811
811
|
const contents = {};
|
|
812
812
|
const data = parsedOutput.body;
|
|
813
813
|
if (data.message !== undefined && data.message !== null) {
|
|
814
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
814
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
815
815
|
}
|
|
816
816
|
const exception = new models_0_1.LanguageNotSupportedException({
|
|
817
817
|
$metadata: deserializeMetadata(parsedOutput),
|
|
818
818
|
...contents,
|
|
819
819
|
});
|
|
820
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
820
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
821
821
|
};
|
|
822
822
|
const deserializeAws_restJson1LexiconNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
823
823
|
const contents = {};
|
|
824
824
|
const data = parsedOutput.body;
|
|
825
825
|
if (data.message !== undefined && data.message !== null) {
|
|
826
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
826
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
827
827
|
}
|
|
828
828
|
const exception = new models_0_1.LexiconNotFoundException({
|
|
829
829
|
$metadata: deserializeMetadata(parsedOutput),
|
|
830
830
|
...contents,
|
|
831
831
|
});
|
|
832
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
832
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
833
833
|
};
|
|
834
834
|
const deserializeAws_restJson1LexiconSizeExceededExceptionResponse = async (parsedOutput, context) => {
|
|
835
835
|
const contents = {};
|
|
836
836
|
const data = parsedOutput.body;
|
|
837
837
|
if (data.message !== undefined && data.message !== null) {
|
|
838
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
838
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
839
839
|
}
|
|
840
840
|
const exception = new models_0_1.LexiconSizeExceededException({
|
|
841
841
|
$metadata: deserializeMetadata(parsedOutput),
|
|
842
842
|
...contents,
|
|
843
843
|
});
|
|
844
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
844
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
845
845
|
};
|
|
846
846
|
const deserializeAws_restJson1MarksNotSupportedForFormatExceptionResponse = async (parsedOutput, context) => {
|
|
847
847
|
const contents = {};
|
|
848
848
|
const data = parsedOutput.body;
|
|
849
849
|
if (data.message !== undefined && data.message !== null) {
|
|
850
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
850
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
851
851
|
}
|
|
852
852
|
const exception = new models_0_1.MarksNotSupportedForFormatException({
|
|
853
853
|
$metadata: deserializeMetadata(parsedOutput),
|
|
854
854
|
...contents,
|
|
855
855
|
});
|
|
856
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
856
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
857
857
|
};
|
|
858
858
|
const deserializeAws_restJson1MaxLexemeLengthExceededExceptionResponse = async (parsedOutput, context) => {
|
|
859
859
|
const contents = {};
|
|
860
860
|
const data = parsedOutput.body;
|
|
861
861
|
if (data.message !== undefined && data.message !== null) {
|
|
862
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
862
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
863
863
|
}
|
|
864
864
|
const exception = new models_0_1.MaxLexemeLengthExceededException({
|
|
865
865
|
$metadata: deserializeMetadata(parsedOutput),
|
|
866
866
|
...contents,
|
|
867
867
|
});
|
|
868
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
868
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
869
869
|
};
|
|
870
870
|
const deserializeAws_restJson1MaxLexiconsNumberExceededExceptionResponse = async (parsedOutput, context) => {
|
|
871
871
|
const contents = {};
|
|
872
872
|
const data = parsedOutput.body;
|
|
873
873
|
if (data.message !== undefined && data.message !== null) {
|
|
874
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
874
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
875
875
|
}
|
|
876
876
|
const exception = new models_0_1.MaxLexiconsNumberExceededException({
|
|
877
877
|
$metadata: deserializeMetadata(parsedOutput),
|
|
878
878
|
...contents,
|
|
879
879
|
});
|
|
880
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
880
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
881
881
|
};
|
|
882
882
|
const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
|
|
883
883
|
const contents = {};
|
|
884
884
|
const data = parsedOutput.body;
|
|
885
885
|
if (data.message !== undefined && data.message !== null) {
|
|
886
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
886
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
887
887
|
}
|
|
888
888
|
const exception = new models_0_1.ServiceFailureException({
|
|
889
889
|
$metadata: deserializeMetadata(parsedOutput),
|
|
890
890
|
...contents,
|
|
891
891
|
});
|
|
892
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
892
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
893
893
|
};
|
|
894
894
|
const deserializeAws_restJson1SsmlMarksNotSupportedForTextTypeExceptionResponse = async (parsedOutput, context) => {
|
|
895
895
|
const contents = {};
|
|
896
896
|
const data = parsedOutput.body;
|
|
897
897
|
if (data.message !== undefined && data.message !== null) {
|
|
898
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
898
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
899
899
|
}
|
|
900
900
|
const exception = new models_0_1.SsmlMarksNotSupportedForTextTypeException({
|
|
901
901
|
$metadata: deserializeMetadata(parsedOutput),
|
|
902
902
|
...contents,
|
|
903
903
|
});
|
|
904
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
904
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
905
905
|
};
|
|
906
906
|
const deserializeAws_restJson1SynthesisTaskNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
907
907
|
const contents = {};
|
|
908
908
|
const data = parsedOutput.body;
|
|
909
909
|
if (data.message !== undefined && data.message !== null) {
|
|
910
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
910
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
911
911
|
}
|
|
912
912
|
const exception = new models_0_1.SynthesisTaskNotFoundException({
|
|
913
913
|
$metadata: deserializeMetadata(parsedOutput),
|
|
914
914
|
...contents,
|
|
915
915
|
});
|
|
916
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
916
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
917
917
|
};
|
|
918
918
|
const deserializeAws_restJson1TextLengthExceededExceptionResponse = async (parsedOutput, context) => {
|
|
919
919
|
const contents = {};
|
|
920
920
|
const data = parsedOutput.body;
|
|
921
921
|
if (data.message !== undefined && data.message !== null) {
|
|
922
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
922
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
923
923
|
}
|
|
924
924
|
const exception = new models_0_1.TextLengthExceededException({
|
|
925
925
|
$metadata: deserializeMetadata(parsedOutput),
|
|
926
926
|
...contents,
|
|
927
927
|
});
|
|
928
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
928
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
929
929
|
};
|
|
930
930
|
const deserializeAws_restJson1UnsupportedPlsAlphabetExceptionResponse = async (parsedOutput, context) => {
|
|
931
931
|
const contents = {};
|
|
932
932
|
const data = parsedOutput.body;
|
|
933
933
|
if (data.message !== undefined && data.message !== null) {
|
|
934
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
934
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
935
935
|
}
|
|
936
936
|
const exception = new models_0_1.UnsupportedPlsAlphabetException({
|
|
937
937
|
$metadata: deserializeMetadata(parsedOutput),
|
|
938
938
|
...contents,
|
|
939
939
|
});
|
|
940
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
940
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
941
941
|
};
|
|
942
942
|
const deserializeAws_restJson1UnsupportedPlsLanguageExceptionResponse = async (parsedOutput, context) => {
|
|
943
943
|
const contents = {};
|
|
944
944
|
const data = parsedOutput.body;
|
|
945
945
|
if (data.message !== undefined && data.message !== null) {
|
|
946
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
946
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
947
947
|
}
|
|
948
948
|
const exception = new models_0_1.UnsupportedPlsLanguageException({
|
|
949
949
|
$metadata: deserializeMetadata(parsedOutput),
|
|
950
950
|
...contents,
|
|
951
951
|
});
|
|
952
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
952
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
953
953
|
};
|
|
954
954
|
const serializeAws_restJson1LexiconNameList = (input, context) => {
|
|
955
955
|
return input
|
|
@@ -978,7 +978,7 @@ const deserializeAws_restJson1EngineList = (output, context) => {
|
|
|
978
978
|
if (entry === null) {
|
|
979
979
|
return null;
|
|
980
980
|
}
|
|
981
|
-
return smithy_client_1.expectString(entry);
|
|
981
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
982
982
|
});
|
|
983
983
|
return retVal;
|
|
984
984
|
};
|
|
@@ -989,26 +989,26 @@ const deserializeAws_restJson1LanguageCodeList = (output, context) => {
|
|
|
989
989
|
if (entry === null) {
|
|
990
990
|
return null;
|
|
991
991
|
}
|
|
992
|
-
return smithy_client_1.expectString(entry);
|
|
992
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
993
993
|
});
|
|
994
994
|
return retVal;
|
|
995
995
|
};
|
|
996
996
|
const deserializeAws_restJson1Lexicon = (output, context) => {
|
|
997
997
|
return {
|
|
998
|
-
Content: smithy_client_1.expectString(output.Content),
|
|
999
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
998
|
+
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
999
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1000
1000
|
};
|
|
1001
1001
|
};
|
|
1002
1002
|
const deserializeAws_restJson1LexiconAttributes = (output, context) => {
|
|
1003
1003
|
return {
|
|
1004
|
-
Alphabet: smithy_client_1.expectString(output.Alphabet),
|
|
1005
|
-
LanguageCode: smithy_client_1.expectString(output.LanguageCode),
|
|
1004
|
+
Alphabet: (0, smithy_client_1.expectString)(output.Alphabet),
|
|
1005
|
+
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
1006
1006
|
LastModified: output.LastModified !== undefined && output.LastModified !== null
|
|
1007
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
|
|
1007
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
|
|
1008
1008
|
: undefined,
|
|
1009
|
-
LexemesCount: smithy_client_1.expectInt32(output.LexemesCount),
|
|
1010
|
-
LexiconArn: smithy_client_1.expectString(output.LexiconArn),
|
|
1011
|
-
Size: smithy_client_1.expectInt32(output.Size),
|
|
1009
|
+
LexemesCount: (0, smithy_client_1.expectInt32)(output.LexemesCount),
|
|
1010
|
+
LexiconArn: (0, smithy_client_1.expectString)(output.LexiconArn),
|
|
1011
|
+
Size: (0, smithy_client_1.expectInt32)(output.Size),
|
|
1012
1012
|
};
|
|
1013
1013
|
};
|
|
1014
1014
|
const deserializeAws_restJson1LexiconDescription = (output, context) => {
|
|
@@ -1016,7 +1016,7 @@ const deserializeAws_restJson1LexiconDescription = (output, context) => {
|
|
|
1016
1016
|
Attributes: output.Attributes !== undefined && output.Attributes !== null
|
|
1017
1017
|
? deserializeAws_restJson1LexiconAttributes(output.Attributes, context)
|
|
1018
1018
|
: undefined,
|
|
1019
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1019
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1020
1020
|
};
|
|
1021
1021
|
};
|
|
1022
1022
|
const deserializeAws_restJson1LexiconDescriptionList = (output, context) => {
|
|
@@ -1037,7 +1037,7 @@ const deserializeAws_restJson1LexiconNameList = (output, context) => {
|
|
|
1037
1037
|
if (entry === null) {
|
|
1038
1038
|
return null;
|
|
1039
1039
|
}
|
|
1040
|
-
return smithy_client_1.expectString(entry);
|
|
1040
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1041
1041
|
});
|
|
1042
1042
|
return retVal;
|
|
1043
1043
|
};
|
|
@@ -1048,33 +1048,33 @@ const deserializeAws_restJson1SpeechMarkTypeList = (output, context) => {
|
|
|
1048
1048
|
if (entry === null) {
|
|
1049
1049
|
return null;
|
|
1050
1050
|
}
|
|
1051
|
-
return smithy_client_1.expectString(entry);
|
|
1051
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1052
1052
|
});
|
|
1053
1053
|
return retVal;
|
|
1054
1054
|
};
|
|
1055
1055
|
const deserializeAws_restJson1SynthesisTask = (output, context) => {
|
|
1056
1056
|
return {
|
|
1057
1057
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
1058
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
1058
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1059
1059
|
: undefined,
|
|
1060
|
-
Engine: smithy_client_1.expectString(output.Engine),
|
|
1061
|
-
LanguageCode: smithy_client_1.expectString(output.LanguageCode),
|
|
1060
|
+
Engine: (0, smithy_client_1.expectString)(output.Engine),
|
|
1061
|
+
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
1062
1062
|
LexiconNames: output.LexiconNames !== undefined && output.LexiconNames !== null
|
|
1063
1063
|
? deserializeAws_restJson1LexiconNameList(output.LexiconNames, context)
|
|
1064
1064
|
: undefined,
|
|
1065
|
-
OutputFormat: smithy_client_1.expectString(output.OutputFormat),
|
|
1066
|
-
OutputUri: smithy_client_1.expectString(output.OutputUri),
|
|
1067
|
-
RequestCharacters: smithy_client_1.expectInt32(output.RequestCharacters),
|
|
1068
|
-
SampleRate: smithy_client_1.expectString(output.SampleRate),
|
|
1069
|
-
SnsTopicArn: smithy_client_1.expectString(output.SnsTopicArn),
|
|
1065
|
+
OutputFormat: (0, smithy_client_1.expectString)(output.OutputFormat),
|
|
1066
|
+
OutputUri: (0, smithy_client_1.expectString)(output.OutputUri),
|
|
1067
|
+
RequestCharacters: (0, smithy_client_1.expectInt32)(output.RequestCharacters),
|
|
1068
|
+
SampleRate: (0, smithy_client_1.expectString)(output.SampleRate),
|
|
1069
|
+
SnsTopicArn: (0, smithy_client_1.expectString)(output.SnsTopicArn),
|
|
1070
1070
|
SpeechMarkTypes: output.SpeechMarkTypes !== undefined && output.SpeechMarkTypes !== null
|
|
1071
1071
|
? deserializeAws_restJson1SpeechMarkTypeList(output.SpeechMarkTypes, context)
|
|
1072
1072
|
: undefined,
|
|
1073
|
-
TaskId: smithy_client_1.expectString(output.TaskId),
|
|
1074
|
-
TaskStatus: smithy_client_1.expectString(output.TaskStatus),
|
|
1075
|
-
TaskStatusReason: smithy_client_1.expectString(output.TaskStatusReason),
|
|
1076
|
-
TextType: smithy_client_1.expectString(output.TextType),
|
|
1077
|
-
VoiceId: smithy_client_1.expectString(output.VoiceId),
|
|
1073
|
+
TaskId: (0, smithy_client_1.expectString)(output.TaskId),
|
|
1074
|
+
TaskStatus: (0, smithy_client_1.expectString)(output.TaskStatus),
|
|
1075
|
+
TaskStatusReason: (0, smithy_client_1.expectString)(output.TaskStatusReason),
|
|
1076
|
+
TextType: (0, smithy_client_1.expectString)(output.TextType),
|
|
1077
|
+
VoiceId: (0, smithy_client_1.expectString)(output.VoiceId),
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
1080
|
const deserializeAws_restJson1SynthesisTasks = (output, context) => {
|
|
@@ -1093,11 +1093,11 @@ const deserializeAws_restJson1Voice = (output, context) => {
|
|
|
1093
1093
|
AdditionalLanguageCodes: output.AdditionalLanguageCodes !== undefined && output.AdditionalLanguageCodes !== null
|
|
1094
1094
|
? deserializeAws_restJson1LanguageCodeList(output.AdditionalLanguageCodes, context)
|
|
1095
1095
|
: undefined,
|
|
1096
|
-
Gender: smithy_client_1.expectString(output.Gender),
|
|
1097
|
-
Id: smithy_client_1.expectString(output.Id),
|
|
1098
|
-
LanguageCode: smithy_client_1.expectString(output.LanguageCode),
|
|
1099
|
-
LanguageName: smithy_client_1.expectString(output.LanguageName),
|
|
1100
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1096
|
+
Gender: (0, smithy_client_1.expectString)(output.Gender),
|
|
1097
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1098
|
+
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
1099
|
+
LanguageName: (0, smithy_client_1.expectString)(output.LanguageName),
|
|
1100
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1101
1101
|
SupportedEngines: output.SupportedEngines !== undefined && output.SupportedEngines !== null
|
|
1102
1102
|
? deserializeAws_restJson1EngineList(output.SupportedEngines, context)
|
|
1103
1103
|
: undefined,
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|