Latest version of Polkadot.js API should work just fine. Try to upgrade @polkadot/api
to the latest version (it knows how to read auto-generated types).
Make sure your package.json version matches latest on npm official site here: @polkadot/api - npm