Fix bad switch to Pydantic for DirectoryEntry. Fix some TS errors. 4df7999 darabos commited on Feb 19