For anyone using typescript & spicedb, we just published an open source library that parses & semantically analyzes the .zed file format. The niche it fills for us is allowing us to codegen a type-safe SDK for our SchoolAI app, based directly upon our current schema.zed file.
The suggested typescript SDK code generator is completely optional, but shows a path if you want to do something similar.
https://www.npmjs.com/package/@schoolai/spicedb-zed-schema-parser