Blueprints for a specific space

Hey,

when i install my blueprint it is globally avaible. I want to use it after install only in a specific space.
How can i say the blueprint that only shows in a create dialog in a specific space, maybe identify based on the space key?

Have you managed to restrict blueprint for specific space?

I’m facing similar problem.
What I think is a solution is to write custom condition class to filter out unwanted spaces and show only in desired space.
https://developer.atlassian.com/server/confluence/web-item-plugin-module/

But the problem is that I can not find the documentation to how to implement this class.