@aws-sdk/client-voice-id 3.118.1 → 3.128.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.
@@ -236,8 +236,7 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
236
236
  body: await parseBody(output.body, context),
237
237
  };
238
238
  let response;
239
- let errorCode = "UnknownError";
240
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
239
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
241
240
  switch (errorCode) {
242
241
  case "AccessDeniedException":
243
242
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -262,10 +261,12 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
262
261
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
263
262
  default:
264
263
  const parsedBody = parsedOutput.body;
264
+ const $metadata = deserializeMetadata(output);
265
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
265
266
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
266
- name: parsedBody.code || parsedBody.Code || errorCode,
267
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
267
268
  $fault: "client",
268
- $metadata: deserializeMetadata(output),
269
+ $metadata,
269
270
  });
270
271
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
271
272
  }
@@ -287,8 +288,7 @@ const deserializeAws_json1_0DeleteDomainCommandError = async (output, context) =
287
288
  body: await parseBody(output.body, context),
288
289
  };
289
290
  let response;
290
- let errorCode = "UnknownError";
291
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
291
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
292
292
  switch (errorCode) {
293
293
  case "AccessDeniedException":
294
294
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -310,10 +310,12 @@ const deserializeAws_json1_0DeleteDomainCommandError = async (output, context) =
310
310
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
311
311
  default:
312
312
  const parsedBody = parsedOutput.body;
313
+ const $metadata = deserializeMetadata(output);
314
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
313
315
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
314
- name: parsedBody.code || parsedBody.Code || errorCode,
316
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
315
317
  $fault: "client",
316
- $metadata: deserializeMetadata(output),
318
+ $metadata,
317
319
  });
318
320
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
319
321
  }
@@ -335,8 +337,7 @@ const deserializeAws_json1_0DeleteFraudsterCommandError = async (output, context
335
337
  body: await parseBody(output.body, context),
336
338
  };
337
339
  let response;
338
- let errorCode = "UnknownError";
339
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
340
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
340
341
  switch (errorCode) {
341
342
  case "AccessDeniedException":
342
343
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -358,10 +359,12 @@ const deserializeAws_json1_0DeleteFraudsterCommandError = async (output, context
358
359
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
359
360
  default:
360
361
  const parsedBody = parsedOutput.body;
362
+ const $metadata = deserializeMetadata(output);
363
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
361
364
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
362
- name: parsedBody.code || parsedBody.Code || errorCode,
365
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
363
366
  $fault: "client",
364
- $metadata: deserializeMetadata(output),
367
+ $metadata,
365
368
  });
366
369
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
367
370
  }
@@ -383,8 +386,7 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
383
386
  body: await parseBody(output.body, context),
384
387
  };
385
388
  let response;
386
- let errorCode = "UnknownError";
387
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
389
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
388
390
  switch (errorCode) {
389
391
  case "AccessDeniedException":
390
392
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -406,10 +408,12 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
406
408
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
407
409
  default:
408
410
  const parsedBody = parsedOutput.body;
411
+ const $metadata = deserializeMetadata(output);
412
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
409
413
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
410
- name: parsedBody.code || parsedBody.Code || errorCode,
414
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
411
415
  $fault: "client",
412
- $metadata: deserializeMetadata(output),
416
+ $metadata,
413
417
  });
414
418
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
415
419
  }
@@ -434,8 +438,7 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
434
438
  body: await parseBody(output.body, context),
435
439
  };
436
440
  let response;
437
- let errorCode = "UnknownError";
438
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
441
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
439
442
  switch (errorCode) {
440
443
  case "AccessDeniedException":
441
444
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -454,10 +457,12 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
454
457
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
455
458
  default:
456
459
  const parsedBody = parsedOutput.body;
460
+ const $metadata = deserializeMetadata(output);
461
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
457
462
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
458
- name: parsedBody.code || parsedBody.Code || errorCode,
463
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
459
464
  $fault: "client",
460
- $metadata: deserializeMetadata(output),
465
+ $metadata,
461
466
  });
462
467
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
463
468
  }
@@ -482,8 +487,7 @@ const deserializeAws_json1_0DescribeFraudsterCommandError = async (output, conte
482
487
  body: await parseBody(output.body, context),
483
488
  };
484
489
  let response;
485
- let errorCode = "UnknownError";
486
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
490
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
487
491
  switch (errorCode) {
488
492
  case "AccessDeniedException":
489
493
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -502,10 +506,12 @@ const deserializeAws_json1_0DescribeFraudsterCommandError = async (output, conte
502
506
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
503
507
  default:
504
508
  const parsedBody = parsedOutput.body;
509
+ const $metadata = deserializeMetadata(output);
510
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
505
511
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
506
- name: parsedBody.code || parsedBody.Code || errorCode,
512
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
507
513
  $fault: "client",
508
- $metadata: deserializeMetadata(output),
514
+ $metadata,
509
515
  });
510
516
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
511
517
  }
@@ -530,8 +536,7 @@ const deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError = async
530
536
  body: await parseBody(output.body, context),
531
537
  };
532
538
  let response;
533
- let errorCode = "UnknownError";
534
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
539
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
535
540
  switch (errorCode) {
536
541
  case "AccessDeniedException":
537
542
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -550,10 +555,12 @@ const deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError = async
550
555
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
551
556
  default:
552
557
  const parsedBody = parsedOutput.body;
558
+ const $metadata = deserializeMetadata(output);
559
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
553
560
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
554
- name: parsedBody.code || parsedBody.Code || errorCode,
561
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
555
562
  $fault: "client",
556
- $metadata: deserializeMetadata(output),
563
+ $metadata,
557
564
  });
558
565
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
559
566
  }
@@ -578,8 +585,7 @@ const deserializeAws_json1_0DescribeSpeakerCommandError = async (output, context
578
585
  body: await parseBody(output.body, context),
579
586
  };
580
587
  let response;
581
- let errorCode = "UnknownError";
582
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
588
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
583
589
  switch (errorCode) {
584
590
  case "AccessDeniedException":
585
591
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -598,10 +604,12 @@ const deserializeAws_json1_0DescribeSpeakerCommandError = async (output, context
598
604
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
599
605
  default:
600
606
  const parsedBody = parsedOutput.body;
607
+ const $metadata = deserializeMetadata(output);
608
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
601
609
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
602
- name: parsedBody.code || parsedBody.Code || errorCode,
610
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
603
611
  $fault: "client",
604
- $metadata: deserializeMetadata(output),
612
+ $metadata,
605
613
  });
606
614
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
607
615
  }
@@ -626,8 +634,7 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
626
634
  body: await parseBody(output.body, context),
627
635
  };
628
636
  let response;
