"use strict";function fetchPatchNotes(t){return new Promise((e,s)=>{https_1.default.get(t,t=>{if(200!==t.statusCode){s(new Error(`HTTP ${t.statusCode}`));return}let r="";t.on("data",t=>{r+=t});t.on("end",()=>{try{e(JSON.parse(r))}catch(t){s(new Error("Invalid JSON response"))}});t.on("error",s)}).on("error",s)})}var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const https_1=__importDefault(require("https"));exports.metadata={summary:"Fetch all patch notes from docs server",operationId:"getPatchNotes",tags:["Admin","System"],responses:{200:{description:"Patch notes fetched successfully"}},permission:"access.admin"};const DOCS_URL="https://docs.mashdiv.com/patch-notes-data.json";exports.default=async()=>{try{return await fetchPatchNotes(DOCS_URL)}catch(t){return{buildTime:null,version:null,extensions:{}}}};