Skip to content

Commit 5e8a72a

Browse files
committed
add contact convention
1 parent 60fac59 commit 5e8a72a

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

conventions/contact.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contact Convention
2+
3+
Contacts are regular encrypted documents with this JSON shape:
4+
5+
```json
6+
{
7+
"kind": "contact",
8+
"title": "Jane Doe",
9+
"content": "Personal assistant instructions: prefer email for non-urgent tasks.",
10+
"contactDetails": {
11+
"name": "Jane Doe",
12+
"email": "jane@example.com",
13+
"phone": "1234567890",
14+
"slack": "U12345",
15+
"teams": "user@domain.com",
16+
"telegram": "@janedoe",
17+
"aliceAndBotPublicSignKey": "alice-and-bot-public-key"
18+
}
19+
}
20+
```
21+
22+
Rules:
23+
24+
- `kind` MUST be `"contact"`.
25+
- `title` is the contact's name or display name.
26+
- `content` can contain freeform markdown notes about the contact.
27+
- `contactDetails` holds the structured contact fields previously handled by the DB.

0 commit comments

Comments
 (0)