feat: add constructor for defined type.