add endpoint_type support

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>