@aws-sdk/client-sts 3.54.0 → 3.54.2

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 (26) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-cjs/protocols/Aws_query.js +2 -2
  3. package/dist-cjs/protocols/xml-parser.js +18 -0
  4. package/dist-es/protocols/Aws_query.js +1 -1
  5. package/dist-es/protocols/xml-parser.js +15 -0
  6. package/dist-types/protocols/xml-parser.d.ts +4 -0
  7. package/dist-types/ts3.4/STS.d.ts +583 -9
  8. package/dist-types/ts3.4/STSClient.d.ts +102 -27
  9. package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +109 -2
  10. package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +151 -2
  11. package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +155 -2
  12. package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +55 -2
  13. package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +37 -2
  14. package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +29 -2
  15. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +105 -2
  16. package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +71 -2
  17. package/dist-types/ts3.4/defaultRoleAssumers.d.ts +14 -3
  18. package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +25 -6
  19. package/dist-types/ts3.4/models/STSServiceException.d.ts +6 -2
  20. package/dist-types/ts3.4/models/models_0.d.ts +967 -123
  21. package/dist-types/ts3.4/protocols/xml-parser.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -1
  26. package/package.json +26 -26
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sts
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
15
 
8
16
 
@@ -4,7 +4,7 @@ exports.deserializeAws_queryGetSessionTokenCommand = exports.deserializeAws_quer
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const entities_1 = require("entities");
7
- const fast_xml_parser_1 = require("fast-xml-parser");
7
+ const xml_parser_1 = require("./xml-parser");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const STSServiceException_1 = require("../models/STSServiceException");
10
10
  const serializeAws_queryAssumeRoleCommand = async (input, context) => {
@@ -1045,7 +1045,7 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1045
1045
  };
1046
1046
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1047
1047
  if (encoded.length) {
1048
- const parsedObj = fast_xml_parser_1.parse(encoded, {
1048
+ const parsedObj = xml_parser_1.parse(encoded, {
1049
1049
  attributeNamePrefix: "",
1050
1050
  ignoreAttributes: false,
1051
1051
  parseNodeValue: false,
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parse = void 0;
4
+ const fast_xml_parser_1 = require("fast-xml-parser");
5
+ const parser = new fast_xml_parser_1.XMLParser({
6
+ attributeNamePrefix: "",
7
+ htmlEntities: true,
8
+ ignoreAttributes: false,
9
+ ignoreDeclaration: true,
10
+ parseTagValue: false,
11
+ trimValues: false,
12
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
13
+ });
14
+ parser.addEntity("#xD", "\r");
15
+ parser.addEntity("#10", "\n");
16
+ exports.parse = ((encoded, ignored) => {
17
+ return parser.parse(encoded);
18
+ });
@@ -2,7 +2,7 @@ import { __assign, __awaiter, __generator, __read, __values } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
3
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
- import { parse as xmlParse } from "fast-xml-parser";
5
+ import { parse as xmlParse } from "./xml-parser";
6
6
  import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
7
7
  import { STSServiceException as __BaseException } from "../models/STSServiceException";
8
8
  export var serializeAws_queryAssumeRoleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -0,0 +1,15 @@
1
+ import { XMLParser } from "fast-xml-parser";
2
+ var parser = new XMLParser({
3
+ attributeNamePrefix: "",
4
+ htmlEntities: true,
5
+ ignoreAttributes: false,
6
+ ignoreDeclaration: true,
7
+ parseTagValue: false,
8
+ trimValues: false,
9
+ tagValueProcessor: function (_, val) { return (val.trim() === "" && val.includes("\n") ? "" : undefined); },
10
+ });
11
+ parser.addEntity("#xD", "\r");
12
+ parser.addEntity("#10", "\n");
13
+ export var parse = (function (encoded, ignored) {
14
+ return parser.parse(encoded);
15
+ });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const parse: any;