Auth tweaks, Audit implementation, Webhooks

This commit is contained in:
2026-04-13 14:17:45 -07:00
parent b9a04df861
commit 334b6cf3e1
46 changed files with 4654 additions and 61 deletions

View File

@@ -0,0 +1,27 @@
namespace MicCheck.Api.Webhooks;
public record WebhookDeliveryLogResponse(
int Id,
int WebhookId,
string EventType,
bool Success,
int? ResponseStatusCode,
string? ResponseBody,
string? ErrorMessage,
int AttemptNumber,
DateTimeOffset AttemptedAt,
TimeSpan Duration
)
{
public static WebhookDeliveryLogResponse From(WebhookDeliveryLog log) => new(
log.Id,
log.WebhookId,
log.EventType,
log.Success,
log.ResponseStatusCode,
log.ResponseBody,
log.ErrorMessage,
log.AttemptNumber,
log.AttemptedAt,
log.Duration);
}