{
  "$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
}
