using BuildingBlock.Identity.Contracts.Abstractions;

namespace BuildingBlock.Identity.Contracts.Responses;

/// <summary>
/// Returns policy context lookup result.
/// </summary>
/// <param name="SubjectId">Identity subject identifier.</param>
/// <param name="PermissionCode">Permission code evaluated.</param>
/// <param name="ContextSatisfied">Whether contextual policy requirements were satisfied.</param>
public sealed record IdentityPolicyContextResponse(string SubjectId, string PermissionCode, bool ContextSatisfied)
    : IIdentityCapabilityContract;
