split proto-api client into separate module