For T284836, we'll need an API to get the status of topic subscriptions on a page, so that we can update the [subscribe]/[unsubscribe] buttons if an auto-subscription is added after the page has been loaded.
I'm splitting this off to a separate task, because there are other use cases for this API, and we might want to do this part separately and earlier than the rest of the work.