@aws-sdk/client-sts 3.186.0 → 3.186.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.
- package/dist-cjs/protocols/Aws_query.js +2 -2
- package/dist-cjs/xml-parser.js +18 -0
- package/dist-es/protocols/Aws_query.js +1 -1
- package/dist-es/xml-parser.js +15 -0
- package/dist-types/ts3.4/STS.d.ts +626 -140
- package/dist-types/ts3.4/STSClient.d.ts +156 -151
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +124 -32
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +166 -36
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +170 -39
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +70 -39
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +52 -35
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +44 -36
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +120 -36
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +93 -35
- package/dist-types/ts3.4/commands/index.d.ts +8 -8
- package/dist-types/ts3.4/defaultRoleAssumers.d.ts +20 -22
- package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +35 -25
- package/dist-types/ts3.4/endpoints.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +6 -6
- package/dist-types/ts3.4/models/STSServiceException.d.ts +10 -7
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1146 -238
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +26 -101
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +40 -67
- package/dist-types/ts3.4/runtimeConfig.d.ts +40 -65
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +39 -68
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +13 -10
- package/dist-types/ts3.4/xml-parser.d.ts +4 -0
- package/dist-types/xml-parser.d.ts +4 -0
- package/package.json +2 -2
|
@@ -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
|
|
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) => {
|
|
@@ -1023,7 +1023,7 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1023
1023
|
};
|
|
1024
1024
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1025
1025
|
if (encoded.length) {
|
|
1026
|
-
const parsedObj = (0,
|
|
1026
|
+
const parsedObj = (0, xml_parser_1.parse)(encoded, {
|
|
1027
1027
|
attributeNamePrefix: "",
|
|
1028
1028
|
ignoreAttributes: false,
|
|
1029
1029
|
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, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { decodeHTML } from "entities";
|
|
5
|
-
import { parse as xmlParse } from "
|
|
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
|
+
});
|