# is.braxton.state

> One reading of my physical state, sampled from an iPhone and Apple Watch. An append-only log: records are never edited, so an is.braxton.now status can point at the reading taken alongside it.

- Kind: record
- Record key: tid
- Authority: braxton.is
- Lexicon: 1
- Published by [braxton.is](https://lexicon.garden/identity/did:plc:2grdruc2p6fjhksrfpt366yl), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2grdruc2p6fjhksrfpt366yl/is.braxton.state)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2grdruc2p6fjhksrfpt366yl/is.braxton.state/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2grdruc2p6fjhksrfpt366yl/is.braxton.state/analytics)

## Record (`is.braxton.state`)

Type: record · key tid

### Properties

- `activity` (string): How I was moving: the label from the Shortcuts action Get Physical Activity, lowercased. Other labels than the known values can appear.
  - Constraints: maxLength: 64, knownValues: stationary | walking | running | cycling | unknown
- `batteryLevel` (integer): Phone battery charge, in percent.
  - Constraints: minimum: 0, maximum: 100
- `createdAt` (string · datetime, required): When the reading was taken.
- `heartRate` (integer): Heart rate in beats per minute. 0 means no reading.
  - Constraints: minimum: 0, maximum: 300

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One reading of my physical state, sampled from an iPhone and Apple Watch. An append-only log: records are never edited, so an is.braxton.now status can point at the reading taken alongside it.",
      "key": "tid",
      "record": {
        "properties": {
          "activity": {
            "description": "How I was moving: the label from the Shortcuts action Get Physical Activity, lowercased. Other labels than the known values can appear.",
            "knownValues": [
              "stationary",
              "walking",
              "running",
              "cycling",
              "unknown"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "batteryLevel": {
            "description": "Phone battery charge, in percent.",
            "maximum": 100,
            "minimum": 0,
            "type": "integer"
          },
          "createdAt": {
            "description": "When the reading was taken.",
            "format": "datetime",
            "type": "string"
          },
          "heartRate": {
            "description": "Heart rate in beats per minute. 0 means no reading.",
            "maximum": 300,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "is.braxton.state",
  "lexicon": 1
}
```
