types.ts
1 import * as v from "valibot"; 2 import type { paths } from "../openapi"; 3 4 export type CodexLogLevelResponse = 5 paths["/debug/chronicles/loglevel"]["post"]["responses"][200]["content"]; 6 7 export type CodexLogLevel = 8 paths["/debug/chronicles/loglevel"]["post"]["parameters"]["query"]["level"]; 9 10 export const CodexLogLevelInput = v.picklist([ 11 "TRACE", 12 "DEBUG", 13 "INFO", 14 "NOTICE", 15 "WARN", 16 "ERROR", 17 "FATAL", 18 ]); 19 20 export type CodexInfoResponse = 21 paths["/debug/info"]["get"]["responses"][200]["content"]["application/json"]; 22 23 export type CodexDebugInfo = CodexInfoResponse;