Creating the bindings and types manually is a bit annoying. Maybe we could use something like https://github.com/oxidecomputer/typify to generate them?