Auth tweaks, Audit implementation, Webhooks
This commit is contained in:
16
src/api/MicCheck.Api/Webhooks/WebhookEvent.cs
Normal file
16
src/api/MicCheck.Api/Webhooks/WebhookEvent.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace MicCheck.Api.Webhooks;
|
||||
|
||||
public class WebhookEvent
|
||||
{
|
||||
public required string EventType { get; init; }
|
||||
public int? EnvironmentId { get; init; }
|
||||
public int OrganizationId { get; init; }
|
||||
public required object Data { get; init; }
|
||||
}
|
||||
|
||||
public static class WebhookEventTypes
|
||||
{
|
||||
public const string FlagUpdated = "FLAG_UPDATED";
|
||||
public const string FlagDeleted = "FLAG_DELETED";
|
||||
public const string AuditLogCreated = "AUDIT_LOG_CREATED";
|
||||
}
|
||||
Reference in New Issue
Block a user