629
- let errorCode = "UnknownError";
630
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
637
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
631
638
  switch (errorCode) {
632
639
  case "AccessDeniedException":
633
640
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -646,10 +653,12 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
646
653
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
647
654
  default:
648
655
  const parsedBody = parsedOutput.body;
656
+ const $metadata = deserializeMetadata(output);
657
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
649
658
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
650
- name: parsedBody.code || parsedBody.Code || errorCode,
659
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
651
660
  $fault: "client",
652
- $metadata: deserializeMetadata(output),
661
+ $metadata,
653
662
  });
654
663
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
655
664
  }
@@ -674,8 +683,7 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
674
683
  body: await parseBody(output.body, context),
675
684
  };
676
685
  let response;
677
- let errorCode = "UnknownError";
678
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
686
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
679
687
  switch (errorCode) {
680
688
  case "AccessDeniedException":
681
689
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -697,10 +705,12 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
697
705
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
698
706
  default:
699
707
  const parsedBody = parsedOutput.body;
708
+ const $metadata = deserializeMetadata(output);
709
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
700
710
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
701
- name: parsedBody.code || parsedBody.Code || errorCode,
711
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
702
712
  $fault: "client",
703
- $metadata: deserializeMetadata(output),
713
+ $metadata,
704
714
  });
705
715
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
706
716
  }
@@ -725,8 +735,7 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
725
735
  body: await parseBody(output.body, context),
726
736
  };
727
737
  let response;
728
- let errorCode = "UnknownError";
729
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
738
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
739
  switch (errorCode) {
731
740
  case "AccessDeniedException":
732
741
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -742,10 +751,12 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
742
751
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
743
752
  default:
744
753
  const parsedBody = parsedOutput.body;
754
+ const $metadata = deserializeMetadata(output);
755
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
745
756
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
746
- name: parsedBody.code || parsedBody.Code || errorCode,
757
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
747
758
  $fault: "client",
748
- $metadata: deserializeMetadata(output),
759
+ $metadata,
749
760
  });
750
761
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
751
762
  }
@@ -770,8 +781,7 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
770
781
  body: await parseBody(output.body, context),
771
782
  };
772
783
  let response;
773
- let errorCode = "UnknownError";
774
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
784
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
775
785
  switch (errorCode) {
776
786
  case "AccessDeniedException":
777
787
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -790,10 +800,12 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
790
800
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
791
801
  default:
792
802
  const parsedBody = parsedOutput.body;
803
+ const $metadata = deserializeMetadata(output);
804
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
793
805
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
794
- name: parsedBody.code || parsedBody.Code || errorCode,
806
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
795
807
  $fault: "client",
796
- $metadata: deserializeMetadata(output),
808
+ $metadata,
797
809
  });
798
810
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
799
811
  }
@@ -818,8 +830,7 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
818
830
  body: await parseBody(output.body, context),
819
831
  };
820
832
  let response;
821
- let errorCode = "UnknownError";
822
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
823
834
  switch (errorCode) {
824
835
  case "AccessDeniedException":
825
836
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -838,10 +849,12 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
838
849
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
839
850
  default:
840
851
  const parsedBody = parsedOutput.body;
852
+ const $metadata = deserializeMetadata(output);
853
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
841
854
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
842
- name: parsedBody.code || parsedBody.Code || errorCode,
855
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
843
856
  $fault: "client",
844
- $metadata: deserializeMetadata(output),
857
+ $metadata,
845
858
  });
846
859
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
847
860
  }
@@ -866,8 +879,7 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
866
879
  body: await parseBody(output.body, context),
867
880
  };
868
881
  let response;
869
- let errorCode = "UnknownError";
870
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
882
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
871
883
  switch (errorCode) {
872
884
  case "AccessDeniedException":
873
885
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -886,10 +898,12 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
886
898
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
887
899
  default:
888
900
  const parsedBody = parsedOutput.body;
901
+ const $metadata = deserializeMetadata(output);
902
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
889
903
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
890
- name: parsedBody.code || parsedBody.Code || errorCode,
904
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
891
905
  $fault: "client",
892
- $metadata: deserializeMetadata(output),
906
+ $metadata,
893
907
  });
894
908
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
895
909
  }
@@ -914,8 +928,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
914
928
  body: await parseBody(output.body, context),
915
929
  };
916
930
  let response;
917
- let errorCode = "UnknownError";
918
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
931
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
919
932
  switch (errorCode) {
920
933
  case "AccessDeniedException":
921
934
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -934,10 +947,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
934
947
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
935
948
  default:
936
949
  const parsedBody = parsedOutput.body;
950
+ const $metadata = deserializeMetadata(output);
951
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
937
952
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
938
- name: parsedBody.code || parsedBody.Code || errorCode,
953
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
939
954
  $fault: "client",
940
- $metadata: deserializeMetadata(output),
955
+ $metadata,
941
956
  });
942
957
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
943
958
  }
@@ -962,8 +977,7 @@ const deserializeAws_json1_0OptOutSpeakerCommandError = async (output, context)
962
977
  body: await parseBody(output.body, context),
963
978
  };
964
979
  let response;
965
- let errorCode = "UnknownError";
966
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
967
981
  switch (errorCode) {
968
982
  case "AccessDeniedException":
969
983
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -985,10 +999,12 @@ const deserializeAws_json1_0OptOutSpeakerCommandError = async (output, context)
985
999
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
986
1000
  default:
987
1001
  const parsedBody = parsedOutput.body;
1002
+ const $metadata = deserializeMetadata(output);
1003
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
988
1004
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
989
- name: parsedBody.code || parsedBody.Code || errorCode,
1005
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
990
1006
  $fault: "client",
991
- $metadata: deserializeMetadata(output),
1007
+ $metadata,
992
1008
  });
993
1009
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
994
1010
  }
@@ -1013,8 +1029,7 @@ const deserializeAws_json1_0StartFraudsterRegistrationJobCommandError = async (o
1013
1029
  body: await parseBody(output.body, context),
1014
1030
  };
1015
1031
  let response;
1016
- let errorCode = "UnknownError";
1017
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1032
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1018
1033
  switch (errorCode) {
1019
1034
  case "AccessDeniedException":
1020
1035
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -1039,10 +1054,12 @@ const deserializeAws_json1_0StartFraudsterRegistrationJobCommandError = async (o
1039
1054
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1040
1055
  default:
1041
1056
  const parsedBody = parsedOutput.body;
1057
+ const $metadata = deserializeMetadata(output);
1058
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1042
1059
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
1043
- name: parsedBody.code || parsedBody.Code || errorCode,
1060
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1044
1061
  $fault: "client",
1045
- $metadata: deserializeMetadata(output),
1062
+ $metadata,
1046
1063
  });
