@aws-sdk/client-ivschat 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -669,7 +669,7 @@ var se_UpdateRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
669
669
  }, "se_UpdateRoomCommand");
670
670
  var de_CreateChatTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
671
671
  if (output.statusCode !== 200 && output.statusCode >= 300) {
672
- return de_CreateChatTokenCommandError(output, context);
672
+ return de_CommandError(output, context);
673
673
  }
674
674
  const contents = (0, import_smithy_client.map)({
675
675
  $metadata: deserializeMetadata(output)
@@ -683,37 +683,9 @@ var de_CreateChatTokenCommand = /* @__PURE__ */ __name(async (output, context) =
683
683
  Object.assign(contents, doc);
684
684
  return contents;
685
685
  }, "de_CreateChatTokenCommand");
686
- var de_CreateChatTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
687
- const parsedOutput = {
688
- ...output,
689
- body: await parseErrorBody(output.body, context)
690
- };
691
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
692
- switch (errorCode) {
693
- case "AccessDeniedException":
694
- case "com.amazonaws.ivschat#AccessDeniedException":
695
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
696
- case "PendingVerification":
697
- case "com.amazonaws.ivschat#PendingVerification":
698
- throw await de_PendingVerificationRes(parsedOutput, context);
699
- case "ResourceNotFoundException":
700
- case "com.amazonaws.ivschat#ResourceNotFoundException":
701
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
702
- case "ValidationException":
703
- case "com.amazonaws.ivschat#ValidationException":
704
- throw await de_ValidationExceptionRes(parsedOutput, context);
705
- default:
706
- const parsedBody = parsedOutput.body;
707
- return throwDefaultError({
708
- output,
709
- parsedBody,
710
- errorCode
711
- });
712
- }
713
- }, "de_CreateChatTokenCommandError");
714
686
  var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
715
687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
716
- return de_CreateLoggingConfigurationCommandError(output, context);
688
+ return de_CommandError(output, context);
717
689
  }
718
690
  const contents = (0, import_smithy_client.map)({
719
691
  $metadata: deserializeMetadata(output)
@@ -732,43 +704,9 @@ var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
732
704
  Object.assign(contents, doc);
733
705
  return contents;
734
706
  }, "de_CreateLoggingConfigurationCommand");
735
- var de_CreateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
736
- const parsedOutput = {
737
- ...output,
738
- body: await parseErrorBody(output.body, context)
739
- };
740
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
741
- switch (errorCode) {
742
- case "AccessDeniedException":
743
- case "com.amazonaws.ivschat#AccessDeniedException":
744
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
745
- case "ConflictException":
746
- case "com.amazonaws.ivschat#ConflictException":
747
- throw await de_ConflictExceptionRes(parsedOutput, context);
748
- case "PendingVerification":
749
- case "com.amazonaws.ivschat#PendingVerification":
750
- throw await de_PendingVerificationRes(parsedOutput, context);
751
- case "ResourceNotFoundException":
752
- case "com.amazonaws.ivschat#ResourceNotFoundException":
753
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
754
- case "ServiceQuotaExceededException":
755
- case "com.amazonaws.ivschat#ServiceQuotaExceededException":
756
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
757
- case "ValidationException":
758
- case "com.amazonaws.ivschat#ValidationException":
759
- throw await de_ValidationExceptionRes(parsedOutput, context);
760
- default:
761
- const parsedBody = parsedOutput.body;
762
- return throwDefaultError({
763
- output,
764
- parsedBody,
765
- errorCode
766
- });
767
- }
768
- }, "de_CreateLoggingConfigurationCommandError");
769
707
  var de_CreateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
770
708
  if (output.statusCode !== 200 && output.statusCode >= 300) {
771
- return de_CreateRoomCommandError(output, context);
709
+ return de_CommandError(output, context);
772
710
  }
773
711
  const contents = (0, import_smithy_client.map)({
774
712
  $metadata: deserializeMetadata(output)
@@ -789,43 +727,9 @@ var de_CreateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
789
727
  Object.assign(contents, doc);
790
728
  return contents;
791
729
  }, "de_CreateRoomCommand");
792
- var de_CreateRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
793
- const parsedOutput = {
794
- ...output,
795
- body: await parseErrorBody(output.body, context)
796
- };
797
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
798
- switch (errorCode) {
799
- case "AccessDeniedException":
800
- case "com.amazonaws.ivschat#AccessDeniedException":
801
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
802
- case "ConflictException":
803
- case "com.amazonaws.ivschat#ConflictException":
804
- throw await de_ConflictExceptionRes(parsedOutput, context);
805
- case "PendingVerification":
806
- case "com.amazonaws.ivschat#PendingVerification":
807
- throw await de_PendingVerificationRes(parsedOutput, context);
808
- case "ResourceNotFoundException":
809
- case "com.amazonaws.ivschat#ResourceNotFoundException":
810
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
811
- case "ServiceQuotaExceededException":
812
- case "com.amazonaws.ivschat#ServiceQuotaExceededException":
813
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
814
- case "ValidationException":
815
- case "com.amazonaws.ivschat#ValidationException":
816
- throw await de_ValidationExceptionRes(parsedOutput, context);
817
- default:
818
- const parsedBody = parsedOutput.body;
819
- return throwDefaultError({
820
- output,
821
- parsedBody,
822
- errorCode
823
- });
824
- }
825
- }, "de_CreateRoomCommandError");
826
730
  var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
827
731
  if (output.statusCode !== 204 && output.statusCode >= 300) {
828
- return de_DeleteLoggingConfigurationCommandError(output, context);
732
+ return de_CommandError(output, context);
829
733
  }
830
734
  const contents = (0, import_smithy_client.map)({
831
735
  $metadata: deserializeMetadata(output)
@@ -833,40 +737,9 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
833
737
  await (0, import_smithy_client.collectBody)(output.body, context);
834
738
  return contents;
835
739
  }, "de_DeleteLoggingConfigurationCommand");
836
- var de_DeleteLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
837
- const parsedOutput = {
838
- ...output,
839
- body: await parseErrorBody(output.body, context)
840
- };
841
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
842
- switch (errorCode) {
843
- case "AccessDeniedException":
844
- case "com.amazonaws.ivschat#AccessDeniedException":
845
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
846
- case "ConflictException":
847
- case "com.amazonaws.ivschat#ConflictException":
848
- throw await de_ConflictExceptionRes(parsedOutput, context);
849
- case "PendingVerification":
850
- case "com.amazonaws.ivschat#PendingVerification":
851
- throw await de_PendingVerificationRes(parsedOutput, context);
852
- case "ResourceNotFoundException":
853
- case "com.amazonaws.ivschat#ResourceNotFoundException":
854
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
- case "ValidationException":
856
- case "com.amazonaws.ivschat#ValidationException":
857
- throw await de_ValidationExceptionRes(parsedOutput, context);
858
- default:
859
- const parsedBody = parsedOutput.body;
860
- return throwDefaultError({
861
- output,
862
- parsedBody,
863
- errorCode
864
- });
865
- }
866
- }, "de_DeleteLoggingConfigurationCommandError");
867
740
  var de_DeleteMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
