OptionalbatchMaximum messages to claim in one drain pass.
OptionalheadersAdditional response headers.
OptionalleaseClaim lease duration in milliseconds.
OptionalpipelineIdentity and metadata for the hooks pipeline when the server exposes
rawRoute(...). metadata feeds metadata-driven hooks such as rate
limiting and idempotency; name and path identify the route to
hooks, instrumentation, and devtools.
Registry of events and jobs that may be delivered from the outbox.
OptionalretryRetry delay override passed through to drainOutbox(...).
OptionalsecretShared secret expected in the Authorization: Bearer <secret> header.
Missing secrets fail closed with a 500 response so deployments do not accidentally expose an unauthenticated drain route.
Beignet server that owns app context and ports.
Any object exposing createRequestContext works: a NextServer, a core
ServerInstance, or a test fake driven from a standard test runner.
Options for creating a serverless-safe outbox drain route.