@aws-sdk/client-iot 3.658.0 → 3.662.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 CHANGED
@@ -1808,7 +1808,7 @@ var se_AttachPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1808
1808
  }, "se_AttachPolicyCommand");
1809
1809
  var se_AttachPrincipalPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1810
1810
  const b = (0, import_core.requestBuilder)(input, context);
1811
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1811
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1812
1812
  [_xaip]: input[_p]
1813
1813
  });
1814
1814
  b.bp("/principal-policies/{policyName}");
@@ -1831,7 +1831,7 @@ var se_AttachSecurityProfileCommand = /* @__PURE__ */ __name(async (input, conte
1831
1831
  }, "se_AttachSecurityProfileCommand");
1832
1832
  var se_AttachThingPrincipalCommand = /* @__PURE__ */ __name(async (input, context) => {
1833
1833
  const b = (0, import_core.requestBuilder)(input, context);
1834
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1834
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1835
1835
  [_xap]: input[_p]
1836
1836
  });
1837
1837
  b.bp("/things/{thingName}/principals");
@@ -2513,7 +2513,7 @@ var se_CreateThingTypeCommand = /* @__PURE__ */ __name(async (input, context) =>
2513
2513
  }, "se_CreateThingTypeCommand");
2514
2514
  var se_CreateTopicRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
2515
2515
  const b = (0, import_core.requestBuilder)(input, context);
2516
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
2516
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2517
2517
  "content-type": "application/json",
2518
2518
  [_xat]: input[_t]
2519
2519
  });
@@ -3263,7 +3263,7 @@ var se_DetachPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
3263
3263
  }, "se_DetachPolicyCommand");
3264
3264
  var se_DetachPrincipalPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
3265
3265
  const b = (0, import_core.requestBuilder)(input, context);
3266
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
3266
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
3267
3267
  [_xaip]: input[_p]
3268
3268
  });
3269
3269
  b.bp("/principal-policies/{policyName}");
@@ -3286,7 +3286,7 @@ var se_DetachSecurityProfileCommand = /* @__PURE__ */ __name(async (input, conte
3286
3286
  }, "se_DetachSecurityProfileCommand");
3287
3287
  var se_DetachThingPrincipalCommand = /* @__PURE__ */ __name(async (input, context) => {
3288
3288
  const b = (0, import_core.requestBuilder)(input, context);
3289
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
3289
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
3290
3290
  [_xap]: input[_p]
3291
3291
  });
3292
3292
  b.bp("/things/{thingName}/principals");
@@ -4011,7 +4011,7 @@ var se_ListPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
4011
4011
  }, "se_ListPoliciesCommand");
4012
4012
  var se_ListPolicyPrincipalsCommand = /* @__PURE__ */ __name(async (input, context) => {
4013
4013
  const b = (0, import_core.requestBuilder)(input, context);
4014
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
4014
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
4015
4015
  [_xaip_]: input[_pN]
4016
4016
  });
4017
4017
  b.bp("/policy-principals");
@@ -4035,7 +4035,7 @@ var se_ListPolicyVersionsCommand = /* @__PURE__ */ __name(async (input, context)
4035
4035
  }, "se_ListPolicyVersionsCommand");
4036
4036
  var se_ListPrincipalPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
4037
4037
  const b = (0, import_core.requestBuilder)(input, context);
4038
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
4038
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
4039
4039
  [_xaip]: input[_p]
4040
4040
  });
4041
4041
  b.bp("/principal-policies");
@@ -4050,7 +4050,7 @@ var se_ListPrincipalPoliciesCommand = /* @__PURE__ */ __name(async (input, conte
4050
4050
  }, "se_ListPrincipalPoliciesCommand");
4051
4051
  var se_ListPrincipalThingsCommand = /* @__PURE__ */ __name(async (input, context) => {
4052
4052
  const b = (0, import_core.requestBuilder)(input, context);
4053
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
4053
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
4054
4054
  [_xap]: input[_p]
4055
4055
  });
4056
4056
  b.bp("/principals/things");
