Retrieves the shape (fields) of a Zod object schema, supporting both Zod v3 and v4.
The type of the Zod object schema.
The Zod object schema instance (either v3 or v4).
The shape of the object schema.
If the schema is not a Zod v3 or v4 object.
Retrieves the shape (fields) of a Zod object schema, supporting both Zod v3 and v4.