net.anisota.chronicle.expedition.camp

Camp record, retired in the 2027 season with walks and making camp: the app no longer writes it, and existing records are kept and still readable. Created when a user makes camp during an expedition. Updated when camp is broken. References the parent expedition record via AT URI.

Repository @anisota.net did:plc:lcieujcfkv4jx7gehsvok3pr not from the namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityexpedition.chronicle.anisota.net
Commit rev3n2tvo7uki626
Indexed
cid bafyreigxdfeqa5bgosxb6zwprgv2v4mb7uoznee5zbmjwwpv564rlcjsmi

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "campConditions": {
      "description": "Environmental conditions when camp was made",
      "properties": {
        "lightLevel": {
          "description": "Time-of-day light condition when camp was made",
          "enum": [
            "dawn",
            "morning",
            "midday",
            "afternoon",
            "dusk",
            "night",
            "deepnight"
          ],
          "type": "string"
        },
        "weather": {
          "description": "Weather condition when camp was made",
          "enum": [
            "clear",
            "overcast",
            "rainy",
            "stormy",
            "foggy"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "campLight": {
      "description": "Light levels at camp start/end",
      "properties": {
        "atBreak": {
          "description": "Light level when camp was broken (in minutes)",
          "minimum": 0,
          "type": "integer"
        },
        "atCamp": {
          "description": "Light level when camp was made (in minutes)",
          "minimum": 0,
          "type": "integer"
        },
        "regenerated": {
          "description": "Light regenerated during camp",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "chronicleSignature": {
      "description": "ES256 cryptographic signature proving record authenticity",
      "properties": {
        "alg": {
          "description": "Signing algorithm (ES256)",
          "type": "string"
        },
        "kid": {
          "description": "Key identifier for the signing key",
          "type": "string"
        },
        "nonce": {
          "description": "Unique random nonce to prevent replay",
          "type": "string"
        },
        "sig": {
          "description": "Base64-encoded ES256 signature",
          "type": "string"
        },
        "signedAt": {
          "description": "When the record was signed",
          "format": "datetime",
          "type": "string"
        },
        "version": {
          "description": "Signature schema version",
          "type": "integer"
        }
      },
      "required": [
        "sig",
        "alg",
        "kid",
        "signedAt",
        "nonce",
        "version"
      ],
      "type": "object"
    },
    "main": {
      "description": "Camp record, retired in the 2027 season with walks and making camp: the app no longer writes it, and existing records are kept and still readable. Created when a user makes camp during an expedition. Updated when camp is broken. References the parent expedition record via AT URI.",
      "key": "tid",
      "record": {
        "properties": {
          "brokeAt": {
            "description": "When camp was broken (only set when status is 'completed')",
            "format": "datetime",
            "type": "string"
          },
          "campNumber": {
            "description": "Sequential camp number within the parent expedition (1, 2, 3...). Combined with expeditionNumber gives e.g. Camp 2.1, Camp 2.3",
            "minimum": 1,
            "type": "integer"
          },
          "campedAt": {
            "description": "When camp was set up",
            "format": "datetime",
            "type": "string"
          },
          "conditions": {
            "ref": "#campConditions",
            "type": "ref"
          },
          "createdAt": {
            "description": "When the record was created",
            "format": "datetime",
            "type": "string"
          },
          "duration": {
            "description": "Total camp duration in milliseconds (only set when status is 'completed')",
            "minimum": 0,
            "type": "integer"
          },
          "expeditionRef": {
            "description": "AT URI of the parent expedition record (net.anisota.chronicle.expedition)",
            "format": "at-uri",
            "type": "string"
          },
          "light": {
            "ref": "#campLight",
            "type": "ref"
          },
          "reason": {
            "description": "Why camp was made",
            "enum": [
              "user_initiated",
              "light_low",
              "stamina_low",
              "conditions_harsh"
            ],
            "type": "string"
          },
          "signature": {
            "ref": "#chronicleSignature",
            "type": "ref"
          },
          "status": {
            "description": "Whether the camp is currently active or has been broken",
            "enum": [
              "active",
              "completed"
            ],
            "type": "string"
          },
          "updatedAt": {
            "description": "When the record was last updated (set on break camp)",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "expeditionRef",
          "status",
          "campedAt",
          "reason",
          "signature",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "net.anisota.chronicle.expedition.camp",
  "lexicon": 1
}