Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/bundlejs-api.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778// mod.ts/** * Bundle Service: Endpoint Definitions Registry * * All endpoint contracts in one place for: * - Type-safe registration * - Client type generation * - OpenAPI schema derivation */
// Bundle endpointsimport BundleRunDef from './endpoints/bundle/run/definition.ts'import BundleFileDef from './endpoints/bundle/file/definition.ts'import BundleMetafileDef from './endpoints/bundle/metafile/definition.ts'import BundleAnalysisDef from './endpoints/bundle/analysis/definition.ts'import BundleWarningsDef from './endpoints/bundle/warnings/definition.ts'import BundleRawDef from './endpoints/bundle/raw/definition.ts'
// Badge endpointsimport BadgeSvgDef from './endpoints/badge/svg/definition.ts'import BadgeRasterDef from './endpoints/badge/raster/definition.ts'
// Cache admin endpointsimport CachePurgeDef from './endpoints/cache/purge/definition.ts'import CacheClearDef from './endpoints/cache/clear/definition.ts'
// Static endpointsimport OpenApiDef from './endpoints/static/openapi/definition.ts'import PluginDef from './endpoints/static/plugin/definition.ts'import RobotsDef from './endpoints/static/robots/definition.ts'
// Healthimport HealthDef from './endpoints/health/definition.ts'
// ============================================================================// Definitions Registry// ============================================================================
export const EndpointDefinitions = { // Bundle BundleRun: BundleRunDef, BundleFile: BundleFileDef, BundleMetafile: BundleMetafileDef, BundleAnalysis: BundleAnalysisDef, BundleWarnings: BundleWarningsDef, BundleRaw: BundleRawDef, // Badge BadgeSvg: BadgeSvgDef, BadgeRaster: BadgeRasterDef, // Cache admin CachePurge: CachePurgeDef, CacheClear: CacheClearDef, // Static OpenApi: OpenApiDef, Plugin: PluginDef, Robots: RobotsDef, // Health Health: HealthDef,} as const
// ============================================================================// Type Exports// ============================================================================
export type BundleRunInput = typeof BundleRunDef.Inputexport type BundleRunOutput = typeof BundleRunDef.Output
export type BundleFileInput = typeof BundleFileDef.Inputexport type BundleFileOutput = typeof BundleFileDef.Output
// ... (similar for other endpoints)
export default EndpointDefinitions