@shumai-one/shumai-agent 0.5.2 → 0.6.0
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-28e1j4am.js +2 -0
- package/bin/chunk-2gyngq15.js +11 -0
- package/bin/{chunk-5dabj991.js → chunk-2n1dj1cv.js} +1 -1
- package/bin/{chunk-tjhp86sk.js → chunk-46jd4vhk.js} +10 -10
- package/bin/{chunk-5x7t37y2.js → chunk-56c9m0pd.js} +1 -1
- package/bin/{chunk-1pq0fbct.js → chunk-5yd2h4j1.js} +1 -1
- package/bin/chunk-6ddtb9e6.js +2 -0
- package/bin/chunk-7qprxs9y.js +2 -0
- package/bin/{chunk-4q9h14c1.js → chunk-7w6jsrka.js} +2 -2
- package/bin/{chunk-nxvssvtc.js → chunk-8kyt2vpr.js} +5 -5
- package/bin/{chunk-ytemrert.js → chunk-8z4drz4c.js} +3 -3
- package/bin/{chunk-p9ajsam7.js → chunk-av6bexjx.js} +1 -1
- package/bin/{chunk-y25ytsvy.js → chunk-bhgneh6h.js} +1 -1
- package/bin/chunk-c26v3b7f.js +3 -0
- package/bin/{chunk-fskwwr61.js → chunk-cam5rwb7.js} +1 -1
- package/bin/{chunk-03afm27e.js → chunk-e5amq469.js} +9 -9
- package/bin/{chunk-gp3pygq4.js → chunk-e5s9dk8d.js} +1 -1
- package/bin/{chunk-bcyejrnb.js → chunk-g80kdkky.js} +1 -1
- package/bin/{chunk-5tt4cs38.js → chunk-gmfm23kd.js} +1 -1
- package/bin/{chunk-bt74cq3j.js → chunk-h3dvj1c7.js} +5 -5
- package/bin/chunk-hg8pmr2h.js +2 -0
- package/bin/{chunk-xp2anj2s.js → chunk-jheky96k.js} +2 -2
- package/bin/chunk-jtsbe34h.js +4 -0
- package/bin/{chunk-dvtetv7g.js → chunk-m4801ex4.js} +1 -1
- package/bin/{chunk-099qsxx7.js → chunk-mfyektx6.js} +1 -1
- package/bin/chunk-mryt63fx.js +2 -0
- package/bin/{chunk-4622htj3.js → chunk-n75x7as6.js} +2 -2
- package/bin/{chunk-svhmffyd.js → chunk-p0sycvda.js} +2 -2
- package/bin/{chunk-33n9p9q4.js → chunk-ph0978mm.js} +2 -2
- package/bin/chunk-q032segv.js +2 -0
- package/bin/chunk-qnh6wt00.js +2 -0
- package/bin/chunk-qve2p771.js +2 -0
- package/bin/chunk-sgv9dhyw.js +2 -0
- package/bin/chunk-sk26g8gq.js +5 -0
- package/bin/{chunk-tvaymt9f.js → chunk-tsfemjnp.js} +2 -2
- package/bin/{chunk-atats4tw.js → chunk-vnn8sej7.js} +2 -2
- package/bin/chunk-w2xc1r8f.js +3 -0
- package/bin/{chunk-nfzjn0ec.js → chunk-w5h5ctmd.js} +2 -2
- package/bin/{chunk-2x49exs8.js → chunk-w5jhww1y.js} +2 -2
- package/bin/{chunk-6trcvf7g.js → chunk-w82m268v.js} +1 -1
- package/bin/chunk-xpx7v1cz.js +2 -0
- package/bin/{chunk-hede4f0t.js → chunk-yd3kbedy.js} +2 -2
- package/bin/{chunk-f913x9vp.js → chunk-yk14703k.js} +1 -1
- package/bin/{chunk-04pp5y8r.js → chunk-ynv1dwvb.js} +3 -3
- package/bin/chunk-ywmjzwj6.js +13 -0
- package/bin/{chunk-hh1xn96g.js → chunk-z65d9fhw.js} +1 -1
- package/bin/shumai-agent-app.js +618 -589
- package/package.json +8 -11
- package/prisma/migrations/20261014054332_add_embedding_768/migration.sql +8 -0
- package/prisma/schema.prisma +10 -8
- package/bin/chunk-17krnt1b.js +0 -2
- package/bin/chunk-2vqhhfx4.js +0 -3
- package/bin/chunk-52gbm98v.js +0 -4
- package/bin/chunk-5bjq4xfz.js +0 -11
- package/bin/chunk-8wfbcygf.js +0 -2
- package/bin/chunk-esvgx5tp.js +0 -2
- package/bin/chunk-ey92y4db.js +0 -2
- package/bin/chunk-f0ehwrm5.js +0 -2
- package/bin/chunk-h227m9p2.js +0 -13
- package/bin/chunk-h2vg744n.js +0 -2
- package/bin/chunk-h6kmgdqa.js +0 -2
- package/bin/chunk-k2e1ywm1.js +0 -2
- package/bin/chunk-pwagrnm6.js +0 -3
- package/bin/chunk-v3m002t2.js +0 -13518
- package/bin/chunk-w5ped8e9.js +0 -2
- package/bin/chunk-wntj2ssr.js +0 -2
- package/bin/chunk-xpg34mme.js +0 -5
- /package/bin/{chunk-e56mawh8.js → chunk-k71cxhsn.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{G,E,m,N,C,V,h,K,Z,f,pe,ee,te}from"./shumai-agent-app.js";var{awsEndpointFunctions:De,emitWarningIfUnsupportedVersion:ke,createDefaultUserAgentProvider:$e,NODE_APP_ID_CONFIG_OPTIONS:we,getAwsRegionExtensionConfiguration:Ne,resolveAwsRegionExtensionConfiguration:be,resolveUserAgentConfig:Ue,resolveHostHeaderConfig:Fe,getUserAgentPlugin:qe,getHostHeaderPlugin:He,getLoggerPlugin:Me,getRecursionDetectionPlugin:Ge}=f(),{NoAuthSigner:je,getHttpAuthSchemeEndpointRuleSetPlugin:Ke,DefaultIdentityProviderConfig:Ve,getHttpSigningPlugin:ze}=Z(),{normalizeProvider:X,getSmithyContext:Le,ServiceException:Be,NoOpLogger:We,emitWarningIfUnsupportedVersion:Ye,loadConfigsForDefaultMode:Je,getDefaultExtensionConfiguration:Xe,resolveDefaultRuntimeConfig:Qe,Client:Q,makeBuilder:Ze,createAggregatedClient:et}=E(),{Command:tt}=E();var Vr=tt,zr=Q;var{resolveDefaultsModeConfig:rt,loadConfig:_,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ot,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_OPTIONS:st,NODE_REGION_CONFIG_FILE_OPTIONS:it,resolveRegionConfig:ct}=m(),{BinaryDecisionDiagram:at,EndpointCache:pt,decideEndpoint:dt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=N(),{parseUrl:_t,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:Et,getContentLengthPlugin:mt}=h(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:ft,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:St,resolveRetryConfig:vt,getRetryPlugin:Pt}=K(),{TypeRegistry:re,getSchemaSerdePlugin:It}=G(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=ee(),{toUtf8:Tt,fromUtf8:Ot,toBase64:Rt,fromBase64:Dt,calculateBodyLength:kt}=C(),{streamCollector:$t,NodeHttpHandler:wt}=te(),{AwsRestJsonProtocol:Nt}=pe(),{Sha256:bt}=V(),Ut=async(e,t,n)=>({operation:Le(t).operation,region:await X(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 Ht=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Mt=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:X(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),jt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Kt="3.997.43",Vt={version:Kt},S="ref",g=-1,P=!0,B="isSet",oe="PartitionResult",I="booleanEquals",H="getAttr",W={[S]:"Endpoint"},M={[S]:oe},x={},Y=[{[S]:"Region"}],J={conditions:[[B,[W]],[B,Y],["aws.partition",Y,oe],[I,[{[S]:"UseFIPS"},P]],[I,[{[S]:"UseDualStack"},P]],[I,[{fn:H,argv:[M,"supportsDualStack"]},P]],[I,[{fn:H,argv:[M,"supportsFIPS"]},P]],["stringEquals",[{fn:H,argv:[M,"name"]},"aws-us-gov"]]],results:[[g],[g,"Invalid Configuration: FIPS and custom endpoint are not supported"],[g,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[W,x],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[g,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",x],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",x],[g,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[g,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",x],[g,"Invalid Configuration: Missing Region"]]},zt=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,zt,J.conditions,J.results),Wt=new pt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>dt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=De;class i extends Be{constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class A extends i{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class y extends i{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.error_description=e.error_description}}class T extends i{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}class O extends i{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,O.prototype),this.error=e.error,this.error_description=e.error_description}}class R extends i{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype),this.error=e.error,this.error_description=e.error_description}}class k extends i{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,k.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class w extends i{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.error_description=e.error_description}}class b extends i{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,b.prototype),this.error=e.error,this.error_description=e.error_description}}class U extends i{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,U.prototype),this.error=e.error,this.error_description=e.error_description}}class F extends i{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,F.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",pr="InvalidScopeException",dr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",_r="UnsupportedGrantTypeException",gr="accessToken",l="client",Er="clientId",mr="clientSecret",xr="codeVerifier",fr="code",Sr="deviceCode",r="error",vr="expiresIn",d="error_description",Pr="grantType",Ir="http",u="httpError",Cr="idToken",ne="reason",se="refreshToken",Ar="redirectUri",ie="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",ce=re.for(ie),ae=[-3,ie,"SSOOIDCServiceException",0,[],[]];ce.registerError(ae,i);var a=re.for(o),de=[-3,o,Jt,{[r]:l,[u]:400},[r,ne,d],[0,0,0]];a.registerError(de,A);var ue=[-3,o,Xt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ue,y);var le=[-3,o,nr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(le,T);var he=[-3,o,ar,{[r]:Tr,[u]:500},[r,d],[0,0]];a.registerError(he,O);var _e=[-3,o,sr,{[r]:l,[u]:401},[r,d],[0,0]];a.registerError(_e,R);var ge=[-3,o,ir,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ge,D);var Ee=[-3,o,cr,{[r]:l,[u]:400},[r,ne,d],[0,0,0]];a.registerError(Ee,k);var me=[-3,o,pr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(me,w);var xe=[-3,o,lr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(xe,b);var fe=[-3,o,hr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(fe,U);var Se=[-3,o,_r,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(Se,F);var ve=[ce,a],Rr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],kr=[0,o,or,8,0],$r=[0,o,dr,8,0],Pe=[0,o,ur,8,0],Ie=[3,o,tr,0,[Er,mr,Pr,Sr,fr,se,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Pe,0],64,0,[()=>kr,0]],3],Ce=[3,o,rr,0,[gr,Or,vr,se,Cr],[[()=>Rr,0],0,1,[()=>Pe,0],[()=>$r,0]]],Ae=[9,o,er,{[Ir]:["POST","/token",200]},()=>Ie,()=>Ce],wr=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??Rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ht,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 je}],logger:e?.logger??new We,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ve,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??_t,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Ye(process.version);let t=rt(e),n=()=>t().then(Je),p=wr(e);ke(process.version);let s={profile:e?.profile,logger:p.logger};return{...p,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??_(yt,s),bodyLengthChecker:e?.bodyLengthChecker??kt,defaultUserAgentProvider:e?.defaultUserAgentProvider??$e({serviceId:p.serviceId,clientVersion:Vt.version}),maxAttempts:e?.maxAttempts??_(St,e),region:e?.region??_(st,{...it,...s}),requestHandler:wt.create(e?.requestHandler??n),retryMode:e?.retryMode??_({...ft,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??$t,useDualstackEndpoint:e?.useDualstackEndpoint??_(nt,s),useFipsEndpoint:e?.useFipsEndpoint??_(ot,s),userAgentAppId:e?.userAgentAppId??_(we,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:p}=e;return{setHttpAuthScheme(s){let v=t.findIndex((q)=>q.schemeId===s.schemeId);if(v===-1)t.push(s);else t.splice(v,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){p=s},credentials(){return p}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Ne(e),Xe(e),gt(e),br(e));return t.forEach((p)=>p.configure(n)),Object.assign(e,be(n),Qe(n),Et(n),Ur(n))};class j extends Q{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),p=Ue(n),s=vt(p),v=ct(s),q=Fe(v),ye=lt(q),Te=Mt(ye),Oe=Fr(Te,e?.extensions||[]);this.config=Oe,this.middlewareStack.use(It(this.config)),this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(He(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(Ge(this.config)),this.middlewareStack.use(Ke(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Re)=>new Ve({"aws.auth#sigv4":Re.credentials})})),this.middlewareStack.use(ze(this.config))}destroy(){super.destroy()}}var qr=Ze(jt,"AWSSSOOIDCService","SSOOIDCClient",ht),Hr={},Mr=(e,t,n,p)=>[];class z extends qr(Hr,Mr,"CreateToken",Ae){}var Gr={CreateTokenCommand:z};class L extends j{}et(Gr,L);var jr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Kr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=A,Br=de,Wr=jr,Yr=y,Jr=ue,Xr=Ae,Qr=z,Zr=Ie,eo=Ce,to=T,ro=le,oo=O,no=he,so=R,io=_e,co=D,ao=ge,po=k,uo=Ee,lo=Kr,ho=w,_o=me,go=L,Eo=j,mo=i,xo=ae,fo=b,So=xe,vo=U,Po=fe,Io=F,Co=Se,Ao=ve;export{Vr as $Command,zr 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,_o as InvalidScopeException$,go as SSOOIDC,Eo as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,fo as SlowDownException,So as SlowDownException$,vo as UnauthorizedClientException,Po as UnauthorizedClientException$,Io as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|
|
2
|
+
import{D,C,m,N,I,z,g,X,G,h,pe,Z,ee}from"./shumai-agent-app.js";var{awsEndpointFunctions:De,emitWarningIfUnsupportedVersion:ke,createDefaultUserAgentProvider:$e,NODE_APP_ID_CONFIG_OPTIONS:we,getAwsRegionExtensionConfiguration:Ne,resolveAwsRegionExtensionConfiguration:be,resolveUserAgentConfig:Ue,resolveHostHeaderConfig:Fe,getUserAgentPlugin:qe,getHostHeaderPlugin:He,getLoggerPlugin:Me,getRecursionDetectionPlugin:Ge}=h(),{NoAuthSigner:je,getHttpAuthSchemeEndpointRuleSetPlugin:Ke,DefaultIdentityProviderConfig:Ve,getHttpSigningPlugin:ze}=G(),{normalizeProvider:Q,getSmithyContext:Le,ServiceException:Be,NoOpLogger:We,emitWarningIfUnsupportedVersion:Ye,loadConfigsForDefaultMode:Je,getDefaultExtensionConfiguration:Xe,resolveDefaultRuntimeConfig:Qe,Client:te,makeBuilder:Ze,createAggregatedClient:et}=C(),{Command:tt}=C();var Vr=tt,zr=te;var{resolveDefaultsModeConfig:rt,loadConfig:_,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ot,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_OPTIONS:st,NODE_REGION_CONFIG_FILE_OPTIONS:it,resolveRegionConfig:ct}=m(),{BinaryDecisionDiagram:at,EndpointCache:pt,decideEndpoint:dt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=N(),{parseUrl:_t,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:Et,getContentLengthPlugin:mt}=g(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:ft,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:St,resolveRetryConfig:vt,getRetryPlugin:Pt}=X(),{TypeRegistry:re,getSchemaSerdePlugin:It}=D(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=Z(),{toUtf8:Tt,fromUtf8:Ot,toBase64:Rt,fromBase64:Dt,calculateBodyLength:kt}=I(),{streamCollector:$t,NodeHttpHandler:wt}=ee(),{AwsRestJsonProtocol:Nt}=pe(),{Sha256:bt}=z(),Ut=async(e,t,n)=>({operation:Le(t).operation,region:await Q(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 Ht=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Mt=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:Q(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),jt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Kt="3.997.43",Vt={version:Kt},f="ref",E=-1,v=!0,B="isSet",oe="PartitionResult",P="booleanEquals",M="getAttr",W={[f]:"Endpoint"},j={[f]:oe},x={},Y=[{[f]:"Region"}],J={conditions:[[B,[W]],[B,Y],["aws.partition",Y,oe],[P,[{[f]:"UseFIPS"},v]],[P,[{[f]:"UseDualStack"},v]],[P,[{fn:M,argv:[j,"supportsDualStack"]},v]],[P,[{fn:M,argv:[j,"supportsFIPS"]},v]],["stringEquals",[{fn:M,argv:[j,"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"],[W,x],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[E,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",x],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",x],[E,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[E,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",x],[E,"Invalid Configuration: Missing Region"]]},zt=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,zt,J.conditions,J.results),Wt=new pt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>dt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=De;class i extends Be{constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class A extends i{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class y extends i{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.error_description=e.error_description}}class T extends i{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}class O extends i{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,O.prototype),this.error=e.error,this.error_description=e.error_description}}class R extends i{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype),this.error=e.error,this.error_description=e.error_description}}class k extends i{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,k.prototype),this.error=e.error,this.error_description=e.error_description}}class w extends i{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class b extends i{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,b.prototype),this.error=e.error,this.error_description=e.error_description}}class U extends i{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,U.prototype),this.error=e.error,this.error_description=e.error_description}}class F extends i{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype),this.error=e.error,this.error_description=e.error_description}}class q extends i{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,q.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",pr="InvalidScopeException",dr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",_r="UnsupportedGrantTypeException",gr="accessToken",l="client",Er="clientId",mr="clientSecret",xr="codeVerifier",fr="code",Sr="deviceCode",r="error",vr="expiresIn",d="error_description",Pr="grantType",Ir="http",u="httpError",Cr="idToken",ne="reason",se="refreshToken",Ar="redirectUri",ie="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",ce=re.for(ie),ae=[-3,ie,"SSOOIDCServiceException",0,[],[]];ce.registerError(ae,i);var a=re.for(o),de=[-3,o,Jt,{[r]:l,[u]:400},[r,ne,d],[0,0,0]];a.registerError(de,A);var ue=[-3,o,Xt,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ue,y);var le=[-3,o,nr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(le,T);var he=[-3,o,ar,{[r]:Tr,[u]:500},[r,d],[0,0]];a.registerError(he,O);var _e=[-3,o,sr,{[r]:l,[u]:401},[r,d],[0,0]];a.registerError(_e,R);var ge=[-3,o,ir,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(ge,k);var Ee=[-3,o,cr,{[r]:l,[u]:400},[r,ne,d],[0,0,0]];a.registerError(Ee,w);var me=[-3,o,pr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(me,b);var xe=[-3,o,lr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(xe,U);var fe=[-3,o,hr,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(fe,F);var Se=[-3,o,_r,{[r]:l,[u]:400},[r,d],[0,0]];a.registerError(Se,q);var ve=[ce,a],Rr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],kr=[0,o,or,8,0],$r=[0,o,dr,8,0],Pe=[0,o,ur,8,0],Ie=[3,o,tr,0,[Er,mr,Pr,Sr,fr,se,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Pe,0],64,0,[()=>kr,0]],3],Ce=[3,o,rr,0,[gr,Or,vr,se,Cr],[[()=>Rr,0],0,1,[()=>Pe,0],[()=>$r,0]]],Ae=[9,o,er,{[Ir]:["POST","/token",200]},()=>Ie,()=>Ce],wr=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??Rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ht,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 je}],logger:e?.logger??new We,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ve,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??_t,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Ye(process.version);let t=rt(e),n=()=>t().then(Je),p=wr(e);ke(process.version);let s={profile:e?.profile,logger:p.logger};return{...p,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??_(yt,s),bodyLengthChecker:e?.bodyLengthChecker??kt,defaultUserAgentProvider:e?.defaultUserAgentProvider??$e({serviceId:p.serviceId,clientVersion:Vt.version}),maxAttempts:e?.maxAttempts??_(St,e),region:e?.region??_(st,{...it,...s}),requestHandler:wt.create(e?.requestHandler??n),retryMode:e?.retryMode??_({...ft,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??$t,useDualstackEndpoint:e?.useDualstackEndpoint??_(nt,s),useFipsEndpoint:e?.useFipsEndpoint??_(ot,s),userAgentAppId:e?.userAgentAppId??_(we,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:p}=e;return{setHttpAuthScheme(s){let S=t.findIndex((H)=>H.schemeId===s.schemeId);if(S===-1)t.push(s);else t.splice(S,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){p=s},credentials(){return p}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Ne(e),Xe(e),gt(e),br(e));return t.forEach((p)=>p.configure(n)),Object.assign(e,be(n),Qe(n),Et(n),Ur(n))};class K extends te{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),p=Ue(n),s=vt(p),S=ct(s),H=Fe(S),ye=lt(H),Te=Mt(ye),Oe=Fr(Te,e?.extensions||[]);this.config=Oe,this.middlewareStack.use(It(this.config)),this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(He(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(Ge(this.config)),this.middlewareStack.use(Ke(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Re)=>new Ve({"aws.auth#sigv4":Re.credentials})})),this.middlewareStack.use(ze(this.config))}destroy(){super.destroy()}}var qr=Ze(jt,"AWSSSOOIDCService","SSOOIDCClient",ht),Hr={},Mr=(e,t,n,p)=>[];class V extends qr(Hr,Mr,"CreateToken",Ae){}var Gr={CreateTokenCommand:V};class L extends K{}et(Gr,L);var jr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Kr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=A,Br=de,Wr=jr,Yr=y,Jr=ue,Xr=Ae,Qr=V,Zr=Ie,eo=Ce,to=T,ro=le,oo=O,no=he,so=R,io=_e,co=k,ao=ge,po=w,uo=Ee,lo=Kr,ho=b,_o=me,go=L,Eo=K,mo=i,xo=ae,fo=U,So=xe,vo=F,Po=fe,Io=q,Co=Se,Ao=ve;export{Vr as $Command,zr 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,_o as InvalidScopeException$,go as SSOOIDC,Eo as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,fo as SlowDownException,So as SlowDownException$,vo as UnauthorizedClientException,Po as UnauthorizedClientException$,Io as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|