Updated SDK generator to return the response