Contacts System

Is there any way to access a player's Contacts? To either read from it (to see who is friend/foe) as well as potentially/hopefully a way to update it to flag a player as one or the other? Perhaps even a hook to track when these change? I haven't beenable to find anything so far.

Thanks in advance for any info you might have.

RelationshipManager.ServerInstance.relationships[userid].relationships