mongodb-chatbot-server
Version:
A chatbot server for retrieval augmented generation (RAG).
20 lines • 904 B
TypeScript
import { Request, Response, NextFunction } from "express";
import { z, AnyZodObject } from "zod";
export declare const SomeExpressRequest: z.ZodObject<{
headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
}, "strip", z.ZodTypeAny, {
params?: {} | undefined;
headers?: {} | undefined;
query?: {} | undefined;
body?: {} | undefined;
}, {
params?: {} | undefined;
headers?: {} | undefined;
query?: {} | undefined;
body?: {} | undefined;
}>;
export default function validateRequestSchema(schema: AnyZodObject): (req: Request, res: Response, next: NextFunction) => Promise<void>;
//# sourceMappingURL=validateRequestSchema.d.ts.map