import { z } from 'zod';
import { SocialPlatform } from '@prisma/client';

export const bridgeSocialLinksSchema = z.object({
  email: z.string().email(),
  links: z
    .array(
      z.object({
        platform: z.nativeEnum(SocialPlatform),
        url: z.string().url().max(2048),
        displayName: z.string().max(256).optional(),
      }),
    )
    .max(20),
});

export type BridgeSocialLinksInput = z.infer<typeof bridgeSocialLinksSchema>;
