How do I create a filter based on the current user’s role in a search_api based view?

I would like to filter a search_api based view using the current user’s roles as input.
I don’t see a contextual filter for the current user in my search_api based content view at all.
How can I accomplish something like the "Published or has role" feature of this contrib module? This one seems to only work on non-search_api views.