using Features.Auth.Dtos;
using MediatR;
namespace Features.Auth.Commands.Account.UpdateEmail;
///
/// Changes the email address of the given user account. The account's EmailConfirmed status
/// is reset to unconfirmed as a result.
///
///
/// The authenticated caller's own ID, extracted from the access token -- never bind this from
/// client-supplied input.
///
public record UpdateEmailCommand(Guid UserAccountId, string NewEmail)
: IRequest;