import type { z } from "zod";

import { signupRequestSchema } from "./schema";

type SignupRequestInput = z.input<typeof signupRequestSchema>;

/**
 * Convert signup form input into the canonical API payload.
 * Reuses domain schema transformation to avoid frontend duplication.
 */
export function buildSignupRequest(input: SignupRequestInput) {
  return signupRequestSchema.parse(input);
}

