class

KemalcrStarter::Modules::Webhooks::WebhookService

Inherits Reference < Object

Constructors

new(settings : Core::Config::Settings, database : DB::Database, event_repository : Infrastructure::DB::OutboxEventRepository | Nil = nil)
Source

Instance methods

create_endpoint(actor_id : String, organization_id : String, url : String, description : String | Nil, event_types : Array(String)) : CreatedEndpoint
Source
dispatch_event(event : Core::Events::DomainEvent) : Nil

Called from the outbox event pipeline. Raises on failure so the publisher retries.

Source
list_deliveries(actor_id : String, organization_id : String, endpoint_id : String) : Array(Infrastructure::DB::WebhookDeliveryRecord)
Source
list_endpoints(actor_id : String, organization_id : String) : Array(EndpointView)
Source
revoke_endpoint(actor_id : String, organization_id : String, endpoint_id : String) : Bool
Source