Create an IncomingEventMiddleware instance.
Options containing the blueprint for resolving configuration and dependencies.
Handles the incoming event, processes it, and invokes the next middleware in the pipeline.
The adapter context containing the raw event, execution context, and other data.
The next middleware to be invoked in the pipeline.
A promise that resolves to the processed context.
Middleware for handling incoming events and transforming them into Stone.js events.
It first normalizes the raw AWS event (API Gateway v1/v2, ALB, Function URLs) into a single canonical shape, then extracts URL, IP addresses, headers, cookies, query and the raw body, so the pipeline never has to reason about which trigger fired. The untouched request body is always exposed as
metadata.rawBody— even when no body-parsing middleware is installed — so consumers can read the original payload (e.g. to verify a webhook signature).