Typesafe structured output openai Agents Typescript

Within the openai/agents SDK, how can one obtain a type-safe JSON finalOutput when running an Agent? Even after providing a Zod schema to outputType, the finalOutput remains typed as “any.”

Approaches that are functional include manually parsing the output or using typecasting.

I’m curious if there is a more elegant or recommended solution to achieve type safety in this context?