@aws-sdk/client-clouddirectory 3.354.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.
@@ -1589,7 +1589,7 @@ const de_AddFacetToObjectCommand = async (output, context) => {
1589
1589
  const contents = (0, smithy_client_1.map)({
1590
1590
  $metadata: deserializeMetadata(output),
1591
1591
  });
1592
- await collectBody(output.body, context);
1592
+ await (0, smithy_client_1.collectBody)(output.body, context);
1593
1593
  return contents;
1594
1594
  };
1595
1595
  exports.de_AddFacetToObjectCommand = de_AddFacetToObjectCommand;
@@ -1766,7 +1766,7 @@ const de_AttachPolicyCommand = async (output, context) => {
1766
1766
  const contents = (0, smithy_client_1.map)({
1767
1767
  $metadata: deserializeMetadata(output),
1768
1768
  });
1769
- await collectBody(output.body, context);
1769
+ await (0, smithy_client_1.collectBody)(output.body, context);
1770
1770
  return contents;
1771
1771
  };
1772
1772
  exports.de_AttachPolicyCommand = de_AttachPolicyCommand;
@@ -2113,7 +2113,7 @@ const de_CreateFacetCommand = async (output, context) => {
2113
2113
  const contents = (0, smithy_client_1.map)({
2114
2114
  $metadata: deserializeMetadata(output),
2115
2115
  });
2116
- await collectBody(output.body, context);
2116
+ await (0, smithy_client_1.collectBody)(output.body, context);
2117
2117
  return contents;
2118
2118
  };
2119
2119
  exports.de_CreateFacetCommand = de_CreateFacetCommand;
@@ -2350,7 +2350,7 @@ const de_CreateTypedLinkFacetCommand = async (output, context) => {
2350
2350
  const contents = (0, smithy_client_1.map)({
2351
2351
  $metadata: deserializeMetadata(output),
2352
2352
  });
2353
- await collectBody(output.body, context);
2353
+ await (0, smithy_client_1.collectBody)(output.body, context);
2354
2354
  return contents;
2355
2355
  };
2356
2356
  exports.de_CreateTypedLinkFacetCommand = de_CreateTypedLinkFacetCommand;
@@ -2465,7 +2465,7 @@ const de_DeleteFacetCommand = async (output, context) => {
2465
2465
  const contents = (0, smithy_client_1.map)({
2466
2466
  $metadata: deserializeMetadata(output),
2467
2467
  });
2468
- await collectBody(output.body, context);
2468
+ await (0, smithy_client_1.collectBody)(output.body, context);
2469
2469
  return contents;
2470
2470
  };
2471
2471
  exports.de_DeleteFacetCommand = de_DeleteFacetCommand;
@@ -2519,7 +2519,7 @@ const de_DeleteObjectCommand = async (output, context) => {
2519
2519
  const contents = (0, smithy_client_1.map)({
2520
2520
  $metadata: deserializeMetadata(output),
2521
2521
  });
2522
- await collectBody(output.body, context);
2522
+ await (0, smithy_client_1.collectBody)(output.body, context);
2523
2523
  return contents;
2524
2524
  };
2525
2525
  exports.de_DeleteObjectCommand = de_DeleteObjectCommand;
@@ -2628,7 +2628,7 @@ const de_DeleteTypedLinkFacetCommand = async (output, context) => {
2628
2628
  const contents = (0, smithy_client_1.map)({
2629
2629
  $metadata: deserializeMetadata(output),
2630
2630
  });
2631
- await collectBody(output.body, context);
2631
+ await (0, smithy_client_1.collectBody)(output.body, context);
2632
2632
  return contents;
2633
2633
  };
2634
2634
  exports.de_DeleteTypedLinkFacetCommand = de_DeleteTypedLinkFacetCommand;
@@ -2798,7 +2798,7 @@ const de_DetachPolicyCommand = async (output, context) => {
2798
2798
  const contents = (0, smithy_client_1.map)({
2799
2799
  $metadata: deserializeMetadata(output),
2800
2800
  });
2801
- await collectBody(output.body, context);
2801
+ await (0, smithy_client_1.collectBody)(output.body, context);
2802
2802
  return contents;
2803
2803
  };
2804
2804
  exports.de_DetachPolicyCommand = de_DetachPolicyCommand;
@@ -2852,7 +2852,7 @@ const de_DetachTypedLinkCommand = async (output, context) => {
2852
2852
  const contents = (0, smithy_client_1.map)({
2853
2853
  $metadata: deserializeMetadata(output),
2854
2854
  });
2855
- await collectBody(output.body, context);
2855
+ await (0, smithy_client_1.collectBody)(output.body, context);
2856
2856
  return contents;
2857
2857
  };
2858
2858
  exports.de_DetachTypedLinkCommand = de_DetachTypedLinkCommand;
@@ -4793,7 +4793,7 @@ const de_RemoveFacetFromObjectCommand = async (output, context) => {
4793
4793
  const contents = (0, smithy_client_1.map)({
4794
4794
  $metadata: deserializeMetadata(output),
4795
4795
  });
4796
- await collectBody(output.body, context);
4796
+ await (0, smithy_client_1.collectBody)(output.body, context);
4797
4797
  return contents;
4798
4798
  };
4799
4799
  exports.de_RemoveFacetFromObjectCommand = de_RemoveFacetFromObjectCommand;
