Hints: getTypedApi and https://github.com/paritytech/product-infrastructure/blob/main/apps/bulletin-example/.papi/metadata/bulletin.scale