[lib] Use specs to determine hash value for inner infos
Summary:
Choose the right spec and based on that an info and compute a hash for it.
https://linear.app/comm/issue/ENG-4813/migrate-getclientresponsesselector-to-a-spec
Depends on D9031
Test Plan: Modify server state and check if state check fixes client state.
Reviewers: kamil, bartek, inka
Reviewed By: kamil
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D9048