Get Realm schema with an admin api call

I would like to use the mongoClient provided through a Realm app but don’t like how it doesn’t provide my schema types for typescript. This makes it a lot harder to interact with Realm in a type safe way. I went the graphql route for strong typing on my frontend but hit some roadblocks with not having pagination support and would also like to avoid the extra dependencies. I was digging in the admin api documentation and see that I can create a schema but is there a way to get the schema in Realm through the api? I would like to be able to get the schema and type my mongoClient queries on my frontend. Is there a better way to be able to strongly type the mongoClient? I could manually type them in typescript but I would have to keep it in sync with my Realm which I don’t want to have to manage. Any resources or direction on this would be greatly appreciated!