1047
1064
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1048
1065
  }
@@ -1067,8 +1084,7 @@ const deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError = async (outpu
1067
1084
  body: await parseBody(output.body, context),
1068
1085
  };
1069
1086
  let response;
1070
- let errorCode = "UnknownError";
1071
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1087
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
1088
  switch (errorCode) {
1073
1089
  case "AccessDeniedException":
1074
1090
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -1093,10 +1109,12 @@ const deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError = async (outpu
1093
1109
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1094
1110
  default:
1095
1111
  const parsedBody = parsedOutput.body;
1112
+ const $metadata = deserializeMetadata(output);
1113
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1096
1114
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
1097
- name: parsedBody.code || parsedBody.Code || errorCode,
1115
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1098
1116
  $fault: "client",
1099
- $metadata: deserializeMetadata(output),
1117
+ $metadata,
1100
1118
  });
1101
1119
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1102
1120
  }
@@ -1121,8 +1139,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
1121
1139
  body: await parseBody(output.body, context),
1122
1140
  };
1123
1141
  let response;
1124
- let errorCode = "UnknownError";
1125
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1142
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1126
1143
  switch (errorCode) {
1127
1144
  case "AccessDeniedException":
1128
1145
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -1144,10 +1161,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
1144
1161
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1145
1162
  default:
1146
1163
  const parsedBody = parsedOutput.body;
1164
+ const $metadata = deserializeMetadata(output);
1165
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1147
1166
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
1148
- name: parsedBody.code || parsedBody.Code || errorCode,
1167
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1149
1168
  $fault: "client",
1150
- $metadata: deserializeMetadata(output),
1169
+ $metadata,
1151
1170
  });
1152
1171
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1153
1172
  }
@@ -1172,8 +1191,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
1172
1191
  body: await parseBody(output.body, context),
1173
1192
  };
1174
1193
  let response;
1175
- let errorCode = "UnknownError";
1176
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1194
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1177
1195
  switch (errorCode) {
1178
1196
  case "AccessDeniedException":
1179
1197
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -1195,10 +1213,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
1195
1213
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1196
1214
  default:
1197
1215
  const parsedBody = parsedOutput.body;
1216
+ const $metadata = deserializeMetadata(output);
1217
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1198
1218
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
1199
- name: parsedBody.code || parsedBody.Code || errorCode,
1219
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1200
1220
  $fault: "client",
1201
- $metadata: deserializeMetadata(output),
1221
+ $metadata,
1202
1222
  });
1203
1223
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1204
1224
  }
@@ -1223,8 +1243,7 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
1223
1243
  body: await parseBody(output.body, context),
1224
1244
  };
1225
1245
  let response;
1226
- let errorCode = "UnknownError";
1227
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1246
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1228
1247
  switch (errorCode) {
1229
1248
  case "AccessDeniedException":
1230
1249
  case "com.amazonaws.voiceid#AccessDeniedException":
@@ -1246,10 +1265,12 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
1246
1265
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1247
1266
  default:
1248
1267
  const parsedBody = parsedOutput.body;
1268
+ const $metadata = deserializeMetadata(output);
1269
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1249
1270
  response = new VoiceIDServiceException_1.VoiceIDServiceException({
1250
- name: parsedBody.code || parsedBody.Code || errorCode,
1271
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1251
1272
  $fault: "client",
1252
- $metadata: deserializeMetadata(output),
1273
+ $metadata,
1253
1274
  });
1254
1275
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1255
1276
  }
