net.anisota.chronicle.level

Immutable level milestone record. Created once on level-up with createRecord. rkey is zero-padded level (001-099).

Repository @anisota.net did:plc:lcieujcfkv4jx7gehsvok3pr not from the namespace authority
Details · record, key any
Kindrecord
Record keyany
Authoritychronicle.anisota.net
Indexed

Showing version bafyreic2plobyicdhz72ocab4svgg4xgf23yf7yiqss3tqrcci5nm5dfmu. Show the latest

cid bafyreic2plobyicdhz72ocab4svgg4xgf23yf7yiqss3tqrcci5nm5dfmu

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "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"
    },
    "journeyData": {
      "description": "Journey info from previous level",
      "properties": {
        "daysFromPreviousLevel": {
          "description": "Days taken to advance from previous level",
          "minimum": 0,
          "type": "integer"
        },
        "xpGainedFromPreviousLevel": {
          "description": "XP gained since previous level",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "levelSnapshot": {
      "description": "Player state at the moment of leveling up",
      "properties": {
        "daysPlayed": {
          "description": "Total days played at time of level-up",
          "minimum": 0,
          "type": "integer"
        },
        "itemsTotal": {
          "description": "Total items at time of level-up",
          "minimum": 0,
          "type": "integer"
        },
        "postsReadTotal": {
          "description": "Total posts read all-time at level-up",
          "minimum": 0,
          "type": "integer"
        },
        "specimensDocumented": {
          "description": "Total specimens documented at time of level-up",
          "minimum": 0,
          "type": "integer"
        },
        "totalXP": {
          "description": "Total XP at time of level-up",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "totalXP"
      ],
      "type": "object"
    },
    "main": {
      "description": "Immutable level milestone record. Created once on level-up with createRecord. rkey is zero-padded level (001-099).",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When the level was reached",
            "format": "datetime",
            "type": "string"
          },
          "journey": {
            "ref": "#journeyData",
            "type": "ref"
          },
          "level": {
            "description": "The level that was reached",
            "maximum": 99,
            "minimum": 1,
            "type": "integer"
          },
          "signature": {
            "ref": "#chronicleSignature",
            "type": "ref"
          },
          "snapshot": {
            "ref": "#levelSnapshot",
            "type": "ref"
          }
        },
        "required": [
          "level",
          "snapshot",
          "signature",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "net.anisota.chronicle.level",
  "lexicon": 1
}