import { IsEmail, MaxLength } from 'class-validator'

// Change a mailbox-less member's primary email (their Authentik sign-in
// identity + our User.email). Refused server-side for members who have a
// Stalwart mailbox — there the primary address IS the inbox.
export class ChangePrimaryEmailDto {
  @IsEmail()
  @MaxLength(200)
  email!: string
}
