Edit: /tmp/tsx-0/17887-5dc56bd9a63362a44c5a6dde41880b7bf8c81cd2 (4252B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/dist/plugins/open-api/index.mjs\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var open_api_exports={};__export(open_api_exports,{openAPI:()=>openAPI});module.exports=__toCommonJS(open_api_exports);var import_hide_metadata=require(\"../../utils/hide-metadata.mjs\");var import_utils=require(\"../../utils/index.mjs\");var import_api=require(\"../../api/index.mjs\");var import_generator=require(\"./generator.mjs\");var import_logo=require(\"./logo.mjs\");var import_api2=require(\"@better-auth/core/api\");const getHTML=__name((apiReference,theme,nonce)=>{const nonceAttr=nonce?`nonce=\"${nonce}\"`:\"\";return`\n\n \n
Scalar API Reference\n
\n
\n \n \n \n\t \n\t \n \n`},\"getHTML\");const openAPI=__name(options=>{const path=options?.path??\"/reference\";return{id:\"open-api\",endpoints:{generateOpenAPISchema:(0,import_api2.createAuthEndpoint)(\"/open-api/generate-schema\",{method:\"GET\"},async ctx=>{const schema=await(0,import_generator.generator)(ctx.context,ctx.context.options);return ctx.json(schema)}),openAPIReference:(0,import_api2.createAuthEndpoint)(path,{method:\"GET\",metadata:import_hide_metadata.HIDE_METADATA},async ctx=>{if(options?.disableDefaultReference)throw new import_api.APIError(\"NOT_FOUND\");const schema=await(0,import_generator.generator)(ctx.context,ctx.context.options);return new Response(getHTML(schema,options?.theme,options?.nonce),{headers:{\"Content-Type\":\"text/html\"}})})},options}},\"openAPI\");0&&(module.exports={openAPI});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,gJAA8B,yCAC9B,iBAAO,iCACP,eAAyB,+BACzB,qBAA0B,2BAC1B,gBAAqB,sBACrB,IAAAA,YAAmC,iCAGnC,MAAM,QAAU,QAAC,aAAc,MAAO,QAAU,CAC/C,MAAM,UAAY,MAAQ,UAAU,KAAK,IAAM,GAC/C,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAaF,KAAK,UAAU,YAAY,CAAC;AAAA;AAAA,YAEtB,SAAS;AAAA;AAAA,wCAEmB,mBAAmB,gBAAI,CAAC;AAAA,eACjD,OAAS,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sEAUqC,SAAS;AAAA;AAAA,QAG/E,EAjCgB,WAkChB,MAAM,QAAU,OAAC,SAAY,CAC5B,MAAM,KAAO,SAAS,MAAQ,aAC9B,MAAO,CACN,GAAI,WACJ,UAAW,CACV,yBAAuB,gCAAmB,4BAA6B,CAAE,OAAQ,KAAM,EAAG,MAAO,KAAQ,CACxG,MAAM,OAAS,QAAM,4BAAU,IAAI,QAAS,IAAI,QAAQ,OAAO,EAC/D,OAAO,IAAI,KAAK,MAAM,CACvB,CAAC,EACD,oBAAkB,gCAAmB,KAAM,CAC1C,OAAQ,MACR,SAAU,kCACX,EAAG,MAAO,KAAQ,CACjB,GAAI,SAAS,wBAAyB,MAAM,IAAI,oBAAS,WAAW,EACpE,MAAM,OAAS,QAAM,4BAAU,IAAI,QAAS,IAAI,QAAQ,OAAO,EAC/D,OAAO,IAAI,SAAS,QAAQ,OAAQ,SAAS,MAAO,SAAS,KAAK,EAAG,CAAE,QAAS,CAAE,eAAgB,WAAY,CAAE,CAAC,CAClH,CAAC,CACF,EACA,OACD,CACD,EApBgB","names":["import_api"],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/dist/plugins/open-api/index.mjs"],"sourcesContent":[null]}}