import { z } from "zod/v4";

export const posthogIntegrationFormSchema = z.object({
  posthogHostname: z.string().url(),
  posthogProjectApiKey: z.string().refine((v) => v.startsWith("phc_"), {
    message:
      "PostHog 'Project API Key' must start with 'phc_'. You can find it in the PostHog project settings.",
  }),
  enabled: z.boolean(),
});
