Yuva DocsBack to Yuva
Local mock / proposed contract

Contacts

Create a relationship through two distinct actor approvals.

On this page

Confirm one side#

Example
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.

Search Yuva Docs

Type to search the documentation.

↑ ↓ to navigate Enter to open · Esc to close