[repoapi] fold ClientConnection into Connection [folded]