@shumai-one/shumai 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/chunk-03zkxckm.js +2 -0
- package/bin/chunk-04nqnkzs.js +4 -0
- package/bin/chunk-157axqz1.js +1 -0
- package/bin/{chunk-zp5b1mb6.js → chunk-1tesbv8w.js} +2 -2
- package/bin/chunk-23780yj6.js +3 -0
- package/bin/{chunk-mt532a33.js → chunk-24da4wg9.js} +1 -1
- package/bin/chunk-24nx3krz.js +2 -0
- package/bin/{chunk-5t05jpna.js → chunk-26am2rzm.js} +1 -1
- package/bin/{chunk-vre5andt.js → chunk-2pt9h882.js} +3 -3
- package/bin/{chunk-xyh5dkr5.js → chunk-2rrcdhkj.js} +1 -1
- package/bin/{chunk-6v6c2921.js → chunk-2w2bknn2.js} +4 -4
- package/bin/{chunk-f22nrm6r.js → chunk-3ahax79y.js} +4 -4
- package/bin/{chunk-1k16xsqq.js → chunk-3wcvema0.js} +6 -6
- package/bin/{chunk-20anqpf1.js → chunk-40tmh04g.js} +2 -2
- package/bin/chunk-45p7d22e.js +2 -0
- package/bin/chunk-461gcgrs.js +2 -0
- package/bin/{chunk-2g5qdx4s.js → chunk-4bc3gqmn.js} +2 -2
- package/bin/{chunk-m5cpsm28.js → chunk-4nkwe7dz.js} +2 -2
- package/bin/{chunk-gptzcgte.js → chunk-59ayg5am.js} +1 -1
- package/bin/{chunk-5patxztz.js → chunk-5ebb2pdf.js} +3 -3
- package/bin/{chunk-d7mgjqf8.js → chunk-5y3kx4kk.js} +1 -1
- package/bin/{chunk-4437dnfa.js → chunk-68xsb3t8.js} +1 -1
- package/bin/{chunk-m2dtwvg0.js → chunk-6hs63sva.js} +31 -31
- package/bin/{chunk-628k58ek.js → chunk-6hzktewz.js} +2 -2
- package/bin/{chunk-0e8xg41c.js → chunk-6pwf7qa6.js} +1 -1
- package/bin/{chunk-q5mkbnr9.js → chunk-6sq6dfa1.js} +2 -2
- package/bin/chunk-87secbzy.js +1 -0
- package/bin/chunk-8pykp70z.js +1 -0
- package/bin/{chunk-zhe16jvg.js → chunk-8ts3xkme.js} +1 -1
- package/bin/{chunk-ehhsezbj.js → chunk-909h3qzp.js} +2 -2
- package/bin/{chunk-j909v9p5.js → chunk-929abwgr.js} +1 -1
- package/bin/{chunk-0ttr4a6b.js → chunk-9ca8a5f2.js} +2 -2
- package/bin/{chunk-6vvs18bw.js → chunk-9fyb95r5.js} +1 -1
- package/bin/{chunk-kzsdp31a.js → chunk-a8bymrv1.js} +2 -2
- package/bin/chunk-axeq2pq5.js +2 -0
- package/bin/{chunk-z7p7s55t.js → chunk-b3tkvdfk.js} +2 -2
- package/bin/{chunk-r1m4q8vw.js → chunk-b5r0be06.js} +2 -2
- package/bin/{chunk-z8mmqfm4.js → chunk-b6dbqs39.js} +1 -1
- package/bin/{chunk-0yv0nnmh.js → chunk-b88tdt79.js} +2 -2
- package/bin/{chunk-grsgkkrb.js → chunk-bcyvxp1c.js} +6 -6
- package/bin/{chunk-3cvbb6kh.js → chunk-bn0taqr3.js} +2 -2
- package/bin/chunk-cb37q6t0.js +1 -0
- package/bin/{chunk-sg7n2g3z.js → chunk-cdk8vqeg.js} +4 -4
- package/bin/chunk-cfqny70c.js +3 -0
- package/bin/{chunk-3m6ch1x5.js → chunk-cqnected.js} +2 -2
- package/bin/{chunk-hr2027z3.js → chunk-cvfznrnt.js} +8 -8
- package/bin/chunk-d1q1tn36.js +1 -0
- package/bin/chunk-d1rjpbgv.js +2 -0
- package/bin/{chunk-asgxtqf0.js → chunk-eshwjf91.js} +2 -2
- package/bin/{chunk-1dt700ws.js → chunk-fa9yq17g.js} +49 -49
- package/bin/{chunk-rkq6jvhb.js → chunk-fnkkwna8.js} +2 -2
- package/bin/{chunk-zfqz72sd.js → chunk-fpjvr3qw.js} +1 -1
- package/bin/{chunk-5jbx9gqe.js → chunk-fsr83nb1.js} +1 -1
- package/bin/{chunk-80qz30dc.js → chunk-fxg81vtx.js} +2 -2
- package/bin/chunk-fznchvm7.js +1 -0
- package/bin/chunk-g2z0c39g.js +1 -0
- package/bin/chunk-gnt9gewm.js +2 -0
- package/bin/{chunk-h9x81yp6.js → chunk-gvcjqcjf.js} +1 -1
- package/bin/chunk-hbnpx0a5.js +1 -0
- package/bin/chunk-hgy9rqt1.js +1 -0
- package/bin/chunk-hk659cg2.css +1 -0
- package/bin/{chunk-03bfjh8k.js → chunk-hn2g40r6.js} +2 -2
- package/bin/{chunk-exgtwask.js → chunk-hsx4pns6.js} +1 -1
- package/bin/{chunk-6ns2vhbd.js → chunk-hy5ncvpf.js} +2 -2
- package/bin/{chunk-y03z5rrg.js → chunk-j420aqk8.js} +3 -3
- package/bin/{chunk-tcat7q9p.js → chunk-jt6v15wx.js} +2 -2
- package/bin/{chunk-ar6kq7hh.js → chunk-k3ds96cb.js} +2 -2
- package/bin/{chunk-mqr096rn.js → chunk-k97axrc4.js} +1 -1
- package/bin/{chunk-zcrtr8qd.js → chunk-m41tbrvt.js} +2 -2
- package/bin/chunk-m9f21ye9.js +1 -0
- package/bin/chunk-md7pgk86.js +2 -0
- package/bin/chunk-me3zmpj5.js +14 -0
- package/bin/chunk-mg6sybt0.js +1 -0
- package/bin/{chunk-xyk7vk42.js → chunk-mzme3m82.js} +2 -2
- package/bin/chunk-n08h1jgx.js +2 -0
- package/bin/{chunk-z1r86fna.js → chunk-ncv8v6mj.js} +2 -2
- package/bin/{chunk-h153xefb.js → chunk-nmd1901j.js} +1 -1
- package/bin/{chunk-62sj29j8.js → chunk-np39aknv.js} +2 -2
- package/bin/{chunk-9h6nn1a3.js → chunk-p7zw53ep.js} +1 -1
- package/bin/{chunk-kgfa5y9w.js → chunk-ppb4aj0y.js} +4 -4
- package/bin/{chunk-5yd9cv7f.js → chunk-pwq6dbb5.js} +3 -3
- package/bin/chunk-q1gfypy3.js +2 -0
- package/bin/{chunk-3z20b2hz.js → chunk-q4qqmes7.js} +2 -2
- package/bin/{chunk-j3xaq9s3.js → chunk-q7t5zs7n.js} +2 -2
- package/bin/{chunk-hx76pje1.js → chunk-qcpeefhr.js} +1 -1
- package/bin/{chunk-gy8z8sd7.js → chunk-qjdvs1s5.js} +1 -1
- package/bin/{chunk-dvkzhpxx.js → chunk-qqapw198.js} +2 -2
- package/bin/chunk-qx553512.js +211 -0
- package/bin/chunk-r3s1x5wp.js +1 -0
- package/bin/{chunk-zwb9kamp.js → chunk-rh8dy99a.js} +2 -2
- package/bin/{chunk-e3r1m6rb.js → chunk-s0vfj06y.js} +1 -1
- package/bin/chunk-s6g2mzpn.js +2 -0
- package/bin/{chunk-c4wnhekn.js → chunk-s9sf37dv.js} +2 -2
- package/bin/{chunk-qgkbxw1k.js → chunk-sbyyn9yw.js} +2 -2
- package/bin/{chunk-xvdd04gy.js → chunk-scvepfv8.js} +1 -1
- package/bin/chunk-sjbvt3wa.js +2 -0
- package/bin/{chunk-31vx01aw.js → chunk-srmx5z3v.js} +2 -2
- package/bin/{chunk-36r20sj7.js → chunk-srv5kvm4.js} +1 -1
- package/bin/{chunk-7vd5yajk.js → chunk-t1h12r3q.js} +7 -7
- package/bin/chunk-t6myw0jf.js +2 -0
- package/bin/chunk-t8jfp3vx.js +1 -0
- package/bin/{chunk-3584j9fc.js → chunk-tqdde9bj.js} +2 -2
- package/bin/{chunk-wydd7sz7.js → chunk-v5hz09a1.js} +2 -2
- package/bin/chunk-vk9ecq8n.js +2 -0
- package/bin/{chunk-3zvvct3r.js → chunk-vsnq4381.js} +1 -1
- package/bin/{chunk-r6gkv98n.js → chunk-w4adkd0a.js} +5 -5
- package/bin/{chunk-4mq874m3.js → chunk-wbmqbpgm.js} +2 -2
- package/bin/{chunk-kvqp50dm.js → chunk-wperd2h9.js} +2 -2
- package/bin/{chunk-wkxm6yny.js → chunk-xbw7ffrz.js} +2 -2
- package/bin/{chunk-v42jcex0.js → chunk-xdrpahym.js} +4 -4
- package/bin/{chunk-s978ftze.js → chunk-xfmnfcv2.js} +3 -3
- package/bin/chunk-xhngtwn9.js +1 -0
- package/bin/chunk-xjnehexk.js +2 -0
- package/bin/chunk-xzb0t8mx.js +1 -0
- package/bin/{chunk-rn9rktp4.js → chunk-y5h5d5gx.js} +4 -4
- package/bin/{chunk-rsdpycdr.js → chunk-y6xyc4wp.js} +2 -2
- package/bin/{chunk-m1xc3t0p.js → chunk-zpk87b33.js} +6 -6
- package/bin/{chunk-trndqdaa.js → chunk-zq5j9wsc.js} +1 -1
- package/bin/{chunk-t597y392.js → chunk-zsg61vr0.js} +1 -1
- package/bin/chunk-zts21ft7.js +1 -0
- package/bin/{chunk-zf2h3w7t.js → chunk-zzbn0b6c.js} +1 -1
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +431 -409
- package/package.json +7 -7
- package/prisma/migrations/20261008134859_add_transcode_3d/migration.sql +2 -0
- package/prisma/migrations/20261014054332_add_embedding_768/migration.sql +8 -0
- package/prisma/schema.prisma +11 -8
- package/bin/chunk-088e1ath.js +0 -3
- package/bin/chunk-18kgmvme.js +0 -2
- package/bin/chunk-1ya6vx4k.js +0 -1
- package/bin/chunk-3xw70yr4.js +0 -2
- package/bin/chunk-4frhvsy0.js +0 -1
- package/bin/chunk-57nqvcg7.js +0 -1
- package/bin/chunk-58hdvwj2.js +0 -1
- package/bin/chunk-5seey9ee.js +0 -2
- package/bin/chunk-66hdwm6f.js +0 -2
- package/bin/chunk-6devq6jh.js +0 -2
- package/bin/chunk-756mr32b.js +0 -2
- package/bin/chunk-9k86d2a3.js +0 -4
- package/bin/chunk-a5fsqkt7.js +0 -1
- package/bin/chunk-axfwh5et.js +0 -2
- package/bin/chunk-c0vbj8za.js +0 -1
- package/bin/chunk-dcmfn4hs.js +0 -2
- package/bin/chunk-dy79b8kd.js +0 -1
- package/bin/chunk-ehvyq65t.js +0 -2
- package/bin/chunk-g21k2awz.js +0 -2
- package/bin/chunk-g9f9nzcc.js +0 -1
- package/bin/chunk-gzzfta3s.js +0 -2
- package/bin/chunk-k9cgfzgk.js +0 -3
- package/bin/chunk-nbfcknsq.js +0 -1
- package/bin/chunk-phzemmmy.js +0 -2
- package/bin/chunk-qcf3tb72.js +0 -1
- package/bin/chunk-rgfh5apb.js +0 -1
- package/bin/chunk-rh1hs8wa.js +0 -2
- package/bin/chunk-rpxayeqd.js +0 -1
- package/bin/chunk-s33pcxn0.js +0 -1
- package/bin/chunk-s9svhjv6.js +0 -2
- package/bin/chunk-tcp4q15p.js +0 -1
- package/bin/chunk-vnk2p7mq.css +0 -1
- package/bin/chunk-vsefjzzj.js +0 -211
- package/bin/chunk-wf32n1s3.js +0 -1
- package/bin/chunk-yd1k76na.js +0 -2
- package/bin/chunk-yfm9xwes.js +0 -14
- package/bin/chunk-zkep4r7d.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{xa}from"./chunk-03bfjh8k.js";import{Ps,Go}from"./chunk-r6gkv98n.js";import{Vo}from"./chunk-2g5qdx4s.js";import{Qo,Ao,Nt}from"./chunk-f22nrm6r.js";import{hn,ir,Ge,en,Xt,yo,qt}from"./chunk-rn9rktp4.js";var{awsEndpointFunctions:it,emitWarningIfUnsupportedVersion:at,createDefaultUserAgentProvider:ct,NODE_APP_ID_CONFIG_OPTIONS:ut,getAwsRegionExtensionConfiguration:dt,resolveAwsRegionExtensionConfiguration:lt,resolveUserAgentConfig:pt,resolveHostHeaderConfig:gt,getUserAgentPlugin:ht,getHostHeaderPlugin:mt,getLoggerPlugin:Pt,getRecursionDetectionPlugin:ft,setCredentialFeature:B,stsRegionDefaultResolver:St}=Nt(),{NoAuthSigner:le,getHttpAuthSchemeEndpointRuleSetPlugin:At,DefaultIdentityProviderConfig:Et,getHttpSigningPlugin:vt}=Ao(),{normalizeProvider:pe,getSmithyContext:ge,ServiceException:yt,NoOpLogger:It,emitWarningIfUnsupportedVersion:Rt,loadConfigsForDefaultMode:_t,getDefaultExtensionConfiguration:Ct,resolveDefaultRuntimeConfig:xt,Client:he,makeBuilder:wt,createAggregatedClient:Tt}=ir(),{Command:Dt}=ir();var Hn=Dt,Un=he;var{resolveDefaultsModeConfig:bt,loadConfig:A,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:$t,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:kt,NODE_REGION_CONFIG_OPTIONS:Ot,NODE_REGION_CONFIG_FILE_OPTIONS:Wt,resolveRegionConfig:Ht}=Ge(),{BinaryDecisionDiagram:Ut,EndpointCache:Ft,decideEndpoint:Lt,customEndpointFunctions:Kt,resolveParams:Mt,resolveEndpointConfig:jt,getEndpointPlugin:Gt}=en(),{parseUrl:Vt,getHttpHandlerExtensionConfiguration:zt,resolveHttpHandlerRuntimeConfig:Bt,getContentLengthPlugin:Qt}=qt(),{DEFAULT_RETRY_MODE:Yt,NODE_RETRY_MODE_CONFIG_OPTIONS:Jt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Zt,resolveRetryConfig:es,getRetryPlugin:ts}=Qo(),{TypeRegistry:me,getSchemaSerdePlugin:ss}=hn(),{resolveAwsSdkSigV4Config:ns,resolveAwsSdkSigV4AConfig:os,AwsSdkSigV4Signer:Pe,AwsSdkSigV4ASigner:fe,NODE_SIGV4A_CONFIG_OPTIONS:rs,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:is}=Go(),{SignatureV4MultiRegion:Se}=xa(),{toUtf8:as,fromUtf8:cs,toBase64:us,fromBase64:ds,calculateBodyLength:ls}=Xt(),{streamCollector:ps,NodeHttpHandler:gs}=Vo(),{AwsQueryProtocol:hs}=Ps(),{Sha256:ms}=yo(),D="ref",y=-1,b=!0,ne="isSet",Ae="PartitionResult",k="booleanEquals",u="stringEquals",V="getAttr",oe="us-east-1",re="sigv4",ie="sts",ae="https://sts.{Region}.{PartitionResult#dnsSuffix}",ce={[D]:"Endpoint"},d={[D]:"Region"},z={[D]:Ae},T={},ue=[d],de={conditions:[[ne,[ce]],[ne,ue],["aws.partition",ue,Ae],[k,[{[D]:"UseFIPS"},b]],[k,[{[D]:"UseDualStack"},b]],[u,[d,"aws-global"]],[k,[{[D]:"UseGlobalEndpoint"},b]],[u,[d,"eu-central-1"]],[k,[{fn:V,argv:[z,"supportsDualStack"]},b]],[k,[{fn:V,argv:[z,"supportsFIPS"]},b]],[u,[d,"ap-south-1"]],[u,[d,"eu-north-1"]],[u,[d,"eu-west-1"]],[u,[d,"eu-west-2"]],[u,[d,"eu-west-3"]],[u,[d,"sa-east-1"]],[u,[d,oe]],[u,[d,"us-east-2"]],[u,[d,"us-west-2"]],[u,[d,"us-west-1"]],[u,[d,"ca-central-1"]],[u,[d,"ap-southeast-1"]],[u,[d,"ap-northeast-1"]],[u,[d,"ap-southeast-2"]],[u,[{fn:V,argv:[z,"name"]},"aws-us-gov"]]],results:[[y],["https://sts.amazonaws.com",{authSchemes:[{name:re,signingName:ie,signingRegion:oe}]}],[ae,{authSchemes:[{name:re,signingName:ie,signingRegion:"{Region}"}]}],[y,"Invalid Configuration: FIPS and custom endpoint are not supported"],[y,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ce,T],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",T],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",T],[y,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"DualStack is enabled but this partition does not support DualStack"],[ae,T],[y,"Invalid Configuration: Missing Region"]]},fs=2,o=1e8,Ss=new Int32Array([-1,1,-1,0,30,3,1,4,o+14,2,5,o+14,3,25,6,4,24,7,5,o+1,8,6,9,o+13,7,o+1,10,10,o+1,11,11,o+1,12,12,o+1,13,13,o+1,14,14,o+1,15,15,o+1,16,16,o+1,17,17,o+1,18,18,o+1,19,19,o+1,20,20,o+1,21,21,o+1,22,22,o+1,23,23,o+1,o+2,8,o+11,o+12,4,28,26,9,27,o+10,24,o+8,o+9,8,29,o+7,9,o+6,o+7,3,o+3,31,4,o+4,o+5]),As=Ut.from(Ss,fs,de.conditions,de.results),Es=new Ft({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Ee=(e,t={})=>Es.get(e,()=>Lt(As,{endpointParams:e,logger:t.logger}));Kt.aws=it;var vs=(e)=>async(t,s,i)=>{if(!i)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,s,i),c=ge(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c)throw Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`);let r=await Mt(i,{getEndpointParameterInstructions:c},t);return Object.assign(n,r)},ys=async(e,t,s)=>({operation:ge(t).operation,region:await pe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Is=vs(ys);function ve(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function Q(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function ye(e){return{schemeId:"smithy.api#noAuth"}}var Rs=(e,t,s)=>(n)=>{let r=e(n).properties?.authSchemes;if(!r)return t(n);let l=[];for(let m of r){let{name:p,properties:P={},...v}=m,f=p.toLowerCase();if(p!==f)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${f}'`);let h;if(f==="sigv4a"){h="aws.auth#sigv4a";let j=r.find((G)=>{let se=G.name.toLowerCase();return se!=="sigv4a"&&se.startsWith("sigv4")});if(Se.sigv4aDependency()==="none"&&j)continue}else if(f.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let w=s[h];if(!w)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let S=w(n);S.schemeId=h,S.signingProperties={...S.signingProperties||{},...v,...P},l.push(S)}return l},_s=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(ye()),t.push(Q(e));break}default:t.push(ve(e)),t.push(Q(e))}return t},Cs=Rs(Ee,_s,{"aws.auth#sigv4":ve,"aws.auth#sigv4a":Q,"smithy.api#noAuth":ye}),xs=(e)=>{let t=ns(e),s=os(t);return Object.assign(s,{authSchemePreference:pe(e.authSchemePreference??[])})},ws=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ts={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"}},Ds="3.997.43",bs={version:Ds};class g extends yt{constructor(e){super(e);Object.setPrototypeOf(this,g.prototype)}}class N extends g{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,N.prototype)}}class W extends g{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype)}}class H extends g{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype)}}class U extends g{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,U.prototype)}}class q extends g{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class F extends g{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class L extends g{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype)}}var $s="Arn",ks="AccessKeyId",Os="AssumeRole",Ns="AssumedRoleId",Ws="AssumeRoleRequest",Hs="AssumeRoleResponse",Y="AssumedRoleUser",Us="AssumeRoleWithWebIdentity",qs="AssumeRoleWithWebIdentityRequest",Fs="AssumeRoleWithWebIdentityResponse",Ls="Audience",X="Credentials",Ks="ContextAssertion",Ie="DurationSeconds",Ms="Expiration",js="ExternalId",Gs="ExpiredTokenException",Vs="IDPCommunicationErrorException",zs="IDPRejectedClaimException",Bs="InvalidIdentityTokenException",Qs="Key",Ys="MalformedPolicyDocumentException",Re="Policy",_e="PolicyArns",Xs="ProviderArn",Js="ProvidedContexts",Zs="ProvidedContextsListType",tn="ProvidedContext",sn="PolicyDescriptorType",nn="ProviderId",Ce="PackedPolicySize",on="PackedPolicyTooLargeException",rn="Provider",xe="RoleArn",an="RegionDisabledException",we="RoleSessionName",cn="SecretAccessKey",un="SubjectFromWebIdentityToken",J="SourceIdentity",dn="SerialNumber",ln="SessionToken",pn="Tags",gn="TokenCode",mn="TransitiveTagKeys",Pn="Tag",fn="Value",Sn="WebIdentityToken",An="arn",En="accessKeySecretType",I="awsQueryError",R="client",vn="clientTokenType",_="error",C="httpError",x="message",yn="policyDescriptorListType",Te="smithy.ts.sdk.synthetic.com.amazonaws.sts",In="tagListType",a="com.amazonaws.sts",De=me.for(Te),be=[-3,Te,"STSServiceException",0,[],[]];De.registerError(be,g);var E=me.for(a),$e=[-3,a,Gs,{[I]:["ExpiredTokenException",400],[_]:R,[C]:400},[x],[0]];E.registerError($e,N);var ke=[-3,a,Vs,{[I]:["IDPCommunicationError",400],[_]:R,[C]:400},[x],[0]];E.registerError(ke,L);var Oe=[-3,a,zs,{[I]:["IDPRejectedClaim",403],[_]:R,[C]:403},[x],[0]];E.registerError(Oe,q);var Ne=[-3,a,Bs,{[I]:["InvalidIdentityToken",400],[_]:R,[C]:400},[x],[0]];E.registerError(Ne,F);var We=[-3,a,Ys,{[I]:["MalformedPolicyDocument",400],[_]:R,[C]:400},[x],[0]];E.registerError(We,W);var He=[-3,a,on,{[I]:["PackedPolicyTooLarge",400],[_]:R,[C]:400},[x],[0]];E.registerError(He,H);var Ue=[-3,a,an,{[I]:["RegionDisabledException",403],[_]:R,[C]:403},[x],[0]];E.registerError(Ue,U);var qe=[De,E],Rn=[0,a,En,8,0],_n=[0,a,vn,8,0],Z=[3,a,Y,0,[Ns,$s],[0,0],2],Fe=[3,a,Ws,0,[xe,we,_e,Re,Ie,pn,mn,js,dn,gn,J,Js],[0,0,()=>Be,0,1,()=>xn,64,0,0,0,0,()=>Cn],2],Le=[3,a,Hs,0,[X,Y,Ce,J],[[()=>ee,0],()=>Z,1,0]],Ke=[3,a,qs,0,[xe,we,Sn,nn,_e,Re,Ie],[0,0,[()=>_n,0],0,()=>Be,0,1],3],Me=[3,a,Fs,0,[X,un,Y,Ce,rn,Ls,J],[[()=>ee,0],0,()=>Z,1,0,0,0]],ee=[3,a,X,0,[ks,cn,ln,Ms],[0,[()=>Rn,0],0,4],4],je=[3,a,sn,0,[An],[0]],Ve=[3,a,tn,0,[Xs,Ks],[0,0]],ze=[3,a,Pn,0,[Qs,fn],[0,0],2],Be=[1,a,yn,0,()=>je],Cn=[1,a,Zs,0,()=>Ve],xn=[1,a,In,0,()=>ze],Qe=[9,a,Os,0,()=>Fe,()=>Le],Ye=[9,a,Us,0,()=>Ke,()=>Me],wn=(e)=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??ds,base64Encoder:e?.base64Encoder??us,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ee,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Cs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Pe},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new le}],logger:e?.logger??new It,protocol:e?.protocol??hs,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:qe,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",sha256:e?.sha256??ms,signerConstructor:e?.signerConstructor??Se,urlParser:e?.urlParser??Vt,utf8Decoder:e?.utf8Decoder??cs,utf8Encoder:e?.utf8Encoder??as}),Tn=(e)=>{Rt(process.version);let t=bt(e),s=()=>t().then(_t),i=wn(e);at(process.version);let n={profile:e?.profile,logger:i.logger};return{...i,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??A(is,n),bodyLengthChecker:e?.bodyLengthChecker??ls,defaultUserAgentProvider:e?.defaultUserAgentProvider??ct({serviceId:i.serviceId,clientVersion:bs.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(c)=>c.getIdentityProvider("aws.auth#sigv4")||(async(r)=>await e.credentialDefaultProvider(r?.__config||{})()),signer:new Pe},{schemeId:"aws.auth#sigv4a",identityProvider:(c)=>c.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:(c)=>c.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new le}],maxAttempts:e?.maxAttempts??A(Zt,e),region:e?.region??A(Ot,{...Wt,...n}),requestHandler:gs.create(e?.requestHandler??s),retryMode:e?.retryMode??A({...Jt,default:async()=>(await s()).retryMode||Yt},e),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??A(rs,n),streamCollector:e?.streamCollector??ps,useDualstackEndpoint:e?.useDualstackEndpoint??A(kt,n),useFipsEndpoint:e?.useFipsEndpoint??A($t,n),userAgentAppId:e?.userAgentAppId??A(ut,n)}},Dn=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:i}=e;return{setHttpAuthScheme(n){let c=t.findIndex((r)=>r.schemeId===n.schemeId);if(c===-1)t.push(n);else t.splice(c,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){i=n},credentials(){return i}}},bn=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),$n=(e,t)=>{let s=Object.assign(dt(e),Ct(e),zt(e),Dn(e));return t.forEach((i)=>i.configure(s)),Object.assign(e,lt(s),xt(s),Bt(s),bn(s))};class O extends he{config;constructor(...[e]){let t=Tn(e||{});super(t);this.initConfig=t;let s=ws(t),i=pt(s),n=es(i),c=Ht(n),r=gt(c),l=jt(r),m=xs(l),p=$n(m,e?.extensions||[]);this.config=p,this.middlewareStack.use(ss(this.config)),this.middlewareStack.use(ht(this.config)),this.middlewareStack.use(ts(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(ft(this.config)),this.middlewareStack.use(At(this.config,{httpAuthSchemeParametersProvider:Is,identityProviderConfigProvider:async(P)=>new Et({"aws.auth#sigv4":P.credentials,"aws.auth#sigv4a":P.credentials})})),this.middlewareStack.use(vt(this.config))}destroy(){super.destroy()}}var Xe=wt(Ts,"AWSSecurityTokenServiceV20110615","STSClient",Gt),Je={},Ze=(e,t,s,i)=>[];class K extends Xe(Je,Ze,"AssumeRole",Qe){}class M extends Xe(Je,Ze,"AssumeRoleWithWebIdentity",Ye){}var kn={AssumeRoleCommand:K,AssumeRoleWithWebIdentityCommand:M};class te extends O{}Tt(kn,te);var et=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},tt=async(e,t,s,i={})=>{let n=typeof e==="function"?await e():e,c=typeof t==="function"?await t():t,r="",l=n??c??(r=await St(i)());return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${c} (contextual client)`,`${r} (STS default: AWS_REGION, profile region, or us-east-1)`),l},On=(e,t)=>{let s,i;return async(n,c)=>{if(i=n,!s){let{logger:P=e?.parentClientConfig?.logger,profile:v=e?.parentClientConfig?.profile,region:f,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:w,userAgentAppId:S=e?.parentClientConfig?.userAgentAppId}=e,j=await tt(f,e?.parentClientConfig?.region,w,{logger:P,profile:v}),G=!st(h);s=new t({...e,userAgentAppId:S,profile:v,credentialDefaultProvider:()=>async()=>i,region:j,requestHandler:G?h:void 0,logger:P})}let{Credentials:r,AssumedRoleUser:l}=await s.send(new K(c));if(!r||!r.AccessKeyId||!r.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${c.RoleArn}`);let m=et(l),p={accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.SessionToken,expiration:r.Expiration,...r.CredentialScope&&{credentialScope:r.CredentialScope},...m&&{accountId:m}};return B(p,"CREDENTIALS_STS_ASSUME_ROLE","i"),p}},Nn=(e,t)=>{let s;return async(i)=>{if(!s){let{logger:m=e?.parentClientConfig?.logger,profile:p=e?.parentClientConfig?.profile,region:P,requestHandler:v=e?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,w=await tt(P,e?.parentClientConfig?.region,f,{logger:m,profile:p}),S=!st(v);s=new t({...e,userAgentAppId:h,profile:p,region:w,requestHandler:S?v:void 0,logger:m})}let{Credentials:n,AssumedRoleUser:c}=await s.send(new M(i));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${i.RoleArn}`);let r=et(c),l={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...r&&{accountId:r}};if(r)B(l,"RESOLVED_ACCOUNT_ID","T");return B(l,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),l}},st=(e)=>e?.metadata?.handlerProtocol==="h2",nt=(e,t)=>{if(!t)return e;else return class extends e{constructor(i){super(i);for(let n of t)this.middlewareStack.use(n)}}},ot=(e={},t)=>On(e,nt(O,t)),rt=(e={},t)=>Nn(e,nt(O,t)),Wn=(e)=>(t)=>e({roleAssumer:ot(t),roleAssumerWithWebIdentity:rt(t),...t});var qn=Qe,Fn=K,Ln=Fe,Kn=Le,Mn=Ye,jn=M,Gn=Ke,Vn=Me,zn=Z,Bn=ee,Qn=N,Yn=$e,Xn=L,Jn=ke,Zn=q,eo=Oe,to=F,so=Ne,no=W,oo=We,ro=H,io=He,ao=je,co=Ve,uo=U,lo=Ue,po=te,go=O,ho=g,mo=be,Po=ze,fo=Wn,So=qe,Eo=ot,vo=rt;export{Hn as $Command,Un as __Client,qn as AssumeRole$,Fn as AssumeRoleCommand,Ln as AssumeRoleRequest$,Kn as AssumeRoleResponse$,Mn as AssumeRoleWithWebIdentity$,jn as AssumeRoleWithWebIdentityCommand,Gn as AssumeRoleWithWebIdentityRequest$,Vn as AssumeRoleWithWebIdentityResponse$,zn as AssumedRoleUser$,Bn as Credentials$,Qn as ExpiredTokenException,Yn as ExpiredTokenException$,Xn as IDPCommunicationErrorException,Jn as IDPCommunicationErrorException$,Zn as IDPRejectedClaimException,eo as IDPRejectedClaimException$,to as InvalidIdentityTokenException,so as InvalidIdentityTokenException$,no as MalformedPolicyDocumentException,oo as MalformedPolicyDocumentException$,ro as PackedPolicyTooLargeException,io as PackedPolicyTooLargeException$,ao as PolicyDescriptorType$,co as ProvidedContext$,uo as RegionDisabledException,lo as RegionDisabledException$,po as STS,go as STSClient,ho as STSServiceException,mo as STSServiceException$,Po as Tag$,fo as decorateDefaultCredentialProvider,So as errorTypeRegistries,Eo as getDefaultRoleAssumer,vo as getDefaultRoleAssumerWithWebIdentity};
|
|
2
|
+
import{Sa}from"./chunk-hn2g40r6.js";import{Fs,Qo}from"./chunk-w4adkd0a.js";import{Ko}from"./chunk-4bc3gqmn.js";import{Wo,yo,Dt}from"./chunk-3ahax79y.js";import{hn,sr,Ge,en,Xt,vo,qt}from"./chunk-y5h5d5gx.js";var{awsEndpointFunctions:it,emitWarningIfUnsupportedVersion:at,createDefaultUserAgentProvider:ct,NODE_APP_ID_CONFIG_OPTIONS:ut,getAwsRegionExtensionConfiguration:dt,resolveAwsRegionExtensionConfiguration:lt,resolveUserAgentConfig:pt,resolveHostHeaderConfig:gt,getUserAgentPlugin:ht,getHostHeaderPlugin:mt,getLoggerPlugin:Pt,getRecursionDetectionPlugin:ft,setCredentialFeature:B,stsRegionDefaultResolver:St}=Dt(),{NoAuthSigner:le,getHttpAuthSchemeEndpointRuleSetPlugin:At,DefaultIdentityProviderConfig:Et,getHttpSigningPlugin:vt}=yo(),{normalizeProvider:pe,getSmithyContext:ge,ServiceException:yt,NoOpLogger:It,emitWarningIfUnsupportedVersion:Rt,loadConfigsForDefaultMode:_t,getDefaultExtensionConfiguration:Ct,resolveDefaultRuntimeConfig:xt,Client:he,makeBuilder:wt,createAggregatedClient:Tt}=sr(),{Command:bt}=sr();var Hn=bt,Un=he;var{resolveDefaultsModeConfig:$t,loadConfig:A,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:kt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Ot,NODE_REGION_CONFIG_OPTIONS:Nt,NODE_REGION_CONFIG_FILE_OPTIONS:Wt,resolveRegionConfig:Ht}=Ge(),{BinaryDecisionDiagram:Ut,EndpointCache:Ft,decideEndpoint:Lt,customEndpointFunctions:Kt,resolveParams:Mt,resolveEndpointConfig:jt,getEndpointPlugin:Gt}=en(),{parseUrl:Vt,getHttpHandlerExtensionConfiguration:zt,resolveHttpHandlerRuntimeConfig:Bt,getContentLengthPlugin:Qt}=qt(),{DEFAULT_RETRY_MODE:Yt,NODE_RETRY_MODE_CONFIG_OPTIONS:Jt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Zt,resolveRetryConfig:es,getRetryPlugin:ts}=Wo(),{TypeRegistry:me,getSchemaSerdePlugin:ss}=hn(),{resolveAwsSdkSigV4Config:ns,resolveAwsSdkSigV4AConfig:os,AwsSdkSigV4Signer:Pe,AwsSdkSigV4ASigner:fe,NODE_SIGV4A_CONFIG_OPTIONS:rs,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:is}=Qo(),{SignatureV4MultiRegion:Se}=Sa(),{toUtf8:as,fromUtf8:cs,toBase64:us,fromBase64:ds,calculateBodyLength:ls}=Xt(),{streamCollector:ps,NodeHttpHandler:gs}=Ko(),{AwsQueryProtocol:hs}=Fs(),{Sha256:ms}=vo(),D="ref",y=-1,b=!0,ne="isSet",Ae="PartitionResult",k="booleanEquals",u="stringEquals",V="getAttr",oe="us-east-1",re="sigv4",ie="sts",ae="https://sts.{Region}.{PartitionResult#dnsSuffix}",ce={[D]:"Endpoint"},d={[D]:"Region"},z={[D]:Ae},T={},ue=[d],de={conditions:[[ne,[ce]],[ne,ue],["aws.partition",ue,Ae],[k,[{[D]:"UseFIPS"},b]],[k,[{[D]:"UseDualStack"},b]],[u,[d,"aws-global"]],[k,[{[D]:"UseGlobalEndpoint"},b]],[u,[d,"eu-central-1"]],[k,[{fn:V,argv:[z,"supportsDualStack"]},b]],[k,[{fn:V,argv:[z,"supportsFIPS"]},b]],[u,[d,"ap-south-1"]],[u,[d,"eu-north-1"]],[u,[d,"eu-west-1"]],[u,[d,"eu-west-2"]],[u,[d,"eu-west-3"]],[u,[d,"sa-east-1"]],[u,[d,oe]],[u,[d,"us-east-2"]],[u,[d,"us-west-2"]],[u,[d,"us-west-1"]],[u,[d,"ca-central-1"]],[u,[d,"ap-southeast-1"]],[u,[d,"ap-northeast-1"]],[u,[d,"ap-southeast-2"]],[u,[{fn:V,argv:[z,"name"]},"aws-us-gov"]]],results:[[y],["https://sts.amazonaws.com",{authSchemes:[{name:re,signingName:ie,signingRegion:oe}]}],[ae,{authSchemes:[{name:re,signingName:ie,signingRegion:"{Region}"}]}],[y,"Invalid Configuration: FIPS and custom endpoint are not supported"],[y,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ce,T],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",T],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",T],[y,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"DualStack is enabled but this partition does not support DualStack"],[ae,T],[y,"Invalid Configuration: Missing Region"]]},Ps=2,o=1e8,fs=new Int32Array([-1,1,-1,0,30,3,1,4,o+14,2,5,o+14,3,25,6,4,24,7,5,o+1,8,6,9,o+13,7,o+1,10,10,o+1,11,11,o+1,12,12,o+1,13,13,o+1,14,14,o+1,15,15,o+1,16,16,o+1,17,17,o+1,18,18,o+1,19,19,o+1,20,20,o+1,21,21,o+1,22,22,o+1,23,23,o+1,o+2,8,o+11,o+12,4,28,26,9,27,o+10,24,o+8,o+9,8,29,o+7,9,o+6,o+7,3,o+3,31,4,o+4,o+5]),Ss=Ut.from(fs,Ps,de.conditions,de.results),As=new Ft({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Ee=(e,t={})=>As.get(e,()=>Lt(Ss,{endpointParams:e,logger:t.logger}));Kt.aws=it;var Es=(e)=>async(t,s,i)=>{if(!i)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,s,i),c=ge(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!c)throw Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`);let r=await Mt(i,{getEndpointParameterInstructions:c},t);return Object.assign(n,r)},vs=async(e,t,s)=>({operation:ge(t).operation,region:await pe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),ys=Es(vs);function ve(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function Q(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function ye(e){return{schemeId:"smithy.api#noAuth"}}var Is=(e,t,s)=>(n)=>{let r=e(n).properties?.authSchemes;if(!r)return t(n);let l=[];for(let m of r){let{name:p,properties:P={},...v}=m,f=p.toLowerCase();if(p!==f)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${f}'`);let h;if(f==="sigv4a"){h="aws.auth#sigv4a";let j=r.find((G)=>{let se=G.name.toLowerCase();return se!=="sigv4a"&&se.startsWith("sigv4")});if(Se.sigv4aDependency()==="none"&&j)continue}else if(f.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let w=s[h];if(!w)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let S=w(n);S.schemeId=h,S.signingProperties={...S.signingProperties||{},...v,...P},l.push(S)}return l},Rs=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(ye()),t.push(Q(e));break}default:t.push(ve(e)),t.push(Q(e))}return t},_s=Is(Ee,Rs,{"aws.auth#sigv4":ve,"aws.auth#sigv4a":Q,"smithy.api#noAuth":ye}),Cs=(e)=>{let t=ns(e),s=os(t);return Object.assign(s,{authSchemePreference:pe(e.authSchemePreference??[])})},xs=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),ws={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"}},Ts="3.997.43",Ds={version:Ts};class g extends yt{constructor(e){super(e);Object.setPrototypeOf(this,g.prototype)}}class N extends g{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,N.prototype)}}class W extends g{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype)}}class H extends g{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype)}}class U extends g{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,U.prototype)}}class q extends g{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class F extends g{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class L extends g{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype)}}var bs="Arn",$s="AccessKeyId",ks="AssumeRole",Os="AssumedRoleId",Ns="AssumeRoleRequest",Ws="AssumeRoleResponse",Y="AssumedRoleUser",Hs="AssumeRoleWithWebIdentity",Us="AssumeRoleWithWebIdentityRequest",qs="AssumeRoleWithWebIdentityResponse",Ls="Audience",X="Credentials",Ks="ContextAssertion",Ie="DurationSeconds",Ms="Expiration",js="ExternalId",Gs="ExpiredTokenException",Vs="IDPCommunicationErrorException",zs="IDPRejectedClaimException",Bs="InvalidIdentityTokenException",Qs="Key",Ys="MalformedPolicyDocumentException",Re="Policy",_e="PolicyArns",Xs="ProviderArn",Js="ProvidedContexts",Zs="ProvidedContextsListType",tn="ProvidedContext",sn="PolicyDescriptorType",nn="ProviderId",Ce="PackedPolicySize",on="PackedPolicyTooLargeException",rn="Provider",xe="RoleArn",an="RegionDisabledException",we="RoleSessionName",cn="SecretAccessKey",un="SubjectFromWebIdentityToken",J="SourceIdentity",dn="SerialNumber",ln="SessionToken",pn="Tags",gn="TokenCode",mn="TransitiveTagKeys",Pn="Tag",fn="Value",Sn="WebIdentityToken",An="arn",En="accessKeySecretType",I="awsQueryError",R="client",vn="clientTokenType",_="error",C="httpError",x="message",yn="policyDescriptorListType",Te="smithy.ts.sdk.synthetic.com.amazonaws.sts",In="tagListType",a="com.amazonaws.sts",De=me.for(Te),be=[-3,Te,"STSServiceException",0,[],[]];De.registerError(be,g);var E=me.for(a),$e=[-3,a,Gs,{[I]:["ExpiredTokenException",400],[_]:R,[C]:400},[x],[0]];E.registerError($e,N);var ke=[-3,a,Vs,{[I]:["IDPCommunicationError",400],[_]:R,[C]:400},[x],[0]];E.registerError(ke,L);var Oe=[-3,a,zs,{[I]:["IDPRejectedClaim",403],[_]:R,[C]:403},[x],[0]];E.registerError(Oe,q);var Ne=[-3,a,Bs,{[I]:["InvalidIdentityToken",400],[_]:R,[C]:400},[x],[0]];E.registerError(Ne,F);var We=[-3,a,Ys,{[I]:["MalformedPolicyDocument",400],[_]:R,[C]:400},[x],[0]];E.registerError(We,W);var He=[-3,a,on,{[I]:["PackedPolicyTooLarge",400],[_]:R,[C]:400},[x],[0]];E.registerError(He,H);var Ue=[-3,a,an,{[I]:["RegionDisabledException",403],[_]:R,[C]:403},[x],[0]];E.registerError(Ue,U);var qe=[De,E],Rn=[0,a,En,8,0],_n=[0,a,vn,8,0],Z=[3,a,Y,0,[Os,bs],[0,0],2],Fe=[3,a,Ns,0,[xe,we,_e,Re,Ie,pn,mn,js,dn,gn,J,Js],[0,0,()=>Be,0,1,()=>xn,64,0,0,0,0,()=>Cn],2],Le=[3,a,Ws,0,[X,Y,Ce,J],[[()=>ee,0],()=>Z,1,0]],Ke=[3,a,Us,0,[xe,we,Sn,nn,_e,Re,Ie],[0,0,[()=>_n,0],0,()=>Be,0,1],3],Me=[3,a,qs,0,[X,un,Y,Ce,rn,Ls,J],[[()=>ee,0],0,()=>Z,1,0,0,0]],ee=[3,a,X,0,[$s,cn,ln,Ms],[0,[()=>Rn,0],0,4],4],je=[3,a,sn,0,[An],[0]],Ve=[3,a,tn,0,[Xs,Ks],[0,0]],ze=[3,a,Pn,0,[Qs,fn],[0,0],2],Be=[1,a,yn,0,()=>je],Cn=[1,a,Zs,0,()=>Ve],xn=[1,a,In,0,()=>ze],Qe=[9,a,ks,0,()=>Fe,()=>Le],Ye=[9,a,Hs,0,()=>Ke,()=>Me],wn=(e)=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??ds,base64Encoder:e?.base64Encoder??us,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ee,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??_s,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Pe},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new le}],logger:e?.logger??new It,protocol:e?.protocol??hs,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:qe,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",sha256:e?.sha256??ms,signerConstructor:e?.signerConstructor??Se,urlParser:e?.urlParser??Vt,utf8Decoder:e?.utf8Decoder??cs,utf8Encoder:e?.utf8Encoder??as}),Tn=(e)=>{Rt(process.version);let t=$t(e),s=()=>t().then(_t),i=wn(e);at(process.version);let n={profile:e?.profile,logger:i.logger};return{...i,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??A(is,n),bodyLengthChecker:e?.bodyLengthChecker??ls,defaultUserAgentProvider:e?.defaultUserAgentProvider??ct({serviceId:i.serviceId,clientVersion:Ds.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(c)=>c.getIdentityProvider("aws.auth#sigv4")||(async(r)=>await e.credentialDefaultProvider(r?.__config||{})()),signer:new Pe},{schemeId:"aws.auth#sigv4a",identityProvider:(c)=>c.getIdentityProvider("aws.auth#sigv4a"),signer:new fe},{schemeId:"smithy.api#noAuth",identityProvider:(c)=>c.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new le}],maxAttempts:e?.maxAttempts??A(Zt,e),region:e?.region??A(Nt,{...Wt,...n}),requestHandler:gs.create(e?.requestHandler??s),retryMode:e?.retryMode??A({...Jt,default:async()=>(await s()).retryMode||Yt},e),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??A(rs,n),streamCollector:e?.streamCollector??ps,useDualstackEndpoint:e?.useDualstackEndpoint??A(Ot,n),useFipsEndpoint:e?.useFipsEndpoint??A(kt,n),userAgentAppId:e?.userAgentAppId??A(ut,n)}},Dn=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:i}=e;return{setHttpAuthScheme(n){let c=t.findIndex((r)=>r.schemeId===n.schemeId);if(c===-1)t.push(n);else t.splice(c,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){i=n},credentials(){return i}}},bn=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),$n=(e,t)=>{let s=Object.assign(dt(e),Ct(e),zt(e),Dn(e));return t.forEach((i)=>i.configure(s)),Object.assign(e,lt(s),xt(s),Bt(s),bn(s))};class O extends he{config;constructor(...[e]){let t=Tn(e||{});super(t);this.initConfig=t;let s=xs(t),i=pt(s),n=es(i),c=Ht(n),r=gt(c),l=jt(r),m=Cs(l),p=$n(m,e?.extensions||[]);this.config=p,this.middlewareStack.use(ss(this.config)),this.middlewareStack.use(ht(this.config)),this.middlewareStack.use(ts(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(ft(this.config)),this.middlewareStack.use(At(this.config,{httpAuthSchemeParametersProvider:ys,identityProviderConfigProvider:async(P)=>new Et({"aws.auth#sigv4":P.credentials,"aws.auth#sigv4a":P.credentials})})),this.middlewareStack.use(vt(this.config))}destroy(){super.destroy()}}var Xe=wt(ws,"AWSSecurityTokenServiceV20110615","STSClient",Gt),Je={},Ze=(e,t,s,i)=>[];class K extends Xe(Je,Ze,"AssumeRole",Qe){}class M extends Xe(Je,Ze,"AssumeRoleWithWebIdentity",Ye){}var kn={AssumeRoleCommand:K,AssumeRoleWithWebIdentityCommand:M};class te extends O{}Tt(kn,te);var et=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},tt=async(e,t,s,i={})=>{let n=typeof e==="function"?await e():e,c=typeof t==="function"?await t():t,r="",l=n??c??(r=await St(i)());return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${c} (contextual client)`,`${r} (STS default: AWS_REGION, profile region, or us-east-1)`),l},On=(e,t)=>{let s,i;return async(n,c)=>{if(i=n,!s){let{logger:P=e?.parentClientConfig?.logger,profile:v=e?.parentClientConfig?.profile,region:f,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:w,userAgentAppId:S=e?.parentClientConfig?.userAgentAppId}=e,j=await tt(f,e?.parentClientConfig?.region,w,{logger:P,profile:v}),G=!st(h);s=new t({...e,userAgentAppId:S,profile:v,credentialDefaultProvider:()=>async()=>i,region:j,requestHandler:G?h:void 0,logger:P})}let{Credentials:r,AssumedRoleUser:l}=await s.send(new K(c));if(!r||!r.AccessKeyId||!r.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${c.RoleArn}`);let m=et(l),p={accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.SessionToken,expiration:r.Expiration,...r.CredentialScope&&{credentialScope:r.CredentialScope},...m&&{accountId:m}};return B(p,"CREDENTIALS_STS_ASSUME_ROLE","i"),p}},Nn=(e,t)=>{let s;return async(i)=>{if(!s){let{logger:m=e?.parentClientConfig?.logger,profile:p=e?.parentClientConfig?.profile,region:P,requestHandler:v=e?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,w=await tt(P,e?.parentClientConfig?.region,f,{logger:m,profile:p}),S=!st(v);s=new t({...e,userAgentAppId:h,profile:p,region:w,requestHandler:S?v:void 0,logger:m})}let{Credentials:n,AssumedRoleUser:c}=await s.send(new M(i));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${i.RoleArn}`);let r=et(c),l={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...r&&{accountId:r}};if(r)B(l,"RESOLVED_ACCOUNT_ID","T");return B(l,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),l}},st=(e)=>e?.metadata?.handlerProtocol==="h2",nt=(e,t)=>{if(!t)return e;else return class extends e{constructor(i){super(i);for(let n of t)this.middlewareStack.use(n)}}},ot=(e={},t)=>On(e,nt(O,t)),rt=(e={},t)=>Nn(e,nt(O,t)),Wn=(e)=>(t)=>e({roleAssumer:ot(t),roleAssumerWithWebIdentity:rt(t),...t});var qn=Qe,Fn=K,Ln=Fe,Kn=Le,Mn=Ye,jn=M,Gn=Ke,Vn=Me,zn=Z,Bn=ee,Qn=N,Yn=$e,Xn=L,Jn=ke,Zn=q,eo=Oe,to=F,so=Ne,no=W,oo=We,ro=H,io=He,ao=je,co=Ve,uo=U,lo=Ue,po=te,go=O,ho=g,mo=be,Po=ze,fo=Wn,So=qe,Ao=ot,Eo=rt;export{Hn as $Command,Un as __Client,qn as AssumeRole$,Fn as AssumeRoleCommand,Ln as AssumeRoleRequest$,Kn as AssumeRoleResponse$,Mn as AssumeRoleWithWebIdentity$,jn as AssumeRoleWithWebIdentityCommand,Gn as AssumeRoleWithWebIdentityRequest$,Vn as AssumeRoleWithWebIdentityResponse$,zn as AssumedRoleUser$,Bn as Credentials$,Qn as ExpiredTokenException,Yn as ExpiredTokenException$,Xn as IDPCommunicationErrorException,Jn as IDPCommunicationErrorException$,Zn as IDPRejectedClaimException,eo as IDPRejectedClaimException$,to as InvalidIdentityTokenException,so as InvalidIdentityTokenException$,no as MalformedPolicyDocumentException,oo as MalformedPolicyDocumentException$,ro as PackedPolicyTooLargeException,io as PackedPolicyTooLargeException$,ao as PolicyDescriptorType$,co as ProvidedContext$,uo as RegionDisabledException,lo as RegionDisabledException$,po as STS,go as STSClient,ho as STSServiceException,mo as STSServiceException$,Po as Tag$,fo as decorateDefaultCredentialProvider,So as errorTypeRegistries,Ao as getDefaultRoleAssumer,Eo as getDefaultRoleAssumerWithWebIdentity};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{H,w}from"./chunk-
|
|
2
|
+
import{H,w}from"./chunk-a8bymrv1.js";var E=w(function(M){Object.defineProperty(M,"__esModule",{value:!0});M.Allow=M.ALL=M.COLLECTION=M.ATOM=M.SPECIAL=M.INF=M._INFINITY=M.INFINITY=M.NAN=M.BOOL=M.NULL=M.OBJ=M.ARR=M.NUM=M.STR=void 0;M.STR=1;M.NUM=2;M.ARR=4;M.OBJ=8;M.NULL=16;M.BOOL=32;M.NAN=64;M.INFINITY=128;M._INFINITY=256;M.INF=M.INFINITY|M._INFINITY;M.SPECIAL=M.NULL|M.BOOL|M.INF|M.NAN;M.ATOM=M.STR|M.NUM|M.SPECIAL;M.COLLECTION=M.ARR|M.OBJ;M.ALL=M.ATOM|M.COLLECTION;M.Allow={STR:M.STR,NUM:M.NUM,ARR:M.ARR,OBJ:M.OBJ,NULL:M.NULL,BOOL:M.BOOL,NAN:M.NAN,INFINITY:M.INFINITY,_INFINITY:M._INFINITY,INF:M.INF,SPECIAL:M.SPECIAL,ATOM:M.ATOM,COLLECTION:M.COLLECTION,ALL:M.ALL};M.default=M.Allow});var Y=w(function(n){var z=n&&n.__createBinding||(Object.create?function(t,r,s,e){if(e===void 0)e=s;var i=Object.getOwnPropertyDescriptor(r,s);if(!i||("get"in i?!r.__esModule:i.writable||i.configurable))i={enumerable:!0,get:function(){return r[s]}};Object.defineProperty(t,e,i)}:function(t,r,s,e){if(e===void 0)e=s;t[e]=r[s]}),G=n&&n.__exportStar||function(t,r){for(var s in t)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s))z(r,t,s)};Object.defineProperty(n,"__esModule",{value:!0});n.Allow=n.MalformedJSON=n.PartialJSON=n.parseJSON=n.parse=void 0;var u=E();Object.defineProperty(n,"Allow",{enumerable:!0,get:function(){return u.Allow}});G(E(),n);class R extends Error{}n.PartialJSON=R;class B extends Error{}n.MalformedJSON=B;function m(t,r=u.Allow.ALL){if(typeof t!=="string")throw TypeError(`expecting str, got ${typeof t}`);if(!t.trim())throw Error(`${t} is empty`);return K(t.trim(),r)}n.parseJSON=m;var K=(t,r)=>{let s=t.length,e=0,i=(o)=>{throw new R(`${o} at position ${e}`)},a=(o)=>{throw new B(`${o} at position ${e}`)},f=()=>{if(N(),e>=s)i("Unexpected end of input");if(t[e]==='"')return P();if(t[e]==="{")return W();if(t[e]==="[")return D();if(t.substring(e,e+4)==="null"||u.Allow.NULL&r&&s-e<4&&"null".startsWith(t.substring(e)))return e+=4,null;if(t.substring(e,e+4)==="true"||u.Allow.BOOL&r&&s-e<4&&"true".startsWith(t.substring(e)))return e+=4,!0;if(t.substring(e,e+5)==="false"||u.Allow.BOOL&r&&s-e<5&&"false".startsWith(t.substring(e)))return e+=5,!1;if(t.substring(e,e+8)==="Infinity"||u.Allow.INFINITY&r&&s-e<8&&"Infinity".startsWith(t.substring(e)))return e+=8,1/0;if(t.substring(e,e+9)==="-Infinity"||u.Allow._INFINITY&r&&1<s-e&&s-e<9&&"-Infinity".startsWith(t.substring(e)))return e+=9,-1/0;if(t.substring(e,e+3)==="NaN"||u.Allow.NAN&r&&s-e<3&&"NaN".startsWith(t.substring(e)))return e+=3,NaN;return q()},P=()=>{let o=e,c=!1;e++;while(e<s&&(t[e]!=='"'||c&&t[e-1]==="\\"))c=t[e]==="\\"?!c:!1,e++;if(t.charAt(e)=='"')try{return JSON.parse(t.substring(o,++e-Number(c)))}catch(p){a(String(p))}else if(u.Allow.STR&r)try{return JSON.parse(t.substring(o,e-Number(c))+'"')}catch(p){return JSON.parse(t.substring(o,t.lastIndexOf("\\"))+'"')}i("Unterminated string literal")},W=()=>{e++,N();let o={};try{while(t[e]!=="}"){if(N(),e>=s&&u.Allow.OBJ&r)return o;let c=P();N(),e++;try{let p=f();o[c]=p}catch(p){if(u.Allow.OBJ&r)return o;else throw p}if(N(),t[e]===",")e++}}catch(c){if(u.Allow.OBJ&r)return o;else i("Expected '}' at end of object")}return e++,o},D=()=>{e++;let o=[];try{while(t[e]!=="]")if(o.push(f()),N(),t[e]===",")e++}catch(c){if(u.Allow.ARR&r)return o;i("Expected ']' at end of array")}return e++,o},q=()=>{if(e===0){if(t==="-")a("Not sure what '-' is");try{return JSON.parse(t)}catch(c){if(u.Allow.NUM&r)try{return JSON.parse(t.substring(0,t.lastIndexOf("e")))}catch(p){}a(String(c))}}let o=e;if(t[e]==="-")e++;while(t[e]&&",]}".indexOf(t[e])===-1)e++;if(e==s&&!(u.Allow.NUM&r))i("Unterminated number literal");try{return JSON.parse(t.substring(o,e))}catch(c){if(t.substring(o,e)==="-")i("Not sure what '-' is");try{return JSON.parse(t.substring(o,t.lastIndexOf("e")))}catch(p){a(String(p))}}},N=()=>{while(e<s&&`
|
|
3
3
|
\r `.includes(t[e]))e++};return f()},Q=m;n.parse=Q});var F=H(Y(),1),X=new Set(['"',"\\","/","b","f","n","r","t","u"]);function Z(t){let r=t.codePointAt(0);return r!==void 0&&r>=0&&r<=31}function S(t){switch(t){case"\b":return"\\b";case"\f":return"\\f";case`
|
|
4
|
-
`:return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:return`\\u${t.codePointAt(0)?.toString(16).padStart(4,"0")??"0000"}`}}function v(t){let r="",s=!1;for(let e=0;e<t.length;e++){let i=t[e];if(!s){if(r+=i,i==='"')s=!0;continue}if(i==='"'){r+=i,s=!1;continue}if(i==="\\"){let a=t[e+1];if(a===void 0){r+="\\\\";continue}if(a==="u"){let f=t.slice(e+2,e+6);if(/^[0-9a-fA-F]{4}$/.test(f)){r+=`\\u${f}`,e+=5;continue}}if(X.has(a)){r+=`\\${a}`,e+=1;continue}r+="\\\\";continue}r+=Z(i)?S(i):i}return r}function
|
|
5
|
-
export{
|
|
4
|
+
`:return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:return`\\u${t.codePointAt(0)?.toString(16).padStart(4,"0")??"0000"}`}}function v(t){let r="",s=!1;for(let e=0;e<t.length;e++){let i=t[e];if(!s){if(r+=i,i==='"')s=!0;continue}if(i==='"'){r+=i,s=!1;continue}if(i==="\\"){let a=t[e+1];if(a===void 0){r+="\\\\";continue}if(a==="u"){let f=t.slice(e+2,e+6);if(/^[0-9a-fA-F]{4}$/.test(f)){r+=`\\u${f}`,e+=5;continue}}if(X.has(a)){r+=`\\${a}`,e+=1;continue}r+="\\\\";continue}r+=Z(i)?S(i):i}return r}function df(t){try{return JSON.parse(t)}catch(r){let s=v(t);if(s!==t)return JSON.parse(s);throw r}}function Jr(t){if(!t||t.trim()==="")return{};try{return df(t)}catch{try{return F.parse(t)??{}}catch{try{return F.parse(v(t))??{}}catch{return{}}}}}
|
|
5
|
+
export{df,Jr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ps,Go}from"./chunk-r6gkv98n.js";import{Vo}from"./chunk-2g5qdx4s.js";import{Qo,Ao,Nt}from"./chunk-f22nrm6r.js";import{hn,ir,Ge,en,Xt,yo,qt}from"./chunk-rn9rktp4.js";var{awsEndpointFunctions:me,emitWarningIfUnsupportedVersion:xe,createDefaultUserAgentProvider:fe,NODE_APP_ID_CONFIG_OPTIONS:Se,getAwsRegionExtensionConfiguration:ve,resolveAwsRegionExtensionConfiguration:Pe,resolveUserAgentConfig:Ie,resolveHostHeaderConfig:Ce,getUserAgentPlugin:Ae,getHostHeaderPlugin:ye,getLoggerPlugin:Te,getRecursionDetectionPlugin:Oe}=Nt(),{NoAuthSigner:Re,getHttpAuthSchemeEndpointRuleSetPlugin:De,DefaultIdentityProviderConfig:ke,getHttpSigningPlugin:$e}=Ao(),{normalizeProvider:j,getSmithyContext:we,ServiceException:Ne,NoOpLogger:be,emitWarningIfUnsupportedVersion:Ue,loadConfigsForDefaultMode:Fe,getDefaultExtensionConfiguration:qe,resolveDefaultRuntimeConfig:He,Client:K,makeBuilder:Me,createAggregatedClient:je}=ir(),{Command:Ke}=ir();var Ur=Ke,Fr=K;var{resolveDefaultsModeConfig:Ve,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ze,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Le,NODE_REGION_CONFIG_OPTIONS:Be,NODE_REGION_CONFIG_FILE_OPTIONS:We,resolveRegionConfig:Ye}=Ge(),{BinaryDecisionDiagram:Je,EndpointCache:Xe,decideEndpoint:Qe,customEndpointFunctions:Ze,resolveEndpointConfig:et,getEndpointPlugin:tt}=en(),{parseUrl:rt,getHttpHandlerExtensionConfiguration:ot,resolveHttpHandlerRuntimeConfig:nt,getContentLengthPlugin:st}=qt(),{DEFAULT_RETRY_MODE:it,NODE_RETRY_MODE_CONFIG_OPTIONS:ct,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:at,resolveRetryConfig:pt,getRetryPlugin:dt}=Qo(),{TypeRegistry:V,getSchemaSerdePlugin:ut}=hn(),{resolveAwsSdkSigV4Config:lt,AwsSdkSigV4Signer:ht,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:_t}=Go(),{toUtf8:gt,fromUtf8:Et,toBase64:mt,fromBase64:xt,calculateBodyLength:ft}=Xt(),{streamCollector:St,NodeHttpHandler:vt}=Vo(),{AwsRestJsonProtocol:Pt}=Ps(),{Sha256:It}=yo(),Ct=async(e,t,n)=>({operation:we(t).operation,region:await j(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function At(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function yt(e){return{schemeId:"smithy.api#noAuth"}}var Tt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(yt());break}default:t.push(At(e))}return t},Ot=(e)=>{let t=lt(e);return Object.assign(t,{authSchemePreference:j(e.authSchemePreference??[])})},Rt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Dt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},kt="3.997.43",$t={version:kt},E="ref",_=-1,x=!0,q="isSet",z="PartitionResult",f="booleanEquals",w="getAttr",H={[E]:"Endpoint"},N={[E]:z},g={},M=[{[E]:"Region"}],G={conditions:[[q,[H]],[q,M],["aws.partition",M,z],[f,[{[E]:"UseFIPS"},x]],[f,[{[E]:"UseDualStack"},x]],[f,[{fn:w,argv:[N,"supportsDualStack"]},x]],[f,[{fn:w,argv:[N,"supportsFIPS"]},x]],["stringEquals",[{fn:w,argv:[N,"name"]},"aws-us-gov"]]],results:[[_],[_,"Invalid Configuration: FIPS and custom endpoint are not supported"],[_,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[H,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[_,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",g],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",g],[_,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[_,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[_,"Invalid Configuration: Missing Region"]]},wt=2,c=1e8,bt=new Int32Array([-1,1,-1,0,13,3,1,4,c+12,2,5,c+12,3,8,6,4,7,c+11,5,c+9,c+10,4,11,9,6,10,c+8,7,c+6,c+7,5,12,c+5,6,c+4,c+5,3,c+1,14,4,c+2,c+3]),Ut=Je.from(bt,wt,G.conditions,G.results),Ft=new Xe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ht=(e,t={})=>Ft.get(e,()=>Qe(Ut,{endpointParams:e,logger:t.logger}));Ze.aws=me;class i extends Ne{constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class S extends i{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,S.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class v extends i{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class I extends i{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends i{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class y extends i{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class T extends i{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}class O extends i{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,O.prototype),this.error=e.error,this.error_description=e.error_description}}class R extends i{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype),this.error=e.error,this.error_description=e.error_description}}var Mt="AccessDeniedException",Gt="AuthorizationPendingException",jt="AccessToken",Kt="ClientSecret",Vt="CreateToken",zt="CreateTokenRequest",Lt="CreateTokenResponse",Bt="CodeVerifier",Wt="ExpiredTokenException",Yt="InvalidClientException",Jt="InvalidGrantException",Qt="InvalidRequestException",Zt="InternalServerException",er="InvalidScopeException",tr="IdToken",rr="RefreshToken",or="SlowDownException",nr="UnauthorizedClientException",sr="UnsupportedGrantTypeException",cr="accessToken",l="client",ar="clientId",pr="clientSecret",dr="codeVerifier",ur="code",lr="deviceCode",r="error",hr="expiresIn",d="error_description",_r="grantType",gr="http",u="httpError",Er="idToken",L="reason",B="refreshToken",mr="redirectUri",W="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",xr="scope",fr="server",Sr="tokenType",o="com.amazonaws.ssooidc",Y=V.for(W),J=[-3,W,"SSOOIDCServiceException",0,[],[]];Y.registerError(J,i);var a=V.for(o),X=[-3,o,Mt,{[r]:l,[u]:400},[r,L,d],[0,0,0]];a.registerError(X,S);var Q=[-3,o,Gt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(Q,v);var Z=[-3,o,Wt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(Z,P);var ee=[-3,o,Zt,{[r]:fr,[u]:500},[r,d],[0,0]];a.registerError(ee,I);var te=[-3,o,Yt,{[r]:l,[u]:401},[r,d],[0,0]];a.registerError(te,C);var re=[-3,o,Jt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(re,A);var oe=[-3,o,Qt,{[r]:l,[u]:400},[r,L,d],[0,0,0]];a.registerError(oe,y);var ne=[-3,o,er,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ne,T);var se=[-3,o,or,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(se,O);var ie=[-3,o,nr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ie,R);var ce=[-3,o,sr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ce,D);var ae=[Y,a],vr=[0,o,jt,8,0],Pr=[0,o,Kt,8,0],Ir=[0,o,Bt,8,0],Cr=[0,o,tr,8,0],pe=[0,o,rr,8,0],de=[3,o,zt,0,[ar,pr,_r,lr,ur,B,xr,mr,dr],[0,[()=>Pr,0],0,0,0,[()=>pe,0],64,0,[()=>Ir,0]],3],ue=[3,o,Lt,0,[cr,Sr,hr,B,Er],[[()=>vr,0],0,1,[()=>pe,0],[()=>Cr,0]]],le=[9,o,Vt,{[gr]:["POST","/token",200]},()=>de,()=>ue],Ar=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??mt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ht,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Tt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ht},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Re}],logger:e?.logger??new be,protocol:e?.protocol??Pt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ae,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??It,urlParser:e?.urlParser??rt,utf8Decoder:e?.utf8Decoder??Et,utf8Encoder:e?.utf8Encoder??gt}),yr=(e)=>{Ue(process.version);let t=Ve(e),n=()=>t().then(Fe),p=Ar(e);xe(process.version);let s={profile:e?.profile,logger:p.logger};return{...p,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(_t,s),bodyLengthChecker:e?.bodyLengthChecker??ft,defaultUserAgentProvider:e?.defaultUserAgentProvider??fe({serviceId:p.serviceId,clientVersion:$t.version}),maxAttempts:e?.maxAttempts??h(at,e),region:e?.region??h(Be,{...We,...s}),requestHandler:vt.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...ct,default:async()=>(await n()).retryMode||it},e),streamCollector:e?.streamCollector??St,useDualstackEndpoint:e?.useDualstackEndpoint??h(Le,s),useFipsEndpoint:e?.useFipsEndpoint??h(ze,s),userAgentAppId:e?.userAgentAppId??h(Se,s)}},Tr=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:p}=e;return{setHttpAuthScheme(s){let m=t.findIndex((k)=>k.schemeId===s.schemeId);if(m===-1)t.push(s);else t.splice(m,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){p=s},credentials(){return p}}},Or=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Rr=(e,t)=>{let n=Object.assign(ve(e),qe(e),ot(e),Tr(e));return t.forEach((p)=>p.configure(n)),Object.assign(e,Pe(n),He(n),nt(n),Or(n))};class b extends K{config;constructor(...[e]){let t=yr(e||{});super(t);this.initConfig=t;let n=Rt(t),p=Ie(n),s=pt(p),m=Ye(s),k=Ce(m),he=et(k),_e=Ot(he),ge=Rr(_e,e?.extensions||[]);this.config=ge,this.middlewareStack.use(ut(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(dt(this.config)),this.middlewareStack.use(st(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(De(this.config,{httpAuthSchemeParametersProvider:Ct,identityProviderConfigProvider:async(Ee)=>new ke({"aws.auth#sigv4":Ee.credentials})})),this.middlewareStack.use($e(this.config))}destroy(){super.destroy()}}var Dr=Me(Dt,"AWSSSOOIDCService","SSOOIDCClient",tt),kr={},$r=(e,t,n,p)=>[];class U extends Dr(kr,$r,"CreateToken",le){}var wr={CreateTokenCommand:U};class F extends b{}je(wr,F);var Nr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},br={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var qr=S,Hr=X,Mr=Nr,Gr=v,jr=Q,Kr=le,Vr=U,zr=de,Lr=ue,Br=P,Wr=Z,Yr=I,Jr=ee,Xr=C,Qr=te,Zr=A,eo=re,to=y,ro=oe,oo=br,no=T,so=ne,io=F,co=b,ao=i,po=J,uo=O,lo=se,ho=R,_o=ie,go=D,Eo=ce,mo=ae;export{Ur as $Command,Fr as __Client,qr as AccessDeniedException,Hr as AccessDeniedException$,Mr as AccessDeniedExceptionReason,Gr as AuthorizationPendingException,jr as AuthorizationPendingException$,Kr as CreateToken$,Vr as CreateTokenCommand,zr as CreateTokenRequest$,Lr as CreateTokenResponse$,Br as ExpiredTokenException,Wr as ExpiredTokenException$,Yr as InternalServerException,Jr as InternalServerException$,Xr as InvalidClientException,Qr as InvalidClientException$,Zr as InvalidGrantException,eo as InvalidGrantException$,to as InvalidRequestException,ro as InvalidRequestException$,oo as InvalidRequestExceptionReason,no as InvalidScopeException,so as InvalidScopeException$,io as SSOOIDC,co as SSOOIDCClient,ao as SSOOIDCServiceException,po as SSOOIDCServiceException$,uo as SlowDownException,lo as SlowDownException$,ho as UnauthorizedClientException,_o as UnauthorizedClientException$,go as UnsupportedGrantTypeException,Eo as UnsupportedGrantTypeException$,mo as errorTypeRegistries};
|
|
2
|
+
import{Fs,Qo}from"./chunk-w4adkd0a.js";import{Ko}from"./chunk-4bc3gqmn.js";import{Wo,yo,Dt}from"./chunk-3ahax79y.js";import{hn,sr,Ge,en,Xt,vo,qt}from"./chunk-y5h5d5gx.js";var{awsEndpointFunctions:me,emitWarningIfUnsupportedVersion:xe,createDefaultUserAgentProvider:fe,NODE_APP_ID_CONFIG_OPTIONS:Se,getAwsRegionExtensionConfiguration:ve,resolveAwsRegionExtensionConfiguration:Pe,resolveUserAgentConfig:Ie,resolveHostHeaderConfig:Ce,getUserAgentPlugin:Ae,getHostHeaderPlugin:ye,getLoggerPlugin:Te,getRecursionDetectionPlugin:Oe}=Dt(),{NoAuthSigner:Re,getHttpAuthSchemeEndpointRuleSetPlugin:De,DefaultIdentityProviderConfig:ke,getHttpSigningPlugin:$e}=yo(),{normalizeProvider:j,getSmithyContext:we,ServiceException:Ne,NoOpLogger:be,emitWarningIfUnsupportedVersion:Ue,loadConfigsForDefaultMode:Fe,getDefaultExtensionConfiguration:qe,resolveDefaultRuntimeConfig:He,Client:K,makeBuilder:Me,createAggregatedClient:je}=sr(),{Command:Ke}=sr();var Ur=Ke,Fr=K;var{resolveDefaultsModeConfig:Ve,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ze,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Le,NODE_REGION_CONFIG_OPTIONS:Be,NODE_REGION_CONFIG_FILE_OPTIONS:We,resolveRegionConfig:Ye}=Ge(),{BinaryDecisionDiagram:Je,EndpointCache:Xe,decideEndpoint:Qe,customEndpointFunctions:Ze,resolveEndpointConfig:et,getEndpointPlugin:tt}=en(),{parseUrl:rt,getHttpHandlerExtensionConfiguration:ot,resolveHttpHandlerRuntimeConfig:nt,getContentLengthPlugin:st}=qt(),{DEFAULT_RETRY_MODE:it,NODE_RETRY_MODE_CONFIG_OPTIONS:ct,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:at,resolveRetryConfig:pt,getRetryPlugin:dt}=Wo(),{TypeRegistry:V,getSchemaSerdePlugin:ut}=hn(),{resolveAwsSdkSigV4Config:lt,AwsSdkSigV4Signer:ht,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:_t}=Qo(),{toUtf8:gt,fromUtf8:Et,toBase64:mt,fromBase64:xt,calculateBodyLength:ft}=Xt(),{streamCollector:St,NodeHttpHandler:vt}=Ko(),{AwsRestJsonProtocol:Pt}=Fs(),{Sha256:It}=vo(),Ct=async(e,t,n)=>({operation:we(t).operation,region:await j(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function At(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function yt(e){return{schemeId:"smithy.api#noAuth"}}var Tt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(yt());break}default:t.push(At(e))}return t},Ot=(e)=>{let t=lt(e);return Object.assign(t,{authSchemePreference:j(e.authSchemePreference??[])})},Rt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),kt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},$t="3.997.43",wt={version:$t},E="ref",_=-1,x=!0,q="isSet",z="PartitionResult",f="booleanEquals",w="getAttr",H={[E]:"Endpoint"},N={[E]:z},g={},M=[{[E]:"Region"}],G={conditions:[[q,[H]],[q,M],["aws.partition",M,z],[f,[{[E]:"UseFIPS"},x]],[f,[{[E]:"UseDualStack"},x]],[f,[{fn:w,argv:[N,"supportsDualStack"]},x]],[f,[{fn:w,argv:[N,"supportsFIPS"]},x]],["stringEquals",[{fn:w,argv:[N,"name"]},"aws-us-gov"]]],results:[[_],[_,"Invalid Configuration: FIPS and custom endpoint are not supported"],[_,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[H,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[_,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",g],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",g],[_,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[_,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[_,"Invalid Configuration: Missing Region"]]},Nt=2,c=1e8,bt=new Int32Array([-1,1,-1,0,13,3,1,4,c+12,2,5,c+12,3,8,6,4,7,c+11,5,c+9,c+10,4,11,9,6,10,c+8,7,c+6,c+7,5,12,c+5,6,c+4,c+5,3,c+1,14,4,c+2,c+3]),Ut=Je.from(bt,Nt,G.conditions,G.results),Ft=new Xe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ht=(e,t={})=>Ft.get(e,()=>Qe(Ut,{endpointParams:e,logger:t.logger}));Ze.aws=me;class i extends Ne{constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class S extends i{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,S.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class v extends i{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class I extends i{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends i{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class y extends i{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class T extends i{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}class O extends i{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,O.prototype),this.error=e.error,this.error_description=e.error_description}}class R extends i{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype),this.error=e.error,this.error_description=e.error_description}}var Mt="AccessDeniedException",Gt="AuthorizationPendingException",jt="AccessToken",Kt="ClientSecret",Vt="CreateToken",zt="CreateTokenRequest",Lt="CreateTokenResponse",Bt="CodeVerifier",Wt="ExpiredTokenException",Yt="InvalidClientException",Jt="InvalidGrantException",Qt="InvalidRequestException",Zt="InternalServerException",er="InvalidScopeException",tr="IdToken",rr="RefreshToken",or="SlowDownException",nr="UnauthorizedClientException",ir="UnsupportedGrantTypeException",cr="accessToken",l="client",ar="clientId",pr="clientSecret",dr="codeVerifier",ur="code",lr="deviceCode",r="error",hr="expiresIn",d="error_description",_r="grantType",gr="http",u="httpError",Er="idToken",L="reason",B="refreshToken",mr="redirectUri",W="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",xr="scope",fr="server",Sr="tokenType",o="com.amazonaws.ssooidc",Y=V.for(W),J=[-3,W,"SSOOIDCServiceException",0,[],[]];Y.registerError(J,i);var a=V.for(o),X=[-3,o,Mt,{[r]:l,[u]:400},[r,L,d],[0,0,0]];a.registerError(X,S);var Q=[-3,o,Gt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(Q,v);var Z=[-3,o,Wt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(Z,P);var ee=[-3,o,Zt,{[r]:fr,[u]:500},[r,d],[0,0]];a.registerError(ee,I);var te=[-3,o,Yt,{[r]:l,[u]:401},[r,d],[0,0]];a.registerError(te,C);var re=[-3,o,Jt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(re,A);var oe=[-3,o,Qt,{[r]:l,[u]:400},[r,L,d],[0,0,0]];a.registerError(oe,y);var ne=[-3,o,er,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ne,T);var se=[-3,o,or,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(se,O);var ie=[-3,o,nr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ie,R);var ce=[-3,o,ir,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ce,D);var ae=[Y,a],vr=[0,o,jt,8,0],Pr=[0,o,Kt,8,0],Ir=[0,o,Bt,8,0],Cr=[0,o,tr,8,0],pe=[0,o,rr,8,0],de=[3,o,zt,0,[ar,pr,_r,lr,ur,B,xr,mr,dr],[0,[()=>Pr,0],0,0,0,[()=>pe,0],64,0,[()=>Ir,0]],3],ue=[3,o,Lt,0,[cr,Sr,hr,B,Er],[[()=>vr,0],0,1,[()=>pe,0],[()=>Cr,0]]],le=[9,o,Vt,{[gr]:["POST","/token",200]},()=>de,()=>ue],Ar=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??xt,base64Encoder:e?.base64Encoder??mt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ht,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Tt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ht},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Re}],logger:e?.logger??new be,protocol:e?.protocol??Pt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ae,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??It,urlParser:e?.urlParser??rt,utf8Decoder:e?.utf8Decoder??Et,utf8Encoder:e?.utf8Encoder??gt}),yr=(e)=>{Ue(process.version);let t=Ve(e),n=()=>t().then(Fe),p=Ar(e);xe(process.version);let s={profile:e?.profile,logger:p.logger};return{...p,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(_t,s),bodyLengthChecker:e?.bodyLengthChecker??ft,defaultUserAgentProvider:e?.defaultUserAgentProvider??fe({serviceId:p.serviceId,clientVersion:wt.version}),maxAttempts:e?.maxAttempts??h(at,e),region:e?.region??h(Be,{...We,...s}),requestHandler:vt.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...ct,default:async()=>(await n()).retryMode||it},e),streamCollector:e?.streamCollector??St,useDualstackEndpoint:e?.useDualstackEndpoint??h(Le,s),useFipsEndpoint:e?.useFipsEndpoint??h(ze,s),userAgentAppId:e?.userAgentAppId??h(Se,s)}},Tr=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:p}=e;return{setHttpAuthScheme(s){let m=t.findIndex((k)=>k.schemeId===s.schemeId);if(m===-1)t.push(s);else t.splice(m,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){p=s},credentials(){return p}}},Or=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Rr=(e,t)=>{let n=Object.assign(ve(e),qe(e),ot(e),Tr(e));return t.forEach((p)=>p.configure(n)),Object.assign(e,Pe(n),He(n),nt(n),Or(n))};class b extends K{config;constructor(...[e]){let t=yr(e||{});super(t);this.initConfig=t;let n=Rt(t),p=Ie(n),s=pt(p),m=Ye(s),k=Ce(m),he=et(k),_e=Ot(he),ge=Rr(_e,e?.extensions||[]);this.config=ge,this.middlewareStack.use(ut(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(dt(this.config)),this.middlewareStack.use(st(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(De(this.config,{httpAuthSchemeParametersProvider:Ct,identityProviderConfigProvider:async(Ee)=>new ke({"aws.auth#sigv4":Ee.credentials})})),this.middlewareStack.use($e(this.config))}destroy(){super.destroy()}}var Dr=Me(kt,"AWSSSOOIDCService","SSOOIDCClient",tt),kr={},$r=(e,t,n,p)=>[];class U extends Dr(kr,$r,"CreateToken",le){}var wr={CreateTokenCommand:U};class F extends b{}je(wr,F);var Nr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},br={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var qr=S,Hr=X,Mr=Nr,Gr=v,jr=Q,Kr=le,Vr=U,zr=de,Lr=ue,Br=P,Wr=Z,Yr=I,Jr=ee,Xr=C,Qr=te,Zr=A,eo=re,to=y,ro=oe,oo=br,no=T,so=ne,io=F,co=b,ao=i,po=J,uo=O,lo=se,ho=R,_o=ie,go=D,Eo=ce,mo=ae;export{Ur as $Command,Fr as __Client,qr as AccessDeniedException,Hr as AccessDeniedException$,Mr as AccessDeniedExceptionReason,Gr as AuthorizationPendingException,jr as AuthorizationPendingException$,Kr as CreateToken$,Vr as CreateTokenCommand,zr as CreateTokenRequest$,Lr as CreateTokenResponse$,Br as ExpiredTokenException,Wr as ExpiredTokenException$,Yr as InternalServerException,Jr as InternalServerException$,Xr as InvalidClientException,Qr as InvalidClientException$,Zr as InvalidGrantException,eo as InvalidGrantException$,to as InvalidRequestException,ro as InvalidRequestException$,oo as InvalidRequestExceptionReason,no as InvalidScopeException,so as InvalidScopeException$,io as SSOOIDC,co as SSOOIDCClient,ao as SSOOIDCServiceException,po as SSOOIDCServiceException$,uo as SlowDownException,lo as SlowDownException$,ho as UnauthorizedClientException,_o as UnauthorizedClientException$,go as UnsupportedGrantTypeException,Eo as UnsupportedGrantTypeException$,mo as errorTypeRegistries};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I}from"./chunk-
|
|
1
|
+
import{I}from"./chunk-qx553512.js";var c=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Nr=I("copy",c);
|
|
2
2
|
export{Nr};
|