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§
- Plugin
Webhook Registry - Path-to-sink view shared by the gateway and channel supervisor.
- Plugin
Webhook Registry Lease - Ownership proof for one channel-supervisor route generation.
- RawWebhook
- A raw inbound request received on
/plugin/{path}. - Webhook
Idempotency - Live callbacks into the gateway’s canonical idempotency store.
- Webhook
Reservation Token - Opaque ownership proof for one in-flight idempotency reservation.
- Webhook
Reservation Waiter - Wait handle returned to a request that meets an in-flight owner.
Enums§
- Webhook
Outcome - Acknowledgement after message delivery, or a response with no agent work.
- Webhook
Reject - Why a plugin webhook request could not be accepted.
- Webhook
Reservation - Result of trying to reserve one authenticated, host-authorized message ID.
- Webhook
Reservation Status - 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§
- Webhook
Cancellation - Cancellation signal for one gateway-owned plugin webhook request.