@shumai-one/shumai 0.4.8 → 0.5.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-qw76wcrb.js → chunk-03bfjh8k.js} +2 -2
- package/bin/{chunk-6xqpbkb6.js → chunk-0tf15vee.js} +2 -2
- package/bin/{chunk-e333evwr.js → chunk-0vtk7wrf.js} +2 -2
- package/bin/{chunk-b93qxjts.js → chunk-0yv0nnmh.js} +2 -2
- package/bin/{chunk-pg5mayjc.js → chunk-12npypek.js} +2 -2
- package/bin/chunk-13d525jm.js +2 -0
- package/bin/{chunk-qrmkkxjh.js → chunk-1k16xsqq.js} +10 -10
- package/bin/{chunk-dk2trprj.js → chunk-1yt1gsyy.js} +1 -1
- package/bin/{chunk-wqqdy0xb.js → chunk-20anqpf1.js} +2 -2
- package/bin/{chunk-tjhbr5ks.js → chunk-2g5qdx4s.js} +1 -1
- package/bin/{chunk-0b5s5ge0.js → chunk-31vx01aw.js} +2 -2
- package/bin/{chunk-tycap2k9.js → chunk-32japja5.js} +1 -1
- package/bin/chunk-35mpp84e.js +2 -0
- package/bin/{chunk-d9dmr2vc.js → chunk-36r20sj7.js} +1 -1
- package/bin/{chunk-67ewr4j4.js → chunk-3btc8a0p.js} +2 -2
- package/bin/{chunk-2y7y60pc.js → chunk-3cvbb6kh.js} +2 -2
- package/bin/chunk-3ewmtf1c.js +1 -0
- package/bin/chunk-3fjgf7eb.js +3 -0
- package/bin/chunk-3xw70yr4.js +2 -0
- package/bin/{chunk-1qk4e3j9.js → chunk-3z20b2hz.js} +2 -2
- package/bin/{chunk-hed37kyr.js → chunk-3zvvct3r.js} +1 -1
- package/bin/{chunk-1zpsbvq9.js → chunk-51h2bgpf.js} +3 -3
- package/bin/{chunk-5vvvgjvz.js → chunk-5bpvwv66.js} +2 -2
- package/bin/{chunk-4tpkx2ft.js → chunk-5jbx9gqe.js} +1 -1
- package/bin/{chunk-vfv27kve.js → chunk-5patxztz.js} +4 -4
- package/bin/chunk-5seey9ee.js +2 -0
- package/bin/{chunk-251rat7t.js → chunk-5t05jpna.js} +3 -3
- package/bin/{chunk-pbq64m5k.js → chunk-5yd9cv7f.js} +5 -5
- package/bin/chunk-66hdwm6f.js +2 -0
- package/bin/{chunk-mcq3pe4v.js → chunk-6bgbx563.js} +2 -2
- package/bin/{chunk-j3qz3wa3.js → chunk-6vvs18bw.js} +1 -1
- package/bin/chunk-756mr32b.js +2 -0
- package/bin/{chunk-fezar34g.js → chunk-7vd5yajk.js} +5 -5
- package/bin/chunk-7wb3dga5.js +2 -0
- package/bin/{chunk-tf3hke5h.js → chunk-9h6nn1a3.js} +1 -1
- package/bin/chunk-9k86d2a3.js +4 -0
- package/bin/chunk-9wk11jtz.js +1 -0
- package/bin/chunk-a1crhhzy.js +1 -0
- package/bin/chunk-axfwh5et.js +2 -0
- package/bin/{chunk-yeb5bcxz.js → chunk-b9j5575n.js} +2 -2
- package/bin/chunk-cgsxyw07.js +2 -0
- package/bin/{chunk-5pcv139g.js → chunk-cw8z9w5c.js} +2 -2
- package/bin/{chunk-4tm9cw4v.js → chunk-czny5thj.js} +2 -2
- package/bin/{chunk-jwhgybtg.js → chunk-d7mgjqf8.js} +1 -1
- package/bin/{chunk-jgnp68ez.js → chunk-d9btz95y.js} +1 -1
- package/bin/chunk-dckdnqc0.js +2 -0
- package/bin/chunk-dx0wz749.js +211 -0
- package/bin/{chunk-mn9ax7qa.js → chunk-dz33q4v1.js} +2 -2
- package/bin/chunk-dz4fdrmk.js +1 -0
- package/bin/{chunk-29wjvgwv.js → chunk-e3r1m6rb.js} +1 -1
- package/bin/chunk-edjtb7pk.js +2 -0
- package/bin/{chunk-j95fjg69.js → chunk-eez1yncf.js} +2 -2
- package/bin/{chunk-x33bf3ay.js → chunk-exgtwask.js} +1 -1
- package/bin/{chunk-ws216bmf.js → chunk-f22nrm6r.js} +4 -4
- package/bin/{chunk-xmn5v64e.js → chunk-fhq5m9ya.js} +2 -2
- package/bin/{chunk-gj3vrbkx.js → chunk-fyssg02c.js} +31 -31
- package/bin/{chunk-rzannb5e.js → chunk-g8h1e1kh.js} +2 -2
- package/bin/{chunk-qje7g7t7.js → chunk-ghjhyajn.js} +2 -2
- package/bin/{chunk-9v10mkts.js → chunk-gptzcgte.js} +1 -1
- package/bin/{chunk-r8ss8xm1.js → chunk-grsgkkrb.js} +5 -5
- package/bin/{chunk-dpn61sht.js → chunk-gy8z8sd7.js} +1 -1
- package/bin/{chunk-e3qxpswy.js → chunk-h153xefb.js} +1 -1
- package/bin/chunk-h82r29wm.js +129 -0
- package/bin/{chunk-ze3msq86.js → chunk-h9x81yp6.js} +1 -1
- package/bin/{chunk-b9p9yhky.js → chunk-hr2027z3.js} +8 -8
- package/bin/{chunk-7rvyq5gr.js → chunk-hx76pje1.js} +1 -1
- package/bin/chunk-hz9stgvn.js +1 -0
- package/bin/chunk-hzr8100w.js +3 -0
- package/bin/{chunk-4sq35ks7.js → chunk-j3xaq9s3.js} +2 -2
- package/bin/{chunk-pbmkewt5.js → chunk-j909v9p5.js} +1 -1
- package/bin/chunk-jb6d142z.js +1 -0
- package/bin/chunk-k9cgfzgk.js +3 -0
- package/bin/{chunk-zhx4vsgt.js → chunk-kgfa5y9w.js} +10 -10
- package/bin/{chunk-1ymyhrh2.js → chunk-kzsdp31a.js} +2 -2
- package/bin/{chunk-9ht2kr33.js → chunk-m1xc3t0p.js} +7 -7
- package/bin/{chunk-wdbew0hx.js → chunk-m7dp8rqv.js} +1 -1
- package/bin/{chunk-0jaj2807.js → chunk-m9sp00a9.js} +4 -4
- package/bin/{chunk-qn37fsy3.js → chunk-mcd7zas7.js} +2 -2
- package/bin/chunk-meyvvmgk.js +1 -0
- package/bin/{chunk-y4pe65d1.js → chunk-mqr096rn.js} +1 -1
- package/bin/{chunk-ybnykjsg.js → chunk-mt532a33.js} +1 -1
- package/bin/{chunk-twx715xf.js → chunk-myd3wg9a.js} +2 -2
- package/bin/chunk-n1b3pt17.js +14 -0
- package/bin/chunk-n5v48hz5.js +2 -0
- package/bin/{chunk-65ets3f0.js → chunk-p5v22g5n.js} +2 -2
- package/bin/chunk-phzemmmy.js +2 -0
- package/bin/{chunk-w53gqdnw.js → chunk-q5mkbnr9.js} +2 -2
- package/bin/chunk-qhzat67w.js +2 -0
- package/bin/{chunk-7nv7r7zx.js → chunk-r1m4q8vw.js} +1 -1
- package/bin/{chunk-jhxcm88f.js → chunk-r5rpdhed.js} +2 -2
- package/bin/{chunk-v6tjp5qt.js → chunk-r6gkv98n.js} +6 -6
- package/bin/{chunk-s26a26h3.js → chunk-rkq6jvhb.js} +3 -3
- package/bin/{chunk-drpdjxmw.js → chunk-rn9rktp4.js} +5 -5
- package/bin/{chunk-dscq4a4k.js → chunk-rq2h2bwt.js} +2 -2
- package/bin/{chunk-dp1mrw7m.js → chunk-sg7n2g3z.js} +1 -1
- package/bin/chunk-smcn7ep7.js +2 -0
- package/bin/{chunk-p706vjvr.js → chunk-tcat7q9p.js} +2 -2
- package/bin/chunk-tf8q7h6b.js +1 -0
- package/bin/{chunk-6t5r26bm.js → chunk-trndqdaa.js} +1 -1
- package/bin/chunk-tvr5rm1g.js +1 -0
- package/bin/chunk-ty88m3yg.js +2 -0
- package/bin/chunk-v2x9915x.js +1 -0
- package/bin/{chunk-fnca3xqw.js → chunk-v42jcex0.js} +4 -4
- package/bin/{chunk-pq3pyrvy.js → chunk-vbbn4hth.js} +1 -1
- package/bin/chunk-vnk2p7mq.css +1 -0
- package/bin/{chunk-r7e2fmmx.js → chunk-wkxm6yny.js} +2 -2
- package/bin/{chunk-t2sqtc9p.js → chunk-wydd7sz7.js} +2 -2
- package/bin/chunk-x8hky9td.js +1 -0
- package/bin/{chunk-frma9pgq.js → chunk-xvdd04gy.js} +1 -1
- package/bin/{chunk-ht64xpjp.js → chunk-y03z5rrg.js} +3 -3
- package/bin/chunk-y12ah7c6.js +1 -0
- package/bin/chunk-y7jz31ay.js +1 -0
- package/bin/chunk-ydk3edsw.js +1 -0
- package/bin/{chunk-6h76kqv2.js → chunk-yfe6hkzk.js} +3 -3
- package/bin/{chunk-afsm0ct9.js → chunk-z1r86fna.js} +2 -2
- package/bin/{chunk-bcjkapyp.js → chunk-z8mmqfm4.js} +1 -1
- package/bin/chunk-zbma2zeh.js +1 -0
- package/bin/{chunk-45mheqnm.js → chunk-zcrtr8qd.js} +2 -2
- package/bin/{chunk-czwpfv0w.js → chunk-zfqz72sd.js} +1 -1
- package/bin/{chunk-nradb5py.js → chunk-zhe16jvg.js} +1 -1
- package/bin/{chunk-75x3b8ds.js → chunk-zwb9kamp.js} +2 -2
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +572 -321
- package/package.json +9 -8
- package/prisma/migrations/20260927092537_add_notification_email_status/migration.sql +11 -0
- package/prisma/migrations/20261001015042_migrate_video_strategy_multi_and_resolutions/migration.sql +16 -0
- package/prisma/migrations/20261002104921_add_asset_status_failed/migration.sql +2 -0
- package/prisma/schema.prisma +11 -0
- package/bin/chunk-07pgpftg.js +0 -14
- package/bin/chunk-1y7nvhgx.js +0 -3
- package/bin/chunk-2ftmxhr5.js +0 -2
- package/bin/chunk-2kxhdnma.js +0 -3
- package/bin/chunk-3rjdkmhb.js +0 -2
- package/bin/chunk-43dzhk24.js +0 -211
- package/bin/chunk-55n569j1.js +0 -1
- package/bin/chunk-6jaf9hxa.js +0 -1
- package/bin/chunk-6vst0k0k.js +0 -2
- package/bin/chunk-7hxd4st0.js +0 -1
- package/bin/chunk-9kb55e6b.js +0 -1
- package/bin/chunk-bbk5v964.js +0 -1
- package/bin/chunk-bcqhjbpy.js +0 -2
- package/bin/chunk-bxksbrcm.js +0 -1
- package/bin/chunk-c1a1srsw.js +0 -2
- package/bin/chunk-c7yxnyep.js +0 -1
- package/bin/chunk-da4fd4f8.js +0 -2
- package/bin/chunk-dmewtzbe.js +0 -1
- package/bin/chunk-faaqparg.js +0 -2
- package/bin/chunk-g82qnxw6.js +0 -2
- package/bin/chunk-gc6m7agb.js +0 -3
- package/bin/chunk-j6ptdqp9.js +0 -2
- package/bin/chunk-kdg245g7.js +0 -1
- package/bin/chunk-mg4p33eg.js +0 -2
- package/bin/chunk-mrdznst9.js +0 -1
- package/bin/chunk-msg8j3hj.css +0 -1
- package/bin/chunk-n4f1he1g.js +0 -4
- package/bin/chunk-nsvfcp3f.js +0 -1
- package/bin/chunk-nx782n1x.js +0 -2
- package/bin/chunk-p4hwyysm.js +0 -2
- package/bin/chunk-qw4v0qdg.js +0 -1
- package/bin/chunk-rvj965cr.js +0 -1
- package/bin/chunk-sf9ezxgy.js +0 -2
- package/bin/chunk-twwpbp8d.js +0 -2
- package/bin/chunk-v3yfee88.js +0 -2
- package/bin/chunk-vq24vj88.js +0 -1
- package/bin/chunk-x79scans.js +0 -299
- package/bin/chunk-xktxk53n.js +0 -1
- package/bin/chunk-yvz2b957.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Nt}from"./chunk-f22nrm6r.js";import{Ge}from"./chunk-rn9rktp4.js";import{H}from"./chunk-kzsdp31a.js";var i=H(Ge());var t=H(Ge());import{exec as u}from"child_process";import{promisify as w}from"util";var a=H(Nt()),p=(r,e,o)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let d=new Date;if(new Date(e.Expiration)<d)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let s=e.AccountId;if(!s&&o?.[r]?.aws_account_id)s=o[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...s&&{accountId:s}};return a.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n};var f=async(r,e,o)=>{let s=e[r];if(e[r]){let n=s.credential_process;if(n!==void 0){let d=w(t.externalDataInterceptor?.getTokenRecord?.().exec??u);try{let{stdout:c}=await d(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return p(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:o})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:o})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:o})};var P=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let o=await i.parseKnownFiles(r);return f(i.getProfileName({profile:r.profile??e?.profile}),o,r.logger)};export{P as fromProcess};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I}from"./chunk-
|
|
2
|
-
export{Vn,
|
|
1
|
+
import{I}from"./chunk-dx0wz749.js";var e=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Vn=I("user",e);var c=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],ao=I("users",c);
|
|
2
|
+
export{Vn,ao};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{w,G}from"./chunk-
|
|
3
|
-
export{
|
|
2
|
+
import{w,G}from"./chunk-kzsdp31a.js";var Xa=w(function(ar,D){var{defineProperty:k,getOwnPropertyDescriptor:re,getOwnPropertyNames:te}=Object,oe=Object.prototype.hasOwnProperty,ne=(e,r)=>{for(var t in r)k(e,t,{get:r[t],enumerable:!0})},se=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of te(r))if(!oe.call(e,o)&&o!==t)k(e,o,{get:()=>r[o],enumerable:!(n=re(r,o))||n.enumerable})}return e},ie=(e)=>se(k({},"__esModule",{value:!0}),e),E={};ne(E,{VercelOidcTokenError:()=>m});D.exports=ie(E);class m extends Error{constructor(e,r){super(e);this.name="VercelOidcTokenError",this.cause=r}toString(){if(this.cause)return`${this.name}: ${this.message}: ${this.cause}`;return`${this.name}: ${this.message}`}}});var V=w(function(cr,S){var{create:ae,defineProperty:_,getOwnPropertyDescriptor:ce,getOwnPropertyNames:ue,getPrototypeOf:pe}=Object,le=Object.prototype.hasOwnProperty,fe=(e,r)=>{for(var t in r)_(e,t,{get:r[t],enumerable:!0})},x=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of ue(r))if(!le.call(e,o)&&o!==t)_(e,o,{get:()=>r[o],enumerable:!(n=ce(r,o))||n.enumerable})}return e},g=(e,r,t)=>(t=e!=null?ae(pe(e)):{},x(r||!e||!e.__esModule?_(t,"default",{value:e,enumerable:!0}):t,e)),_e=(e)=>x(_({},"__esModule",{value:!0}),e),A={};fe(A,{findRootDir:()=>ve,getUserDataDir:()=>ke});S.exports=_e(A);var p=g(G("path")),de=g(G("fs")),y=g(G("os")),he=Xa();function ve(){try{let e=process.cwd();while(e!==p.default.dirname(e)){let r=p.default.join(e,".vercel");if(de.default.existsSync(r))return e;e=p.default.dirname(e)}}catch(e){throw new he.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function ke(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(y.default.platform()){case"darwin":return p.default.join(y.default.homedir(),"Library/Application Support");case"linux":return p.default.join(y.default.homedir(),".local/share");case"win32":if(process.env.LOCALAPPDATA)return process.env.LOCALAPPDATA;return null;default:return null}}});var F=w(function(ur,q){var{create:ye,defineProperty:d,getOwnPropertyDescriptor:we,getOwnPropertyNames:ge,getPrototypeOf:Oe}=Object,Pe=Object.prototype.hasOwnProperty,be=(e,r)=>{for(var t in r)d(e,t,{get:r[t],enumerable:!0})},C=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of ge(r))if(!Pe.call(e,o)&&o!==t)d(e,o,{get:()=>r[o],enumerable:!(n=we(r,o))||n.enumerable})}return e},R=(e,r,t)=>(t=e!=null?ye(Oe(e)):{},C(r||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),je=(e)=>C(d({},"__esModule",{value:!0}),e),M={};be(M,{isValidAccessToken:()=>De,readAuthConfig:()=>Ee,writeAuthConfig:()=>me});q.exports=je(M);var l=R(G("fs")),I=R(G("path")),Te=el();function N(){let e=(0,Te.getVercelDataDir)();if(!e)throw Error(`Unable to find Vercel CLI data directory. Your platform: ${process.platform}. Supported: darwin, linux, win32.`);return I.join(e,"auth.json")}function Ee(){try{let e=N();if(!l.existsSync(e))return null;let r=l.readFileSync(e,"utf8");if(!r)return null;return JSON.parse(r)}catch(e){return null}}function me(e){let r=N(),t=I.dirname(r);if(!l.existsSync(t))l.mkdirSync(t,{mode:504,recursive:!0});l.writeFileSync(r,JSON.stringify(e,null,2),{mode:384})}function De(e,r=0){if(!e.token)return!1;if(typeof e.expiresAt!=="number")return!0;let t=Math.floor(Date.now()/1000),n=r/1000;return e.expiresAt>=t+n}});var B=w(function(pr,L){var{defineProperty:b,getOwnPropertyDescriptor:xe,getOwnPropertyNames:Ae}=Object,Se=Object.prototype.hasOwnProperty,Ve=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},Ce=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Ae(r))if(!Se.call(e,o)&&o!==t)b(e,o,{get:()=>r[o],enumerable:!(n=xe(r,o))||n.enumerable})}return e},Re=(e)=>Ce(b({},"__esModule",{value:!0}),e),U={};Ve(U,{processTokenResponse:()=>Fe,refreshTokenRequest:()=>qe});L.exports=Re(U);var O=G("os"),Me="https://vercel.com",Ie="cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",J=`@vercel/oidc node-${process.version} ${(0,O.platform)()} (${(0,O.arch)()}) ${(0,O.hostname)()}`,P=null;async function Ne(){if(P)return P;let e=`${Me}/.well-known/openid-configuration`,r=await fetch(e,{headers:{"user-agent":J}});if(!r.ok)throw Error("Failed to discover OAuth endpoints");let t=await r.json();if(!t||typeof t.token_endpoint!=="string")throw Error("Invalid OAuth discovery response");let n=t.token_endpoint;return P=n,n}async function qe(e){let r=await Ne();return await fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":J},body:new URLSearchParams({client_id:Ie,grant_type:"refresh_token",...e})})}async function Fe(e){let r=await e.json();if(!e.ok){let t=typeof r==="object"&&r&&"error"in r?String(r.error):"Token refresh failed";return[Error(t)]}if(typeof r!=="object"||r===null)return[Error("Invalid token response")];if(typeof r.access_token!=="string")return[Error("Missing access_token in response")];if(r.token_type!=="Bearer")return[Error("Invalid token_type in response")];if(typeof r.expires_in!=="number")return[Error("Missing expires_in in response")];return[null,r]}});var df=w(function(lr,Y){var{defineProperty:j,getOwnPropertyDescriptor:$e,getOwnPropertyNames:Ue}=Object,Je=Object.prototype.hasOwnProperty,Le=(e,r)=>{for(var t in r)j(e,t,{get:r[t],enumerable:!0})},Be=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Ue(r))if(!Je.call(e,o)&&o!==t)j(e,o,{get:()=>r[o],enumerable:!(n=$e(r,o))||n.enumerable})}return e},He=(e)=>Be(j({},"__esModule",{value:!0}),e),H={};Le(H,{AccessTokenMissingError:()=>z,RefreshAccessTokenFailedError:()=>X});Y.exports=He(H);class z extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login).");this.name="AccessTokenMissingError"}}class X extends Error{constructor(e){super("Failed to refresh authentication token.",{cause:e});this.name="RefreshAccessTokenFailedError"}}});var el=w(function(fr,ee){var{create:ze,defineProperty:h,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:Xe,getPrototypeOf:Ye}=Object,Qe=Object.prototype.hasOwnProperty,Ze=(e,r)=>{for(var t in r)h(e,t,{get:r[t],enumerable:!0})},Z=(e,r,t,n)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Xe(r))if(!Qe.call(e,o)&&o!==t)h(e,o,{get:()=>r[o],enumerable:!(n=Ge(r,o))||n.enumerable})}return e},K=(e,r,t)=>(t=e!=null?ze(Ye(e)):{},Z(r||!e||!e.__esModule?h(t,"default",{value:e,enumerable:!0}):t,e)),Ke=(e)=>Z(h({},"__esModule",{value:!0}),e),W={};Ze(W,{assertVercelOidcTokenResponse:()=>T,findProjectInfo:()=>tr,getTokenPayload:()=>sr,getVercelDataDir:()=>We,getVercelOidcToken:()=>rr,getVercelToken:()=>er,isExpired:()=>ir,loadToken:()=>nr,saveToken:()=>or});ee.exports=Ke(W);var f=K(G("path")),s=K(G("fs")),u=Xa(),v=V(),a=F(),Q=B(),c=df();function We(){let r=(0,v.getUserDataDir)();if(!r)return null;return f.join(r,"com.vercel.cli")}async function er(e){let r=(0,a.readAuthConfig)();if(!r?.token)throw new c.AccessTokenMissingError;if((0,a.isValidAccessToken)(r,e?.expirationBufferMs))return r.token;if(!r.refreshToken)throw(0,a.writeAuthConfig)({}),new c.RefreshAccessTokenFailedError("No refresh token available");try{let t=await(0,Q.refreshTokenRequest)({refresh_token:r.refreshToken}),[n,o]=await(0,Q.processTokenResponse)(t);if(n||!o)throw(0,a.writeAuthConfig)({}),new c.RefreshAccessTokenFailedError(n);let i={token:o.access_token,expiresAt:Math.floor(Date.now()/1000)+o.expires_in};if(o.refresh_token)i.refreshToken=o.refresh_token;return(0,a.writeAuthConfig)(i),i.token}catch(t){if((0,a.writeAuthConfig)({}),t instanceof c.AccessTokenMissingError||t instanceof c.RefreshAccessTokenFailedError)throw t;throw new c.RefreshAccessTokenFailedError(t)}}async function rr(e,r,t){let n=`https://api.vercel.com/v1/projects/${r}/token?source=vercel-oidc-refresh${t?`&teamId=${t}`:""}`,o=await fetch(n,{method:"POST",headers:{Authorization:`Bearer ${e}`}});if(!o.ok)throw new u.VercelOidcTokenError(`Failed to refresh OIDC token: ${o.statusText}`);let i=await o.json();return T(i),i}function T(e){if(!e||typeof e!=="object")throw TypeError("Vercel OIDC token is malformed. Expected an object. Please run `vc env pull` and try again");if(!("token"in e)||typeof e.token!=="string")throw TypeError("Vercel OIDC token is malformed. Expected a string-valued token property. Please run `vc env pull` and try again")}function tr(){let e=(0,v.findRootDir)();if(!e)throw new u.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let r=f.join(e,".vercel","project.json");if(!s.existsSync(r))throw new u.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let t=JSON.parse(s.readFileSync(r,"utf8"));if(typeof t.projectId!=="string"&&typeof t.orgId!=="string")throw TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:t.projectId,teamId:t.orgId}}function or(e,r){let t=(0,v.getUserDataDir)();if(!t)throw new u.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let n=f.join(t,"com.vercel.token",`${r}.json`),o=JSON.stringify(e);s.mkdirSync(f.dirname(n),{mode:504,recursive:!0}),s.writeFileSync(n,o),s.chmodSync(n,432);return}function nr(e){let r=(0,v.getUserDataDir)();if(!r)throw new u.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let t=f.join(r,"com.vercel.token",`${e}.json`);if(!s.existsSync(t))return null;let n=JSON.parse(s.readFileSync(t,"utf8"));return T(n),n}function sr(e){let r=e.split(".");if(r.length!==3)throw new u.VercelOidcTokenError("Invalid token. Please run `vc env pull` and try again");let t=r[1].replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"=");return JSON.parse(Buffer.from(n,"base64").toString("utf8"))}function ir(e,r=0){return e.exp*1000<Date.now()+r}});
|
|
3
|
+
export{Xa,df,el};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h,S,t,Z,ze,A,lt,St,em}from"./chunk-dx0wz749.js";import"./chunk-h82r29wm.js";import"./chunk-n1b3pt17.js";import"./chunk-edjtb7pk.js";import"./chunk-b9j5575n.js";import"./chunk-cw8z9w5c.js";import"./chunk-m9sp00a9.js";import"./chunk-fhq5m9ya.js";import"./chunk-mcd7zas7.js";import"./chunk-dckdnqc0.js";import"./chunk-smcn7ep7.js";import"./chunk-51h2bgpf.js";import"./chunk-yfe6hkzk.js";import"./chunk-myd3wg9a.js";import{Gn}from"./chunk-1yt1gsyy.js";import{nr}from"./chunk-n5v48hz5.js";import"./chunk-g8h1e1kh.js";import"./chunk-eez1yncf.js";import"./chunk-7wb3dga5.js";import"./chunk-3btc8a0p.js";import"./chunk-6bgbx563.js";import"./chunk-d9btz95y.js";import"./chunk-czny5thj.js";import"./chunk-r5rpdhed.js";S();function i(){let{projectId:o}=l.useParams(),{teamId:r,ensureTeamIdForProject:a}=lt();h(()=>{a(o)},[o,a]);let{data:s}=nr(em(o)),e=s?.rootFolder,{data:n}=Z({queryKey:["folders",e],queryFn:()=>(async()=>await(await A.api.folders[":folderId"].$get({param:{folderId:e}})).json())(),enabled:!!e});if(!r||!e||!n)return t(St,{});return t(Gn,{teamId:r,projectId:o,projectName:s.name??"",assetId:"recents",rootFolderId:e})}var l=ze("/projects/$projectId/recents")({component:i});export{l as Route};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{uf,Dn,dc,fc,pc,mc,xu,Su,mm,LA,Cs,jo,jr}from"./chunk-h9x81yp6.js";export{pc as EncryptJWT,fc as SignJWT,mm as UnsecuredJWT,uf as base64url,mc as calculateJwkThumbprint,xu as createLocalJWKSet,Su as createRemoteJWKSet,jr as decodeJwt,jo as decodeProtectedHeader,Cs as importJWK,LA as importPKCS8,dc as jwtDecrypt,Dn as jwtVerify};
|