@aws-sdk/client-kinesis-video 3.353.0 → 3.357.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.
@@ -754,7 +754,7 @@ const de_DeleteSignalingChannelCommand = async (output, context) => {
754
754
  const contents = (0, smithy_client_1.map)({
755
755
  $metadata: deserializeMetadata(output),
756
756
  });
757
- await collectBody(output.body, context);
757
+ await (0, smithy_client_1.collectBody)(output.body, context);
758
758
  return contents;
759
759
  };
760
760
  exports.de_DeleteSignalingChannelCommand = de_DeleteSignalingChannelCommand;
@@ -799,7 +799,7 @@ const de_DeleteStreamCommand = async (output, context) => {
799
799
  const contents = (0, smithy_client_1.map)({
800
800
  $metadata: deserializeMetadata(output),
801
801
  });
802
- await collectBody(output.body, context);
802
+ await (0, smithy_client_1.collectBody)(output.body, context);
803
803
  return contents;
804
804
  };
805
805
  exports.de_DeleteStreamCommand = de_DeleteStreamCommand;
@@ -1469,7 +1469,7 @@ const de_TagResourceCommand = async (output, context) => {
1469
1469
  const contents = (0, smithy_client_1.map)({
1470
1470
  $metadata: deserializeMetadata(output),
1471
1471
  });
1472
- await collectBody(output.body, context);
1472
+ await (0, smithy_client_1.collectBody)(output.body, context);
1473
1473
  return contents;
1474
1474
  };
1475
1475
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -1511,7 +1511,7 @@ const de_TagStreamCommand = async (output, context) => {
1511
1511
  const contents = (0, smithy_client_1.map)({
1512
1512
  $metadata: deserializeMetadata(output),
1513
1513
  });
1514
- await collectBody(output.body, context);
1514
+ await (0, smithy_client_1.collectBody)(output.body, context);
1515
1515
  return contents;
1516
1516
  };
1517
1517
  exports.de_TagStreamCommand = de_TagStreamCommand;
@@ -1556,7 +1556,7 @@ const de_UntagResourceCommand = async (output, context) => {
1556
1556
  const contents = (0, smithy_client_1.map)({
1557
1557
  $metadata: deserializeMetadata(output),
1558
1558
  });
1559
- await collectBody(output.body, context);
1559
+ await (0, smithy_client_1.collectBody)(output.body, context);
1560
1560
  return contents;
1561
1561
  };
1562
1562
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -1595,7 +1595,7 @@ const de_UntagStreamCommand = async (output, context) => {
1595
1595
  const contents = (0, smithy_client_1.map)({
1596
1596
  $metadata: deserializeMetadata(output),
1597
1597
  });
1598
- await collectBody(output.body, context);
1598
+ await (0, smithy_client_1.collectBody)(output.body, context);
1599
1599
  return contents;
1600
1600
  };
1601
1601
  exports.de_UntagStreamCommand = de_UntagStreamCommand;
@@ -1637,7 +1637,7 @@ const de_UpdateDataRetentionCommand = async (output, context) => {
1637
1637
  const contents = (0, smithy_client_1.map)({
1638
1638
  $metadata: deserializeMetadata(output),
1639
1639
  });
1640
- await collectBody(output.body, context);
1640
+ await (0, smithy_client_1.collectBody)(output.body, context);
1641
1641
  return contents;
1642
1642
  };
1643
1643
  exports.de_UpdateDataRetentionCommand = de_UpdateDataRetentionCommand;
@@ -1682,7 +1682,7 @@ const de_UpdateImageGenerationConfigurationCommand = async (output, context) =>
1682
1682
  const contents = (0, smithy_client_1.map)({
1683
1683
  $metadata: deserializeMetadata(output),
1684
1684
  });
1685
- await collectBody(output.body, context);
1685
+ await (0, smithy_client_1.collectBody)(output.body, context);
1686
1686
  return contents;
1687
1687
  };
1688
1688
  exports.de_UpdateImageGenerationConfigurationCommand = de_UpdateImageGenerationConfigurationCommand;