868
741
  if (output.statusCode !== 200 && output.statusCode >= 300) {
869
- return de_DeleteMessageCommandError(output, context);
742
+ return de_CommandError(output, context);
870
743
  }
871
744
  const contents = (0, import_smithy_client.map)({
872
745
  $metadata: deserializeMetadata(output)
@@ -878,40 +751,9 @@ var de_DeleteMessageCommand = /* @__PURE__ */ __name(async (output, context) =>
878
751
  Object.assign(contents, doc);
879
752
  return contents;
880
753
  }, "de_DeleteMessageCommand");
881
- var de_DeleteMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
882
- const parsedOutput = {
883
- ...output,
884
- body: await parseErrorBody(output.body, context)
885
- };
886
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
887
- switch (errorCode) {
888
- case "AccessDeniedException":
889
- case "com.amazonaws.ivschat#AccessDeniedException":
890
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
891
- case "PendingVerification":
892
- case "com.amazonaws.ivschat#PendingVerification":
893
- throw await de_PendingVerificationRes(parsedOutput, context);
894
- case "ResourceNotFoundException":
895
- case "com.amazonaws.ivschat#ResourceNotFoundException":
896
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
897
- case "ThrottlingException":
898
- case "com.amazonaws.ivschat#ThrottlingException":
899
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
900
- case "ValidationException":
901
- case "com.amazonaws.ivschat#ValidationException":
902
- throw await de_ValidationExceptionRes(parsedOutput, context);
903
- default:
904
- const parsedBody = parsedOutput.body;
905
- return throwDefaultError({
906
- output,
907
- parsedBody,
908
- errorCode
909
- });
910
- }
911
- }, "de_DeleteMessageCommandError");
912
754
  var de_DeleteRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
913
755
  if (output.statusCode !== 204 && output.statusCode >= 300) {
914
- return de_DeleteRoomCommandError(output, context);
756
+ return de_CommandError(output, context);
915
757
  }
916
758
  const contents = (0, import_smithy_client.map)({
917
759
  $metadata: deserializeMetadata(output)
@@ -919,37 +761,9 @@ var de_DeleteRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
919
761
  await (0, import_smithy_client.collectBody)(output.body, context);
920
762
  return contents;
921
763
  }, "de_DeleteRoomCommand");
922
- var de_DeleteRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
923
- const parsedOutput = {
924
- ...output,
925
- body: await parseErrorBody(output.body, context)
926
- };
927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
- switch (errorCode) {
929
- case "AccessDeniedException":
930
- case "com.amazonaws.ivschat#AccessDeniedException":
931
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
932
- case "PendingVerification":
933
- case "com.amazonaws.ivschat#PendingVerification":
934
- throw await de_PendingVerificationRes(parsedOutput, context);
935
- case "ResourceNotFoundException":
936
- case "com.amazonaws.ivschat#ResourceNotFoundException":
937
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
938
- case "ValidationException":
939
- case "com.amazonaws.ivschat#ValidationException":
940
- throw await de_ValidationExceptionRes(parsedOutput, context);
941
- default:
942
- const parsedBody = parsedOutput.body;
943
- return throwDefaultError({
944
- output,
945
- parsedBody,
946
- errorCode
947
- });
948
- }
949
- }, "de_DeleteRoomCommandError");
950
764
  var de_DisconnectUserCommand = /* @__PURE__ */ __name(async (output, context) => {
951
765
  if (output.statusCode !== 200 && output.statusCode >= 300) {
952
- return de_DisconnectUserCommandError(output, context);
766
+ return de_CommandError(output, context);
953
767
  }
954
768
  const contents = (0, import_smithy_client.map)({
955
769
  $metadata: deserializeMetadata(output)
@@ -957,40 +771,9 @@ var de_DisconnectUserCommand = /* @__PURE__ */ __name(async (output, context) =>
957
771
  await (0, import_smithy_client.collectBody)(output.body, context);
958
772
  return contents;
959
773
  }, "de_DisconnectUserCommand");
960
- var de_DisconnectUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
961
- const parsedOutput = {
962
- ...output,
963
- body: await parseErrorBody(output.body, context)
964
- };
965
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
966
- switch (errorCode) {
967
- case "AccessDeniedException":
968
- case "com.amazonaws.ivschat#AccessDeniedException":
969
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
970
- case "PendingVerification":
971
- case "com.amazonaws.ivschat#PendingVerification":
972
- throw await de_PendingVerificationRes(parsedOutput, context);
973
- case "ResourceNotFoundException":
974
- case "com.amazonaws.ivschat#ResourceNotFoundException":
975
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
976
- case "ThrottlingException":
977
- case "com.amazonaws.ivschat#ThrottlingException":
978
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
979
- case "ValidationException":
980
- case "com.amazonaws.ivschat#ValidationException":
981
- throw await de_ValidationExceptionRes(parsedOutput, context);
982
- default:
983
- const parsedBody = parsedOutput.body;
984
- return throwDefaultError({
985
- output,
986
- parsedBody,
987
- errorCode
988
- });
989
- }
990
- }, "de_DisconnectUserCommandError");
991
774
  var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
992
775
  if (output.statusCode !== 200 && output.statusCode >= 300) {
993
- return de_GetLoggingConfigurationCommandError(output, context);
776
+ return de_CommandError(output, context);
994
777
  }
995
778
  const contents = (0, import_smithy_client.map)({
996
779
  $metadata: deserializeMetadata(output)
@@ -1009,34 +792,9 @@ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
1009
792
  Object.assign(contents, doc);
1010
793
  return contents;
1011
794
  }, "de_GetLoggingConfigurationCommand");
1012
- var de_GetLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1013
- const parsedOutput = {
1014
- ...output,
1015
- body: await parseErrorBody(output.body, context)
1016
- };
1017
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1018
- switch (errorCode) {
1019
- case "AccessDeniedException":
1020
- case "com.amazonaws.ivschat#AccessDeniedException":
1021
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1022
- case "ResourceNotFoundException":
1023
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1024
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1025
- case "ValidationException":
1026
- case "com.amazonaws.ivschat#ValidationException":
1027
- throw await de_ValidationExceptionRes(parsedOutput, context);
1028
- default:
1029
- const parsedBody = parsedOutput.body;
1030
- return throwDefaultError({
1031
- output,
1032
- parsedBody,
1033
- errorCode
1034
- });
1035
- }
1036
- }, "de_GetLoggingConfigurationCommandError");
1037
795
  var de_GetRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
