using MediatR;

namespace IamService.API.Application.Queries.PrivilegedAccess;

public record GetActivePrivilegedAccessQuery(Guid UserId) : IRequest<IEnumerable<PrivilegedAccessDto>>;

public record PrivilegedAccessDto(
    Guid Id,
    Guid UserId,
    Guid RoleId,
    string ResourceScope,
    string? Reason,
    string Status,
    DateTime StartsAt,
    DateTime ExpiresAt,
    Guid GrantedByUserId);
