[lib] Update lib/types to accomodate RawThreadInfos
Summary:
Update types that used LegacyRawThreadInfos to now use RawThreadInfos which is LegacyRawThreadInfos | MinimallyEncodedRawThreadInfos.
NOTE: CI is expected to fail. I got to a point in my local environment where all flow issues were resolved, but based on earlier fedback in the stack I'm breaking them down so things are easier to review.. even if that means that intermediate steps fail.
Depends on D10235
Test Plan: Flow/CI AT END OF STACK + thorough testing of keyserver and native client.
Reviewers: ashoat, ginsu, tomek, rohan
Reviewed By: ginsu
Differential Revision: https://phab.comm.dev/D10243