Define the client and server APIs for Presence