@@ -1321,169 +1342,160 @@ const serializeAws_json1_0CreateDomainRequest = (input, context) => {
1321
1342
  var _a;
1322
1343
  return {
1323
1344
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1324
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1325
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1326
- ...(input.ServerSideEncryptionConfiguration !== undefined &&
1327
- input.ServerSideEncryptionConfiguration !== null && {
1345
+ ...(input.Description != null && { Description: input.Description }),
1346
+ ...(input.Name != null && { Name: input.Name }),
1347
+ ...(input.ServerSideEncryptionConfiguration != null && {
1328
1348
  ServerSideEncryptionConfiguration: serializeAws_json1_0ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
1329
1349
  }),
1330
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
1350
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
1331
1351
  };
1332
1352
  };
1333
1353
  const serializeAws_json1_0DeleteDomainRequest = (input, context) => {
1334
1354
  return {
1335
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1355
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1336
1356
  };
1337
1357
  };
1338
1358
  const serializeAws_json1_0DeleteFraudsterRequest = (input, context) => {
1339
1359
  return {
1340
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1341
- ...(input.FraudsterId !== undefined && input.FraudsterId !== null && { FraudsterId: input.FraudsterId }),
1360
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1361
+ ...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
1342
1362
  };
1343
1363
  };
1344
1364
  const serializeAws_json1_0DeleteSpeakerRequest = (input, context) => {
1345
1365
  return {
1346
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1347
- ...(input.SpeakerId !== undefined && input.SpeakerId !== null && { SpeakerId: input.SpeakerId }),
1366
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1367
+ ...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
1348
1368
  };
1349
1369
  };
1350
1370
  const serializeAws_json1_0DescribeDomainRequest = (input, context) => {
1351
1371
  return {
1352
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1372
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1353
1373
  };
1354
1374
  };
1355
1375
  const serializeAws_json1_0DescribeFraudsterRegistrationJobRequest = (input, context) => {
1356
1376
  return {
1357
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1358
- ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
1377
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1378
+ ...(input.JobId != null && { JobId: input.JobId }),
1359
1379
  };
1360
1380
  };
1361
1381
  const serializeAws_json1_0DescribeFraudsterRequest = (input, context) => {
1362
1382
  return {
1363
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1364
- ...(input.FraudsterId !== undefined && input.FraudsterId !== null && { FraudsterId: input.FraudsterId }),
1383
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1384
+ ...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
1365
1385
  };
1366
1386
  };
1367
1387
  const serializeAws_json1_0DescribeSpeakerEnrollmentJobRequest = (input, context) => {
1368
1388
  return {
1369
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1370
- ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
1389
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1390
+ ...(input.JobId != null && { JobId: input.JobId }),
1371
1391
  };
1372
1392
  };
1373
1393
  const serializeAws_json1_0DescribeSpeakerRequest = (input, context) => {
1374
1394
  return {
1375
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1376
- ...(input.SpeakerId !== undefined && input.SpeakerId !== null && { SpeakerId: input.SpeakerId }),
1395
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1396
+ ...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
1377
1397
  };
1378
1398
  };
1379
1399
  const serializeAws_json1_0EnrollmentConfig = (input, context) => {
1380
1400
  return {
1381
- ...(input.ExistingEnrollmentAction !== undefined &&
1382
- input.ExistingEnrollmentAction !== null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
1383
- ...(input.FraudDetectionConfig !== undefined &&
1384
- input.FraudDetectionConfig !== null && {
1401
+ ...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
1402
+ ...(input.FraudDetectionConfig != null && {
1385
1403
  FraudDetectionConfig: serializeAws_json1_0EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
1386
1404
  }),
1387
1405
  };
1388
1406
  };
1389
1407
  const serializeAws_json1_0EnrollmentJobFraudDetectionConfig = (input, context) => {
1390
1408
  return {
1391
- ...(input.FraudDetectionAction !== undefined &&
1392
- input.FraudDetectionAction !== null && { FraudDetectionAction: input.FraudDetectionAction }),
1393
- ...(input.RiskThreshold !== undefined && input.RiskThreshold !== null && { RiskThreshold: input.RiskThreshold }),
1409
+ ...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
1410
+ ...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
1394
1411
  };
1395
1412
  };
1396
1413
  const serializeAws_json1_0EvaluateSessionRequest = (input, context) => {
1397
1414
  return {
1398
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1399
- ...(input.SessionNameOrId !== undefined &&
1400
- input.SessionNameOrId !== null && { SessionNameOrId: input.SessionNameOrId }),
1415
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1416
+ ...(input.SessionNameOrId != null && { SessionNameOrId: input.SessionNameOrId }),
1401
1417
  };
1402
1418
  };
1403
1419
  const serializeAws_json1_0InputDataConfig = (input, context) => {
1404
1420
  return {
1405
- ...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
1421
+ ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1406
1422
  };
1407
1423
  };
1408
1424
  const serializeAws_json1_0ListDomainsRequest = (input, context) => {
1409
1425
  return {
1410
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1411
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1426
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1427
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1412
1428
  };
1413
1429
  };
1414
1430
  const serializeAws_json1_0ListFraudsterRegistrationJobsRequest = (input, context) => {
1415
1431
  return {
1416
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1417
- ...(input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus }),
1418
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1419
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1432
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1433
+ ...(input.JobStatus != null && { JobStatus: input.JobStatus }),
1434
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1435
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1420
1436
  };
1421
1437
  };
1422
1438
  const serializeAws_json1_0ListSpeakerEnrollmentJobsRequest = (input, context) => {
1423
1439
  return {
1424
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1425
- ...(input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus }),
1426
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1427
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1440
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1441
+ ...(input.JobStatus != null && { JobStatus: input.JobStatus }),
1442
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1443
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1428
1444
  };
1429
1445
  };
1430
1446
  const serializeAws_json1_0ListSpeakersRequest = (input, context) => {
1431
1447
  return {
1432
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1433
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1434
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1448
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1449
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1450
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1435
1451
  };
1436
1452
  };
1437
1453
  const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
1438
1454
  return {
1439
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1455
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1440
1456
  };
1441
1457
  };
1442
1458
  const serializeAws_json1_0OptOutSpeakerRequest = (input, context) => {
1443
1459
  return {
1444
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1445
- ...(input.SpeakerId !== undefined && input.SpeakerId !== null && { SpeakerId: input.SpeakerId }),
1460
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1461
+ ...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
1446
1462
  };
1447
1463
  };
1448
1464
  const serializeAws_json1_0OutputDataConfig = (input, context) => {
1449
1465
  return {
1450
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
1451
- ...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
1466
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1467
+ ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
1452
1468
  };
1453
1469
  };
1454
1470
  const serializeAws_json1_0RegistrationConfig = (input, context) => {
1455
1471
  return {
1456
- ...(input.DuplicateRegistrationAction !== undefined &&
1457
- input.DuplicateRegistrationAction !== null && { DuplicateRegistrationAction: input.DuplicateRegistrationAction }),
1458
- ...(input.FraudsterSimilarityThreshold !== undefined &&
1459
- input.FraudsterSimilarityThreshold !== null && {
1472
+ ...(input.DuplicateRegistrationAction != null && {
1473
+ DuplicateRegistrationAction: input.DuplicateRegistrationAction,
1474
+ }),
1475
+ ...(input.FraudsterSimilarityThreshold != null && {
1460
1476
  FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
1461
1477
  }),
1462
1478
  };
1463
1479
  };
1464
1480
  const serializeAws_json1_0ServerSideEncryptionConfiguration = (input, context) => {
1465
1481
  return {
1466
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
1482
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1467
1483
  };
1468
1484
  };
1469
1485
  const serializeAws_json1_0StartFraudsterRegistrationJobRequest = (input, context) => {
1470
1486
  var _a;
1471
1487
  return {
1472
1488
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1473
- ...(input.DataAccessRoleArn !== undefined &&
1474
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
1475
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1476
- ...(input.InputDataConfig !== undefined &&
1477
- input.InputDataConfig !== null && {
1489
+ ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
1490
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1491
+ ...(input.InputDataConfig != null && {
1478
1492
  InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
1479
1493
  }),
1480
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
1481
- ...(input.OutputDataConfig !== undefined &&
1482
- input.OutputDataConfig !== null && {
1494
+ ...(input.JobName != null && { JobName: input.JobName }),
1495
+ ...(input.OutputDataConfig != null && {
1483
1496
  OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
1484
1497
  }),
1485
- ...(input.RegistrationConfig !== undefined &&
1486
- input.RegistrationConfig !== null && {
1498
+ ...(input.RegistrationConfig != null && {
1487
1499
  RegistrationConfig: serializeAws_json1_0RegistrationConfig(input.RegistrationConfig, context),
1488
1500
  }),
1489
1501
  };
@@ -1492,28 +1504,24 @@ const serializeAws_json1_0StartSpeakerEnrollmentJobRequest = (input, context) =>
1492
1504
  var _a;
1493
1505
  return {
1494
1506
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1495
- ...(input.DataAccessRoleArn !== undefined &&
1496
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
1497
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1498
- ...(input.EnrollmentConfig !== undefined &&
1499
- input.EnrollmentConfig !== null && {
1507
+ ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
1508
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1509
+ ...(input.EnrollmentConfig != null && {
1500
1510
  EnrollmentConfig: serializeAws_json1_0EnrollmentConfig(input.EnrollmentConfig, context),
1501
1511
  }),
1502
- ...(input.InputDataConfig !== undefined &&
1503
- input.InputDataConfig !== null && {
1512
+ ...(input.InputDataConfig != null && {
1504
1513
  InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
1505
1514
  }),
1506
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
1507
- ...(input.OutputDataConfig !== undefined &&
1508
- input.OutputDataConfig !== null && {
1515
+ ...(input.JobName != null && { JobName: input.JobName }),
1516
+ ...(input.OutputDataConfig != null && {
1509
1517
  OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
1510
1518
  }),
1511
1519
  };
1512
1520
  };
1513
1521
  const serializeAws_json1_0Tag = (input, context) => {
1514
1522
  return {
1515
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1516
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1523
+ ...(input.Key != null && { Key: input.Key }),
1524
+ ...(input.Value != null && { Value: input.Value }),
1517
1525
  };
1518
1526
  };
1519
1527
  const serializeAws_json1_0TagKeyList = (input, context) => {
@@ -1538,24 +1546,22 @@ const serializeAws_json1_0TagList = (input, context) => {
1538
1546
  };
1539
1547
  const serializeAws_json1_0TagResourceRequest = (input, context) => {
1540
1548
  return {
1541
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1542
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
1549
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1550
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
1543
1551
  };
1544
1552
  };
1545
1553
  const serializeAws_json1_0UntagResourceRequest = (input, context) => {
1546
1554
  return {
1547
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1548
- ...(input.TagKeys !== undefined &&
1549
- input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
1555
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1556
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
1550
1557
  };
1551
1558
  };
1552
1559
  const serializeAws_json1_0UpdateDomainRequest = (input, context) => {
1553
1560
  return {
1554
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1555
- ...(input.DomainId !== undefined && input.DomainId !== null && { DomainId: input.DomainId }),
1556
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1557
- ...(input.ServerSideEncryptionConfiguration !== undefined &&
1558
- input.ServerSideEncryptionConfiguration !== null && {
1561
+ ...(input.Description != null && { Description: input.Description }),
1562
+ ...(input.DomainId != null && { DomainId: input.DomainId }),
1563
+ ...(input.Name != null && { Name: input.Name }),
1564
+ ...(input.ServerSideEncryptionConfiguration != null && {
1559
1565
  ServerSideEncryptionConfiguration: serializeAws_json1_0ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
1560
1566
  }),
1561
1567
  };
@@ -1572,14 +1578,14 @@ const deserializeAws_json1_0AuthenticationConfiguration = (output, context) => {
1572
1578
  };
1573
1579
  const deserializeAws_json1_0AuthenticationResult = (output, context) => {
1574
1580
  return {
1575
- AudioAggregationEndedAt: output.AudioAggregationEndedAt !== undefined && output.AudioAggregationEndedAt !== null
1581
+ AudioAggregationEndedAt: output.AudioAggregationEndedAt != null
1576
1582
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AudioAggregationEndedAt)))
1577
1583
  : undefined,
1578
- AudioAggregationStartedAt: output.AudioAggregationStartedAt !== undefined && output.AudioAggregationStartedAt !== null
1584
+ AudioAggregationStartedAt: output.AudioAggregationStartedAt != null
1579
1585
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AudioAggregationStartedAt)))
1580
1586
  : undefined,
1581
1587
  AuthenticationResultId: (0, smithy_client_1.expectString)(output.AuthenticationResultId),
1582
- Configuration: output.Configuration !== undefined && output.Configuration !== null
1588
+ Configuration: output.Configuration != null
1583
1589
  ? deserializeAws_json1_0AuthenticationConfiguration(output.Configuration, context)
1584
1590
  : undefined,
1585
1591
  CustomerSpeakerId: (0, smithy_client_1.expectString)(output.CustomerSpeakerId),
@@ -1596,65 +1602,49 @@ const deserializeAws_json1_0ConflictException = (output, context) => {
1596
1602
  };
1597
1603
  const deserializeAws_json1_0CreateDomainResponse = (output, context) => {
1598
1604
  return {
1599
- Domain: output.Domain !== undefined && output.Domain !== null
1600
- ? deserializeAws_json1_0Domain(output.Domain, context)
1601
- : undefined,
1605
+ Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
1602
1606
  };
1603
1607
  };
1604
1608
  const deserializeAws_json1_0DescribeDomainResponse = (output, context) => {
1605
1609
  return {
1606
- Domain: output.Domain !== undefined && output.Domain !== null
1607
- ? deserializeAws_json1_0Domain(output.Domain, context)
1608
- : undefined,
1610
+ Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
1609
1611
  };
1610
1612
  };
1611
1613
  const deserializeAws_json1_0DescribeFraudsterRegistrationJobResponse = (output, context) => {
1612
1614
  return {
1613
- Job: output.Job !== undefined && output.Job !== null
1614
- ? deserializeAws_json1_0FraudsterRegistrationJob(output.Job, context)
1615
- : undefined,
1615
+ Job: output.Job != null ? deserializeAws_json1_0FraudsterRegistrationJob(output.Job, context) : undefined,
1616
1616
  };
1617
1617
  };
1618
1618
  const deserializeAws_json1_0DescribeFraudsterResponse = (output, context) => {
1619
1619
  return {
1620
- Fraudster: output.Fraudster !== undefined && output.Fraudster !== null
1621
- ? deserializeAws_json1_0Fraudster(output.Fraudster, context)
1622
- : undefined,
1620
+ Fraudster: output.Fraudster != null ? deserializeAws_json1_0Fraudster(output.Fraudster, context) : undefined,
1623
1621
  };
1624
1622
  };
1625
1623
  const deserializeAws_json1_0DescribeSpeakerEnrollmentJobResponse = (output, context) => {
1626
1624
  return {
1627
- Job: output.Job !== undefined && output.Job !== null
1628
- ? deserializeAws_json1_0SpeakerEnrollmentJob(output.Job, context)
1629
- : undefined,
1625
+ Job: output.Job != null ? deserializeAws_json1_0SpeakerEnrollmentJob(output.Job, context) : undefined,
1630
1626
  };
1631
1627
  };
1632
1628
  const deserializeAws_json1_0DescribeSpeakerResponse = (output, context) => {
1633
1629
  return {
1634
- Speaker: output.Speaker !== undefined && output.Speaker !== null
1635
- ? deserializeAws_json1_0Speaker(output.Speaker, context)
1636
- : undefined,
1630
+ Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
1637
1631
  };
1638
1632
  };
1639
1633
  const deserializeAws_json1_0Domain = (output, context) => {
1640
1634
  return {
1641
1635
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1642
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1643
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1644
- : undefined,
1636
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1645
1637
  Description: (0, smithy_client_1.expectString)(output.Description),
1646
1638
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1647
1639
  DomainStatus: (0, smithy_client_1.expectString)(output.DomainStatus),
1648
1640
  Name: (0, smithy_client_1.expectString)(output.Name),
1649
- ServerSideEncryptionConfiguration: output.ServerSideEncryptionConfiguration !== undefined && output.ServerSideEncryptionConfiguration !== null
1641
+ ServerSideEncryptionConfiguration: output.ServerSideEncryptionConfiguration != null
1650
1642
  ? deserializeAws_json1_0ServerSideEncryptionConfiguration(output.ServerSideEncryptionConfiguration, context)
1651
1643
  : undefined,
1652
- ServerSideEncryptionUpdateDetails: output.ServerSideEncryptionUpdateDetails !== undefined && output.ServerSideEncryptionUpdateDetails !== null
1644
+ ServerSideEncryptionUpdateDetails: output.ServerSideEncryptionUpdateDetails != null
1653
1645
  ? deserializeAws_json1_0ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
1654
1646
  : undefined,
1655
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1656
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1657
- : undefined,
1647
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
1658
1648
  };
1659
1649
  };
1660
1650
  const deserializeAws_json1_0DomainSummaries = (output, context) => {
@@ -1671,28 +1661,24 @@ const deserializeAws_json1_0DomainSummaries = (output, context) => {
1671
1661
  const deserializeAws_json1_0DomainSummary = (output, context) => {
1672
1662
  return {
1673
1663
  Arn: (0, smithy_client_1.expectString)(output.Arn),
1674
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1675
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1676
- : undefined,
1664
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1677
1665
  Description: (0, smithy_client_1.expectString)(output.Description),
1678
1666
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1679
1667
  DomainStatus: (0, smithy_client_1.expectString)(output.DomainStatus),
1680
1668
  Name: (0, smithy_client_1.expectString)(output.Name),
1681
- ServerSideEncryptionConfiguration: output.ServerSideEncryptionConfiguration !== undefined && output.ServerSideEncryptionConfiguration !== null
1669
+ ServerSideEncryptionConfiguration: output.ServerSideEncryptionConfiguration != null
1682
1670
  ? deserializeAws_json1_0ServerSideEncryptionConfiguration(output.ServerSideEncryptionConfiguration, context)
1683
1671
  : undefined,
1684
- ServerSideEncryptionUpdateDetails: output.ServerSideEncryptionUpdateDetails !== undefined && output.ServerSideEncryptionUpdateDetails !== null
1672
+ ServerSideEncryptionUpdateDetails: output.ServerSideEncryptionUpdateDetails != null
1685
1673
  ? deserializeAws_json1_0ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
1686
1674
  : undefined,
1687
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1688
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1689
- : undefined,
1675
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
1690
1676
  };
1691
1677
  };
1692
1678
  const deserializeAws_json1_0EnrollmentConfig = (output, context) => {
1693
1679
  return {
1694
1680
  ExistingEnrollmentAction: (0, smithy_client_1.expectString)(output.ExistingEnrollmentAction),
1695
- FraudDetectionConfig: output.FraudDetectionConfig !== undefined && output.FraudDetectionConfig !== null
1681
+ FraudDetectionConfig: output.FraudDetectionConfig != null
1696
1682
  ? deserializeAws_json1_0EnrollmentJobFraudDetectionConfig(output.FraudDetectionConfig, context)
1697
1683
  : undefined,
1698
1684
  };
@@ -1705,11 +1691,11 @@ const deserializeAws_json1_0EnrollmentJobFraudDetectionConfig = (output, context
1705
1691
  };
1706
1692
  const deserializeAws_json1_0EvaluateSessionResponse = (output, context) => {
1707
1693
  return {
1708
- AuthenticationResult: output.AuthenticationResult !== undefined && output.AuthenticationResult !== null
1694
+ AuthenticationResult: output.AuthenticationResult != null
1709
1695
  ? deserializeAws_json1_0AuthenticationResult(output.AuthenticationResult, context)
1710
1696
  : undefined,
1711
1697
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1712
- FraudDetectionResult: output.FraudDetectionResult !== undefined && output.FraudDetectionResult !== null
1698
+ FraudDetectionResult: output.FraudDetectionResult != null
1713
1699
  ? deserializeAws_json1_0FraudDetectionResult(output.FraudDetectionResult, context)
1714
1700
  : undefined,
1715
1701
  SessionId: (0, smithy_client_1.expectString)(output.SessionId),
@@ -1741,67 +1727,53 @@ const deserializeAws_json1_0FraudDetectionReasons = (output, context) => {
1741
1727
  };
1742
1728
  const deserializeAws_json1_0FraudDetectionResult = (output, context) => {
1743
1729
  return {
1744
- AudioAggregationEndedAt: output.AudioAggregationEndedAt !== undefined && output.AudioAggregationEndedAt !== null
1730
+ AudioAggregationEndedAt: output.AudioAggregationEndedAt != null
1745
1731
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AudioAggregationEndedAt)))
1746
1732
  : undefined,
1747
- AudioAggregationStartedAt: output.AudioAggregationStartedAt !== undefined && output.AudioAggregationStartedAt !== null
1733
+ AudioAggregationStartedAt: output.AudioAggregationStartedAt != null
1748
1734
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AudioAggregationStartedAt)))
1749
1735
  : undefined,
1750
- Configuration: output.Configuration !== undefined && output.Configuration !== null
1736
+ Configuration: output.Configuration != null
1751
1737
  ? deserializeAws_json1_0FraudDetectionConfiguration(output.Configuration, context)
1752
1738
  : undefined,
1753
1739
  Decision: (0, smithy_client_1.expectString)(output.Decision),
1754
1740
  FraudDetectionResultId: (0, smithy_client_1.expectString)(output.FraudDetectionResultId),
1755
- Reasons: output.Reasons !== undefined && output.Reasons !== null
1756
- ? deserializeAws_json1_0FraudDetectionReasons(output.Reasons, context)
1757
- : undefined,
1758
- RiskDetails: output.RiskDetails !== undefined && output.RiskDetails !== null
1759
- ? deserializeAws_json1_0FraudRiskDetails(output.RiskDetails, context)
1760
- : undefined,
1741
+ Reasons: output.Reasons != null ? deserializeAws_json1_0FraudDetectionReasons(output.Reasons, context) : undefined,
1742
+ RiskDetails: output.RiskDetails != null ? deserializeAws_json1_0FraudRiskDetails(output.RiskDetails, context) : undefined,
1761
1743
  };
1762
1744
  };
1763
1745
  const deserializeAws_json1_0FraudRiskDetails = (output, context) => {
1764
1746
  return {
1765
- KnownFraudsterRisk: output.KnownFraudsterRisk !== undefined && output.KnownFraudsterRisk !== null
1747
+ KnownFraudsterRisk: output.KnownFraudsterRisk != null
1766
1748
  ? deserializeAws_json1_0KnownFraudsterRisk(output.KnownFraudsterRisk, context)
1767
1749
  : undefined,
1768
1750
  };
1769
1751
  };
1770
1752
  const deserializeAws_json1_0Fraudster = (output, context) => {
1771
1753
  return {
1772
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1773
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1774
- : undefined,
1754
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1775
1755
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1776
1756
  GeneratedFraudsterId: (0, smithy_client_1.expectString)(output.GeneratedFraudsterId),
1777
1757
  };
1778
1758
  };
1779
1759
  const deserializeAws_json1_0FraudsterRegistrationJob = (output, context) => {
1780
1760
  return {
1781
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1782
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1783
- : undefined,
1761
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1784
1762
  DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
1785
1763
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1786
- EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
1787
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt)))
1788
- : undefined,
1789
- FailureDetails: output.FailureDetails !== undefined && output.FailureDetails !== null
1790
- ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context)
1791
- : undefined,
1792
- InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
1764
+ EndedAt: output.EndedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt))) : undefined,
1765
+ FailureDetails: output.FailureDetails != null ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context) : undefined,
1766
+ InputDataConfig: output.InputDataConfig != null
1793
1767
  ? deserializeAws_json1_0InputDataConfig(output.InputDataConfig, context)
1794
1768
  : undefined,
1795
1769
  JobId: (0, smithy_client_1.expectString)(output.JobId),
1796
1770
  JobName: (0, smithy_client_1.expectString)(output.JobName),
1797
- JobProgress: output.JobProgress !== undefined && output.JobProgress !== null
1798
- ? deserializeAws_json1_0JobProgress(output.JobProgress, context)
1799
- : undefined,
1771
+ JobProgress: output.JobProgress != null ? deserializeAws_json1_0JobProgress(output.JobProgress, context) : undefined,
1800
1772
  JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1801
- OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
1773
+ OutputDataConfig: output.OutputDataConfig != null
1802
1774
  ? deserializeAws_json1_0OutputDataConfig(output.OutputDataConfig, context)
1803
1775
  : undefined,
1804
- RegistrationConfig: output.RegistrationConfig !== undefined && output.RegistrationConfig !== null
1776
+ RegistrationConfig: output.RegistrationConfig != null
1805
1777
  ? deserializeAws_json1_0RegistrationConfig(output.RegistrationConfig, context)
1806
1778
  : undefined,
1807
1779
  };
@@ -1819,21 +1791,13 @@ const deserializeAws_json1_0FraudsterRegistrationJobSummaries = (output, context
1819
1791
  };
1820
1792
  const deserializeAws_json1_0FraudsterRegistrationJobSummary = (output, context) => {
1821
1793
  return {
1822
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1823
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1824
- : undefined,
1794
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1825
1795
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1826
- EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
1827
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt)))
1828
- : undefined,
1829
- FailureDetails: output.FailureDetails !== undefined && output.FailureDetails !== null
1830
- ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context)
1831
- : undefined,
1796
+ EndedAt: output.EndedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt))) : undefined,
1797
+ FailureDetails: output.FailureDetails != null ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context) : undefined,
1832
1798
  JobId: (0, smithy_client_1.expectString)(output.JobId),
1833
1799
  JobName: (0, smithy_client_1.expectString)(output.JobName),
1834
- JobProgress: output.JobProgress !== undefined && output.JobProgress !== null
1835
- ? deserializeAws_json1_0JobProgress(output.JobProgress, context)
1836
- : undefined,
1800
+ JobProgress: output.JobProgress != null ? deserializeAws_json1_0JobProgress(output.JobProgress, context) : undefined,
1837
1801
  JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1838
1802
  };
1839
1803
  };
@@ -1860,7 +1824,7 @@ const deserializeAws_json1_0KnownFraudsterRisk = (output, context) => {
1860
1824
  };
1861
1825
  const deserializeAws_json1_0ListDomainsResponse = (output, context) => {
1862
1826
  return {
1863
- DomainSummaries: output.DomainSummaries !== undefined && output.DomainSummaries !== null
1827
+ DomainSummaries: output.DomainSummaries != null
1864
1828
  ? deserializeAws_json1_0DomainSummaries(output.DomainSummaries, context)
1865
1829
  : undefined,
1866
1830
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -1868,7 +1832,7 @@ const deserializeAws_json1_0ListDomainsResponse = (output, context) => {
1868
1832
  };
1869
1833
  const deserializeAws_json1_0ListFraudsterRegistrationJobsResponse = (output, context) => {
1870
1834
  return {
1871
- JobSummaries: output.JobSummaries !== undefined && output.JobSummaries !== null
1835
+ JobSummaries: output.JobSummaries != null
1872
1836
  ? deserializeAws_json1_0FraudsterRegistrationJobSummaries(output.JobSummaries, context)
1873
1837
  : undefined,
1874
1838
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -1876,7 +1840,7 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsResponse = (output, con
1876
1840
  };
1877
1841
  const deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse = (output, context) => {
1878
1842
  return {
1879
- JobSummaries: output.JobSummaries !== undefined && output.JobSummaries !== null
1843
+ JobSummaries: output.JobSummaries != null
1880
1844
  ? deserializeAws_json1_0SpeakerEnrollmentJobSummaries(output.JobSummaries, context)
1881
1845
  : undefined,
1882
1846
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -1885,23 +1849,19 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse = (output, context
1885
1849
  const deserializeAws_json1_0ListSpeakersResponse = (output, context) => {
1886
1850
  return {
1887
1851
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1888
- SpeakerSummaries: output.SpeakerSummaries !== undefined && output.SpeakerSummaries !== null
1852
+ SpeakerSummaries: output.SpeakerSummaries != null
1889
1853
  ? deserializeAws_json1_0SpeakerSummaries(output.SpeakerSummaries, context)
1890
1854
  : undefined,
1891
1855
  };
1892
1856
  };
1893
1857
  const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
1894
1858
  return {
1895
- Tags: output.Tags !== undefined && output.Tags !== null
1896
- ? deserializeAws_json1_0TagList(output.Tags, context)
1897
- : undefined,
1859
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
1898
1860
  };
1899
1861
  };
1900
1862
  const deserializeAws_json1_0OptOutSpeakerResponse = (output, context) => {
1901
1863
  return {
1902
- Speaker: output.Speaker !== undefined && output.Speaker !== null
1903
- ? deserializeAws_json1_0Speaker(output.Speaker, context)
1904
- : undefined,
1864
+ Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
1905
1865
  };
1906
1866
  };
1907
1867
  const deserializeAws_json1_0OutputDataConfig = (output, context) => {
@@ -1941,47 +1901,35 @@ const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) =>
1941
1901
  };
1942
1902
  const deserializeAws_json1_0Speaker = (output, context) => {
1943
1903
  return {
1944
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1945
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1946
- : undefined,
1904
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1947
1905
  CustomerSpeakerId: (0, smithy_client_1.expectString)(output.CustomerSpeakerId),
1948
1906
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1949
1907
  GeneratedSpeakerId: (0, smithy_client_1.expectString)(output.GeneratedSpeakerId),
1950
- LastAccessedAt: output.LastAccessedAt !== undefined && output.LastAccessedAt !== null
1908
+ LastAccessedAt: output.LastAccessedAt != null
1951
1909
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedAt)))
1952
1910
  : undefined,
1953
1911
  Status: (0, smithy_client_1.expectString)(output.Status),
1954
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1955
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1956
- : undefined,
1912
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
1957
1913
  };
1958
1914
  };
1959
1915
  const deserializeAws_json1_0SpeakerEnrollmentJob = (output, context) => {
1960
1916
  return {
1961
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1962
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1963
- : undefined,
1917
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1964
1918
  DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
1965
1919
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
1966
- EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
1967
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt)))
1968
- : undefined,
1969
- EnrollmentConfig: output.EnrollmentConfig !== undefined && output.EnrollmentConfig !== null
1920
+ EndedAt: output.EndedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt))) : undefined,
1921
+ EnrollmentConfig: output.EnrollmentConfig != null
1970
1922
  ? deserializeAws_json1_0EnrollmentConfig(output.EnrollmentConfig, context)
1971
1923
  : undefined,
1972
- FailureDetails: output.FailureDetails !== undefined && output.FailureDetails !== null
1973
- ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context)
1974
- : undefined,
1975
- InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
1924
+ FailureDetails: output.FailureDetails != null ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context) : undefined,
1925
+ InputDataConfig: output.InputDataConfig != null
1976
1926
  ? deserializeAws_json1_0InputDataConfig(output.InputDataConfig, context)
