@aws-sdk/client-ssm-incidents 3.354.0 → 3.358.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.
@@ -837,7 +837,7 @@ const de_DeleteIncidentRecordCommand = async (output, context) => {
837
837
  const contents = (0, smithy_client_1.map)({
838
838
  $metadata: deserializeMetadata(output),
839
839
  });
840
- await collectBody(output.body, context);
840
+ await (0, smithy_client_1.collectBody)(output.body, context);
841
841
  return contents;
842
842
  };
843
843
  exports.de_DeleteIncidentRecordCommand = de_DeleteIncidentRecordCommand;
@@ -876,7 +876,7 @@ const de_DeleteReplicationSetCommand = async (output, context) => {
876
876
  const contents = (0, smithy_client_1.map)({
877
877
  $metadata: deserializeMetadata(output),
878
878
  });
879
- await collectBody(output.body, context);
879
+ await (0, smithy_client_1.collectBody)(output.body, context);
880
880
  return contents;
881
881
  };
882
882
  exports.de_DeleteReplicationSetCommand = de_DeleteReplicationSetCommand;
@@ -918,7 +918,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
918
918
  const contents = (0, smithy_client_1.map)({
919
919
  $metadata: deserializeMetadata(output),
920
920
  });
921
- await collectBody(output.body, context);
921
+ await (0, smithy_client_1.collectBody)(output.body, context);
922
922
  return contents;
923
923
  };
924
924
  exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
@@ -960,7 +960,7 @@ const de_DeleteResponsePlanCommand = async (output, context) => {
960
960
  const contents = (0, smithy_client_1.map)({
961
961
  $metadata: deserializeMetadata(output),
962
962
  });
963
- await collectBody(output.body, context);
963
+ await (0, smithy_client_1.collectBody)(output.body, context);
964
964
  return contents;
965
965
  };
966
966
  exports.de_DeleteResponsePlanCommand = de_DeleteResponsePlanCommand;
@@ -999,7 +999,7 @@ const de_DeleteTimelineEventCommand = async (output, context) => {
999
999
  const contents = (0, smithy_client_1.map)({
1000
1000
  $metadata: deserializeMetadata(output),
1001
1001
  });
1002
- await collectBody(output.body, context);
1002
+ await (0, smithy_client_1.collectBody)(output.body, context);
1003
1003
  return contents;
1004
1004
  };
1005
1005
  exports.de_DeleteTimelineEventCommand = de_DeleteTimelineEventCommand;
@@ -1637,7 +1637,7 @@ const de_TagResourceCommand = 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_TagResourceCommand = de_TagResourceCommand;
@@ -1685,7 +1685,7 @@ const de_UntagResourceCommand = async (output, context) => {
1685
1685
  const contents = (0, smithy_client_1.map)({
1686
1686
  $metadata: deserializeMetadata(output),
1687
1687
  });
1688
- await collectBody(output.body, context);
1688
+ await (0, smithy_client_1.collectBody)(output.body, context);
1689
1689
  return contents;
1690
1690
  };
1691
1691
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -1730,7 +1730,7 @@ const de_UpdateDeletionProtectionCommand = async (output, context) => {
1730
1730
  const contents = (0, smithy_client_1.map)({
1731
1731
  $metadata: deserializeMetadata(output),
1732
1732
  });
1733
- await collectBody(output.body, context);
1733
+ await (0, smithy_client_1.collectBody)(output.body, context);
1734
1734
  return contents;
1735
1735
  };
1736
1736
  exports.de_UpdateDeletionProtectionCommand = de_UpdateDeletionProtectionCommand;
@@ -1772,7 +1772,7 @@ const de_UpdateIncidentRecordCommand = 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_UpdateIncidentRecordCommand = de_UpdateIncidentRecordCommand;
@@ -1817,7 +1817,7 @@ const de_UpdateRelatedItemsCommand = 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_UpdateRelatedItemsCommand = de_UpdateRelatedItemsCommand;
@@ -1862,7 +1862,7 @@ const de_UpdateReplicationSetCommand = 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_UpdateReplicationSetCommand = de_UpdateReplicationSetCommand;
@@ -1907,7 +1907,7 @@ const de_UpdateResponsePlanCommand = async (output, context) => {
1907
1907
  const contents = (0, smithy_client_1.map)({
1908
1908
  $metadata: deserializeMetadata(output),
1909
1909
  });
1910
- await collectBody(output.body, context);
1910
+ await (0, smithy_client_1.collectBody)(output.body, context);
1911
1911
  return contents;
1912
1912
  };
1913
1913
  exports.de_UpdateResponsePlanCommand = de_UpdateResponsePlanCommand;
@@ -1952,7 +1952,7 @@ const de_UpdateTimelineEventCommand = async (output, context) => {
1952
1952
  const contents = (0, smithy_client_1.map)({
1953
1953
  $metadata: deserializeMetadata(output),
1954
1954
  });
1955
- await collectBody(output.body, context);
1955
+ await (0, smithy_client_1.collectBody)(output.body, context);
1956
1956
  return contents;
1957
1957
  };
1958
1958
  exports.de_UpdateTimelineEventCommand = de_UpdateTimelineEventCommand;
@@ -2223,13 +2223,7 @@ const deserializeMetadata = (output) => ({
2223
2223
  extendedRequestId: output.headers["x-amz-id-2"],
2224
2224
  cfId: output.headers["x-amz-cf-id"],
2225
2225
  });
2226
- const collectBody = (streamBody = new Uint8Array(), context) => {
2227
- if (streamBody instanceof Uint8Array) {
2228
- return Promise.resolve(streamBody);
2229
- }
2230
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2231
- };
2232
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2226
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2233
2227
  const isSerializableHeaderValue = (value) => value !== undefined &&
2234
2228
  value !== null &&
2235
2229
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AccessDeniedException, Condition, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
@@ -2161,12 +2161,6 @@ const deserializeMetadata = (output) => ({
2161
2161
  extendedRequestId: output.headers["x-amz-id-2"],
2162
2162
  cfId: output.headers["x-amz-cf-id"],
2163
2163
  });
2164
- const collectBody = (streamBody = new Uint8Array(), context) => {
2165
- if (streamBody instanceof Uint8Array) {
2166
- return Promise.resolve(streamBody);
2167
- }
2168
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2169
- };
2170
2164
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2171
2165
  const isSerializableHeaderValue = (value) => value !== undefined &&
2172
2166
  value !== null &&
@@ -102,7 +102,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
102
102
  */
103
103
  runtime?: string;
104
104
  /**
105
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
105
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
106
106
  * trait of an operation.
107
107
  */
108
108
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-incidents",
3
3
  "description": "AWS SDK for JavaScript Ssm Incidents Client for Node.js, Browser and React Native",
4
- "version": "3.354.0",
4
+ "version": "3.358.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,38 +21,38 @@
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.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.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.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.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.354.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.358.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.358.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.358.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.354.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.354.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.358.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.358.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
- "@aws-sdk/util-waiter": "3.347.0",
55
+ "@aws-sdk/util-waiter": "3.357.0",
56
56
  "@smithy/protocol-http": "^1.0.1",
57
57
  "@smithy/types": "^1.0.0",
58
58
  "tslib": "^2.5.0",