@aws-sdk/client-transcribe 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_1.js +199 -349
- package/dist-es/protocols/Aws_json1_1.js +317 -350
- package/package.json +6 -6
|
@@ -415,7 +415,6 @@ const deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = async (out
|
|
|
415
415
|
...output,
|
|
416
416
|
body: await parseBody(output.body, context),
|
|
417
417
|
};
|
|
418
|
-
let response;
|
|
419
418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
419
|
switch (errorCode) {
|
|
421
420
|
case "BadRequestException":
|
|
@@ -432,14 +431,12 @@ const deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = async (out
|
|
|
432
431
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
433
432
|
default:
|
|
434
433
|
const parsedBody = parsedOutput.body;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
$metadata,
|
|
434
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
435
|
+
output,
|
|
436
|
+
parsedBody,
|
|
437
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
438
|
+
errorCode,
|
|
441
439
|
});
|
|
442
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
443
440
|
}
|
|
444
441
|
};
|
|
445
442
|
const deserializeAws_json1_1CreateLanguageModelCommand = async (output, context) => {
|
|
@@ -461,7 +458,6 @@ const deserializeAws_json1_1CreateLanguageModelCommandError = async (output, con
|
|
|
461
458
|
...output,
|
|
462
459
|
body: await parseBody(output.body, context),
|
|
463
460
|
};
|
|
464
|
-
let response;
|
|
465
461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
466
462
|
switch (errorCode) {
|
|
467
463
|
case "BadRequestException":
|
|
@@ -478,14 +474,12 @@ const deserializeAws_json1_1CreateLanguageModelCommandError = async (output, con
|
|
|
478
474
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
479
475
|
default:
|
|
480
476
|
const parsedBody = parsedOutput.body;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
$metadata,
|
|
477
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
478
|
+
output,
|
|
479
|
+
parsedBody,
|
|
480
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
481
|
+
errorCode,
|
|
487
482
|
});
|
|
488
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
489
483
|
}
|
|
490
484
|
};
|
|
491
485
|
const deserializeAws_json1_1CreateMedicalVocabularyCommand = async (output, context) => {
|
|
@@ -507,7 +501,6 @@ const deserializeAws_json1_1CreateMedicalVocabularyCommandError = async (output,
|
|
|
507
501
|
...output,
|
|
508
502
|
body: await parseBody(output.body, context),
|
|
509
503
|
};
|
|
510
|
-
let response;
|
|
511
504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
505
|
switch (errorCode) {
|
|
513
506
|
case "BadRequestException":
|
|
@@ -524,14 +517,12 @@ const deserializeAws_json1_1CreateMedicalVocabularyCommandError = async (output,
|
|
|
524
517
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
525
518
|
default:
|
|
526
519
|
const parsedBody = parsedOutput.body;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
$metadata,
|
|
520
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
521
|
+
output,
|
|
522
|
+
parsedBody,
|
|
523
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
524
|
+
errorCode,
|
|
533
525
|
});
|
|
534
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
535
526
|
}
|
|
536
527
|
};
|
|
537
528
|
const deserializeAws_json1_1CreateVocabularyCommand = async (output, context) => {
|
|
@@ -553,7 +544,6 @@ const deserializeAws_json1_1CreateVocabularyCommandError = async (output, contex
|
|
|
553
544
|
...output,
|
|
554
545
|
body: await parseBody(output.body, context),
|
|
555
546
|
};
|
|
556
|
-
let response;
|
|
557
547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
548
|
switch (errorCode) {
|
|
559
549
|
case "BadRequestException":
|
|
@@ -570,14 +560,12 @@ const deserializeAws_json1_1CreateVocabularyCommandError = async (output, contex
|
|
|
570
560
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
571
561
|
default:
|
|
572
562
|
const parsedBody = parsedOutput.body;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
$metadata,
|
|
563
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
564
|
+
output,
|
|
565
|
+
parsedBody,
|
|
566
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
567
|
+
errorCode,
|
|
579
568
|
});
|
|
580
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
581
569
|
}
|
|
582
570
|
};
|
|
583
571
|
const deserializeAws_json1_1CreateVocabularyFilterCommand = async (output, context) => {
|
|
@@ -599,7 +587,6 @@ const deserializeAws_json1_1CreateVocabularyFilterCommandError = async (output,
|
|
|
599
587
|
...output,
|
|
600
588
|
body: await parseBody(output.body, context),
|
|
601
589
|
};
|
|
602
|
-
let response;
|
|
603
590
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
591
|
switch (errorCode) {
|
|
605
592
|
case "BadRequestException":
|
|
@@ -616,14 +603,12 @@ const deserializeAws_json1_1CreateVocabularyFilterCommandError = async (output,
|
|
|
616
603
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
617
604
|
default:
|
|
618
605
|
const parsedBody = parsedOutput.body;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
$metadata,
|
|
606
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
607
|
+
output,
|
|
608
|
+
parsedBody,
|
|
609
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
610
|
+
errorCode,
|
|
625
611
|
});
|
|
626
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
627
612
|
}
|
|
628
613
|
};
|
|
629
614
|
const deserializeAws_json1_1DeleteCallAnalyticsCategoryCommand = async (output, context) => {
|
|
@@ -645,7 +630,6 @@ const deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = async (out
|
|
|
645
630
|
...output,
|
|
646
631
|
body: await parseBody(output.body, context),
|
|
647
632
|
};
|
|
648
|
-
let response;
|
|
649
633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
634
|
switch (errorCode) {
|
|
651
635
|
case "BadRequestException":
|
|
@@ -662,14 +646,12 @@ const deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = async (out
|
|
|
662
646
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
663
647
|
default:
|
|
664
648
|
const parsedBody = parsedOutput.body;
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
$metadata,
|
|
649
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
650
|
+
output,
|
|
651
|
+
parsedBody,
|
|
652
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
653
|
+
errorCode,
|
|
671
654
|
});
|
|
672
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
673
655
|
}
|
|
674
656
|
};
|
|
675
657
|
const deserializeAws_json1_1DeleteCallAnalyticsJobCommand = async (output, context) => {
|
|
@@ -691,7 +673,6 @@ const deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = async (output,
|
|
|
691
673
|
...output,
|
|
692
674
|
body: await parseBody(output.body, context),
|
|
693
675
|
};
|
|
694
|
-
let response;
|
|
695
676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
677
|
switch (errorCode) {
|
|
697
678
|
case "BadRequestException":
|
|
@@ -705,14 +686,12 @@ const deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = async (output,
|
|
|
705
686
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
706
687
|
default:
|
|
707
688
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
$metadata,
|
|
689
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
690
|
+
output,
|
|
691
|
+
parsedBody,
|
|
692
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
693
|
+
errorCode,
|
|
714
694
|
});
|
|
715
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
716
695
|
}
|
|
717
696
|
};
|
|
718
697
|
const deserializeAws_json1_1DeleteLanguageModelCommand = async (output, context) => {
|
|
@@ -731,7 +710,6 @@ const deserializeAws_json1_1DeleteLanguageModelCommandError = async (output, con
|
|
|
731
710
|
...output,
|
|
732
711
|
body: await parseBody(output.body, context),
|
|
733
712
|
};
|
|
734
|
-
let response;
|
|
735
713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
714
|
switch (errorCode) {
|
|
737
715
|
case "BadRequestException":
|
|
@@ -745,14 +723,12 @@ const deserializeAws_json1_1DeleteLanguageModelCommandError = async (output, con
|
|
|
745
723
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
746
724
|
default:
|
|
747
725
|
const parsedBody = parsedOutput.body;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
$metadata,
|
|
726
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
727
|
+
output,
|
|
728
|
+
parsedBody,
|
|
729
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
730
|
+
errorCode,
|
|
754
731
|
});
|
|
755
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
756
732
|
}
|
|
757
733
|
};
|
|
758
734
|
const deserializeAws_json1_1DeleteMedicalTranscriptionJobCommand = async (output, context) => {
|
|
@@ -771,7 +747,6 @@ const deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = async (o
|
|
|
771
747
|
...output,
|
|
772
748
|
body: await parseBody(output.body, context),
|
|
773
749
|
};
|
|
774
|
-
let response;
|
|
775
750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
751
|
switch (errorCode) {
|
|
777
752
|
case "BadRequestException":
|
|
@@ -785,14 +760,12 @@ const deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = async (o
|
|
|
785
760
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
786
761
|
default:
|
|
787
762
|
const parsedBody = parsedOutput.body;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
$metadata,
|
|
763
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
764
|
+
output,
|
|
765
|
+
parsedBody,
|
|
766
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
767
|
+
errorCode,
|
|
794
768
|
});
|
|
795
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
796
769
|
}
|
|
797
770
|
};
|
|
798
771
|
const deserializeAws_json1_1DeleteMedicalVocabularyCommand = async (output, context) => {
|
|
@@ -811,7 +784,6 @@ const deserializeAws_json1_1DeleteMedicalVocabularyCommandError = async (output,
|
|
|
811
784
|
...output,
|
|
812
785
|
body: await parseBody(output.body, context),
|
|
813
786
|
};
|
|
814
|
-
let response;
|
|
815
787
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
788
|
switch (errorCode) {
|
|
817
789
|
case "BadRequestException":
|
|
@@ -828,14 +800,12 @@ const deserializeAws_json1_1DeleteMedicalVocabularyCommandError = async (output,
|
|
|
828
800
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
829
801
|
default:
|
|
830
802
|
const parsedBody = parsedOutput.body;
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
$metadata,
|
|
803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
804
|
+
output,
|
|
805
|
+
parsedBody,
|
|
806
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
807
|
+
errorCode,
|
|
837
808
|
});
|
|
838
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
839
809
|
}
|
|
840
810
|
};
|
|
841
811
|
const deserializeAws_json1_1DeleteTranscriptionJobCommand = async (output, context) => {
|
|
@@ -854,7 +824,6 @@ const deserializeAws_json1_1DeleteTranscriptionJobCommandError = async (output,
|
|
|
854
824
|
...output,
|
|
855
825
|
body: await parseBody(output.body, context),
|
|
856
826
|
};
|
|
857
|
-
let response;
|
|
858
827
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
828
|
switch (errorCode) {
|
|
860
829
|
case "BadRequestException":
|
|
@@ -868,14 +837,12 @@ const deserializeAws_json1_1DeleteTranscriptionJobCommandError = async (output,
|
|
|
868
837
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
869
838
|
default:
|
|
870
839
|
const parsedBody = parsedOutput.body;
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
$metadata,
|
|
840
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
841
|
+
output,
|
|
842
|
+
parsedBody,
|
|
843
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
844
|
+
errorCode,
|
|
877
845
|
});
|
|
878
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
879
846
|
}
|
|
880
847
|
};
|
|
881
848
|
const deserializeAws_json1_1DeleteVocabularyCommand = async (output, context) => {
|
|
@@ -894,7 +861,6 @@ const deserializeAws_json1_1DeleteVocabularyCommandError = async (output, contex
|
|
|
894
861
|
...output,
|
|
895
862
|
body: await parseBody(output.body, context),
|
|
896
863
|
};
|
|
897
|
-
let response;
|
|
898
864
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
865
|
switch (errorCode) {
|
|
900
866
|
case "BadRequestException":
|
|
@@ -911,14 +877,12 @@ const deserializeAws_json1_1DeleteVocabularyCommandError = async (output, contex
|
|
|
911
877
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
912
878
|
default:
|
|
913
879
|
const parsedBody = parsedOutput.body;
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
$metadata,
|
|
880
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
881
|
+
output,
|
|
882
|
+
parsedBody,
|
|
883
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
884
|
+
errorCode,
|
|
920
885
|
});
|
|
921
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
922
886
|
}
|
|
923
887
|
};
|
|
924
888
|
const deserializeAws_json1_1DeleteVocabularyFilterCommand = async (output, context) => {
|
|
@@ -937,7 +901,6 @@ const deserializeAws_json1_1DeleteVocabularyFilterCommandError = async (output,
|
|
|
937
901
|
...output,
|
|
938
902
|
body: await parseBody(output.body, context),
|
|
939
903
|
};
|
|
940
|
-
let response;
|
|
941
904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
905
|
switch (errorCode) {
|
|
943
906
|
case "BadRequestException":
|
|
@@ -954,14 +917,12 @@ const deserializeAws_json1_1DeleteVocabularyFilterCommandError = async (output,
|
|
|
954
917
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
955
918
|
default:
|
|
956
919
|
const parsedBody = parsedOutput.body;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
$metadata,
|
|
920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
921
|
+
output,
|
|
922
|
+
parsedBody,
|
|
923
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
924
|
+
errorCode,
|
|
963
925
|
});
|
|
964
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
965
926
|
}
|
|
966
927
|
};
|
|
967
928
|
const deserializeAws_json1_1DescribeLanguageModelCommand = async (output, context) => {
|
|
@@ -983,7 +944,6 @@ const deserializeAws_json1_1DescribeLanguageModelCommandError = async (output, c
|
|
|
983
944
|
...output,
|
|
984
945
|
body: await parseBody(output.body, context),
|
|
985
946
|
};
|
|
986
|
-
let response;
|
|
987
947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
948
|
switch (errorCode) {
|
|
989
949
|
case "BadRequestException":
|
|
@@ -1000,14 +960,12 @@ const deserializeAws_json1_1DescribeLanguageModelCommandError = async (output, c
|
|
|
1000
960
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1001
961
|
default:
|
|
1002
962
|
const parsedBody = parsedOutput.body;
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
$metadata,
|
|
963
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
964
|
+
output,
|
|
965
|
+
parsedBody,
|
|
966
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
967
|
+
errorCode,
|
|
1009
968
|
});
|
|
1010
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1011
969
|
}
|
|
1012
970
|
};
|
|
1013
971
|
const deserializeAws_json1_1GetCallAnalyticsCategoryCommand = async (output, context) => {
|
|
@@ -1029,7 +987,6 @@ const deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = async (output
|
|
|
1029
987
|
...output,
|
|
1030
988
|
body: await parseBody(output.body, context),
|
|
1031
989
|
};
|
|
1032
|
-
let response;
|
|
1033
990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
991
|
switch (errorCode) {
|
|
1035
992
|
case "BadRequestException":
|
|
@@ -1046,14 +1003,12 @@ const deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = async (output
|
|
|
1046
1003
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1047
1004
|
default:
|
|
1048
1005
|
const parsedBody = parsedOutput.body;
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
$metadata,
|
|
1006
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1007
|
+
output,
|
|
1008
|
+
parsedBody,
|
|
1009
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1010
|
+
errorCode,
|
|
1055
1011
|
});
|
|
1056
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1057
1012
|
}
|
|
1058
1013
|
};
|
|
1059
1014
|
const deserializeAws_json1_1GetCallAnalyticsJobCommand = async (output, context) => {
|
|
@@ -1075,7 +1030,6 @@ const deserializeAws_json1_1GetCallAnalyticsJobCommandError = async (output, con
|
|
|
1075
1030
|
...output,
|
|
1076
1031
|
body: await parseBody(output.body, context),
|
|
1077
1032
|
};
|
|
1078
|
-
let response;
|
|
1079
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
1034
|
switch (errorCode) {
|
|
1081
1035
|
case "BadRequestException":
|
|
@@ -1092,14 +1046,12 @@ const deserializeAws_json1_1GetCallAnalyticsJobCommandError = async (output, con
|
|
|
1092
1046
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1093
1047
|
default:
|
|
1094
1048
|
const parsedBody = parsedOutput.body;
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
$metadata,
|
|
1049
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1050
|
+
output,
|
|
1051
|
+
parsedBody,
|
|
1052
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1053
|
+
errorCode,
|
|
1101
1054
|
});
|
|
1102
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1103
1055
|
}
|
|
1104
1056
|
};
|
|
1105
1057
|
const deserializeAws_json1_1GetMedicalTranscriptionJobCommand = async (output, context) => {
|
|
@@ -1121,7 +1073,6 @@ const deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = async (outp
|
|
|
1121
1073
|
...output,
|
|
1122
1074
|
body: await parseBody(output.body, context),
|
|
1123
1075
|
};
|
|
1124
|
-
let response;
|
|
1125
1076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
1077
|
switch (errorCode) {
|
|
1127
1078
|
case "BadRequestException":
|
|
@@ -1138,14 +1089,12 @@ const deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = async (outp
|
|
|
1138
1089
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1139
1090
|
default:
|
|
1140
1091
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
$metadata,
|
|
1092
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1093
|
+
output,
|
|
1094
|
+
parsedBody,
|
|
1095
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1096
|
+
errorCode,
|
|
1147
1097
|
});
|
|
1148
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1149
1098
|
}
|
|
1150
1099
|
};
|
|
1151
1100
|
const deserializeAws_json1_1GetMedicalVocabularyCommand = async (output, context) => {
|
|
@@ -1167,7 +1116,6 @@ const deserializeAws_json1_1GetMedicalVocabularyCommandError = async (output, co
|
|
|
1167
1116
|
...output,
|
|
1168
1117
|
body: await parseBody(output.body, context),
|
|
1169
1118
|
};
|
|
1170
|
-
let response;
|
|
1171
1119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
1120
|
switch (errorCode) {
|
|
1173
1121
|
case "BadRequestException":
|
|
@@ -1184,14 +1132,12 @@ const deserializeAws_json1_1GetMedicalVocabularyCommandError = async (output, co
|
|
|
1184
1132
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1185
1133
|
default:
|
|
1186
1134
|
const parsedBody = parsedOutput.body;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
$metadata,
|
|
1135
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1136
|
+
output,
|
|
1137
|
+
parsedBody,
|
|
1138
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1139
|
+
errorCode,
|
|
1193
1140
|
});
|
|
1194
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1195
1141
|
}
|
|
1196
1142
|
};
|
|
1197
1143
|
const deserializeAws_json1_1GetTranscriptionJobCommand = async (output, context) => {
|
|
@@ -1213,7 +1159,6 @@ const deserializeAws_json1_1GetTranscriptionJobCommandError = async (output, con
|
|
|
1213
1159
|
...output,
|
|
1214
1160
|
body: await parseBody(output.body, context),
|
|
1215
1161
|
};
|
|
1216
|
-
let response;
|
|
1217
1162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
1163
|
switch (errorCode) {
|
|
1219
1164
|
case "BadRequestException":
|
|
@@ -1230,14 +1175,12 @@ const deserializeAws_json1_1GetTranscriptionJobCommandError = async (output, con
|
|
|
1230
1175
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1231
1176
|
default:
|
|
1232
1177
|
const parsedBody = parsedOutput.body;
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
$metadata,
|
|
1178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1179
|
+
output,
|
|
1180
|
+
parsedBody,
|
|
1181
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1182
|
+
errorCode,
|
|
1239
1183
|
});
|
|
1240
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1241
1184
|
}
|
|
1242
1185
|
};
|
|
1243
1186
|
const deserializeAws_json1_1GetVocabularyCommand = async (output, context) => {
|
|
@@ -1259,7 +1202,6 @@ const deserializeAws_json1_1GetVocabularyCommandError = async (output, context)
|
|
|
1259
1202
|
...output,
|
|
1260
1203
|
body: await parseBody(output.body, context),
|
|
1261
1204
|
};
|
|
1262
|
-
let response;
|
|
1263
1205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
1206
|
switch (errorCode) {
|
|
1265
1207
|
case "BadRequestException":
|
|
@@ -1276,14 +1218,12 @@ const deserializeAws_json1_1GetVocabularyCommandError = async (output, context)
|
|
|
1276
1218
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1277
1219
|
default:
|
|
1278
1220
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata,
|
|
1221
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1222
|
+
output,
|
|
1223
|
+
parsedBody,
|
|
1224
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1225
|
+
errorCode,
|
|
1285
1226
|
});
|
|
1286
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1287
1227
|
}
|
|
1288
1228
|
};
|
|
1289
1229
|
const deserializeAws_json1_1GetVocabularyFilterCommand = async (output, context) => {
|
|
@@ -1305,7 +1245,6 @@ const deserializeAws_json1_1GetVocabularyFilterCommandError = async (output, con
|
|
|
1305
1245
|
...output,
|
|
1306
1246
|
body: await parseBody(output.body, context),
|
|
1307
1247
|
};
|
|
1308
|
-
let response;
|
|
1309
1248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1249
|
switch (errorCode) {
|
|
1311
1250
|
case "BadRequestException":
|
|
@@ -1322,14 +1261,12 @@ const deserializeAws_json1_1GetVocabularyFilterCommandError = async (output, con
|
|
|
1322
1261
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1323
1262
|
default:
|
|
1324
1263
|
const parsedBody = parsedOutput.body;
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
$metadata,
|
|
1264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1265
|
+
output,
|
|
1266
|
+
parsedBody,
|
|
1267
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1268
|
+
errorCode,
|
|
1331
1269
|
});
|
|
1332
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1333
1270
|
}
|
|
1334
1271
|
};
|
|
1335
1272
|
const deserializeAws_json1_1ListCallAnalyticsCategoriesCommand = async (output, context) => {
|
|
@@ -1351,7 +1288,6 @@ const deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = async (out
|
|
|
1351
1288
|
...output,
|
|
1352
1289
|
body: await parseBody(output.body, context),
|
|
1353
1290
|
};
|
|
1354
|
-
let response;
|
|
1355
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1292
|
switch (errorCode) {
|
|
1357
1293
|
case "BadRequestException":
|
|
@@ -1365,14 +1301,12 @@ const deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = async (out
|
|
|
1365
1301
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1366
1302
|
default:
|
|
1367
1303
|
const parsedBody = parsedOutput.body;
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
$metadata,
|
|
1304
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1305
|
+
output,
|
|
1306
|
+
parsedBody,
|
|
1307
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1308
|
+
errorCode,
|
|
1374
1309
|
});
|
|
1375
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1376
1310
|
}
|
|
1377
1311
|
};
|
|
1378
1312
|
const deserializeAws_json1_1ListCallAnalyticsJobsCommand = async (output, context) => {
|
|
@@ -1394,7 +1328,6 @@ const deserializeAws_json1_1ListCallAnalyticsJobsCommandError = async (output, c
|
|
|
1394
1328
|
...output,
|
|
1395
1329
|
body: await parseBody(output.body, context),
|
|
1396
1330
|
};
|
|
1397
|
-
let response;
|
|
1398
1331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
1332
|
switch (errorCode) {
|
|
1400
1333
|
case "BadRequestException":
|
|
@@ -1408,14 +1341,12 @@ const deserializeAws_json1_1ListCallAnalyticsJobsCommandError = async (output, c
|
|
|
1408
1341
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1409
1342
|
default:
|
|
1410
1343
|
const parsedBody = parsedOutput.body;
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
$metadata,
|
|
1344
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1345
|
+
output,
|
|
1346
|
+
parsedBody,
|
|
1347
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1348
|
+
errorCode,
|
|
1417
1349
|
});
|
|
1418
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1419
1350
|
}
|
|
1420
1351
|
};
|
|
1421
1352
|
const deserializeAws_json1_1ListLanguageModelsCommand = async (output, context) => {
|
|
@@ -1437,7 +1368,6 @@ const deserializeAws_json1_1ListLanguageModelsCommandError = async (output, cont
|
|
|
1437
1368
|
...output,
|
|
1438
1369
|
body: await parseBody(output.body, context),
|
|
1439
1370
|
};
|
|
1440
|
-
let response;
|
|
1441
1371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
1372
|
switch (errorCode) {
|
|
1443
1373
|
case "BadRequestException":
|
|
@@ -1451,14 +1381,12 @@ const deserializeAws_json1_1ListLanguageModelsCommandError = async (output, cont
|
|
|
1451
1381
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1452
1382
|
default:
|
|
1453
1383
|
const parsedBody = parsedOutput.body;
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
$metadata,
|
|
1384
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1385
|
+
output,
|
|
1386
|
+
parsedBody,
|
|
1387
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1388
|
+
errorCode,
|
|
1460
1389
|
});
|
|
1461
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1462
1390
|
}
|
|
1463
1391
|
};
|
|
1464
1392
|
const deserializeAws_json1_1ListMedicalTranscriptionJobsCommand = async (output, context) => {
|
|
@@ -1480,7 +1408,6 @@ const deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = async (ou
|
|
|
1480
1408
|
...output,
|
|
1481
1409
|
body: await parseBody(output.body, context),
|
|
1482
1410
|
};
|
|
1483
|
-
let response;
|
|
1484
1411
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
1412
|
switch (errorCode) {
|
|
1486
1413
|
case "BadRequestException":
|
|
@@ -1494,14 +1421,12 @@ const deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = async (ou
|
|
|
1494
1421
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1495
1422
|
default:
|
|
1496
1423
|
const parsedBody = parsedOutput.body;
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
$metadata,
|
|
1424
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1425
|
+
output,
|
|
1426
|
+
parsedBody,
|
|
1427
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1428
|
+
errorCode,
|
|
1503
1429
|
});
|
|
1504
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1505
1430
|
}
|
|
1506
1431
|
};
|
|
1507
1432
|
const deserializeAws_json1_1ListMedicalVocabulariesCommand = async (output, context) => {
|
|
@@ -1523,7 +1448,6 @@ const deserializeAws_json1_1ListMedicalVocabulariesCommandError = async (output,
|
|
|
1523
1448
|
...output,
|
|
1524
1449
|
body: await parseBody(output.body, context),
|
|
1525
1450
|
};
|
|
1526
|
-
let response;
|
|
1527
1451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
1452
|
switch (errorCode) {
|
|
1529
1453
|
case "BadRequestException":
|
|
@@ -1537,14 +1461,12 @@ const deserializeAws_json1_1ListMedicalVocabulariesCommandError = async (output,
|
|
|
1537
1461
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1538
1462
|
default:
|
|
1539
1463
|
const parsedBody = parsedOutput.body;
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
$metadata,
|
|
1464
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1465
|
+
output,
|
|
1466
|
+
parsedBody,
|
|
1467
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1468
|
+
errorCode,
|
|
1546
1469
|
});
|
|
1547
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1548
1470
|
}
|
|
1549
1471
|
};
|
|
1550
1472
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1566,7 +1488,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1566
1488
|
...output,
|
|
1567
1489
|
body: await parseBody(output.body, context),
|
|
1568
1490
|
};
|
|
1569
|
-
let response;
|
|
1570
1491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
1492
|
switch (errorCode) {
|
|
1572
1493
|
case "BadRequestException":
|
|
@@ -1583,14 +1504,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1583
1504
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1584
1505
|
default:
|
|
1585
1506
|
const parsedBody = parsedOutput.body;
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
$metadata,
|
|
1507
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1508
|
+
output,
|
|
1509
|
+
parsedBody,
|
|
1510
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1511
|
+
errorCode,
|
|
1592
1512
|
});
|
|
1593
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1594
1513
|
}
|
|
1595
1514
|
};
|
|
1596
1515
|
const deserializeAws_json1_1ListTranscriptionJobsCommand = async (output, context) => {
|
|
@@ -1612,7 +1531,6 @@ const deserializeAws_json1_1ListTranscriptionJobsCommandError = async (output, c
|
|
|
1612
1531
|
...output,
|
|
1613
1532
|
body: await parseBody(output.body, context),
|
|
1614
1533
|
};
|
|
1615
|
-
let response;
|
|
1616
1534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
1535
|
switch (errorCode) {
|
|
1618
1536
|
case "BadRequestException":
|
|
@@ -1626,14 +1544,12 @@ const deserializeAws_json1_1ListTranscriptionJobsCommandError = async (output, c
|
|
|
1626
1544
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1627
1545
|
default:
|
|
1628
1546
|
const parsedBody = parsedOutput.body;
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
$metadata,
|
|
1547
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1548
|
+
output,
|
|
1549
|
+
parsedBody,
|
|
1550
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1551
|
+
errorCode,
|
|
1635
1552
|
});
|
|
1636
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1637
1553
|
}
|
|
1638
1554
|
};
|
|
1639
1555
|
const deserializeAws_json1_1ListVocabulariesCommand = async (output, context) => {
|
|
@@ -1655,7 +1571,6 @@ const deserializeAws_json1_1ListVocabulariesCommandError = async (output, contex
|
|
|
1655
1571
|
...output,
|
|
1656
1572
|
body: await parseBody(output.body, context),
|
|
1657
1573
|
};
|
|
1658
|
-
let response;
|
|
1659
1574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1575
|
switch (errorCode) {
|
|
1661
1576
|
case "BadRequestException":
|
|
@@ -1669,14 +1584,12 @@ const deserializeAws_json1_1ListVocabulariesCommandError = async (output, contex
|
|
|
1669
1584
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1670
1585
|
default:
|
|
1671
1586
|
const parsedBody = parsedOutput.body;
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
$metadata,
|
|
1587
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1588
|
+
output,
|
|
1589
|
+
parsedBody,
|
|
1590
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1591
|
+
errorCode,
|
|
1678
1592
|
});
|
|
1679
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1680
1593
|
}
|
|
1681
1594
|
};
|
|
1682
1595
|
const deserializeAws_json1_1ListVocabularyFiltersCommand = async (output, context) => {
|
|
@@ -1698,7 +1611,6 @@ const deserializeAws_json1_1ListVocabularyFiltersCommandError = async (output, c
|
|
|
1698
1611
|
...output,
|
|
1699
1612
|
body: await parseBody(output.body, context),
|
|
1700
1613
|
};
|
|
1701
|
-
let response;
|
|
1702
1614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
1615
|
switch (errorCode) {
|
|
1704
1616
|
case "BadRequestException":
|
|
@@ -1712,14 +1624,12 @@ const deserializeAws_json1_1ListVocabularyFiltersCommandError = async (output, c
|
|
|
1712
1624
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1713
1625
|
default:
|
|
1714
1626
|
const parsedBody = parsedOutput.body;
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
$metadata,
|
|
1627
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1628
|
+
output,
|
|
1629
|
+
parsedBody,
|
|
1630
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1631
|
+
errorCode,
|
|
1721
1632
|
});
|
|
1722
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1723
1633
|
}
|
|
1724
1634
|
};
|
|
1725
1635
|
const deserializeAws_json1_1StartCallAnalyticsJobCommand = async (output, context) => {
|
|
@@ -1741,7 +1651,6 @@ const deserializeAws_json1_1StartCallAnalyticsJobCommandError = async (output, c
|
|
|
1741
1651
|
...output,
|
|
1742
1652
|
body: await parseBody(output.body, context),
|
|
1743
1653
|
};
|
|
1744
|
-
let response;
|
|
1745
1654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
1655
|
switch (errorCode) {
|
|
1747
1656
|
case "BadRequestException":
|
|
@@ -1758,14 +1667,12 @@ const deserializeAws_json1_1StartCallAnalyticsJobCommandError = async (output, c
|
|
|
1758
1667
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1759
1668
|
default:
|
|
1760
1669
|
const parsedBody = parsedOutput.body;
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
$metadata,
|
|
1670
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1671
|
+
output,
|
|
1672
|
+
parsedBody,
|
|
1673
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1674
|
+
errorCode,
|
|
1767
1675
|
});
|
|
1768
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1769
1676
|
}
|
|
1770
1677
|
};
|
|
1771
1678
|
const deserializeAws_json1_1StartMedicalTranscriptionJobCommand = async (output, context) => {
|
|
@@ -1787,7 +1694,6 @@ const deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = async (ou
|
|
|
1787
1694
|
...output,
|
|
1788
1695
|
body: await parseBody(output.body, context),
|
|
1789
1696
|
};
|
|
1790
|
-
let response;
|
|
1791
1697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
1698
|
switch (errorCode) {
|
|
1793
1699
|
case "BadRequestException":
|
|
@@ -1804,14 +1710,12 @@ const deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = async (ou
|
|
|
1804
1710
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1805
1711
|
default:
|
|
1806
1712
|
const parsedBody = parsedOutput.body;
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
$metadata,
|
|
1713
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1714
|
+
output,
|
|
1715
|
+
parsedBody,
|
|
1716
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1717
|
+
errorCode,
|
|
1813
1718
|
});
|
|
1814
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1815
1719
|
}
|
|
1816
1720
|
};
|
|
1817
1721
|
const deserializeAws_json1_1StartTranscriptionJobCommand = async (output, context) => {
|
|
@@ -1833,7 +1737,6 @@ const deserializeAws_json1_1StartTranscriptionJobCommandError = async (output, c
|
|
|
1833
1737
|
...output,
|
|
1834
1738
|
body: await parseBody(output.body, context),
|
|
1835
1739
|
};
|
|
1836
|
-
let response;
|
|
1837
1740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
1741
|
switch (errorCode) {
|
|
1839
1742
|
case "BadRequestException":
|
|
@@ -1850,14 +1753,12 @@ const deserializeAws_json1_1StartTranscriptionJobCommandError = async (output, c
|
|
|
1850
1753
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1851
1754
|
default:
|
|
1852
1755
|
const parsedBody = parsedOutput.body;
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
$metadata,
|
|
1756
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1757
|
+
output,
|
|
1758
|
+
parsedBody,
|
|
1759
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1760
|
+
errorCode,
|
|
1859
1761
|
});
|
|
1860
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1861
1762
|
}
|
|
1862
1763
|
};
|
|
1863
1764
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1879,7 +1780,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1879
1780
|
...output,
|
|
1880
1781
|
body: await parseBody(output.body, context),
|
|
1881
1782
|
};
|
|
1882
|
-
let response;
|
|
1883
1783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
1784
|
switch (errorCode) {
|
|
1885
1785
|
case "BadRequestException":
|
|
@@ -1899,14 +1799,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1899
1799
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1900
1800
|
default:
|
|
1901
1801
|
const parsedBody = parsedOutput.body;
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
$metadata,
|
|
1802
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1803
|
+
output,
|
|
1804
|
+
parsedBody,
|
|
1805
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1806
|
+
errorCode,
|
|
1908
1807
|
});
|
|
1909
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1910
1808
|
}
|
|
1911
1809
|
};
|
|
1912
1810
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1928,7 +1826,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1928
1826
|
...output,
|
|
1929
1827
|
body: await parseBody(output.body, context),
|
|
1930
1828
|
};
|
|
1931
|
-
let response;
|
|
1932
1829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
1830
|
switch (errorCode) {
|
|
1934
1831
|
case "BadRequestException":
|
|
@@ -1948,14 +1845,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1948
1845
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1949
1846
|
default:
|
|
1950
1847
|
const parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
$metadata,
|
|
1848
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1849
|
+
output,
|
|
1850
|
+
parsedBody,
|
|
1851
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1852
|
+
errorCode,
|
|
1957
1853
|
});
|
|
1958
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1959
1854
|
}
|
|
1960
1855
|
};
|
|
1961
1856
|
const deserializeAws_json1_1UpdateCallAnalyticsCategoryCommand = async (output, context) => {
|
|
@@ -1977,7 +1872,6 @@ const deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = async (out
|
|
|
1977
1872
|
...output,
|
|
1978
1873
|
body: await parseBody(output.body, context),
|
|
1979
1874
|
};
|
|
1980
|
-
let response;
|
|
1981
1875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1876
|
switch (errorCode) {
|
|
1983
1877
|
case "BadRequestException":
|
|
@@ -1997,14 +1891,12 @@ const deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = async (out
|
|
|
1997
1891
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1998
1892
|
default:
|
|
1999
1893
|
const parsedBody = parsedOutput.body;
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
$metadata,
|
|
1894
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1895
|
+
output,
|
|
1896
|
+
parsedBody,
|
|
1897
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1898
|
+
errorCode,
|
|
2006
1899
|
});
|
|
2007
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2008
1900
|
}
|
|
2009
1901
|
};
|
|
2010
1902
|
const deserializeAws_json1_1UpdateMedicalVocabularyCommand = async (output, context) => {
|
|
@@ -2026,7 +1918,6 @@ const deserializeAws_json1_1UpdateMedicalVocabularyCommandError = async (output,
|
|
|
2026
1918
|
...output,
|
|
2027
1919
|
body: await parseBody(output.body, context),
|
|
2028
1920
|
};
|
|
2029
|
-
let response;
|
|
2030
1921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
1922
|
switch (errorCode) {
|
|
2032
1923
|
case "BadRequestException":
|
|
@@ -2046,14 +1937,12 @@ const deserializeAws_json1_1UpdateMedicalVocabularyCommandError = async (output,
|
|
|
2046
1937
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2047
1938
|
default:
|
|
2048
1939
|
const parsedBody = parsedOutput.body;
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
$metadata,
|
|
1940
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1941
|
+
output,
|
|
1942
|
+
parsedBody,
|
|
1943
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1944
|
+
errorCode,
|
|
2055
1945
|
});
|
|
2056
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2057
1946
|
}
|
|
2058
1947
|
};
|
|
2059
1948
|
const deserializeAws_json1_1UpdateVocabularyCommand = async (output, context) => {
|
|
@@ -2075,7 +1964,6 @@ const deserializeAws_json1_1UpdateVocabularyCommandError = async (output, contex
|
|
|
2075
1964
|
...output,
|
|
2076
1965
|
body: await parseBody(output.body, context),
|
|
2077
1966
|
};
|
|
2078
|
-
let response;
|
|
2079
1967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
1968
|
switch (errorCode) {
|
|
2081
1969
|
case "BadRequestException":
|
|
@@ -2095,14 +1983,12 @@ const deserializeAws_json1_1UpdateVocabularyCommandError = async (output, contex
|
|
|
2095
1983
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2096
1984
|
default:
|
|
2097
1985
|
const parsedBody = parsedOutput.body;
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
$metadata,
|
|
1986
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1987
|
+
output,
|
|
1988
|
+
parsedBody,
|
|
1989
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1990
|
+
errorCode,
|
|
2104
1991
|
});
|
|
2105
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2106
1992
|
}
|
|
2107
1993
|
};
|
|
2108
1994
|
const deserializeAws_json1_1UpdateVocabularyFilterCommand = async (output, context) => {
|
|
@@ -2124,7 +2010,6 @@ const deserializeAws_json1_1UpdateVocabularyFilterCommandError = async (output,
|
|
|
2124
2010
|
...output,
|
|
2125
2011
|
body: await parseBody(output.body, context),
|
|
2126
2012
|
};
|
|
2127
|
-
let response;
|
|
2128
2013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
2014
|
switch (errorCode) {
|
|
2130
2015
|
case "BadRequestException":
|
|
@@ -2141,14 +2026,12 @@ const deserializeAws_json1_1UpdateVocabularyFilterCommandError = async (output,
|
|
|
2141
2026
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2142
2027
|
default:
|
|
2143
2028
|
const parsedBody = parsedOutput.body;
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
$metadata,
|
|
2029
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2030
|
+
output,
|
|
2031
|
+
parsedBody,
|
|
2032
|
+
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
2033
|
+
errorCode,
|
|
2150
2034
|
});
|
|
2151
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2152
2035
|
}
|
|
2153
2036
|
};
|
|
2154
2037
|
const deserializeAws_json1_1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2231,9 +2114,6 @@ const serializeAws_json1_1ChannelDefinitions = (input, context) => {
|
|
|
2231
2114
|
return input
|
|
2232
2115
|
.filter((e) => e != null)
|
|
2233
2116
|
.map((entry) => {
|
|
2234
|
-
if (entry === null) {
|
|
2235
|
-
return null;
|
|
2236
|
-
}
|
|
2237
2117
|
return serializeAws_json1_1ChannelDefinition(entry, context);
|
|
2238
2118
|
});
|
|
2239
2119
|
};
|
|
@@ -2432,9 +2312,6 @@ const serializeAws_json1_1LanguageOptions = (input, context) => {
|
|
|
2432
2312
|
return input
|
|
2433
2313
|
.filter((e) => e != null)
|
|
2434
2314
|
.map((entry) => {
|
|
2435
|
-
if (entry === null) {
|
|
2436
|
-
return null;
|
|
2437
|
-
}
|
|
2438
2315
|
return entry;
|
|
2439
2316
|
});
|
|
2440
2317
|
};
|
|
@@ -2541,9 +2418,6 @@ const serializeAws_json1_1Phrases = (input, context) => {
|
|
|
2541
2418
|
return input
|
|
2542
2419
|
.filter((e) => e != null)
|
|
2543
2420
|
.map((entry) => {
|
|
2544
|
-
if (entry === null) {
|
|
2545
|
-
return null;
|
|
2546
|
-
}
|
|
2547
2421
|
return entry;
|
|
2548
2422
|
});
|
|
2549
2423
|
};
|
|
@@ -2551,9 +2425,6 @@ const serializeAws_json1_1PiiEntityTypes = (input, context) => {
|
|
|
2551
2425
|
return input
|
|
2552
2426
|
.filter((e) => e != null)
|
|
2553
2427
|
.map((entry) => {
|
|
2554
|
-
if (entry === null) {
|
|
2555
|
-
return null;
|
|
2556
|
-
}
|
|
2557
2428
|
return entry;
|
|
2558
2429
|
});
|
|
2559
2430
|
};
|
|
@@ -2578,9 +2449,6 @@ const serializeAws_json1_1RuleList = (input, context) => {
|
|
|
2578
2449
|
return input
|
|
2579
2450
|
.filter((e) => e != null)
|
|
2580
2451
|
.map((entry) => {
|
|
2581
|
-
if (entry === null) {
|
|
2582
|
-
return null;
|
|
2583
|
-
}
|
|
2584
2452
|
return serializeAws_json1_1Rule(entry, context);
|
|
2585
2453
|
});
|
|
2586
2454
|
};
|
|
@@ -2601,9 +2469,6 @@ const serializeAws_json1_1SentimentValueList = (input, context) => {
|
|
|
2601
2469
|
return input
|
|
2602
2470
|
.filter((e) => e != null)
|
|
2603
2471
|
.map((entry) => {
|
|
2604
|
-
if (entry === null) {
|
|
2605
|
-
return null;
|
|
2606
|
-
}
|
|
2607
2472
|
return entry;
|
|
2608
2473
|
});
|
|
2609
2474
|
};
|
|
@@ -2695,9 +2560,6 @@ const serializeAws_json1_1StringTargetList = (input, context) => {
|
|
|
2695
2560
|
return input
|
|
2696
2561
|
.filter((e) => e != null)
|
|
2697
2562
|
.map((entry) => {
|
|
2698
|
-
if (entry === null) {
|
|
2699
|
-
return null;
|
|
2700
|
-
}
|
|
2701
2563
|
return entry;
|
|
2702
2564
|
});
|
|
2703
2565
|
};
|
|
@@ -2705,9 +2567,6 @@ const serializeAws_json1_1SubtitleFormats = (input, context) => {
|
|
|
2705
2567
|
return input
|
|
2706
2568
|
.filter((e) => e != null)
|
|
2707
2569
|
.map((entry) => {
|
|
2708
|
-
if (entry === null) {
|
|
2709
|
-
return null;
|
|
2710
|
-
}
|
|
2711
2570
|
return entry;
|
|
2712
2571
|
});
|
|
2713
2572
|
};
|
|
@@ -2727,9 +2586,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
2727
2586
|
return input
|
|
2728
2587
|
.filter((e) => e != null)
|
|
2729
2588
|
.map((entry) => {
|
|
2730
|
-
if (entry === null) {
|
|
2731
|
-
return null;
|
|
2732
|
-
}
|
|
2733
2589
|
return entry;
|
|
2734
2590
|
});
|
|
2735
2591
|
};
|
|
@@ -2737,9 +2593,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2737
2593
|
return input
|
|
2738
2594
|
.filter((e) => e != null)
|
|
2739
2595
|
.map((entry) => {
|
|
2740
|
-
if (entry === null) {
|
|
2741
|
-
return null;
|
|
2742
|
-
}
|
|
2743
2596
|
return serializeAws_json1_1Tag(entry, context);
|
|
2744
2597
|
});
|
|
2745
2598
|
};
|
|
@@ -2801,9 +2654,6 @@ const serializeAws_json1_1Words = (input, context) => {
|
|
|
2801
2654
|
return input
|
|
2802
2655
|
.filter((e) => e != null)
|
|
2803
2656
|
.map((entry) => {
|
|
2804
|
-
if (entry === null) {
|
|
2805
|
-
return null;
|
|
2806
|
-
}
|
|
2807
2657
|
return entry;
|
|
2808
2658
|
});
|
|
2809
2659
|
};
|
|
@@ -3354,22 +3204,22 @@ const deserializeAws_json1_1RelativeTimeRange = (output, context) => {
|
|
|
3354
3204
|
};
|
|
3355
3205
|
};
|
|
3356
3206
|
const deserializeAws_json1_1Rule = (output, context) => {
|
|
3357
|
-
if (output.InterruptionFilter
|
|
3207
|
+
if (output.InterruptionFilter != null) {
|
|
3358
3208
|
return {
|
|
3359
3209
|
InterruptionFilter: deserializeAws_json1_1InterruptionFilter(output.InterruptionFilter, context),
|
|
3360
3210
|
};
|
|
3361
3211
|
}
|
|
3362
|
-
if (output.NonTalkTimeFilter
|
|
3212
|
+
if (output.NonTalkTimeFilter != null) {
|
|
3363
3213
|
return {
|
|
3364
3214
|
NonTalkTimeFilter: deserializeAws_json1_1NonTalkTimeFilter(output.NonTalkTimeFilter, context),
|
|
3365
3215
|
};
|
|
3366
3216
|
}
|
|
3367
|
-
if (output.SentimentFilter
|
|
3217
|
+
if (output.SentimentFilter != null) {
|
|
3368
3218
|
return {
|
|
3369
3219
|
SentimentFilter: deserializeAws_json1_1SentimentFilter(output.SentimentFilter, context),
|
|
3370
3220
|
};
|
|
3371
3221
|
}
|
|
3372
|
-
if (output.TranscriptFilter
|
|
3222
|
+
if (output.TranscriptFilter != null) {
|
|
3373
3223
|
return {
|
|
3374
3224
|
TranscriptFilter: deserializeAws_json1_1TranscriptFilter(output.TranscriptFilter, context),
|
|
3375
3225
|
};
|