@aws-sdk/client-license-manager-user-subscriptions 3.523.0 → 3.529.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.
Files changed (31) hide show
  1. package/dist-cjs/index.js +14 -54
  2. package/dist-es/protocols/Aws_restJson1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/LicenseManagerUserSubscriptions.js +0 -1
  5. package/dist-cjs/LicenseManagerUserSubscriptionsClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/AssociateUserCommand.js +0 -1
  8. package/dist-cjs/commands/DeregisterIdentityProviderCommand.js +0 -1
  9. package/dist-cjs/commands/DisassociateUserCommand.js +0 -1
  10. package/dist-cjs/commands/ListIdentityProvidersCommand.js +0 -1
  11. package/dist-cjs/commands/ListInstancesCommand.js +0 -1
  12. package/dist-cjs/commands/ListProductSubscriptionsCommand.js +0 -1
  13. package/dist-cjs/commands/ListUserAssociationsCommand.js +0 -1
  14. package/dist-cjs/commands/RegisterIdentityProviderCommand.js +0 -1
  15. package/dist-cjs/commands/StartProductSubscriptionCommand.js +0 -1
  16. package/dist-cjs/commands/StopProductSubscriptionCommand.js +0 -1
  17. package/dist-cjs/commands/UpdateIdentityProviderSettingsCommand.js +0 -1
  18. package/dist-cjs/commands/index.js +0 -1
  19. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  20. package/dist-cjs/extensionConfiguration.js +0 -1
  21. package/dist-cjs/models/LicenseManagerUserSubscriptionsServiceException.js +0 -1
  22. package/dist-cjs/models/index.js +0 -1
  23. package/dist-cjs/models/models_0.js +0 -1
  24. package/dist-cjs/pagination/Interfaces.js +0 -1
  25. package/dist-cjs/pagination/ListIdentityProvidersPaginator.js +0 -1
  26. package/dist-cjs/pagination/ListInstancesPaginator.js +0 -1
  27. package/dist-cjs/pagination/ListProductSubscriptionsPaginator.js +0 -1
  28. package/dist-cjs/pagination/ListUserAssociationsPaginator.js +0 -1
  29. package/dist-cjs/pagination/index.js +0 -1
  30. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  31. package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -204,6 +204,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
204
204
  var import_types = require("@smithy/types");
205
205
 
206
206
  // src/protocols/Aws_restJson1.ts
207
+ var import_core2 = require("@aws-sdk/core");
207
208
 
208
209
 
209
210
 
