Something went wrong. Try again.
AI Video Search Engine (RAG) avse.vercel.app
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970import { z } from "zod";
export type ObjectLiteral = { [key: string]: any;};
const validationSchema = z.array(z.any()).or(z.any());
export type ValidationSchemaType = z.infer<typeof validationSchema>;
export type HandlerConfig = { method?: ("GET" | "POST" | "DELETE" | string)[]; validationSchema?: ValidationSchemaType; skipAuth?: boolean; authMethod?: AuthMethods[]; verifyProfile?: boolean; routesConfig?: RoutesConfigType; // overrides method and validationSchema config pathIndex?: string; // overrides path indexing, meant for dynamic queries};
export enum AuthMethods { admin_key = "admin_key", jwt_key = "jwt_key", none = "none",}
export type RoutesConfigType = { [key: string]: { validationSchema: ValidationSchemaType; };};
export interface HasuraEventPayload<T = any> { event: { session_variables: { [x: string]: string }; op: "INSERT" | "UPDATE" | "DELETE" | "MANUAL"; data: { old: T | null; new: T | null; }; }; created_at: string; id: string; delivery_info: { max_retries: number; current_retry: number; }; trigger: { name: string; }; table: { schema: string; name: string; };}
export interface TextTimeStamped { start: number; end: number; dur: number; content: string;}
export interface ChatMessage { message: string; role: "user" | "ai"; created_at: string; id: string;}