using BuildingBlock.Identity.Contracts.Grpc;
using BuildingBlock.Identity.Contracts.Requests;
namespace BuildingBlock.Identity.Contracts.Adapters;
///
/// Defines gRPC mapping boundary for identity capability requests.
///
public interface IIdentityGrpcContractAdapter
{
///
/// Maps request into gRPC contract shape.
///
IdentityPolicyGrpcContract ToGrpc(EvaluateIdentityPolicyRequest request);
///
/// Maps gRPC contract shape into request.
///
EvaluateIdentityPolicyRequest FromGrpc(IdentityPolicyGrpcContract contract);
}