@felloh-org/lambda-wrapper 1.11.108 → 1.11.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,150 +1 @@
1
- /*
2
- * This module provides a simplified interface into the Aurora Serverless
3
- * Data API by abstracting away the notion of field values.
4
- *
5
- * More detail regarding the Aurora Serverless Data APIcan be found here:
6
- * https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html
7
- *
8
- * @author Jeremy Daly <jeremy@jeremydaly.com>
9
- * @version 1.2.0
10
- * @license MIT
11
- */
12
-
13
- /*!
14
- * Copyright 2010 LearnBoost <dev@learnboost.com>
15
- *
16
- * Licensed under the Apache License, Version 2.0 (the "License");
17
- * you may not use this file except in compliance with the License.
18
- * You may obtain a copy of the License at
19
- *
20
- * http://www.apache.org/licenses/LICENSE-2.0
21
- *
22
- * Unless required by applicable law or agreed to in writing, software
23
- * distributed under the License is distributed on an "AS IS" BASIS,
24
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
- * See the License for the specific language governing permissions and
26
- * limitations under the License.
27
- */
28
-
29
- /*!
30
- * Copyright (c) 2015, Salesforce.com, Inc.
31
- * All rights reserved.
32
- *
33
- * Redistribution and use in source and binary forms, with or without
34
- * modification, are permitted provided that the following conditions are met:
35
- *
36
- * 1. Redistributions of source code must retain the above copyright notice,
37
- * this list of conditions and the following disclaimer.
38
- *
39
- * 2. Redistributions in binary form must reproduce the above copyright notice,
40
- * this list of conditions and the following disclaimer in the documentation
41
- * and/or other materials provided with the distribution.
42
- *
43
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
44
- * be used to endorse or promote products derived from this software without
45
- * specific prior written permission.
46
- *
47
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
48
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
49
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
50
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
51
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
52
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
53
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
54
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
55
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
56
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
57
- * POSSIBILITY OF SUCH DAMAGE.
58
- */
59
-
60
- /*!
61
- * Copyright (c) 2018, Salesforce.com, Inc.
62
- * All rights reserved.
63
- *
64
- * Redistribution and use in source and binary forms, with or without
65
- * modification, are permitted provided that the following conditions are met:
66
- *
67
- * 1. Redistributions of source code must retain the above copyright notice,
68
- * this list of conditions and the following disclaimer.
69
- *
70
- * 2. Redistributions in binary form must reproduce the above copyright notice,
71
- * this list of conditions and the following disclaimer in the documentation
72
- * and/or other materials provided with the distribution.
73
- *
74
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
75
- * be used to endorse or promote products derived from this software without
76
- * specific prior written permission.
77
- *
78
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
79
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
80
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
81
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
82
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
83
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
84
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
85
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
86
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
87
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
88
- * POSSIBILITY OF SUCH DAMAGE.
89
- */
90
-
91
- /*!
92
- * Tmp
93
- *
94
- * Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
95
- *
96
- * MIT Licensed
97
- */
98
-
99
- /*!
100
- * mime-db
101
- * Copyright(c) 2014 Jonathan Ong
102
- * Copyright(c) 2015-2022 Douglas Christopher Wilson
103
- * MIT Licensed
104
- */
105
-
106
- /*!
107
- * mime-types
108
- * Copyright(c) 2014 Jonathan Ong
109
- * Copyright(c) 2015 Douglas Christopher Wilson
110
- * MIT Licensed
111
- */
112
-
113
- /*!
114
- * validate.js 0.13.1
115
- *
116
- * (c) 2013-2019 Nicklas Ansman, 2013 Wrapp
117
- * Validate.js may be freely distributed under the MIT license.
118
- * For all details and documentation:
119
- * http://validatejs.org/
120
- */
121
-
122
- /*!
123
- */
124
-
125
- /*! *****************************************************************************
126
- Copyright (C) Microsoft. All rights reserved.
127
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
128
- this file except in compliance with the License. You may obtain a copy of the
129
- License at http://www.apache.org/licenses/LICENSE-2.0
130
-
131
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
132
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
133
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
134
- MERCHANTABLITY OR NON-INFRINGEMENT.
135
-
136
- See the Apache Version 2.0 License for specific language governing permissions
137
- and limitations under the License.
138
- ***************************************************************************** */
139
-
140
- /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
141
-
142
1
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
143
-
144
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
145
-
146
- /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
147
-
148
- //! moment.js
149
-
150
- //! moment.js locale configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@felloh-org/lambda-wrapper",
3
- "version": "1.11.108",
3
+ "version": "1.11.109",
4
4
  "description": "Lambda wrapper for all Felloh Serverless Projects",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
