chore(sdk): Define helper trait MaybeCompact
#12683
+134
−87
Merged
MaybeCompact
#12683