@@ -10485,7 +10485,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
10485
10485
  extendedRequestId: output.headers["x-amz-id-2"],
10486
10486
  cfId: output.headers["x-amz-cf-id"]
10487
10487
  }), "deserializeMetadata");
10488
- var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
10489
10488
  var _aAR = "allowAutoRegistration";
10490
10489
  var _aN = "attributeName";
10491
10490
  var _aO = "ascendingOrder";
@@ -1,6 +1,6 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { IoTServiceException as __BaseException } from "../models/IoTServiceException";
6
6
  import { CertificateStateException, CertificateValidationException, ConflictException, ConflictingResourceUpdateException, DeleteConflictException, IndexNotReadyException, InternalException, InternalFailureException, InternalServerException, InvalidAggregationException, InvalidQueryException, InvalidRequestException, InvalidStateTransitionException, LimitExceededException, MalformedPolicyException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, SqlParseException, ThrottlingException, TransferAlreadyCompletedException, UnauthorizedException, ValidationException, VersionConflictException, VersionsLimitExceededException, } from "../models/models_0";
@@ -8677,11 +8677,6 @@ const deserializeMetadata = (output) => ({
8677
8677
  cfId: output.headers["x-amz-cf-id"],
8678
8678
  });
8679
8679
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
8680
- const isSerializableHeaderValue = (value) => value !== undefined &&
8681
- value !== null &&
8682
- value !== "" &&
8683
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
8684
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
8685
8680
  const _aAR = "allowAutoRegistration";
8686
8681
  const _aN = "attributeName";
8687
8682
  const _aO = "ascendingOrder";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot",
3
3
  "description": "AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native",
4
- "version": "3.658.0",
4
+ "version": "3.662.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-iot",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
38
- "@smithy/fetch-http-handler": "^3.2.7",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-content-length": "^3.0.8",
42
- "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.18",
44
- "@smithy/middleware-serde": "^3.0.6",
45
- "@smithy/middleware-stack": "^3.0.6",
46
- "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.2",
48
- "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.2",
50
- "@smithy/types": "^3.4.2",
51
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.662.0",
24
+ "@aws-sdk/client-sts": "3.662.0",
25
+ "@aws-sdk/core": "3.662.0",
26
+ "@aws-sdk/credential-provider-node": "3.662.0",
27
+ "@aws-sdk/middleware-host-header": "3.662.0",
28
+ "@aws-sdk/middleware-logger": "3.662.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.662.0",
30
+ "@aws-sdk/middleware-user-agent": "3.662.0",
31
+ "@aws-sdk/region-config-resolver": "3.662.0",
32
+ "@aws-sdk/types": "3.662.0",
33
+ "@aws-sdk/util-endpoints": "3.662.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.662.0",
35
+ "@aws-sdk/util-user-agent-node": "3.662.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-content-length": "^3.0.9",
42
+ "@smithy/middleware-endpoint": "^3.1.4",
43
+ "@smithy/middleware-retry": "^3.0.22",
44
+ "@smithy/middleware-serde": "^3.0.7",
45
+ "@smithy/middleware-stack": "^3.0.7",
46
+ "@smithy/node-config-provider": "^3.1.8",
47
+ "@smithy/node-http-handler": "^3.2.4",
48
+ "@smithy/protocol-http": "^4.1.4",
49
+ "@smithy/smithy-client": "^3.3.6",
50
+ "@smithy/types": "^3.5.0",
51
+ "@smithy/url-parser": "^3.0.7",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.18",
56
- "@smithy/util-defaults-mode-node": "^3.0.18",
57
- "@smithy/util-endpoints": "^2.1.2",
58
- "@smithy/util-middleware": "^3.0.6",
59
- "@smithy/util-retry": "^3.0.6",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
56
+ "@smithy/util-defaults-mode-node": "^3.0.22",
57
+ "@smithy/util-endpoints": "^2.1.3",
58
+ "@smithy/util-middleware": "^3.0.7",
59
+ "@smithy/util-retry": "^3.0.7",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2",
62
62
  "uuid": "^9.0.1"