package/webpack.config.js CHANGED
@@ -10,6 +10,7 @@ module.exports = {
10
10
  entry: './src/index.js',
11
11
  target: 'node',
12
12
  externalsPresets: { node: true }, // in order to ignore built-in modules like path, fs, etc.
13
+ externals: [nodeExternals()], // in order to ignore all modules in node_modules folder
13
14
  plugins: [
14
15
  new WebpackAssetsManifest(),
15
16
  new Dotenv(),
package/dist/109.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=109,exports.ids=[109],exports.modules={"./node_modules/@aws-sdk/credential-provider-process/dist-es/index.js":(e,r,s)=>{s.r(r),s.d(r,{fromProcess:()=>fromProcess});var o=s("./node_modules/@smithy/shared-ini-file-loader/dist-es/index.js"),i=s("./node_modules/@smithy/property-provider/dist-es/index.js"),t=s("child_process"),n=s("util");const resolveProcessCredentials=async(e,r)=>{const s=r[e];if(!r[e])throw new i.C1(`Profile ${e} could not be found in shared credentials file.`);{const r=s.credential_process;if(void 0===r)throw new i.C1(`Profile ${e} did not contain credential_process.`);{const s=(0,n.promisify)(t.exec);try{const{stdout:o}=await s(r);let i;try{i=JSON.parse(o.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return((e,r)=>{if(1!==r.Version)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(void 0===r.AccessKeyId||void 0===r.SecretAccessKey)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(r.Expiration){const s=new Date;if(new Date(r.Expiration)<s)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,...r.SessionToken&&{sessionToken:r.SessionToken},...r.Expiration&&{expiration:new Date(r.Expiration)},...r.CredentialScope&&{credentialScope:r.CredentialScope}}})(e,i)}catch(e){throw new i.C1(e.message)}}}},fromProcess=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-process","fromProcess");const r=await(0,o.YU)(e);return resolveProcessCredentials((0,o.Bz)(e),r)}}};
package/dist/526.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=526,exports.ids=[526],exports.modules={"./node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js":(e,t,i)=>{i.d(t,{CreateTokenCommand:()=>CreateTokenCommand,SSOOIDCClient:()=>SSOOIDCClient});var n=i("./node_modules/@aws-sdk/middleware-host-header/dist-es/index.js"),o=i("./node_modules/@aws-sdk/middleware-logger/dist-es/index.js"),r=i("./node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js"),s=i("./node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js"),a=i("./node_modules/@smithy/config-resolver/dist-es/index.js"),c=i("./node_modules/@smithy/core/dist-es/index.js"),d=i("./node_modules/@smithy/middleware-content-length/dist-es/index.js"),p=i("./node_modules/@smithy/middleware-endpoint/dist-es/index.js"),l=i("./node_modules/@smithy/middleware-retry/dist-es/index.js"),u=i("./node_modules/@smithy/smithy-client/dist-es/index.js"),h=i("./node_modules/@aws-sdk/core/dist-cjs/index.js"),x=i("./node_modules/@smithy/util-middleware/dist-es/index.js");const defaultSSOOIDCHttpAuthSchemeParametersProvider=async(e,t,i)=>({operation:(0,x.u)(t).operation,region:await(0,x.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const defaultSSOOIDCHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){case"CreateToken":case"RegisterClient":case"StartDeviceAuthorization":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},m={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},S="3.577.0";var E=i("./node_modules/@aws-sdk/credential-provider-node/dist-es/index.js"),g=i("./node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js"),y=i("./node_modules/@smithy/hash-node/dist-es/index.js"),v=i("./node_modules/@smithy/node-config-provider/dist-es/index.js"),I=i("./node_modules/@smithy/node-http-handler/dist-es/index.js"),f=i("./node_modules/@smithy/util-body-length-node/dist-es/index.js"),w=i("./node_modules/@smithy/util-retry/dist-es/index.js"),O=i("./node_modules/@smithy/url-parser/dist-es/index.js"),b=i("./node_modules/@smithy/util-base64/dist-es/index.js"),C=i("./node_modules/@smithy/util-utf8/dist-es/index.js"),k=i("./node_modules/@aws-sdk/util-endpoints/dist-es/index.js"),P=i("./node_modules/@smithy/util-endpoints/dist-es/index.js");const _="required",D="fn",j="argv",R="ref",T=!0,A="isSet",$="booleanEquals",z="error",U="endpoint",q="tree",G="PartitionResult",N="getAttr",V={[_]:!1,type:"String"},H={[_]:!0,default:!1,type:"Boolean"},F={[R]:"Endpoint"},M={[D]:$,[j]:[{[R]:"UseFIPS"},!0]},B={[D]:$,[j]:[{[R]:"UseDualStack"},!0]},J={},Z={[D]:N,[j]:[{[R]:G},"supportsFIPS"]},L={[R]:G},W={[D]:$,[j]:[!0,{[D]:N,[j]:[L,"supportsDualStack"]}]},K=[M],Y=[B],Q=[{[R]:"Region"}],X={version:"1.0",parameters:{Region:V,UseDualStack:H,UseFIPS:H,Endpoint:V},rules:[{conditions:[{[D]:A,[j]:[F]}],rules:[{conditions:K,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:z},{conditions:Y,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:z},{endpoint:{url:F,properties:J,headers:J},type:U}],type:q},{conditions:[{[D]:A,[j]:Q}],rules:[{conditions:[{[D]:"aws.partition",[j]:Q,assign:G}],rules:[{conditions:[M,B],rules:[{conditions:[{[D]:$,[j]:[T,Z]},W],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J,headers:J},type:U}],type:q},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:z}],type:q},{conditions:K,rules:[{conditions:[{[D]:$,[j]:[Z,T]}],rules:[{conditions:[{[D]:"stringEquals",[j]:[{[D]:N,[j]:[L,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:J,headers:J},type:U},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:J,headers:J},type:U}],type:q},{error:"FIPS is enabled but this partition does not support FIPS",type:z}],type:q},{conditions:Y,rules:[{conditions:[W],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J,headers:J},type:U}],type:q},{error:"DualStack is enabled but this partition does not support DualStack",type:z}],type:q},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:J,headers:J},type:U}],type:q}],type:q},{error:"Invalid Configuration: Missing Region",type:z}]},defaultEndpointResolver=(e,t={})=>(0,P.sO)(X,{endpointParams:e,logger:t.logger});P.mw.aws=k.UF;var ee=i("./node_modules/@smithy/util-defaults-mode-node/dist-es/index.js");const runtimeConfig_getRuntimeConfig=e=>{(0,u.emitWarningIfUnsupportedVersion)(process.version);const t=(0,ee.I)(e),defaultConfigProvider=()=>t().then(u.loadConfigsForDefaultMode),i=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??b.E,base64Encoder:e?.base64Encoder??b.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new h.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new c.NoAuthSigner}],logger:e?.logger??new u.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??O.D,utf8Decoder:e?.utf8Decoder??C.ar,utf8Encoder:e?.utf8Encoder??C.Pq}))(e);return(0,h.emitWarningIfUnsupportedVersion)(process.version),{...i,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??f.n,credentialDefaultProvider:e?.credentialDefaultProvider??E.v6,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,g.mJ)({serviceId:i.serviceId,clientVersion:S}),maxAttempts:e?.maxAttempts??(0,v.Z)(l.qs),region:e?.region??(0,v.Z)(a.GG,a.zH),requestHandler:I.$c.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,v.Z)({...l.kN,default:async()=>(await defaultConfigProvider()).retryMode||w.L0}),sha256:e?.sha256??y.V.bind(null,"sha256"),streamCollector:e?.streamCollector??I.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.Z)(a.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,v.Z)(a.Ko)}};var te=i("./node_modules/@aws-sdk/region-config-resolver/dist-es/index.js"),ie=i("./node_modules/@smithy/protocol-http/dist-es/index.js");const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let i=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const i=t.findIndex((t=>t.schemeId===e.schemeId));-1===i?t.push(e):t.splice(i,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){i=e},httpAuthSchemeProvider:()=>i,setCredentials(e){n=e},credentials:()=>n}};class SSOOIDCClient extends u.Client{constructor(...[e]){const t=runtimeConfig_getRuntimeConfig(e||{}),i=(x=t,{...x,useDualstackEndpoint:x.useDualstackEndpoint??!1,useFipsEndpoint:x.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"});var x;const m=(0,a.TD)(i),S=(0,p.Co)(m),E=(0,l.$z)(S),g=(0,n.OV)(E),y=(0,s.Dc)(g);var v;const I=((e,t)=>{const i={...(0,te.Rq)(e),...(0,u.getDefaultExtensionConfiguration)(e),...(0,ie.getHttpHandlerExtensionConfiguration)(e),...getHttpAuthExtensionConfiguration(e)};return t.forEach((e=>e.configure(i))),{...e,...(0,te.$3)(i),...(0,u.resolveDefaultRuntimeConfig)(i),...(0,ie.resolveHttpHandlerRuntimeConfig)(i),...(n=i,{httpAuthSchemes:n.httpAuthSchemes(),httpAuthSchemeProvider:n.httpAuthSchemeProvider(),credentials:n.credentials()})};var n})((v=y,{...(0,h.resolveAwsSdkSigV4Config)(v)}),e?.extensions||[]);super(I),this.config=I,this.middlewareStack.use((0,l.ey)(this.config)),this.middlewareStack.use((0,d.vK)(this.config)),this.middlewareStack.use((0,n.TC)(this.config)),this.middlewareStack.use((0,o.Y7)(this.config)),this.middlewareStack.use((0,r.n4)(this.config)),this.middlewareStack.use((0,s.sM)(this.config)),this.middlewareStack.use((0,c.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,c.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return defaultSSOOIDCHttpAuthSchemeParametersProvider}getIdentityProviderConfigProvider(){return async e=>new c.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}}var ne=i("./node_modules/@smithy/middleware-serde/dist-es/index.js");class SSOOIDCServiceException extends u.ServiceException{constructor(e){super(e),Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}class AccessDeniedException extends SSOOIDCServiceException{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,AccessDeniedException.prototype),this.error=e.error,this.error_description=e.error_description}}class AuthorizationPendingException extends SSOOIDCServiceException{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,AuthorizationPendingException.prototype),this.error=e.error,this.error_description=e.error_description}}class ExpiredTokenException extends SSOOIDCServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,ExpiredTokenException.prototype),this.error=e.error,this.error_description=e.error_description}}class InternalServerException extends SSOOIDCServiceException{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,InternalServerException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidClientException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,InvalidClientException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidGrantException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,InvalidGrantException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRequestException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidScopeException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,InvalidScopeException.prototype),this.error=e.error,this.error_description=e.error_description}}class SlowDownException extends SSOOIDCServiceException{constructor(e){super({name:"SlowDownException",$fault:"client",...e}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,SlowDownException.prototype),this.error=e.error,this.error_description=e.error_description}}class UnauthorizedClientException extends SSOOIDCServiceException{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,UnauthorizedClientException.prototype),this.error=e.error,this.error_description=e.error_description}}class UnsupportedGrantTypeException extends SSOOIDCServiceException{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRequestRegionException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e}),this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestRegionException.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class InvalidClientMetadataException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,InvalidClientMetadataException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRedirectUriException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e}),this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,InvalidRedirectUriException.prototype),this.error=e.error,this.error_description=e.error_description}}const CreateTokenRequestFilterSensitiveLog=e=>({...e,...e.clientSecret&&{clientSecret:u.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:u.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:u.SENSITIVE_STRING}}),CreateTokenResponseFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:u.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:u.SENSITIVE_STRING},...e.idToken&&{idToken:u.SENSITIVE_STRING}}),se_CreateTokenCommand=async(e,t)=>{const i=(0,c.requestBuilder)(e,t);let n;return i.bp("/token"),n=JSON.stringify((0,u.take)(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>(0,u._json)(e)})),i.m("POST").h({"content-type":"application/json"}).b(n),i.build()},de_CreateTokenCommand=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return de_CommandError(e,t);const i=(0,u.map)({$metadata:deserializeMetadata(e)}),n=(0,u.expectNonNull)((0,u.expectObject)(await(0,h.parseJsonBody)(e.body,t)),"body"),o=(0,u.take)(n,{accessToken:u.expectString,expiresIn:u.expectInt32,idToken:u.expectString,refreshToken:u.expectString,tokenType:u.expectString});return Object.assign(i,o),i},de_CommandError=async(e,t)=>{const i={...e,body:await(0,h.parseJsonErrorBody)(e.body,t)},n=(0,h.loadRestJsonErrorCode)(e,i.body);switch(n){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await de_AccessDeniedExceptionRes(i,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await de_AuthorizationPendingExceptionRes(i,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(i,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await de_InternalServerExceptionRes(i,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await de_InvalidClientExceptionRes(i,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await de_InvalidGrantExceptionRes(i,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await de_InvalidRequestExceptionRes(i,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await de_InvalidScopeExceptionRes(i,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await de_SlowDownExceptionRes(i,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await de_UnauthorizedClientExceptionRes(i,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await de_UnsupportedGrantTypeExceptionRes(i,t);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await de_InvalidRequestRegionExceptionRes(i,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await de_InvalidClientMetadataExceptionRes(i,t);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await de_InvalidRedirectUriExceptionRes(i,t);default:const o=i.body;return oe({output:e,parsedBody:o,errorCode:n})}},oe=(0,u.withBaseException)(SSOOIDCServiceException),de_AccessDeniedExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new AccessDeniedException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_AuthorizationPendingExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new AuthorizationPendingException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_ExpiredTokenExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new ExpiredTokenException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InternalServerExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new InternalServerException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InvalidClientExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new InvalidClientException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InvalidClientMetadataExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new InvalidClientMetadataException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InvalidGrantExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new InvalidGrantException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InvalidRedirectUriExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new InvalidRedirectUriException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InvalidRequestExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new InvalidRequestException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InvalidRequestRegionExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{endpoint:u.expectString,error:u.expectString,error_description:u.expectString,region:u.expectString});Object.assign(i,o);const r=new InvalidRequestRegionException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_InvalidScopeExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new InvalidScopeException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_SlowDownExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new SlowDownException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_UnauthorizedClientExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new UnauthorizedClientException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},de_UnsupportedGrantTypeExceptionRes=async(e,t)=>{const i=(0,u.map)({}),n=e.body,o=(0,u.take)(n,{error:u.expectString,error_description:u.expectString});Object.assign(i,o);const r=new UnsupportedGrantTypeException({$metadata:deserializeMetadata(e),...i});return(0,u.decorateServiceException)(r,e.body)},deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});class CreateTokenCommand extends(u.Command.classBuilder().ep({...m}).m((function(e,t,i,n){return[(0,ne.TM)(i,this.serialize,this.deserialize),(0,p.rD)(i,e.getEndpointParameterInstructions())]})).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog,CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build()){}}};
package/dist/563.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=563,exports.ids=[563],exports.modules={"./node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js":(e,t,s)=>{s.d(t,{GetRoleCredentialsCommand:()=>GetRoleCredentialsCommand,SSOClient:()=>SSOClient});var o=s("./node_modules/@smithy/middleware-endpoint/dist-es/index.js"),n=s("./node_modules/@smithy/middleware-serde/dist-es/index.js"),i=s("./node_modules/@smithy/smithy-client/dist-es/index.js");const r={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class SSOServiceException extends i.ServiceException{constructor(e){super(e),Object.setPrototypeOf(this,SSOServiceException.prototype)}}class InvalidRequestException extends SSOServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestException.prototype)}}class ResourceNotFoundException extends SSOServiceException{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}class TooManyRequestsException extends SSOServiceException{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}class UnauthorizedException extends SSOServiceException{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,UnauthorizedException.prototype)}}const GetRoleCredentialsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:i.SENSITIVE_STRING}}),RoleCredentialsFilterSensitiveLog=e=>({...e,...e.secretAccessKey&&{secretAccessKey:i.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:i.SENSITIVE_STRING}}),GetRoleCredentialsResponseFilterSensitiveLog=e=>({...e,...e.roleCredentials&&{roleCredentials:RoleCredentialsFilterSensitiveLog(e.roleCredentials)}});var d=s("./node_modules/@aws-sdk/core/dist-cjs/index.js"),a=s("./node_modules/@smithy/core/dist-es/index.js");const se_GetRoleCredentialsCommand=async(e,t)=>{const s=(0,a.requestBuilder)(e,t),o=(0,i.map)({},isSerializableHeaderValue,{[g]:e[l]});s.bp("/federation/credentials");const n=(0,i.map)({[m]:[,(0,i.expectNonNull)(e[h],"roleName")],[p]:[,(0,i.expectNonNull)(e[u],"accountId")]});return s.m("GET").h(o).q(n).b(undefined),s.build()},de_GetRoleCredentialsCommand=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return de_CommandError(e,t);const s=(0,i.map)({$metadata:deserializeMetadata(e)}),o=(0,i.expectNonNull)((0,i.expectObject)(await(0,d.parseJsonBody)(e.body,t)),"body"),n=(0,i.take)(o,{roleCredentials:i._json});return Object.assign(s,n),s},de_CommandError=async(e,t)=>{const s={...e,body:await(0,d.parseJsonErrorBody)(e.body,t)},o=(0,d.loadRestJsonErrorCode)(e,s.body);switch(o){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(s,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await de_ResourceNotFoundExceptionRes(s,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(s,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(s,t);default:const n=s.body;return c({output:e,parsedBody:n,errorCode:o})}},c=(0,i.withBaseException)(SSOServiceException),de_InvalidRequestExceptionRes=async(e,t)=>{const s=(0,i.map)({}),o=e.body,n=(0,i.take)(o,{message:i.expectString});Object.assign(s,n);const r=new InvalidRequestException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(r,e.body)},de_ResourceNotFoundExceptionRes=async(e,t)=>{const s=(0,i.map)({}),o=e.body,n=(0,i.take)(o,{message:i.expectString});Object.assign(s,n);const r=new ResourceNotFoundException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(r,e.body)},de_TooManyRequestsExceptionRes=async(e,t)=>{const s=(0,i.map)({}),o=e.body,n=(0,i.take)(o,{message:i.expectString});Object.assign(s,n);const r=new TooManyRequestsException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(r,e.body)},de_UnauthorizedExceptionRes=async(e,t)=>{const s=(0,i.map)({}),o=e.body,n=(0,i.take)(o,{message:i.expectString});Object.assign(s,n);const r=new UnauthorizedException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(r,e.body)},deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),isSerializableHeaderValue=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),u="accountId",l="accessToken",p="account_id",h="roleName",m="role_name",g="x-amz-sso_bearer_token";class GetRoleCredentialsCommand extends(i.Command.classBuilder().ep({...r}).m((function(e,t,s,i){return[(0,n.TM)(s,this.serialize,this.deserialize),(0,o.rD)(s,e.getEndpointParameterInstructions())]})).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog,GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build()){}var y=s("./node_modules/@aws-sdk/middleware-host-header/dist-es/index.js"),S=s("./node_modules/@aws-sdk/middleware-logger/dist-es/index.js"),x=s("./node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js"),f=s("./node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js"),v=s("./node_modules/@smithy/config-resolver/dist-es/index.js"),E=s("./node_modules/@smithy/middleware-content-length/dist-es/index.js"),w=s("./node_modules/@smithy/middleware-retry/dist-es/index.js"),P=s("./node_modules/@smithy/util-middleware/dist-es/index.js");const defaultSSOHttpAuthSchemeParametersProvider=async(e,t,s)=>({operation:(0,P.u)(t).operation,region:await(0,P.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const defaultSSOHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){case"GetRoleCredentials":case"ListAccountRoles":case"ListAccounts":case"Logout":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},b="3.577.0";var I=s("./node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js"),R=s("./node_modules/@smithy/hash-node/dist-es/index.js"),k=s("./node_modules/@smithy/node-config-provider/dist-es/index.js"),C=s("./node_modules/@smithy/node-http-handler/dist-es/index.js"),j=s("./node_modules/@smithy/util-body-length-node/dist-es/index.js"),A=s("./node_modules/@smithy/util-retry/dist-es/index.js"),O=s("./node_modules/@smithy/url-parser/dist-es/index.js"),_=s("./node_modules/@smithy/util-base64/dist-es/index.js"),q=s("./node_modules/@smithy/util-utf8/dist-es/index.js"),D=s("./node_modules/@aws-sdk/util-endpoints/dist-es/index.js"),N=s("./node_modules/@smithy/util-endpoints/dist-es/index.js");const z="required",F="fn",T="argv",U="ref",$=!0,H="isSet",M="booleanEquals",G="error",V="endpoint",B="tree",L="PartitionResult",Z="getAttr",J={[z]:!1,type:"String"},K={[z]:!0,default:!1,type:"Boolean"},W={[U]:"Endpoint"},Y={[F]:M,[T]:[{[U]:"UseFIPS"},!0]},Q={[F]:M,[T]:[{[U]:"UseDualStack"},!0]},X={},ee={[F]:Z,[T]:[{[U]:L},"supportsFIPS"]},te={[U]:L},se={[F]:M,[T]:[!0,{[F]:Z,[T]:[te,"supportsDualStack"]}]},oe=[Y],ne=[Q],ie=[{[U]:"Region"}],re={version:"1.0",parameters:{Region:J,UseDualStack:K,UseFIPS:K,Endpoint:J},rules:[{conditions:[{[F]:H,[T]:[W]}],rules:[{conditions:oe,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:G},{conditions:ne,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:G},{endpoint:{url:W,properties:X,headers:X},type:V}],type:B},{conditions:[{[F]:H,[T]:ie}],rules:[{conditions:[{[F]:"aws.partition",[T]:ie,assign:L}],rules:[{conditions:[Y,Q],rules:[{conditions:[{[F]:M,[T]:[$,ee]},se],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:X,headers:X},type:V}],type:B},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:G}],type:B},{conditions:oe,rules:[{conditions:[{[F]:M,[T]:[ee,$]}],rules:[{conditions:[{[F]:"stringEquals",[T]:[{[F]:Z,[T]:[te,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:X,headers:X},type:V},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:X,headers:X},type:V}],type:B},{error:"FIPS is enabled but this partition does not support FIPS",type:G}],type:B},{conditions:ne,rules:[{conditions:[se],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:X,headers:X},type:V}],type:B},{error:"DualStack is enabled but this partition does not support DualStack",type:G}],type:B},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:X,headers:X},type:V}],type:B}],type:B},{error:"Invalid Configuration: Missing Region",type:G}]},defaultEndpointResolver=(e,t={})=>(0,N.sO)(re,{endpointParams:e,logger:t.logger});N.mw.aws=D.UF;var de=s("./node_modules/@smithy/util-defaults-mode-node/dist-es/index.js");const runtimeConfig_getRuntimeConfig=e=>{(0,i.emitWarningIfUnsupportedVersion)(process.version);const t=(0,de.I)(e),defaultConfigProvider=()=>t().then(i.loadConfigsForDefaultMode),s=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??_.E,base64Encoder:e?.base64Encoder??_.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new d.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new a.NoAuthSigner}],logger:e?.logger??new i.NoOpLogger,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??O.D,utf8Decoder:e?.utf8Decoder??q.ar,utf8Encoder:e?.utf8Encoder??q.Pq}))(e);return(0,d.emitWarningIfUnsupportedVersion)(process.version),{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??j.n,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,I.mJ)({serviceId:s.serviceId,clientVersion:b}),maxAttempts:e?.maxAttempts??(0,k.Z)(w.qs),region:e?.region??(0,k.Z)(v.GG,v.zH),requestHandler:C.$c.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,k.Z)({...w.kN,default:async()=>(await defaultConfigProvider()).retryMode||A.L0}),sha256:e?.sha256??R.V.bind(null,"sha256"),streamCollector:e?.streamCollector??C.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,k.Z)(v.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,k.Z)(v.Ko)}};var ae=s("./node_modules/@aws-sdk/region-config-resolver/dist-es/index.js"),ce=s("./node_modules/@smithy/protocol-http/dist-es/index.js");const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let s=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const s=t.findIndex((t=>t.schemeId===e.schemeId));-1===s?t.push(e):t.splice(s,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){s=e},httpAuthSchemeProvider:()=>s,setCredentials(e){o=e},credentials:()=>o}};class SSOClient extends i.Client{constructor(...[e]){const t=runtimeConfig_getRuntimeConfig(e||{}),s=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});var n;const r=(0,v.TD)(s),c=(0,o.Co)(r),u=(0,w.$z)(c),l=(0,y.OV)(u),p=(0,f.Dc)(l);var h;const m=((e,t)=>{const s={...(0,ae.Rq)(e),...(0,i.getDefaultExtensionConfiguration)(e),...(0,ce.getHttpHandlerExtensionConfiguration)(e),...getHttpAuthExtensionConfiguration(e)};return t.forEach((e=>e.configure(s))),{...e,...(0,ae.$3)(s),...(0,i.resolveDefaultRuntimeConfig)(s),...(0,ce.resolveHttpHandlerRuntimeConfig)(s),...(o=s,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((h=p,{...(0,d.resolveAwsSdkSigV4Config)(h)}),e?.extensions||[]);super(m),this.config=m,this.middlewareStack.use((0,w.ey)(this.config)),this.middlewareStack.use((0,E.vK)(this.config)),this.middlewareStack.use((0,y.TC)(this.config)),this.middlewareStack.use((0,S.Y7)(this.config)),this.middlewareStack.use((0,x.n4)(this.config)),this.middlewareStack.use((0,f.sM)(this.config)),this.middlewareStack.use((0,a.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,a.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return defaultSSOHttpAuthSchemeParametersProvider}getIdentityProviderConfigProvider(){return async e=>new a.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}}}};
package/dist/610.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=610,exports.ids=[610],exports.modules={"./node_modules/@aws-sdk/credential-provider-http/dist-es/index.js":(e,t,s)=>{s.d(t,{fromHttp:()=>fromHttp});var o=s("./node_modules/@smithy/node-http-handler/dist-es/index.js"),n=s("./node_modules/@smithy/property-provider/dist-es/index.js"),r=s("fs/promises"),i=s.n(r);var a=s("./node_modules/@smithy/protocol-http/dist-es/index.js"),c=s("./node_modules/@smithy/smithy-client/dist-es/index.js"),d=s("./node_modules/@smithy/util-stream/dist-es/index.js");const fromHttp=e=>{let t;e.logger?.debug("@aws-sdk/credential-provider-http","fromHttp");const s=e.awsContainerCredentialsRelativeUri??process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI,r=e.awsContainerCredentialsFullUri??process.env.AWS_CONTAINER_CREDENTIALS_FULL_URI,h=e.awsContainerAuthorizationToken??process.env.AWS_CONTAINER_AUTHORIZATION_TOKEN,l=e.awsContainerAuthorizationTokenFile??process.env.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE;if(s&&r&&(console.warn("AWS SDK HTTP credentials provider:","you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),console.warn("awsContainerCredentialsFullUri will take precedence.")),h&&l&&(console.warn("AWS SDK HTTP credentials provider:","you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),console.warn("awsContainerAuthorizationToken will take precedence.")),r)t=r;else{if(!s)throw new n.C1("No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.");t=`http://169.254.170.2${s}`}const p=new URL(t);(e=>{if("https:"!==e.protocol&&"169.254.170.2"!==e.hostname&&"169.254.170.23"!==e.hostname&&"[fd00:ec2::23]"!==e.hostname){if(e.hostname.includes("[")){if("[::1]"===e.hostname||"[0000:0000:0000:0000:0000:0000:0000:0001]"===e.hostname)return}else{if("localhost"===e.hostname)return;const t=e.hostname.split("."),inRange=e=>{const t=parseInt(e,10);return 0<=t&&t<=255};if("127"===t[0]&&inRange(t[1])&&inRange(t[2])&&inRange(t[3])&&4===t.length)return}throw new n.C1("URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]")}})(p);const u=new o.$c({requestTimeout:e.timeout??1e3,connectionTimeout:e.timeout??1e3});return m=async()=>{const e=function createGetRequest(e){return new a.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce(((e,[t,s])=>(e[t]=s,e)),{}),fragment:e.hash})}(p);h?e.headers.Authorization=h:l&&(e.headers.Authorization=(await i().readFile(l)).toString());try{return async function getCredentials(e){const t=e?.headers["content-type"]??e?.headers["Content-Type"]??"";t.includes("json")||console.warn("HTTP credential provider response header content-type was not application/json. Observed: "+t+".");const s=(0,d.c9)(e.body),o=await s.transformToString();if(200===e.statusCode){const e=JSON.parse(o);if("string"!=typeof e.AccessKeyId||"string"!=typeof e.SecretAccessKey||"string"!=typeof e.Token||"string"!=typeof e.Expiration)throw new n.C1("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }");return{accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:(0,c.parseRfc3339DateTime)(e.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(o)}catch(e){}throw Object.assign(new n.C1(`Server responded with status: ${e.statusCode}`),{Code:t.Code,Message:t.Message})}throw new n.C1(`Server responded with status: ${e.statusCode}`)}((await u.handle(e)).response)}catch(e){throw new n.C1(String(e))}},w=e.maxRetries??3,T=e.timeout??1e3,async()=>{for(let e=0;e<w;++e)try{return await m()}catch(e){await new Promise((e=>setTimeout(e,T)))}return await m()};var m,w,T}}};
package/dist/787.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=787,exports.ids=[787],exports.modules={"./node_modules/@aws-sdk/client-sts/dist-es/index.js":(e,t,n)=>{n.d(t,{getDefaultRoleAssumer:()=>defaultRoleAssumers_getDefaultRoleAssumer,getDefaultRoleAssumerWithWebIdentity:()=>defaultRoleAssumers_getDefaultRoleAssumerWithWebIdentity});var s=n("./node_modules/@smithy/middleware-endpoint/dist-es/index.js"),o=n("./node_modules/@smithy/middleware-serde/dist-es/index.js"),i=n("./node_modules/@smithy/smithy-client/dist-es/index.js");const r={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class STSServiceException extends i.ServiceException{constructor(e){super(e),Object.setPrototypeOf(this,STSServiceException.prototype)}}class ExpiredTokenException extends STSServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends STSServiceException{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends STSServiceException{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends STSServiceException{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends STSServiceException{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends STSServiceException{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends STSServiceException{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}class InvalidAuthorizationMessageException extends STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}const CredentialsFilterSensitiveLog=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:i.SENSITIVE_STRING}}),AssumeRoleResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:CredentialsFilterSensitiveLog(e.Credentials)}}),AssumeRoleWithWebIdentityRequestFilterSensitiveLog=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:i.SENSITIVE_STRING}}),AssumeRoleWithWebIdentityResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:CredentialsFilterSensitiveLog(e.Credentials)}});var a=n("./node_modules/@aws-sdk/core/dist-cjs/index.js"),d=n("./node_modules/@smithy/protocol-http/dist-es/index.js");const se_AssumeRoleCommand=async(e,t)=>{const n=l;let s;return s=buildFormUrlencodedString({...se_AssumeRoleRequest(e,t),[p]:h,[U]:u}),buildHttpRpcRequest(t,n,"/",void 0,s)},se_AssumeRoleWithWebIdentityCommand=async(e,t)=>{const n=l;let s;return s=buildFormUrlencodedString({...se_AssumeRoleWithWebIdentityRequest(e,t),[p]:y,[U]:u}),buildHttpRpcRequest(t,n,"/",void 0,s)},de_AssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300)return de_CommandError(e,t);const n=await(0,a.parseXmlBody)(e.body,t);let s={};s=de_AssumeRoleResponse(n.AssumeRoleResult,t);return{$metadata:deserializeMetadata(e),...s}},de_AssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300)return de_CommandError(e,t);const n=await(0,a.parseXmlBody)(e.body,t);let s={};s=de_AssumeRoleWithWebIdentityResponse(n.AssumeRoleWithWebIdentityResult,t);return{$metadata:deserializeMetadata(e),...s}},de_CommandError=async(e,t)=>{const n={...e,body:await(0,a.parseXmlErrorBody)(e.body,t)},s=loadQueryErrorCode(e,n.body);switch(s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await de_IDPRejectedClaimExceptionRes(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await de_InvalidIdentityTokenExceptionRes(n,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await de_IDPCommunicationErrorExceptionRes(n,t);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await de_InvalidAuthorizationMessageExceptionRes(n,t);default:const o=n.body;return c({output:e,parsedBody:o.Error,errorCode:s})}},de_ExpiredTokenExceptionRes=async(e,t)=>{const n=e.body,s=de_ExpiredTokenException(n.Error,t),o=new ExpiredTokenException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},de_IDPCommunicationErrorExceptionRes=async(e,t)=>{const n=e.body,s=de_IDPCommunicationErrorException(n.Error,t),o=new IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},de_IDPRejectedClaimExceptionRes=async(e,t)=>{const n=e.body,s=de_IDPRejectedClaimException(n.Error,t),o=new IDPRejectedClaimException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},de_InvalidAuthorizationMessageExceptionRes=async(e,t)=>{const n=e.body,s=de_InvalidAuthorizationMessageException(n.Error,t),o=new InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},de_InvalidIdentityTokenExceptionRes=async(e,t)=>{const n=e.body,s=de_InvalidIdentityTokenException(n.Error,t),o=new InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},de_MalformedPolicyDocumentExceptionRes=async(e,t)=>{const n=e.body,s=de_MalformedPolicyDocumentException(n.Error,t),o=new MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},de_PackedPolicyTooLargeExceptionRes=async(e,t)=>{const n=e.body,s=de_PackedPolicyTooLargeException(n.Error,t),o=new PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},de_RegionDisabledExceptionRes=async(e,t)=>{const n=e.body,s=de_RegionDisabledException(n.Error,t),o=new RegionDisabledException({$metadata:deserializeMetadata(e),...s});return(0,i.decorateServiceException)(o,n)},se_AssumeRoleRequest=(e,t)=>{const n={};if(null!=e[$]&&(n[$]=e[$]),null!=e[O]&&(n[O]=e[O]),null!=e[C]){const s=se_policyDescriptorListType(e[C],t);0===e[C]?.length&&(n.PolicyArns=[]),Object.entries(s).forEach((([e,t])=>{n[`PolicyArns.${e}`]=t}))}if(null!=e[A]&&(n[A]=e[A]),null!=e[P]&&(n[P]=e[P]),null!=e[K]){const s=se_tagListType(e[K],t);0===e[K]?.length&&(n.Tags=[]),Object.entries(s).forEach((([e,t])=>{n[`Tags.${e}`]=t}))}if(null!=e[F]){const s=se_tagKeyListType(e[F],t);0===e[F]?.length&&(n.TransitiveTagKeys=[]),Object.entries(s).forEach((([e,t])=>{n[`TransitiveTagKeys.${e}`]=t}))}if(null!=e[I]&&(n[I]=e[I]),null!=e[M]&&(n[M]=e[M]),null!=e[q]&&(n[q]=e[q]),null!=e[W]&&(n[W]=e[W]),null!=e[T]){const s=se_ProvidedContextsListType(e[T],t);0===e[T]?.length&&(n.ProvidedContexts=[]),Object.entries(s).forEach((([e,t])=>{n[`ProvidedContexts.${e}`]=t}))}return n},se_AssumeRoleWithWebIdentityRequest=(e,t)=>{const n={};if(null!=e[$]&&(n[$]=e[$]),null!=e[O]&&(n[O]=e[O]),null!=e[V]&&(n[V]=e[V]),null!=e[R]&&(n[R]=e[R]),null!=e[C]){const s=se_policyDescriptorListType(e[C],t);0===e[C]?.length&&(n.PolicyArns=[]),Object.entries(s).forEach((([e,t])=>{n[`PolicyArns.${e}`]=t}))}return null!=e[A]&&(n[A]=e[A]),null!=e[P]&&(n[P]=e[P]),n},se_policyDescriptorListType=(e,t)=>{const n={};let s=1;for(const o of e){if(null===o)continue;const e=se_PolicyDescriptorType(o,t);Object.entries(e).forEach((([e,t])=>{n[`member.${s}.${e}`]=t})),s++}return n},se_PolicyDescriptorType=(e,t)=>{const n={};return null!=e[L]&&(n[L]=e[L]),n},se_ProvidedContext=(e,t)=>{const n={};return null!=e[k]&&(n[k]=e[k]),null!=e[v]&&(n[v]=e[v]),n},se_ProvidedContextsListType=(e,t)=>{const n={};let s=1;for(const t of e){if(null===t)continue;const e=se_ProvidedContext(t);Object.entries(e).forEach((([e,t])=>{n[`member.${s}.${e}`]=t})),s++}return n},se_Tag=(e,t)=>{const n={};return null!=e[b]&&(n[b]=e[b]),null!=e[N]&&(n[N]=e[N]),n},se_tagKeyListType=(e,t)=>{const n={};let s=1;for(const t of e)null!==t&&(n[`member.${s}`]=t,s++);return n},se_tagListType=(e,t)=>{const n={};let s=1;for(const t of e){if(null===t)continue;const e=se_Tag(t);Object.entries(e).forEach((([e,t])=>{n[`member.${s}.${e}`]=t})),s++}return n},de_AssumedRoleUser=(e,t)=>{const n={};return null!=e[g]&&(n[g]=(0,i.expectString)(e[g])),null!=e[x]&&(n[x]=(0,i.expectString)(e[x])),n},de_AssumeRoleResponse=(e,t)=>{const n={};return null!=e[E]&&(n[E]=de_Credentials(e[E],t)),null!=e[S]&&(n[S]=de_AssumedRoleUser(e[S])),null!=e[D]&&(n[D]=(0,i.strictParseInt32)(e[D])),null!=e[W]&&(n[W]=(0,i.expectString)(e[W])),n},de_AssumeRoleWithWebIdentityResponse=(e,t)=>{const n={};return null!=e[E]&&(n[E]=de_Credentials(e[E],t)),null!=e[z]&&(n[z]=(0,i.expectString)(e[z])),null!=e[S]&&(n[S]=de_AssumedRoleUser(e[S])),null!=e[D]&&(n[D]=(0,i.strictParseInt32)(e[D])),null!=e[j]&&(n[j]=(0,i.expectString)(e[j])),null!=e[f]&&(n[f]=(0,i.expectString)(e[f])),null!=e[W]&&(n[W]=(0,i.expectString)(e[W])),n},de_Credentials=(e,t)=>{const n={};return null!=e[m]&&(n[m]=(0,i.expectString)(e[m])),null!=e[_]&&(n[_]=(0,i.expectString)(e[_])),null!=e[H]&&(n[H]=(0,i.expectString)(e[H])),null!=e[w]&&(n[w]=(0,i.expectNonNull)((0,i.parseRfc3339DateTimeWithOffset)(e[w]))),n},de_ExpiredTokenException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},de_IDPCommunicationErrorException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},de_IDPRejectedClaimException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},de_InvalidAuthorizationMessageException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},de_InvalidIdentityTokenException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},de_MalformedPolicyDocumentException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},de_PackedPolicyTooLargeException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},de_RegionDisabledException=(e,t)=>{const n={};return null!=e[G]&&(n[G]=(0,i.expectString)(e[G])),n},deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),c=(0,i.withBaseException)(STSServiceException),buildHttpRpcRequest=async(e,t,n,s,o)=>{const{hostname:i,protocol:r="https",port:a,path:c}=await e.endpoint(),l={protocol:r,hostname:i,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return void 0!==s&&(l.hostname=s),void 0!==o&&(l.body=o),new d.HttpRequest(l)},l={"content-type":"application/x-www-form-urlencoded"},u="2011-06-15",p="Action",m="AccessKeyId",h="AssumeRole",g="AssumedRoleId",S="AssumedRoleUser",y="AssumeRoleWithWebIdentity",x="Arn",f="Audience",E="Credentials",v="ContextAssertion",P="DurationSeconds",w="Expiration",I="ExternalId",b="Key",A="Policy",C="PolicyArns",k="ProviderArn",T="ProvidedContexts",R="ProviderId",D="PackedPolicySize",j="Provider",$="RoleArn",O="RoleSessionName",_="SecretAccessKey",z="SubjectFromWebIdentityToken",W="SourceIdentity",M="SerialNumber",H="SessionToken",K="Tags",q="TokenCode",F="TransitiveTagKeys",U="Version",N="Value",V="WebIdentityToken",L="arn",G="message",buildFormUrlencodedString=e=>Object.entries(e).map((([e,t])=>(0,i.extendedEncodeURIComponent)(e)+"="+(0,i.extendedEncodeURIComponent)(t))).join("&"),loadQueryErrorCode=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class AssumeRoleCommand extends(i.Command.classBuilder().ep({...r}).m((function(e,t,n,i){return[(0,o.TM)(n,this.serialize,this.deserialize),(0,s.rD)(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build()){}class AssumeRoleWithWebIdentityCommand extends(i.Command.classBuilder().ep({...r}).m((function(e,t,n,i){return[(0,o.TM)(n,this.serialize,this.deserialize),(0,s.rD)(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog,AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build()){}const B="us-east-1",resolveRegion=async(e,t,n)=>{const s="function"==typeof e?await e():e,o="function"==typeof t?await t():t;return n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (provider)`,`${o} (parent client)`,`${B} (STS default)`),s??o??B},getDefaultRoleAssumer=(e,t)=>{let n,s;return async(o,i)=>{if(s=o,!n){const{logger:o=e?.parentClientConfig?.logger,region:i,requestHandler:r=e?.parentClientConfig?.requestHandler,credentialProviderLogger:a}=e,d=await resolveRegion(i,e?.parentClientConfig?.region,a);n=new t({credentialDefaultProvider:()=>async()=>s,region:d,requestHandler:r,logger:o})}const{Credentials:r}=await n.send(new AssumeRoleCommand(i));if(!r||!r.AccessKeyId||!r.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`);return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.SessionToken,expiration:r.Expiration,credentialScope:r.CredentialScope}}},getDefaultRoleAssumerWithWebIdentity=(e,t)=>{let n;return async s=>{if(!n){const{logger:s=e?.parentClientConfig?.logger,region:o,requestHandler:i=e?.parentClientConfig?.requestHandler,credentialProviderLogger:r}=e,a=await resolveRegion(o,e?.parentClientConfig?.region,r);n=new t({region:a,requestHandler:i,logger:s})}const{Credentials:o}=await n.send(new AssumeRoleWithWebIdentityCommand(s));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,credentialScope:o.CredentialScope}}};var Z=n("./node_modules/@aws-sdk/middleware-host-header/dist-es/index.js"),X=n("./node_modules/@aws-sdk/middleware-logger/dist-es/index.js"),J=n("./node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js"),Y=n("./node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js"),Q=n("./node_modules/@smithy/config-resolver/dist-es/index.js"),ee=n("./node_modules/@smithy/core/dist-es/index.js"),te=n("./node_modules/@smithy/middleware-content-length/dist-es/index.js"),ne=n("./node_modules/@smithy/middleware-retry/dist-es/index.js"),se=n("./node_modules/@smithy/util-middleware/dist-es/index.js");const defaultSTSHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,se.u)(t).operation,region:await(0,se.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const defaultSTSHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){case"AssumeRoleWithSAML":case"AssumeRoleWithWebIdentity":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},resolveHttpAuthSchemeConfig=e=>{const t=(n=e,{...n,stsClientCtor:STSClient});var n;return{...(0,a.resolveAwsSdkSigV4Config)(t)}},oe="3.577.0";var ie=n("./node_modules/@aws-sdk/credential-provider-node/dist-es/index.js"),re=n("./node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js"),ae=n("./node_modules/@smithy/hash-node/dist-es/index.js"),de=n("./node_modules/@smithy/node-config-provider/dist-es/index.js"),ce=n("./node_modules/@smithy/node-http-handler/dist-es/index.js"),le=n("./node_modules/@smithy/util-body-length-node/dist-es/index.js"),ue=n("./node_modules/@smithy/util-retry/dist-es/index.js"),pe=n("./node_modules/@smithy/url-parser/dist-es/index.js"),me=n("./node_modules/@smithy/util-base64/dist-es/index.js"),he=n("./node_modules/@smithy/util-utf8/dist-es/index.js"),ge=n("./node_modules/@aws-sdk/util-endpoints/dist-es/index.js"),Se=n("./node_modules/@smithy/util-endpoints/dist-es/index.js");const ye="required",xe="type",fe="fn",Ee="argv",ve="ref",Pe=!1,we=!0,Ie="booleanEquals",be="stringEquals",Ae="sigv4",Ce="us-east-1",ke="endpoint",Te="https://sts.{Region}.{PartitionResult#dnsSuffix}",Re="tree",De="error",je="getAttr",$e={[ye]:!1,[xe]:"String"},Oe={[ye]:!0,default:!1,[xe]:"Boolean"},_e={[ve]:"Endpoint"},ze={[fe]:"isSet",[Ee]:[{[ve]:"Region"}]},We={[ve]:"Region"},Me={[fe]:"aws.partition",[Ee]:[We],assign:"PartitionResult"},He={[ve]:"UseFIPS"},Ke={[ve]:"UseDualStack"},qe={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Ae,signingName:"sts",signingRegion:Ce}]},headers:{}},Fe={},Ue={conditions:[{[fe]:be,[Ee]:[We,"aws-global"]}],[ke]:qe,[xe]:ke},Ne={[fe]:Ie,[Ee]:[He,!0]},Ve={[fe]:Ie,[Ee]:[Ke,!0]},Le={[fe]:je,[Ee]:[{[ve]:"PartitionResult"},"supportsFIPS"]},Ge={[ve]:"PartitionResult"},Be={[fe]:Ie,[Ee]:[!0,{[fe]:je,[Ee]:[Ge,"supportsDualStack"]}]},Ze=[{[fe]:"isSet",[Ee]:[_e]}],Xe=[Ne],Je=[Ve],Ye={version:"1.0",parameters:{Region:$e,UseDualStack:Oe,UseFIPS:Oe,Endpoint:$e,UseGlobalEndpoint:Oe},rules:[{conditions:[{[fe]:Ie,[Ee]:[{[ve]:"UseGlobalEndpoint"},we]},{[fe]:"not",[Ee]:Ze},ze,Me,{[fe]:Ie,[Ee]:[He,Pe]},{[fe]:Ie,[Ee]:[Ke,Pe]}],rules:[{conditions:[{[fe]:be,[Ee]:[We,"ap-northeast-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"ap-south-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"ap-southeast-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"ap-southeast-2"]}],endpoint:qe,[xe]:ke},Ue,{conditions:[{[fe]:be,[Ee]:[We,"ca-central-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"eu-central-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"eu-north-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"eu-west-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"eu-west-2"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"eu-west-3"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"sa-east-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,Ce]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"us-east-2"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"us-west-1"]}],endpoint:qe,[xe]:ke},{conditions:[{[fe]:be,[Ee]:[We,"us-west-2"]}],endpoint:qe,[xe]:ke},{endpoint:{url:Te,properties:{authSchemes:[{name:Ae,signingName:"sts",signingRegion:"{Region}"}]},headers:Fe},[xe]:ke}],[xe]:Re},{conditions:Ze,rules:[{conditions:Xe,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[xe]:De},{conditions:Je,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[xe]:De},{endpoint:{url:_e,properties:Fe,headers:Fe},[xe]:ke}],[xe]:Re},{conditions:[ze],rules:[{conditions:[Me],rules:[{conditions:[Ne,Ve],rules:[{conditions:[{[fe]:Ie,[Ee]:[we,Le]},Be],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Fe,headers:Fe},[xe]:ke}],[xe]:Re},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[xe]:De}],[xe]:Re},{conditions:Xe,rules:[{conditions:[{[fe]:Ie,[Ee]:[Le,we]}],rules:[{conditions:[{[fe]:be,[Ee]:[{[fe]:je,[Ee]:[Ge,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Fe,headers:Fe},[xe]:ke},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Fe,headers:Fe},[xe]:ke}],[xe]:Re},{error:"FIPS is enabled but this partition does not support FIPS",[xe]:De}],[xe]:Re},{conditions:Je,rules:[{conditions:[Be],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Fe,headers:Fe},[xe]:ke}],[xe]:Re},{error:"DualStack is enabled but this partition does not support DualStack",[xe]:De}],[xe]:Re},Ue,{endpoint:{url:Te,properties:Fe,headers:Fe},[xe]:ke}],[xe]:Re}],[xe]:Re},{error:"Invalid Configuration: Missing Region",[xe]:De}]},defaultEndpointResolver=(e,t={})=>(0,Se.sO)(Ye,{endpointParams:e,logger:t.logger});Se.mw.aws=ge.UF;var Qe=n("./node_modules/@smithy/util-defaults-mode-node/dist-es/index.js");const runtimeConfig_getRuntimeConfig=e=>{(0,i.emitWarningIfUnsupportedVersion)(process.version);const t=(0,Qe.I)(e),defaultConfigProvider=()=>t().then(i.loadConfigsForDefaultMode),n=(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??me.E,base64Encoder:e?.base64Encoder??me.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new a.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ee.NoAuthSigner}],logger:e?.logger??new i.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??pe.D,utf8Decoder:e?.utf8Decoder??he.ar,utf8Encoder:e?.utf8Encoder??he.Pq}))(e);return(0,a.emitWarningIfUnsupportedVersion)(process.version),{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??le.n,credentialDefaultProvider:e?.credentialDefaultProvider??ie.v6,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,re.mJ)({serviceId:n.serviceId,clientVersion:oe}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4")||(async e=>await(0,ie.v6)(e?.__config||{})()),signer:new a.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ee.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,de.Z)(ne.qs),region:e?.region??(0,de.Z)(Q.GG,Q.zH),requestHandler:ce.$c.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,de.Z)({...ne.kN,default:async()=>(await defaultConfigProvider()).retryMode||ue.L0}),sha256:e?.sha256??ae.V.bind(null,"sha256"),streamCollector:e?.streamCollector??ce.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,de.Z)(Q.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,de.Z)(Q.Ko)}};var et=n("./node_modules/@aws-sdk/region-config-resolver/dist-es/index.js");const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,s=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));-1===n?t.push(e):t.splice(n,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider:()=>n,setCredentials(e){s=e},credentials:()=>s}};class STSClient extends i.Client{constructor(...[e]){const t=runtimeConfig_getRuntimeConfig(e||{}),n=(o=t,{...o,useDualstackEndpoint:o.useDualstackEndpoint??!1,useFipsEndpoint:o.useFipsEndpoint??!1,useGlobalEndpoint:o.useGlobalEndpoint??!1,defaultSigningName:"sts"});var o;const r=(0,Q.TD)(n),a=(0,s.Co)(r),c=(0,ne.$z)(a),l=(0,Z.OV)(c),u=(0,Y.Dc)(l),p=((e,t)=>{const n={...(0,et.Rq)(e),...(0,i.getDefaultExtensionConfiguration)(e),...(0,d.getHttpHandlerExtensionConfiguration)(e),...getHttpAuthExtensionConfiguration(e)};return t.forEach((e=>e.configure(n))),{...e,...(0,et.$3)(n),...(0,i.resolveDefaultRuntimeConfig)(n),...(0,d.resolveHttpHandlerRuntimeConfig)(n),...(s=n,{httpAuthSchemes:s.httpAuthSchemes(),httpAuthSchemeProvider:s.httpAuthSchemeProvider(),credentials:s.credentials()})};var s})(resolveHttpAuthSchemeConfig(u),e?.extensions||[]);super(p),this.config=p,this.middlewareStack.use((0,ne.ey)(this.config)),this.middlewareStack.use((0,te.vK)(this.config)),this.middlewareStack.use((0,Z.TC)(this.config)),this.middlewareStack.use((0,X.Y7)(this.config)),this.middlewareStack.use((0,J.n4)(this.config)),this.middlewareStack.use((0,Y.sM)(this.config)),this.middlewareStack.use((0,ee.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,ee.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return defaultSTSHttpAuthSchemeParametersProvider}getIdentityProviderConfigProvider(){return async e=>new ee.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}}const getCustomizableStsClientCtor=(e,t)=>t?class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,defaultRoleAssumers_getDefaultRoleAssumer=(e={},t)=>getDefaultRoleAssumer(e,getCustomizableStsClientCtor(STSClient,t)),defaultRoleAssumers_getDefaultRoleAssumerWithWebIdentity=(e={},t)=>getDefaultRoleAssumerWithWebIdentity(e,getCustomizableStsClientCtor(STSClient,t))}};
package/dist/789.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=789,exports.ids=[789],exports.modules={"./node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js":(e,s,n)=>{n.d(s,{fromIni:()=>fromIni});var o=n("./node_modules/@smithy/shared-ini-file-loader/dist-es/index.js"),i=n("./node_modules/@smithy/property-provider/dist-es/index.js");const isAssumeRoleWithSourceProfile=e=>"string"==typeof e.source_profile&&void 0===e.credential_source,isAssumeRoleWithProviderProfile=e=>"string"==typeof e.credential_source&&void 0===e.source_profile,resolveAssumeRoleCredentials=async(e,s,t,r={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini","resolveAssumeRoleCredentials (STS)");const d=s[e];if(!t.roleAssumer){const{getDefaultRoleAssumer:e}=await n.e(787).then(n.bind(n,"./node_modules/@aws-sdk/client-sts/dist-es/index.js"));t.roleAssumer=e({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:t?.parentClientConfig},t.clientPlugins)}const{source_profile:a}=d;if(a&&a in r)throw new i.C1(`Detected a cycle attempting to resolve credentials for profile ${(0,o.Bz)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);const l=a?resolveProfileData(a,s,t,{...r,[a]:!0}):(await((e,s)=>{const o={EcsContainer:e=>n.e(897).then(n.bind(n,"./node_modules/@smithy/credential-provider-imds/dist-es/index.js")).then((({fromContainerMetadata:s})=>s(e))),Ec2InstanceMetadata:e=>n.e(897).then(n.bind(n,"./node_modules/@smithy/credential-provider-imds/dist-es/index.js")).then((({fromInstanceMetadata:s})=>s(e))),Environment:e=>Promise.resolve().then(n.bind(n,"./node_modules/@aws-sdk/credential-provider-env/dist-es/index.js")).then((({fromEnv:s})=>s(e)))};if(e in o)return o[e];throw new i.C1(`Unsupported credential source in profile ${s}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)})(d.credential_source,e)(t))(),c={RoleArn:d.role_arn,RoleSessionName:d.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:d.external_id,DurationSeconds:parseInt(d.duration_seconds||"3600",10)},{mfa_serial:f}=d;if(f){if(!t.mfaCodeProvider)throw new i.C1(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);c.SerialNumber=f,c.TokenCode=await t.mfaCodeProvider(f)}const _=await l;return t.roleAssumer(_,c)},isStaticCredsProfile=e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.aws_access_key_id&&"string"==typeof e.aws_secret_access_key&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,resolveStaticCredentials=(e,s)=>(s?.logger?.debug("@aws-sdk/credential-provider-ini","resolveStaticCredentials"),Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,credentialScope:e.aws_credential_scope})),resolveProfileData=async(e,s,o,t={})=>{const r=s[e];if(Object.keys(t).length>0&&isStaticCredsProfile(r))return resolveStaticCredentials(r,o);if(d=r,Boolean(d)&&"object"==typeof d&&"string"==typeof d.role_arn&&["undefined","string"].indexOf(typeof d.role_session_name)>-1&&["undefined","string"].indexOf(typeof d.external_id)>-1&&["undefined","string"].indexOf(typeof d.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(d)||isAssumeRoleWithProviderProfile(d)))return resolveAssumeRoleCredentials(e,s,o,t);var d;if(isStaticCredsProfile(r))return resolveStaticCredentials(r,o);if((e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.web_identity_token_file&&"string"==typeof e.role_arn&&["undefined","string"].indexOf(typeof e.role_session_name)>-1)(r))return(async(e,s)=>n.e(819).then(n.bind(n,"./node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js")).then((({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})())))(r,o);if((e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.credential_process)(r))return(async(e,s)=>n.e(109).then(n.bind(n,"./node_modules/@aws-sdk/credential-provider-process/dist-es/index.js")).then((({fromProcess:n})=>n({...e,profile:s})())))(o,e);if((e=>e&&("string"==typeof e.sso_start_url||"string"==typeof e.sso_account_id||"string"==typeof e.sso_session||"string"==typeof e.sso_region||"string"==typeof e.sso_role_name))(r))return await(async(e,s={})=>{const{fromSSO:o}=await n.e(791).then(n.bind(n,"./node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js"));return o({profile:e,logger:s.logger})()})(e,o);throw new i.C1(`Profile ${e} could not be found or parsed in shared credentials file.`)},fromIni=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-ini","fromIni");const s=await(0,o.YU)(e);return resolveProfileData((0,o.Bz)(e),s,e)}}};
package/dist/791.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=791,exports.ids=[791],exports.modules={"./node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js":(e,s,o)=>{o.d(s,{fromSSO:()=>fromSSO});var n=o("./node_modules/@smithy/property-provider/dist-es/index.js"),t=o("./node_modules/@smithy/shared-ini-file-loader/dist-es/index.js");const i="To refresh this SSO session run 'aws sso login' with the corresponding profile.",r={},getNewSsoOidcToken=async(e,s)=>{const{CreateTokenCommand:n}=await o.e(526).then(o.bind(o,"./node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js")),t=await(async e=>{const{SSOOIDCClient:s}=await o.e(526).then(o.bind(o,"./node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js"));if(r[e])return r[e];const n=new s({region:e});return r[e]=n,n})(s);return t.send(new n({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},validateTokenExpiry=e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new n.Jh(`Token is expired. ${i}`,!1)},validateTokenKey=(e,s,o=!1)=>{if(void 0===s)throw new n.Jh(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${i}`,!1)};var a=o("fs");const{writeFile:c}=a.promises,l=new Date(0),fromSso=(e={})=>async()=>{e.logger?.debug("@aws-sdk/token-providers","fromSso");const s=await(0,t.YU)(e),o=(0,t.Bz)(e),r=s[o];if(!r)throw new n.Jh(`Profile '${o}' could not be found in shared credentials file.`,!1);if(!r.sso_session)throw new n.Jh(`Profile '${o}' is missing required property 'sso_session'.`);const a=r.sso_session,d=(await(0,t.qw)(e))[a];if(!d)throw new n.Jh(`Sso session '${a}' could not be found in shared credentials file.`,!1);for(const e of["sso_start_url","sso_region"])if(!d[e])throw new n.Jh(`Sso session '${a}' is missing required property '${e}'.`,!1);d.sso_start_url;const w=d.sso_region;let f;try{f=await(0,t.vf)(a)}catch(e){throw new n.Jh(`The SSO session token associated with profile=${o} was not found or is invalid. ${i}`,!1)}validateTokenKey("accessToken",f.accessToken),validateTokenKey("expiresAt",f.expiresAt);const{accessToken:h,expiresAt:u}=f,g={token:h,expiration:new Date(u)};if(g.expiration.getTime()-Date.now()>3e5)return g;if(Date.now()-l.getTime()<3e4)return validateTokenExpiry(g),g;validateTokenKey("clientId",f.clientId,!0),validateTokenKey("clientSecret",f.clientSecret,!0),validateTokenKey("refreshToken",f.refreshToken,!0);try{l.setTime(Date.now());const e=await getNewSsoOidcToken(f,w);validateTokenKey("accessToken",e.accessToken),validateTokenKey("expiresIn",e.expiresIn);const s=new Date(Date.now()+1e3*e.expiresIn);try{await((e,s)=>{const o=(0,t.C9)(e),n=JSON.stringify(s,null,2);return c(o,n)})(a,{...f,accessToken:e.accessToken,expiresAt:s.toISOString(),refreshToken:e.refreshToken})}catch(e){}return{token:e.accessToken,expiration:s}}catch(e){return validateTokenExpiry(g),g}},d=!1,resolveSSOCredentials=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:i,ssoRegion:r,ssoRoleName:a,ssoClient:c,clientConfig:l,profile:w})=>{let f;const h="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{const e=await fromSso({profile:w})();f={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new n.C1(e.message,d)}else try{f=await(0,t.vf)(e)}catch(e){throw new n.C1(`The SSO session associated with this profile is invalid. ${h}`,d)}if(new Date(f.expiresAt).getTime()-Date.now()<=0)throw new n.C1(`The SSO session associated with this profile has expired. ${h}`,d);const{accessToken:u}=f,{SSOClient:g,GetRoleCredentialsCommand:p}=await o.e(563).then(o.bind(o,"./node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js")),_=c||new g(Object.assign({},l??{},{region:l?.region??r}));let S;try{S=await _.send(new p({accountId:i,roleName:a,accessToken:u}))}catch(e){throw n.C1.from(e,d)}const{roleCredentials:{accessKeyId:m,secretAccessKey:k,sessionToken:T,expiration:C,credentialScope:y}={}}=S;if(!(m&&k&&T&&C))throw new n.C1("SSO returns an invalid temporary credential.",d);return{accessKeyId:m,secretAccessKey:k,sessionToken:T,expiration:new Date(C),credentialScope:y}},fromSSO=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-sso","fromSSO");const{ssoStartUrl:s,ssoAccountId:o,ssoRegion:i,ssoRoleName:r,ssoSession:a}=e,{ssoClient:c}=e,l=(0,t.Bz)(e);if(s||o||i||r||a){if(s&&o&&i&&r)return resolveSSOCredentials({ssoStartUrl:s,ssoSession:a,ssoAccountId:o,ssoRegion:i,ssoRoleName:r,ssoClient:c,clientConfig:e.clientConfig,profile:l});throw new n.C1('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"')}{const o=(await(0,t.YU)(e))[l];if(!o)throw new n.C1(`Profile ${l} was not found.`);if(!(d=o)||"string"!=typeof d.sso_start_url&&"string"!=typeof d.sso_account_id&&"string"!=typeof d.sso_session&&"string"!=typeof d.sso_region&&"string"!=typeof d.sso_role_name)throw new n.C1(`Profile ${l} is not configured with SSO credentials.`);if(o?.sso_session){const r=(await(0,t.qw)(e))[o.sso_session],a=` configurations in profile ${l} and sso-session ${o.sso_session}`;if(i&&i!==r.sso_region)throw new n.C1("Conflicting SSO region"+a,!1);if(s&&s!==r.sso_start_url)throw new n.C1("Conflicting SSO start_url"+a,!1);o.sso_region=r.sso_region,o.sso_start_url=r.sso_start_url}const{sso_start_url:r,sso_account_id:a,sso_region:w,sso_role_name:f,sso_session:h}=(e=>{const{sso_start_url:s,sso_account_id:o,sso_region:t,sso_role_name:i}=e;if(!(s&&o&&t&&i))throw new n.C1(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e})(o);return resolveSSOCredentials({ssoStartUrl:r,ssoSession:h,ssoAccountId:a,ssoRegion:w,ssoRoleName:f,ssoClient:c,clientConfig:e.clientConfig,profile:l})}var d}}};
package/dist/819.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=819,exports.ids=[819],exports.modules={"./node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js":(e,n,o)=>{o.r(n),o.d(n,{fromTokenFile:()=>fromTokenFile,fromWebToken:()=>fromWebToken});var i=o("./node_modules/@smithy/property-provider/dist-es/index.js"),s=o("fs");const fromWebToken=e=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity","fromWebToken");const{roleArn:n,roleSessionName:i,webIdentityToken:s,providerId:r,policyArns:t,policy:d,durationSeconds:l}=e;let{roleAssumerWithWebIdentity:c}=e;if(!c){const{getDefaultRoleAssumerWithWebIdentity:n}=await o.e(787).then(o.bind(o,"./node_modules/@aws-sdk/client-sts/dist-es/index.js"));c=n({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return c({RoleArn:n,RoleSessionName:i??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:r,PolicyArns:t,Policy:d,DurationSeconds:l})},fromTokenFile=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity","fromTokenFile");const n=e?.webIdentityTokenFile??process.env.AWS_WEB_IDENTITY_TOKEN_FILE,o=e?.roleArn??process.env.AWS_ROLE_ARN,r=e?.roleSessionName??process.env.AWS_ROLE_SESSION_NAME;if(!n||!o)throw new i.C1("Web identity configuration not specified");return fromWebToken({...e,webIdentityToken:(0,s.readFileSync)(n,{encoding:"ascii"}),roleArn:o,roleSessionName:r})()}}};
package/dist/897.index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";exports.id=897,exports.ids=[897],exports.modules={"./node_modules/@smithy/credential-provider-imds/dist-es/index.js":(e,t,a)=>{a.r(t),a.d(t,{DEFAULT_MAX_RETRIES:()=>c,DEFAULT_TIMEOUT:()=>i,ENV_CMDS_AUTH_TOKEN:()=>u,ENV_CMDS_FULL_URI:()=>d,ENV_CMDS_RELATIVE_URI:()=>l,Endpoint:()=>f,fromContainerMetadata:()=>fromContainerMetadata,fromInstanceMetadata:()=>fromInstanceMetadata,getInstanceMetadataEndpoint:()=>getInstanceMetadataEndpoint,httpRequest:()=>httpRequest,providerConfigFromInit:()=>providerConfigFromInit});var n=a("./node_modules/@smithy/property-provider/dist-es/index.js"),r=a("url"),o=a("buffer"),s=a("http");function httpRequest(e){return new Promise(((t,a)=>{const r=(0,s.request)({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});r.on("error",(e=>{a(Object.assign(new n.mZ("Unable to connect to instance metadata service"),e)),r.destroy()})),r.on("timeout",(()=>{a(new n.mZ("TimeoutError from instance metadata service")),r.destroy()})),r.on("response",(e=>{const{statusCode:s=400}=e;(s<200||300<=s)&&(a(Object.assign(new n.mZ("Error response received from instance metadata service"),{statusCode:s})),r.destroy());const i=[];e.on("data",(e=>{i.push(e)})),e.on("end",(()=>{t(o.Buffer.concat(i)),r.destroy()}))})),r.end()}))}const isImdsCredentials=e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.AccessKeyId&&"string"==typeof e.SecretAccessKey&&"string"==typeof e.Token&&"string"==typeof e.Expiration,fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),i=1e3,c=0,providerConfigFromInit=({maxRetries:e=c,timeout:t=i})=>({maxRetries:e,timeout:t}),retry=(e,t)=>{let a=e();for(let n=0;n<t;n++)a=a.catch(e);return a},d="AWS_CONTAINER_CREDENTIALS_FULL_URI",l="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",u="AWS_CONTAINER_AUTHORIZATION_TOKEN",fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:a}=providerConfigFromInit(e);return()=>retry((async()=>{const e=await getCmdsUri(),a=JSON.parse(await requestFromEcsImds(t,e));if(!isImdsCredentials(a))throw new n.C1("Invalid response received from instance metadata service.");return fromImdsCredentials(a)}),a)},requestFromEcsImds=async(e,t)=>{process.env[u]&&(t.headers={...t.headers,Authorization:process.env[u]});return(await httpRequest({...t,timeout:e})).toString()},p={localhost:!0,"127.0.0.1":!0},m={"http:":!0,"https:":!0},getCmdsUri=async()=>{if(process.env[l])return{hostname:"169.254.170.2",path:process.env[l]};if(process.env[d]){const e=(0,r.parse)(process.env[d]);if(!e.hostname||!(e.hostname in p))throw new n.C1(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in m))throw new n.C1(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new n.C1(`The container metadata credential provider cannot be used unless the ${l} or ${d} environment variable is set`,!1)};var h=a("./node_modules/@smithy/node-config-provider/dist-es/index.js");class InstanceMetadataV1FallbackError extends n.C1{constructor(e,t=!0){super(e,t),this.tryNextLink=t,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,InstanceMetadataV1FallbackError.prototype)}}var f,v=a("./node_modules/@smithy/url-parser/dist-es/index.js");!function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"}(f||(f={}));const w={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:e=>e.ec2_metadata_service_endpoint,default:void 0};var E;!function(e){e.IPv4="IPv4",e.IPv6="IPv6"}(E||(E={}));const _={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE,configFileSelector:e=>e.ec2_metadata_service_endpoint_mode,default:E.IPv4},getInstanceMetadataEndpoint=async()=>(0,v.D)(await getFromEndpointConfig()||await getFromEndpointModeConfig()),getFromEndpointConfig=async()=>(0,h.Z)(w)(),getFromEndpointModeConfig=async()=>{const e=await(0,h.Z)(_)();switch(e){case E.IPv4:return f.IPv4;case E.IPv6:return f.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(E)}`)}},getExtendedInstanceMetadataCredentials=(e,t)=>{const a=300+Math.floor(300*Math.random()),n=new Date(Date.now()+1e3*a);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);const r=e.originalExpiration??e.expiration;return{...e,...r?{originalExpiration:r}:{},expiration:n}},I="/latest/meta-data/iam/security-credentials/",y="AWS_EC2_METADATA_V1_DISABLED",g="ec2_metadata_v1_disabled",A="x-aws-ec2-metadata-token",fromInstanceMetadata=(e={})=>((e,t={})=>{const a=t?.logger||console;let n;return async()=>{let t;try{t=await e(),t.expiration&&t.expiration.getTime()<Date.now()&&(t=getExtendedInstanceMetadataCredentials(t,a))}catch(e){if(!n)throw e;a.warn("Credential renew failed: ",e),t=getExtendedInstanceMetadataCredentials(n,a)}return n=t,t}})(getInstanceImdsProvider(e),{logger:e.logger}),getInstanceImdsProvider=e=>{let t=!1;const{logger:a,profile:r}=e,{timeout:o,maxRetries:s}=providerConfigFromInit(e),getCredentials=async(a,o)=>{if(t||null==o.headers?.[A]){let t=!1,a=!1;const o=await(0,h.Z)({environmentVariableSelector:e=>{const t=e[y];if(a=!!t&&"false"!==t,void 0===t)throw new n.C1(`${y} not set in env, checking config file next.`);return a},configFileSelector:e=>{const a=e[g];return t=!!a&&"false"!==a,t},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||o){const n=[];throw e.ec2MetadataV1Disabled&&n.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),t&&n.push(`config file profile (${g})`),a&&n.push(`process environment variable (${y})`),new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${n.join(", ")}].`)}}const s=(await retry((async()=>{let e;try{e=await getProfile(o)}catch(e){throw 401===e.statusCode&&(t=!1),e}return e}),a)).trim();return retry((async()=>{let e;try{e=await getCredentialsFromProfile(s,o)}catch(e){throw 401===e.statusCode&&(t=!1),e}return e}),a)};return async()=>{const e=await getInstanceMetadataEndpoint();if(t)return a?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),getCredentials(s,{...e,timeout:o});{let n;try{n=(await getMetadataToken({...e,timeout:o})).toString()}catch(n){if(400===n?.statusCode)throw Object.assign(n,{message:"EC2 Metadata token request returned error"});return("TimeoutError"===n.message||[403,404,405].includes(n.statusCode))&&(t=!0),a?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),getCredentials(s,{...e,timeout:o})}return getCredentials(s,{...e,headers:{[A]:n},timeout:o})}}},getMetadataToken=async e=>httpRequest({...e,path:"/latest/api/token",method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),getProfile=async e=>(await httpRequest({...e,path:I})).toString(),getCredentialsFromProfile=async(e,t)=>{const a=JSON.parse((await httpRequest({...t,path:I+e})).toString());if(!isImdsCredentials(a))throw new n.C1("Invalid response received from instance metadata service.");return fromImdsCredentials(a)}}};