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