1038
796
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1039
- return de_GetRoomCommandError(output, context);
797
+ return de_CommandError(output, context);
1040
798
  }
1041
799
  const contents = (0, import_smithy_client.map)({
1042
800
  $metadata: deserializeMetadata(output)
@@ -1057,34 +815,9 @@ var de_GetRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
1057
815
  Object.assign(contents, doc);
1058
816
  return contents;
1059
817
  }, "de_GetRoomCommand");
1060
- var de_GetRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
1061
- const parsedOutput = {
1062
- ...output,
1063
- body: await parseErrorBody(output.body, context)
1064
- };
1065
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1066
- switch (errorCode) {
1067
- case "AccessDeniedException":
1068
- case "com.amazonaws.ivschat#AccessDeniedException":
1069
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1070
- case "ResourceNotFoundException":
1071
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1072
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1073
- case "ValidationException":
1074
- case "com.amazonaws.ivschat#ValidationException":
1075
- throw await de_ValidationExceptionRes(parsedOutput, context);
1076
- default:
1077
- const parsedBody = parsedOutput.body;
1078
- return throwDefaultError({
1079
- output,
1080
- parsedBody,
1081
- errorCode
1082
- });
1083
- }
1084
- }, "de_GetRoomCommandError");
1085
818
  var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1086
819
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1087
- return de_ListLoggingConfigurationsCommandError(output, context);
820
+ return de_CommandError(output, context);
1088
821
  }
1089
822
  const contents = (0, import_smithy_client.map)({
1090
823
  $metadata: deserializeMetadata(output)
@@ -1097,31 +830,9 @@ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output,
1097
830
  Object.assign(contents, doc);
1098
831
  return contents;
1099
832
  }, "de_ListLoggingConfigurationsCommand");
1100
- var de_ListLoggingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1101
- const parsedOutput = {
1102
- ...output,
1103
- body: await parseErrorBody(output.body, context)
1104
- };
1105
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1106
- switch (errorCode) {
1107
- case "AccessDeniedException":
1108
- case "com.amazonaws.ivschat#AccessDeniedException":
1109
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1110
- case "ValidationException":
1111
- case "com.amazonaws.ivschat#ValidationException":
1112
- throw await de_ValidationExceptionRes(parsedOutput, context);
1113
- default:
1114
- const parsedBody = parsedOutput.body;
1115
- return throwDefaultError({
1116
- output,
1117
- parsedBody,
1118
- errorCode
1119
- });
1120
- }
1121
- }, "de_ListLoggingConfigurationsCommandError");
1122
833
  var de_ListRoomsCommand = /* @__PURE__ */ __name(async (output, context) => {
1123
834
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
- return de_ListRoomsCommandError(output, context);
835
+ return de_CommandError(output, context);
1125
836
  }
1126
837
  const contents = (0, import_smithy_client.map)({
1127
838
  $metadata: deserializeMetadata(output)
@@ -1134,34 +845,9 @@ var de_ListRoomsCommand = /* @__PURE__ */ __name(async (output, context) => {
1134
845
  Object.assign(contents, doc);
1135
846
  return contents;
1136
847
  }, "de_ListRoomsCommand");
1137
- var de_ListRoomsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1138
- const parsedOutput = {
1139
- ...output,
1140
- body: await parseErrorBody(output.body, context)
1141
- };
1142
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1143
- switch (errorCode) {
1144
- case "AccessDeniedException":
1145
- case "com.amazonaws.ivschat#AccessDeniedException":
1146
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1147
- case "ResourceNotFoundException":
1148
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1149
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1150
- case "ValidationException":
1151
- case "com.amazonaws.ivschat#ValidationException":
1152
- throw await de_ValidationExceptionRes(parsedOutput, context);
1153
- default:
1154
- const parsedBody = parsedOutput.body;
1155
- return throwDefaultError({
1156
- output,
1157
- parsedBody,
1158
- errorCode
1159
- });
1160
- }
1161
- }, "de_ListRoomsCommandError");
1162
848
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1163
849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1164
- return de_ListTagsForResourceCommandError(output, context);
850
+ return de_CommandError(output, context);
1165
851
  }
1166
852
  const contents = (0, import_smithy_client.map)({
1167
853
  $metadata: deserializeMetadata(output)
@@ -1173,34 +859,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1173
859
  Object.assign(contents, doc);
1174
860
  return contents;
1175
861
  }, "de_ListTagsForResourceCommand");
1176
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1177
- const parsedOutput = {
1178
- ...output,
1179
- body: await parseErrorBody(output.body, context)
1180
- };
1181
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1182
- switch (errorCode) {
1183
- case "InternalServerException":
1184
- case "com.amazonaws.ivschat#InternalServerException":
1185
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1186
- case "ResourceNotFoundException":
1187
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1188
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1189
- case "ValidationException":
1190
- case "com.amazonaws.ivschat#ValidationException":
1191
- throw await de_ValidationExceptionRes(parsedOutput, context);
1192
- default:
1193
- const parsedBody = parsedOutput.body;
1194
- return throwDefaultError({
1195
- output,
1196
- parsedBody,
1197
- errorCode
1198
- });
1199
- }
1200
- }, "de_ListTagsForResourceCommandError");
1201
862
  var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1202
863
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1203
- return de_SendEventCommandError(output, context);
864
+ return de_CommandError(output, context);
1204
865
  }
1205
866
  const contents = (0, import_smithy_client.map)({
1206
867
  $metadata: deserializeMetadata(output)
@@ -1212,40 +873,9 @@ var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1212
873
  Object.assign(contents, doc);
1213
874
  return contents;
1214
875
  }, "de_SendEventCommand");
1215
- var de_SendEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
1216
- const parsedOutput = {
1217
- ...output,
1218
- body: await parseErrorBody(output.body, context)
1219
- };
1220
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1221
- switch (errorCode) {
1222
- case "AccessDeniedException":
1223
- case "com.amazonaws.ivschat#AccessDeniedException":
1224
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1225
- case "PendingVerification":
1226
- case "com.amazonaws.ivschat#PendingVerification":
1227
- throw await de_PendingVerificationRes(parsedOutput, context);
1228
- case "ResourceNotFoundException":
1229
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1230
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1231
- case "ThrottlingException":
1232
- case "com.amazonaws.ivschat#ThrottlingException":
1233
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1234
- case "ValidationException":
1235
- case "com.amazonaws.ivschat#ValidationException":
1236
- throw await de_ValidationExceptionRes(parsedOutput, context);
1237
- default:
1238
- const parsedBody = parsedOutput.body;
1239
- return throwDefaultError({
1240
- output,
1241
- parsedBody,
1242
- errorCode
1243
- });
1244
- }
1245
- }, "de_SendEventCommandError");
1246
876
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1247
877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1248
- return de_TagResourceCommandError(output, context);
878
+ return de_CommandError(output, context);
1249
879
  }
