@aws-sdk/client-ivs-realtime 3.523.0 → 3.529.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 +23 -63
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/IVSRealTime.js +0 -1
- package/dist-cjs/IVSRealTimeClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateEncoderConfigurationCommand.js +0 -1
- package/dist-cjs/commands/CreateParticipantTokenCommand.js +0 -1
- package/dist-cjs/commands/CreateStageCommand.js +0 -1
- package/dist-cjs/commands/CreateStorageConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteEncoderConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteStageCommand.js +0 -1
- package/dist-cjs/commands/DeleteStorageConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DisconnectParticipantCommand.js +0 -1
- package/dist-cjs/commands/GetCompositionCommand.js +0 -1
- package/dist-cjs/commands/GetEncoderConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetParticipantCommand.js +0 -1
- package/dist-cjs/commands/GetStageCommand.js +0 -1
- package/dist-cjs/commands/GetStageSessionCommand.js +0 -1
- package/dist-cjs/commands/GetStorageConfigurationCommand.js +0 -1
- package/dist-cjs/commands/ListCompositionsCommand.js +0 -1
- package/dist-cjs/commands/ListEncoderConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListParticipantEventsCommand.js +0 -1
- package/dist-cjs/commands/ListParticipantsCommand.js +0 -1
- package/dist-cjs/commands/ListStageSessionsCommand.js +0 -1
- package/dist-cjs/commands/ListStagesCommand.js +0 -1
- package/dist-cjs/commands/ListStorageConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/StartCompositionCommand.js +0 -1
- package/dist-cjs/commands/StopCompositionCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateStageCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/IVSRealTimeServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCompositionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListEncoderConfigurationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListParticipantEventsPaginator.js +0 -1
- package/dist-cjs/pagination/ListParticipantsPaginator.js +0 -1
- package/dist-cjs/pagination/ListStageSessionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListStagesPaginator.js +0 -1
- package/dist-cjs/pagination/ListStorageConfigurationsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -232,6 +232,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
232
232
|
var import_types = require("@smithy/types");
|
|
233
233
|
|
|
234
234
|
// src/protocols/Aws_restJson1.ts
|
|
235
|
+
var import_core2 = require("@aws-sdk/core");
|
|
235
236
|
|
|
236
237
|
|
|
237
238
|
var import_uuid = require("uuid");
|
|
@@ -881,7 +882,7 @@ var de_CreateEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
881
882
|
const contents = (0, import_smithy_client.map)({
|
|
882
883
|
$metadata: deserializeMetadata(output)
|
|
883
884
|
});
|
|
884
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
885
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
885
886
|
const doc = (0, import_smithy_client.take)(data, {
|
|
886
887
|
encoderConfiguration: (_) => de_EncoderConfiguration(_, context)
|
|
887
888
|
});
|
|
@@ -895,7 +896,7 @@ var de_CreateParticipantTokenCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
895
896
|
const contents = (0, import_smithy_client.map)({
|
|
896
897
|
$metadata: deserializeMetadata(output)
|
|
897
898
|
});
|
|
898
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
899
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
899
900
|
const doc = (0, import_smithy_client.take)(data, {
|
|
900
901
|
participantToken: (_) => de_ParticipantToken(_, context)
|
|
901
902
|
});
|
|
@@ -909,7 +910,7 @@ var de_CreateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
909
910
|
const contents = (0, import_smithy_client.map)({
|
|
910
911
|
$metadata: deserializeMetadata(output)
|
|
911
912
|
});
|
|
912
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
913
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
913
914
|
const doc = (0, import_smithy_client.take)(data, {
|
|
914
915
|
participantTokens: (_) => de_ParticipantTokenList(_, context),
|
|
915
916
|
stage: import_smithy_client._json
|
|
@@ -924,7 +925,7 @@ var de_CreateStorageConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
924
925
|
const contents = (0, import_smithy_client.map)({
|
|
925
926
|
$metadata: deserializeMetadata(output)
|
|
926
927
|
});
|
|
927
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
928
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
928
929
|
const doc = (0, import_smithy_client.take)(data, {
|
|
929
930
|
storageConfiguration: import_smithy_client._json
|
|
930
931
|
});
|
|
@@ -978,7 +979,7 @@ var de_GetCompositionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
978
979
|
const contents = (0, import_smithy_client.map)({
|
|
979
980
|
$metadata: deserializeMetadata(output)
|
|
980
981
|
});
|
|
981
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
982
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
982
983
|
const doc = (0, import_smithy_client.take)(data, {
|
|
983
984
|
composition: (_) => de_Composition(_, context)
|
|
984
985
|
});
|
|
@@ -992,7 +993,7 @@ var de_GetEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
992
993
|
const contents = (0, import_smithy_client.map)({
|
|
993
994
|
$metadata: deserializeMetadata(output)
|
|
994
995
|
});
|
|
995
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
996
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
996
997
|
const doc = (0, import_smithy_client.take)(data, {
|
|
997
998
|
encoderConfiguration: (_) => de_EncoderConfiguration(_, context)
|
|
998
999
|
});
|
|
@@ -1006,7 +1007,7 @@ var de_GetParticipantCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1006
1007
|
const contents = (0, import_smithy_client.map)({
|
|
1007
1008
|
$metadata: deserializeMetadata(output)
|
|
1008
1009
|
});
|
|
1009
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1010
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1010
1011
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1011
1012
|
participant: (_) => de_Participant(_, context)
|
|
1012
1013
|
});
|
|
@@ -1020,7 +1021,7 @@ var de_GetStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1020
1021
|
const contents = (0, import_smithy_client.map)({
|
|
1021
1022
|
$metadata: deserializeMetadata(output)
|
|
1022
1023
|
});
|
|
1023
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1024
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1024
1025
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1025
1026
|
stage: import_smithy_client._json
|
|
1026
1027
|
});
|
|
@@ -1034,7 +1035,7 @@ var de_GetStageSessionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1034
1035
|
const contents = (0, import_smithy_client.map)({
|
|
1035
1036
|
$metadata: deserializeMetadata(output)
|
|
1036
1037
|
});
|
|
1037
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1038
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1038
1039
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1039
1040
|
stageSession: (_) => de_StageSession(_, context)
|
|
1040
1041
|
});
|
|
@@ -1048,7 +1049,7 @@ var de_GetStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1048
1049
|
const contents = (0, import_smithy_client.map)({
|
|
1049
1050
|
$metadata: deserializeMetadata(output)
|
|
1050
1051
|
});
|
|
1051
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1052
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1052
1053
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1053
1054
|
storageConfiguration: import_smithy_client._json
|
|
1054
1055
|
});
|
|
@@ -1062,7 +1063,7 @@ var de_ListCompositionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1062
1063
|
const contents = (0, import_smithy_client.map)({
|
|
1063
1064
|
$metadata: deserializeMetadata(output)
|
|
1064
1065
|
});
|
|
1065
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1066
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1066
1067
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1067
1068
|
compositions: (_) => de_CompositionSummaryList(_, context),
|
|
1068
1069
|
nextToken: import_smithy_client.expectString
|
|
@@ -1077,7 +1078,7 @@ var de_ListEncoderConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1077
1078
|
const contents = (0, import_smithy_client.map)({
|
|
1078
1079
|
$metadata: deserializeMetadata(output)
|
|
1079
1080
|
});
|
|
1080
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1081
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1081
1082
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1082
1083
|
encoderConfigurations: import_smithy_client._json,
|
|
1083
1084
|
nextToken: import_smithy_client.expectString
|
|
@@ -1092,7 +1093,7 @@ var de_ListParticipantEventsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1092
1093
|
const contents = (0, import_smithy_client.map)({
|
|
1093
1094
|
$metadata: deserializeMetadata(output)
|
|
1094
1095
|
});
|
|
1095
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1096
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1096
1097
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1097
1098
|
events: (_) => de_EventList(_, context),
|
|
1098
1099
|
nextToken: import_smithy_client.expectString
|
|
@@ -1107,7 +1108,7 @@ var de_ListParticipantsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1107
1108
|
const contents = (0, import_smithy_client.map)({
|
|
1108
1109
|
$metadata: deserializeMetadata(output)
|
|
1109
1110
|
});
|
|
1110
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1111
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1111
1112
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1112
1113
|
nextToken: import_smithy_client.expectString,
|
|
1113
1114
|
participants: (_) => de_ParticipantList(_, context)
|
|
@@ -1122,7 +1123,7 @@ var de_ListStagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1122
1123
|
const contents = (0, import_smithy_client.map)({
|
|
1123
1124
|
$metadata: deserializeMetadata(output)
|
|
1124
1125
|
});
|
|
1125
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1126
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1126
1127
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1127
1128
|
nextToken: import_smithy_client.expectString,
|
|
1128
1129
|
stages: import_smithy_client._json
|
|
@@ -1137,7 +1138,7 @@ var de_ListStageSessionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1137
1138
|
const contents = (0, import_smithy_client.map)({
|
|
1138
1139
|
$metadata: deserializeMetadata(output)
|
|
1139
1140
|
});
|
|
1140
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1141
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1141
1142
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1142
1143
|
nextToken: import_smithy_client.expectString,
|
|
1143
1144
|
stageSessions: (_) => de_StageSessionList(_, context)
|
|
@@ -1152,7 +1153,7 @@ var de_ListStorageConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1152
1153
|
const contents = (0, import_smithy_client.map)({
|
|
1153
1154
|
$metadata: deserializeMetadata(output)
|
|
1154
1155
|
});
|
|
1155
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1156
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1156
1157
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1157
1158
|
nextToken: import_smithy_client.expectString,
|
|
1158
1159
|
storageConfigurations: import_smithy_client._json
|
|
@@ -1167,7 +1168,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1167
1168
|
const contents = (0, import_smithy_client.map)({
|
|
1168
1169
|
$metadata: deserializeMetadata(output)
|
|
1169
1170
|
});
|
|
1170
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1171
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1171
1172
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1172
1173
|
tags: import_smithy_client._json
|
|
1173
1174
|
});
|
|
@@ -1181,7 +1182,7 @@ var de_StartCompositionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1181
1182
|
const contents = (0, import_smithy_client.map)({
|
|
1182
1183
|
$metadata: deserializeMetadata(output)
|
|
1183
1184
|
});
|
|
1184
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1185
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1185
1186
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1186
1187
|
composition: (_) => de_Composition(_, context)
|
|
1187
1188
|
});
|
|
@@ -1225,7 +1226,7 @@ var de_UpdateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1225
1226
|
const contents = (0, import_smithy_client.map)({
|
|
1226
1227
|
$metadata: deserializeMetadata(output)
|
|
1227
1228
|
});
|
|
1228
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1229
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1229
1230
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1230
1231
|
stage: import_smithy_client._json
|
|
1231
1232
|
});
|
|
@@ -1235,9 +1236,9 @@ var de_UpdateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1235
1236
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1236
1237
|
const parsedOutput = {
|
|
1237
1238
|
...output,
|
|
1238
|
-
body: await
|
|
1239
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1239
1240
|
};
|
|
1240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1241
1242
|
switch (errorCode) {
|
|
1242
1243
|
case "AccessDeniedException":
|
|
1243
1244
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
@@ -1533,48 +1534,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1533
1534
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1534
1535
|
cfId: output.headers["x-amz-cf-id"]
|
|
1535
1536
|
}), "deserializeMetadata");
|
|
1536
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1537
1537
|
var _tK = "tagKeys";
|
|
1538
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1539
|
-
if (encoded.length) {
|
|
1540
|
-
return JSON.parse(encoded);
|
|
1541
|
-
}
|
|
1542
|
-
return {};
|
|
1543
|
-
}), "parseBody");
|
|
1544
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1545
|
-
const value = await parseBody(errorBody, context);
|
|
1546
|
-
value.message = value.message ?? value.Message;
|
|
1547
|
-
return value;
|
|
1548
|
-
}, "parseErrorBody");
|
|
1549
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1550
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1551
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1552
|
-
let cleanValue = rawValue;
|
|
1553
|
-
if (typeof cleanValue === "number") {
|
|
1554
|
-
cleanValue = cleanValue.toString();
|
|
1555
|
-
}
|
|
1556
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1557
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1558
|
-
}
|
|
1559
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1560
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1561
|
-
}
|
|
1562
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1563
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1564
|
-
}
|
|
1565
|
-
return cleanValue;
|
|
1566
|
-
}, "sanitizeErrorCode");
|
|
1567
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1568
|
-
if (headerKey !== void 0) {
|
|
1569
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1570
|
-
}
|
|
1571
|
-
if (data.code !== void 0) {
|
|
1572
|
-
return sanitizeErrorCode(data.code);
|
|
1573
|
-
}
|
|
1574
|
-
if (data["__type"] !== void 0) {
|
|
1575
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1576
|
-
}
|
|
1577
|
-
}, "loadRestJsonErrorCode");
|
|
1578
1538
|
|
|
1579
1539
|
// src/commands/CreateEncoderConfigurationCommand.ts
|
|
1580
1540
|
var _CreateEncoderConfigurationCommand = class _CreateEncoderConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1071,43 +1072,3 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1071
1072
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1072
1073
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1073
1074
|
const _tK = "tagKeys";
|
|
1074
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1075
|
-
if (encoded.length) {
|
|
1076
|
-
return JSON.parse(encoded);
|
|
1077
|
-
}
|
|
1078
|
-
return {};
|
|
1079
|
-
});
|
|
1080
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1081
|
-
const value = await parseBody(errorBody, context);
|
|
1082
|
-
value.message = value.message ?? value.Message;
|
|
1083
|
-
return value;
|
|
1084
|
-
};
|
|
1085
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1086
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1087
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1088
|
-
let cleanValue = rawValue;
|
|
1089
|
-
if (typeof cleanValue === "number") {
|
|
1090
|
-
cleanValue = cleanValue.toString();
|
|
1091
|
-
}
|
|
1092
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1093
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1094
|
-
}
|
|
1095
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1096
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1097
|
-
}
|
|
1098
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1099
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1100
|
-
}
|
|
1101
|
-
return cleanValue;
|
|
1102
|
-
};
|
|
1103
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1104
|
-
if (headerKey !== undefined) {
|
|
1105
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1106
|
-
}
|
|
1107
|
-
if (data.code !== undefined) {
|
|
1108
|
-
return sanitizeErrorCode(data.code);
|
|
1109
|
-
}
|
|
1110
|
-
if (data["__type"] !== undefined) {
|
|
1111
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1112
|
-
}
|
|
1113
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivs-realtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivs Realtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.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-ivs-realtime",
|
|
@@ -20,40 +20,40 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/IVSRealTime.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|