api: export ip_types.api for out-of-tree plugins