using System.Text.Json; using System.Text.Json.Serialization; namespace Distribution.Infra.Authorization; /// Raw response shape returned by AuthHex's `/api/user` endpoint for every functionName. public record AuthHexResponse( [property: JsonPropertyName("statusCode")] int StatusCode, [property: JsonPropertyName("success")] bool Success, [property: JsonPropertyName("message")] string? Message, [property: JsonPropertyName("data")] JsonElement? Data);