1250
880
  const contents = (0, import_smithy_client.map)({
1251
881
  $metadata: deserializeMetadata(output)
@@ -1253,34 +883,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1253
883
  await (0, import_smithy_client.collectBody)(output.body, context);
1254
884
  return contents;
1255
885
  }, "de_TagResourceCommand");
1256
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1257
- const parsedOutput = {
1258
- ...output,
1259
- body: await parseErrorBody(output.body, context)
1260
- };
1261
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
- switch (errorCode) {
1263
- case "InternalServerException":
1264
- case "com.amazonaws.ivschat#InternalServerException":
1265
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1266
- case "ResourceNotFoundException":
1267
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1268
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1269
- case "ValidationException":
1270
- case "com.amazonaws.ivschat#ValidationException":
1271
- throw await de_ValidationExceptionRes(parsedOutput, context);
1272
- default:
1273
- const parsedBody = parsedOutput.body;
1274
- return throwDefaultError({
1275
- output,
1276
- parsedBody,
1277
- errorCode
1278
- });
1279
- }
1280
- }, "de_TagResourceCommandError");
1281
886
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1282
887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1283
- return de_UntagResourceCommandError(output, context);
888
+ return de_CommandError(output, context);
1284
889
  }
1285
890
  const contents = (0, import_smithy_client.map)({
1286
891
  $metadata: deserializeMetadata(output)
@@ -1288,34 +893,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1288
893
  await (0, import_smithy_client.collectBody)(output.body, context);
1289
894
  return contents;
1290
895
  }, "de_UntagResourceCommand");
1291
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1292
- const parsedOutput = {
1293
- ...output,
1294
- body: await parseErrorBody(output.body, context)
1295
- };
1296
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
- switch (errorCode) {
1298
- case "InternalServerException":
1299
- case "com.amazonaws.ivschat#InternalServerException":
1300
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1301
- case "ResourceNotFoundException":
1302
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1303
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1304
- case "ValidationException":
1305
- case "com.amazonaws.ivschat#ValidationException":
1306
- throw await de_ValidationExceptionRes(parsedOutput, context);
1307
- default:
1308
- const parsedBody = parsedOutput.body;
1309
- return throwDefaultError({
1310
- output,
1311
- parsedBody,
1312
- errorCode
1313
- });
1314
- }
1315
- }, "de_UntagResourceCommandError");
1316
896
  var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1317
897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1318
- return de_UpdateLoggingConfigurationCommandError(output, context);
898
+ return de_CommandError(output, context);
1319
899
  }
1320
900
  const contents = (0, import_smithy_client.map)({
1321
901
  $metadata: deserializeMetadata(output)
@@ -1334,40 +914,9 @@ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
1334
914
  Object.assign(contents, doc);
1335
915
  return contents;
1336
916
  }, "de_UpdateLoggingConfigurationCommand");
1337
- var de_UpdateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1338
- const parsedOutput = {
1339
- ...output,
1340
- body: await parseErrorBody(output.body, context)
1341
- };
1342
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1343
- switch (errorCode) {
1344
- case "AccessDeniedException":
1345
- case "com.amazonaws.ivschat#AccessDeniedException":
1346
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1347
- case "ConflictException":
1348
- case "com.amazonaws.ivschat#ConflictException":
1349
- throw await de_ConflictExceptionRes(parsedOutput, context);
1350
- case "PendingVerification":
1351
- case "com.amazonaws.ivschat#PendingVerification":
1352
- throw await de_PendingVerificationRes(parsedOutput, context);
1353
- case "ResourceNotFoundException":
1354
- case "com.amazonaws.ivschat#ResourceNotFoundException":
1355
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1356
- case "ValidationException":
1357
- case "com.amazonaws.ivschat#ValidationException":
1358
- throw await de_ValidationExceptionRes(parsedOutput, context);
1359
- default:
1360
- const parsedBody = parsedOutput.body;
1361
- return throwDefaultError({
1362
- output,
1363
- parsedBody,
1364
- errorCode
1365
- });
1366
- }
1367
- }, "de_UpdateLoggingConfigurationCommandError");
1368
917
  var de_UpdateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
1369
918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1370
- return de_UpdateRoomCommandError(output, context);
919
+ return de_CommandError(output, context);
1371
920
  }
1372
921
  const contents = (0, import_smithy_client.map)({
1373
922
  $metadata: deserializeMetadata(output)
@@ -1388,7 +937,7 @@ var de_UpdateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
1388
937
  Object.assign(contents, doc);
1389
938
  return contents;
1390
939
  }, "de_UpdateRoomCommand");
1391
- var de_UpdateRoomCommandError = /* @__PURE__ */ __name(async (output, context) => {
940
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1392
941
  const parsedOutput = {
1393
942
  ...output,
1394
943
  body: await parseErrorBody(output.body, context)
@@ -1407,6 +956,18 @@ var de_UpdateRoomCommandError = /* @__PURE__ */ __name(async (output, context) =
1407
956
  case "ValidationException":
1408
957
  case "com.amazonaws.ivschat#ValidationException":
1409
958
  throw await de_ValidationExceptionRes(parsedOutput, context);
959
+ case "ConflictException":
960
+ case "com.amazonaws.ivschat#ConflictException":
961
+ throw await de_ConflictExceptionRes(parsedOutput, context);
962
+ case "ServiceQuotaExceededException":
963
+ case "com.amazonaws.ivschat#ServiceQuotaExceededException":
964
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
965
+ case "ThrottlingException":
966
+ case "com.amazonaws.ivschat#ThrottlingException":
967
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
968
+ case "InternalServerException":
969
+ case "com.amazonaws.ivschat#InternalServerException":
970
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1410
971
  default:
1411
972
  const parsedBody = parsedOutput.body;
1412
973
  return throwDefaultError({
@@ -1415,7 +976,7 @@ var de_UpdateRoomCommandError = /* @__PURE__ */ __name(async (output, context) =
1415
976
  errorCode
1416
977
  });
1417
978
  }
1418
- }, "de_UpdateRoomCommandError");
979
+ }, "de_CommandError");
1419
980
  var throwDefaultError = (0, import_smithy_client.withBaseException)(IvschatServiceException);
