api: add provider/consumer type annotation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>