import * as z from 'zod'; /** * @openapi * components: * schemas: * ErrorDTO: * type: object * required: * - status * - error * properties: * status: * type: string * default: error * error: * type: string * default: error message * code: * type: string * default: error code (may not be returned for every request) */ export type ErrorDTO = { status: 'error'; error: string; code?: string | undefined; }; // Used to check against reserved names. export const disallowedUriSchema = z .string() .regex(/^(about|assets|kttydocs|panel)/);