pubsub: Adding topic listing

It seems like we will never generate this query again, that's why I didn't provide a helper function.