const z = require("zod") const nameSchema = z.string() .min(1) .max(16) .regex(/^[a-zA-Z0-9_]+$/, { message: "Name can only contain alphanumeric characters and underscores." }); module.exports = { PUT: { headers: z.object({ "authorization": z.string().min(1, { message: "Authorization header is required." }) }), params: z.object({ name: nameSchema }), error: { code: 400, error: "CONSTRAINT_VIOLATION", errorMessage: "Invalid profile name" } } }