UNPKG

wrekenfile-converter

Version:

Convert OpenAPI and Postman specs to Wrekenfile format with mini-chunking for vector DB storage

19 lines (18 loc) 624 B
export interface MiniWrekenfile { content: string; metadata: { endpoint: string; methods: string[]; structs: string[]; filename: string; }; } /** * Generates mini Wrekenfiles by grouping interfaces by endpoint * Each mini Wrekenfile contains all methods for a single endpoint plus their required structs */ export declare function generateMiniWrekenfiles(wrekenfileContent: string): MiniWrekenfile[]; /** * Saves mini Wrekenfiles to disk (optional utility function) */ export declare function saveMiniWrekenfiles(miniWrekenfiles: MiniWrekenfile[], outputDir?: string): void;