1420
981
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1421
982
  const contents = (0, import_smithy_client.map)({});
@@ -254,7 +254,7 @@ export const se_UpdateRoomCommand = async (input, context) => {
254
254
  };
255
255
  export const de_CreateChatTokenCommand = async (output, context) => {
256
256
  if (output.statusCode !== 200 && output.statusCode >= 300) {
257
- return de_CreateChatTokenCommandError(output, context);
257
+ return de_CommandError(output, context);
258
258
  }
259
259
  const contents = map({
260
260
  $metadata: deserializeMetadata(output),
@@ -268,37 +268,9 @@ export const de_CreateChatTokenCommand = async (output, context) => {
268
268
  Object.assign(contents, doc);
269
269
  return contents;
270
270
  };
271
- const de_CreateChatTokenCommandError = async (output, context) => {
272
- const parsedOutput = {
273
- ...output,
274
- body: await parseErrorBody(output.body, context),
275
- };
276
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
277
- switch (errorCode) {
278
- case "AccessDeniedException":
279
- case "com.amazonaws.ivschat#AccessDeniedException":
280
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
281
- case "PendingVerification":
282
- case "com.amazonaws.ivschat#PendingVerification":
283
- throw await de_PendingVerificationRes(parsedOutput, context);
284
- case "ResourceNotFoundException":
285
- case "com.amazonaws.ivschat#ResourceNotFoundException":
286
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
287
- case "ValidationException":
288
- case "com.amazonaws.ivschat#ValidationException":
289
- throw await de_ValidationExceptionRes(parsedOutput, context);
290
- default:
291
- const parsedBody = parsedOutput.body;
292
- return throwDefaultError({
293
- output,
294
- parsedBody,
295
- errorCode,
296
- });
297
- }
298
- };
299
271
  export const de_CreateLoggingConfigurationCommand = async (output, context) => {
300
272
  if (output.statusCode !== 200 && output.statusCode >= 300) {
301
- return de_CreateLoggingConfigurationCommandError(output, context);
273
+ return de_CommandError(output, context);
302
274
  }
303
275
  const contents = map({
304
276
  $metadata: deserializeMetadata(output),
@@ -317,43 +289,9 @@ export const de_CreateLoggingConfigurationCommand = async (output, context) => {
317
289
  Object.assign(contents, doc);
318
290
  return contents;
319
291
  };
320
- const de_CreateLoggingConfigurationCommandError = async (output, context) => {
321
- const parsedOutput = {
322
- ...output,
323
- body: await parseErrorBody(output.body, context),
324
- };
325
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
326
- switch (errorCode) {
327
- case "AccessDeniedException":
328
- case "com.amazonaws.ivschat#AccessDeniedException":
329
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
330
- case "ConflictException":
331
- case "com.amazonaws.ivschat#ConflictException":
332
- throw await de_ConflictExceptionRes(parsedOutput, context);
333
- case "PendingVerification":
334
- case "com.amazonaws.ivschat#PendingVerification":
335
- throw await de_PendingVerificationRes(parsedOutput, context);
336
- case "ResourceNotFoundException":
337
- case "com.amazonaws.ivschat#ResourceNotFoundException":
338
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
339
- case "ServiceQuotaExceededException":
340
- case "com.amazonaws.ivschat#ServiceQuotaExceededException":
341
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
342
- case "ValidationException":
343
- case "com.amazonaws.ivschat#ValidationException":
344
- throw await de_ValidationExceptionRes(parsedOutput, context);
345
- default:
346
- const parsedBody = parsedOutput.body;
347
- return throwDefaultError({
348
- output,
349
- parsedBody,
350
- errorCode,
351
- });
352
- }
353
- };
354
292
  export const de_CreateRoomCommand = async (output, context) => {
355
293
  if (output.statusCode !== 200 && output.statusCode >= 300) {
356
- return de_CreateRoomCommandError(output, context);
294
+ return de_CommandError(output, context);
357
295
  }
358
296
  const contents = map({
359
297
  $metadata: deserializeMetadata(output),
@@ -374,43 +312,9 @@ export const de_CreateRoomCommand = async (output, context) => {
374
312
  Object.assign(contents, doc);
375
313
  return contents;
376
314
  };
377
- const de_CreateRoomCommandError = async (output, context) => {
378
- const parsedOutput = {
379
- ...output,
380
- body: await parseErrorBody(output.body, context),
381
- };
382
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
383
- switch (errorCode) {
384
- case "AccessDeniedException":
385
- case "com.amazonaws.ivschat#AccessDeniedException":
386
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
387
- case "ConflictException":
388
- case "com.amazonaws.ivschat#ConflictException":
389
- throw await de_ConflictExceptionRes(parsedOutput, context);
390
- case "PendingVerification":
391
- case "com.amazonaws.ivschat#PendingVerification":
392
- throw await de_PendingVerificationRes(parsedOutput, context);
393
- case "ResourceNotFoundException":
394
- case "com.amazonaws.ivschat#ResourceNotFoundException":
395
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
396
- case "ServiceQuotaExceededException":
397
- case "com.amazonaws.ivschat#ServiceQuotaExceededException":
398
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
399
- case "ValidationException":
400
- case "com.amazonaws.ivschat#ValidationException":
401
- throw await de_ValidationExceptionRes(parsedOutput, context);
402
- default:
403
- const parsedBody = parsedOutput.body;
404
- return throwDefaultError({
405
- output,
406
- parsedBody,
407
- errorCode,
408
- });
409
- }
410
- };
411
315
  export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
412
316
  if (output.statusCode !== 204 && output.statusCode >= 300) {
413
- return de_DeleteLoggingConfigurationCommandError(output, context);
317
+ return de_CommandError(output, context);
414
318
  }
415
319
  const contents = map({
416
320
  $metadata: deserializeMetadata(output),
@@ -418,40 +322,9 @@ export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
418
322
  await collectBody(output.body, context);
419
323
  return contents;
420
324
  };
421
- const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
422
- const parsedOutput = {
423
- ...output,
424
- body: await parseErrorBody(output.body, context),
425
- };
426
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
427
- switch (errorCode) {
428
- case "AccessDeniedException":
429
- case "com.amazonaws.ivschat#AccessDeniedException":
430
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
431
- case "ConflictException":
432
- case "com.amazonaws.ivschat#ConflictException":
433
- throw await de_ConflictExceptionRes(parsedOutput, context);
434
- case "PendingVerification":
435
- case "com.amazonaws.ivschat#PendingVerification":
436
- throw await de_PendingVerificationRes(parsedOutput, context);
437
- case "ResourceNotFoundException":
438
- case "com.amazonaws.ivschat#ResourceNotFoundException":
439
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
440
- case "ValidationException":
441
- case "com.amazonaws.ivschat#ValidationException":
442
- throw await de_ValidationExceptionRes(parsedOutput, context);
443
- default:
444
- const parsedBody = parsedOutput.body;
445
- return throwDefaultError({
446
- output,
447
- parsedBody,
448
- errorCode,
449
- });
450
- }
451
- };
452
325
  export const de_DeleteMessageCommand = async (output, context) => {
453
326
  if (output.statusCode !== 200 && output.statusCode >= 300) {
454
- return de_DeleteMessageCommandError(output, context);
327
+ return de_CommandError(output, context);
455
328
  }
456
329
  const contents = map({
457
330
  $metadata: deserializeMetadata(output),
@@ -463,40 +336,9 @@ export const de_DeleteMessageCommand = async (output, context) => {
463
336
  Object.assign(contents, doc);
464
337
  return contents;
465
338
  };
466
- const de_DeleteMessageCommandError = async (output, context) => {
467
- const parsedOutput = {
468
- ...output,
469
- body: await parseErrorBody(output.body, context),
470
- };
471
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
472
- switch (errorCode) {
473
- case "AccessDeniedException":
474
- case "com.amazonaws.ivschat#AccessDeniedException":
475
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
476
- case "PendingVerification":
477
- case "com.amazonaws.ivschat#PendingVerification":
478
- throw await de_PendingVerificationRes(parsedOutput, context);
479
- case "ResourceNotFoundException":
480
- case "com.amazonaws.ivschat#ResourceNotFoundException":
481
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
482
- case "ThrottlingException":
483
- case "com.amazonaws.ivschat#ThrottlingException":
484
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
485
- case "ValidationException":
486
- case "com.amazonaws.ivschat#ValidationException":
487
- throw await de_ValidationExceptionRes(parsedOutput, context);
488
- default:
489
- const parsedBody = parsedOutput.body;
490
- return throwDefaultError({
491
- output,
492
- parsedBody,
493
- errorCode,
494
- });
495
- }
496
- };
497
339
  export const de_DeleteRoomCommand = async (output, context) => {
498
340
  if (output.statusCode !== 204 && output.statusCode >= 300) {
499
- return de_DeleteRoomCommandError(output, context);
341
+ return de_CommandError(output, context);
500
342
  }
501
343
  const contents = map({
502
344
  $metadata: deserializeMetadata(output),
@@ -504,37 +346,9 @@ export const de_DeleteRoomCommand = async (output, context) => {
504
346
  await collectBody(output.body, context);
505
347
  return contents;
506
348
  };
507
- const de_DeleteRoomCommandError = async (output, context) => {
508
- const parsedOutput = {
509
- ...output,
510
- body: await parseErrorBody(output.body, context),
511
- };
512
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
513
- switch (errorCode) {
514
- case "AccessDeniedException":
515
- case "com.amazonaws.ivschat#AccessDeniedException":
516
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
517
- case "PendingVerification":
518
- case "com.amazonaws.ivschat#PendingVerification":
519
- throw await de_PendingVerificationRes(parsedOutput, context);
520
- case "ResourceNotFoundException":
521
- case "com.amazonaws.ivschat#ResourceNotFoundException":
522
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
523
- case "ValidationException":
524
- case "com.amazonaws.ivschat#ValidationException":
525
- throw await de_ValidationExceptionRes(parsedOutput, context);
526
- default:
527
- const parsedBody = parsedOutput.body;
528
- return throwDefaultError({
529
- output,
530
- parsedBody,
531
- errorCode,
532
- });
533
- }
534
- };
535
349
  export const de_DisconnectUserCommand = async (output, context) => {
536
350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
537
- return de_DisconnectUserCommandError(output, context);
351
+ return de_CommandError(output, context);
538
352
  }
539
353
  const contents = map({
540
354
  $metadata: deserializeMetadata(output),
@@ -542,40 +356,9 @@ export const de_DisconnectUserCommand = async (output, context) => {
542
356
  await collectBody(output.body, context);
543
357
  return contents;
544
358
  };
545
- const de_DisconnectUserCommandError = async (output, context) => {
546
- const parsedOutput = {
547
- ...output,
548
- body: await parseErrorBody(output.body, context),
549
- };
550
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
551
- switch (errorCode) {
552
- case "AccessDeniedException":
553
- case "com.amazonaws.ivschat#AccessDeniedException":
554
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
555
- case "PendingVerification":
556
- case "com.amazonaws.ivschat#PendingVerification":
557
- throw await de_PendingVerificationRes(parsedOutput, context);
558
- case "ResourceNotFoundException":
559
- case "com.amazonaws.ivschat#ResourceNotFoundException":
560
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
561
- case "ThrottlingException":
562
- case "com.amazonaws.ivschat#ThrottlingException":
563
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
564
- case "ValidationException":
565
- case "com.amazonaws.ivschat#ValidationException":
566
- throw await de_ValidationExceptionRes(parsedOutput, context);
567
- default:
568
- const parsedBody = parsedOutput.body;
569
- return throwDefaultError({
570
- output,
571
- parsedBody,
572
- errorCode,
573
- });
574
- }
575
- };
576
359
  export const de_GetLoggingConfigurationCommand = async (output, context) => {
577
360
  if (output.statusCode !== 200 && output.statusCode >= 300) {
578
- return de_GetLoggingConfigurationCommandError(output, context);
361
+ return de_CommandError(output, context);
579
362
  }
580
363
  const contents = map({
581
364
  $metadata: deserializeMetadata(output),
@@ -594,34 +377,9 @@ export const de_GetLoggingConfigurationCommand = async (output, context) => {
594
377
  Object.assign(contents, doc);
595
378
  return contents;
596
379
  };
597
- const de_GetLoggingConfigurationCommandError = async (output, context) => {
598
- const parsedOutput = {
599
- ...output,
600
- body: await parseErrorBody(output.body, context),
601
- };
602
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
603
- switch (errorCode) {
604
- case "AccessDeniedException":
605
- case "com.amazonaws.ivschat#AccessDeniedException":
606
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
607
- case "ResourceNotFoundException":
608
- case "com.amazonaws.ivschat#ResourceNotFoundException":
609
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
610
- case "ValidationException":
611
- case "com.amazonaws.ivschat#ValidationException":
612
- throw await de_ValidationExceptionRes(parsedOutput, context);
613
- default:
614
- const parsedBody = parsedOutput.body;
615
- return throwDefaultError({
616
- output,
617
- parsedBody,
618
- errorCode,
619
- });
620
- }
621
- };
622
380
  export const de_GetRoomCommand = async (output, context) => {
623
381
  if (output.statusCode !== 200 && output.statusCode >= 300) {
624
- return de_GetRoomCommandError(output, context);
382
+ return de_CommandError(output, context);
625
383
  }
626
384
  const contents = map({
627
385
  $metadata: deserializeMetadata(output),
@@ -642,34 +400,9 @@ export const de_GetRoomCommand = async (output, context) => {
642
400
  Object.assign(contents, doc);
643
401
  return contents;
644
402
  };
645
- const de_GetRoomCommandError = async (output, context) => {
646
- const parsedOutput = {
647
- ...output,
648
- body: await parseErrorBody(output.body, context),
649
- };
650
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
651
- switch (errorCode) {
652
- case "AccessDeniedException":
653
- case "com.amazonaws.ivschat#AccessDeniedException":
654
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
655
- case "ResourceNotFoundException":
656
- case "com.amazonaws.ivschat#ResourceNotFoundException":
657
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
658
- case "ValidationException":
659
- case "com.amazonaws.ivschat#ValidationException":
660
- throw await de_ValidationExceptionRes(parsedOutput, context);
661
- default:
662
- const parsedBody = parsedOutput.body;
663
- return throwDefaultError({
664
- output,
665
- parsedBody,
666
- errorCode,
667
- });
668
- }
669
- };
670
403
  export const de_ListLoggingConfigurationsCommand = async (output, context) => {
671
404
  if (output.statusCode !== 200 && output.statusCode >= 300) {
672
- return de_ListLoggingConfigurationsCommandError(output, context);
405
+ return de_CommandError(output, context);
673
406
  }
674
407
  const contents = map({
675
408
  $metadata: deserializeMetadata(output),
@@ -682,31 +415,9 @@ export const de_ListLoggingConfigurationsCommand = async (output, context) => {
682
415
  Object.assign(contents, doc);
683
416
  return contents;
684
417
  };
685
- const de_ListLoggingConfigurationsCommandError = async (output, context) => {
686
- const parsedOutput = {
687
- ...output,
688
- body: await parseErrorBody(output.body, context),
689
- };
690
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
691
- switch (errorCode) {
692
- case "AccessDeniedException":
693
- case "com.amazonaws.ivschat#AccessDeniedException":
694
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
695
- case "ValidationException":
696
- case "com.amazonaws.ivschat#ValidationException":
697
- throw await de_ValidationExceptionRes(parsedOutput, context);
698
- default:
699
- const parsedBody = parsedOutput.body;
700
- return throwDefaultError({
701
- output,
702
- parsedBody,
703
- errorCode,
704
- });
705
- }
706
- };
707
418
  export const de_ListRoomsCommand = async (output, context) => {
708
419
  if (output.statusCode !== 200 && output.statusCode >= 300) {
709
- return de_ListRoomsCommandError(output, context);
420
+ return de_CommandError(output, context);
710
421
  }
711
422
  const contents = map({
712
423
  $metadata: deserializeMetadata(output),
@@ -719,34 +430,9 @@ export const de_ListRoomsCommand = async (output, context) => {
719
430
  Object.assign(contents, doc);
720
431
  return contents;
721
432
  };
722
- const de_ListRoomsCommandError = async (output, context) => {
723
- const parsedOutput = {
724
- ...output,
725
- body: await parseErrorBody(output.body, context),
726
- };
727
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
728
- switch (errorCode) {
729
- case "AccessDeniedException":
730
- case "com.amazonaws.ivschat#AccessDeniedException":
731
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
732
- case "ResourceNotFoundException":
733
- case "com.amazonaws.ivschat#ResourceNotFoundException":
734
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
735
- case "ValidationException":
736
- case "com.amazonaws.ivschat#ValidationException":
737
- throw await de_ValidationExceptionRes(parsedOutput, context);
738
- default:
739
- const parsedBody = parsedOutput.body;
740
- return throwDefaultError({
741
- output,
742
- parsedBody,
743
- errorCode,
744
- });
745
- }
746
- };
747
433
  export const de_ListTagsForResourceCommand = async (output, context) => {
748
434
  if (output.statusCode !== 200 && output.statusCode >= 300) {
749
- return de_ListTagsForResourceCommandError(output, context);
435
+ return de_CommandError(output, context);
750
436
  }
751
437
  const contents = map({
752
438
  $metadata: deserializeMetadata(output),
@@ -758,34 +444,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
758
444
  Object.assign(contents, doc);
759
445
  return contents;
760
446
  };
761
- const de_ListTagsForResourceCommandError = async (output, context) => {
762
- const parsedOutput = {
763
- ...output,
764
- body: await parseErrorBody(output.body, context),
765
- };
766
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
767
- switch (errorCode) {
768
- case "InternalServerException":
769
- case "com.amazonaws.ivschat#InternalServerException":
770
- throw await de_InternalServerExceptionRes(parsedOutput, context);
771
- case "ResourceNotFoundException":
772
- case "com.amazonaws.ivschat#ResourceNotFoundException":
773
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
774
- case "ValidationException":
775
- case "com.amazonaws.ivschat#ValidationException":
776
- throw await de_ValidationExceptionRes(parsedOutput, context);
777
- default:
778
- const parsedBody = parsedOutput.body;
779
- return throwDefaultError({
780
- output,
781
- parsedBody,
782
- errorCode,
783
- });
784
- }
785
- };
786
447
  export const de_SendEventCommand = async (output, context) => {
787
448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
788
- return de_SendEventCommandError(output, context);
449
+ return de_CommandError(output, context);
789
450
  }
790
451
  const contents = map({
791
452
  $metadata: deserializeMetadata(output),
@@ -797,40 +458,9 @@ export const de_SendEventCommand = async (output, context) => {
797
458
  Object.assign(contents, doc);
798
459
  return contents;
799
460
  };
800
- const de_SendEventCommandError = async (output, context) => {
801
- const parsedOutput = {
802
- ...output,
803
- body: await parseErrorBody(output.body, context),
804
- };
805
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
806
- switch (errorCode) {
807
- case "AccessDeniedException":
808
- case "com.amazonaws.ivschat#AccessDeniedException":
809
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
810
- case "PendingVerification":
811
- case "com.amazonaws.ivschat#PendingVerification":
812
- throw await de_PendingVerificationRes(parsedOutput, context);
813
- case "ResourceNotFoundException":
814
- case "com.amazonaws.ivschat#ResourceNotFoundException":
815
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
816
- case "ThrottlingException":
817
- case "com.amazonaws.ivschat#ThrottlingException":
818
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
819
- case "ValidationException":
820
- case "com.amazonaws.ivschat#ValidationException":
821
- throw await de_ValidationExceptionRes(parsedOutput, context);
822
- default:
823
- const parsedBody = parsedOutput.body;
824
- return throwDefaultError({
825
- output,
826
- parsedBody,
827
- errorCode,
828
- });
829
- }
830
- };
831
461
  export const de_TagResourceCommand = async (output, context) => {
832
462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
833
- return de_TagResourceCommandError(output, context);
463
+ return de_CommandError(output, context);
834
464
  }
835
465
  const contents = map({
836
466
  $metadata: deserializeMetadata(output),
@@ -838,34 +468,9 @@ export const de_TagResourceCommand = async (output, context) => {
838
468
  await collectBody(output.body, context);
839
469
  return contents;
840
470
  };
841
- const de_TagResourceCommandError = async (output, context) => {
842
- const parsedOutput = {
843
- ...output,
844
- body: await parseErrorBody(output.body, context),
845
- };
846
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
847
- switch (errorCode) {
848
- case "InternalServerException":
849
- case "com.amazonaws.ivschat#InternalServerException":
850
- throw await de_InternalServerExceptionRes(parsedOutput, context);
851
- case "ResourceNotFoundException":
852
- case "com.amazonaws.ivschat#ResourceNotFoundException":
853
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
854
- case "ValidationException":
855
- case "com.amazonaws.ivschat#ValidationException":
856
- throw await de_ValidationExceptionRes(parsedOutput, context);
857
- default:
858
- const parsedBody = parsedOutput.body;
859
- return throwDefaultError({
860
- output,
861
- parsedBody,
862
- errorCode,
863
- });
864
- }
865
- };
866
471
  export const de_UntagResourceCommand = async (output, context) => {
867
472
  if (output.statusCode !== 200 && output.statusCode >= 300) {
868
- return de_UntagResourceCommandError(output, context);
473
+ return de_CommandError(output, context);
869
474
  }
870
475
  const contents = map({
871
476
  $metadata: deserializeMetadata(output),
@@ -873,34 +478,9 @@ export const de_UntagResourceCommand = async (output, context) => {
873
478
  await collectBody(output.body, context);
874
479
  return contents;
875
480
  };
876
- const de_UntagResourceCommandError = async (output, context) => {
877
- const parsedOutput = {
878
- ...output,
879
- body: await parseErrorBody(output.body, context),
880
- };
881
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
882
- switch (errorCode) {
883
- case "InternalServerException":
884
- case "com.amazonaws.ivschat#InternalServerException":
885
- throw await de_InternalServerExceptionRes(parsedOutput, context);
886
- case "ResourceNotFoundException":
887
- case "com.amazonaws.ivschat#ResourceNotFoundException":
888
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
889
- case "ValidationException":
890
- case "com.amazonaws.ivschat#ValidationException":
891
- throw await de_ValidationExceptionRes(parsedOutput, context);
892
- default:
893
- const parsedBody = parsedOutput.body;
894
- return throwDefaultError({
895
- output,
896
- parsedBody,
897
- errorCode,
898
- });
899
- }
900
- };
901
481
  export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
902
482
  if (output.statusCode !== 200 && output.statusCode >= 300) {
903
- return de_UpdateLoggingConfigurationCommandError(output, context);
483
+ return de_CommandError(output, context);
904
484
  }
905
485
  const contents = map({
906
486
  $metadata: deserializeMetadata(output),
@@ -919,40 +499,9 @@ export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
919
499
  Object.assign(contents, doc);
920
500
  return contents;
921
501
  };
922
- const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
923
- const parsedOutput = {
924
- ...output,
925
- body: await parseErrorBody(output.body, context),
926
- };
927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
- switch (errorCode) {
929
- case "AccessDeniedException":
930
- case "com.amazonaws.ivschat#AccessDeniedException":
931
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
932
- case "ConflictException":
933
- case "com.amazonaws.ivschat#ConflictException":
934
- throw await de_ConflictExceptionRes(parsedOutput, context);
935
- case "PendingVerification":
936
- case "com.amazonaws.ivschat#PendingVerification":
937
- throw await de_PendingVerificationRes(parsedOutput, context);
938
- case "ResourceNotFoundException":
939
- case "com.amazonaws.ivschat#ResourceNotFoundException":
940
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
941
- case "ValidationException":
942
- case "com.amazonaws.ivschat#ValidationException":
943
- throw await de_ValidationExceptionRes(parsedOutput, context);
944
- default:
945
- const parsedBody = parsedOutput.body;
946
- return throwDefaultError({
947
- output,
948
- parsedBody,
949
- errorCode,
950
- });
951
- }
952
- };
953
502
  export const de_UpdateRoomCommand = async (output, context) => {
954
503
  if (output.statusCode !== 200 && output.statusCode >= 300) {
955
- return de_UpdateRoomCommandError(output, context);
504
+ return de_CommandError(output, context);
956
505
  }
957
506
  const contents = map({
958
507
  $metadata: deserializeMetadata(output),
@@ -973,7 +522,7 @@ export const de_UpdateRoomCommand = async (output, context) => {
973
522
  Object.assign(contents, doc);
974
523
  return contents;
975
524
  };
976
- const de_UpdateRoomCommandError = async (output, context) => {
525
+ const de_CommandError = async (output, context) => {
977
526
  const parsedOutput = {
978
527
  ...output,
979
528
  body: await parseErrorBody(output.body, context),
@@ -992,6 +541,18 @@ const de_UpdateRoomCommandError = async (output, context) => {
992
541
  case "ValidationException":
993
542
  case "com.amazonaws.ivschat#ValidationException":
994
543
  throw await de_ValidationExceptionRes(parsedOutput, context);
544
+ case "ConflictException":
545
+ case "com.amazonaws.ivschat#ConflictException":
546
+ throw await de_ConflictExceptionRes(parsedOutput, context);
547
+ case "ServiceQuotaExceededException":
548
+ case "com.amazonaws.ivschat#ServiceQuotaExceededException":
549
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
550
+ case "ThrottlingException":
551
+ case "com.amazonaws.ivschat#ThrottlingException":
552
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
553
+ case "InternalServerException":
554
+ case "com.amazonaws.ivschat#InternalServerException":
555
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
995
556
  default:
996
557
  const parsedBody = parsedOutput.body;
997
558
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ivschat",
3
3
  "description": "AWS SDK for JavaScript Ivschat Client for Node.js, Browser and React Native",
4
- "version": "3.503.1",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ivschat",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.502.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.503.1",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",