@shumai-one/shumai-agent 0.6.1 → 0.6.2
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-023w4q1f.js +2 -0
- package/bin/chunk-29r6a67p.js +2 -0
- package/bin/chunk-2exf93nx.js +3 -0
- package/bin/chunk-3ev1fh2w.js +3 -0
- package/bin/chunk-3kt4k4jg.js +11 -0
- package/bin/chunk-62n25c3m.js +2 -0
- package/bin/chunk-6pf9rgk6.js +2 -0
- package/bin/chunk-7bn1mjf2.js +3 -0
- package/bin/chunk-7pwsjw9r.js +8 -0
- package/bin/{chunk-n91txatn.js → chunk-847yv5m2.js} +10 -10
- package/bin/chunk-9fqyh49m.js +2 -0
- package/bin/chunk-a5rn622e.js +7 -0
- package/bin/chunk-akj1v1zj.js +5 -0
- package/bin/{chunk-dcm0shkz.js → chunk-am25vkck.js} +2 -2
- package/bin/chunk-at5qzp08.js +7 -0
- package/bin/chunk-b2n9g75s.js +2 -0
- package/bin/chunk-b767451d.js +3 -0
- package/bin/chunk-bsxxt20c.js +2 -0
- package/bin/{chunk-081jf273.js → chunk-crc78aby.js} +2 -2
- package/bin/chunk-ee8rt9we.js +2 -0
- package/bin/chunk-eh6xcwvv.js +16 -0
- package/bin/chunk-fgabndrh.js +4 -0
- package/bin/chunk-fq1tf20c.js +45 -0
- package/bin/chunk-g7ad4dw4.js +2 -0
- package/bin/chunk-g7v8pfhe.js +2 -0
- package/bin/chunk-gx33h4rt.js +3 -0
- package/bin/chunk-hnpr396w.js +12 -0
- package/bin/chunk-hssdv3mc.js +2 -0
- package/bin/chunk-m3saxrzj.js +13 -0
- package/bin/chunk-mnd4dn3q.js +2 -0
- package/bin/chunk-nmygzasv.js +2 -0
- package/bin/chunk-nwz9f1dy.js +2 -0
- package/bin/chunk-p5nhcxwg.js +3 -0
- package/bin/chunk-pbdctjg4.js +2 -0
- package/bin/chunk-pphsqcqt.js +2 -0
- package/bin/{chunk-rjcyh2qr.js → chunk-pqa01d4g.js} +1 -1
- package/bin/{chunk-d7q1ddrt.js → chunk-q0x8yqms.js} +2 -2
- package/bin/chunk-q5w77y3e.js +2 -0
- package/bin/chunk-rf428t28.js +2 -0
- package/bin/chunk-rkcsrrvy.js +497 -0
- package/bin/chunk-rtqengn3.js +2 -0
- package/bin/chunk-rx0fmt6n.js +4 -0
- package/bin/chunk-ss91akc0.js +2 -0
- package/bin/{chunk-3mt7vfsa.js → chunk-stex0y7j.js} +2 -2
- package/bin/chunk-vngxwvwv.js +2 -0
- package/bin/chunk-w0e5ek1r.js +2 -0
- package/bin/chunk-x71z4a2a.js +3 -0
- package/bin/chunk-z19gfsnw.js +3 -0
- package/bin/chunk-z3gbypjs.js +2 -0
- package/bin/chunk-zphx997k.js +8 -0
- package/bin/shumai-agent-app.js +862 -979
- package/package.json +7 -7
- package/prisma/migrations/20261026024507_hash_api_tokens/migration.sql +28 -0
- package/prisma/migrations/20261026031904_add_audit_log_via/migration.sql +2 -0
- package/prisma/migrations/20261029024626_add_oauth_and_jwks/migration.sql +205 -0
- package/prisma/migrations/20261029030321_default_empty_arrays_oauth/migration.sql +25 -0
- package/prisma/schema.prisma +186 -1
- package/bin/chunk-104551jk.js +0 -2
- package/bin/chunk-12a4ms93.js +0 -2
- package/bin/chunk-21s7ywef.js +0 -2
- package/bin/chunk-2zbfptzv.js +0 -3
- package/bin/chunk-3k48ht8h.js +0 -3
- package/bin/chunk-4qhy3xyh.js +0 -2
- package/bin/chunk-5xpxamqh.js +0 -2
- package/bin/chunk-6gnxwws5.js +0 -2
- package/bin/chunk-6w8btwke.js +0 -2
- package/bin/chunk-795fnqct.js +0 -2
- package/bin/chunk-8qgdqxgq.js +0 -3
- package/bin/chunk-9g06vmtt.js +0 -16
- package/bin/chunk-9k039vqv.js +0 -8
- package/bin/chunk-abfpprr0.js +0 -2
- package/bin/chunk-abswqtw4.js +0 -45
- package/bin/chunk-b7bn9n73.js +0 -2
- package/bin/chunk-brkgxzw3.js +0 -3
- package/bin/chunk-d5cz2jys.js +0 -2
- package/bin/chunk-dnawwy6j.js +0 -2
- package/bin/chunk-eaeecavf.js +0 -4
- package/bin/chunk-ete48wns.js +0 -7
- package/bin/chunk-fe1zpwxx.js +0 -2
- package/bin/chunk-gdp22mc0.js +0 -13
- package/bin/chunk-gpxzz0sd.js +0 -2
- package/bin/chunk-gwfmhykm.js +0 -2
- package/bin/chunk-ha2rjcts.js +0 -3
- package/bin/chunk-hjh1b6ty.js +0 -3
- package/bin/chunk-jg1ya6rg.js +0 -12
- package/bin/chunk-jq958epm.js +0 -3
- package/bin/chunk-kfnrfz1s.js +0 -11
- package/bin/chunk-kr9njcy8.js +0 -2
- package/bin/chunk-m9m58xw1.js +0 -2
- package/bin/chunk-ms2vtvq9.js +0 -2
- package/bin/chunk-n7h0dxfb.js +0 -2
- package/bin/chunk-n7ne3vvj.js +0 -2
- package/bin/chunk-nbj41zxc.js +0 -5
- package/bin/chunk-re34q2ps.js +0 -7
- package/bin/chunk-s13yr8m9.js +0 -8
- package/bin/chunk-tqrmdcmr.js +0 -4
- package/bin/chunk-w1vsn0sd.js +0 -2
- package/bin/chunk-wpstpsy7.js +0 -2
- package/bin/chunk-ytgrcxjs.js +0 -3
- package/bin/chunk-z6b82z34.js +0 -86
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{le,q,P,oe,z,me,L,we,ge,N,Fe,ve,be}from"./chunk-rkcsrrvy.js";var{awsEndpointFunctions:X,emitWarningIfUnsupportedVersion:Z,createDefaultUserAgentProvider:ee,NODE_APP_ID_CONFIG_OPTIONS:te,getAwsRegionExtensionConfiguration:se,resolveAwsRegionExtensionConfiguration:ne,resolveUserAgentConfig:re,resolveHostHeaderConfig:ie,getUserAgentPlugin:ae,getHostHeaderPlugin:ce,getLoggerPlugin:ue,getRecursionDetectionPlugin:de}=N(),{NoAuthSigner:pe,getHttpAuthSchemeEndpointRuleSetPlugin:he,DefaultIdentityProviderConfig:_e,getHttpSigningPlugin:Se}=ge(),{normalizeProvider:H,getSmithyContext:fe,ServiceException:Ee,NoOpLogger:Pe,emitWarningIfUnsupportedVersion:Re,loadConfigsForDefaultMode:Ce,getDefaultExtensionConfiguration:xe,resolveDefaultRuntimeConfig:Ie,Client:Ae,makeBuilder:ye,createAggregatedClient:Oe}=q(),{Command:fs}=q();var{resolveDefaultsModeConfig:Te,loadConfig:a,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:De,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Ne,NODE_REGION_CONFIG_OPTIONS:ke,NODE_REGION_CONFIG_FILE_OPTIONS:$e,resolveRegionConfig:qe}=P(),{BinaryDecisionDiagram:He,EndpointCache:Ue,decideEndpoint:Ge,customEndpointFunctions:Me,resolveEndpointConfig:ze,getEndpointPlugin:je}=oe(),{parseUrl:Le,getHttpHandlerExtensionConfiguration:Ke,resolveHttpHandlerRuntimeConfig:Ve,getContentLengthPlugin:Be}=L(),{DEFAULT_RETRY_MODE:We,NODE_RETRY_MODE_CONFIG_OPTIONS:Qe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Ye,resolveRetryConfig:Je,getRetryPlugin:Xe}=we(),{TypeRegistry:U,getSchemaSerdePlugin:Ze}=le(),{resolveAwsSdkSigV4Config:et,AwsSdkSigV4Signer:tt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:st}=ve(),{toUtf8:ot,fromUtf8:nt,toBase64:rt,fromBase64:it,calculateBodyLength:at}=z(),{streamCollector:ct,NodeHttpHandler:ut}=be(),{AwsRestJsonProtocol:dt}=Fe(),{Sha256:lt}=me(),pt=async(e,t,s)=>({operation:fe(t).operation,region:await H(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ht(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function gt(e){return{schemeId:"smithy.api#noAuth"}}var mt=(e)=>{let t=[];switch(e.operation){case"GetRoleCredentials":{t.push(gt());break}default:t.push(ht(e))}return t},_t=(e)=>{let t=et(e);return Object.assign(t,{authSchemePreference:H(e.authSchemePreference??[])})},St=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),ft={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Et="3.997.43",Pt={version:Et},l="ref",c=-1,g=!0,D="isSet",G="PartitionResult",m="booleanEquals",R="getAttr",w={[l]:"Endpoint"},C={[l]:G},d={},k=[{[l]:"Region"}],b={conditions:[[D,[w]],[D,k],["aws.partition",k,G],[m,[{[l]:"UseFIPS"},g]],[m,[{[l]:"UseDualStack"},g]],[m,[{fn:R,argv:[C,"supportsDualStack"]},g]],[m,[{fn:R,argv:[C,"supportsFIPS"]},g]],["stringEquals",[{fn:R,argv:[C,"name"]},"aws-us-gov"]]],results:[[c],[c,"Invalid Configuration: FIPS and custom endpoint are not supported"],[c,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[w,d],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",d],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",d],[c,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",d],[c,"Invalid Configuration: Missing Region"]]},vt=2,n=1e8,Rt=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]),Ct=He.from(Rt,vt,b.conditions,b.results),xt=new Ue({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),It=(e,t={})=>xt.get(e,()=>Ge(Ct,{endpointParams:e,logger:t.logger}));Me.aws=X;class u extends Ee{constructor(e){super(e);Object.setPrototypeOf(this,u.prototype)}}class x extends u{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,x.prototype)}}class I extends u{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype)}}class A extends u{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype)}}class y extends u{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype)}}var At="AccessTokenType",yt="GetRoleCredentials",Ot="GetRoleCredentialsRequest",Tt="GetRoleCredentialsResponse",Dt="InvalidRequestException",Nt="RoleCredentials",wt="ResourceNotFoundException",kt="SecretAccessKeyType",bt="SessionTokenType",Ft="TooManyRequestsException",$t="UnauthorizedException",qt="accountId",Ht="accessKeyId",Ut="accessToken",Gt="account_id",_="client",S="error",Mt="expiration",zt="http",f="httpError",jt="httpHeader",F="httpQuery",E="message",Lt="roleCredentials",Kt="roleName",Vt="role_name",M="smithy.ts.sdk.synthetic.com.amazonaws.sso",Bt="secretAccessKey",Wt="sessionToken",Qt="x-amz-sso_bearer_token",r="com.amazonaws.sso",j=U.for(M),Yt=[-3,M,"SSOServiceException",0,[],[]];j.registerError(Yt,u);var p=U.for(r),Jt=[-3,r,Dt,{[S]:_,[f]:400},[E],[0]];p.registerError(Jt,x);var Xt=[-3,r,wt,{[S]:_,[f]:404},[E],[0]];p.registerError(Xt,I);var Zt=[-3,r,Ft,{[S]:_,[f]:429},[E],[0]];p.registerError(Zt,A);var es=[-3,r,$t,{[S]:_,[f]:401},[E],[0]];p.registerError(es,y);var ts=[j,p],ss=[0,r,At,8,0],os=[0,r,kt,8,0],ns=[0,r,bt,8,0],rs=[3,r,Ot,0,[Kt,qt,Ut],[[0,{[F]:Vt}],[0,{[F]:Gt}],[()=>ss,{[jt]:Qt}]],3],is=[3,r,Tt,0,[Lt],[[()=>as,0]]],as=[3,r,Nt,0,[Ht,Bt,Wt,Mt],[0,[()=>os,0],[()=>ns,0],1]],cs=[9,r,yt,{[zt]:["GET","/federation/credentials",200]},()=>rs,()=>is],us=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??it,base64Encoder:e?.base64Encoder??rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??It,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??mt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new tt},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new pe}],logger:e?.logger??new Pe,protocol:e?.protocol??dt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:ts,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",sha256:e?.sha256??lt,urlParser:e?.urlParser??Le,utf8Decoder:e?.utf8Decoder??nt,utf8Encoder:e?.utf8Encoder??ot}),ds=(e)=>{Re(process.version);let t=Te(e),s=()=>t().then(Ce),i=us(e);Z(process.version);let o={profile:e?.profile,logger:i.logger};return{...i,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??a(st,o),bodyLengthChecker:e?.bodyLengthChecker??at,defaultUserAgentProvider:e?.defaultUserAgentProvider??ee({serviceId:i.serviceId,clientVersion:Pt.version}),maxAttempts:e?.maxAttempts??a(Ye,e),region:e?.region??a(ke,{...$e,...o}),requestHandler:ut.create(e?.requestHandler??s),retryMode:e?.retryMode??a({...Qe,default:async()=>(await s()).retryMode||We},e),streamCollector:e?.streamCollector??ct,useDualstackEndpoint:e?.useDualstackEndpoint??a(Ne,o),useFipsEndpoint:e?.useFipsEndpoint??a(De,o),userAgentAppId:e?.userAgentAppId??a(te,o)}},ls=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:i}=e;return{setHttpAuthScheme(o){let h=t.findIndex((v)=>v.schemeId===o.schemeId);if(h===-1)t.push(o);else t.splice(h,1,o)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(o){s=o},httpAuthSchemeProvider(){return s},setCredentials(o){i=o},credentials(){return i}}},ps=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hs=(e,t)=>{let s=Object.assign(se(e),xe(e),Ke(e),ls(e));return t.forEach((i)=>i.configure(s)),Object.assign(e,ne(s),Ie(s),Ve(s),ps(s))};class O extends Ae{config;constructor(...[e]){let t=ds(e||{});super(t);this.initConfig=t;let s=St(t),i=re(s),o=Je(i),h=qe(o),v=ie(h),W=ze(v),Q=_t(W),Y=hs(Q,e?.extensions||[]);this.config=Y,this.middlewareStack.use(Ze(this.config)),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(Xe(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(ce(this.config)),this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(de(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:pt,identityProviderConfigProvider:async(J)=>new _e({"aws.auth#sigv4":J.credentials})})),this.middlewareStack.use(Se(this.config))}destroy(){super.destroy()}}var gs=ye(ft,"SWBPortalService","SSOClient",je),ms={},_s=(e,t,s,i)=>[];class T extends gs(ms,_s,"GetRoleCredentials",cs){}var Ss={GetRoleCredentialsCommand:T};class K extends O{}Oe(Ss,K);var V=T;var B=O;export{V as GetRoleCredentialsCommand,B as SSOClient};
|