[lib] Add minimallyEncoded discriminator property to MinimallyEncodedRawThreadInfo
Summary:
As part of refactoring keyserver/native/web, there are places where we need to replace RawThreadInfo with RawThreadInfo | MinimallyEncodedRawThreadInfo. However, both types currently have the exact same keys, so it's difficult to refine types without duplicating functions, "drilling down" minimallyEncoded boolean to downstream functions, etc.
Instead, we add minimallyEncoded discriminator property to allow for more precise type refinement b/w RawThreadInfo and MinimallyEncodedRawThreadInfo.
Test Plan: Unit tests still pass, should make subsequent refactoring simpler.
Reviewers: ashoat, ginsu, tomek, rohan
Reviewed By: ashoat
Subscribers: wyilio
Differential Revision: https://phab.comm.dev/D9766