@aws-sdk/client-ivs 3.28.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ivs
9
+
10
+
11
+
12
+
13
+
14
+ # [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-ivs
17
+
18
+
19
+
20
+
21
+
22
+ # [3.30.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.29.0...v3.30.0) (2021-09-07)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-ivs
25
+
26
+
27
+
28
+
29
+
30
+ # [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
31
+
32
+ **Note:** Version bump only for package @aws-sdk/client-ivs
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.28.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.27.0...v3.28.0) (2021-08-27)
7
39
 
8
40
 
@@ -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.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,45 +27,45 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.23.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.3.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -624,7 +624,7 @@ const deserializeAws_restJson1BatchGetChannelCommand = async (output, context) =
624
624
  channels: undefined,
625
625
  errors: undefined,
626
626
  };
627
- const data = await parseBody(output.body, context);
627
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
628
628
  if (data.channels !== undefined && data.channels !== null) {
629
629
  contents.channels = deserializeAws_restJson1Channels(data.channels, context);
630
630
  }
@@ -668,7 +668,7 @@ const deserializeAws_restJson1BatchGetStreamKeyCommand = async (output, context)
668
668
  errors: undefined,
669
669
  streamKeys: undefined,
670
670
  };
671
- const data = await parseBody(output.body, context);
671
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
672
672
  if (data.errors !== undefined && data.errors !== null) {
673
673
  contents.errors = deserializeAws_restJson1BatchErrors(data.errors, context);
674
674
  }
@@ -712,7 +712,7 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
712
712
  channel: undefined,
713
713
  streamKey: undefined,
714
714
  };
715
- const data = await parseBody(output.body, context);
715
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
716
716
  if (data.channel !== undefined && data.channel !== null) {
717
717
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
718
718
  }
@@ -795,7 +795,7 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommand = async (outpu
795
795
  $metadata: deserializeMetadata(output),
796
796
  recordingConfiguration: undefined,
797
797
  };
798
- const data = await parseBody(output.body, context);
798
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
799
799
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
800
800
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
801
801
  }
@@ -883,7 +883,7 @@ const deserializeAws_restJson1CreateStreamKeyCommand = async (output, context) =
883
883
  $metadata: deserializeMetadata(output),
884
884
  streamKey: undefined,
885
885
  };
886
- const data = await parseBody(output.body, context);
886
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
887
887
  if (data.streamKey !== undefined && data.streamKey !== null) {
888
888
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
889
889
  }
@@ -1251,7 +1251,7 @@ const deserializeAws_restJson1GetChannelCommand = async (output, context) => {
1251
1251
  $metadata: deserializeMetadata(output),
1252
1252
  channel: undefined,
1253
1253
  };
1254
- const data = await parseBody(output.body, context);
1254
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1255
1255
  if (data.channel !== undefined && data.channel !== null) {
1256
1256
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
1257
1257
  }
@@ -1315,7 +1315,7 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommand = async (output, context
1315
1315
  $metadata: deserializeMetadata(output),
1316
1316
  keyPair: undefined,
1317
1317
  };
1318
- const data = await parseBody(output.body, context);
1318
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1319
1319
  if (data.keyPair !== undefined && data.keyPair !== null) {
1320
1320
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1321
1321
  }
@@ -1379,7 +1379,7 @@ const deserializeAws_restJson1GetRecordingConfigurationCommand = async (output,
1379
1379
  $metadata: deserializeMetadata(output),
1380
1380
  recordingConfiguration: undefined,
1381
1381
  };
1382
- const data = await parseBody(output.body, context);
1382
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1383
1383
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
1384
1384
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
1385
1385
  }
@@ -1451,7 +1451,7 @@ const deserializeAws_restJson1GetStreamCommand = async (output, context) => {
1451
1451
  $metadata: deserializeMetadata(output),
1452
1452
  stream: undefined,
1453
1453
  };
1454
- const data = await parseBody(output.body, context);
1454
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1455
1455
  if (data.stream !== undefined && data.stream !== null) {
1456
1456
  contents.stream = deserializeAws_restJson1_Stream(data.stream, context);
1457
1457
  }
@@ -1523,7 +1523,7 @@ const deserializeAws_restJson1GetStreamKeyCommand = async (output, context) => {
1523
1523
  $metadata: deserializeMetadata(output),
1524
1524
  streamKey: undefined,
1525
1525
  };
1526
- const data = await parseBody(output.body, context);
1526
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1527
1527
  if (data.streamKey !== undefined && data.streamKey !== null) {
1528
1528
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
1529
1529
  }
@@ -1587,7 +1587,7 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommand = async (output, cont
1587
1587
  $metadata: deserializeMetadata(output),
1588
1588
  keyPair: undefined,
1589
1589
  };
