Persist dynamically created thing types?

I’m working on extending the Nibe uplink binding to be able to use Nibe’s official REST API. Through the API I can get enough information on a connected system to build a thing-type, complete with channel groups and channels. However, when OH or the binding is restarted, a lot of the information is lost. The thing is still working, and all channels are present, but the channel groups and config-description is missing. Is there any way to persist the created thing-types or do I need to reconstruct everything on every startup of the binding?