using BuildingBlock.Identity.Contracts.Abstractions;

namespace BuildingBlock.Identity.Contracts.Responses;

/// <summary>
/// Returns identity policy evaluation result.
/// </summary>
/// <param name="SubjectId">Identity subject identifier.</param>
/// <param name="PermissionCode">Permission code evaluated.</param>
/// <param name="IsAllowed">Whether access is granted.</param>
public sealed record EvaluateIdentityPolicyResponse(string SubjectId, string PermissionCode, bool IsAllowed)
    : IIdentityCapabilityContract;
