Cotton code
636 lines · 14.2 KB · JSONRaw
{  "chat.contact": {    "thread": "11111111-1111-4111-8111-0000000000a1",    "number": "+15550100001",    "name": "Asha Verma",    "theirName": "Asha",    "hasPicture": false,    "person": null,    "reach": "on",    "blocked": false,    "mutedUntil": null,    "mutes": [      {        "label": "For 8 hours",        "until": "2026-11-21T10:00:00.000Z"      },      {        "label": "For a week",        "until": "2026-11-28T02:00:00.000Z"      },      {        "label": "Until I turn it back on",        "until": null      }    ],    "between": {      "photos": 4,      "videos": 1,      "voice": 2,      "files": 1,      "links": 3    }  },  "chat.profile": {    "name": "Kavi Rao",    "picture": null,    "number": "+15550100100"  },  "chat.blocked": {    "people": [      {        "number": "+15550100066",        "name": "Unknown caller",        "at": "2026-11-10T08:00:00.000Z"      }    ]  },  "chat.contacts": {    "people": [      {        "number": "+15550100001",        "name": "Asha Verma",        "theirName": "Asha",        "thread": "11111111-1111-4111-8111-0000000000a1",        "hasPicture": false      },      {        "number": "+15550100004",        "name": "Bimal Rao",        "hasPicture": false      },      {        "number": "+15550100005",        "name": "Chitra Nair",        "hasPicture": false      },      {        "number": "+15550100003",        "name": "Meera Iyer",        "thread": "11111111-1111-4111-8111-0000000000e1",        "hasPicture": false      },      {        "number": "+15550100002",        "name": "Ravi Menon",        "thread": "11111111-1111-4111-8111-0000000000d1",        "hasPicture": false      }    ]  },  "chat.invite": {    "number": "+15550100011",    "name": "Gita Rao",    "text": "I'm on Cotton Comms, private messages that only we can read. Join me: https://cottondb.com/chat",    "link": "https://cottondb.com/chat",    "sms": "sms:+15550100011?&body=I%27m%20on%20Cotton%20Chat",    "waiting": true  },  "chat.profilePicture": {    "path": null  },  "chat.group.info": {    "thread": "11111111-1111-4111-8111-0000000000b1",    "group": "g-hill",    "title": "Hill trip",    "picture": false,    "count": 4,    "max": 256,    "you": "member",    "can": {      "send": true,      "add": true,      "remove": true,      "rename": true,      "picture": true,      "admins": true,      "leave": true    },    "members": [      {        "number": "+15550100100",        "name": "Kavi Rao",        "known": true,        "you": true,        "admin": true      },      {        "number": "+15550100121",        "name": "Bimal Rao",        "known": true,        "you": false,        "admin": true      },      {        "number": "+15550100122",        "name": "Chitra Nair",        "known": true,        "you": false,        "admin": false      },      {        "number": "+15550100123",        "name": "+1 555 010 0123",        "known": false,        "you": false,        "admin": false      }    ],    "past": [      {        "number": "+15550100124",        "name": "Dinesh Kumar",        "known": true,        "you": false,        "admin": false,        "out": "left"      }    ],    "agents": [      {        "agent": "agent-bimal",        "name": "Claude",        "of": "+15550100121",        "ofName": "Bimal Rao",        "line": "Bimal Rao's agent",        "yours": false,        "can": {          "remove": true        }      }    ],    "canAgents": true  },  "chat.group.receipts": {    "message": "m-w9",    "state": "delivered",    "members": [      {        "number": "+15550100121",        "name": "Bimal Rao",        "state": "read"      },      {        "number": "+15550100122",        "name": "Chitra Nair",        "state": "delivered"      },      {        "number": "+15550100123",        "state": "sent"      }    ]  },  "assistant.screen": {    "heading": "Your Claude",    "promise": "Cotton cannot read your data on its own. Your Claude can, because you connected it; it reaches your data through Cotton only when it asks.",    "connections": [      {        "grantId": "seed-grant",        "memberId": "seed-member",        "client": "Claude",        "said": "Claude · connected 10 days ago"      }    ],    "mayRead": "What it may read",    "tables": [],    "remove": "Remove",    "groups": [      {        "id": "chats",        "label": "Chats",        "line": "Messages and voice notes",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "mail",        "label": "Mail",        "line": "Messages and attachments",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "photos",        "label": "Photos",        "line": "Sent and received",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "calls",        "label": "Calls",        "line": "Who and when",        "access": "ask",        "tables": [],        "needsLock": true,        "choices": [          {            "access": "on",            "label": "On",            "on": false          },          {            "access": "ask",            "label": "Ask each time",            "on": true          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "recordings",        "label": "Recordings",        "line": "Their words, so it can summarise them",        "access": "ask",        "tables": [],        "needsLock": true,        "choices": [          {            "access": "on",            "label": "On",            "on": false          },          {            "access": "ask",            "label": "Ask each time",            "on": true          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "contacts",        "label": "Contacts",        "line": "Names and numbers",        "access": "off",        "tables": [],        "needsLock": true,        "choices": [          {            "access": "on",            "label": "On",            "on": false          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": true          }        ]      },      {        "id": "files",        "label": "Files",        "line": "Sent and received",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      }    ],    "reading": {      "state": "standing",      "row": "Can read any time",      "connected": "Connected",      "title": "Claude can read any time",      "line": "Only what you've allowed below, whenever you ask it something.",      "act": {        "id": "ask_all",        "label": "Ask each time instead"      },      "note": "\"Ask each time\" means Claude asks you on this phone first.",      "disconnect": "Disconnect Claude"    }  },  "seed.assistant.screen.timed": {    "heading": "Your Claude",    "promise": "Cotton cannot read your data on its own. Your Claude can, because you connected it; it reaches your data through Cotton only when it asks.",    "connections": [      {        "grantId": "seed-grant",        "memberId": "seed-member",        "client": "Claude",        "said": "Claude · connected 10 days ago"      }    ],    "mayRead": "What it may read",    "tables": [],    "remove": "Remove",    "groups": [      {        "id": "chats",        "label": "Chats",        "line": "Messages and voice notes",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "mail",        "label": "Mail",        "line": "Messages and attachments",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "photos",        "label": "Photos",        "line": "Sent and received",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "calls",        "label": "Calls",        "line": "Who and when",        "access": "ask",        "tables": [],        "needsLock": true,        "choices": [          {            "access": "on",            "label": "On",            "on": false          },          {            "access": "ask",            "label": "Ask each time",            "on": true          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "recordings",        "label": "Recordings",        "line": "Their words, so it can summarise them",        "access": "ask",        "tables": [],        "needsLock": true,        "choices": [          {            "access": "on",            "label": "On",            "on": false          },          {            "access": "ask",            "label": "Ask each time",            "on": true          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      },      {        "id": "contacts",        "label": "Contacts",        "line": "Names and numbers",        "access": "off",        "tables": [],        "needsLock": true,        "choices": [          {            "access": "on",            "label": "On",            "on": false          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": true          }        ]      },      {        "id": "files",        "label": "Files",        "line": "Sent and received",        "access": "on",        "tables": [],        "needsLock": false,        "choices": [          {            "access": "on",            "label": "On",            "on": true          },          {            "access": "ask",            "label": "Ask each time",            "on": false          },          {            "access": "off",            "label": "Off",            "on": false          }        ]      }    ],    "reading": {      "state": "timed",      "row": "Can read until 10:30",      "connected": "Connected",      "title": "Claude can read until 10:30",      "line": "Only what you've allowed below. After that, Claude asks you again.",      "act": {        "id": "stop",        "label": "Stop now",        "grantIds": [          "seed-window"        ]      },      "note": "\"Ask each time\" means Claude asks you on this phone first.",      "disconnect": "Disconnect Claude"    }  },  "seed.account.acts": [    {      "id": "account_back_up",      "label": "Sync now",      "kind": "tool",      "rank": "main",      "primary": true    },    {      "id": "account_sign_out",      "label": "Sign out",      "kind": "tool",      "rank": "away",      "red": true    }  ],  "seed.chat.you.unreachable": {    "title": "3 changes waiting to sync",    "last": "Last synced at 9:53",    "trouble": true  },  "seed.chat.you.privacy": "1 blocked · read receipts off",  "seed.voice.said": "Running ten minutes late. Save me a seat by the window.",  "seed.voice.heard": "The invented market opens at nine, bring the big basket.",  "seed.file.name": "Train times.pdf",  "seed.file.large": "Hill line map.pdf",  "seed.file.page": "%PDF-1.4\n% Invented train times for Chat Dev\n",  "seed.agent.yours": {    "agent": "agent-mine",    "name": "Claude",    "of": "+15550100100",    "ofName": "You",    "line": "Your agent",    "yours": true,    "can": {      "remove": true    }  },  "seed.agent.connect": "Connect Claude first, under You → Your Claude."}