@bkm016/basalt 0.1.1 → 0.1.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/README.md +16 -22
- package/chunk-06hdzq5n.js +2 -0
- package/chunk-09rj27b2.js +2 -0
- package/{chunk-qnr1f5pj.js → chunk-0y7ne3d0.js} +2 -2
- package/{chunk-vgvq3q12.js → chunk-10xzzn07.js} +2 -2
- package/{chunk-6qertm2t.js → chunk-1qpces5a.js} +1 -1
- package/{chunk-nt2gntad.js → chunk-1zdwrgd4.js} +1 -1
- package/{chunk-sh74qzvt.js → chunk-27gntzs5.js} +4 -4
- package/{chunk-1v7st27a.js → chunk-2esbgxps.js} +14 -14
- package/{chunk-exnn1867.js → chunk-362g64pd.js} +1 -1
- package/{chunk-1aspj1hn.js → chunk-3cjsd292.js} +2 -2
- package/chunk-5c9j8qe4.js +478 -0
- package/{chunk-8dxzqwq3.js → chunk-5j1krv9v.js} +1 -1
- package/{chunk-vkkj4awb.js → chunk-6hssbcgj.js} +1 -1
- package/{chunk-1b7gbe8g.js → chunk-75m78j7x.js} +2 -2
- package/{chunk-kfq8wyd3.js → chunk-8296hw9m.js} +1 -1
- package/{chunk-szat3vp4.js → chunk-8d46jtbj.js} +2 -2
- package/{chunk-qczbfccb.js → chunk-8tjad3r0.js} +4 -4
- package/{chunk-agntrqs9.js → chunk-97rzj7f6.js} +1 -1
- package/{chunk-k7w7ac9q.js → chunk-981f9dw8.js} +8 -8
- package/{chunk-xysny0ve.js → chunk-aefadsy6.js} +2 -2
- package/{chunk-jhd54p1b.js → chunk-bannb9xm.js} +1 -1
- package/{chunk-0qqb6v41.js → chunk-bxn5kmpz.js} +120 -120
- package/{chunk-a3tqx584.js → chunk-c7x1zq39.js} +1 -1
- package/{chunk-rv06x0kn.js → chunk-cjc90f84.js} +1 -1
- package/{chunk-x3dnb9sz.js → chunk-d2j735sd.js} +2 -2
- package/{chunk-yskm0hsy.js → chunk-d8gtbw9g.js} +1 -1
- package/{chunk-rm3kcxq9.js → chunk-fjtvjrkg.js} +13 -13
- package/{chunk-h6sw8fbt.js → chunk-fm0k0qtz.js} +1 -1
- package/{chunk-1yzt0qm0.js → chunk-fw2bpqmw.js} +1 -1
- package/{chunk-45cz26ap.js → chunk-gp7y0fja.js} +13 -13
- package/{chunk-2bb01ddq.js → chunk-gzxnene8.js} +1 -1
- package/{chunk-a8nyk4k9.js → chunk-hwr56pfj.js} +1 -1
- package/{chunk-0hbjv3y6.js → chunk-jwdb0ccj.js} +3 -3
- package/{chunk-kf8hq21a.js → chunk-k23t7vhs.js} +5 -5
- package/{chunk-bhqyxyap.js → chunk-k506w58v.js} +1 -1
- package/{chunk-44ek81ad.js → chunk-k6w6y71k.js} +2 -2
- package/chunk-m40gxwq4.js +5 -0
- package/chunk-m8vkwdgr.js +5 -0
- package/{chunk-f7egr55n.js → chunk-mvfsxdx6.js} +13 -13
- package/{chunk-pvncysbb.js → chunk-nbb9trwz.js} +1 -1
- package/{chunk-0szjy61m.js → chunk-pbcy6zdt.js} +1 -1
- package/chunk-pmqtkqsf.js +2 -0
- package/{chunk-hat3s3pr.js → chunk-pxsrqrd0.js} +1 -1
- package/{chunk-xsbxykr4.js → chunk-qe0teyn1.js} +1 -1
- package/{chunk-2zqny2sy.js → chunk-r7fpkb49.js} +1 -1
- package/{chunk-3m7qwfm3.js → chunk-rtzqqngy.js} +3 -3
- package/{chunk-6e49xsf5.js → chunk-shadcb9z.js} +2 -2
- package/{chunk-cv5wsd9m.js → chunk-t6zs4kw0.js} +2 -2
- package/{chunk-hcn9cf6v.js → chunk-v258nxcz.js} +1 -1
- package/{chunk-a6r4z44b.js → chunk-vk1gxk1t.js} +1 -1
- package/{chunk-s37s3k24.js → chunk-x1xss1d7.js} +2 -2
- package/{chunk-dakrpbe6.js → chunk-x4874m8e.js} +2 -2
- package/{chunk-wx7kdf0b.js → chunk-xfvvh1s5.js} +1 -1
- package/{chunk-0yytz0r1.js → chunk-y0m980k3.js} +5 -5
- package/{chunk-dhm42y04.js → chunk-y58ygzn9.js} +3 -3
- package/{chunk-2wkaw73s.js → chunk-y648fzx0.js} +5 -5
- package/{chunk-32at88hc.js → chunk-y7nma9rk.js} +1 -1
- package/{chunk-pmc3y1z8.js → chunk-ykens1hy.js} +1 -1
- package/{chunk-q8zx3kt6.js → chunk-z55bmysw.js} +1 -1
- package/{chunk-qx0m82rw.js → chunk-zmsgwr3s.js} +1 -1
- package/{chunk-501zkf9b.js → chunk-ztsjgssj.js} +1 -1
- package/compiled.js +5 -5
- package/package.json +1 -1
- package/ui-test-worker.js +63 -63
- package/web/{chunk-b4wbk7vc.js → chunk-0xc2c540.js} +3 -3
- package/web/{chunk-dt462hk9.js → chunk-0z0jycs8.js} +1 -1
- package/web/chunk-166qe5j6.js +2 -0
- package/web/chunk-1c95wfvq.js +1 -0
- package/web/{chunk-qnaqf0cr.js → chunk-23c1df7e.js} +1 -1
- package/web/{chunk-jrcyc9s9.js → chunk-24h1rfje.js} +1 -1
- package/web/{chunk-fscafg24.js → chunk-2hd1pe9w.js} +5 -5
- package/web/chunk-329rtxa9.js +1 -0
- package/web/{chunk-9yakxvjb.js → chunk-33qwz9bc.js} +2 -2
- package/web/{chunk-qd8bxxdj.js → chunk-3qjnwsph.js} +1 -1
- package/web/{chunk-p3b9crsa.js → chunk-47q4hmfp.js} +2 -2
- package/web/{chunk-y49fhfda.js → chunk-4fzj0azw.js} +1 -1
- package/web/{chunk-22a4ety5.js → chunk-5b2nw6j1.js} +1 -1
- package/web/{chunk-bgnnrpna.js → chunk-5hmfk69r.js} +4 -4
- package/web/{chunk-tqmwd9qp.js → chunk-5qqw2e0t.js} +1 -1
- package/web/{chunk-3jhyzmnf.js → chunk-61jahh35.js} +3 -3
- package/web/chunk-6gxf3vsg.js +1 -0
- package/web/{chunk-qefasa1j.js → chunk-6parf7sy.js} +1 -1
- package/web/{chunk-2m12wyrb.js → chunk-7520nrbb.js} +1 -1
- package/web/{chunk-9p12mgs6.js → chunk-7ba8vrfc.js} +1 -1
- package/web/{chunk-fm2ybfj5.js → chunk-7qxhk1kz.js} +4 -4
- package/web/{chunk-w880psmw.js → chunk-7v5rxabp.js} +1 -1
- package/web/{chunk-kdyjnwdx.js → chunk-7xk0ntav.js} +2 -2
- package/web/{chunk-q0p5xqe1.js → chunk-7yc083xj.js} +4 -4
- package/web/{chunk-b1pe46zz.js → chunk-89fkdgbp.js} +1 -1
- package/web/{chunk-v28fx2nd.js → chunk-8qgpfxkz.js} +1 -1
- package/web/{chunk-2ps6mepk.js → chunk-90xqeczk.js} +3 -3
- package/web/{chunk-fz06t6km.js → chunk-97b62pvb.js} +1 -1
- package/web/{chunk-a1z5qx1r.js → chunk-9a3q0jsh.js} +3 -3
- package/web/{chunk-xjxv8dg8.js → chunk-9bgey148.js} +4 -4
- package/web/{chunk-70qwwwak.js → chunk-9xh96b33.js} +1 -1
- package/web/{chunk-e6jxqbv7.js → chunk-a5sg33w2.js} +1 -1
- package/web/chunk-a91vxtx4.js +1 -0
- package/web/{chunk-pf2ab8p8.js → chunk-acybsx44.js} +1 -1
- package/web/chunk-agec7jj4.js +1 -0
- package/web/{chunk-e53wfgb8.js → chunk-axkyft9f.js} +1 -1
- package/web/{chunk-bc78qf1m.js → chunk-b0a8nbj0.js} +5 -5
- package/web/chunk-c516cghj.js +1 -0
- package/web/chunk-cqp1d4p0.js +1 -0
- package/web/{chunk-05w4fyzc.js → chunk-cwtdnacf.js} +1 -1
- package/web/chunk-dg1vas6z.js +8 -0
- package/web/{chunk-0mrkjnte.js → chunk-ds7srg4p.js} +1 -1
- package/web/{chunk-bjkc94mv.js → chunk-ep37qp12.js} +1 -1
- package/web/{chunk-90kp4pnz.js → chunk-eqsd8zta.js} +1 -1
- package/web/{chunk-ss1bcb0n.js → chunk-es28k2t7.js} +2 -2
- package/web/chunk-fc0nx23g.js +1 -0
- package/web/chunk-fhnypcrm.js +1139 -0
- package/web/{chunk-2scce33n.js → chunk-fv60p68p.js} +1 -1
- package/web/{chunk-rpmpttbk.js → chunk-g46f421r.js} +1 -1
- package/web/{chunk-2msj52w6.js → chunk-h18tnrf2.js} +1 -1
- package/web/{chunk-a5x2zveg.js → chunk-h288yd5w.js} +1 -1
- package/web/{chunk-8p4tc9f4.js → chunk-hszjc2ny.js} +3 -3
- package/web/{chunk-4ks96e4r.js → chunk-j0bwwc1g.js} +1 -1
- package/web/{chunk-9dxjafp2.js → chunk-jqa39f8t.js} +2 -2
- package/web/chunk-jvbbrnpa.js +1 -0
- package/web/{chunk-wptv8atc.js → chunk-jzfd7cyh.js} +1 -1
- package/web/chunk-ka9ak8wr.js +1 -0
- package/web/{chunk-9an7cjd9.js → chunk-mb4qx9hy.js} +2 -2
- package/web/chunk-mnjd59jk.js +1 -0
- package/web/{chunk-xbty0rv7.js → chunk-mwj9tpkz.js} +1 -1
- package/web/{chunk-taynqrgq.js → chunk-n8gfjj9a.js} +2 -2
- package/web/{chunk-20q90epj.js → chunk-n8sky2q6.js} +1 -1
- package/web/chunk-ng0nbfhh.js +1 -0
- package/web/chunk-nz9nxk48.js +1 -0
- package/web/{chunk-0vt9fg48.js → chunk-p9hsd3rn.js} +2 -2
- package/web/chunk-phw908hn.js +1 -0
- package/web/chunk-pjmmma1k.js +1 -0
- package/web/chunk-q7yn4m3t.js +1 -0
- package/web/chunk-qh15dxav.css +1 -0
- package/web/chunk-qnhqexe0.js +1 -0
- package/web/{chunk-bj90t5gh.js → chunk-rcx1aee5.js} +4 -4
- package/web/chunk-rjqj6ffe.js +1 -0
- package/web/{chunk-g4azyef7.js → chunk-rks7ksv3.js} +1 -1
- package/web/{chunk-q5ke7a33.js → chunk-sb1cjpq8.js} +1 -1
- package/web/{chunk-e32y85kx.js → chunk-sgvp8vge.js} +1 -1
- package/web/chunk-sjjwte12.js +1 -0
- package/web/{chunk-xrxne80b.js → chunk-sn9ecfvy.js} +1 -1
- package/web/{chunk-z7dcbxws.js → chunk-t7bwsdbr.js} +1 -1
- package/web/{chunk-fk0dh93x.js → chunk-tse9gvyq.js} +5 -5
- package/web/{chunk-a3verqw9.js → chunk-tx8240k4.js} +5 -5
- package/web/{chunk-dzwxgqgm.js → chunk-vd6y2pcm.js} +2 -2
- package/web/{chunk-5vw9rs4r.js → chunk-vpa55vje.js} +3 -3
- package/web/{chunk-y0m8hrwz.js → chunk-vymqrpm3.js} +77 -77
- package/web/{chunk-tmvakq7n.js → chunk-w7snhcyg.js} +4 -4
- package/web/{chunk-qh7265qw.js → chunk-wdtnhpd6.js} +2 -2
- package/web/{chunk-3ee04tmm.js → chunk-wmvd6j0b.js} +5 -5
- package/web/{chunk-yd46jhqv.js → chunk-xnq41dgs.js} +1 -1
- package/web/{chunk-45fzdcgz.js → chunk-xvsmtetz.js} +5 -5
- package/web/{chunk-ca682sm6.js → chunk-y3ajqthy.js} +14 -14
- package/web/{chunk-f26smjjf.js → chunk-yd1ez3wd.js} +1 -1
- package/web/chunk-yfbxtg5p.js +1 -0
- package/web/{chunk-4v8en1yw.js → chunk-ywp4s71k.js} +1 -1
- package/web/{chunk-gqw3f02j.js → chunk-z4x331rx.js} +5 -5
- package/web/{chunk-jwzd9tzk.js → chunk-z6bpamwq.js} +2 -2
- package/web/{chunk-hev4hq89.js → chunk-zmdnxn6m.js} +2 -2
- package/web/{icon-yx2p2pye.svg → icon-1wgy7kzy.svg} +13 -13
- package/web/icon.svg +13 -13
- package/web/index.html +2 -2
- package/web/install.sh +0 -0
- package/web/sw.js +9 -0
- package/worker.js +1 -1
- package/chunk-09vr609h.js +0 -2
- package/chunk-58vz2qsq.js +0 -2
- package/chunk-c25s4w6a.js +0 -5
- package/chunk-t057xfrt.js +0 -5
- package/chunk-wjd9fr23.js +0 -2
- package/chunk-zef13k3h.js +0 -471
- package/web/chunk-2pver6r4.js +0 -1
- package/web/chunk-37ajk6zg.js +0 -2
- package/web/chunk-4wkm9fda.js +0 -1
- package/web/chunk-amzgyy1k.js +0 -1
- package/web/chunk-cff5hcm8.js +0 -8
- package/web/chunk-esp1mmgr.js +0 -1
- package/web/chunk-ew3cgdtd.js +0 -1
- package/web/chunk-gjq1pxw3.js +0 -1
- package/web/chunk-h5ejbf6e.js +0 -1
- package/web/chunk-jjh5jvva.js +0 -1
- package/web/chunk-k5btcvbg.js +0 -1
- package/web/chunk-kpvgecwy.js +0 -1
- package/web/chunk-kq40ss39.js +0 -1
- package/web/chunk-q7dsnvpf.js +0 -1
- package/web/chunk-rg426vkf.js +0 -1
- package/web/chunk-ry9256r7.js +0 -1
- package/web/chunk-scpwc9ev.js +0 -1
- package/web/chunk-ssy07dd2.js +0 -1
- package/web/chunk-tgpbhzn9.js +0 -1
- package/web/chunk-vt40e1kp.js +0 -1136
- package/web/chunk-w53rba6g.js +0 -1
- package/web/chunk-w86n42dy.js +0 -1
- package/web/chunk-wtawdeej.css +0 -1
- package/web/chunk-zde7mj43.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ue,ot}from"./chunk-rm3kcxq9.js";import{Fe}from"./chunk-t057xfrt.js";import{qe,ve,L}from"./chunk-0hbjv3y6.js";import{be,Y,b,Se,X,Qe,B}from"./chunk-k7w7ac9q.js";var{awsEndpointFunctions:Ce,emitWarningIfUnsupportedVersion:Ae,createDefaultUserAgentProvider:ye,NODE_APP_ID_CONFIG_OPTIONS:Te,getAwsRegionExtensionConfiguration:Oe,resolveAwsRegionExtensionConfiguration:we,resolveUserAgentConfig:De,resolveHostHeaderConfig:Re,getUserAgentPlugin:ke,getHostHeaderPlugin:$e,getLoggerPlugin:Ne,getRecursionDetectionPlugin:ze}=L(),{NoAuthSigner:He,getHttpAuthSchemeEndpointRuleSetPlugin:Ge,DefaultIdentityProviderConfig:Me,getHttpSigningPlugin:je}=ve(),{normalizeProvider:j,getSmithyContext:Ke,ServiceException:Ve,NoOpLogger:Le,emitWarningIfUnsupportedVersion:Be,loadConfigsForDefaultMode:We,getDefaultExtensionConfiguration:Ye,resolveDefaultRuntimeConfig:Je,Client:K,makeBuilder:Xe,createAggregatedClient:Ze}=Y(),{Command:et}=Y();var Kr=et,Vr=K;var{resolveDefaultsModeConfig:tt,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:rt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_OPTIONS:st,NODE_REGION_CONFIG_FILE_OPTIONS:it,resolveRegionConfig:ct}=b(),{BinaryDecisionDiagram:at,EndpointCache:dt,decideEndpoint:pt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=Se(),{parseUrl:Et,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:_t,getContentLengthPlugin:mt}=B(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:St,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ft,resolveRetryConfig:It,getRetryPlugin:vt}=qe(),{TypeRegistry:V,getSchemaSerdePlugin:Pt}=be(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=Ue(),{toUtf8:Tt,fromUtf8:Ot,toBase64:wt,fromBase64:Dt,calculateBodyLength:Rt}=X(),{streamCollector:kt,NodeHttpHandler:$t}=Fe(),{AwsRestJsonProtocol:Nt}=ot(),{Sha256:bt}=Qe(),Ut=async(e,t,n)=>({operation:Ke(t).operation,region:await j(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var zt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Ht=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:j(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jt="3.997.47",Kt={version:jt},_="ref",E=-1,x=!0,z="isSet",W="PartitionResult",S="booleanEquals",k="getAttr",H={[_]:"Endpoint"},N={[_]:W},g={},G=[{[_]:"Region"}],M={conditions:[[z,[H]],[z,G],["aws.partition",G,W],[S,[{[_]:"UseFIPS"},x]],[S,[{[_]:"UseDualStack"},x]],[S,[{fn:k,argv:[N,"supportsDualStack"]},x]],[S,[{fn:k,argv:[N,"supportsFIPS"]},x]],["stringEquals",[{fn:k,argv:[N,"name"]},"aws-us-gov"]]],results:[[E],[E,"Invalid Configuration: FIPS and custom endpoint are not supported"],[E,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[H,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"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],[E,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[E,"Invalid Configuration: Missing Region"]]},Vt=2,c=1e8,Lt=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]),Bt=at.from(Lt,Vt,M.conditions,M.results),Wt=new dt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>pt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=Ce;class i extends Ve{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class f extends i{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class I extends i{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.error_description=e.error_description}}class v extends i{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{static shapeId="com.amazonaws.ssooidc#InvalidClientException";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{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";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{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";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{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";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{static shapeId="com.amazonaws.ssooidc#SlowDownException";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 w extends i{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";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 Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",dr="InvalidScopeException",pr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",Er="UnsupportedGrantTypeException",gr="accessToken",l="client",_r="clientId",mr="clientSecret",xr="codeVerifier",Sr="code",fr="deviceCode",r="error",Ir="expiresIn",p="error_description",vr="grantType",Pr="http",u="httpError",Cr="idToken",J="reason",Q="refreshToken",Ar="redirectUri",Z="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",ee=new V(Z),te=[-3,Z,"SSOOIDCServiceException",0,[],[]];ee.registerError(te,i);var a=new V(o),re=[-3,o,Jt,{[r]:l,[u]:400},[r,J,p],[0,0,0]];a.registerError(re,f);var oe=[-3,o,Xt,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(oe,I);var ne=[-3,o,nr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ne,v);var se=[-3,o,ar,{[r]:Tr,[u]:500},[r,p],[0,0]];a.registerError(se,P);var ie=[-3,o,sr,{[r]:l,[u]:401},[r,p],[0,0]];a.registerError(ie,C);var ce=[-3,o,ir,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ce,A);var ae=[-3,o,cr,{[r]:l,[u]:400},[r,J,p],[0,0,0]];a.registerError(ae,y);var de=[-3,o,dr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(de,T);var pe=[-3,o,lr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(pe,O);var ue=[-3,o,hr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ue,w);var le=[-3,o,Er,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(le,D);var he=[ee,a],wr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],Rr=[0,o,or,8,0],kr=[0,o,pr,8,0],Ee=[0,o,ur,8,0],ge=[3,o,tr,0,[_r,mr,vr,fr,Sr,Q,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Ee,0],64,0,[()=>Rr,0]],3],_e=[3,o,rr,0,[gr,Or,Ir,Q,Cr],[[()=>wr,0],0,1,[()=>Ee,0],[()=>kr,0]]],me=[9,o,er,{[Pr]:["POST","/token",200]},()=>ge,()=>_e],$r=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??zt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new He}],logger:e?.logger??new Le,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:he,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??Et,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Be(process.version);let t=tt(e),n=()=>t().then(We),d=$r(e);Ae(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(yt,s),bodyLengthChecker:e?.bodyLengthChecker??Rt,defaultUserAgentProvider:e?.defaultUserAgentProvider??ye({serviceId:d.serviceId,clientVersion:Kt.version}),maxAttempts:e?.maxAttempts??h(ft,e),region:e?.region??h(st,{...it,...s}),requestHandler:$t.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...St,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??kt,useDualstackEndpoint:e?.useDualstackEndpoint??h(nt,s),useFipsEndpoint:e?.useFipsEndpoint??h(rt,s),userAgentAppId:e?.userAgentAppId??h(Te,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:d}=e;return{setHttpAuthScheme(s){let m=t.findIndex((R)=>R.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){d=s},credentials(){return d}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Oe(e),Ye(e),gt(e),br(e));return t.forEach((d)=>d.configure(n)),Object.assign(e,we(n),Je(n),_t(n),Ur(n))};class U extends K{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),d=De(n),s=It(d),m=ct(s),R=Re(m),xe=lt(R),fe=Ht(xe),Ie=Fr(fe,e?.extensions||[]);this.config=Ie,this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(ke(this.config)),this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(ze(this.config)),this.middlewareStack.use(Ge(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Pe)=>new Me({"aws.auth#sigv4":Pe.credentials})})),this.middlewareStack.use(je(this.config))}destroy(){super.destroy()}}var qr=Xe(Mt,"AWSSSOOIDCService","SSOOIDCClient",ht),zr={},Hr=(e,t,n,d)=>[];class F extends qr(zr,Hr,"CreateToken",me){}var Gr={CreateTokenCommand:F};class q extends U{}Ze(Gr,q);var Mr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},jr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=f,Br=re,Wr=Mr,Yr=I,Jr=oe,Xr=me,Qr=F,Zr=ge,eo=_e,to=v,ro=ne,oo=P,no=se,so=C,io=ie,co=A,ao=ce,po=y,uo=ae,lo=jr,ho=T,Eo=de,go=q,_o=U,mo=i,xo=te,So=O,fo=pe,Io=w,vo=ue,Po=D,Co=le,Ao=he;export{Kr as $Command,Vr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,Eo as InvalidScopeException$,go as SSOOIDC,_o as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,So as SlowDownException,fo as SlowDownException$,Io as UnauthorizedClientException,vo as UnauthorizedClientException$,Po as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|
|
2
|
+
import{Ue,ot}from"./chunk-fjtvjrkg.js";import{Fe}from"./chunk-m40gxwq4.js";import{qe,ve,L}from"./chunk-jwdb0ccj.js";import{be,Y,b,Se,X,Qe,B}from"./chunk-981f9dw8.js";var{awsEndpointFunctions:Ce,emitWarningIfUnsupportedVersion:Ae,createDefaultUserAgentProvider:ye,NODE_APP_ID_CONFIG_OPTIONS:Te,getAwsRegionExtensionConfiguration:Oe,resolveAwsRegionExtensionConfiguration:we,resolveUserAgentConfig:De,resolveHostHeaderConfig:Re,getUserAgentPlugin:ke,getHostHeaderPlugin:$e,getLoggerPlugin:Ne,getRecursionDetectionPlugin:ze}=L(),{NoAuthSigner:He,getHttpAuthSchemeEndpointRuleSetPlugin:Ge,DefaultIdentityProviderConfig:Me,getHttpSigningPlugin:je}=ve(),{normalizeProvider:j,getSmithyContext:Ke,ServiceException:Ve,NoOpLogger:Le,emitWarningIfUnsupportedVersion:Be,loadConfigsForDefaultMode:We,getDefaultExtensionConfiguration:Ye,resolveDefaultRuntimeConfig:Je,Client:K,makeBuilder:Xe,createAggregatedClient:Ze}=Y(),{Command:et}=Y();var Kr=et,Vr=K;var{resolveDefaultsModeConfig:tt,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:rt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_OPTIONS:st,NODE_REGION_CONFIG_FILE_OPTIONS:it,resolveRegionConfig:ct}=b(),{BinaryDecisionDiagram:at,EndpointCache:dt,decideEndpoint:pt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=Se(),{parseUrl:Et,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:_t,getContentLengthPlugin:mt}=B(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:St,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ft,resolveRetryConfig:It,getRetryPlugin:vt}=qe(),{TypeRegistry:V,getSchemaSerdePlugin:Pt}=be(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=Ue(),{toUtf8:Tt,fromUtf8:Ot,toBase64:wt,fromBase64:Dt,calculateBodyLength:Rt}=X(),{streamCollector:kt,NodeHttpHandler:$t}=Fe(),{AwsRestJsonProtocol:Nt}=ot(),{Sha256:bt}=Qe(),Ut=async(e,t,n)=>({operation:Ke(t).operation,region:await j(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var zt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Ht=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:j(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jt="3.997.47",Kt={version:jt},_="ref",E=-1,x=!0,z="isSet",W="PartitionResult",S="booleanEquals",k="getAttr",H={[_]:"Endpoint"},N={[_]:W},g={},G=[{[_]:"Region"}],M={conditions:[[z,[H]],[z,G],["aws.partition",G,W],[S,[{[_]:"UseFIPS"},x]],[S,[{[_]:"UseDualStack"},x]],[S,[{fn:k,argv:[N,"supportsDualStack"]},x]],[S,[{fn:k,argv:[N,"supportsFIPS"]},x]],["stringEquals",[{fn:k,argv:[N,"name"]},"aws-us-gov"]]],results:[[E],[E,"Invalid Configuration: FIPS and custom endpoint are not supported"],[E,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[H,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"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],[E,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[E,"Invalid Configuration: Missing Region"]]},Vt=2,c=1e8,Lt=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]),Bt=at.from(Lt,Vt,M.conditions,M.results),Wt=new dt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>pt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=Ce;class i extends Ve{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class f extends i{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class I extends i{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.error_description=e.error_description}}class v extends i{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{static shapeId="com.amazonaws.ssooidc#InvalidClientException";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{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";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{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";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{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";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{static shapeId="com.amazonaws.ssooidc#SlowDownException";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 w extends i{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";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 Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",dr="InvalidScopeException",pr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",Er="UnsupportedGrantTypeException",gr="accessToken",l="client",_r="clientId",mr="clientSecret",xr="codeVerifier",Sr="code",fr="deviceCode",r="error",Ir="expiresIn",p="error_description",vr="grantType",Pr="http",u="httpError",Cr="idToken",J="reason",Q="refreshToken",Ar="redirectUri",Z="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",ee=new V(Z),te=[-3,Z,"SSOOIDCServiceException",0,[],[]];ee.registerError(te,i);var a=new V(o),re=[-3,o,Jt,{[r]:l,[u]:400},[r,J,p],[0,0,0]];a.registerError(re,f);var oe=[-3,o,Xt,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(oe,I);var ne=[-3,o,nr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ne,v);var se=[-3,o,ar,{[r]:Tr,[u]:500},[r,p],[0,0]];a.registerError(se,P);var ie=[-3,o,sr,{[r]:l,[u]:401},[r,p],[0,0]];a.registerError(ie,C);var ce=[-3,o,ir,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ce,A);var ae=[-3,o,cr,{[r]:l,[u]:400},[r,J,p],[0,0,0]];a.registerError(ae,y);var de=[-3,o,dr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(de,T);var pe=[-3,o,lr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(pe,O);var ue=[-3,o,hr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ue,w);var le=[-3,o,Er,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(le,D);var he=[ee,a],wr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],Rr=[0,o,or,8,0],kr=[0,o,pr,8,0],Ee=[0,o,ur,8,0],ge=[3,o,tr,0,[_r,mr,vr,fr,Sr,Q,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Ee,0],64,0,[()=>Rr,0]],3],_e=[3,o,rr,0,[gr,Or,Ir,Q,Cr],[[()=>wr,0],0,1,[()=>Ee,0],[()=>kr,0]]],me=[9,o,er,{[Pr]:["POST","/token",200]},()=>ge,()=>_e],$r=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??zt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new He}],logger:e?.logger??new Le,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:he,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??Et,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Be(process.version);let t=tt(e),n=()=>t().then(We),d=$r(e);Ae(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(yt,s),bodyLengthChecker:e?.bodyLengthChecker??Rt,defaultUserAgentProvider:e?.defaultUserAgentProvider??ye({serviceId:d.serviceId,clientVersion:Kt.version}),maxAttempts:e?.maxAttempts??h(ft,e),region:e?.region??h(st,{...it,...s}),requestHandler:$t.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...St,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??kt,useDualstackEndpoint:e?.useDualstackEndpoint??h(nt,s),useFipsEndpoint:e?.useFipsEndpoint??h(rt,s),userAgentAppId:e?.userAgentAppId??h(Te,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:d}=e;return{setHttpAuthScheme(s){let m=t.findIndex((R)=>R.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){d=s},credentials(){return d}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Oe(e),Ye(e),gt(e),br(e));return t.forEach((d)=>d.configure(n)),Object.assign(e,we(n),Je(n),_t(n),Ur(n))};class U extends K{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),d=De(n),s=It(d),m=ct(s),R=Re(m),xe=lt(R),fe=Ht(xe),Ie=Fr(fe,e?.extensions||[]);this.config=Ie,this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(ke(this.config)),this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(ze(this.config)),this.middlewareStack.use(Ge(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Pe)=>new Me({"aws.auth#sigv4":Pe.credentials})})),this.middlewareStack.use(je(this.config))}destroy(){super.destroy()}}var qr=Xe(Mt,"AWSSSOOIDCService","SSOOIDCClient",ht),zr={},Hr=(e,t,n,d)=>[];class F extends qr(zr,Hr,"CreateToken",me){}var Gr={CreateTokenCommand:F};class q extends U{}Ze(Gr,q);var Mr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},jr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=f,Br=re,Wr=Mr,Yr=I,Jr=oe,Xr=me,Qr=F,Zr=ge,eo=_e,to=v,ro=ne,oo=P,no=se,so=C,io=ie,co=A,ao=ce,po=y,uo=ae,lo=jr,ho=T,Eo=de,go=q,_o=U,mo=i,xo=te,So=O,fo=pe,Io=w,vo=ue,Po=D,Co=le,Ao=he;export{Kr as $Command,Vr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,Eo as InvalidScopeException$,go as SSOOIDC,_o as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,So as SlowDownException,fo as SlowDownException$,Io as UnauthorizedClientException,vo as UnauthorizedClientException$,Po as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|