1977
1927
  : undefined,
1978
1928
  JobId: (0, smithy_client_1.expectString)(output.JobId),
1979
1929
  JobName: (0, smithy_client_1.expectString)(output.JobName),
1980
- JobProgress: output.JobProgress !== undefined && output.JobProgress !== null
1981
- ? deserializeAws_json1_0JobProgress(output.JobProgress, context)
1982
- : undefined,
1930
+ JobProgress: output.JobProgress != null ? deserializeAws_json1_0JobProgress(output.JobProgress, context) : undefined,
1983
1931
  JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1984
- OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
1932
+ OutputDataConfig: output.OutputDataConfig != null
1985
1933
  ? deserializeAws_json1_0OutputDataConfig(output.OutputDataConfig, context)
1986
1934
  : undefined,
1987
1935
  };
@@ -1999,21 +1947,13 @@ const deserializeAws_json1_0SpeakerEnrollmentJobSummaries = (output, context) =>
1999
1947
  };
2000
1948
  const deserializeAws_json1_0SpeakerEnrollmentJobSummary = (output, context) => {
2001
1949
  return {
2002
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
2003
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
2004
- : undefined,
1950
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2005
1951
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
2006
- EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
2007
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt)))
2008
- : undefined,
2009
- FailureDetails: output.FailureDetails !== undefined && output.FailureDetails !== null
2010
- ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context)
2011
- : undefined,
1952
+ EndedAt: output.EndedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndedAt))) : undefined,
1953
+ FailureDetails: output.FailureDetails != null ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context) : undefined,
2012
1954
  JobId: (0, smithy_client_1.expectString)(output.JobId),
