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