@@ -551,7 +552,7 @@ var de_AssociateUserCommand = /* @__PURE__ */ __name(async (output, context) =>
551
552
  const contents = (0, import_smithy_client.map)({
552
553
  $metadata: deserializeMetadata(output)
553
554
  });
554
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
555
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
555
556
  const doc = (0, import_smithy_client.take)(data, {
556
557
  InstanceUserSummary: import_smithy_client._json
557
558
  });
@@ -565,7 +566,7 @@ var de_DeregisterIdentityProviderCommand = /* @__PURE__ */ __name(async (output,
565
566
  const contents = (0, import_smithy_client.map)({
566
567
  $metadata: deserializeMetadata(output)
567
568
  });
568
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
569
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
569
570
  const doc = (0, import_smithy_client.take)(data, {
570
571
  IdentityProviderSummary: import_smithy_client._json
571
572
  });
@@ -579,7 +580,7 @@ var de_DisassociateUserCommand = /* @__PURE__ */ __name(async (output, context)
579
580
  const contents = (0, import_smithy_client.map)({
580
581
  $metadata: deserializeMetadata(output)
581
582
  });
582
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
583
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
583
584
  const doc = (0, import_smithy_client.take)(data, {
584
585
  InstanceUserSummary: import_smithy_client._json
585
586
  });
@@ -593,7 +594,7 @@ var de_ListIdentityProvidersCommand = /* @__PURE__ */ __name(async (output, cont
593
594
  const contents = (0, import_smithy_client.map)({
594
595
  $metadata: deserializeMetadata(output)
595
596
  });
596
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
597
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
597
598
  const doc = (0, import_smithy_client.take)(data, {
598
599
  IdentityProviderSummaries: import_smithy_client._json,
599
600
  NextToken: import_smithy_client.expectString
@@ -608,7 +609,7 @@ var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) =>
608
609
  const contents = (0, import_smithy_client.map)({
609
610
  $metadata: deserializeMetadata(output)
610
611
  });
611
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
612
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
612
613
  const doc = (0, import_smithy_client.take)(data, {
613
614
  InstanceSummaries: import_smithy_client._json,
614
615
  NextToken: import_smithy_client.expectString
@@ -623,7 +624,7 @@ var de_ListProductSubscriptionsCommand = /* @__PURE__ */ __name(async (output, c
623
624
  const contents = (0, import_smithy_client.map)({
624
625
  $metadata: deserializeMetadata(output)
625
626
  });
626
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
627
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
627
628
  const doc = (0, import_smithy_client.take)(data, {
628
629
  NextToken: import_smithy_client.expectString,
629
630
  ProductUserSummaries: import_smithy_client._json
@@ -638,7 +639,7 @@ var de_ListUserAssociationsCommand = /* @__PURE__ */ __name(async (output, conte
638
639
  const contents = (0, import_smithy_client.map)({
639
640
  $metadata: deserializeMetadata(output)
640
641
  });
641
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
642
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
642
643
  const doc = (0, import_smithy_client.take)(data, {
643
644
  InstanceUserSummaries: import_smithy_client._json,
644
645
  NextToken: import_smithy_client.expectString
@@ -653,7 +654,7 @@ var de_RegisterIdentityProviderCommand = /* @__PURE__ */ __name(async (output, c
653
654
  const contents = (0, import_smithy_client.map)({
654
655
  $metadata: deserializeMetadata(output)
655
656
  });
656
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
657
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
657
658
  const doc = (0, import_smithy_client.take)(data, {
658
659
  IdentityProviderSummary: import_smithy_client._json
659
660
  });
@@ -667,7 +668,7 @@ var de_StartProductSubscriptionCommand = /* @__PURE__ */ __name(async (output, c
667
668
  const contents = (0, import_smithy_client.map)({
668
669
  $metadata: deserializeMetadata(output)
669
670
  });
670
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
671
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
671
672
  const doc = (0, import_smithy_client.take)(data, {
672
673
  ProductUserSummary: import_smithy_client._json
673
674
  });
@@ -681,7 +682,7 @@ var de_StopProductSubscriptionCommand = /* @__PURE__ */ __name(async (output, co
681
682
  const contents = (0, import_smithy_client.map)({
682
683
  $metadata: deserializeMetadata(output)
683
684
  });
684
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
685
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
685
686
  const doc = (0, import_smithy_client.take)(data, {
686
687
  ProductUserSummary: import_smithy_client._json
687
688
  });
@@ -695,7 +696,7 @@ var de_UpdateIdentityProviderSettingsCommand = /* @__PURE__ */ __name(async (out
695
696
  const contents = (0, import_smithy_client.map)({
696
697
  $metadata: deserializeMetadata(output)
697
698
  });
698
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
699
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
699
700
  const doc = (0, import_smithy_client.take)(data, {
700
701
  IdentityProviderSummary: import_smithy_client._json
701
702
  });
@@ -705,9 +706,9 @@ var de_UpdateIdentityProviderSettingsCommand = /* @__PURE__ */ __name(async (out
705
706
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
706
707
  const parsedOutput = {
707
708
  ...output,
708
- body: await parseErrorBody(output.body, context)
709
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
709
710
  };
710
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
711
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
711
712
  switch (errorCode) {
712
713
  case "AccessDeniedException":
713
714
  case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
@@ -837,47 +838,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
837
838
  extendedRequestId: output.headers["x-amz-id-2"],
838
839
  cfId: output.headers["x-amz-cf-id"]
839
840
  }), "deserializeMetadata");
840
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
841
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
842
- if (encoded.length) {
843
- return JSON.parse(encoded);
844
- }
845
- return {};
846
- }), "parseBody");
847
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
848
- const value = await parseBody(errorBody, context);
849
- value.message = value.message ?? value.Message;
850
- return value;
851
- }, "parseErrorBody");
852
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
853
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
854
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
855
- let cleanValue = rawValue;
856
- if (typeof cleanValue === "number") {
857
- cleanValue = cleanValue.toString();
858
- }
859
- if (cleanValue.indexOf(",") >= 0) {
860
- cleanValue = cleanValue.split(",")[0];
861
- }
862
- if (cleanValue.indexOf(":") >= 0) {
863
- cleanValue = cleanValue.split(":")[0];
864
- }
865
- if (cleanValue.indexOf("#") >= 0) {
866
- cleanValue = cleanValue.split("#")[1];
867
- }
868
- return cleanValue;
869
- }, "sanitizeErrorCode");
870
- const headerKey = findKey(output.headers, "x-amzn-errortype");
871
- if (headerKey !== void 0) {
872
- return sanitizeErrorCode(output.headers[headerKey]);
873
- }
874
- if (data.code !== void 0) {
875
- return sanitizeErrorCode(data.code);
876
- }
877
- if (data["__type"] !== void 0) {
878
- return sanitizeErrorCode(data["__type"]);
879
- }
880
- }, "loadRestJsonErrorCode");
881
841
 
882
842
  // src/commands/AssociateUserCommand.ts
883
843
  var _AssociateUserCommand = class _AssociateUserCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1,3 +1,4 @@
1
+ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
2
  import { requestBuilder as rb } from "@smithy/core";
2
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { LicenseManagerUserSubscriptionsServiceException as __BaseException } from "../models/LicenseManagerUserSubscriptionsServiceException";
@@ -472,43 +473,3 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
472
473
  value !== "" &&
473
474
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
474
475
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
475
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
476
- if (encoded.length) {
477
- return JSON.parse(encoded);
478
- }
479
- return {};
480
- });
481
- const parseErrorBody = async (errorBody, context) => {
482
- const value = await parseBody(errorBody, context);
483
- value.message = value.message ?? value.Message;
484
- return value;
485
- };
486
- const loadRestJsonErrorCode = (output, data) => {
487
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
488
- const sanitizeErrorCode = (rawValue) => {
489
- let cleanValue = rawValue;
490
- if (typeof cleanValue === "number") {
491
- cleanValue = cleanValue.toString();
492
- }
493
- if (cleanValue.indexOf(",") >= 0) {
494
- cleanValue = cleanValue.split(",")[0];
495
- }
496
- if (cleanValue.indexOf(":") >= 0) {
497
- cleanValue = cleanValue.split(":")[0];
498
- }
499
- if (cleanValue.indexOf("#") >= 0) {
500
- cleanValue = cleanValue.split("#")[1];
501
- }
502
- return cleanValue;
503
- };
504
- const headerKey = findKey(output.headers, "x-amzn-errortype");
505
- if (headerKey !== undefined) {
506
- return sanitizeErrorCode(output.headers[headerKey]);
507
- }
508
- if (data.code !== undefined) {
509
- return sanitizeErrorCode(data.code);
510
- }
511
- if (data["__type"] !== undefined) {
512
- return sanitizeErrorCode(data["__type"]);
513
- }
514
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-license-manager-user-subscriptions",
3
3
  "description": "AWS SDK for JavaScript License Manager User Subscriptions Client for Node.js, Browser and React Native",
4
- "version": "3.523.0",
4
+ "version": "3.529.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-license-manager-user-subscriptions",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");