How to call methods with a generic http client? - tRPC