using Baya.Application.Models.Common;
using Baya.Application.Models.Identity;
using Mediator;

namespace Baya.Application.Features.Identity.Commands.SelectRole;

/// <summary>
/// Self-assigns one of the public actor roles (<c>customer</c> / <c>nurse</c>; a user may hold both).
/// Any admin sub-role is rejected with 403 — admin provisioning is internal-only.
/// </summary>
public record SelectRoleCommand(string Role) : IRequest<OperationResult<MeResult>>;