@aws-sdk/client-voice-id 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +105 -174
- package/dist-es/protocols/Aws_json1_0.js +169 -175
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -235,7 +235,6 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
|
|
|
235
235
|
...output,
|
|
236
236
|
body: await parseBody(output.body, context),
|
|
237
237
|
};
|
|
238
|
-
let response;
|
|
239
238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
240
239
|
switch (errorCode) {
|
|
241
240
|
case "AccessDeniedException":
|
|
@@ -261,14 +260,12 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
|
|
|
261
260
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
262
261
|
default:
|
|
263
262
|
const parsedBody = parsedOutput.body;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
$metadata,
|
|
263
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
264
|
+
output,
|
|
265
|
+
parsedBody,
|
|
266
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
267
|
+
errorCode,
|
|
270
268
|
});
|
|
271
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
272
269
|
}
|
|
273
270
|
};
|
|
274
271
|
const deserializeAws_json1_0DeleteDomainCommand = async (output, context) => {
|
|
@@ -287,7 +284,6 @@ const deserializeAws_json1_0DeleteDomainCommandError = async (output, context) =
|
|
|
287
284
|
...output,
|
|
288
285
|
body: await parseBody(output.body, context),
|
|
289
286
|
};
|
|
290
|
-
let response;
|
|
291
287
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
288
|
switch (errorCode) {
|
|
293
289
|
case "AccessDeniedException":
|
|
@@ -310,14 +306,12 @@ const deserializeAws_json1_0DeleteDomainCommandError = async (output, context) =
|
|
|
310
306
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
311
307
|
default:
|
|
312
308
|
const parsedBody = parsedOutput.body;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
$metadata,
|
|
309
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
310
|
+
output,
|
|
311
|
+
parsedBody,
|
|
312
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
313
|
+
errorCode,
|
|
319
314
|
});
|
|
320
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
321
315
|
}
|
|
322
316
|
};
|
|
323
317
|
const deserializeAws_json1_0DeleteFraudsterCommand = async (output, context) => {
|
|
@@ -336,7 +330,6 @@ const deserializeAws_json1_0DeleteFraudsterCommandError = async (output, context
|
|
|
336
330
|
...output,
|
|
337
331
|
body: await parseBody(output.body, context),
|
|
338
332
|
};
|
|
339
|
-
let response;
|
|
340
333
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
341
334
|
switch (errorCode) {
|
|
342
335
|
case "AccessDeniedException":
|
|
@@ -359,14 +352,12 @@ const deserializeAws_json1_0DeleteFraudsterCommandError = async (output, context
|
|
|
359
352
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
360
353
|
default:
|
|
361
354
|
const parsedBody = parsedOutput.body;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
$metadata,
|
|
355
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
356
|
+
output,
|
|
357
|
+
parsedBody,
|
|
358
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
359
|
+
errorCode,
|
|
368
360
|
});
|
|
369
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
370
361
|
}
|
|
371
362
|
};
|
|
372
363
|
const deserializeAws_json1_0DeleteSpeakerCommand = async (output, context) => {
|
|
@@ -385,7 +376,6 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
|
|
|
385
376
|
...output,
|
|
386
377
|
body: await parseBody(output.body, context),
|
|
387
378
|
};
|
|
388
|
-
let response;
|
|
389
379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
380
|
switch (errorCode) {
|
|
391
381
|
case "AccessDeniedException":
|
|
@@ -408,14 +398,12 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
|
|
|
408
398
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
409
399
|
default:
|
|
410
400
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
$metadata,
|
|
401
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
402
|
+
output,
|
|
403
|
+
parsedBody,
|
|
404
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
405
|
+
errorCode,
|
|
417
406
|
});
|
|
418
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
419
407
|
}
|
|
420
408
|
};
|
|
421
409
|
const deserializeAws_json1_0DescribeDomainCommand = async (output, context) => {
|
|
@@ -437,7 +425,6 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
|
|
|
437
425
|
...output,
|
|
438
426
|
body: await parseBody(output.body, context),
|
|
439
427
|
};
|
|
440
|
-
let response;
|
|
441
428
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
429
|
switch (errorCode) {
|
|
443
430
|
case "AccessDeniedException":
|
|
@@ -457,14 +444,12 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
|
|
|
457
444
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
458
445
|
default:
|
|
459
446
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
$metadata,
|
|
447
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
448
|
+
output,
|
|
449
|
+
parsedBody,
|
|
450
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
451
|
+
errorCode,
|
|
466
452
|
});
|
|
467
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
468
453
|
}
|
|
469
454
|
};
|
|
470
455
|
const deserializeAws_json1_0DescribeFraudsterCommand = async (output, context) => {
|
|
@@ -486,7 +471,6 @@ const deserializeAws_json1_0DescribeFraudsterCommandError = async (output, conte
|
|
|
486
471
|
...output,
|
|
487
472
|
body: await parseBody(output.body, context),
|
|
488
473
|
};
|
|
489
|
-
let response;
|
|
490
474
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
475
|
switch (errorCode) {
|
|
492
476
|
case "AccessDeniedException":
|
|
@@ -506,14 +490,12 @@ const deserializeAws_json1_0DescribeFraudsterCommandError = async (output, conte
|
|
|
506
490
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
507
491
|
default:
|
|
508
492
|
const parsedBody = parsedOutput.body;
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
$metadata,
|
|
493
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
494
|
+
output,
|
|
495
|
+
parsedBody,
|
|
496
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
497
|
+
errorCode,
|
|
515
498
|
});
|
|
516
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
517
499
|
}
|
|
518
500
|
};
|
|
519
501
|
const deserializeAws_json1_0DescribeFraudsterRegistrationJobCommand = async (output, context) => {
|
|
@@ -535,7 +517,6 @@ const deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError = async
|
|
|
535
517
|
...output,
|
|
536
518
|
body: await parseBody(output.body, context),
|
|
537
519
|
};
|
|
538
|
-
let response;
|
|
539
520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
521
|
switch (errorCode) {
|
|
541
522
|
case "AccessDeniedException":
|
|
@@ -555,14 +536,12 @@ const deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError = async
|
|
|
555
536
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
556
537
|
default:
|
|
557
538
|
const parsedBody = parsedOutput.body;
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
$metadata,
|
|
539
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
540
|
+
output,
|
|
541
|
+
parsedBody,
|
|
542
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
543
|
+
errorCode,
|
|
564
544
|
});
|
|
565
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
566
545
|
}
|
|
567
546
|
};
|
|
568
547
|
const deserializeAws_json1_0DescribeSpeakerCommand = async (output, context) => {
|
|
@@ -584,7 +563,6 @@ const deserializeAws_json1_0DescribeSpeakerCommandError = async (output, context
|
|
|
584
563
|
...output,
|
|
585
564
|
body: await parseBody(output.body, context),
|
|
586
565
|
};
|
|
587
|
-
let response;
|
|
588
566
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
567
|
switch (errorCode) {
|
|
590
568
|
case "AccessDeniedException":
|
|
@@ -604,14 +582,12 @@ const deserializeAws_json1_0DescribeSpeakerCommandError = async (output, context
|
|
|
604
582
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
605
583
|
default:
|
|
606
584
|
const parsedBody = parsedOutput.body;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
$metadata,
|
|
585
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
586
|
+
output,
|
|
587
|
+
parsedBody,
|
|
588
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
589
|
+
errorCode,
|
|
613
590
|
});
|
|
614
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
615
591
|
}
|
|
616
592
|
};
|
|
617
593
|
const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
@@ -633,7 +609,6 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
|
|
|
633
609
|
...output,
|
|
634
610
|
body: await parseBody(output.body, context),
|
|
635
611
|
};
|
|
636
|
-
let response;
|
|
637
612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
613
|
switch (errorCode) {
|
|
639
614
|
case "AccessDeniedException":
|
|
@@ -653,14 +628,12 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
|
|
|
653
628
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
654
629
|
default:
|
|
655
630
|
const parsedBody = parsedOutput.body;
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
$metadata,
|
|
631
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
632
|
+
output,
|
|
633
|
+
parsedBody,
|
|
634
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
635
|
+
errorCode,
|
|
662
636
|
});
|
|
663
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
664
637
|
}
|
|
665
638
|
};
|
|
666
639
|
const deserializeAws_json1_0EvaluateSessionCommand = async (output, context) => {
|
|
@@ -682,7 +655,6 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
682
655
|
...output,
|
|
683
656
|
body: await parseBody(output.body, context),
|
|
684
657
|
};
|
|
685
|
-
let response;
|
|
686
658
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
659
|
switch (errorCode) {
|
|
688
660
|
case "AccessDeniedException":
|
|
@@ -705,14 +677,12 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
705
677
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
706
678
|
default:
|
|
707
679
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
$metadata,
|
|
680
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
681
|
+
output,
|
|
682
|
+
parsedBody,
|
|
683
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
684
|
+
errorCode,
|
|
714
685
|
});
|
|
715
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
716
686
|
}
|
|
717
687
|
};
|
|
718
688
|
const deserializeAws_json1_0ListDomainsCommand = async (output, context) => {
|
|
@@ -734,7 +704,6 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
734
704
|
...output,
|
|
735
705
|
body: await parseBody(output.body, context),
|
|
736
706
|
};
|
|
737
|
-
let response;
|
|
738
707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
708
|
switch (errorCode) {
|
|
740
709
|
case "AccessDeniedException":
|
|
@@ -751,14 +720,12 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
751
720
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
752
721
|
default:
|
|
753
722
|
const parsedBody = parsedOutput.body;
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
$metadata,
|
|
723
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
724
|
+
output,
|
|
725
|
+
parsedBody,
|
|
726
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
727
|
+
errorCode,
|
|
760
728
|
});
|
|
761
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
762
729
|
}
|
|
763
730
|
};
|
|
764
731
|
const deserializeAws_json1_0ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
@@ -780,7 +747,6 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
|
|
|
780
747
|
...output,
|
|
781
748
|
body: await parseBody(output.body, context),
|
|
782
749
|
};
|
|
783
|
-
let response;
|
|
784
750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
751
|
switch (errorCode) {
|
|
786
752
|
case "AccessDeniedException":
|
|
@@ -800,14 +766,12 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
|
|
|
800
766
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
801
767
|
default:
|
|
802
768
|
const parsedBody = parsedOutput.body;
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
$metadata,
|
|
769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
770
|
+
output,
|
|
771
|
+
parsedBody,
|
|
772
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
773
|
+
errorCode,
|
|
809
774
|
});
|
|
810
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
811
775
|
}
|
|
812
776
|
};
|
|
813
777
|
const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
@@ -829,7 +793,6 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
|
|
|
829
793
|
...output,
|
|
830
794
|
body: await parseBody(output.body, context),
|
|
831
795
|
};
|
|
832
|
-
let response;
|
|
833
796
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
797
|
switch (errorCode) {
|
|
835
798
|
case "AccessDeniedException":
|
|
@@ -849,14 +812,12 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
|
|
|
849
812
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
850
813
|
default:
|
|
851
814
|
const parsedBody = parsedOutput.body;
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
$metadata,
|
|
815
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
816
|
+
output,
|
|
817
|
+
parsedBody,
|
|
818
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
819
|
+
errorCode,
|
|
858
820
|
});
|
|
859
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
860
821
|
}
|
|
861
822
|
};
|
|
862
823
|
const deserializeAws_json1_0ListSpeakersCommand = async (output, context) => {
|
|
@@ -878,7 +839,6 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
|
|
|
878
839
|
...output,
|
|
879
840
|
body: await parseBody(output.body, context),
|
|
880
841
|
};
|
|
881
|
-
let response;
|
|
882
842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
843
|
switch (errorCode) {
|
|
884
844
|
case "AccessDeniedException":
|
|
@@ -898,14 +858,12 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
|
|
|
898
858
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
899
859
|
default:
|
|
900
860
|
const parsedBody = parsedOutput.body;
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
$metadata,
|
|
861
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
862
|
+
output,
|
|
863
|
+
parsedBody,
|
|
864
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
865
|
+
errorCode,
|
|
907
866
|
});
|
|
908
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
909
867
|
}
|
|
910
868
|
};
|
|
911
869
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -927,7 +885,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
927
885
|
...output,
|
|
928
886
|
body: await parseBody(output.body, context),
|
|
929
887
|
};
|
|
930
|
-
let response;
|
|
931
888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
889
|
switch (errorCode) {
|
|
933
890
|
case "AccessDeniedException":
|
|
@@ -947,14 +904,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
947
904
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
948
905
|
default:
|
|
949
906
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
$metadata,
|
|
907
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
908
|
+
output,
|
|
909
|
+
parsedBody,
|
|
910
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
911
|
+
errorCode,
|
|
956
912
|
});
|
|
957
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
958
913
|
}
|
|
959
914
|
};
|
|
960
915
|
const deserializeAws_json1_0OptOutSpeakerCommand = async (output, context) => {
|
|
@@ -976,7 +931,6 @@ const deserializeAws_json1_0OptOutSpeakerCommandError = async (output, context)
|
|
|
976
931
|
...output,
|
|
977
932
|
body: await parseBody(output.body, context),
|
|
978
933
|
};
|
|
979
|
-
let response;
|
|
980
934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
935
|
switch (errorCode) {
|
|
982
936
|
case "AccessDeniedException":
|
|
@@ -999,14 +953,12 @@ const deserializeAws_json1_0OptOutSpeakerCommandError = async (output, context)
|
|
|
999
953
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1000
954
|
default:
|
|
1001
955
|
const parsedBody = parsedOutput.body;
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
$metadata,
|
|
956
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
957
|
+
output,
|
|
958
|
+
parsedBody,
|
|
959
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
960
|
+
errorCode,
|
|
1008
961
|
});
|
|
1009
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1010
962
|
}
|
|
1011
963
|
};
|
|
1012
964
|
const deserializeAws_json1_0StartFraudsterRegistrationJobCommand = async (output, context) => {
|
|
@@ -1028,7 +980,6 @@ const deserializeAws_json1_0StartFraudsterRegistrationJobCommandError = async (o
|
|
|
1028
980
|
...output,
|
|
1029
981
|
body: await parseBody(output.body, context),
|
|
1030
982
|
};
|
|
1031
|
-
let response;
|
|
1032
983
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
984
|
switch (errorCode) {
|
|
1034
985
|
case "AccessDeniedException":
|
|
@@ -1054,14 +1005,12 @@ const deserializeAws_json1_0StartFraudsterRegistrationJobCommandError = async (o
|
|
|
1054
1005
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1055
1006
|
default:
|
|
1056
1007
|
const parsedBody = parsedOutput.body;
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
$metadata,
|
|
1008
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1009
|
+
output,
|
|
1010
|
+
parsedBody,
|
|
1011
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1012
|
+
errorCode,
|
|
1063
1013
|
});
|
|
1064
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1065
1014
|
}
|
|
1066
1015
|
};
|
|
1067
1016
|
const deserializeAws_json1_0StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
@@ -1083,7 +1032,6 @@ const deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError = async (outpu
|
|
|
1083
1032
|
...output,
|
|
1084
1033
|
body: await parseBody(output.body, context),
|
|
1085
1034
|
};
|
|
1086
|
-
let response;
|
|
1087
1035
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
1036
|
switch (errorCode) {
|
|
1089
1037
|
case "AccessDeniedException":
|
|
@@ -1109,14 +1057,12 @@ const deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError = async (outpu
|
|
|
1109
1057
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1110
1058
|
default:
|
|
1111
1059
|
const parsedBody = parsedOutput.body;
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
$metadata,
|
|
1060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1061
|
+
output,
|
|
1062
|
+
parsedBody,
|
|
1063
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1064
|
+
errorCode,
|
|
1118
1065
|
});
|
|
1119
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1120
1066
|
}
|
|
1121
1067
|
};
|
|
1122
1068
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -1138,7 +1084,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1138
1084
|
...output,
|
|
1139
1085
|
body: await parseBody(output.body, context),
|
|
1140
1086
|
};
|
|
1141
|
-
let response;
|
|
1142
1087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
1088
|
switch (errorCode) {
|
|
1144
1089
|
case "AccessDeniedException":
|
|
@@ -1161,14 +1106,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1161
1106
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1162
1107
|
default:
|
|
1163
1108
|
const parsedBody = parsedOutput.body;
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
$metadata,
|
|
1109
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1110
|
+
output,
|
|
1111
|
+
parsedBody,
|
|
1112
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1113
|
+
errorCode,
|
|
1170
1114
|
});
|
|
1171
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1172
1115
|
}
|
|
1173
1116
|
};
|
|
1174
1117
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -1190,7 +1133,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1190
1133
|
...output,
|
|
1191
1134
|
body: await parseBody(output.body, context),
|
|
1192
1135
|
};
|
|
1193
|
-
let response;
|
|
1194
1136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1195
1137
|
switch (errorCode) {
|
|
1196
1138
|
case "AccessDeniedException":
|
|
@@ -1213,14 +1155,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1213
1155
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1214
1156
|
default:
|
|
1215
1157
|
const parsedBody = parsedOutput.body;
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
$metadata,
|
|
1158
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1159
|
+
output,
|
|
1160
|
+
parsedBody,
|
|
1161
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1162
|
+
errorCode,
|
|
1222
1163
|
});
|
|
1223
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1224
1164
|
}
|
|
1225
1165
|
};
|
|
1226
1166
|
const deserializeAws_json1_0UpdateDomainCommand = async (output, context) => {
|
|
@@ -1242,7 +1182,6 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
|
|
|
1242
1182
|
...output,
|
|
1243
1183
|
body: await parseBody(output.body, context),
|
|
1244
1184
|
};
|
|
1245
|
-
let response;
|
|
1246
1185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
1186
|
switch (errorCode) {
|
|
1248
1187
|
case "AccessDeniedException":
|
|
@@ -1265,14 +1204,12 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
|
|
|
1265
1204
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1266
1205
|
default:
|
|
1267
1206
|
const parsedBody = parsedOutput.body;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
$metadata,
|
|
1207
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1208
|
+
output,
|
|
1209
|
+
parsedBody,
|
|
1210
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1211
|
+
errorCode,
|
|
1274
1212
|
});
|
|
1275
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1276
1213
|
}
|
|
1277
1214
|
};
|
|
1278
1215
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1528,9 +1465,6 @@ const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
|
1528
1465
|
return input
|
|
1529
1466
|
.filter((e) => e != null)
|
|
1530
1467
|
.map((entry) => {
|
|
1531
|
-
if (entry === null) {
|
|
1532
|
-
return null;
|
|
1533
|
-
}
|
|
1534
1468
|
return entry;
|
|
1535
1469
|
});
|
|
1536
1470
|
};
|
|
@@ -1538,9 +1472,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1538
1472
|
return input
|
|
1539
1473
|
.filter((e) => e != null)
|
|
1540
1474
|
.map((entry) => {
|
|
1541
|
-
if (entry === null) {
|
|
1542
|
-
return null;
|
|
1543
|
-
}
|
|
1544
1475
|
return serializeAws_json1_0Tag(entry, context);
|
|
1545
1476
|
});
|
|
1546
1477
|
};
|