Wraps the AssemblyAI webhook scaffolding (auth verification, payload parsing,
ack-and-log error handling) so route handlers only supply the domain callback.
Returns a Web-standard (request: Request) => Promise<Response> so it can
be assigned directly as a Next.js route handler without pulling next/server
into this package.
Wraps the AssemblyAI webhook scaffolding (auth verification, payload parsing, ack-and-log error handling) so route handlers only supply the domain callback.
Returns a Web-standard
(request: Request) => Promise<Response>so it can be assigned directly as a Next.js route handler without pullingnext/serverinto this package.