import { IsIn } from 'class-validator'
import type { DmarcPolicy } from '../../schemas/domain.schema.js'

// Set the DMARC enforcement level chosen in the add-domain wizard (step 5).
// Drives the expected `_dmarc` TXT value we verify against.
export class SetDmarcPolicyDto {
  @IsIn(['none', 'quarantine', 'reject'])
  dmarcPolicy!: DmarcPolicy
}
