Type error with Zod state graph definition

I’m attempting to define my graph state using Zod, per the instructions here but getting a type error on the .langgraphcall:

Property 'langgraph' does not exist on type 'ZodDefault<ZodArray<ZodString>>'. 

and also on the call to new StateGraph

No overload matches this call.
     The last overload gave the following error.
       Argument of type 'ZodObject<{ messages: any; question: ZodString; answer: ZodString; }, $strip>' is not assignable to parameter of type 'never'. [2769]
2. 'graph' is declared but its value is never read. [6133]

I saw that the langgraph plugin was deprecated in favor of registries - is there some documentation on how to use that?

Downgrading to Zod 3.25.32 helped