Skip to main content

Module webhook

Module webhook 

Expand description

Wasmtime-free wiring for channel-plugin webhook ingress.

The gateway and channel supervisor deliberately meet in this API crate so the HTTP boundary does not need to depend on the plugin runtime. A running channel publishes one bounded sink, the gateway forwards exact request bytes to it, and a one-shot carries only the outcome needed for the public HTTP response.

Structs§

PluginWebhookRegistry
Path-to-sink view shared by the gateway and channel supervisor.
PluginWebhookRegistryLease
Ownership proof for one channel-supervisor route generation.
RawWebhook
A raw inbound request received on /plugin/{path}.
WebhookIdempotency
Live callbacks into the gateway’s canonical idempotency store.
WebhookReservationToken
Opaque ownership proof for one in-flight idempotency reservation.
WebhookReservationWaiter
Wait handle returned to a request that meets an in-flight owner.

Enums§

WebhookOutcome
Acknowledgement after message delivery, or a response with no agent work.
WebhookReject
Why a plugin webhook request could not be accepted.
WebhookReservation
Result of trying to reserve one authenticated, host-authorized message ID.
WebhookReservationStatus
The state shared with a duplicate while the first delivery owns a stable message ID.

Constants§

MAX_WEBHOOK_RESPONSE_BODY_BYTES
Maximum UTF-8 byte length of a plugin’s HTTP challenge response.

Type Aliases§

WebhookCancellation
Cancellation signal for one gateway-owned plugin webhook request.