Hiding product in store, but available for direct link purchase

I am creating a Digital product programmatically which should not be displayed in collection or any other places in website apart from direct link. Since these products will be created by public app I will not be able to customise the store.

Is there a possibility to hide the product in catalogue and product recommendation?

This can currently only be done by editing the theme code.

Tobi has mentioned on X that an ”unlisted” product status is coming, but no mention of when. This will resolve this long standing issue.