I’ve resolved the undefined types (which were incorrectly migrated from v3 AFAICT), but I still can’t figure out what the right way to get details logs back from the server when HTTP requests fail with 400/500s.
FWIW, I resolved the undefined types issue by manually editing the schemas in collections, components and suchlike using the schemas generated by creating new, similar items with the admin interface.