typescript lib types have too many optional fields - Supabase