# space.ziran.presence

> Published by [lexicons.pds.ziran.space](https://lexicon.garden/identity/did:plc:axdexdy7p7yvuunn2mvuvy32)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.presence)
- [Documentation](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.presence/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.presence/examples)

## Definitions

### `space.ziran.presence`

**Type**: `record`

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`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `at` | `string` (datetime) | Yes | Time of the author's most recent liveness refresh. |
| `doc` | `string` (tid) | Yes | rkey of the space.ziran.doc record the author has open. |

## Raw Schema

```json
{
  "id": "space.ziran.presence",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "doc",
          "at"
        ],
        "properties": {
          "at": {
            "type": "string",
            "format": "datetime",
            "description": "Time of the author's most recent liveness refresh."
          },
          "doc": {
            "type": "string",
            "format": "tid",
            "description": "rkey of the space.ziran.doc record the author has open."
          }
        }
      },
      "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."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