@@ -4847,7 +4847,7 @@ const de_TagResourceCommand = async (output, context) => {
4847
4847
  const contents = (0, smithy_client_1.map)({
4848
4848
  $metadata: deserializeMetadata(output),
4849
4849
  });
4850
- await collectBody(output.body, context);
4850
+ await (0, smithy_client_1.collectBody)(output.body, context);
4851
4851
  return contents;
4852
4852
  };
4853
4853
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -4898,7 +4898,7 @@ const de_UntagResourceCommand = async (output, context) => {
4898
4898
  const contents = (0, smithy_client_1.map)({
4899
4899
  $metadata: deserializeMetadata(output),
4900
4900
  });
4901
- await collectBody(output.body, context);
4901
+ await (0, smithy_client_1.collectBody)(output.body, context);
4902
4902
  return contents;
4903
4903
  };
4904
4904
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -4949,7 +4949,7 @@ const de_UpdateFacetCommand = async (output, context) => {
4949
4949
  const contents = (0, smithy_client_1.map)({
4950
4950
  $metadata: deserializeMetadata(output),
4951
4951
  });
4952
- await collectBody(output.body, context);
4952
+ await (0, smithy_client_1.collectBody)(output.body, context);
4953
4953
  return contents;
4954
4954
  };
4955
4955
  exports.de_UpdateFacetCommand = de_UpdateFacetCommand;
@@ -5009,7 +5009,7 @@ const de_UpdateLinkAttributesCommand = async (output, context) => {
5009
5009
  const contents = (0, smithy_client_1.map)({
5010
5010
  $metadata: deserializeMetadata(output),
5011
5011
  });
5012
- await collectBody(output.body, context);
5012
+ await (0, smithy_client_1.collectBody)(output.body, context);
5013
5013
  return contents;
5014
5014
  };
5015
5015
  exports.de_UpdateLinkAttributesCommand = de_UpdateLinkAttributesCommand;
@@ -5176,7 +5176,7 @@ const de_UpdateTypedLinkFacetCommand = async (output, context) => {
5176
5176
  const contents = (0, smithy_client_1.map)({
5177
5177
  $metadata: deserializeMetadata(output),
5178
5178
  });
5179
- await collectBody(output.body, context);
5179
+ await (0, smithy_client_1.collectBody)(output.body, context);
5180
5180
  return contents;
5181
5181
  };
5182
5182
  exports.de_UpdateTypedLinkFacetCommand = de_UpdateTypedLinkFacetCommand;
@@ -6365,13 +6365,7 @@ const deserializeMetadata = (output) => ({
6365
6365
  extendedRequestId: output.headers["x-amz-id-2"],
6366
6366
  cfId: output.headers["x-amz-cf-id"],
6367
6367
  });
6368
- const collectBody = (streamBody = new Uint8Array(), context) => {
6369
- if (streamBody instanceof Uint8Array) {
6370
- return Promise.resolve(streamBody);
6371
- }
6372
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6373
- };
6374
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6368
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
6375
6369
  const isSerializableHeaderValue = (value) => value !== undefined &&
6376
6370
  value !== null &&
6377
6371
  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, 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, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { CloudDirectoryServiceException as __BaseException } from "../models/CloudDirectoryServiceException";
4
4
  import { AccessDeniedException, BatchWriteException, CannotListParentOfRootException, DirectoryAlreadyExistsException, DirectoryDeletedException, DirectoryNotDisabledException, DirectoryNotEnabledException, FacetAlreadyExistsException, FacetInUseException, FacetNotFoundException, FacetValidationException, IncompatibleSchemaException, IndexedAttributeMissingException, InternalServiceException, InvalidArnException, InvalidAttachmentException, InvalidFacetUpdateException, InvalidNextTokenException, InvalidRuleException, InvalidSchemaDocException, InvalidTaggingRequestException, LimitExceededException, LinkNameAlreadyInUseException, NotIndexException, NotNodeException, NotPolicyException, ObjectAlreadyDetachedException, ObjectNotDetachedException, ResourceNotFoundException, RetryableConflictException, SchemaAlreadyExistsException, SchemaAlreadyPublishedException, StillContainsLinksException, TypedAttributeValue, UnsupportedIndexTypeException, ValidationException, } from "../models/models_0";
@@ -6228,12 +6228,6 @@ const deserializeMetadata = (output) => ({
6228
6228
  extendedRequestId: output.headers["x-amz-id-2"],
6229
6229
  cfId: output.headers["x-amz-cf-id"],
6230
6230
  });
6231
- const collectBody = (streamBody = new Uint8Array(), context) => {
6232
- if (streamBody instanceof Uint8Array) {
6233
- return Promise.resolve(streamBody);
6234
- }
6235
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6236
- };
6237
6231
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6238
6232
  const isSerializableHeaderValue = (value) => value !== undefined &&
6239
6233
  value !== null &&
@@ -139,7 +139,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
139
139
  */
140
140
  runtime?: string;
141
141
  /**
142
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
142
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
143
143
  * trait of an operation.
144
144
  */
145
145
  disableHostPrefix?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-clouddirectory",
3
3
  "description": "AWS SDK for JavaScript Clouddirectory Client for Node.js, Browser and React Native",
4
- "version": "3.354.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.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.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.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.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",