[hub] Type-safe subscription and publish workflow