2013
1955
  JobName: (0, smithy_client_1.expectString)(output.JobName),
2014
- JobProgress: output.JobProgress !== undefined && output.JobProgress !== null
2015
- ? deserializeAws_json1_0JobProgress(output.JobProgress, context)
2016
- : undefined,
1956
+ JobProgress: output.JobProgress != null ? deserializeAws_json1_0JobProgress(output.JobProgress, context) : undefined,
2017
1957
  JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
2018
1958
  };
2019
1959
  };
@@ -2030,33 +1970,25 @@ const deserializeAws_json1_0SpeakerSummaries = (output, context) => {
2030
1970
  };
2031
1971
  const deserializeAws_json1_0SpeakerSummary = (output, context) => {
2032
1972
  return {
2033
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
2034
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
2035
- : undefined,
1973
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
2036
1974
  CustomerSpeakerId: (0, smithy_client_1.expectString)(output.CustomerSpeakerId),
2037
1975
  DomainId: (0, smithy_client_1.expectString)(output.DomainId),
2038
1976
  GeneratedSpeakerId: (0, smithy_client_1.expectString)(output.GeneratedSpeakerId),
2039
- LastAccessedAt: output.LastAccessedAt !== undefined && output.LastAccessedAt !== null
1977
+ LastAccessedAt: output.LastAccessedAt != null
2040
1978
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedAt)))
2041
1979
  : undefined,
