You can set and retrieve the visibility of a repository in the Repositories API.
Custom media types: nebula-preview Announced: 2019-11-25
nebula-preview