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

// Operator-only: invite a new platform admin. Body is just identity — group
// membership is implicit (we add them to the dezky-platform-admins Authentik
// group). Tenant-member invites land later via a different endpoint with
// tenantSlug + role fields.
export class InviteOperatorDto {
  @IsString() @MinLength(2) @MaxLength(120)
  name!: string

  @IsEmail() @MaxLength(254)
  email!: string
}
