Turn API specs into TypeScript types and guards.
Recent revisions are kept. Restoring one creates a new revision.