1590
- const data = await parseBody(output.body, context);
1590
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1591
1591
  if (data.keyPair !== undefined && data.keyPair !== null) {
1592
1592
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1593
1593
  }
@@ -1668,7 +1668,7 @@ const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
1668
1668
  channels: undefined,
1669
1669
  nextToken: undefined,
1670
1670
  };
1671
- const data = await parseBody(output.body, context);
1671
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1672
1672
  if (data.channels !== undefined && data.channels !== null) {
1673
1673
  contents.channels = deserializeAws_restJson1ChannelList(data.channels, context);
1674
1674
  }
@@ -1736,7 +1736,7 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommand = async (output, conte
1736
1736
  keyPairs: undefined,
1737
1737
  nextToken: undefined,
1738
1738
  };
1739
- const data = await parseBody(output.body, context);
1739
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1740
1740
  if (data.keyPairs !== undefined && data.keyPairs !== null) {
1741
1741
  contents.keyPairs = deserializeAws_restJson1PlaybackKeyPairList(data.keyPairs, context);
1742
1742
  }
@@ -1796,7 +1796,7 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommand = async (output
1796
1796
  nextToken: undefined,
1797
1797
  recordingConfigurations: undefined,
1798
1798
  };
1799
- const data = await parseBody(output.body, context);
1799
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1800
1800
  if (data.nextToken !== undefined && data.nextToken !== null) {
1801
1801
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1802
1802
  }
@@ -1864,7 +1864,7 @@ const deserializeAws_restJson1ListStreamKeysCommand = async (output, context) =>
1864
1864
  nextToken: undefined,
1865
1865
  streamKeys: undefined,
1866
1866
  };
1867
- const data = await parseBody(output.body, context);
1867
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1868
1868
  if (data.nextToken !== undefined && data.nextToken !== null) {
1869
1869
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1870
1870
  }
@@ -1932,7 +1932,7 @@ const deserializeAws_restJson1ListStreamsCommand = async (output, context) => {
1932
1932
  nextToken: undefined,
1933
1933
  streams: undefined,
1934
1934
  };
1935
- const data = await parseBody(output.body, context);
1935
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1936
1936
  if (data.nextToken !== undefined && data.nextToken !== null) {
1937
1937
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1938
1938
  }
@@ -1984,7 +1984,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
1984
1984
  nextToken: undefined,
1985
1985
  tags: undefined,
1986
1986
  };
1987
- const data = await parseBody(output.body, context);
1987
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1988
1988
  if (data.nextToken !== undefined && data.nextToken !== null) {
1989
1989
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
1990
1990
  }
@@ -2323,7 +2323,7 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
2323
2323
  $metadata: deserializeMetadata(output),
2324
2324
  channel: undefined,
2325
2325
  };
2326
- const data = await parseBody(output.body, context);
2326
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2327
2327
  if (data.channel !== undefined && data.channel !== null) {
2328
2328
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
2329
2329
  }
@@ -2713,9 +2713,11 @@ const deserializeAws_restJson1_Stream = (output, context) => {
2713
2713
  channelArn: smithy_client_1.expectString(output.channelArn),
2714
2714
  health: smithy_client_1.expectString(output.health),
2715
2715
  playbackUrl: smithy_client_1.expectString(output.playbackUrl),
2716
- startTime: output.startTime !== undefined && output.startTime !== null ? new Date(output.startTime) : undefined,
2716
+ startTime: output.startTime !== undefined && output.startTime !== null
2717
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startTime))
2718
+ : undefined,
2717
2719
  state: smithy_client_1.expectString(output.state),
2718
- viewerCount: smithy_client_1.expectInt(output.viewerCount),
2720
+ viewerCount: smithy_client_1.expectLong(output.viewerCount),
2719
2721
  };
2720
2722
  };
2721
2723
  const deserializeAws_restJson1StreamKey = (output, context) => {
@@ -2771,9 +2773,11 @@ const deserializeAws_restJson1StreamSummary = (output, context) => {
2771
2773
  return {
2772
2774
  channelArn: smithy_client_1.expectString(output.channelArn),
2773
2775
  health: smithy_client_1.expectString(output.health),
2774
- startTime: output.startTime !== undefined && output.startTime !== null ? new Date(output.startTime) : undefined,
2776
+ startTime: output.startTime !== undefined && output.startTime !== null
2777
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startTime))
2778
+ : undefined,
2775
2779
  state: smithy_client_1.expectString(output.state),
2776
- viewerCount: smithy_client_1.expectInt(output.viewerCount),
2780
+ viewerCount: smithy_client_1.expectLong(output.viewerCount),
2777
2781
  };
2778
2782
  };
2779
2783
  const deserializeAws_restJson1Tags = (output, context) => {