Moves the schemas (utility types) into a separate file so zod schemas for runtime type-checking can be added without cluttering up the client code.
(This is a draft PR, stacked on top of a parent that currently needs to be merged first! The diff will be smaller once the parent is merged. The GitHub UI doesn't seem to let me change the diffbase, as the parent branch lives on my fork. Before merging, first merge the parent and rebase this PR on main.)
Moves the schemas (utility types) into a separate file so zod schemas for runtime type-checking can be added without cluttering up the client code.
(This is a draft PR, stacked on top of a parent that currently needs to be merged first! The diff will be smaller once the parent is merged. The GitHub UI doesn't seem to let me change the diffbase, as the parent branch lives on my fork. Before merging, first merge the parent and rebase this PR on main.)
Parent:
Child:
The whole stack (in order):