OptionalbatchMaximum eligible messages to handle in one drain pass.
OptionalconcurrencyMaximum messages delivered concurrently. Values above one are unordered.
OptionalheadersAdditional response headers.
OptionalheartbeatSerialized claim-renewal interval. Must remain shorter than leaseMs.
OptionalleaseClaim lease duration in milliseconds.
OptionalmaxMaximum time Beignet renews a claim for one delivery.
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.