net.anisota.chronicle.walk.camp
Camp record. Created when a user makes camp during a walk. Updated when camp is broken. References the parent walk record via AT URI.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | walk.chronicle.anisota.net |
| Indexed |
Showing version bafyreic2e6fizkxxzrwo5sgsz5nwjj5ofpi3gr6unikenj3au23l5uxnxy. Show the latest
Checks
Validunlimited-stringdefs.campConditions.properties.lightLevelNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.campConditions.properties.weatherNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.chronicleSignature.properties.algNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.chronicleSignature.properties.kidNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.chronicleSignature.properties.nonceNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.chronicleSignature.properties.sigNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.reasonNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.statusNo maxLength, maxGraphemes or format limits this string.
{
"$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. Created when a user makes camp during a walk. Updated when camp is broken. References the parent walk 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 walk (1, 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 minutes (only set when status is 'completed'). Minutes throughout the walk system, unlike the legacy expedition camp lexicon's milliseconds.",
"minimum": 0,
"type": "integer"
},
"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"
},
"walkRef": {
"description": "AT URI of the parent walk record (net.anisota.chronicle.walk)",
"format": "at-uri",
"type": "string"
}
},
"required": [
"walkRef",
"status",
"campedAt",
"reason",
"signature",
"createdAt"
],
"type": "object"
},
"type": "record"
}
},
"id": "net.anisota.chronicle.walk.camp",
"lexicon": 1
}