@@ -1727,7 +1727,7 @@ const de_UpdateMediaStorageConfigurationCommand = async (output, context) => {
1727
1727
  const contents = (0, smithy_client_1.map)({
1728
1728
  $metadata: deserializeMetadata(output),
1729
1729
  });
1730
- await collectBody(output.body, context);
1730
+ await (0, smithy_client_1.collectBody)(output.body, context);
1731
1731
  return contents;
1732
1732
  };
1733
1733
  exports.de_UpdateMediaStorageConfigurationCommand = de_UpdateMediaStorageConfigurationCommand;
@@ -1772,7 +1772,7 @@ const de_UpdateNotificationConfigurationCommand = async (output, context) => {
1772
1772
  const contents = (0, smithy_client_1.map)({
1773
1773
  $metadata: deserializeMetadata(output),
1774
1774
  });
1775
- await collectBody(output.body, context);
1775
+ await (0, smithy_client_1.collectBody)(output.body, context);
1776
1776
  return contents;
1777
1777
  };
1778
1778
  exports.de_UpdateNotificationConfigurationCommand = de_UpdateNotificationConfigurationCommand;
@@ -1817,7 +1817,7 @@ const de_UpdateSignalingChannelCommand = async (output, context) => {
1817
1817
  const contents = (0, smithy_client_1.map)({
1818
1818
  $metadata: deserializeMetadata(output),
1819
1819
  });
1820
- await collectBody(output.body, context);
1820
+ await (0, smithy_client_1.collectBody)(output.body, context);
1821
1821
  return contents;
1822
1822
  };
1823
1823
  exports.de_UpdateSignalingChannelCommand = de_UpdateSignalingChannelCommand;
@@ -1862,7 +1862,7 @@ const de_UpdateStreamCommand = async (output, context) => {
1862
1862
  const contents = (0, smithy_client_1.map)({
1863
1863
  $metadata: deserializeMetadata(output),
1864
1864
  });
1865
- await collectBody(output.body, context);
1865
+ await (0, smithy_client_1.collectBody)(output.body, context);
1866
1866
  return contents;
1867
1867
  };
1868
1868
  exports.de_UpdateStreamCommand = de_UpdateStreamCommand;
@@ -2142,13 +2142,7 @@ const deserializeMetadata = (output) => ({
2142
2142
  extendedRequestId: output.headers["x-amz-id-2"],
2143
2143
  cfId: output.headers["x-amz-cf-id"],
2144
2144
  });
2145
- const collectBody = (streamBody = new Uint8Array(), context) => {
2146
- if (streamBody instanceof Uint8Array) {
2147
- return Promise.resolve(streamBody);
2148
- }
2149
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2150
- };
2151
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2145
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2152
2146
  const isSerializableHeaderValue = (value) => value !== undefined &&
2153
2147
  value !== null &&
2154
2148
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { KinesisVideoServiceException as __BaseException } from "../models/KinesisVideoServiceException";
4
4
  import { AccessDeniedException, AccountChannelLimitExceededException, AccountStreamLimitExceededException, ClientLimitExceededException, DeviceStreamLimitExceededException, InvalidArgumentException, InvalidDeviceException, InvalidResourceFormatException, NoDataRetentionException, NotAuthorizedException, ResourceInUseException, ResourceNotFoundException, StreamEdgeConfigurationNotFoundException, TagsPerResourceExceededLimitException, VersionMismatchException, } from "../models/models_0";
@@ -2082,12 +2082,6 @@ const deserializeMetadata = (output) => ({
2082
2082
  extendedRequestId: output.headers["x-amz-id-2"],
2083
2083
  cfId: output.headers["x-amz-cf-id"],
2084
2084
  });
2085
- const collectBody = (streamBody = new Uint8Array(), context) => {
2086
- if (streamBody instanceof Uint8Array) {
2087
- return Promise.resolve(streamBody);
2088
- }
2089
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2090
- };
2091
2085
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2092
2086
  const isSerializableHeaderValue = (value) => value !== undefined &&
2093
2087
  value !== null &&
@@ -101,7 +101,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
101
101
  */
102
102
  runtime?: string;
103
103
  /**
104
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
104
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
105
105
  * trait of an operation.
106
106
  */
107
107
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Client for Node.js, Browser and React Native",
4
- "version": "3.353.0",
4
+ "version": "3.357.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,36 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",