@shumai-one/shumai 0.6.0 → 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-01052ssf.js +32 -0
- package/bin/{chunk-cdk8vqeg.js → chunk-02fvcrej.js} +4 -4
- package/bin/chunk-0bj887zm.js +2 -0
- package/bin/chunk-167z646e.js +2 -0
- package/bin/chunk-1ktk6764.js +10 -0
- package/bin/{chunk-4jj92zwa.js → chunk-1nvd90g2.js} +1 -1
- package/bin/{chunk-ww9qq8yq.js → chunk-1wfg56z3.js} +5 -5
- package/bin/{chunk-3tg10kwz.js → chunk-257dcd2f.js} +2 -2
- package/bin/chunk-26qn7fek.js +2 -0
- package/bin/chunk-2cdxm1cp.js +55 -0
- package/bin/chunk-2jj4j8cn.js +3 -0
- package/bin/chunk-2ne2b54t.js +2 -0
- package/bin/{chunk-h1fbev9c.js → chunk-2nhgdqdg.js} +2 -2
- package/bin/chunk-2vbeqczj.js +1 -0
- package/bin/chunk-37p6bcx2.js +1 -0
- package/bin/chunk-3ckkwdjx.js +13 -0
- package/bin/chunk-3knfx6dm.js +1 -0
- package/bin/chunk-3z85zxkn.js +1 -0
- package/bin/chunk-4mws03es.js +5 -0
- package/bin/chunk-54tbfvya.js +2 -0
- package/bin/chunk-55h9ze53.js +2 -0
- package/bin/chunk-56kh5fxc.js +1 -0
- package/bin/chunk-576nj64j.js +2 -0
- package/bin/{chunk-9gftd4f7.js → chunk-5wapd171.js} +13 -13
- package/bin/chunk-6cnqjngz.js +1 -0
- package/bin/chunk-73yncv54.js +2 -0
- package/bin/chunk-7g46e1wy.js +3 -0
- package/bin/{chunk-3020am4q.js → chunk-7naa7tpn.js} +2 -2
- package/bin/{chunk-6zerk0em.js → chunk-7sgrtxbt.js} +2 -2
- package/bin/{chunk-5bpvwv66.js → chunk-7v7mypc6.js} +2 -2
- package/bin/chunk-82tps5n1.js +2 -0
- package/bin/chunk-84x8p7v5.js +1 -0
- package/bin/{chunk-fxg81vtx.js → chunk-88jg9dq5.js} +2 -2
- package/bin/chunk-8cjet7pp.js +12 -0
- package/bin/chunk-8fyg9dy4.js +2 -0
- package/bin/chunk-8gtfgkrn.js +2 -0
- package/bin/chunk-8mqbztj8.js +2 -0
- package/bin/chunk-8qdtvfx3.css +1 -0
- package/bin/chunk-8xb6yz11.js +2 -0
- package/bin/chunk-8yjsmr7g.js +2 -0
- package/bin/chunk-91rb0jpb.js +2 -0
- package/bin/chunk-96qpjght.js +2 -0
- package/bin/chunk-9f1xk1nt.js +1 -0
- package/bin/chunk-9mk9cvbk.js +1 -0
- package/bin/{chunk-65t6rm5d.js → chunk-9n1w5dw1.js} +3 -3
- package/bin/chunk-9nw5w8vh.js +1 -0
- package/bin/{chunk-cv5xx81e.js → chunk-9t3p4xp6.js} +1 -1
- package/bin/chunk-9xhjy897.js +11 -0
- package/bin/chunk-9zsv6d2f.js +1 -0
- package/bin/chunk-a411xhmm.js +7 -0
- package/bin/{chunk-xbw7ffrz.js → chunk-a74g6h8a.js} +2 -2
- package/bin/chunk-ah8fjb6f.js +2 -0
- package/bin/chunk-atfz7g7e.js +2 -0
- package/bin/{chunk-j4p3eqtd.js → chunk-b5rhvzv9.js} +2 -2
- package/bin/{chunk-rq2h2bwt.js → chunk-b7bnp021.js} +2 -2
- package/bin/chunk-cf5axr8c.js +1 -0
- package/bin/chunk-cgmebxx6.js +2 -0
- package/bin/chunk-cwat1jwx.js +3 -0
- package/bin/chunk-cz13a82m.js +3 -0
- package/bin/chunk-dk42gf7v.js +2 -0
- package/bin/chunk-e4f56spj.js +4 -0
- package/bin/chunk-e4yscwen.js +18 -0
- package/bin/chunk-eb7mzbfm.js +1 -0
- package/bin/chunk-er14d498.js +3 -0
- package/bin/{chunk-sbyyn9yw.js → chunk-eyjfhdp9.js} +2 -2
- package/bin/chunk-f25fe9th.js +393 -0
- package/bin/chunk-f6avg5qe.js +129 -0
- package/bin/{chunk-vjyget8s.js → chunk-fatmqnp1.js} +1 -1
- package/bin/chunk-fvx9k1dc.js +2 -0
- package/bin/chunk-g22wmpk1.js +3 -0
- package/bin/chunk-g6sdezec.js +2 -0
- package/bin/chunk-gtf19jc1.js +2 -0
- package/bin/chunk-gxepkvt2.js +2 -0
- package/bin/chunk-h1n7jqnw.js +1 -0
- package/bin/chunk-hfm82066.js +2 -0
- package/bin/chunk-hnkcgvcj.js +3 -0
- package/bin/{chunk-fg9sr6r9.js → chunk-hpbn0k9n.js} +2 -2
- package/bin/{chunk-qk5hsn6e.js → chunk-hpwv4am3.js} +4 -4
- package/bin/{chunk-d6xezgrg.js → chunk-hw6czrya.js} +1 -1
- package/bin/{chunk-59t9s2jh.js → chunk-hzkjgcre.js} +1 -1
- package/bin/chunk-j2s311yc.js +3 -0
- package/bin/{chunk-6hzktewz.js → chunk-jt02kpfc.js} +2 -2
- package/bin/{chunk-qnyqtaf0.js → chunk-jt0ykktx.js} +1 -1
- package/bin/{chunk-047n9gfs.js → chunk-jzgbxqdg.js} +2 -2
- package/bin/chunk-kj6h5j5a.js +4 -0
- package/bin/chunk-km4gn6b6.js +1 -0
- package/bin/chunk-knj2s8mg.js +16 -0
- package/bin/{chunk-01ym2agz.js → chunk-kvhf12b4.js} +2 -2
- package/bin/chunk-m0q2cgfg.js +2 -0
- package/bin/chunk-m82tkhaa.js +11 -0
- package/bin/chunk-m9adtgzk.js +2 -0
- package/bin/{chunk-rh8dy99a.js → chunk-mcj1xpcc.js} +2 -2
- package/bin/chunk-mcw198kg.js +13 -0
- package/bin/{chunk-5e7r7a9d.js → chunk-mwktrwtx.js} +1 -1
- package/bin/chunk-mzsw9var.js +3 -0
- package/bin/chunk-ns33grgx.js +2 -0
- package/bin/{chunk-emgyjhmx.js → chunk-ny1kbmxt.js} +2 -2
- package/bin/{chunk-czybv3vy.js → chunk-p3f5aevs.js} +1 -1
- package/bin/chunk-p3j6ydk1.js +1 -0
- package/bin/chunk-p4s95471.js +2 -0
- package/bin/chunk-pk406dgy.js +2 -0
- package/bin/chunk-q2bew2vc.js +2 -0
- package/bin/chunk-q5vkxee3.js +5 -0
- package/bin/{chunk-n0wwtjwv.js → chunk-q83h0hkx.js} +2 -2
- package/bin/chunk-q8w4mbw4.js +2 -0
- package/bin/{chunk-hjwpd09v.js → chunk-qwpkcp8d.js} +2 -2
- package/bin/chunk-r1xer8gn.js +5 -0
- package/bin/chunk-s1e4qy3q.js +14 -0
- package/bin/{chunk-w89czwjj.js → chunk-s9ksftq2.js} +1 -1
- package/bin/chunk-srxp5jav.js +42 -0
- package/bin/chunk-swtwaaqe.js +1 -0
- package/bin/chunk-tagdrg7p.js +1 -0
- package/bin/{chunk-da86fpjt.js → chunk-tekwpkjf.js} +2 -2
- package/bin/chunk-twtxnzbv.js +2 -0
- package/bin/{chunk-q7t5zs7n.js → chunk-v05rrxp5.js} +2 -2
- package/bin/{chunk-8s9fehda.js → chunk-v5cn90cf.js} +2 -2
- package/bin/chunk-v5mcjwxy.js +2 -0
- package/bin/{chunk-fyb6t7ct.js → chunk-vcrmjtcz.js} +2 -2
- package/bin/chunk-vkzasgxw.js +2 -0
- package/bin/chunk-vp3czaeh.js +7 -0
- package/bin/chunk-x03jwaga.js +8 -0
- package/bin/chunk-x342vzdx.js +2 -0
- package/bin/chunk-x8mjh387.js +5 -0
- package/bin/chunk-xc54vhfz.js +2 -0
- package/bin/chunk-xvkwbczx.js +3 -0
- package/bin/chunk-y241cxff.js +1 -0
- package/bin/chunk-yk12hydf.js +7 -0
- package/bin/chunk-ympbfzz4.js +2 -0
- package/bin/chunk-yq32evnn.js +20 -0
- package/bin/chunk-z1p13dnc.js +2 -0
- package/bin/chunk-zarz3sqn.js +211 -0
- package/bin/chunk-zezje74z.js +4 -0
- package/bin/chunk-zrszykjf.js +3 -0
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +947 -1012
- 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-0a4ahz7r.js +0 -2
- package/bin/chunk-0awcpx0a.js +0 -3
- package/bin/chunk-0fbgfgxv.js +0 -12
- package/bin/chunk-0nnqha4f.js +0 -3
- package/bin/chunk-0tvggyy4.js +0 -1
- package/bin/chunk-113baw0m.js +0 -2
- package/bin/chunk-1dbjyarc.js +0 -2
- package/bin/chunk-1qre79kf.js +0 -1
- package/bin/chunk-23780yj6.js +0 -3
- package/bin/chunk-27v3yepb.js +0 -1
- package/bin/chunk-2rq3w8sg.js +0 -2
- package/bin/chunk-3fjgf7eb.js +0 -3
- package/bin/chunk-3pwwg1xm.js +0 -1
- package/bin/chunk-3sfb63fp.js +0 -2
- package/bin/chunk-4g4pxmef.js +0 -3
- package/bin/chunk-4yhvexzk.js +0 -5
- package/bin/chunk-58cbk6e8.js +0 -1
- package/bin/chunk-5m51b7af.js +0 -2
- package/bin/chunk-6bed0rz4.js +0 -1
- package/bin/chunk-6smn0q1n.js +0 -20
- package/bin/chunk-7bbsv8g0.js +0 -2
- package/bin/chunk-83bdgs2c.js +0 -1
- package/bin/chunk-86qtjd30.js +0 -11
- package/bin/chunk-8rekh4h9.js +0 -3
- package/bin/chunk-8sf2hf31.js +0 -2
- package/bin/chunk-9d3w678j.js +0 -1
- package/bin/chunk-9rcg8zgs.js +0 -42
- package/bin/chunk-a23q1kc4.js +0 -5
- package/bin/chunk-a6cdt85k.js +0 -2
- package/bin/chunk-a76h3ehe.js +0 -1
- package/bin/chunk-b1bkd2p4.js +0 -32
- package/bin/chunk-bf5m8f6t.js +0 -2
- package/bin/chunk-cf57fk11.js +0 -2
- package/bin/chunk-d4sbcvpa.js +0 -2
- package/bin/chunk-dzjmwat0.js +0 -14
- package/bin/chunk-eex8sjfs.js +0 -2
- package/bin/chunk-exmwerag.js +0 -18
- package/bin/chunk-f38xyahm.js +0 -1
- package/bin/chunk-fb1bes2h.js +0 -2
- package/bin/chunk-fbvak7q2.js +0 -1
- package/bin/chunk-g2ptqqm3.js +0 -3
- package/bin/chunk-ggwqxn95.js +0 -2
- package/bin/chunk-ghk54h71.js +0 -13
- package/bin/chunk-h9akn41s.js +0 -3
- package/bin/chunk-hdansxny.js +0 -2
- package/bin/chunk-hjzbw975.js +0 -2
- package/bin/chunk-jtkxeat4.js +0 -2
- package/bin/chunk-jw4g9628.js +0 -5
- package/bin/chunk-jxebakyq.js +0 -1
- package/bin/chunk-kfewyax2.js +0 -2
- package/bin/chunk-kk3m4za5.js +0 -1
- package/bin/chunk-m7tnj47b.js +0 -3
- package/bin/chunk-maw5ah8t.js +0 -3
- package/bin/chunk-nahdd2t9.js +0 -2
- package/bin/chunk-nv7tztvh.js +0 -129
- package/bin/chunk-nyjwdxyj.js +0 -3
- package/bin/chunk-p0yfxt5e.js +0 -54
- package/bin/chunk-q27qn367.js +0 -5
- package/bin/chunk-q36sdt2w.js +0 -2
- package/bin/chunk-qbj5pe8t.js +0 -1
- package/bin/chunk-qj0bxb1m.js +0 -2
- package/bin/chunk-qqkr6h07.js +0 -11
- package/bin/chunk-qyqc5j3a.css +0 -1
- package/bin/chunk-qzaf6bre.js +0 -2
- package/bin/chunk-r1e59gf0.js +0 -2
- package/bin/chunk-ra5csbkr.js +0 -2
- package/bin/chunk-rx9g95wk.js +0 -10
- package/bin/chunk-rxyy37wa.js +0 -4
- package/bin/chunk-scez7ppq.js +0 -3
- package/bin/chunk-t2a1vq34.js +0 -7
- package/bin/chunk-t879v3b7.js +0 -1
- package/bin/chunk-tjavzarz.js +0 -3
- package/bin/chunk-treyx8em.js +0 -2
- package/bin/chunk-v3z4z04s.js +0 -2
- package/bin/chunk-v3z63tpw.js +0 -2
- package/bin/chunk-v9bes1fv.js +0 -2
- package/bin/chunk-vmm9m3nv.js +0 -2
- package/bin/chunk-vvr8tnse.js +0 -211
- package/bin/chunk-w3stry4v.js +0 -1
- package/bin/chunk-wk0hk00z.js +0 -1
- package/bin/chunk-x4q082e6.js +0 -2
- package/bin/chunk-x6rf77jm.js +0 -16
- package/bin/chunk-x7dyj53k.js +0 -2
- package/bin/chunk-xcrd0y8v.js +0 -6
- package/bin/chunk-z0z0jn5h.js +0 -4
- package/bin/chunk-zasjhrwc.js +0 -2
- package/bin/chunk-zefds5gg.js +0 -1
- package/bin/chunk-zzzgk1d5.js +0 -4
package/bin/chunk-d4sbcvpa.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dt}from"./chunk-qqkr6h07.js";import{Ge}from"./chunk-exmwerag.js";import{H}from"./chunk-tjavzarz.js";var f=H(Ge());var N=H(Ge());var m=H(Dt()),l=H(Ge());var E=H(Dt()),d=H(Ge()),P=(e,t,r)=>{let o={EcsContainer:async(s)=>{let{fromHttp:i}=await import("./chunk-t2a1vq34.js"),{fromContainerMetadata:n}=await import("./chunk-m7tnj47b.js");return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>d.chain(i(s??{}),n(s))().then(_)},Ec2InstanceMetadata:async(s)=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:i}=await import("./chunk-m7tnj47b.js");return async()=>i(s)().then(_)},Environment:async(s)=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:i}=await import("./chunk-qj0bxb1m.js");return async()=>i(s)().then(_)}};if(e in o)return o[e];else throw new d.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},_=(e)=>E.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var v=(e,{profile:t="default",logger:r}={})=>Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(K(e,{profile:t,logger:r})||G(e,{profile:t,logger:r})),K=(e,{profile:t,logger:r})=>{let o=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(o)r?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return o},G=(e,{profile:t,logger:r})=>{let o=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(o)r?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`);return o},I=async(e,t,r,o,s={},i)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let n=t[e],{source_profile:a,region:j}=n;if(!r.roleAssumer){let{getDefaultRoleAssumer:c}=await import("./chunk-59t9s2jh.js");r.roleAssumer=c({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...o,...r?.parentClientConfig,region:j??r?.parentClientConfig?.region??o?.region}},r.clientPlugins)}if(a&&a in s)throw new l.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${l.getProfileName(r)}. Profiles visited: `+Object.keys(s).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${e}]`}`);let w=a?i(a,t,r,o,{...s,[a]:!0},S(t[a]??{})):(await P(n.credential_source,e,r.logger)(r))();if(S(n))return w.then((c)=>m.setCredentialFeature(c,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let c={RoleArn:n.role_arn,RoleSessionName:n.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:n.external_id,DurationSeconds:parseInt(n.duration_seconds||"3600",10)},{mfa_serial:u}=n;if(u){if(!r.mfaCodeProvider)throw new l.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});c.SerialNumber=u,c.TokenCode=await r.mfaCodeProvider(u)}let M=await w;return r.roleAssumer(M,c).then((B)=>m.setCredentialFeature(B,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},S=(e)=>!e.role_arn&&!!e.credential_source;var R=H(Dt()),A=(e)=>Boolean(e&&e.login_session),L=async(e,t,r)=>{let{fromLoginCredentials:o}=await import("./chunk-r1e59gf0.js"),s=await o({...t,profile:e})({callerClientConfig:r});return R.setCredentialFeature(s,"CREDENTIALS_PROFILE_LOGIN","AC")};var O=H(Dt()),b=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",x=async(e,t)=>{let{fromProcess:r}=await import("./chunk-8sf2hf31.js"),o=await r({...e,profile:t})();return O.setCredentialFeature(o,"CREDENTIALS_PROFILE_PROCESS","v")};var p=H(Dt()),k=async(e,t,r={},o)=>{let{fromSSO:s}=await import("./chunk-4g4pxmef.js");return s({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:o}).then((i)=>{if(t.sso_session)return p.setCredentialFeature(i,"CREDENTIALS_PROFILE_SSO","r");else return p.setCredentialFeature(i,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},F=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var h=H(Dt()),C=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,y=async(e,t)=>{t?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return h.setCredentialFeature(r,"CREDENTIALS_PROFILE","n")};var D=H(Dt()),T=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,W=async(e,t,r)=>{let{fromTokenFile:o}=await import("./chunk-3sfb63fp.js"),s=await o({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r});return D.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")};var g=async(e,t,r,o,s={},i=!1)=>{let n=t[e];if(Object.keys(s).length>0&&C(n))return y(n,r);if(i||v(n,{profile:e,logger:r.logger}))return I(e,t,r,o,s,g);if(C(n))return y(n,r);if(T(n))return W(n,r,o);if(b(n))return x(r,e);if(F(n))return await k(e,n,r,o);if(A(n))return L(e,r,o);throw new N.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:r.logger})};var U=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await f.parseKnownFiles(e);return g(f.getProfileName({profile:e.profile??t?.profile}),r,e,t)};export{U as fromIni};
|