From d4695650384537945e0b565ee73a714d361bcb04 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 23 Dec 2025 03:09:40 +0000 Subject: [PATCH] chore: Update dist --- dist/136.index.js | 168 ++++++----- dist/443.index.js | 163 +++++----- dist/762.index.js | 94 +++--- dist/956.index.js | 168 ++++++----- dist/998.index.js | 139 +++++---- dist/cleanup/136.index.js | 168 ++++++----- dist/cleanup/443.index.js | 163 +++++----- dist/cleanup/762.index.js | 94 +++--- dist/cleanup/956.index.js | 168 ++++++----- dist/cleanup/998.index.js | 139 +++++---- dist/cleanup/index.js | 611 +++++++++++++++++++++++++++----------- dist/index.js | 611 +++++++++++++++++++++++++++----------- 12 files changed, 1718 insertions(+), 968 deletions(-) diff --git a/dist/136.index.js b/dist/136.index.js index 4bace66..a85effe 100644 --- a/dist/136.index.js +++ b/dist/136.index.js @@ -261,14 +261,14 @@ var schema = __webpack_require__(6890); var client = __webpack_require__(5152); var regionConfigResolver = __webpack_require__(6463); -let STSServiceException$1 = class STSServiceException extends smithyClient.ServiceException { +class STSServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, STSServiceException.prototype); } -}; +} -let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceException$1 { +class ExpiredTokenException extends STSServiceException { name = "ExpiredTokenException"; $fault = "client"; constructor(opts) { @@ -279,8 +279,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceExce }); Object.setPrototypeOf(this, ExpiredTokenException.prototype); } -}; -let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException extends STSServiceException$1 { +} +class MalformedPolicyDocumentException extends STSServiceException { name = "MalformedPolicyDocumentException"; $fault = "client"; constructor(opts) { @@ -291,8 +291,8 @@ let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException }); Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } -}; -let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extends STSServiceException$1 { +} +class PackedPolicyTooLargeException extends STSServiceException { name = "PackedPolicyTooLargeException"; $fault = "client"; constructor(opts) { @@ -303,8 +303,8 @@ let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extend }); Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); } -}; -let RegionDisabledException$1 = class RegionDisabledException extends STSServiceException$1 { +} +class RegionDisabledException extends STSServiceException { name = "RegionDisabledException"; $fault = "client"; constructor(opts) { @@ -315,8 +315,8 @@ let RegionDisabledException$1 = class RegionDisabledException extends STSService }); Object.setPrototypeOf(this, RegionDisabledException.prototype); } -}; -let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSServiceException$1 { +} +class IDPRejectedClaimException extends STSServiceException { name = "IDPRejectedClaimException"; $fault = "client"; constructor(opts) { @@ -327,8 +327,8 @@ let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSSer }); Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } -}; -let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extends STSServiceException$1 { +} +class InvalidIdentityTokenException extends STSServiceException { name = "InvalidIdentityTokenException"; $fault = "client"; constructor(opts) { @@ -339,8 +339,8 @@ let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extend }); Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } -}; -let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException extends STSServiceException$1 { +} +class IDPCommunicationErrorException extends STSServiceException { name = "IDPCommunicationErrorException"; $fault = "client"; constructor(opts) { @@ -351,7 +351,7 @@ let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException exte }); Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } -}; +} const _A = "Arn"; const _AKI = "AccessKeyId"; @@ -414,8 +414,8 @@ const _tLT = "tagListType"; const n0 = "com.amazonaws.sts"; var accessKeySecretType = [0, n0, _aKST, 8, 0]; var clientTokenType = [0, n0, _cTT, 8, 0]; -var AssumedRoleUser = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; -var AssumeRoleRequest = [ +var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; +var AssumeRoleRequest$ = [ 3, n0, _ARR, @@ -423,15 +423,15 @@ var AssumeRoleRequest = [ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC], [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], ]; -var AssumeRoleResponse = [ +var AssumeRoleResponse$ = [ 3, n0, _ARRs, 0, [_C, _ARU, _PPS, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0], ]; -var AssumeRoleWithWebIdentityRequest = [ +var AssumeRoleWithWebIdentityRequest$ = [ 3, n0, _ARWWIR, @@ -439,15 +439,15 @@ var AssumeRoleWithWebIdentityRequest = [ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS], [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithWebIdentityResponse = [ +var AssumeRoleWithWebIdentityResponse$ = [ 3, n0, _ARWWIRs, 0, [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI], - [[() => Credentials, 0], 0, () => AssumedRoleUser, 1, 0, 0, 0], + [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0], ]; -var Credentials = [ +var Credentials$ = [ 3, n0, _C, @@ -455,85 +455,85 @@ var Credentials = [ [_AKI, _SAK, _ST, _E], [0, [() => accessKeySecretType, 0], 0, 4], ]; -var ExpiredTokenException = [ +var ExpiredTokenException$ = [ -3, n0, _ETE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTokenException`, 400] }, + { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var IDPCommunicationErrorException = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var IDPCommunicationErrorException$ = [ -3, n0, _IDPCEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`IDPCommunicationError`, 400] }, + { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException, IDPCommunicationErrorException$1); -var IDPRejectedClaimException = [ +schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); +var IDPRejectedClaimException$ = [ -3, n0, _IDPRCE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`IDPRejectedClaim`, 403] }, + { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException, IDPRejectedClaimException$1); -var InvalidIdentityTokenException = [ +schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException); +var InvalidIdentityTokenException$ = [ -3, n0, _IITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidIdentityToken`, 400] }, + { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException, InvalidIdentityTokenException$1); -var MalformedPolicyDocumentException = [ +schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); +var MalformedPolicyDocumentException$ = [ -3, n0, _MPDE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`MalformedPolicyDocument`, 400] }, + { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException, MalformedPolicyDocumentException$1); -var PackedPolicyTooLargeException = [ +schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); +var PackedPolicyTooLargeException$ = [ -3, n0, _PPTLE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`PackedPolicyTooLarge`, 400] }, + { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException, PackedPolicyTooLargeException$1); -var PolicyDescriptorType = [3, n0, _PDT, 0, [_a], [0]]; -var ProvidedContext = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; -var RegionDisabledException = [ +schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); +var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]]; +var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; +var RegionDisabledException$ = [ -3, n0, _RDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`RegionDisabledException`, 403] }, + { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(RegionDisabledException, RegionDisabledException$1); -var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; -var STSServiceException = [-3, _s, "STSServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(STSServiceException, STSServiceException$1); -var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType]; -var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext]; -var tagListType = [1, n0, _tLT, 0, () => Tag]; -var AssumeRole = [9, n0, _AR, 0, () => AssumeRoleRequest, () => AssumeRoleResponse]; -var AssumeRoleWithWebIdentity = [ +schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException); +var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; +var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException); +var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$]; +var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$]; +var tagListType = [1, n0, _tLT, 0, () => Tag$]; +var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$]; +var AssumeRoleWithWebIdentity$ = [ 9, n0, _ARWWI, 0, - () => AssumeRoleWithWebIdentityRequest, - () => AssumeRoleWithWebIdentityResponse, + () => AssumeRoleWithWebIdentityRequest$, + () => AssumeRoleWithWebIdentityResponse$, ]; class AssumeRoleCommand extends smithyClient.Command @@ -544,7 +544,7 @@ class AssumeRoleCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}) .n("STSClient", "AssumeRoleCommand") - .sc(AssumeRole) + .sc(AssumeRole$) .build() { } @@ -556,7 +556,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}) .n("STSClient", "AssumeRoleWithWebIdentityCommand") - .sc(AssumeRoleWithWebIdentity) + .sc(AssumeRoleWithWebIdentity$) .build() { } @@ -692,17 +692,36 @@ Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithyClient.Command; } })); +exports.AssumeRole$ = AssumeRole$; exports.AssumeRoleCommand = AssumeRoleCommand; +exports.AssumeRoleRequest$ = AssumeRoleRequest$; +exports.AssumeRoleResponse$ = AssumeRoleResponse$; +exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$; exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; -exports.ExpiredTokenException = ExpiredTokenException$1; -exports.IDPCommunicationErrorException = IDPCommunicationErrorException$1; -exports.IDPRejectedClaimException = IDPRejectedClaimException$1; -exports.InvalidIdentityTokenException = InvalidIdentityTokenException$1; -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1; -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException$1; -exports.RegionDisabledException = RegionDisabledException$1; +exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$; +exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$; +exports.AssumedRoleUser$ = AssumedRoleUser$; +exports.Credentials$ = Credentials$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$; +exports.IDPRejectedClaimException = IDPRejectedClaimException; +exports.IDPRejectedClaimException$ = IDPRejectedClaimException$; +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$; +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$; +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$; +exports.PolicyDescriptorType$ = PolicyDescriptorType$; +exports.ProvidedContext$ = ProvidedContext$; +exports.RegionDisabledException = RegionDisabledException; +exports.RegionDisabledException$ = RegionDisabledException$; exports.STS = STS; -exports.STSServiceException = STSServiceException$1; +exports.STSServiceException = STSServiceException; +exports.STSServiceException$ = STSServiceException$; +exports.Tag$ = Tag$; exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; exports.getDefaultRoleAssumer = getDefaultRoleAssumer; exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; @@ -827,12 +846,13 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? - new protocols_1.AwsQueryProtocol({ - defaultNamespace: "com.amazonaws.sts", - xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", - version: "2011-06-15", - }), + protocol: config?.protocol ?? protocols_1.AwsQueryProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sts", + xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", + version: "2011-06-15", + serviceTarget: "AWSSecurityTokenServiceV20110615", + }, serviceId: config?.serviceId ?? "STS", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -867,7 +887,7 @@ exports.resolveRuntimeExtensions = resolveRuntimeExtensions; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/443.index.js b/dist/443.index.js index 3b1c073..7e828db 100644 --- a/dist/443.index.js +++ b/dist/443.index.js @@ -221,14 +221,14 @@ class SSOOIDCClient extends smithyClient.Client { } } -let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClient.ServiceException { +class SSOOIDCServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, SSOOIDCServiceException.prototype); } -}; +} -let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 { +class AccessDeniedException extends SSOOIDCServiceException { name = "AccessDeniedException"; $fault = "client"; error; @@ -245,8 +245,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCService this.reason = opts.reason; this.error_description = opts.error_description; } -}; -let AuthorizationPendingException$1 = class AuthorizationPendingException extends SSOOIDCServiceException$1 { +} +class AuthorizationPendingException extends SSOOIDCServiceException { name = "AuthorizationPendingException"; $fault = "client"; error; @@ -261,8 +261,8 @@ let AuthorizationPendingException$1 = class AuthorizationPendingException extend this.error = opts.error; this.error_description = opts.error_description; } -}; -let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCServiceException$1 { +} +class ExpiredTokenException extends SSOOIDCServiceException { name = "ExpiredTokenException"; $fault = "client"; error; @@ -277,8 +277,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCService this.error = opts.error; this.error_description = opts.error_description; } -}; -let InternalServerException$1 = class InternalServerException extends SSOOIDCServiceException$1 { +} +class InternalServerException extends SSOOIDCServiceException { name = "InternalServerException"; $fault = "server"; error; @@ -293,8 +293,8 @@ let InternalServerException$1 = class InternalServerException extends SSOOIDCSer this.error = opts.error; this.error_description = opts.error_description; } -}; -let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServiceException$1 { +} +class InvalidClientException extends SSOOIDCServiceException { name = "InvalidClientException"; $fault = "client"; error; @@ -309,8 +309,8 @@ let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServi this.error = opts.error; this.error_description = opts.error_description; } -}; -let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCServiceException$1 { +} +class InvalidGrantException extends SSOOIDCServiceException { name = "InvalidGrantException"; $fault = "client"; error; @@ -325,8 +325,8 @@ let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCService this.error = opts.error; this.error_description = opts.error_description; } -}; -let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 { +} +class InvalidRequestException extends SSOOIDCServiceException { name = "InvalidRequestException"; $fault = "client"; error; @@ -343,8 +343,8 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCSer this.reason = opts.reason; this.error_description = opts.error_description; } -}; -let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCServiceException$1 { +} +class InvalidScopeException extends SSOOIDCServiceException { name = "InvalidScopeException"; $fault = "client"; error; @@ -359,8 +359,8 @@ let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCService this.error = opts.error; this.error_description = opts.error_description; } -}; -let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceException$1 { +} +class SlowDownException extends SSOOIDCServiceException { name = "SlowDownException"; $fault = "client"; error; @@ -375,8 +375,8 @@ let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceExceptio this.error = opts.error; this.error_description = opts.error_description; } -}; -let UnauthorizedClientException$1 = class UnauthorizedClientException extends SSOOIDCServiceException$1 { +} +class UnauthorizedClientException extends SSOOIDCServiceException { name = "UnauthorizedClientException"; $fault = "client"; error; @@ -391,8 +391,8 @@ let UnauthorizedClientException$1 = class UnauthorizedClientException extends SS this.error = opts.error; this.error_description = opts.error_description; } -}; -let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extends SSOOIDCServiceException$1 { +} +class UnsupportedGrantTypeException extends SSOOIDCServiceException { name = "UnsupportedGrantTypeException"; $fault = "client"; error; @@ -407,7 +407,7 @@ let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extend this.error = opts.error; this.error_description = opts.error_description; } -}; +} const _ADE = "AccessDeniedException"; const _APE = "AuthorizationPendingException"; @@ -455,7 +455,7 @@ var ClientSecret = [0, n0, _CS, 8, 0]; var CodeVerifier = [0, n0, _CV, 8, 0]; var IdToken = [0, n0, _IT, 8, 0]; var RefreshToken = [0, n0, _RT, 8, 0]; -var AccessDeniedException = [ +var AccessDeniedException$ = [ -3, n0, _ADE, @@ -463,8 +463,8 @@ var AccessDeniedException = [ [_e, _r, _ed], [0, 0, 0], ]; -schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1); -var AuthorizationPendingException = [ +schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException); +var AuthorizationPendingException$ = [ -3, n0, _APE, @@ -472,8 +472,8 @@ var AuthorizationPendingException = [ [_e, _ed], [0, 0], ]; -schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException, AuthorizationPendingException$1); -var CreateTokenRequest = [ +schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException); +var CreateTokenRequest$ = [ 3, n0, _CTR, @@ -481,7 +481,7 @@ var CreateTokenRequest = [ [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV], [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], ]; -var CreateTokenResponse = [ +var CreateTokenResponse$ = [ 3, n0, _CTRr, @@ -489,15 +489,15 @@ var CreateTokenResponse = [ [_aT, _tT, _eI, _rT, _iT], [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]], ]; -var ExpiredTokenException = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1); -var InvalidClientException = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1); -var InvalidGrantException = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InvalidGrantException, InvalidGrantException$1); -var InvalidRequestException = [ +var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException); +var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException); +var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException); +var InvalidRequestException$ = [ -3, n0, _IRE, @@ -505,14 +505,21 @@ var InvalidRequestException = [ [_e, _r, _ed], [0, 0, 0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1); -var InvalidScopeException = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InvalidScopeException, InvalidScopeException$1); -var SlowDownException = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(SlowDownException, SlowDownException$1); -var UnauthorizedClientException = [-3, n0, _UCE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException, UnauthorizedClientException$1); -var UnsupportedGrantTypeException = [ +schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException); +var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException); +var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException); +var UnauthorizedClientException$ = [ + -3, + n0, + _UCE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0], +]; +schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException); +var UnsupportedGrantTypeException$ = [ -3, n0, _UGTE, @@ -520,16 +527,16 @@ var UnsupportedGrantTypeException = [ [_e, _ed], [0, 0], ]; -schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, UnsupportedGrantTypeException$1); -var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []]; -schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, SSOOIDCServiceException$1); -var CreateToken = [ +schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException); +var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []]; +schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException); +var CreateToken$ = [ 9, n0, _CT, { [_h]: ["POST", "/token", 200] }, - () => CreateTokenRequest, - () => CreateTokenResponse, + () => CreateTokenRequest$, + () => CreateTokenResponse$, ]; class CreateTokenCommand extends smithyClient.Command @@ -540,7 +547,7 @@ class CreateTokenCommand extends smithyClient.Command }) .s("AWSSSOOIDCService", "CreateToken", {}) .n("SSOOIDCClient", "CreateTokenCommand") - .sc(CreateToken) + .sc(CreateToken$) .build() { } @@ -569,23 +576,38 @@ __webpack_unused_export__ = ({ enumerable: true, get: function () { return smithyClient.Client; } }); -__webpack_unused_export__ = AccessDeniedException$1; +__webpack_unused_export__ = AccessDeniedException; +__webpack_unused_export__ = AccessDeniedException$; __webpack_unused_export__ = AccessDeniedExceptionReason; -__webpack_unused_export__ = AuthorizationPendingException$1; +__webpack_unused_export__ = AuthorizationPendingException; +__webpack_unused_export__ = AuthorizationPendingException$; +__webpack_unused_export__ = CreateToken$; exports.CreateTokenCommand = CreateTokenCommand; -__webpack_unused_export__ = ExpiredTokenException$1; -__webpack_unused_export__ = InternalServerException$1; -__webpack_unused_export__ = InvalidClientException$1; -__webpack_unused_export__ = InvalidGrantException$1; -__webpack_unused_export__ = InvalidRequestException$1; +__webpack_unused_export__ = CreateTokenRequest$; +__webpack_unused_export__ = CreateTokenResponse$; +__webpack_unused_export__ = ExpiredTokenException; +__webpack_unused_export__ = ExpiredTokenException$; +__webpack_unused_export__ = InternalServerException; +__webpack_unused_export__ = InternalServerException$; +__webpack_unused_export__ = InvalidClientException; +__webpack_unused_export__ = InvalidClientException$; +__webpack_unused_export__ = InvalidGrantException; +__webpack_unused_export__ = InvalidGrantException$; +__webpack_unused_export__ = InvalidRequestException; +__webpack_unused_export__ = InvalidRequestException$; __webpack_unused_export__ = InvalidRequestExceptionReason; -__webpack_unused_export__ = InvalidScopeException$1; +__webpack_unused_export__ = InvalidScopeException; +__webpack_unused_export__ = InvalidScopeException$; __webpack_unused_export__ = SSOOIDC; exports.SSOOIDCClient = SSOOIDCClient; -__webpack_unused_export__ = SSOOIDCServiceException$1; -__webpack_unused_export__ = SlowDownException$1; -__webpack_unused_export__ = UnauthorizedClientException$1; -__webpack_unused_export__ = UnsupportedGrantTypeException$1; +__webpack_unused_export__ = SSOOIDCServiceException; +__webpack_unused_export__ = SSOOIDCServiceException$; +__webpack_unused_export__ = SlowDownException; +__webpack_unused_export__ = SlowDownException$; +__webpack_unused_export__ = UnauthorizedClientException; +__webpack_unused_export__ = UnauthorizedClientException$; +__webpack_unused_export__ = UnsupportedGrantTypeException; +__webpack_unused_export__ = UnsupportedGrantTypeException$; /***/ }), @@ -687,7 +709,12 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }), + protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.ssooidc", + version: "2019-06-10", + serviceTarget: "AWSSSOOIDCService", + }, serviceId: config?.serviceId ?? "SSO OIDC", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -702,7 +729,7 @@ exports.getRuntimeConfig = getRuntimeConfig; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/762.index.js b/dist/762.index.js index 32eae7a..85aeb0c 100644 --- a/dist/762.index.js +++ b/dist/762.index.js @@ -221,14 +221,14 @@ class SigninClient extends smithyClient.Client { } } -let SigninServiceException$1 = class SigninServiceException extends smithyClient.ServiceException { +class SigninServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, SigninServiceException.prototype); } -}; +} -let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceException$1 { +class AccessDeniedException extends SigninServiceException { name = "AccessDeniedException"; $fault = "client"; error; @@ -241,8 +241,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceE Object.setPrototypeOf(this, AccessDeniedException.prototype); this.error = opts.error; } -}; -let InternalServerException$1 = class InternalServerException extends SigninServiceException$1 { +} +class InternalServerException extends SigninServiceException { name = "InternalServerException"; $fault = "server"; error; @@ -255,8 +255,8 @@ let InternalServerException$1 = class InternalServerException extends SigninServ Object.setPrototypeOf(this, InternalServerException.prototype); this.error = opts.error; } -}; -let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceException$1 { +} +class TooManyRequestsError extends SigninServiceException { name = "TooManyRequestsError"; $fault = "client"; error; @@ -269,8 +269,8 @@ let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceExc Object.setPrototypeOf(this, TooManyRequestsError.prototype); this.error = opts.error; } -}; -let ValidationException$1 = class ValidationException extends SigninServiceException$1 { +} +class ValidationException extends SigninServiceException { name = "ValidationException"; $fault = "client"; error; @@ -283,7 +283,7 @@ let ValidationException$1 = class ValidationException extends SigninServiceExcep Object.setPrototypeOf(this, ValidationException.prototype); this.error = opts.error; } -}; +} const _ADE = "AccessDeniedException"; const _AT = "AccessToken"; @@ -321,9 +321,9 @@ const _tO = "tokenOutput"; const _tT = "tokenType"; const n0 = "com.amazonaws.signin"; var RefreshToken = [0, n0, _RT, 8, 0]; -var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1); -var AccessToken = [ +var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException); +var AccessToken$ = [ 3, n0, _AT, @@ -335,15 +335,15 @@ var AccessToken = [ [0, { [_jN]: _sT }], ], ]; -var CreateOAuth2TokenRequest = [ +var CreateOAuth2TokenRequest$ = [ 3, n0, _COATR, 0, [_tI], - [[() => CreateOAuth2TokenRequestBody, 16]], + [[() => CreateOAuth2TokenRequestBody$, 16]], ]; -var CreateOAuth2TokenRequestBody = [ +var CreateOAuth2TokenRequestBody$ = [ 3, n0, _COATRB, @@ -358,43 +358,43 @@ var CreateOAuth2TokenRequestBody = [ [() => RefreshToken, { [_jN]: _rT }], ], ]; -var CreateOAuth2TokenResponse = [ +var CreateOAuth2TokenResponse$ = [ 3, n0, _COATRr, 0, [_tO], - [[() => CreateOAuth2TokenResponseBody, 16]], + [[() => CreateOAuth2TokenResponseBody$, 16]], ]; -var CreateOAuth2TokenResponseBody = [ +var CreateOAuth2TokenResponseBody$ = [ 3, n0, _COATRBr, 0, [_aT, _tT, _eI, _rT, _iT], [ - [() => AccessToken, { [_jN]: _aT }], + [() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }], ], ]; -var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1); -var TooManyRequestsError = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(TooManyRequestsError, TooManyRequestsError$1); -var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1); -var SigninServiceException = [-3, _sm, "SigninServiceException", 0, [], []]; -schema.TypeRegistry.for(_sm).registerError(SigninServiceException, SigninServiceException$1); -var CreateOAuth2Token = [ +var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException); +var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError); +var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException); +var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []]; +schema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException); +var CreateOAuth2Token$ = [ 9, n0, _COAT, { [_h]: ["POST", "/v1/token", 200] }, - () => CreateOAuth2TokenRequest, - () => CreateOAuth2TokenResponse, + () => CreateOAuth2TokenRequest$, + () => CreateOAuth2TokenResponse$, ]; class CreateOAuth2TokenCommand extends smithyClient.Command @@ -405,7 +405,7 @@ class CreateOAuth2TokenCommand extends smithyClient.Command }) .s("Signin", "CreateOAuth2Token", {}) .n("SigninClient", "CreateOAuth2TokenCommand") - .sc(CreateOAuth2Token) + .sc(CreateOAuth2Token$) .build() { } @@ -433,15 +433,26 @@ __webpack_unused_export__ = ({ enumerable: true, get: function () { return smithyClient.Client; } }); -__webpack_unused_export__ = AccessDeniedException$1; +__webpack_unused_export__ = AccessDeniedException; +__webpack_unused_export__ = AccessDeniedException$; +__webpack_unused_export__ = AccessToken$; +__webpack_unused_export__ = CreateOAuth2Token$; exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand; -__webpack_unused_export__ = InternalServerException$1; +__webpack_unused_export__ = CreateOAuth2TokenRequest$; +__webpack_unused_export__ = CreateOAuth2TokenRequestBody$; +__webpack_unused_export__ = CreateOAuth2TokenResponse$; +__webpack_unused_export__ = CreateOAuth2TokenResponseBody$; +__webpack_unused_export__ = InternalServerException; +__webpack_unused_export__ = InternalServerException$; __webpack_unused_export__ = OAuth2ErrorCode; __webpack_unused_export__ = Signin; exports.SigninClient = SigninClient; -__webpack_unused_export__ = SigninServiceException$1; -__webpack_unused_export__ = TooManyRequestsError$1; -__webpack_unused_export__ = ValidationException$1; +__webpack_unused_export__ = SigninServiceException; +__webpack_unused_export__ = SigninServiceException$; +__webpack_unused_export__ = TooManyRequestsError; +__webpack_unused_export__ = TooManyRequestsError$; +__webpack_unused_export__ = ValidationException; +__webpack_unused_export__ = ValidationException$; /***/ }), @@ -543,7 +554,12 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.signin" }), + protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.signin", + version: "2023-01-01", + serviceTarget: "Signin", + }, serviceId: config?.serviceId ?? "Signin", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -558,7 +574,7 @@ exports.getRuntimeConfig = getRuntimeConfig; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/956.index.js b/dist/956.index.js index 4458440..0d18735 100644 --- a/dist/956.index.js +++ b/dist/956.index.js @@ -397,14 +397,14 @@ var schema = __webpack_require__(6890); var client = __webpack_require__(5152); var regionConfigResolver = __webpack_require__(6463); -let STSServiceException$1 = class STSServiceException extends smithyClient.ServiceException { +class STSServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, STSServiceException.prototype); } -}; +} -let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceException$1 { +class ExpiredTokenException extends STSServiceException { name = "ExpiredTokenException"; $fault = "client"; constructor(opts) { @@ -415,8 +415,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceExce }); Object.setPrototypeOf(this, ExpiredTokenException.prototype); } -}; -let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException extends STSServiceException$1 { +} +class MalformedPolicyDocumentException extends STSServiceException { name = "MalformedPolicyDocumentException"; $fault = "client"; constructor(opts) { @@ -427,8 +427,8 @@ let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException }); Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } -}; -let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extends STSServiceException$1 { +} +class PackedPolicyTooLargeException extends STSServiceException { name = "PackedPolicyTooLargeException"; $fault = "client"; constructor(opts) { @@ -439,8 +439,8 @@ let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extend }); Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); } -}; -let RegionDisabledException$1 = class RegionDisabledException extends STSServiceException$1 { +} +class RegionDisabledException extends STSServiceException { name = "RegionDisabledException"; $fault = "client"; constructor(opts) { @@ -451,8 +451,8 @@ let RegionDisabledException$1 = class RegionDisabledException extends STSService }); Object.setPrototypeOf(this, RegionDisabledException.prototype); } -}; -let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSServiceException$1 { +} +class IDPRejectedClaimException extends STSServiceException { name = "IDPRejectedClaimException"; $fault = "client"; constructor(opts) { @@ -463,8 +463,8 @@ let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSSer }); Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } -}; -let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extends STSServiceException$1 { +} +class InvalidIdentityTokenException extends STSServiceException { name = "InvalidIdentityTokenException"; $fault = "client"; constructor(opts) { @@ -475,8 +475,8 @@ let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extend }); Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } -}; -let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException extends STSServiceException$1 { +} +class IDPCommunicationErrorException extends STSServiceException { name = "IDPCommunicationErrorException"; $fault = "client"; constructor(opts) { @@ -487,7 +487,7 @@ let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException exte }); Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } -}; +} const _A = "Arn"; const _AKI = "AccessKeyId"; @@ -550,8 +550,8 @@ const _tLT = "tagListType"; const n0 = "com.amazonaws.sts"; var accessKeySecretType = [0, n0, _aKST, 8, 0]; var clientTokenType = [0, n0, _cTT, 8, 0]; -var AssumedRoleUser = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; -var AssumeRoleRequest = [ +var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; +var AssumeRoleRequest$ = [ 3, n0, _ARR, @@ -559,15 +559,15 @@ var AssumeRoleRequest = [ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC], [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], ]; -var AssumeRoleResponse = [ +var AssumeRoleResponse$ = [ 3, n0, _ARRs, 0, [_C, _ARU, _PPS, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0], ]; -var AssumeRoleWithWebIdentityRequest = [ +var AssumeRoleWithWebIdentityRequest$ = [ 3, n0, _ARWWIR, @@ -575,15 +575,15 @@ var AssumeRoleWithWebIdentityRequest = [ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS], [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithWebIdentityResponse = [ +var AssumeRoleWithWebIdentityResponse$ = [ 3, n0, _ARWWIRs, 0, [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI], - [[() => Credentials, 0], 0, () => AssumedRoleUser, 1, 0, 0, 0], + [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0], ]; -var Credentials = [ +var Credentials$ = [ 3, n0, _C, @@ -591,85 +591,85 @@ var Credentials = [ [_AKI, _SAK, _ST, _E], [0, [() => accessKeySecretType, 0], 0, 4], ]; -var ExpiredTokenException = [ +var ExpiredTokenException$ = [ -3, n0, _ETE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTokenException`, 400] }, + { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var IDPCommunicationErrorException = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var IDPCommunicationErrorException$ = [ -3, n0, _IDPCEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`IDPCommunicationError`, 400] }, + { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException, IDPCommunicationErrorException$1); -var IDPRejectedClaimException = [ +schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); +var IDPRejectedClaimException$ = [ -3, n0, _IDPRCE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`IDPRejectedClaim`, 403] }, + { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException, IDPRejectedClaimException$1); -var InvalidIdentityTokenException = [ +schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException); +var InvalidIdentityTokenException$ = [ -3, n0, _IITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidIdentityToken`, 400] }, + { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException, InvalidIdentityTokenException$1); -var MalformedPolicyDocumentException = [ +schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); +var MalformedPolicyDocumentException$ = [ -3, n0, _MPDE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`MalformedPolicyDocument`, 400] }, + { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException, MalformedPolicyDocumentException$1); -var PackedPolicyTooLargeException = [ +schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); +var PackedPolicyTooLargeException$ = [ -3, n0, _PPTLE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`PackedPolicyTooLarge`, 400] }, + { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException, PackedPolicyTooLargeException$1); -var PolicyDescriptorType = [3, n0, _PDT, 0, [_a], [0]]; -var ProvidedContext = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; -var RegionDisabledException = [ +schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); +var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]]; +var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; +var RegionDisabledException$ = [ -3, n0, _RDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`RegionDisabledException`, 403] }, + { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(RegionDisabledException, RegionDisabledException$1); -var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; -var STSServiceException = [-3, _s, "STSServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(STSServiceException, STSServiceException$1); -var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType]; -var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext]; -var tagListType = [1, n0, _tLT, 0, () => Tag]; -var AssumeRole = [9, n0, _AR, 0, () => AssumeRoleRequest, () => AssumeRoleResponse]; -var AssumeRoleWithWebIdentity = [ +schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException); +var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; +var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException); +var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$]; +var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$]; +var tagListType = [1, n0, _tLT, 0, () => Tag$]; +var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$]; +var AssumeRoleWithWebIdentity$ = [ 9, n0, _ARWWI, 0, - () => AssumeRoleWithWebIdentityRequest, - () => AssumeRoleWithWebIdentityResponse, + () => AssumeRoleWithWebIdentityRequest$, + () => AssumeRoleWithWebIdentityResponse$, ]; class AssumeRoleCommand extends smithyClient.Command @@ -680,7 +680,7 @@ class AssumeRoleCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}) .n("STSClient", "AssumeRoleCommand") - .sc(AssumeRole) + .sc(AssumeRole$) .build() { } @@ -692,7 +692,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}) .n("STSClient", "AssumeRoleWithWebIdentityCommand") - .sc(AssumeRoleWithWebIdentity) + .sc(AssumeRoleWithWebIdentity$) .build() { } @@ -828,17 +828,36 @@ Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithyClient.Command; } })); +exports.AssumeRole$ = AssumeRole$; exports.AssumeRoleCommand = AssumeRoleCommand; +exports.AssumeRoleRequest$ = AssumeRoleRequest$; +exports.AssumeRoleResponse$ = AssumeRoleResponse$; +exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$; exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; -exports.ExpiredTokenException = ExpiredTokenException$1; -exports.IDPCommunicationErrorException = IDPCommunicationErrorException$1; -exports.IDPRejectedClaimException = IDPRejectedClaimException$1; -exports.InvalidIdentityTokenException = InvalidIdentityTokenException$1; -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1; -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException$1; -exports.RegionDisabledException = RegionDisabledException$1; +exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$; +exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$; +exports.AssumedRoleUser$ = AssumedRoleUser$; +exports.Credentials$ = Credentials$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$; +exports.IDPRejectedClaimException = IDPRejectedClaimException; +exports.IDPRejectedClaimException$ = IDPRejectedClaimException$; +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$; +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$; +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$; +exports.PolicyDescriptorType$ = PolicyDescriptorType$; +exports.ProvidedContext$ = ProvidedContext$; +exports.RegionDisabledException = RegionDisabledException; +exports.RegionDisabledException$ = RegionDisabledException$; exports.STS = STS; -exports.STSServiceException = STSServiceException$1; +exports.STSServiceException = STSServiceException; +exports.STSServiceException$ = STSServiceException$; +exports.Tag$ = Tag$; exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; exports.getDefaultRoleAssumer = getDefaultRoleAssumer; exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; @@ -963,12 +982,13 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? - new protocols_1.AwsQueryProtocol({ - defaultNamespace: "com.amazonaws.sts", - xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", - version: "2011-06-15", - }), + protocol: config?.protocol ?? protocols_1.AwsQueryProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sts", + xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", + version: "2011-06-15", + serviceTarget: "AWSSecurityTokenServiceV20110615", + }, serviceId: config?.serviceId ?? "STS", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -1003,7 +1023,7 @@ exports.resolveRuntimeExtensions = resolveRuntimeExtensions; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/998.index.js b/dist/998.index.js index 7387037..0f4ea19 100644 --- a/dist/998.index.js +++ b/dist/998.index.js @@ -232,14 +232,14 @@ class SSOClient extends smithyClient.Client { } } -let SSOServiceException$1 = class SSOServiceException extends smithyClient.ServiceException { +class SSOServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, SSOServiceException.prototype); } -}; +} -let InvalidRequestException$1 = class InvalidRequestException extends SSOServiceException$1 { +class InvalidRequestException extends SSOServiceException { name = "InvalidRequestException"; $fault = "client"; constructor(opts) { @@ -250,8 +250,8 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOService }); Object.setPrototypeOf(this, InvalidRequestException.prototype); } -}; -let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSOServiceException$1 { +} +class ResourceNotFoundException extends SSOServiceException { name = "ResourceNotFoundException"; $fault = "client"; constructor(opts) { @@ -262,8 +262,8 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSOSer }); Object.setPrototypeOf(this, ResourceNotFoundException.prototype); } -}; -let TooManyRequestsException$1 = class TooManyRequestsException extends SSOServiceException$1 { +} +class TooManyRequestsException extends SSOServiceException { name = "TooManyRequestsException"; $fault = "client"; constructor(opts) { @@ -274,8 +274,8 @@ let TooManyRequestsException$1 = class TooManyRequestsException extends SSOServi }); Object.setPrototypeOf(this, TooManyRequestsException.prototype); } -}; -let UnauthorizedException$1 = class UnauthorizedException extends SSOServiceException$1 { +} +class UnauthorizedException extends SSOServiceException { name = "UnauthorizedException"; $fault = "client"; constructor(opts) { @@ -286,7 +286,7 @@ let UnauthorizedException$1 = class UnauthorizedException extends SSOServiceExce }); Object.setPrototypeOf(this, UnauthorizedException.prototype); } -}; +} const _AI = "AccountInfo"; const _ALT = "AccountListType"; @@ -342,8 +342,8 @@ const n0 = "com.amazonaws.sso"; var AccessTokenType = [0, n0, _ATT, 8, 0]; var SecretAccessKeyType = [0, n0, _SAKT, 8, 0]; var SessionTokenType = [0, n0, _STT, 8, 0]; -var AccountInfo = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]]; -var GetRoleCredentialsRequest = [ +var AccountInfo$ = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]]; +var GetRoleCredentialsRequest$ = [ 3, n0, _GRCR, @@ -355,10 +355,17 @@ var GetRoleCredentialsRequest = [ [() => AccessTokenType, { [_hH]: _xasbt }], ], ]; -var GetRoleCredentialsResponse = [3, n0, _GRCRe, 0, [_rC], [[() => RoleCredentials, 0]]]; -var InvalidRequestException = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1); -var ListAccountRolesRequest = [ +var GetRoleCredentialsResponse$ = [ + 3, + n0, + _GRCRe, + 0, + [_rC], + [[() => RoleCredentials$, 0]], +]; +var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException); +var ListAccountRolesRequest$ = [ 3, n0, _LARR, @@ -371,8 +378,8 @@ var ListAccountRolesRequest = [ [0, { [_hQ]: _ai }], ], ]; -var ListAccountRolesResponse = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]]; -var ListAccountsRequest = [ +var ListAccountRolesResponse$ = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]]; +var ListAccountsRequest$ = [ 3, n0, _LAR, @@ -384,11 +391,11 @@ var ListAccountsRequest = [ [() => AccessTokenType, { [_hH]: _xasbt }], ], ]; -var ListAccountsResponse = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]]; -var LogoutRequest = [3, n0, _LR, 0, [_aT], [[() => AccessTokenType, { [_hH]: _xasbt }]]]; -var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1); -var RoleCredentials = [ +var ListAccountsResponse$ = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]]; +var LogoutRequest$ = [3, n0, _LR, 0, [_aT], [[() => AccessTokenType, { [_hH]: _xasbt }]]]; +var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException); +var RoleCredentials$ = [ 3, n0, _RC, @@ -396,46 +403,46 @@ var RoleCredentials = [ [_aKI, _sAK, _sT, _ex], [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1], ]; -var RoleInfo = [3, n0, _RI, 0, [_rN, _aI], [0, 0]]; -var TooManyRequestsException = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1); -var UnauthorizedException = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(UnauthorizedException, UnauthorizedException$1); +var RoleInfo$ = [3, n0, _RI, 0, [_rN, _aI], [0, 0]]; +var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException); +var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException); var __Unit = "unit"; -var SSOServiceException = [-3, _s, "SSOServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(SSOServiceException, SSOServiceException$1); -var AccountListType = [1, n0, _ALT, 0, () => AccountInfo]; -var RoleListType = [1, n0, _RLT, 0, () => RoleInfo]; -var GetRoleCredentials = [ +var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException); +var AccountListType = [1, n0, _ALT, 0, () => AccountInfo$]; +var RoleListType = [1, n0, _RLT, 0, () => RoleInfo$]; +var GetRoleCredentials$ = [ 9, n0, _GRC, { [_h]: ["GET", "/federation/credentials", 200] }, - () => GetRoleCredentialsRequest, - () => GetRoleCredentialsResponse, + () => GetRoleCredentialsRequest$, + () => GetRoleCredentialsResponse$, ]; -var ListAccountRoles = [ +var ListAccountRoles$ = [ 9, n0, _LARis, { [_h]: ["GET", "/assignment/roles", 200] }, - () => ListAccountRolesRequest, - () => ListAccountRolesResponse, + () => ListAccountRolesRequest$, + () => ListAccountRolesResponse$, ]; -var ListAccounts = [ +var ListAccounts$ = [ 9, n0, _LA, { [_h]: ["GET", "/assignment/accounts", 200] }, - () => ListAccountsRequest, - () => ListAccountsResponse, + () => ListAccountsRequest$, + () => ListAccountsResponse$, ]; -var Logout = [ +var Logout$ = [ 9, n0, _L, { [_h]: ["POST", "/logout", 200] }, - () => LogoutRequest, + () => LogoutRequest$, () => __Unit, ]; @@ -447,7 +454,7 @@ class GetRoleCredentialsCommand extends smithyClient.Command }) .s("SWBPortalService", "GetRoleCredentials", {}) .n("SSOClient", "GetRoleCredentialsCommand") - .sc(GetRoleCredentials) + .sc(GetRoleCredentials$) .build() { } @@ -459,7 +466,7 @@ class ListAccountRolesCommand extends smithyClient.Command }) .s("SWBPortalService", "ListAccountRoles", {}) .n("SSOClient", "ListAccountRolesCommand") - .sc(ListAccountRoles) + .sc(ListAccountRoles$) .build() { } @@ -471,7 +478,7 @@ class ListAccountsCommand extends smithyClient.Command }) .s("SWBPortalService", "ListAccounts", {}) .n("SSOClient", "ListAccountsCommand") - .sc(ListAccounts) + .sc(ListAccounts$) .build() { } @@ -483,7 +490,7 @@ class LogoutCommand extends smithyClient.Command }) .s("SWBPortalService", "Logout", {}) .n("SSOClient", "LogoutCommand") - .sc(Logout) + .sc(Logout$) .build() { } @@ -509,17 +516,36 @@ Object.defineProperty(exports, "__Client", ({ enumerable: true, get: function () { return smithyClient.Client; } })); +exports.AccountInfo$ = AccountInfo$; +exports.GetRoleCredentials$ = GetRoleCredentials$; exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; -exports.InvalidRequestException = InvalidRequestException$1; +exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$; +exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$; +exports.InvalidRequestException = InvalidRequestException; +exports.InvalidRequestException$ = InvalidRequestException$; +exports.ListAccountRoles$ = ListAccountRoles$; exports.ListAccountRolesCommand = ListAccountRolesCommand; +exports.ListAccountRolesRequest$ = ListAccountRolesRequest$; +exports.ListAccountRolesResponse$ = ListAccountRolesResponse$; +exports.ListAccounts$ = ListAccounts$; exports.ListAccountsCommand = ListAccountsCommand; +exports.ListAccountsRequest$ = ListAccountsRequest$; +exports.ListAccountsResponse$ = ListAccountsResponse$; +exports.Logout$ = Logout$; exports.LogoutCommand = LogoutCommand; -exports.ResourceNotFoundException = ResourceNotFoundException$1; +exports.LogoutRequest$ = LogoutRequest$; +exports.ResourceNotFoundException = ResourceNotFoundException; +exports.ResourceNotFoundException$ = ResourceNotFoundException$; +exports.RoleCredentials$ = RoleCredentials$; +exports.RoleInfo$ = RoleInfo$; exports.SSO = SSO; exports.SSOClient = SSOClient; -exports.SSOServiceException = SSOServiceException$1; -exports.TooManyRequestsException = TooManyRequestsException$1; -exports.UnauthorizedException = UnauthorizedException$1; +exports.SSOServiceException = SSOServiceException; +exports.SSOServiceException$ = SSOServiceException$; +exports.TooManyRequestsException = TooManyRequestsException; +exports.TooManyRequestsException$ = TooManyRequestsException$; +exports.UnauthorizedException = UnauthorizedException; +exports.UnauthorizedException$ = UnauthorizedException$; exports.paginateListAccountRoles = paginateListAccountRoles; exports.paginateListAccounts = paginateListAccounts; @@ -623,7 +649,12 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sso" }), + protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sso", + version: "2019-06-10", + serviceTarget: "SWBPortalService", + }, serviceId: config?.serviceId ?? "SSO", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -1329,7 +1360,7 @@ exports.nodeProvider = nodeProvider; /***/ 5188: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.948.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.957.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); /***/ }) diff --git a/dist/cleanup/136.index.js b/dist/cleanup/136.index.js index 4bace66..a85effe 100644 --- a/dist/cleanup/136.index.js +++ b/dist/cleanup/136.index.js @@ -261,14 +261,14 @@ var schema = __webpack_require__(6890); var client = __webpack_require__(5152); var regionConfigResolver = __webpack_require__(6463); -let STSServiceException$1 = class STSServiceException extends smithyClient.ServiceException { +class STSServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, STSServiceException.prototype); } -}; +} -let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceException$1 { +class ExpiredTokenException extends STSServiceException { name = "ExpiredTokenException"; $fault = "client"; constructor(opts) { @@ -279,8 +279,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceExce }); Object.setPrototypeOf(this, ExpiredTokenException.prototype); } -}; -let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException extends STSServiceException$1 { +} +class MalformedPolicyDocumentException extends STSServiceException { name = "MalformedPolicyDocumentException"; $fault = "client"; constructor(opts) { @@ -291,8 +291,8 @@ let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException }); Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } -}; -let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extends STSServiceException$1 { +} +class PackedPolicyTooLargeException extends STSServiceException { name = "PackedPolicyTooLargeException"; $fault = "client"; constructor(opts) { @@ -303,8 +303,8 @@ let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extend }); Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); } -}; -let RegionDisabledException$1 = class RegionDisabledException extends STSServiceException$1 { +} +class RegionDisabledException extends STSServiceException { name = "RegionDisabledException"; $fault = "client"; constructor(opts) { @@ -315,8 +315,8 @@ let RegionDisabledException$1 = class RegionDisabledException extends STSService }); Object.setPrototypeOf(this, RegionDisabledException.prototype); } -}; -let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSServiceException$1 { +} +class IDPRejectedClaimException extends STSServiceException { name = "IDPRejectedClaimException"; $fault = "client"; constructor(opts) { @@ -327,8 +327,8 @@ let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSSer }); Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } -}; -let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extends STSServiceException$1 { +} +class InvalidIdentityTokenException extends STSServiceException { name = "InvalidIdentityTokenException"; $fault = "client"; constructor(opts) { @@ -339,8 +339,8 @@ let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extend }); Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } -}; -let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException extends STSServiceException$1 { +} +class IDPCommunicationErrorException extends STSServiceException { name = "IDPCommunicationErrorException"; $fault = "client"; constructor(opts) { @@ -351,7 +351,7 @@ let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException exte }); Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } -}; +} const _A = "Arn"; const _AKI = "AccessKeyId"; @@ -414,8 +414,8 @@ const _tLT = "tagListType"; const n0 = "com.amazonaws.sts"; var accessKeySecretType = [0, n0, _aKST, 8, 0]; var clientTokenType = [0, n0, _cTT, 8, 0]; -var AssumedRoleUser = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; -var AssumeRoleRequest = [ +var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; +var AssumeRoleRequest$ = [ 3, n0, _ARR, @@ -423,15 +423,15 @@ var AssumeRoleRequest = [ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC], [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], ]; -var AssumeRoleResponse = [ +var AssumeRoleResponse$ = [ 3, n0, _ARRs, 0, [_C, _ARU, _PPS, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0], ]; -var AssumeRoleWithWebIdentityRequest = [ +var AssumeRoleWithWebIdentityRequest$ = [ 3, n0, _ARWWIR, @@ -439,15 +439,15 @@ var AssumeRoleWithWebIdentityRequest = [ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS], [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithWebIdentityResponse = [ +var AssumeRoleWithWebIdentityResponse$ = [ 3, n0, _ARWWIRs, 0, [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI], - [[() => Credentials, 0], 0, () => AssumedRoleUser, 1, 0, 0, 0], + [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0], ]; -var Credentials = [ +var Credentials$ = [ 3, n0, _C, @@ -455,85 +455,85 @@ var Credentials = [ [_AKI, _SAK, _ST, _E], [0, [() => accessKeySecretType, 0], 0, 4], ]; -var ExpiredTokenException = [ +var ExpiredTokenException$ = [ -3, n0, _ETE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTokenException`, 400] }, + { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var IDPCommunicationErrorException = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var IDPCommunicationErrorException$ = [ -3, n0, _IDPCEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`IDPCommunicationError`, 400] }, + { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException, IDPCommunicationErrorException$1); -var IDPRejectedClaimException = [ +schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); +var IDPRejectedClaimException$ = [ -3, n0, _IDPRCE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`IDPRejectedClaim`, 403] }, + { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException, IDPRejectedClaimException$1); -var InvalidIdentityTokenException = [ +schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException); +var InvalidIdentityTokenException$ = [ -3, n0, _IITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidIdentityToken`, 400] }, + { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException, InvalidIdentityTokenException$1); -var MalformedPolicyDocumentException = [ +schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); +var MalformedPolicyDocumentException$ = [ -3, n0, _MPDE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`MalformedPolicyDocument`, 400] }, + { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException, MalformedPolicyDocumentException$1); -var PackedPolicyTooLargeException = [ +schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); +var PackedPolicyTooLargeException$ = [ -3, n0, _PPTLE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`PackedPolicyTooLarge`, 400] }, + { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException, PackedPolicyTooLargeException$1); -var PolicyDescriptorType = [3, n0, _PDT, 0, [_a], [0]]; -var ProvidedContext = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; -var RegionDisabledException = [ +schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); +var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]]; +var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; +var RegionDisabledException$ = [ -3, n0, _RDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`RegionDisabledException`, 403] }, + { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(RegionDisabledException, RegionDisabledException$1); -var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; -var STSServiceException = [-3, _s, "STSServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(STSServiceException, STSServiceException$1); -var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType]; -var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext]; -var tagListType = [1, n0, _tLT, 0, () => Tag]; -var AssumeRole = [9, n0, _AR, 0, () => AssumeRoleRequest, () => AssumeRoleResponse]; -var AssumeRoleWithWebIdentity = [ +schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException); +var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; +var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException); +var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$]; +var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$]; +var tagListType = [1, n0, _tLT, 0, () => Tag$]; +var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$]; +var AssumeRoleWithWebIdentity$ = [ 9, n0, _ARWWI, 0, - () => AssumeRoleWithWebIdentityRequest, - () => AssumeRoleWithWebIdentityResponse, + () => AssumeRoleWithWebIdentityRequest$, + () => AssumeRoleWithWebIdentityResponse$, ]; class AssumeRoleCommand extends smithyClient.Command @@ -544,7 +544,7 @@ class AssumeRoleCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}) .n("STSClient", "AssumeRoleCommand") - .sc(AssumeRole) + .sc(AssumeRole$) .build() { } @@ -556,7 +556,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}) .n("STSClient", "AssumeRoleWithWebIdentityCommand") - .sc(AssumeRoleWithWebIdentity) + .sc(AssumeRoleWithWebIdentity$) .build() { } @@ -692,17 +692,36 @@ Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithyClient.Command; } })); +exports.AssumeRole$ = AssumeRole$; exports.AssumeRoleCommand = AssumeRoleCommand; +exports.AssumeRoleRequest$ = AssumeRoleRequest$; +exports.AssumeRoleResponse$ = AssumeRoleResponse$; +exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$; exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; -exports.ExpiredTokenException = ExpiredTokenException$1; -exports.IDPCommunicationErrorException = IDPCommunicationErrorException$1; -exports.IDPRejectedClaimException = IDPRejectedClaimException$1; -exports.InvalidIdentityTokenException = InvalidIdentityTokenException$1; -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1; -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException$1; -exports.RegionDisabledException = RegionDisabledException$1; +exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$; +exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$; +exports.AssumedRoleUser$ = AssumedRoleUser$; +exports.Credentials$ = Credentials$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$; +exports.IDPRejectedClaimException = IDPRejectedClaimException; +exports.IDPRejectedClaimException$ = IDPRejectedClaimException$; +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$; +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$; +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$; +exports.PolicyDescriptorType$ = PolicyDescriptorType$; +exports.ProvidedContext$ = ProvidedContext$; +exports.RegionDisabledException = RegionDisabledException; +exports.RegionDisabledException$ = RegionDisabledException$; exports.STS = STS; -exports.STSServiceException = STSServiceException$1; +exports.STSServiceException = STSServiceException; +exports.STSServiceException$ = STSServiceException$; +exports.Tag$ = Tag$; exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; exports.getDefaultRoleAssumer = getDefaultRoleAssumer; exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; @@ -827,12 +846,13 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? - new protocols_1.AwsQueryProtocol({ - defaultNamespace: "com.amazonaws.sts", - xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", - version: "2011-06-15", - }), + protocol: config?.protocol ?? protocols_1.AwsQueryProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sts", + xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", + version: "2011-06-15", + serviceTarget: "AWSSecurityTokenServiceV20110615", + }, serviceId: config?.serviceId ?? "STS", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -867,7 +887,7 @@ exports.resolveRuntimeExtensions = resolveRuntimeExtensions; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/cleanup/443.index.js b/dist/cleanup/443.index.js index 3b1c073..7e828db 100644 --- a/dist/cleanup/443.index.js +++ b/dist/cleanup/443.index.js @@ -221,14 +221,14 @@ class SSOOIDCClient extends smithyClient.Client { } } -let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClient.ServiceException { +class SSOOIDCServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, SSOOIDCServiceException.prototype); } -}; +} -let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 { +class AccessDeniedException extends SSOOIDCServiceException { name = "AccessDeniedException"; $fault = "client"; error; @@ -245,8 +245,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCService this.reason = opts.reason; this.error_description = opts.error_description; } -}; -let AuthorizationPendingException$1 = class AuthorizationPendingException extends SSOOIDCServiceException$1 { +} +class AuthorizationPendingException extends SSOOIDCServiceException { name = "AuthorizationPendingException"; $fault = "client"; error; @@ -261,8 +261,8 @@ let AuthorizationPendingException$1 = class AuthorizationPendingException extend this.error = opts.error; this.error_description = opts.error_description; } -}; -let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCServiceException$1 { +} +class ExpiredTokenException extends SSOOIDCServiceException { name = "ExpiredTokenException"; $fault = "client"; error; @@ -277,8 +277,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCService this.error = opts.error; this.error_description = opts.error_description; } -}; -let InternalServerException$1 = class InternalServerException extends SSOOIDCServiceException$1 { +} +class InternalServerException extends SSOOIDCServiceException { name = "InternalServerException"; $fault = "server"; error; @@ -293,8 +293,8 @@ let InternalServerException$1 = class InternalServerException extends SSOOIDCSer this.error = opts.error; this.error_description = opts.error_description; } -}; -let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServiceException$1 { +} +class InvalidClientException extends SSOOIDCServiceException { name = "InvalidClientException"; $fault = "client"; error; @@ -309,8 +309,8 @@ let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServi this.error = opts.error; this.error_description = opts.error_description; } -}; -let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCServiceException$1 { +} +class InvalidGrantException extends SSOOIDCServiceException { name = "InvalidGrantException"; $fault = "client"; error; @@ -325,8 +325,8 @@ let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCService this.error = opts.error; this.error_description = opts.error_description; } -}; -let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 { +} +class InvalidRequestException extends SSOOIDCServiceException { name = "InvalidRequestException"; $fault = "client"; error; @@ -343,8 +343,8 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCSer this.reason = opts.reason; this.error_description = opts.error_description; } -}; -let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCServiceException$1 { +} +class InvalidScopeException extends SSOOIDCServiceException { name = "InvalidScopeException"; $fault = "client"; error; @@ -359,8 +359,8 @@ let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCService this.error = opts.error; this.error_description = opts.error_description; } -}; -let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceException$1 { +} +class SlowDownException extends SSOOIDCServiceException { name = "SlowDownException"; $fault = "client"; error; @@ -375,8 +375,8 @@ let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceExceptio this.error = opts.error; this.error_description = opts.error_description; } -}; -let UnauthorizedClientException$1 = class UnauthorizedClientException extends SSOOIDCServiceException$1 { +} +class UnauthorizedClientException extends SSOOIDCServiceException { name = "UnauthorizedClientException"; $fault = "client"; error; @@ -391,8 +391,8 @@ let UnauthorizedClientException$1 = class UnauthorizedClientException extends SS this.error = opts.error; this.error_description = opts.error_description; } -}; -let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extends SSOOIDCServiceException$1 { +} +class UnsupportedGrantTypeException extends SSOOIDCServiceException { name = "UnsupportedGrantTypeException"; $fault = "client"; error; @@ -407,7 +407,7 @@ let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extend this.error = opts.error; this.error_description = opts.error_description; } -}; +} const _ADE = "AccessDeniedException"; const _APE = "AuthorizationPendingException"; @@ -455,7 +455,7 @@ var ClientSecret = [0, n0, _CS, 8, 0]; var CodeVerifier = [0, n0, _CV, 8, 0]; var IdToken = [0, n0, _IT, 8, 0]; var RefreshToken = [0, n0, _RT, 8, 0]; -var AccessDeniedException = [ +var AccessDeniedException$ = [ -3, n0, _ADE, @@ -463,8 +463,8 @@ var AccessDeniedException = [ [_e, _r, _ed], [0, 0, 0], ]; -schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1); -var AuthorizationPendingException = [ +schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException); +var AuthorizationPendingException$ = [ -3, n0, _APE, @@ -472,8 +472,8 @@ var AuthorizationPendingException = [ [_e, _ed], [0, 0], ]; -schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException, AuthorizationPendingException$1); -var CreateTokenRequest = [ +schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException); +var CreateTokenRequest$ = [ 3, n0, _CTR, @@ -481,7 +481,7 @@ var CreateTokenRequest = [ [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV], [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], ]; -var CreateTokenResponse = [ +var CreateTokenResponse$ = [ 3, n0, _CTRr, @@ -489,15 +489,15 @@ var CreateTokenResponse = [ [_aT, _tT, _eI, _rT, _iT], [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]], ]; -var ExpiredTokenException = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1); -var InvalidClientException = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1); -var InvalidGrantException = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InvalidGrantException, InvalidGrantException$1); -var InvalidRequestException = [ +var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException); +var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException); +var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException); +var InvalidRequestException$ = [ -3, n0, _IRE, @@ -505,14 +505,21 @@ var InvalidRequestException = [ [_e, _r, _ed], [0, 0, 0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1); -var InvalidScopeException = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InvalidScopeException, InvalidScopeException$1); -var SlowDownException = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(SlowDownException, SlowDownException$1); -var UnauthorizedClientException = [-3, n0, _UCE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException, UnauthorizedClientException$1); -var UnsupportedGrantTypeException = [ +schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException); +var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException); +var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException); +var UnauthorizedClientException$ = [ + -3, + n0, + _UCE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0], +]; +schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException); +var UnsupportedGrantTypeException$ = [ -3, n0, _UGTE, @@ -520,16 +527,16 @@ var UnsupportedGrantTypeException = [ [_e, _ed], [0, 0], ]; -schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, UnsupportedGrantTypeException$1); -var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []]; -schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, SSOOIDCServiceException$1); -var CreateToken = [ +schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException); +var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []]; +schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException); +var CreateToken$ = [ 9, n0, _CT, { [_h]: ["POST", "/token", 200] }, - () => CreateTokenRequest, - () => CreateTokenResponse, + () => CreateTokenRequest$, + () => CreateTokenResponse$, ]; class CreateTokenCommand extends smithyClient.Command @@ -540,7 +547,7 @@ class CreateTokenCommand extends smithyClient.Command }) .s("AWSSSOOIDCService", "CreateToken", {}) .n("SSOOIDCClient", "CreateTokenCommand") - .sc(CreateToken) + .sc(CreateToken$) .build() { } @@ -569,23 +576,38 @@ __webpack_unused_export__ = ({ enumerable: true, get: function () { return smithyClient.Client; } }); -__webpack_unused_export__ = AccessDeniedException$1; +__webpack_unused_export__ = AccessDeniedException; +__webpack_unused_export__ = AccessDeniedException$; __webpack_unused_export__ = AccessDeniedExceptionReason; -__webpack_unused_export__ = AuthorizationPendingException$1; +__webpack_unused_export__ = AuthorizationPendingException; +__webpack_unused_export__ = AuthorizationPendingException$; +__webpack_unused_export__ = CreateToken$; exports.CreateTokenCommand = CreateTokenCommand; -__webpack_unused_export__ = ExpiredTokenException$1; -__webpack_unused_export__ = InternalServerException$1; -__webpack_unused_export__ = InvalidClientException$1; -__webpack_unused_export__ = InvalidGrantException$1; -__webpack_unused_export__ = InvalidRequestException$1; +__webpack_unused_export__ = CreateTokenRequest$; +__webpack_unused_export__ = CreateTokenResponse$; +__webpack_unused_export__ = ExpiredTokenException; +__webpack_unused_export__ = ExpiredTokenException$; +__webpack_unused_export__ = InternalServerException; +__webpack_unused_export__ = InternalServerException$; +__webpack_unused_export__ = InvalidClientException; +__webpack_unused_export__ = InvalidClientException$; +__webpack_unused_export__ = InvalidGrantException; +__webpack_unused_export__ = InvalidGrantException$; +__webpack_unused_export__ = InvalidRequestException; +__webpack_unused_export__ = InvalidRequestException$; __webpack_unused_export__ = InvalidRequestExceptionReason; -__webpack_unused_export__ = InvalidScopeException$1; +__webpack_unused_export__ = InvalidScopeException; +__webpack_unused_export__ = InvalidScopeException$; __webpack_unused_export__ = SSOOIDC; exports.SSOOIDCClient = SSOOIDCClient; -__webpack_unused_export__ = SSOOIDCServiceException$1; -__webpack_unused_export__ = SlowDownException$1; -__webpack_unused_export__ = UnauthorizedClientException$1; -__webpack_unused_export__ = UnsupportedGrantTypeException$1; +__webpack_unused_export__ = SSOOIDCServiceException; +__webpack_unused_export__ = SSOOIDCServiceException$; +__webpack_unused_export__ = SlowDownException; +__webpack_unused_export__ = SlowDownException$; +__webpack_unused_export__ = UnauthorizedClientException; +__webpack_unused_export__ = UnauthorizedClientException$; +__webpack_unused_export__ = UnsupportedGrantTypeException; +__webpack_unused_export__ = UnsupportedGrantTypeException$; /***/ }), @@ -687,7 +709,12 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }), + protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.ssooidc", + version: "2019-06-10", + serviceTarget: "AWSSSOOIDCService", + }, serviceId: config?.serviceId ?? "SSO OIDC", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -702,7 +729,7 @@ exports.getRuntimeConfig = getRuntimeConfig; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/cleanup/762.index.js b/dist/cleanup/762.index.js index 32eae7a..85aeb0c 100644 --- a/dist/cleanup/762.index.js +++ b/dist/cleanup/762.index.js @@ -221,14 +221,14 @@ class SigninClient extends smithyClient.Client { } } -let SigninServiceException$1 = class SigninServiceException extends smithyClient.ServiceException { +class SigninServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, SigninServiceException.prototype); } -}; +} -let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceException$1 { +class AccessDeniedException extends SigninServiceException { name = "AccessDeniedException"; $fault = "client"; error; @@ -241,8 +241,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceE Object.setPrototypeOf(this, AccessDeniedException.prototype); this.error = opts.error; } -}; -let InternalServerException$1 = class InternalServerException extends SigninServiceException$1 { +} +class InternalServerException extends SigninServiceException { name = "InternalServerException"; $fault = "server"; error; @@ -255,8 +255,8 @@ let InternalServerException$1 = class InternalServerException extends SigninServ Object.setPrototypeOf(this, InternalServerException.prototype); this.error = opts.error; } -}; -let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceException$1 { +} +class TooManyRequestsError extends SigninServiceException { name = "TooManyRequestsError"; $fault = "client"; error; @@ -269,8 +269,8 @@ let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceExc Object.setPrototypeOf(this, TooManyRequestsError.prototype); this.error = opts.error; } -}; -let ValidationException$1 = class ValidationException extends SigninServiceException$1 { +} +class ValidationException extends SigninServiceException { name = "ValidationException"; $fault = "client"; error; @@ -283,7 +283,7 @@ let ValidationException$1 = class ValidationException extends SigninServiceExcep Object.setPrototypeOf(this, ValidationException.prototype); this.error = opts.error; } -}; +} const _ADE = "AccessDeniedException"; const _AT = "AccessToken"; @@ -321,9 +321,9 @@ const _tO = "tokenOutput"; const _tT = "tokenType"; const n0 = "com.amazonaws.signin"; var RefreshToken = [0, n0, _RT, 8, 0]; -var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1); -var AccessToken = [ +var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException); +var AccessToken$ = [ 3, n0, _AT, @@ -335,15 +335,15 @@ var AccessToken = [ [0, { [_jN]: _sT }], ], ]; -var CreateOAuth2TokenRequest = [ +var CreateOAuth2TokenRequest$ = [ 3, n0, _COATR, 0, [_tI], - [[() => CreateOAuth2TokenRequestBody, 16]], + [[() => CreateOAuth2TokenRequestBody$, 16]], ]; -var CreateOAuth2TokenRequestBody = [ +var CreateOAuth2TokenRequestBody$ = [ 3, n0, _COATRB, @@ -358,43 +358,43 @@ var CreateOAuth2TokenRequestBody = [ [() => RefreshToken, { [_jN]: _rT }], ], ]; -var CreateOAuth2TokenResponse = [ +var CreateOAuth2TokenResponse$ = [ 3, n0, _COATRr, 0, [_tO], - [[() => CreateOAuth2TokenResponseBody, 16]], + [[() => CreateOAuth2TokenResponseBody$, 16]], ]; -var CreateOAuth2TokenResponseBody = [ +var CreateOAuth2TokenResponseBody$ = [ 3, n0, _COATRBr, 0, [_aT, _tT, _eI, _rT, _iT], [ - [() => AccessToken, { [_jN]: _aT }], + [() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }], ], ]; -var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1); -var TooManyRequestsError = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(TooManyRequestsError, TooManyRequestsError$1); -var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]]; -schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1); -var SigninServiceException = [-3, _sm, "SigninServiceException", 0, [], []]; -schema.TypeRegistry.for(_sm).registerError(SigninServiceException, SigninServiceException$1); -var CreateOAuth2Token = [ +var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException); +var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError); +var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]]; +schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException); +var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []]; +schema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException); +var CreateOAuth2Token$ = [ 9, n0, _COAT, { [_h]: ["POST", "/v1/token", 200] }, - () => CreateOAuth2TokenRequest, - () => CreateOAuth2TokenResponse, + () => CreateOAuth2TokenRequest$, + () => CreateOAuth2TokenResponse$, ]; class CreateOAuth2TokenCommand extends smithyClient.Command @@ -405,7 +405,7 @@ class CreateOAuth2TokenCommand extends smithyClient.Command }) .s("Signin", "CreateOAuth2Token", {}) .n("SigninClient", "CreateOAuth2TokenCommand") - .sc(CreateOAuth2Token) + .sc(CreateOAuth2Token$) .build() { } @@ -433,15 +433,26 @@ __webpack_unused_export__ = ({ enumerable: true, get: function () { return smithyClient.Client; } }); -__webpack_unused_export__ = AccessDeniedException$1; +__webpack_unused_export__ = AccessDeniedException; +__webpack_unused_export__ = AccessDeniedException$; +__webpack_unused_export__ = AccessToken$; +__webpack_unused_export__ = CreateOAuth2Token$; exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand; -__webpack_unused_export__ = InternalServerException$1; +__webpack_unused_export__ = CreateOAuth2TokenRequest$; +__webpack_unused_export__ = CreateOAuth2TokenRequestBody$; +__webpack_unused_export__ = CreateOAuth2TokenResponse$; +__webpack_unused_export__ = CreateOAuth2TokenResponseBody$; +__webpack_unused_export__ = InternalServerException; +__webpack_unused_export__ = InternalServerException$; __webpack_unused_export__ = OAuth2ErrorCode; __webpack_unused_export__ = Signin; exports.SigninClient = SigninClient; -__webpack_unused_export__ = SigninServiceException$1; -__webpack_unused_export__ = TooManyRequestsError$1; -__webpack_unused_export__ = ValidationException$1; +__webpack_unused_export__ = SigninServiceException; +__webpack_unused_export__ = SigninServiceException$; +__webpack_unused_export__ = TooManyRequestsError; +__webpack_unused_export__ = TooManyRequestsError$; +__webpack_unused_export__ = ValidationException; +__webpack_unused_export__ = ValidationException$; /***/ }), @@ -543,7 +554,12 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.signin" }), + protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.signin", + version: "2023-01-01", + serviceTarget: "Signin", + }, serviceId: config?.serviceId ?? "Signin", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -558,7 +574,7 @@ exports.getRuntimeConfig = getRuntimeConfig; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/cleanup/956.index.js b/dist/cleanup/956.index.js index 4458440..0d18735 100644 --- a/dist/cleanup/956.index.js +++ b/dist/cleanup/956.index.js @@ -397,14 +397,14 @@ var schema = __webpack_require__(6890); var client = __webpack_require__(5152); var regionConfigResolver = __webpack_require__(6463); -let STSServiceException$1 = class STSServiceException extends smithyClient.ServiceException { +class STSServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, STSServiceException.prototype); } -}; +} -let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceException$1 { +class ExpiredTokenException extends STSServiceException { name = "ExpiredTokenException"; $fault = "client"; constructor(opts) { @@ -415,8 +415,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceExce }); Object.setPrototypeOf(this, ExpiredTokenException.prototype); } -}; -let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException extends STSServiceException$1 { +} +class MalformedPolicyDocumentException extends STSServiceException { name = "MalformedPolicyDocumentException"; $fault = "client"; constructor(opts) { @@ -427,8 +427,8 @@ let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException }); Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } -}; -let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extends STSServiceException$1 { +} +class PackedPolicyTooLargeException extends STSServiceException { name = "PackedPolicyTooLargeException"; $fault = "client"; constructor(opts) { @@ -439,8 +439,8 @@ let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extend }); Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); } -}; -let RegionDisabledException$1 = class RegionDisabledException extends STSServiceException$1 { +} +class RegionDisabledException extends STSServiceException { name = "RegionDisabledException"; $fault = "client"; constructor(opts) { @@ -451,8 +451,8 @@ let RegionDisabledException$1 = class RegionDisabledException extends STSService }); Object.setPrototypeOf(this, RegionDisabledException.prototype); } -}; -let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSServiceException$1 { +} +class IDPRejectedClaimException extends STSServiceException { name = "IDPRejectedClaimException"; $fault = "client"; constructor(opts) { @@ -463,8 +463,8 @@ let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSSer }); Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } -}; -let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extends STSServiceException$1 { +} +class InvalidIdentityTokenException extends STSServiceException { name = "InvalidIdentityTokenException"; $fault = "client"; constructor(opts) { @@ -475,8 +475,8 @@ let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extend }); Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } -}; -let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException extends STSServiceException$1 { +} +class IDPCommunicationErrorException extends STSServiceException { name = "IDPCommunicationErrorException"; $fault = "client"; constructor(opts) { @@ -487,7 +487,7 @@ let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException exte }); Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } -}; +} const _A = "Arn"; const _AKI = "AccessKeyId"; @@ -550,8 +550,8 @@ const _tLT = "tagListType"; const n0 = "com.amazonaws.sts"; var accessKeySecretType = [0, n0, _aKST, 8, 0]; var clientTokenType = [0, n0, _cTT, 8, 0]; -var AssumedRoleUser = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; -var AssumeRoleRequest = [ +var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; +var AssumeRoleRequest$ = [ 3, n0, _ARR, @@ -559,15 +559,15 @@ var AssumeRoleRequest = [ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC], [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], ]; -var AssumeRoleResponse = [ +var AssumeRoleResponse$ = [ 3, n0, _ARRs, 0, [_C, _ARU, _PPS, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0], ]; -var AssumeRoleWithWebIdentityRequest = [ +var AssumeRoleWithWebIdentityRequest$ = [ 3, n0, _ARWWIR, @@ -575,15 +575,15 @@ var AssumeRoleWithWebIdentityRequest = [ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS], [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithWebIdentityResponse = [ +var AssumeRoleWithWebIdentityResponse$ = [ 3, n0, _ARWWIRs, 0, [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI], - [[() => Credentials, 0], 0, () => AssumedRoleUser, 1, 0, 0, 0], + [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0], ]; -var Credentials = [ +var Credentials$ = [ 3, n0, _C, @@ -591,85 +591,85 @@ var Credentials = [ [_AKI, _SAK, _ST, _E], [0, [() => accessKeySecretType, 0], 0, 4], ]; -var ExpiredTokenException = [ +var ExpiredTokenException$ = [ -3, n0, _ETE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTokenException`, 400] }, + { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var IDPCommunicationErrorException = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var IDPCommunicationErrorException$ = [ -3, n0, _IDPCEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`IDPCommunicationError`, 400] }, + { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException, IDPCommunicationErrorException$1); -var IDPRejectedClaimException = [ +schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); +var IDPRejectedClaimException$ = [ -3, n0, _IDPRCE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`IDPRejectedClaim`, 403] }, + { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException, IDPRejectedClaimException$1); -var InvalidIdentityTokenException = [ +schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException); +var InvalidIdentityTokenException$ = [ -3, n0, _IITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidIdentityToken`, 400] }, + { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException, InvalidIdentityTokenException$1); -var MalformedPolicyDocumentException = [ +schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); +var MalformedPolicyDocumentException$ = [ -3, n0, _MPDE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`MalformedPolicyDocument`, 400] }, + { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException, MalformedPolicyDocumentException$1); -var PackedPolicyTooLargeException = [ +schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); +var PackedPolicyTooLargeException$ = [ -3, n0, _PPTLE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`PackedPolicyTooLarge`, 400] }, + { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException, PackedPolicyTooLargeException$1); -var PolicyDescriptorType = [3, n0, _PDT, 0, [_a], [0]]; -var ProvidedContext = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; -var RegionDisabledException = [ +schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); +var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]]; +var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]]; +var RegionDisabledException$ = [ -3, n0, _RDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`RegionDisabledException`, 403] }, + { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(RegionDisabledException, RegionDisabledException$1); -var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; -var STSServiceException = [-3, _s, "STSServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(STSServiceException, STSServiceException$1); -var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType]; -var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext]; -var tagListType = [1, n0, _tLT, 0, () => Tag]; -var AssumeRole = [9, n0, _AR, 0, () => AssumeRoleRequest, () => AssumeRoleResponse]; -var AssumeRoleWithWebIdentity = [ +schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException); +var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; +var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException); +var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$]; +var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$]; +var tagListType = [1, n0, _tLT, 0, () => Tag$]; +var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$]; +var AssumeRoleWithWebIdentity$ = [ 9, n0, _ARWWI, 0, - () => AssumeRoleWithWebIdentityRequest, - () => AssumeRoleWithWebIdentityResponse, + () => AssumeRoleWithWebIdentityRequest$, + () => AssumeRoleWithWebIdentityResponse$, ]; class AssumeRoleCommand extends smithyClient.Command @@ -680,7 +680,7 @@ class AssumeRoleCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}) .n("STSClient", "AssumeRoleCommand") - .sc(AssumeRole) + .sc(AssumeRole$) .build() { } @@ -692,7 +692,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}) .n("STSClient", "AssumeRoleWithWebIdentityCommand") - .sc(AssumeRoleWithWebIdentity) + .sc(AssumeRoleWithWebIdentity$) .build() { } @@ -828,17 +828,36 @@ Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithyClient.Command; } })); +exports.AssumeRole$ = AssumeRole$; exports.AssumeRoleCommand = AssumeRoleCommand; +exports.AssumeRoleRequest$ = AssumeRoleRequest$; +exports.AssumeRoleResponse$ = AssumeRoleResponse$; +exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$; exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; -exports.ExpiredTokenException = ExpiredTokenException$1; -exports.IDPCommunicationErrorException = IDPCommunicationErrorException$1; -exports.IDPRejectedClaimException = IDPRejectedClaimException$1; -exports.InvalidIdentityTokenException = InvalidIdentityTokenException$1; -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1; -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException$1; -exports.RegionDisabledException = RegionDisabledException$1; +exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$; +exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$; +exports.AssumedRoleUser$ = AssumedRoleUser$; +exports.Credentials$ = Credentials$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$; +exports.IDPRejectedClaimException = IDPRejectedClaimException; +exports.IDPRejectedClaimException$ = IDPRejectedClaimException$; +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$; +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$; +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$; +exports.PolicyDescriptorType$ = PolicyDescriptorType$; +exports.ProvidedContext$ = ProvidedContext$; +exports.RegionDisabledException = RegionDisabledException; +exports.RegionDisabledException$ = RegionDisabledException$; exports.STS = STS; -exports.STSServiceException = STSServiceException$1; +exports.STSServiceException = STSServiceException; +exports.STSServiceException$ = STSServiceException$; +exports.Tag$ = Tag$; exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; exports.getDefaultRoleAssumer = getDefaultRoleAssumer; exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; @@ -963,12 +982,13 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? - new protocols_1.AwsQueryProtocol({ - defaultNamespace: "com.amazonaws.sts", - xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", - version: "2011-06-15", - }), + protocol: config?.protocol ?? protocols_1.AwsQueryProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sts", + xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", + version: "2011-06-15", + serviceTarget: "AWSSecurityTokenServiceV20110615", + }, serviceId: config?.serviceId ?? "STS", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -1003,7 +1023,7 @@ exports.resolveRuntimeExtensions = resolveRuntimeExtensions; /***/ 9955: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.952.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.957.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}'); /***/ }) diff --git a/dist/cleanup/998.index.js b/dist/cleanup/998.index.js index 7387037..0f4ea19 100644 --- a/dist/cleanup/998.index.js +++ b/dist/cleanup/998.index.js @@ -232,14 +232,14 @@ class SSOClient extends smithyClient.Client { } } -let SSOServiceException$1 = class SSOServiceException extends smithyClient.ServiceException { +class SSOServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, SSOServiceException.prototype); } -}; +} -let InvalidRequestException$1 = class InvalidRequestException extends SSOServiceException$1 { +class InvalidRequestException extends SSOServiceException { name = "InvalidRequestException"; $fault = "client"; constructor(opts) { @@ -250,8 +250,8 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOService }); Object.setPrototypeOf(this, InvalidRequestException.prototype); } -}; -let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSOServiceException$1 { +} +class ResourceNotFoundException extends SSOServiceException { name = "ResourceNotFoundException"; $fault = "client"; constructor(opts) { @@ -262,8 +262,8 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SSOSer }); Object.setPrototypeOf(this, ResourceNotFoundException.prototype); } -}; -let TooManyRequestsException$1 = class TooManyRequestsException extends SSOServiceException$1 { +} +class TooManyRequestsException extends SSOServiceException { name = "TooManyRequestsException"; $fault = "client"; constructor(opts) { @@ -274,8 +274,8 @@ let TooManyRequestsException$1 = class TooManyRequestsException extends SSOServi }); Object.setPrototypeOf(this, TooManyRequestsException.prototype); } -}; -let UnauthorizedException$1 = class UnauthorizedException extends SSOServiceException$1 { +} +class UnauthorizedException extends SSOServiceException { name = "UnauthorizedException"; $fault = "client"; constructor(opts) { @@ -286,7 +286,7 @@ let UnauthorizedException$1 = class UnauthorizedException extends SSOServiceExce }); Object.setPrototypeOf(this, UnauthorizedException.prototype); } -}; +} const _AI = "AccountInfo"; const _ALT = "AccountListType"; @@ -342,8 +342,8 @@ const n0 = "com.amazonaws.sso"; var AccessTokenType = [0, n0, _ATT, 8, 0]; var SecretAccessKeyType = [0, n0, _SAKT, 8, 0]; var SessionTokenType = [0, n0, _STT, 8, 0]; -var AccountInfo = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]]; -var GetRoleCredentialsRequest = [ +var AccountInfo$ = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]]; +var GetRoleCredentialsRequest$ = [ 3, n0, _GRCR, @@ -355,10 +355,17 @@ var GetRoleCredentialsRequest = [ [() => AccessTokenType, { [_hH]: _xasbt }], ], ]; -var GetRoleCredentialsResponse = [3, n0, _GRCRe, 0, [_rC], [[() => RoleCredentials, 0]]]; -var InvalidRequestException = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1); -var ListAccountRolesRequest = [ +var GetRoleCredentialsResponse$ = [ + 3, + n0, + _GRCRe, + 0, + [_rC], + [[() => RoleCredentials$, 0]], +]; +var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException); +var ListAccountRolesRequest$ = [ 3, n0, _LARR, @@ -371,8 +378,8 @@ var ListAccountRolesRequest = [ [0, { [_hQ]: _ai }], ], ]; -var ListAccountRolesResponse = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]]; -var ListAccountsRequest = [ +var ListAccountRolesResponse$ = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]]; +var ListAccountsRequest$ = [ 3, n0, _LAR, @@ -384,11 +391,11 @@ var ListAccountsRequest = [ [() => AccessTokenType, { [_hH]: _xasbt }], ], ]; -var ListAccountsResponse = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]]; -var LogoutRequest = [3, n0, _LR, 0, [_aT], [[() => AccessTokenType, { [_hH]: _xasbt }]]]; -var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1); -var RoleCredentials = [ +var ListAccountsResponse$ = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]]; +var LogoutRequest$ = [3, n0, _LR, 0, [_aT], [[() => AccessTokenType, { [_hH]: _xasbt }]]]; +var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException); +var RoleCredentials$ = [ 3, n0, _RC, @@ -396,46 +403,46 @@ var RoleCredentials = [ [_aKI, _sAK, _sT, _ex], [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1], ]; -var RoleInfo = [3, n0, _RI, 0, [_rN, _aI], [0, 0]]; -var TooManyRequestsException = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1); -var UnauthorizedException = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]]; -schema.TypeRegistry.for(n0).registerError(UnauthorizedException, UnauthorizedException$1); +var RoleInfo$ = [3, n0, _RI, 0, [_rN, _aI], [0, 0]]; +var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException); +var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]]; +schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException); var __Unit = "unit"; -var SSOServiceException = [-3, _s, "SSOServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(SSOServiceException, SSOServiceException$1); -var AccountListType = [1, n0, _ALT, 0, () => AccountInfo]; -var RoleListType = [1, n0, _RLT, 0, () => RoleInfo]; -var GetRoleCredentials = [ +var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException); +var AccountListType = [1, n0, _ALT, 0, () => AccountInfo$]; +var RoleListType = [1, n0, _RLT, 0, () => RoleInfo$]; +var GetRoleCredentials$ = [ 9, n0, _GRC, { [_h]: ["GET", "/federation/credentials", 200] }, - () => GetRoleCredentialsRequest, - () => GetRoleCredentialsResponse, + () => GetRoleCredentialsRequest$, + () => GetRoleCredentialsResponse$, ]; -var ListAccountRoles = [ +var ListAccountRoles$ = [ 9, n0, _LARis, { [_h]: ["GET", "/assignment/roles", 200] }, - () => ListAccountRolesRequest, - () => ListAccountRolesResponse, + () => ListAccountRolesRequest$, + () => ListAccountRolesResponse$, ]; -var ListAccounts = [ +var ListAccounts$ = [ 9, n0, _LA, { [_h]: ["GET", "/assignment/accounts", 200] }, - () => ListAccountsRequest, - () => ListAccountsResponse, + () => ListAccountsRequest$, + () => ListAccountsResponse$, ]; -var Logout = [ +var Logout$ = [ 9, n0, _L, { [_h]: ["POST", "/logout", 200] }, - () => LogoutRequest, + () => LogoutRequest$, () => __Unit, ]; @@ -447,7 +454,7 @@ class GetRoleCredentialsCommand extends smithyClient.Command }) .s("SWBPortalService", "GetRoleCredentials", {}) .n("SSOClient", "GetRoleCredentialsCommand") - .sc(GetRoleCredentials) + .sc(GetRoleCredentials$) .build() { } @@ -459,7 +466,7 @@ class ListAccountRolesCommand extends smithyClient.Command }) .s("SWBPortalService", "ListAccountRoles", {}) .n("SSOClient", "ListAccountRolesCommand") - .sc(ListAccountRoles) + .sc(ListAccountRoles$) .build() { } @@ -471,7 +478,7 @@ class ListAccountsCommand extends smithyClient.Command }) .s("SWBPortalService", "ListAccounts", {}) .n("SSOClient", "ListAccountsCommand") - .sc(ListAccounts) + .sc(ListAccounts$) .build() { } @@ -483,7 +490,7 @@ class LogoutCommand extends smithyClient.Command }) .s("SWBPortalService", "Logout", {}) .n("SSOClient", "LogoutCommand") - .sc(Logout) + .sc(Logout$) .build() { } @@ -509,17 +516,36 @@ Object.defineProperty(exports, "__Client", ({ enumerable: true, get: function () { return smithyClient.Client; } })); +exports.AccountInfo$ = AccountInfo$; +exports.GetRoleCredentials$ = GetRoleCredentials$; exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; -exports.InvalidRequestException = InvalidRequestException$1; +exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$; +exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$; +exports.InvalidRequestException = InvalidRequestException; +exports.InvalidRequestException$ = InvalidRequestException$; +exports.ListAccountRoles$ = ListAccountRoles$; exports.ListAccountRolesCommand = ListAccountRolesCommand; +exports.ListAccountRolesRequest$ = ListAccountRolesRequest$; +exports.ListAccountRolesResponse$ = ListAccountRolesResponse$; +exports.ListAccounts$ = ListAccounts$; exports.ListAccountsCommand = ListAccountsCommand; +exports.ListAccountsRequest$ = ListAccountsRequest$; +exports.ListAccountsResponse$ = ListAccountsResponse$; +exports.Logout$ = Logout$; exports.LogoutCommand = LogoutCommand; -exports.ResourceNotFoundException = ResourceNotFoundException$1; +exports.LogoutRequest$ = LogoutRequest$; +exports.ResourceNotFoundException = ResourceNotFoundException; +exports.ResourceNotFoundException$ = ResourceNotFoundException$; +exports.RoleCredentials$ = RoleCredentials$; +exports.RoleInfo$ = RoleInfo$; exports.SSO = SSO; exports.SSOClient = SSOClient; -exports.SSOServiceException = SSOServiceException$1; -exports.TooManyRequestsException = TooManyRequestsException$1; -exports.UnauthorizedException = UnauthorizedException$1; +exports.SSOServiceException = SSOServiceException; +exports.SSOServiceException$ = SSOServiceException$; +exports.TooManyRequestsException = TooManyRequestsException; +exports.TooManyRequestsException$ = TooManyRequestsException$; +exports.UnauthorizedException = UnauthorizedException; +exports.UnauthorizedException$ = UnauthorizedException$; exports.paginateListAccountRoles = paginateListAccountRoles; exports.paginateListAccounts = paginateListAccounts; @@ -623,7 +649,12 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sso" }), + protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sso", + version: "2019-06-10", + serviceTarget: "SWBPortalService", + }, serviceId: config?.serviceId ?? "SSO", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -1329,7 +1360,7 @@ exports.nodeProvider = nodeProvider; /***/ 5188: /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.948.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.957.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); /***/ }) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 87bb7b0..73ebd01 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -3705,14 +3705,14 @@ var schema = __nccwpck_require__(6890); var client = __nccwpck_require__(5152); var regionConfigResolver = __nccwpck_require__(6463); -let STSServiceException$1 = class STSServiceException extends smithyClient.ServiceException { +class STSServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, STSServiceException.prototype); } -}; +} -let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceException$1 { +class ExpiredTokenException extends STSServiceException { name = "ExpiredTokenException"; $fault = "client"; constructor(opts) { @@ -3723,8 +3723,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceExce }); Object.setPrototypeOf(this, ExpiredTokenException.prototype); } -}; -let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException extends STSServiceException$1 { +} +class MalformedPolicyDocumentException extends STSServiceException { name = "MalformedPolicyDocumentException"; $fault = "client"; constructor(opts) { @@ -3735,8 +3735,8 @@ let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException }); Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } -}; -let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extends STSServiceException$1 { +} +class PackedPolicyTooLargeException extends STSServiceException { name = "PackedPolicyTooLargeException"; $fault = "client"; constructor(opts) { @@ -3747,8 +3747,8 @@ let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extend }); Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); } -}; -let RegionDisabledException$1 = class RegionDisabledException extends STSServiceException$1 { +} +class RegionDisabledException extends STSServiceException { name = "RegionDisabledException"; $fault = "client"; constructor(opts) { @@ -3759,8 +3759,8 @@ let RegionDisabledException$1 = class RegionDisabledException extends STSService }); Object.setPrototypeOf(this, RegionDisabledException.prototype); } -}; -let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSServiceException$1 { +} +class IDPRejectedClaimException extends STSServiceException { name = "IDPRejectedClaimException"; $fault = "client"; constructor(opts) { @@ -3771,8 +3771,8 @@ let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSSer }); Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } -}; -let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extends STSServiceException$1 { +} +class InvalidIdentityTokenException extends STSServiceException { name = "InvalidIdentityTokenException"; $fault = "client"; constructor(opts) { @@ -3783,8 +3783,8 @@ let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extend }); Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } -}; -let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException extends STSServiceException$1 { +} +class IDPCommunicationErrorException extends STSServiceException { name = "IDPCommunicationErrorException"; $fault = "client"; constructor(opts) { @@ -3795,8 +3795,8 @@ let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException exte }); Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } -}; -let InvalidAuthorizationMessageException$1 = class InvalidAuthorizationMessageException extends STSServiceException$1 { +} +class InvalidAuthorizationMessageException extends STSServiceException { name = "InvalidAuthorizationMessageException"; $fault = "client"; constructor(opts) { @@ -3807,8 +3807,8 @@ let InvalidAuthorizationMessageException$1 = class InvalidAuthorizationMessageEx }); Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); } -}; -let ExpiredTradeInTokenException$1 = class ExpiredTradeInTokenException extends STSServiceException$1 { +} +class ExpiredTradeInTokenException extends STSServiceException { name = "ExpiredTradeInTokenException"; $fault = "client"; constructor(opts) { @@ -3819,8 +3819,8 @@ let ExpiredTradeInTokenException$1 = class ExpiredTradeInTokenException extends }); Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype); } -}; -let JWTPayloadSizeExceededException$1 = class JWTPayloadSizeExceededException extends STSServiceException$1 { +} +class JWTPayloadSizeExceededException extends STSServiceException { name = "JWTPayloadSizeExceededException"; $fault = "client"; constructor(opts) { @@ -3831,8 +3831,8 @@ let JWTPayloadSizeExceededException$1 = class JWTPayloadSizeExceededException ex }); Object.setPrototypeOf(this, JWTPayloadSizeExceededException.prototype); } -}; -let OutboundWebIdentityFederationDisabledException$1 = class OutboundWebIdentityFederationDisabledException extends STSServiceException$1 { +} +class OutboundWebIdentityFederationDisabledException extends STSServiceException { name = "OutboundWebIdentityFederationDisabledException"; $fault = "client"; constructor(opts) { @@ -3843,8 +3843,8 @@ let OutboundWebIdentityFederationDisabledException$1 = class OutboundWebIdentity }); Object.setPrototypeOf(this, OutboundWebIdentityFederationDisabledException.prototype); } -}; -let SessionDurationEscalationException$1 = class SessionDurationEscalationException extends STSServiceException$1 { +} +class SessionDurationEscalationException extends STSServiceException { name = "SessionDurationEscalationException"; $fault = "client"; constructor(opts) { @@ -3855,7 +3855,7 @@ let SessionDurationEscalationException$1 = class SessionDurationEscalationExcept }); Object.setPrototypeOf(this, SessionDurationEscalationException.prototype); } -}; +} const _A = "Arn"; const _AKI = "AccessKeyId"; @@ -3974,8 +3974,8 @@ var clientTokenType = [0, n0, _cTT, 8, 0]; var SAMLAssertionType = [0, n0, _SAMLAT, 8, 0]; var tradeInTokenType = [0, n0, _tITT, 8, 0]; var webIdentityTokenType = [0, n0, _wITT, 8, 0]; -var AssumedRoleUser = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; -var AssumeRoleRequest = [ +var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; +var AssumeRoleRequest$ = [ 3, n0, _ARR, @@ -3983,15 +3983,15 @@ var AssumeRoleRequest = [ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC], [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], ]; -var AssumeRoleResponse = [ +var AssumeRoleResponse$ = [ 3, n0, _ARRs, 0, [_C, _ARU, _PPS, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0], ]; -var AssumeRoleWithSAMLRequest = [ +var AssumeRoleWithSAMLRequest$ = [ 3, n0, _ARWSAMLR, @@ -3999,15 +3999,15 @@ var AssumeRoleWithSAMLRequest = [ [_RA, _PAr, _SAMLA, _PA, _P, _DS], [0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithSAMLResponse = [ +var AssumeRoleWithSAMLResponse$ = [ 3, n0, _ARWSAMLRs, 0, [_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0, 0, 0, 0, 0, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0], ]; -var AssumeRoleWithWebIdentityRequest = [ +var AssumeRoleWithWebIdentityRequest$ = [ 3, n0, _ARWWIR, @@ -4015,24 +4015,24 @@ var AssumeRoleWithWebIdentityRequest = [ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS], [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithWebIdentityResponse = [ +var AssumeRoleWithWebIdentityResponse$ = [ 3, n0, _ARWWIRs, 0, [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI], - [[() => Credentials, 0], 0, () => AssumedRoleUser, 1, 0, 0, 0], + [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0], ]; -var AssumeRootRequest = [ +var AssumeRootRequest$ = [ 3, n0, _ARRss, 0, [_TP, _TPA, _DS], - [0, () => PolicyDescriptorType, 1], + [0, () => PolicyDescriptorType$, 1], ]; -var AssumeRootResponse = [3, n0, _ARRssu, 0, [_C, _SI], [[() => Credentials, 0], 0]]; -var Credentials = [ +var AssumeRootResponse$ = [3, n0, _ARRssu, 0, [_C, _SI], [[() => Credentials$, 0], 0]]; +var Credentials$ = [ 3, n0, _C, @@ -4040,32 +4040,32 @@ var Credentials = [ [_AKI, _SAK, _STe, _E], [0, [() => accessKeySecretType, 0], 0, 4], ]; -var DecodeAuthorizationMessageRequest = [3, n0, _DAMR, 0, [_EM], [0]]; -var DecodeAuthorizationMessageResponse = [3, n0, _DAMRe, 0, [_DM], [0]]; -var ExpiredTokenException = [ +var DecodeAuthorizationMessageRequest$ = [3, n0, _DAMR, 0, [_EM], [0]]; +var DecodeAuthorizationMessageResponse$ = [3, n0, _DAMRe, 0, [_DM], [0]]; +var ExpiredTokenException$ = [ -3, n0, _ETE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTokenException`, 400] }, + { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var ExpiredTradeInTokenException = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var ExpiredTradeInTokenException$ = [ -3, n0, _ETITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTradeInTokenException`, 400] }, + { [_aQE]: [`ExpiredTradeInTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTradeInTokenException, ExpiredTradeInTokenException$1); -var FederatedUser = [3, n0, _FU, 0, [_FUI, _A], [0, 0]]; -var GetAccessKeyInfoRequest = [3, n0, _GAKIR, 0, [_AKI], [0]]; -var GetAccessKeyInfoResponse = [3, n0, _GAKIRe, 0, [_Ac], [0]]; -var GetCallerIdentityRequest = [3, n0, _GCIR, 0, [], []]; -var GetCallerIdentityResponse = [3, n0, _GCIRe, 0, [_UI, _Ac, _A], [0, 0, 0]]; -var GetDelegatedAccessTokenRequest = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTradeInTokenException$, ExpiredTradeInTokenException); +var FederatedUser$ = [3, n0, _FU, 0, [_FUI, _A], [0, 0]]; +var GetAccessKeyInfoRequest$ = [3, n0, _GAKIR, 0, [_AKI], [0]]; +var GetAccessKeyInfoResponse$ = [3, n0, _GAKIRe, 0, [_Ac], [0]]; +var GetCallerIdentityRequest$ = [3, n0, _GCIR, 0, [], []]; +var GetCallerIdentityResponse$ = [3, n0, _GCIRe, 0, [_UI, _Ac, _A], [0, 0, 0]]; +var GetDelegatedAccessTokenRequest$ = [ 3, n0, _GDATR, @@ -4073,15 +4073,15 @@ var GetDelegatedAccessTokenRequest = [ [_TIT], [[() => tradeInTokenType, 0]], ]; -var GetDelegatedAccessTokenResponse = [ +var GetDelegatedAccessTokenResponse$ = [ 3, n0, _GDATRe, 0, [_C, _PPS, _AP], - [[() => Credentials, 0], 1, 0], + [[() => Credentials$, 0], 1, 0], ]; -var GetFederationTokenRequest = [ +var GetFederationTokenRequest$ = [ 3, n0, _GFTR, @@ -4089,17 +4089,17 @@ var GetFederationTokenRequest = [ [_N, _P, _PA, _DS, _T], [0, 0, () => policyDescriptorListType, 1, () => tagListType], ]; -var GetFederationTokenResponse = [ +var GetFederationTokenResponse$ = [ 3, n0, _GFTRe, 0, [_C, _FU, _PPS], - [[() => Credentials, 0], () => FederatedUser, 1], + [[() => Credentials$, 0], () => FederatedUser$, 1], ]; -var GetSessionTokenRequest = [3, n0, _GSTR, 0, [_DS, _SN, _TC], [1, 0, 0]]; -var GetSessionTokenResponse = [3, n0, _GSTRe, 0, [_C], [[() => Credentials, 0]]]; -var GetWebIdentityTokenRequest = [ +var GetSessionTokenRequest$ = [3, n0, _GSTR, 0, [_DS, _SN, _TC], [1, 0, 0]]; +var GetSessionTokenResponse$ = [3, n0, _GSTRe, 0, [_C], [[() => Credentials$, 0]]]; +var GetWebIdentityTokenRequest$ = [ 3, n0, _GWITR, @@ -4107,7 +4107,7 @@ var GetWebIdentityTokenRequest = [ [_Au, _DS, _SA, _T], [64 | 0, 1, 0, () => tagListType], ]; -var GetWebIdentityTokenResponse = [ +var GetWebIdentityTokenResponse$ = [ 3, n0, _GWITRe, @@ -4115,177 +4115,177 @@ var GetWebIdentityTokenResponse = [ [_WIT, _E], [[() => webIdentityTokenType, 0], 4], ]; -var IDPCommunicationErrorException = [ +var IDPCommunicationErrorException$ = [ -3, n0, _IDPCEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`IDPCommunicationError`, 400] }, + { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException, IDPCommunicationErrorException$1); -var IDPRejectedClaimException = [ +schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); +var IDPRejectedClaimException$ = [ -3, n0, _IDPRCE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`IDPRejectedClaim`, 403] }, + { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException, IDPRejectedClaimException$1); -var InvalidAuthorizationMessageException = [ +schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException); +var InvalidAuthorizationMessageException$ = [ -3, n0, _IAME, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidAuthorizationMessageException`, 400] }, + { [_aQE]: [`InvalidAuthorizationMessageException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidAuthorizationMessageException, InvalidAuthorizationMessageException$1); -var InvalidIdentityTokenException = [ +schema.TypeRegistry.for(n0).registerError(InvalidAuthorizationMessageException$, InvalidAuthorizationMessageException); +var InvalidIdentityTokenException$ = [ -3, n0, _IITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidIdentityToken`, 400] }, + { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException, InvalidIdentityTokenException$1); -var JWTPayloadSizeExceededException = [ +schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); +var JWTPayloadSizeExceededException$ = [ -3, n0, _JWTPSEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`JWTPayloadSizeExceededException`, 400] }, + { [_aQE]: [`JWTPayloadSizeExceededException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(JWTPayloadSizeExceededException, JWTPayloadSizeExceededException$1); -var MalformedPolicyDocumentException = [ +schema.TypeRegistry.for(n0).registerError(JWTPayloadSizeExceededException$, JWTPayloadSizeExceededException); +var MalformedPolicyDocumentException$ = [ -3, n0, _MPDE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`MalformedPolicyDocument`, 400] }, + { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException, MalformedPolicyDocumentException$1); -var OutboundWebIdentityFederationDisabledException = [ +schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); +var OutboundWebIdentityFederationDisabledException$ = [ -3, n0, _OWIFDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`OutboundWebIdentityFederationDisabledException`, 403] }, + { [_aQE]: [`OutboundWebIdentityFederationDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(OutboundWebIdentityFederationDisabledException, OutboundWebIdentityFederationDisabledException$1); -var PackedPolicyTooLargeException = [ +schema.TypeRegistry.for(n0).registerError(OutboundWebIdentityFederationDisabledException$, OutboundWebIdentityFederationDisabledException); +var PackedPolicyTooLargeException$ = [ -3, n0, _PPTLE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`PackedPolicyTooLarge`, 400] }, + { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException, PackedPolicyTooLargeException$1); -var PolicyDescriptorType = [3, n0, _PDT, 0, [_a], [0]]; -var ProvidedContext = [3, n0, _PCr, 0, [_PAro, _CA], [0, 0]]; -var RegionDisabledException = [ +schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); +var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]]; +var ProvidedContext$ = [3, n0, _PCr, 0, [_PAro, _CA], [0, 0]]; +var RegionDisabledException$ = [ -3, n0, _RDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`RegionDisabledException`, 403] }, + { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(RegionDisabledException, RegionDisabledException$1); -var SessionDurationEscalationException = [ +schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException); +var SessionDurationEscalationException$ = [ -3, n0, _SDEE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`SessionDurationEscalationException`, 403] }, + { [_aQE]: [`SessionDurationEscalationException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(SessionDurationEscalationException, SessionDurationEscalationException$1); -var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; -var STSServiceException = [-3, _s, "STSServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(STSServiceException, STSServiceException$1); -var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType]; -var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext]; -var tagListType = [1, n0, _tLT, 0, () => Tag]; -var AssumeRole = [9, n0, _AR, 0, () => AssumeRoleRequest, () => AssumeRoleResponse]; -var AssumeRoleWithSAML = [ +schema.TypeRegistry.for(n0).registerError(SessionDurationEscalationException$, SessionDurationEscalationException); +var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; +var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException); +var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$]; +var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$]; +var tagListType = [1, n0, _tLT, 0, () => Tag$]; +var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$]; +var AssumeRoleWithSAML$ = [ 9, n0, _ARWSAML, 0, - () => AssumeRoleWithSAMLRequest, - () => AssumeRoleWithSAMLResponse, + () => AssumeRoleWithSAMLRequest$, + () => AssumeRoleWithSAMLResponse$, ]; -var AssumeRoleWithWebIdentity = [ +var AssumeRoleWithWebIdentity$ = [ 9, n0, _ARWWI, 0, - () => AssumeRoleWithWebIdentityRequest, - () => AssumeRoleWithWebIdentityResponse, + () => AssumeRoleWithWebIdentityRequest$, + () => AssumeRoleWithWebIdentityResponse$, ]; -var AssumeRoot = [9, n0, _ARs, 0, () => AssumeRootRequest, () => AssumeRootResponse]; -var DecodeAuthorizationMessage = [ +var AssumeRoot$ = [9, n0, _ARs, 0, () => AssumeRootRequest$, () => AssumeRootResponse$]; +var DecodeAuthorizationMessage$ = [ 9, n0, _DAM, 0, - () => DecodeAuthorizationMessageRequest, - () => DecodeAuthorizationMessageResponse, + () => DecodeAuthorizationMessageRequest$, + () => DecodeAuthorizationMessageResponse$, ]; -var GetAccessKeyInfo = [ +var GetAccessKeyInfo$ = [ 9, n0, _GAKI, 0, - () => GetAccessKeyInfoRequest, - () => GetAccessKeyInfoResponse, + () => GetAccessKeyInfoRequest$, + () => GetAccessKeyInfoResponse$, ]; -var GetCallerIdentity = [ +var GetCallerIdentity$ = [ 9, n0, _GCI, 0, - () => GetCallerIdentityRequest, - () => GetCallerIdentityResponse, + () => GetCallerIdentityRequest$, + () => GetCallerIdentityResponse$, ]; -var GetDelegatedAccessToken = [ +var GetDelegatedAccessToken$ = [ 9, n0, _GDAT, 0, - () => GetDelegatedAccessTokenRequest, - () => GetDelegatedAccessTokenResponse, + () => GetDelegatedAccessTokenRequest$, + () => GetDelegatedAccessTokenResponse$, ]; -var GetFederationToken = [ +var GetFederationToken$ = [ 9, n0, _GFT, 0, - () => GetFederationTokenRequest, - () => GetFederationTokenResponse, + () => GetFederationTokenRequest$, + () => GetFederationTokenResponse$, ]; -var GetSessionToken = [ +var GetSessionToken$ = [ 9, n0, _GST, 0, - () => GetSessionTokenRequest, - () => GetSessionTokenResponse, + () => GetSessionTokenRequest$, + () => GetSessionTokenResponse$, ]; -var GetWebIdentityToken = [ +var GetWebIdentityToken$ = [ 9, n0, _GWIT, 0, - () => GetWebIdentityTokenRequest, - () => GetWebIdentityTokenResponse, + () => GetWebIdentityTokenRequest$, + () => GetWebIdentityTokenResponse$, ]; class AssumeRoleCommand extends smithyClient.Command @@ -4296,7 +4296,7 @@ class AssumeRoleCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}) .n("STSClient", "AssumeRoleCommand") - .sc(AssumeRole) + .sc(AssumeRole$) .build() { } @@ -4308,7 +4308,7 @@ class AssumeRoleWithSAMLCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}) .n("STSClient", "AssumeRoleWithSAMLCommand") - .sc(AssumeRoleWithSAML) + .sc(AssumeRoleWithSAML$) .build() { } @@ -4320,7 +4320,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}) .n("STSClient", "AssumeRoleWithWebIdentityCommand") - .sc(AssumeRoleWithWebIdentity) + .sc(AssumeRoleWithWebIdentity$) .build() { } @@ -4332,7 +4332,7 @@ class AssumeRootCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {}) .n("STSClient", "AssumeRootCommand") - .sc(AssumeRoot) + .sc(AssumeRoot$) .build() { } @@ -4344,7 +4344,7 @@ class DecodeAuthorizationMessageCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}) .n("STSClient", "DecodeAuthorizationMessageCommand") - .sc(DecodeAuthorizationMessage) + .sc(DecodeAuthorizationMessage$) .build() { } @@ -4356,7 +4356,7 @@ class GetAccessKeyInfoCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}) .n("STSClient", "GetAccessKeyInfoCommand") - .sc(GetAccessKeyInfo) + .sc(GetAccessKeyInfo$) .build() { } @@ -4368,7 +4368,7 @@ class GetCallerIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}) .n("STSClient", "GetCallerIdentityCommand") - .sc(GetCallerIdentity) + .sc(GetCallerIdentity$) .build() { } @@ -4380,7 +4380,7 @@ class GetDelegatedAccessTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {}) .n("STSClient", "GetDelegatedAccessTokenCommand") - .sc(GetDelegatedAccessToken) + .sc(GetDelegatedAccessToken$) .build() { } @@ -4392,7 +4392,7 @@ class GetFederationTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}) .n("STSClient", "GetFederationTokenCommand") - .sc(GetFederationToken) + .sc(GetFederationToken$) .build() { } @@ -4404,7 +4404,7 @@ class GetSessionTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}) .n("STSClient", "GetSessionTokenCommand") - .sc(GetSessionToken) + .sc(GetSessionToken$) .build() { } @@ -4416,7 +4416,7 @@ class GetWebIdentityTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetWebIdentityToken", {}) .n("STSClient", "GetWebIdentityTokenCommand") - .sc(GetWebIdentityToken) + .sc(GetWebIdentityToken$) .build() { } @@ -4561,31 +4561,83 @@ Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithyClient.Command; } })); +exports.AssumeRole$ = AssumeRole$; exports.AssumeRoleCommand = AssumeRoleCommand; +exports.AssumeRoleRequest$ = AssumeRoleRequest$; +exports.AssumeRoleResponse$ = AssumeRoleResponse$; +exports.AssumeRoleWithSAML$ = AssumeRoleWithSAML$; exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; +exports.AssumeRoleWithSAMLRequest$ = AssumeRoleWithSAMLRequest$; +exports.AssumeRoleWithSAMLResponse$ = AssumeRoleWithSAMLResponse$; +exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$; exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; +exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$; +exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$; +exports.AssumeRoot$ = AssumeRoot$; exports.AssumeRootCommand = AssumeRootCommand; +exports.AssumeRootRequest$ = AssumeRootRequest$; +exports.AssumeRootResponse$ = AssumeRootResponse$; +exports.AssumedRoleUser$ = AssumedRoleUser$; +exports.Credentials$ = Credentials$; +exports.DecodeAuthorizationMessage$ = DecodeAuthorizationMessage$; exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; -exports.ExpiredTokenException = ExpiredTokenException$1; -exports.ExpiredTradeInTokenException = ExpiredTradeInTokenException$1; +exports.DecodeAuthorizationMessageRequest$ = DecodeAuthorizationMessageRequest$; +exports.DecodeAuthorizationMessageResponse$ = DecodeAuthorizationMessageResponse$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.ExpiredTradeInTokenException = ExpiredTradeInTokenException; +exports.ExpiredTradeInTokenException$ = ExpiredTradeInTokenException$; +exports.FederatedUser$ = FederatedUser$; +exports.GetAccessKeyInfo$ = GetAccessKeyInfo$; exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; +exports.GetAccessKeyInfoRequest$ = GetAccessKeyInfoRequest$; +exports.GetAccessKeyInfoResponse$ = GetAccessKeyInfoResponse$; +exports.GetCallerIdentity$ = GetCallerIdentity$; exports.GetCallerIdentityCommand = GetCallerIdentityCommand; +exports.GetCallerIdentityRequest$ = GetCallerIdentityRequest$; +exports.GetCallerIdentityResponse$ = GetCallerIdentityResponse$; +exports.GetDelegatedAccessToken$ = GetDelegatedAccessToken$; exports.GetDelegatedAccessTokenCommand = GetDelegatedAccessTokenCommand; +exports.GetDelegatedAccessTokenRequest$ = GetDelegatedAccessTokenRequest$; +exports.GetDelegatedAccessTokenResponse$ = GetDelegatedAccessTokenResponse$; +exports.GetFederationToken$ = GetFederationToken$; exports.GetFederationTokenCommand = GetFederationTokenCommand; +exports.GetFederationTokenRequest$ = GetFederationTokenRequest$; +exports.GetFederationTokenResponse$ = GetFederationTokenResponse$; +exports.GetSessionToken$ = GetSessionToken$; exports.GetSessionTokenCommand = GetSessionTokenCommand; +exports.GetSessionTokenRequest$ = GetSessionTokenRequest$; +exports.GetSessionTokenResponse$ = GetSessionTokenResponse$; +exports.GetWebIdentityToken$ = GetWebIdentityToken$; exports.GetWebIdentityTokenCommand = GetWebIdentityTokenCommand; -exports.IDPCommunicationErrorException = IDPCommunicationErrorException$1; -exports.IDPRejectedClaimException = IDPRejectedClaimException$1; -exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException$1; -exports.InvalidIdentityTokenException = InvalidIdentityTokenException$1; -exports.JWTPayloadSizeExceededException = JWTPayloadSizeExceededException$1; -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1; -exports.OutboundWebIdentityFederationDisabledException = OutboundWebIdentityFederationDisabledException$1; -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException$1; -exports.RegionDisabledException = RegionDisabledException$1; +exports.GetWebIdentityTokenRequest$ = GetWebIdentityTokenRequest$; +exports.GetWebIdentityTokenResponse$ = GetWebIdentityTokenResponse$; +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$; +exports.IDPRejectedClaimException = IDPRejectedClaimException; +exports.IDPRejectedClaimException$ = IDPRejectedClaimException$; +exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; +exports.InvalidAuthorizationMessageException$ = InvalidAuthorizationMessageException$; +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$; +exports.JWTPayloadSizeExceededException = JWTPayloadSizeExceededException; +exports.JWTPayloadSizeExceededException$ = JWTPayloadSizeExceededException$; +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$; +exports.OutboundWebIdentityFederationDisabledException = OutboundWebIdentityFederationDisabledException; +exports.OutboundWebIdentityFederationDisabledException$ = OutboundWebIdentityFederationDisabledException$; +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$; +exports.PolicyDescriptorType$ = PolicyDescriptorType$; +exports.ProvidedContext$ = ProvidedContext$; +exports.RegionDisabledException = RegionDisabledException; +exports.RegionDisabledException$ = RegionDisabledException$; exports.STS = STS; -exports.STSServiceException = STSServiceException$1; -exports.SessionDurationEscalationException = SessionDurationEscalationException$1; +exports.STSServiceException = STSServiceException; +exports.STSServiceException$ = STSServiceException$; +exports.SessionDurationEscalationException = SessionDurationEscalationException; +exports.SessionDurationEscalationException$ = SessionDurationEscalationException$; +exports.Tag$ = Tag$; exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; exports.getDefaultRoleAssumer = getDefaultRoleAssumer; exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; @@ -4714,12 +4766,13 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? - new protocols_1.AwsQueryProtocol({ - defaultNamespace: "com.amazonaws.sts", - xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", - version: "2011-06-15", - }), + protocol: config?.protocol ?? protocols_1.AwsQueryProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sts", + xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", + version: "2011-06-15", + serviceTarget: "AWSSecurityTokenServiceV20110615", + }, serviceId: config?.serviceId ?? "STS", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -5362,6 +5415,30 @@ function* deserializingStructIterator(ns, sourceObject, nameTrait) { } } +class UnionSerde { + from; + to; + keys; + constructor(from, to) { + this.from = from; + this.to = to; + this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type")); + } + mark(key) { + this.keys.delete(key); + } + hasUnknown() { + return this.keys.size === 1 && Object.keys(this.to).length === 0; + } + writeUnknown() { + if (this.hasUnknown()) { + const k = this.keys.values().next().value; + const v = this.from[k]; + this.to.$unknown = [k, v]; + } + } +} + function jsonReviver(key, value, context) { if (context?.source) { const numericString = context.source; @@ -5453,13 +5530,23 @@ class JsonShapeDeserializer extends SerdeContextConfig { const ns = schema.NormalizedSchema.of(schema$1); if (isObject) { if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); const out = {}; + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, out); + } for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) { const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; - const deserializedValue = this._read(memberSchema, value[fromKey]); - if (deserializedValue != null) { - out[memberName] = deserializedValue; + if (union) { + unionSerde.mark(fromKey); } + if (value[fromKey] != null) { + out[memberName] = this._read(memberSchema, value[fromKey]); + } + } + if (union) { + unionSerde.writeUnknown(); } return out; } @@ -5648,6 +5735,13 @@ class JsonShapeSerializer extends SerdeContextConfig { out[targetKey] = serializableValue; } } + if (ns.isUnionSchema() && Object.keys(out).length === 0) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + out[k] = this._write(15, v); + } + } return out; } if (Array.isArray(value) && ns.isListSchema()) { @@ -6054,15 +6148,26 @@ class XmlShapeDeserializer extends SerdeContextConfig { return buffer; } if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, buffer); + } for (const [memberName, memberSchema] of ns.structIterator()) { const memberTraits = memberSchema.getMergedTraits(); const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName(); + if (union) { + unionSerde.mark(xmlObjectKey); + } if (value[xmlObjectKey] != null) { buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); } } + if (union) { + unionSerde.writeUnknown(); + } return buffer; } if (ns.isDocumentSchema()) { @@ -6166,7 +6271,22 @@ class QueryShapeSerializer extends SerdeContextConfig { } } else if (ns.isDocumentSchema()) { - throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`); + if (Array.isArray(value)) { + this.write(64 | 15, value, prefix); + } + else if (value instanceof Date) { + this.write(4, value, prefix); + } + else if (value instanceof Uint8Array) { + this.write(21, value, prefix); + } + else if (value && typeof value === "object") { + this.write(128 | 15, value, prefix); + } + else { + this.writeKey(prefix); + this.writeValue(String(value)); + } } else if (ns.isListSchema()) { if (Array.isArray(value)) { @@ -6214,6 +6334,7 @@ class QueryShapeSerializer extends SerdeContextConfig { } else if (ns.isStructSchema()) { if (value && typeof value === "object") { + let didWriteMember = false; for (const [memberName, member] of serializingStructIterator(ns, value)) { if (value[memberName] == null && !member.isIdempotencyToken()) { continue; @@ -6221,6 +6342,15 @@ class QueryShapeSerializer extends SerdeContextConfig { const suffix = this.getKey(memberName, member.getMergedTraits().xmlName); const key = `${prefix}${suffix}`; this.write(member, value[memberName], key); + didWriteMember = true; + } + if (!didWriteMember && ns.isUnionSchema()) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + const key = `${prefix}${k}`; + this.write(15, v, key); + } } } } @@ -6529,6 +6659,22 @@ class XmlShapeSerializer extends SerdeContextConfig { } } } + const { $unknown } = value; + if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) { + const [k, v] = $unknown; + const node = xmlBuilder.XmlNode.of(k); + if (typeof v !== "string") { + if (value instanceof xmlBuilder.XmlNode || value instanceof xmlBuilder.XmlText) { + structXmlNode.addChildNode(value); + } + else { + throw new Error(`@aws-sdk - $unknown union member in XML requires ` + + `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`); + } + } + this.writeSimpleInto(0, v, node, xmlns); + structXmlNode.addChildNode(node); + } if (xmlns) { structXmlNode.addAttribute(xmlnsAttr, xmlns); } @@ -7199,6 +7345,30 @@ function* deserializingStructIterator(ns, sourceObject, nameTrait) { } } +class UnionSerde { + from; + to; + keys; + constructor(from, to) { + this.from = from; + this.to = to; + this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type")); + } + mark(key) { + this.keys.delete(key); + } + hasUnknown() { + return this.keys.size === 1 && Object.keys(this.to).length === 0; + } + writeUnknown() { + if (this.hasUnknown()) { + const k = this.keys.values().next().value; + const v = this.from[k]; + this.to.$unknown = [k, v]; + } + } +} + function jsonReviver(key, value, context) { if (context?.source) { const numericString = context.source; @@ -7290,13 +7460,23 @@ class JsonShapeDeserializer extends SerdeContextConfig { const ns = schema.NormalizedSchema.of(schema$1); if (isObject) { if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); const out = {}; + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, out); + } for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) { const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; - const deserializedValue = this._read(memberSchema, value[fromKey]); - if (deserializedValue != null) { - out[memberName] = deserializedValue; + if (union) { + unionSerde.mark(fromKey); } + if (value[fromKey] != null) { + out[memberName] = this._read(memberSchema, value[fromKey]); + } + } + if (union) { + unionSerde.writeUnknown(); } return out; } @@ -7485,6 +7665,13 @@ class JsonShapeSerializer extends SerdeContextConfig { out[targetKey] = serializableValue; } } + if (ns.isUnionSchema() && Object.keys(out).length === 0) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + out[k] = this._write(15, v); + } + } return out; } if (Array.isArray(value) && ns.isListSchema()) { @@ -7891,15 +8078,26 @@ class XmlShapeDeserializer extends SerdeContextConfig { return buffer; } if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, buffer); + } for (const [memberName, memberSchema] of ns.structIterator()) { const memberTraits = memberSchema.getMergedTraits(); const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName(); + if (union) { + unionSerde.mark(xmlObjectKey); + } if (value[xmlObjectKey] != null) { buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); } } + if (union) { + unionSerde.writeUnknown(); + } return buffer; } if (ns.isDocumentSchema()) { @@ -8003,7 +8201,22 @@ class QueryShapeSerializer extends SerdeContextConfig { } } else if (ns.isDocumentSchema()) { - throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`); + if (Array.isArray(value)) { + this.write(64 | 15, value, prefix); + } + else if (value instanceof Date) { + this.write(4, value, prefix); + } + else if (value instanceof Uint8Array) { + this.write(21, value, prefix); + } + else if (value && typeof value === "object") { + this.write(128 | 15, value, prefix); + } + else { + this.writeKey(prefix); + this.writeValue(String(value)); + } } else if (ns.isListSchema()) { if (Array.isArray(value)) { @@ -8051,6 +8264,7 @@ class QueryShapeSerializer extends SerdeContextConfig { } else if (ns.isStructSchema()) { if (value && typeof value === "object") { + let didWriteMember = false; for (const [memberName, member] of serializingStructIterator(ns, value)) { if (value[memberName] == null && !member.isIdempotencyToken()) { continue; @@ -8058,6 +8272,15 @@ class QueryShapeSerializer extends SerdeContextConfig { const suffix = this.getKey(memberName, member.getMergedTraits().xmlName); const key = `${prefix}${suffix}`; this.write(member, value[memberName], key); + didWriteMember = true; + } + if (!didWriteMember && ns.isUnionSchema()) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + const key = `${prefix}${k}`; + this.write(15, v, key); + } } } } @@ -8366,6 +8589,22 @@ class XmlShapeSerializer extends SerdeContextConfig { } } } + const { $unknown } = value; + if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) { + const [k, v] = $unknown; + const node = xmlBuilder.XmlNode.of(k); + if (typeof v !== "string") { + if (value instanceof xmlBuilder.XmlNode || value instanceof xmlBuilder.XmlText) { + structXmlNode.addChildNode(value); + } + else { + throw new Error(`@aws-sdk - $unknown union member in XML requires ` + + `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`); + } + } + this.writeSimpleInto(0, v, node, xmlns); + structXmlNode.addChildNode(node); + } if (xmlns) { structXmlNode.addAttribute(xmlnsAttr, xmlns); } @@ -9276,8 +9515,8 @@ exports.userAgentMiddleware = userAgentMiddleware; "use strict"; -var configResolver = __nccwpck_require__(9316); var stsRegionDefaultResolver = __nccwpck_require__(5779); +var configResolver = __nccwpck_require__(9316); const getAwsRegionExtensionConfiguration = (runtimeConfig) => { return { @@ -11537,6 +11776,11 @@ class CborShapeSerializer extends protocols.SerdeContext { newObject[key] = value; } } + const isUnion = ns.isUnionSchema(); + if (isUnion && Array.isArray(sourceObject.$unknown)) { + const [k, v] = sourceObject.$unknown; + newObject[k] = v; + } } else if (ns.isDocumentSchema()) { for (const key of Object.keys(sourceObject)) { @@ -11621,11 +11865,22 @@ class CborShapeDeserializer extends protocols.SerdeContext { } } else if (ns.isStructSchema()) { + const isUnion = ns.isUnionSchema(); + let keys; + if (isUnion) { + keys = new Set(Object.keys(value).filter((k) => k !== "__type")); + } for (const [key, memberSchema] of ns.structIterator()) { - const v = this.readValue(memberSchema, value[key]); - if (v != null) { - newObject[key] = v; + if (isUnion) { + keys.delete(key); } + if (value[key] != null) { + newObject[key] = this.readValue(memberSchema, value[key]); + } + } + if (isUnion && keys?.size === 1 && Object.keys(newObject).length === 0) { + const k = keys.values().next().value; + newObject.$unknown = [k, value[k]]; } } return newObject; @@ -12948,8 +13203,14 @@ class NormalizedSchema { } isStructSchema() { const sc = this.getSchema(); - return (sc[0] === 3 || - sc[0] === -3); + const id = sc[0]; + return (id === 3 || + id === -3 || + id === 4); + } + isUnionSchema() { + const sc = this.getSchema(); + return sc[0] === 4; } isBlobSchema() { const sc = this.getSchema(); @@ -45492,7 +45753,7 @@ module.exports = parseParams /***/ ((module) => { "use strict"; -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.952.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/credential-provider-node":"3.952.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.957.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/credential-provider-node":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); /***/ }) diff --git a/dist/index.js b/dist/index.js index 00def51..002c296 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4566,14 +4566,14 @@ var schema = __nccwpck_require__(6890); var client = __nccwpck_require__(5152); var regionConfigResolver = __nccwpck_require__(6463); -let STSServiceException$1 = class STSServiceException extends smithyClient.ServiceException { +class STSServiceException extends smithyClient.ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, STSServiceException.prototype); } -}; +} -let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceException$1 { +class ExpiredTokenException extends STSServiceException { name = "ExpiredTokenException"; $fault = "client"; constructor(opts) { @@ -4584,8 +4584,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceExce }); Object.setPrototypeOf(this, ExpiredTokenException.prototype); } -}; -let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException extends STSServiceException$1 { +} +class MalformedPolicyDocumentException extends STSServiceException { name = "MalformedPolicyDocumentException"; $fault = "client"; constructor(opts) { @@ -4596,8 +4596,8 @@ let MalformedPolicyDocumentException$1 = class MalformedPolicyDocumentException }); Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } -}; -let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extends STSServiceException$1 { +} +class PackedPolicyTooLargeException extends STSServiceException { name = "PackedPolicyTooLargeException"; $fault = "client"; constructor(opts) { @@ -4608,8 +4608,8 @@ let PackedPolicyTooLargeException$1 = class PackedPolicyTooLargeException extend }); Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); } -}; -let RegionDisabledException$1 = class RegionDisabledException extends STSServiceException$1 { +} +class RegionDisabledException extends STSServiceException { name = "RegionDisabledException"; $fault = "client"; constructor(opts) { @@ -4620,8 +4620,8 @@ let RegionDisabledException$1 = class RegionDisabledException extends STSService }); Object.setPrototypeOf(this, RegionDisabledException.prototype); } -}; -let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSServiceException$1 { +} +class IDPRejectedClaimException extends STSServiceException { name = "IDPRejectedClaimException"; $fault = "client"; constructor(opts) { @@ -4632,8 +4632,8 @@ let IDPRejectedClaimException$1 = class IDPRejectedClaimException extends STSSer }); Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } -}; -let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extends STSServiceException$1 { +} +class InvalidIdentityTokenException extends STSServiceException { name = "InvalidIdentityTokenException"; $fault = "client"; constructor(opts) { @@ -4644,8 +4644,8 @@ let InvalidIdentityTokenException$1 = class InvalidIdentityTokenException extend }); Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } -}; -let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException extends STSServiceException$1 { +} +class IDPCommunicationErrorException extends STSServiceException { name = "IDPCommunicationErrorException"; $fault = "client"; constructor(opts) { @@ -4656,8 +4656,8 @@ let IDPCommunicationErrorException$1 = class IDPCommunicationErrorException exte }); Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } -}; -let InvalidAuthorizationMessageException$1 = class InvalidAuthorizationMessageException extends STSServiceException$1 { +} +class InvalidAuthorizationMessageException extends STSServiceException { name = "InvalidAuthorizationMessageException"; $fault = "client"; constructor(opts) { @@ -4668,8 +4668,8 @@ let InvalidAuthorizationMessageException$1 = class InvalidAuthorizationMessageEx }); Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); } -}; -let ExpiredTradeInTokenException$1 = class ExpiredTradeInTokenException extends STSServiceException$1 { +} +class ExpiredTradeInTokenException extends STSServiceException { name = "ExpiredTradeInTokenException"; $fault = "client"; constructor(opts) { @@ -4680,8 +4680,8 @@ let ExpiredTradeInTokenException$1 = class ExpiredTradeInTokenException extends }); Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype); } -}; -let JWTPayloadSizeExceededException$1 = class JWTPayloadSizeExceededException extends STSServiceException$1 { +} +class JWTPayloadSizeExceededException extends STSServiceException { name = "JWTPayloadSizeExceededException"; $fault = "client"; constructor(opts) { @@ -4692,8 +4692,8 @@ let JWTPayloadSizeExceededException$1 = class JWTPayloadSizeExceededException ex }); Object.setPrototypeOf(this, JWTPayloadSizeExceededException.prototype); } -}; -let OutboundWebIdentityFederationDisabledException$1 = class OutboundWebIdentityFederationDisabledException extends STSServiceException$1 { +} +class OutboundWebIdentityFederationDisabledException extends STSServiceException { name = "OutboundWebIdentityFederationDisabledException"; $fault = "client"; constructor(opts) { @@ -4704,8 +4704,8 @@ let OutboundWebIdentityFederationDisabledException$1 = class OutboundWebIdentity }); Object.setPrototypeOf(this, OutboundWebIdentityFederationDisabledException.prototype); } -}; -let SessionDurationEscalationException$1 = class SessionDurationEscalationException extends STSServiceException$1 { +} +class SessionDurationEscalationException extends STSServiceException { name = "SessionDurationEscalationException"; $fault = "client"; constructor(opts) { @@ -4716,7 +4716,7 @@ let SessionDurationEscalationException$1 = class SessionDurationEscalationExcept }); Object.setPrototypeOf(this, SessionDurationEscalationException.prototype); } -}; +} const _A = "Arn"; const _AKI = "AccessKeyId"; @@ -4835,8 +4835,8 @@ var clientTokenType = [0, n0, _cTT, 8, 0]; var SAMLAssertionType = [0, n0, _SAMLAT, 8, 0]; var tradeInTokenType = [0, n0, _tITT, 8, 0]; var webIdentityTokenType = [0, n0, _wITT, 8, 0]; -var AssumedRoleUser = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; -var AssumeRoleRequest = [ +var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0]]; +var AssumeRoleRequest$ = [ 3, n0, _ARR, @@ -4844,15 +4844,15 @@ var AssumeRoleRequest = [ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC], [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], ]; -var AssumeRoleResponse = [ +var AssumeRoleResponse$ = [ 3, n0, _ARRs, 0, [_C, _ARU, _PPS, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0], ]; -var AssumeRoleWithSAMLRequest = [ +var AssumeRoleWithSAMLRequest$ = [ 3, n0, _ARWSAMLR, @@ -4860,15 +4860,15 @@ var AssumeRoleWithSAMLRequest = [ [_RA, _PAr, _SAMLA, _PA, _P, _DS], [0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithSAMLResponse = [ +var AssumeRoleWithSAMLResponse$ = [ 3, n0, _ARWSAMLRs, 0, [_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI], - [[() => Credentials, 0], () => AssumedRoleUser, 1, 0, 0, 0, 0, 0, 0], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0], ]; -var AssumeRoleWithWebIdentityRequest = [ +var AssumeRoleWithWebIdentityRequest$ = [ 3, n0, _ARWWIR, @@ -4876,24 +4876,24 @@ var AssumeRoleWithWebIdentityRequest = [ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS], [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], ]; -var AssumeRoleWithWebIdentityResponse = [ +var AssumeRoleWithWebIdentityResponse$ = [ 3, n0, _ARWWIRs, 0, [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI], - [[() => Credentials, 0], 0, () => AssumedRoleUser, 1, 0, 0, 0], + [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0], ]; -var AssumeRootRequest = [ +var AssumeRootRequest$ = [ 3, n0, _ARRss, 0, [_TP, _TPA, _DS], - [0, () => PolicyDescriptorType, 1], + [0, () => PolicyDescriptorType$, 1], ]; -var AssumeRootResponse = [3, n0, _ARRssu, 0, [_C, _SI], [[() => Credentials, 0], 0]]; -var Credentials = [ +var AssumeRootResponse$ = [3, n0, _ARRssu, 0, [_C, _SI], [[() => Credentials$, 0], 0]]; +var Credentials$ = [ 3, n0, _C, @@ -4901,32 +4901,32 @@ var Credentials = [ [_AKI, _SAK, _STe, _E], [0, [() => accessKeySecretType, 0], 0, 4], ]; -var DecodeAuthorizationMessageRequest = [3, n0, _DAMR, 0, [_EM], [0]]; -var DecodeAuthorizationMessageResponse = [3, n0, _DAMRe, 0, [_DM], [0]]; -var ExpiredTokenException = [ +var DecodeAuthorizationMessageRequest$ = [3, n0, _DAMR, 0, [_EM], [0]]; +var DecodeAuthorizationMessageResponse$ = [3, n0, _DAMRe, 0, [_DM], [0]]; +var ExpiredTokenException$ = [ -3, n0, _ETE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTokenException`, 400] }, + { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1); -var ExpiredTradeInTokenException = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException); +var ExpiredTradeInTokenException$ = [ -3, n0, _ETITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`ExpiredTradeInTokenException`, 400] }, + { [_aQE]: [`ExpiredTradeInTokenException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(ExpiredTradeInTokenException, ExpiredTradeInTokenException$1); -var FederatedUser = [3, n0, _FU, 0, [_FUI, _A], [0, 0]]; -var GetAccessKeyInfoRequest = [3, n0, _GAKIR, 0, [_AKI], [0]]; -var GetAccessKeyInfoResponse = [3, n0, _GAKIRe, 0, [_Ac], [0]]; -var GetCallerIdentityRequest = [3, n0, _GCIR, 0, [], []]; -var GetCallerIdentityResponse = [3, n0, _GCIRe, 0, [_UI, _Ac, _A], [0, 0, 0]]; -var GetDelegatedAccessTokenRequest = [ +schema.TypeRegistry.for(n0).registerError(ExpiredTradeInTokenException$, ExpiredTradeInTokenException); +var FederatedUser$ = [3, n0, _FU, 0, [_FUI, _A], [0, 0]]; +var GetAccessKeyInfoRequest$ = [3, n0, _GAKIR, 0, [_AKI], [0]]; +var GetAccessKeyInfoResponse$ = [3, n0, _GAKIRe, 0, [_Ac], [0]]; +var GetCallerIdentityRequest$ = [3, n0, _GCIR, 0, [], []]; +var GetCallerIdentityResponse$ = [3, n0, _GCIRe, 0, [_UI, _Ac, _A], [0, 0, 0]]; +var GetDelegatedAccessTokenRequest$ = [ 3, n0, _GDATR, @@ -4934,15 +4934,15 @@ var GetDelegatedAccessTokenRequest = [ [_TIT], [[() => tradeInTokenType, 0]], ]; -var GetDelegatedAccessTokenResponse = [ +var GetDelegatedAccessTokenResponse$ = [ 3, n0, _GDATRe, 0, [_C, _PPS, _AP], - [[() => Credentials, 0], 1, 0], + [[() => Credentials$, 0], 1, 0], ]; -var GetFederationTokenRequest = [ +var GetFederationTokenRequest$ = [ 3, n0, _GFTR, @@ -4950,17 +4950,17 @@ var GetFederationTokenRequest = [ [_N, _P, _PA, _DS, _T], [0, 0, () => policyDescriptorListType, 1, () => tagListType], ]; -var GetFederationTokenResponse = [ +var GetFederationTokenResponse$ = [ 3, n0, _GFTRe, 0, [_C, _FU, _PPS], - [[() => Credentials, 0], () => FederatedUser, 1], + [[() => Credentials$, 0], () => FederatedUser$, 1], ]; -var GetSessionTokenRequest = [3, n0, _GSTR, 0, [_DS, _SN, _TC], [1, 0, 0]]; -var GetSessionTokenResponse = [3, n0, _GSTRe, 0, [_C], [[() => Credentials, 0]]]; -var GetWebIdentityTokenRequest = [ +var GetSessionTokenRequest$ = [3, n0, _GSTR, 0, [_DS, _SN, _TC], [1, 0, 0]]; +var GetSessionTokenResponse$ = [3, n0, _GSTRe, 0, [_C], [[() => Credentials$, 0]]]; +var GetWebIdentityTokenRequest$ = [ 3, n0, _GWITR, @@ -4968,7 +4968,7 @@ var GetWebIdentityTokenRequest = [ [_Au, _DS, _SA, _T], [64 | 0, 1, 0, () => tagListType], ]; -var GetWebIdentityTokenResponse = [ +var GetWebIdentityTokenResponse$ = [ 3, n0, _GWITRe, @@ -4976,177 +4976,177 @@ var GetWebIdentityTokenResponse = [ [_WIT, _E], [[() => webIdentityTokenType, 0], 4], ]; -var IDPCommunicationErrorException = [ +var IDPCommunicationErrorException$ = [ -3, n0, _IDPCEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`IDPCommunicationError`, 400] }, + { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException, IDPCommunicationErrorException$1); -var IDPRejectedClaimException = [ +schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); +var IDPRejectedClaimException$ = [ -3, n0, _IDPRCE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`IDPRejectedClaim`, 403] }, + { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException, IDPRejectedClaimException$1); -var InvalidAuthorizationMessageException = [ +schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException); +var InvalidAuthorizationMessageException$ = [ -3, n0, _IAME, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidAuthorizationMessageException`, 400] }, + { [_aQE]: [`InvalidAuthorizationMessageException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidAuthorizationMessageException, InvalidAuthorizationMessageException$1); -var InvalidIdentityTokenException = [ +schema.TypeRegistry.for(n0).registerError(InvalidAuthorizationMessageException$, InvalidAuthorizationMessageException); +var InvalidIdentityTokenException$ = [ -3, n0, _IITE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidIdentityToken`, 400] }, + { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException, InvalidIdentityTokenException$1); -var JWTPayloadSizeExceededException = [ +schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); +var JWTPayloadSizeExceededException$ = [ -3, n0, _JWTPSEE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`JWTPayloadSizeExceededException`, 400] }, + { [_aQE]: [`JWTPayloadSizeExceededException`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(JWTPayloadSizeExceededException, JWTPayloadSizeExceededException$1); -var MalformedPolicyDocumentException = [ +schema.TypeRegistry.for(n0).registerError(JWTPayloadSizeExceededException$, JWTPayloadSizeExceededException); +var MalformedPolicyDocumentException$ = [ -3, n0, _MPDE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`MalformedPolicyDocument`, 400] }, + { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException, MalformedPolicyDocumentException$1); -var OutboundWebIdentityFederationDisabledException = [ +schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); +var OutboundWebIdentityFederationDisabledException$ = [ -3, n0, _OWIFDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`OutboundWebIdentityFederationDisabledException`, 403] }, + { [_aQE]: [`OutboundWebIdentityFederationDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(OutboundWebIdentityFederationDisabledException, OutboundWebIdentityFederationDisabledException$1); -var PackedPolicyTooLargeException = [ +schema.TypeRegistry.for(n0).registerError(OutboundWebIdentityFederationDisabledException$, OutboundWebIdentityFederationDisabledException); +var PackedPolicyTooLargeException$ = [ -3, n0, _PPTLE, - { [_e]: _c, [_hE]: 400, [_aQE]: [`PackedPolicyTooLarge`, 400] }, + { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException, PackedPolicyTooLargeException$1); -var PolicyDescriptorType = [3, n0, _PDT, 0, [_a], [0]]; -var ProvidedContext = [3, n0, _PCr, 0, [_PAro, _CA], [0, 0]]; -var RegionDisabledException = [ +schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); +var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]]; +var ProvidedContext$ = [3, n0, _PCr, 0, [_PAro, _CA], [0, 0]]; +var RegionDisabledException$ = [ -3, n0, _RDE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`RegionDisabledException`, 403] }, + { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(RegionDisabledException, RegionDisabledException$1); -var SessionDurationEscalationException = [ +schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException); +var SessionDurationEscalationException$ = [ -3, n0, _SDEE, - { [_e]: _c, [_hE]: 403, [_aQE]: [`SessionDurationEscalationException`, 403] }, + { [_aQE]: [`SessionDurationEscalationException`, 403], [_e]: _c, [_hE]: 403 }, [_m], [0], ]; -schema.TypeRegistry.for(n0).registerError(SessionDurationEscalationException, SessionDurationEscalationException$1); -var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; -var STSServiceException = [-3, _s, "STSServiceException", 0, [], []]; -schema.TypeRegistry.for(_s).registerError(STSServiceException, STSServiceException$1); -var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType]; -var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext]; -var tagListType = [1, n0, _tLT, 0, () => Tag]; -var AssumeRole = [9, n0, _AR, 0, () => AssumeRoleRequest, () => AssumeRoleResponse]; -var AssumeRoleWithSAML = [ +schema.TypeRegistry.for(n0).registerError(SessionDurationEscalationException$, SessionDurationEscalationException); +var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0]]; +var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; +schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException); +var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$]; +var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$]; +var tagListType = [1, n0, _tLT, 0, () => Tag$]; +var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$]; +var AssumeRoleWithSAML$ = [ 9, n0, _ARWSAML, 0, - () => AssumeRoleWithSAMLRequest, - () => AssumeRoleWithSAMLResponse, + () => AssumeRoleWithSAMLRequest$, + () => AssumeRoleWithSAMLResponse$, ]; -var AssumeRoleWithWebIdentity = [ +var AssumeRoleWithWebIdentity$ = [ 9, n0, _ARWWI, 0, - () => AssumeRoleWithWebIdentityRequest, - () => AssumeRoleWithWebIdentityResponse, + () => AssumeRoleWithWebIdentityRequest$, + () => AssumeRoleWithWebIdentityResponse$, ]; -var AssumeRoot = [9, n0, _ARs, 0, () => AssumeRootRequest, () => AssumeRootResponse]; -var DecodeAuthorizationMessage = [ +var AssumeRoot$ = [9, n0, _ARs, 0, () => AssumeRootRequest$, () => AssumeRootResponse$]; +var DecodeAuthorizationMessage$ = [ 9, n0, _DAM, 0, - () => DecodeAuthorizationMessageRequest, - () => DecodeAuthorizationMessageResponse, + () => DecodeAuthorizationMessageRequest$, + () => DecodeAuthorizationMessageResponse$, ]; -var GetAccessKeyInfo = [ +var GetAccessKeyInfo$ = [ 9, n0, _GAKI, 0, - () => GetAccessKeyInfoRequest, - () => GetAccessKeyInfoResponse, + () => GetAccessKeyInfoRequest$, + () => GetAccessKeyInfoResponse$, ]; -var GetCallerIdentity = [ +var GetCallerIdentity$ = [ 9, n0, _GCI, 0, - () => GetCallerIdentityRequest, - () => GetCallerIdentityResponse, + () => GetCallerIdentityRequest$, + () => GetCallerIdentityResponse$, ]; -var GetDelegatedAccessToken = [ +var GetDelegatedAccessToken$ = [ 9, n0, _GDAT, 0, - () => GetDelegatedAccessTokenRequest, - () => GetDelegatedAccessTokenResponse, + () => GetDelegatedAccessTokenRequest$, + () => GetDelegatedAccessTokenResponse$, ]; -var GetFederationToken = [ +var GetFederationToken$ = [ 9, n0, _GFT, 0, - () => GetFederationTokenRequest, - () => GetFederationTokenResponse, + () => GetFederationTokenRequest$, + () => GetFederationTokenResponse$, ]; -var GetSessionToken = [ +var GetSessionToken$ = [ 9, n0, _GST, 0, - () => GetSessionTokenRequest, - () => GetSessionTokenResponse, + () => GetSessionTokenRequest$, + () => GetSessionTokenResponse$, ]; -var GetWebIdentityToken = [ +var GetWebIdentityToken$ = [ 9, n0, _GWIT, 0, - () => GetWebIdentityTokenRequest, - () => GetWebIdentityTokenResponse, + () => GetWebIdentityTokenRequest$, + () => GetWebIdentityTokenResponse$, ]; class AssumeRoleCommand extends smithyClient.Command @@ -5157,7 +5157,7 @@ class AssumeRoleCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}) .n("STSClient", "AssumeRoleCommand") - .sc(AssumeRole) + .sc(AssumeRole$) .build() { } @@ -5169,7 +5169,7 @@ class AssumeRoleWithSAMLCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}) .n("STSClient", "AssumeRoleWithSAMLCommand") - .sc(AssumeRoleWithSAML) + .sc(AssumeRoleWithSAML$) .build() { } @@ -5181,7 +5181,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}) .n("STSClient", "AssumeRoleWithWebIdentityCommand") - .sc(AssumeRoleWithWebIdentity) + .sc(AssumeRoleWithWebIdentity$) .build() { } @@ -5193,7 +5193,7 @@ class AssumeRootCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {}) .n("STSClient", "AssumeRootCommand") - .sc(AssumeRoot) + .sc(AssumeRoot$) .build() { } @@ -5205,7 +5205,7 @@ class DecodeAuthorizationMessageCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}) .n("STSClient", "DecodeAuthorizationMessageCommand") - .sc(DecodeAuthorizationMessage) + .sc(DecodeAuthorizationMessage$) .build() { } @@ -5217,7 +5217,7 @@ class GetAccessKeyInfoCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}) .n("STSClient", "GetAccessKeyInfoCommand") - .sc(GetAccessKeyInfo) + .sc(GetAccessKeyInfo$) .build() { } @@ -5229,7 +5229,7 @@ class GetCallerIdentityCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}) .n("STSClient", "GetCallerIdentityCommand") - .sc(GetCallerIdentity) + .sc(GetCallerIdentity$) .build() { } @@ -5241,7 +5241,7 @@ class GetDelegatedAccessTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {}) .n("STSClient", "GetDelegatedAccessTokenCommand") - .sc(GetDelegatedAccessToken) + .sc(GetDelegatedAccessToken$) .build() { } @@ -5253,7 +5253,7 @@ class GetFederationTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}) .n("STSClient", "GetFederationTokenCommand") - .sc(GetFederationToken) + .sc(GetFederationToken$) .build() { } @@ -5265,7 +5265,7 @@ class GetSessionTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}) .n("STSClient", "GetSessionTokenCommand") - .sc(GetSessionToken) + .sc(GetSessionToken$) .build() { } @@ -5277,7 +5277,7 @@ class GetWebIdentityTokenCommand extends smithyClient.Command }) .s("AWSSecurityTokenServiceV20110615", "GetWebIdentityToken", {}) .n("STSClient", "GetWebIdentityTokenCommand") - .sc(GetWebIdentityToken) + .sc(GetWebIdentityToken$) .build() { } @@ -5422,31 +5422,83 @@ Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithyClient.Command; } })); +exports.AssumeRole$ = AssumeRole$; exports.AssumeRoleCommand = AssumeRoleCommand; +exports.AssumeRoleRequest$ = AssumeRoleRequest$; +exports.AssumeRoleResponse$ = AssumeRoleResponse$; +exports.AssumeRoleWithSAML$ = AssumeRoleWithSAML$; exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; +exports.AssumeRoleWithSAMLRequest$ = AssumeRoleWithSAMLRequest$; +exports.AssumeRoleWithSAMLResponse$ = AssumeRoleWithSAMLResponse$; +exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$; exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; +exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$; +exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$; +exports.AssumeRoot$ = AssumeRoot$; exports.AssumeRootCommand = AssumeRootCommand; +exports.AssumeRootRequest$ = AssumeRootRequest$; +exports.AssumeRootResponse$ = AssumeRootResponse$; +exports.AssumedRoleUser$ = AssumedRoleUser$; +exports.Credentials$ = Credentials$; +exports.DecodeAuthorizationMessage$ = DecodeAuthorizationMessage$; exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; -exports.ExpiredTokenException = ExpiredTokenException$1; -exports.ExpiredTradeInTokenException = ExpiredTradeInTokenException$1; +exports.DecodeAuthorizationMessageRequest$ = DecodeAuthorizationMessageRequest$; +exports.DecodeAuthorizationMessageResponse$ = DecodeAuthorizationMessageResponse$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.ExpiredTradeInTokenException = ExpiredTradeInTokenException; +exports.ExpiredTradeInTokenException$ = ExpiredTradeInTokenException$; +exports.FederatedUser$ = FederatedUser$; +exports.GetAccessKeyInfo$ = GetAccessKeyInfo$; exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; +exports.GetAccessKeyInfoRequest$ = GetAccessKeyInfoRequest$; +exports.GetAccessKeyInfoResponse$ = GetAccessKeyInfoResponse$; +exports.GetCallerIdentity$ = GetCallerIdentity$; exports.GetCallerIdentityCommand = GetCallerIdentityCommand; +exports.GetCallerIdentityRequest$ = GetCallerIdentityRequest$; +exports.GetCallerIdentityResponse$ = GetCallerIdentityResponse$; +exports.GetDelegatedAccessToken$ = GetDelegatedAccessToken$; exports.GetDelegatedAccessTokenCommand = GetDelegatedAccessTokenCommand; +exports.GetDelegatedAccessTokenRequest$ = GetDelegatedAccessTokenRequest$; +exports.GetDelegatedAccessTokenResponse$ = GetDelegatedAccessTokenResponse$; +exports.GetFederationToken$ = GetFederationToken$; exports.GetFederationTokenCommand = GetFederationTokenCommand; +exports.GetFederationTokenRequest$ = GetFederationTokenRequest$; +exports.GetFederationTokenResponse$ = GetFederationTokenResponse$; +exports.GetSessionToken$ = GetSessionToken$; exports.GetSessionTokenCommand = GetSessionTokenCommand; +exports.GetSessionTokenRequest$ = GetSessionTokenRequest$; +exports.GetSessionTokenResponse$ = GetSessionTokenResponse$; +exports.GetWebIdentityToken$ = GetWebIdentityToken$; exports.GetWebIdentityTokenCommand = GetWebIdentityTokenCommand; -exports.IDPCommunicationErrorException = IDPCommunicationErrorException$1; -exports.IDPRejectedClaimException = IDPRejectedClaimException$1; -exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException$1; -exports.InvalidIdentityTokenException = InvalidIdentityTokenException$1; -exports.JWTPayloadSizeExceededException = JWTPayloadSizeExceededException$1; -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException$1; -exports.OutboundWebIdentityFederationDisabledException = OutboundWebIdentityFederationDisabledException$1; -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException$1; -exports.RegionDisabledException = RegionDisabledException$1; +exports.GetWebIdentityTokenRequest$ = GetWebIdentityTokenRequest$; +exports.GetWebIdentityTokenResponse$ = GetWebIdentityTokenResponse$; +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$; +exports.IDPRejectedClaimException = IDPRejectedClaimException; +exports.IDPRejectedClaimException$ = IDPRejectedClaimException$; +exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; +exports.InvalidAuthorizationMessageException$ = InvalidAuthorizationMessageException$; +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$; +exports.JWTPayloadSizeExceededException = JWTPayloadSizeExceededException; +exports.JWTPayloadSizeExceededException$ = JWTPayloadSizeExceededException$; +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$; +exports.OutboundWebIdentityFederationDisabledException = OutboundWebIdentityFederationDisabledException; +exports.OutboundWebIdentityFederationDisabledException$ = OutboundWebIdentityFederationDisabledException$; +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$; +exports.PolicyDescriptorType$ = PolicyDescriptorType$; +exports.ProvidedContext$ = ProvidedContext$; +exports.RegionDisabledException = RegionDisabledException; +exports.RegionDisabledException$ = RegionDisabledException$; exports.STS = STS; -exports.STSServiceException = STSServiceException$1; -exports.SessionDurationEscalationException = SessionDurationEscalationException$1; +exports.STSServiceException = STSServiceException; +exports.STSServiceException$ = STSServiceException$; +exports.SessionDurationEscalationException = SessionDurationEscalationException; +exports.SessionDurationEscalationException$ = SessionDurationEscalationException$; +exports.Tag$ = Tag$; exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; exports.getDefaultRoleAssumer = getDefaultRoleAssumer; exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; @@ -5575,12 +5627,13 @@ const getRuntimeConfig = (config) => { }, ], logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - protocol: config?.protocol ?? - new protocols_1.AwsQueryProtocol({ - defaultNamespace: "com.amazonaws.sts", - xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", - version: "2011-06-15", - }), + protocol: config?.protocol ?? protocols_1.AwsQueryProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sts", + xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", + version: "2011-06-15", + serviceTarget: "AWSSecurityTokenServiceV20110615", + }, serviceId: config?.serviceId ?? "STS", urlParser: config?.urlParser ?? url_parser_1.parseUrl, utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, @@ -6223,6 +6276,30 @@ function* deserializingStructIterator(ns, sourceObject, nameTrait) { } } +class UnionSerde { + from; + to; + keys; + constructor(from, to) { + this.from = from; + this.to = to; + this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type")); + } + mark(key) { + this.keys.delete(key); + } + hasUnknown() { + return this.keys.size === 1 && Object.keys(this.to).length === 0; + } + writeUnknown() { + if (this.hasUnknown()) { + const k = this.keys.values().next().value; + const v = this.from[k]; + this.to.$unknown = [k, v]; + } + } +} + function jsonReviver(key, value, context) { if (context?.source) { const numericString = context.source; @@ -6314,13 +6391,23 @@ class JsonShapeDeserializer extends SerdeContextConfig { const ns = schema.NormalizedSchema.of(schema$1); if (isObject) { if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); const out = {}; + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, out); + } for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) { const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; - const deserializedValue = this._read(memberSchema, value[fromKey]); - if (deserializedValue != null) { - out[memberName] = deserializedValue; + if (union) { + unionSerde.mark(fromKey); } + if (value[fromKey] != null) { + out[memberName] = this._read(memberSchema, value[fromKey]); + } + } + if (union) { + unionSerde.writeUnknown(); } return out; } @@ -6509,6 +6596,13 @@ class JsonShapeSerializer extends SerdeContextConfig { out[targetKey] = serializableValue; } } + if (ns.isUnionSchema() && Object.keys(out).length === 0) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + out[k] = this._write(15, v); + } + } return out; } if (Array.isArray(value) && ns.isListSchema()) { @@ -6915,15 +7009,26 @@ class XmlShapeDeserializer extends SerdeContextConfig { return buffer; } if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, buffer); + } for (const [memberName, memberSchema] of ns.structIterator()) { const memberTraits = memberSchema.getMergedTraits(); const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName(); + if (union) { + unionSerde.mark(xmlObjectKey); + } if (value[xmlObjectKey] != null) { buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); } } + if (union) { + unionSerde.writeUnknown(); + } return buffer; } if (ns.isDocumentSchema()) { @@ -7027,7 +7132,22 @@ class QueryShapeSerializer extends SerdeContextConfig { } } else if (ns.isDocumentSchema()) { - throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`); + if (Array.isArray(value)) { + this.write(64 | 15, value, prefix); + } + else if (value instanceof Date) { + this.write(4, value, prefix); + } + else if (value instanceof Uint8Array) { + this.write(21, value, prefix); + } + else if (value && typeof value === "object") { + this.write(128 | 15, value, prefix); + } + else { + this.writeKey(prefix); + this.writeValue(String(value)); + } } else if (ns.isListSchema()) { if (Array.isArray(value)) { @@ -7075,6 +7195,7 @@ class QueryShapeSerializer extends SerdeContextConfig { } else if (ns.isStructSchema()) { if (value && typeof value === "object") { + let didWriteMember = false; for (const [memberName, member] of serializingStructIterator(ns, value)) { if (value[memberName] == null && !member.isIdempotencyToken()) { continue; @@ -7082,6 +7203,15 @@ class QueryShapeSerializer extends SerdeContextConfig { const suffix = this.getKey(memberName, member.getMergedTraits().xmlName); const key = `${prefix}${suffix}`; this.write(member, value[memberName], key); + didWriteMember = true; + } + if (!didWriteMember && ns.isUnionSchema()) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + const key = `${prefix}${k}`; + this.write(15, v, key); + } } } } @@ -7390,6 +7520,22 @@ class XmlShapeSerializer extends SerdeContextConfig { } } } + const { $unknown } = value; + if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) { + const [k, v] = $unknown; + const node = xmlBuilder.XmlNode.of(k); + if (typeof v !== "string") { + if (value instanceof xmlBuilder.XmlNode || value instanceof xmlBuilder.XmlText) { + structXmlNode.addChildNode(value); + } + else { + throw new Error(`@aws-sdk - $unknown union member in XML requires ` + + `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`); + } + } + this.writeSimpleInto(0, v, node, xmlns); + structXmlNode.addChildNode(node); + } if (xmlns) { structXmlNode.addAttribute(xmlnsAttr, xmlns); } @@ -8060,6 +8206,30 @@ function* deserializingStructIterator(ns, sourceObject, nameTrait) { } } +class UnionSerde { + from; + to; + keys; + constructor(from, to) { + this.from = from; + this.to = to; + this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type")); + } + mark(key) { + this.keys.delete(key); + } + hasUnknown() { + return this.keys.size === 1 && Object.keys(this.to).length === 0; + } + writeUnknown() { + if (this.hasUnknown()) { + const k = this.keys.values().next().value; + const v = this.from[k]; + this.to.$unknown = [k, v]; + } + } +} + function jsonReviver(key, value, context) { if (context?.source) { const numericString = context.source; @@ -8151,13 +8321,23 @@ class JsonShapeDeserializer extends SerdeContextConfig { const ns = schema.NormalizedSchema.of(schema$1); if (isObject) { if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); const out = {}; + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, out); + } for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) { const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; - const deserializedValue = this._read(memberSchema, value[fromKey]); - if (deserializedValue != null) { - out[memberName] = deserializedValue; + if (union) { + unionSerde.mark(fromKey); } + if (value[fromKey] != null) { + out[memberName] = this._read(memberSchema, value[fromKey]); + } + } + if (union) { + unionSerde.writeUnknown(); } return out; } @@ -8346,6 +8526,13 @@ class JsonShapeSerializer extends SerdeContextConfig { out[targetKey] = serializableValue; } } + if (ns.isUnionSchema() && Object.keys(out).length === 0) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + out[k] = this._write(15, v); + } + } return out; } if (Array.isArray(value) && ns.isListSchema()) { @@ -8752,15 +8939,26 @@ class XmlShapeDeserializer extends SerdeContextConfig { return buffer; } if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, buffer); + } for (const [memberName, memberSchema] of ns.structIterator()) { const memberTraits = memberSchema.getMergedTraits(); const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName(); + if (union) { + unionSerde.mark(xmlObjectKey); + } if (value[xmlObjectKey] != null) { buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); } } + if (union) { + unionSerde.writeUnknown(); + } return buffer; } if (ns.isDocumentSchema()) { @@ -8864,7 +9062,22 @@ class QueryShapeSerializer extends SerdeContextConfig { } } else if (ns.isDocumentSchema()) { - throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${ns.getName(true)}`); + if (Array.isArray(value)) { + this.write(64 | 15, value, prefix); + } + else if (value instanceof Date) { + this.write(4, value, prefix); + } + else if (value instanceof Uint8Array) { + this.write(21, value, prefix); + } + else if (value && typeof value === "object") { + this.write(128 | 15, value, prefix); + } + else { + this.writeKey(prefix); + this.writeValue(String(value)); + } } else if (ns.isListSchema()) { if (Array.isArray(value)) { @@ -8912,6 +9125,7 @@ class QueryShapeSerializer extends SerdeContextConfig { } else if (ns.isStructSchema()) { if (value && typeof value === "object") { + let didWriteMember = false; for (const [memberName, member] of serializingStructIterator(ns, value)) { if (value[memberName] == null && !member.isIdempotencyToken()) { continue; @@ -8919,6 +9133,15 @@ class QueryShapeSerializer extends SerdeContextConfig { const suffix = this.getKey(memberName, member.getMergedTraits().xmlName); const key = `${prefix}${suffix}`; this.write(member, value[memberName], key); + didWriteMember = true; + } + if (!didWriteMember && ns.isUnionSchema()) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + const key = `${prefix}${k}`; + this.write(15, v, key); + } } } } @@ -9227,6 +9450,22 @@ class XmlShapeSerializer extends SerdeContextConfig { } } } + const { $unknown } = value; + if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) { + const [k, v] = $unknown; + const node = xmlBuilder.XmlNode.of(k); + if (typeof v !== "string") { + if (value instanceof xmlBuilder.XmlNode || value instanceof xmlBuilder.XmlText) { + structXmlNode.addChildNode(value); + } + else { + throw new Error(`@aws-sdk - $unknown union member in XML requires ` + + `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`); + } + } + this.writeSimpleInto(0, v, node, xmlns); + structXmlNode.addChildNode(node); + } if (xmlns) { structXmlNode.addAttribute(xmlnsAttr, xmlns); } @@ -10137,8 +10376,8 @@ exports.userAgentMiddleware = userAgentMiddleware; "use strict"; -var configResolver = __nccwpck_require__(9316); var stsRegionDefaultResolver = __nccwpck_require__(5779); +var configResolver = __nccwpck_require__(9316); const getAwsRegionExtensionConfiguration = (runtimeConfig) => { return { @@ -12398,6 +12637,11 @@ class CborShapeSerializer extends protocols.SerdeContext { newObject[key] = value; } } + const isUnion = ns.isUnionSchema(); + if (isUnion && Array.isArray(sourceObject.$unknown)) { + const [k, v] = sourceObject.$unknown; + newObject[k] = v; + } } else if (ns.isDocumentSchema()) { for (const key of Object.keys(sourceObject)) { @@ -12482,11 +12726,22 @@ class CborShapeDeserializer extends protocols.SerdeContext { } } else if (ns.isStructSchema()) { + const isUnion = ns.isUnionSchema(); + let keys; + if (isUnion) { + keys = new Set(Object.keys(value).filter((k) => k !== "__type")); + } for (const [key, memberSchema] of ns.structIterator()) { - const v = this.readValue(memberSchema, value[key]); - if (v != null) { - newObject[key] = v; + if (isUnion) { + keys.delete(key); } + if (value[key] != null) { + newObject[key] = this.readValue(memberSchema, value[key]); + } + } + if (isUnion && keys?.size === 1 && Object.keys(newObject).length === 0) { + const k = keys.values().next().value; + newObject.$unknown = [k, value[k]]; } } return newObject; @@ -13809,8 +14064,14 @@ class NormalizedSchema { } isStructSchema() { const sc = this.getSchema(); - return (sc[0] === 3 || - sc[0] === -3); + const id = sc[0]; + return (id === 3 || + id === -3 || + id === 4); + } + isUnionSchema() { + const sc = this.getSchema(); + return sc[0] === 4; } isBlobSchema() { const sc = this.getSchema(); @@ -79808,7 +80069,7 @@ module.exports = LRUCache /***/ ((module) => { "use strict"; -module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.952.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.947.0","@aws-sdk/credential-provider-node":"3.952.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.948.0","@aws-sdk/middleware-user-agent":"3.947.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.947.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.7","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.14","@smithy/middleware-retry":"^4.4.14","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.10","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.13","@smithy/util-defaults-mode-node":"^4.2.16","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); +module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.957.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.957.0","@aws-sdk/credential-provider-node":"3.957.0","@aws-sdk/middleware-host-header":"3.957.0","@aws-sdk/middleware-logger":"3.957.0","@aws-sdk/middleware-recursion-detection":"3.957.0","@aws-sdk/middleware-user-agent":"3.957.0","@aws-sdk/region-config-resolver":"3.957.0","@aws-sdk/types":"3.957.0","@aws-sdk/util-endpoints":"3.957.0","@aws-sdk/util-user-agent-browser":"3.957.0","@aws-sdk/util-user-agent-node":"3.957.0","@smithy/config-resolver":"^4.4.5","@smithy/core":"^3.20.0","@smithy/fetch-http-handler":"^5.3.8","@smithy/hash-node":"^4.2.7","@smithy/invalid-dependency":"^4.2.7","@smithy/middleware-content-length":"^4.2.7","@smithy/middleware-endpoint":"^4.4.1","@smithy/middleware-retry":"^4.4.17","@smithy/middleware-serde":"^4.2.8","@smithy/middleware-stack":"^4.2.7","@smithy/node-config-provider":"^4.3.7","@smithy/node-http-handler":"^4.4.7","@smithy/protocol-http":"^5.3.7","@smithy/smithy-client":"^4.10.2","@smithy/types":"^4.11.0","@smithy/url-parser":"^4.2.7","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.16","@smithy/util-defaults-mode-node":"^4.2.19","@smithy/util-endpoints":"^3.2.7","@smithy/util-middleware":"^4.2.7","@smithy/util-retry":"^4.2.7","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); /***/ }),