Confirm one side#
const details = { a: 'me', b: 'selin' };
const proof = api.auth.issue('me', C.scope('connect', details),
'demo-confirmation');
api.relations.connect('me', 'selin', proof);Confirm the other side#
The second actor separately approves the reversed actor/target pair. The demo uses simulated-counterparty for that step. A pending relationship cannot create a private obligation.
Proposed HTTP contract#
POST /contacts would represent relationship creation, not automatic acceptance by both people. Authentication, confirmation requests and privacy controls must be defined before any server implementation.