{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Liveness beacon, written by any member into their own repo while they have the document open (rkey = the doc's rkey; refreshed by putRecord roughly every minute). Peers treat the author as present while the timestamp is recent.",
      "key": "tid",
      "record": {
        "properties": {
          "at": {
            "description": "Time of the author's most recent liveness refresh.",
            "format": "datetime",
            "type": "string"
          },
          "doc": {
            "description": "rkey of the space.ziran.doc record the author has open.",
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "doc",
          "at"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.ziran.presence",
  "lexicon": 1
}
