Type errors after upgrading to V1 - Mastra