@aws-sdk/client-ivs 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 +28 -68
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/Ivs.js +0 -1
- package/dist-cjs/IvsClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/BatchGetChannelCommand.js +0 -1
- package/dist-cjs/commands/BatchGetStreamKeyCommand.js +0 -1
- package/dist-cjs/commands/BatchStartViewerSessionRevocationCommand.js +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js +0 -1
- package/dist-cjs/commands/CreatePlaybackRestrictionPolicyCommand.js +0 -1
- package/dist-cjs/commands/CreateRecordingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/CreateStreamKeyCommand.js +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js +0 -1
- package/dist-cjs/commands/DeletePlaybackKeyPairCommand.js +0 -1
- package/dist-cjs/commands/DeletePlaybackRestrictionPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteRecordingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteStreamKeyCommand.js +0 -1
- package/dist-cjs/commands/GetChannelCommand.js +0 -1
- package/dist-cjs/commands/GetPlaybackKeyPairCommand.js +0 -1
- package/dist-cjs/commands/GetPlaybackRestrictionPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetRecordingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetStreamCommand.js +0 -1
- package/dist-cjs/commands/GetStreamKeyCommand.js +0 -1
- package/dist-cjs/commands/GetStreamSessionCommand.js +0 -1
- package/dist-cjs/commands/ImportPlaybackKeyPairCommand.js +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js +0 -1
- package/dist-cjs/commands/ListPlaybackKeyPairsCommand.js +0 -1
- package/dist-cjs/commands/ListPlaybackRestrictionPoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListRecordingConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListStreamKeysCommand.js +0 -1
- package/dist-cjs/commands/ListStreamSessionsCommand.js +0 -1
- package/dist-cjs/commands/ListStreamsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutMetadataCommand.js +0 -1
- package/dist-cjs/commands/StartViewerSessionRevocationCommand.js +0 -1
- package/dist-cjs/commands/StopStreamCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateChannelCommand.js +0 -1
- package/dist-cjs/commands/UpdatePlaybackRestrictionPolicyCommand.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/IvsServiceException.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/ListChannelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPlaybackKeyPairsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPlaybackRestrictionPoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListRecordingConfigurationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListStreamKeysPaginator.js +0 -1
- package/dist-cjs/pagination/ListStreamSessionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListStreamsPaginator.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
|
@@ -250,6 +250,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
250
250
|
var import_types = require("@smithy/types");
|
|
251
251
|
|
|
252
252
|
// src/protocols/Aws_restJson1.ts
|
|
253
|
+
var import_core2 = require("@aws-sdk/core");
|
|
253
254
|
|
|
254
255
|
|
|
255
256
|
|
|
@@ -1104,7 +1105,7 @@ var de_BatchGetChannelCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1104
1105
|
const contents = (0, import_smithy_client.map)({
|
|
1105
1106
|
$metadata: deserializeMetadata(output)
|
|
1106
1107
|
});
|
|
1107
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1108
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1108
1109
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1109
1110
|
channels: import_smithy_client._json,
|
|
1110
1111
|
errors: import_smithy_client._json
|
|
@@ -1119,7 +1120,7 @@ var de_BatchGetStreamKeyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1119
1120
|
const contents = (0, import_smithy_client.map)({
|
|
1120
1121
|
$metadata: deserializeMetadata(output)
|
|
1121
1122
|
});
|
|
1122
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1123
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1123
1124
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1124
1125
|
errors: import_smithy_client._json,
|
|
1125
1126
|
streamKeys: import_smithy_client._json
|
|
@@ -1134,7 +1135,7 @@ var de_BatchStartViewerSessionRevocationCommand = /* @__PURE__ */ __name(async (
|
|
|
1134
1135
|
const contents = (0, import_smithy_client.map)({
|
|
1135
1136
|
$metadata: deserializeMetadata(output)
|
|
1136
1137
|
});
|
|
1137
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1138
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1138
1139
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1139
1140
|
errors: import_smithy_client._json
|
|
1140
1141
|
});
|
|
@@ -1148,7 +1149,7 @@ var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1148
1149
|
const contents = (0, import_smithy_client.map)({
|
|
1149
1150
|
$metadata: deserializeMetadata(output)
|
|
1150
1151
|
});
|
|
1151
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1152
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1152
1153
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1153
1154
|
channel: import_smithy_client._json,
|
|
1154
1155
|
streamKey: import_smithy_client._json
|
|
@@ -1163,7 +1164,7 @@ var de_CreatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1163
1164
|
const contents = (0, import_smithy_client.map)({
|
|
1164
1165
|
$metadata: deserializeMetadata(output)
|
|
1165
1166
|
});
|
|
1166
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1167
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1167
1168
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1168
1169
|
playbackRestrictionPolicy: import_smithy_client._json
|
|
1169
1170
|
});
|
|
@@ -1177,7 +1178,7 @@ var de_CreateRecordingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1177
1178
|
const contents = (0, import_smithy_client.map)({
|
|
1178
1179
|
$metadata: deserializeMetadata(output)
|
|
1179
1180
|
});
|
|
1180
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1181
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1181
1182
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1182
1183
|
recordingConfiguration: import_smithy_client._json
|
|
1183
1184
|
});
|
|
@@ -1191,7 +1192,7 @@ var de_CreateStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1191
1192
|
const contents = (0, import_smithy_client.map)({
|
|
1192
1193
|
$metadata: deserializeMetadata(output)
|
|
1193
1194
|
});
|
|
1194
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1195
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1195
1196
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1196
1197
|
streamKey: import_smithy_client._json
|
|
1197
1198
|
});
|
|
@@ -1255,7 +1256,7 @@ var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1255
1256
|
const contents = (0, import_smithy_client.map)({
|
|
1256
1257
|
$metadata: deserializeMetadata(output)
|
|
1257
1258
|
});
|
|
1258
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1259
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1259
1260
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1260
1261
|
channel: import_smithy_client._json
|
|
1261
1262
|
});
|
|
@@ -1269,7 +1270,7 @@ var de_GetPlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1269
1270
|
const contents = (0, import_smithy_client.map)({
|
|
1270
1271
|
$metadata: deserializeMetadata(output)
|
|
1271
1272
|
});
|
|
1272
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1273
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1273
1274
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1274
1275
|
keyPair: import_smithy_client._json
|
|
1275
1276
|
});
|
|
@@ -1283,7 +1284,7 @@ var de_GetPlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1283
1284
|
const contents = (0, import_smithy_client.map)({
|
|
1284
1285
|
$metadata: deserializeMetadata(output)
|
|
1285
1286
|
});
|
|
1286
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1287
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1287
1288
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1288
1289
|
playbackRestrictionPolicy: import_smithy_client._json
|
|
1289
1290
|
});
|
|
@@ -1297,7 +1298,7 @@ var de_GetRecordingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1297
1298
|
const contents = (0, import_smithy_client.map)({
|
|
1298
1299
|
$metadata: deserializeMetadata(output)
|
|
1299
1300
|
});
|
|
1300
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1301
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1301
1302
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1302
1303
|
recordingConfiguration: import_smithy_client._json
|
|
1303
1304
|
});
|
|
@@ -1311,7 +1312,7 @@ var de_GetStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1311
1312
|
const contents = (0, import_smithy_client.map)({
|
|
1312
1313
|
$metadata: deserializeMetadata(output)
|
|
1313
1314
|
});
|
|
1314
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1315
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1315
1316
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1316
1317
|
stream: (_) => de__Stream(_, context)
|
|
1317
1318
|
});
|
|
@@ -1325,7 +1326,7 @@ var de_GetStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1325
1326
|
const contents = (0, import_smithy_client.map)({
|
|
1326
1327
|
$metadata: deserializeMetadata(output)
|
|
1327
1328
|
});
|
|
1328
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1329
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1329
1330
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1330
1331
|
streamKey: import_smithy_client._json
|
|
1331
1332
|
});
|
|
@@ -1339,7 +1340,7 @@ var de_GetStreamSessionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1339
1340
|
const contents = (0, import_smithy_client.map)({
|
|
1340
1341
|
$metadata: deserializeMetadata(output)
|
|
1341
1342
|
});
|
|
1342
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1343
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1343
1344
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1344
1345
|
streamSession: (_) => de_StreamSession(_, context)
|
|
1345
1346
|
});
|
|
@@ -1353,7 +1354,7 @@ var de_ImportPlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1353
1354
|
const contents = (0, import_smithy_client.map)({
|
|
1354
1355
|
$metadata: deserializeMetadata(output)
|
|
1355
1356
|
});
|
|
1356
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1357
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1357
1358
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1358
1359
|
keyPair: import_smithy_client._json
|
|
1359
1360
|
});
|
|
@@ -1367,7 +1368,7 @@ var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1367
1368
|
const contents = (0, import_smithy_client.map)({
|
|
1368
1369
|
$metadata: deserializeMetadata(output)
|
|
1369
1370
|
});
|
|
1370
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1371
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1371
1372
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1372
1373
|
channels: import_smithy_client._json,
|
|
1373
1374
|
nextToken: import_smithy_client.expectString
|
|
@@ -1382,7 +1383,7 @@ var de_ListPlaybackKeyPairsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1382
1383
|
const contents = (0, import_smithy_client.map)({
|
|
1383
1384
|
$metadata: deserializeMetadata(output)
|
|
1384
1385
|
});
|
|
1385
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1386
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1386
1387
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1387
1388
|
keyPairs: import_smithy_client._json,
|
|
1388
1389
|
nextToken: import_smithy_client.expectString
|
|
@@ -1397,7 +1398,7 @@ var de_ListPlaybackRestrictionPoliciesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1397
1398
|
const contents = (0, import_smithy_client.map)({
|
|
1398
1399
|
$metadata: deserializeMetadata(output)
|
|
1399
1400
|
});
|
|
1400
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1401
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1401
1402
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1402
1403
|
nextToken: import_smithy_client.expectString,
|
|
1403
1404
|
playbackRestrictionPolicies: import_smithy_client._json
|
|
@@ -1412,7 +1413,7 @@ var de_ListRecordingConfigurationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1412
1413
|
const contents = (0, import_smithy_client.map)({
|
|
1413
1414
|
$metadata: deserializeMetadata(output)
|
|
1414
1415
|
});
|
|
1415
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1416
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1416
1417
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1417
1418
|
nextToken: import_smithy_client.expectString,
|
|
1418
1419
|
recordingConfigurations: import_smithy_client._json
|
|
@@ -1427,7 +1428,7 @@ var de_ListStreamKeysCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1427
1428
|
const contents = (0, import_smithy_client.map)({
|
|
1428
1429
|
$metadata: deserializeMetadata(output)
|
|
1429
1430
|
});
|
|
1430
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1431
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1431
1432
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1432
1433
|
nextToken: import_smithy_client.expectString,
|
|
1433
1434
|
streamKeys: import_smithy_client._json
|
|
@@ -1442,7 +1443,7 @@ var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1442
1443
|
const contents = (0, import_smithy_client.map)({
|
|
1443
1444
|
$metadata: deserializeMetadata(output)
|
|
1444
1445
|
});
|
|
1445
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1446
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1446
1447
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1447
1448
|
nextToken: import_smithy_client.expectString,
|
|
1448
1449
|
streams: (_) => de_StreamList(_, context)
|
|
@@ -1457,7 +1458,7 @@ var de_ListStreamSessionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1457
1458
|
const contents = (0, import_smithy_client.map)({
|
|
1458
1459
|
$metadata: deserializeMetadata(output)
|
|
1459
1460
|
});
|
|
1460
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1461
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1461
1462
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1462
1463
|
nextToken: import_smithy_client.expectString,
|
|
1463
1464
|
streamSessions: (_) => de_StreamSessionList(_, context)
|
|
@@ -1472,7 +1473,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1472
1473
|
const contents = (0, import_smithy_client.map)({
|
|
1473
1474
|
$metadata: deserializeMetadata(output)
|
|
1474
1475
|
});
|
|
1475
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1476
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1476
1477
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1477
1478
|
tags: import_smithy_client._json
|
|
1478
1479
|
});
|
|
@@ -1536,7 +1537,7 @@ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1536
1537
|
const contents = (0, import_smithy_client.map)({
|
|
1537
1538
|
$metadata: deserializeMetadata(output)
|
|
1538
1539
|
});
|
|
1539
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1540
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1540
1541
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1541
1542
|
channel: import_smithy_client._json
|
|
1542
1543
|
});
|
|
@@ -1550,7 +1551,7 @@ var de_UpdatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1550
1551
|
const contents = (0, import_smithy_client.map)({
|
|
1551
1552
|
$metadata: deserializeMetadata(output)
|
|
1552
1553
|
});
|
|
1553
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1554
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1554
1555
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1555
1556
|
playbackRestrictionPolicy: import_smithy_client._json
|
|
1556
1557
|
});
|
|
@@ -1560,9 +1561,9 @@ var de_UpdatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1560
1561
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1561
1562
|
const parsedOutput = {
|
|
1562
1563
|
...output,
|
|
1563
|
-
body: await
|
|
1564
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1564
1565
|
};
|
|
1565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1566
1567
|
switch (errorCode) {
|
|
1567
1568
|
case "AccessDeniedException":
|
|
1568
1569
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1805,48 +1806,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1805
1806
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1806
1807
|
cfId: output.headers["x-amz-cf-id"]
|
|
1807
1808
|
}), "deserializeMetadata");
|
|
1808
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1809
1809
|
var _tK = "tagKeys";
|
|
1810
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1811
|
-
if (encoded.length) {
|
|
1812
|
-
return JSON.parse(encoded);
|
|
1813
|
-
}
|
|
1814
|
-
return {};
|
|
1815
|
-
}), "parseBody");
|
|
1816
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1817
|
-
const value = await parseBody(errorBody, context);
|
|
1818
|
-
value.message = value.message ?? value.Message;
|
|
1819
|
-
return value;
|
|
1820
|
-
}, "parseErrorBody");
|
|
1821
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1822
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1823
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1824
|
-
let cleanValue = rawValue;
|
|
1825
|
-
if (typeof cleanValue === "number") {
|
|
1826
|
-
cleanValue = cleanValue.toString();
|
|
1827
|
-
}
|
|
1828
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1829
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1830
|
-
}
|
|
1831
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1832
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1833
|
-
}
|
|
1834
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1835
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1836
|
-
}
|
|
1837
|
-
return cleanValue;
|
|
1838
|
-
}, "sanitizeErrorCode");
|
|
1839
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1840
|
-
if (headerKey !== void 0) {
|
|
1841
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1842
|
-
}
|
|
1843
|
-
if (data.code !== void 0) {
|
|
1844
|
-
return sanitizeErrorCode(data.code);
|
|
1845
|
-
}
|
|
1846
|
-
if (data["__type"] !== void 0) {
|
|
1847
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1848
|
-
}
|
|
1849
|
-
}, "loadRestJsonErrorCode");
|
|
1850
1810
|
|
|
1851
1811
|
// src/commands/BatchGetChannelCommand.ts
|
|
1852
1812
|
var _BatchGetChannelCommand = class _BatchGetChannelCommand 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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { IvsServiceException as __BaseException } from "../models/IvsServiceException";
|
|
@@ -1226,43 +1227,3 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1226
1227
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1227
1228
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1228
1229
|
const _tK = "tagKeys";
|
|
1229
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1230
|
-
if (encoded.length) {
|
|
1231
|
-
return JSON.parse(encoded);
|
|
1232
|
-
}
|
|
1233
|
-
return {};
|
|
1234
|
-
});
|
|
1235
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1236
|
-
const value = await parseBody(errorBody, context);
|
|
1237
|
-
value.message = value.message ?? value.Message;
|
|
1238
|
-
return value;
|
|
1239
|
-
};
|
|
1240
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1241
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1242
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1243
|
-
let cleanValue = rawValue;
|
|
1244
|
-
if (typeof cleanValue === "number") {
|
|
1245
|
-
cleanValue = cleanValue.toString();
|
|
1246
|
-
}
|
|
1247
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1248
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1249
|
-
}
|
|
1250
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1251
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1252
|
-
}
|
|
1253
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1254
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1255
|
-
}
|
|
1256
|
-
return cleanValue;
|
|
1257
|
-
};
|
|
1258
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1259
|
-
if (headerKey !== undefined) {
|
|
1260
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1261
|
-
}
|
|
1262
|
-
if (data.code !== undefined) {
|
|
1263
|
-
return sanitizeErrorCode(data.code);
|
|
1264
|
-
}
|
|
1265
|
-
if (data["__type"] !== undefined) {
|
|
1266
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1267
|
-
}
|
|
1268
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivs 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",
|
|
@@ -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/Ivs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
package/dist-cjs/IvsClient.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");
|
|
@@ -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");
|