2042
1980
  Status: (0, smithy_client_1.expectString)(output.Status),
2043
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
2044
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
2045
- : undefined,
1981
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
2046
1982
  };
2047
1983
  };
2048
1984
  const deserializeAws_json1_0StartFraudsterRegistrationJobResponse = (output, context) => {
2049
1985
  return {
2050
- Job: output.Job !== undefined && output.Job !== null
2051
- ? deserializeAws_json1_0FraudsterRegistrationJob(output.Job, context)
2052
- : undefined,
1986
+ Job: output.Job != null ? deserializeAws_json1_0FraudsterRegistrationJob(output.Job, context) : undefined,
2053
1987
  };
2054
1988
  };
2055
1989
  const deserializeAws_json1_0StartSpeakerEnrollmentJobResponse = (output, context) => {
2056
1990
  return {
2057
- Job: output.Job !== undefined && output.Job !== null
2058
- ? deserializeAws_json1_0SpeakerEnrollmentJob(output.Job, context)
2059
- : undefined,
1991
+ Job: output.Job != null ? deserializeAws_json1_0SpeakerEnrollmentJob(output.Job, context) : undefined,
2060
1992
  };
2061
1993
  };
2062
1994
  const deserializeAws_json1_0Tag = (output, context) => {
@@ -2089,9 +2021,7 @@ const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
2089
2021
  };
2090
2022
  const deserializeAws_json1_0UpdateDomainResponse = (output, context) => {
2091
2023
  return {
2092
- Domain: output.Domain !== undefined && output.Domain !== null
2093
- ? deserializeAws_json1_0Domain(output.Domain, context)
2094
- : undefined,
2024
+ Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
2095
2025
  };
2096
2026
  };
2097
2027
  const deserializeAws_json1_0ValidationException = (output, context) => {
@@ -2161,5 +2091,4 @@ const loadRestJsonErrorCode = (output, data) => {
2161
2091
  if (data["__type"] !== undefined) {
2162
2092
  return sanitizeErrorCode(data["__type"]);
2163
2093
  }
2164
- return "";
2165
2094
  };