full diff

net.anisota.chronicle.achievement

anisota.net +1 −1
From
bafyreiasrbaseo7mur3rgktw4vy3vxoqcy3x4dwovqy3eo2w74vuferyxy indexed 2026-06-22 18:49 UTC View this version
To
bafyreianfyx3ua4qxypfkszdz6rnyznljyp4vw4km4m4yevbwdnh5ybczm indexed 2026-07-20 17:07 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "achievementContext": {
55 "description": "Contextual data at the time of achievement unlock",
66 "properties": {
77 "followerCount": {
88 "description": "Follower count when achievement was unlocked",
99 "minimum": 0,
1010 "type": "integer"
1111 },
1212 "level": {
1313 "description": "Player level when achievement was unlocked",
1414 "minimum": 1,
1515 "type": "integer"
1616 },
1717 "postCount": {
1818 "description": "Post count when achievement was unlocked",
1919 "minimum": 0,
2020 "type": "integer"
2121 },
2222 "specimenCount": {
2323 "description": "Specimen count when achievement was unlocked",
2424 "minimum": 0,
2525 "type": "integer"
2626 },
2727 "totalXP": {
2828 "description": "Total XP when achievement was unlocked",
2929 "minimum": 0,
3030 "type": "integer"
3131 }
3232 },
3333 "type": "object"
3434 },
3535 "chronicleSignature": {
3636 "description": "ES256 cryptographic signature proving record authenticity. The signature itself proves legitimacy - no separate verification lexicons needed.",
3737 "properties": {
3838 "alg": {
3939 "description": "Signing algorithm (ES256)",
4040 "type": "string"
4141 },
4242 "kid": {
4343 "description": "Key identifier for the signing key",
4444 "type": "string"
4545 },
4646 "nonce": {
4747 "description": "Unique random nonce to prevent replay",
4848 "type": "string"
4949 },
5050 "sig": {
5151 "description": "Base64-encoded ES256 signature",
5252 "type": "string"
5353 },
5454 "signedAt": {
5555 "description": "When the record was signed",
5656 "format": "datetime",
5757 "type": "string"
5858 },
5959 "version": {
6060 "description": "Signature schema version",
6161 "type": "integer"
6262 }
6363 },
6464 "required": [
6565 "sig",
6666 "alg",
6767 "kid",
6868 "signedAt",
6969 "nonce",
7070 "version"
7171 ],
7272 "type": "object"
7373 },
7474 "main": {
75 "description": "Consolidated achievement record. Replaces 30 beta achievement lexicons. rkey is the achievement ID (e.g. followers2500, level50). Created once with createRecord when achievement is unlocked. Immutable.",
75 "description": "DEPRECATED - superseded by net.anisota.chronicle.milestone. No new records are written to this collection; the schema is kept because earlier records still exist on users' PDSes and remain readable. rkey is the achievement ID (e.g. followers2500, level50). Immutable.",
7676 "key": "any",
7777 "record": {
7878 "properties": {
7979 "achievementId": {
8080 "description": "Unique identifier for the achievement (e.g. 'followers2500', 'level50')",
8181 "maxLength": 100,
8282 "type": "string"
8383 },
8484 "category": {
8585 "description": "Category of the achievement",
8686 "enum": [
8787 "followers",
8888 "level",
8989 "social",
9090 "collection",
9191 "patterns",
9292 "special",
9393 "expedition"
9494 ],
9595 "type": "string"
9696 },
9797 "context": {
9898 "ref": "#achievementContext",
9999 "type": "ref"
100100 },
101101 "createdAt": {
102102 "description": "When the achievement record was created",
103103 "format": "datetime",
104104 "type": "string"
105105 },
106106 "dailyRecordRef": {
107107 "description": "AT URI of the daily record when the achievement was unlocked",
108108 "type": "string"
109109 },
110110 "description": {
111111 "description": "Description of what was accomplished",
112112 "maxLength": 500,
113113 "type": "string"
114114 },
115115 "name": {
116116 "description": "Display name of the achievement",
117117 "maxLength": 100,
118118 "type": "string"
119119 },
120120 "rarity": {
121121 "description": "Rarity tier of the achievement",
122122 "enum": [
123123 "common",
124124 "uncommon",
125125 "rare",
126126 "epic",
127127 "legendary"
128128 ],
129129 "type": "string"
130130 },
131131 "signature": {
132132 "ref": "#chronicleSignature",
133133 "type": "ref"
134134 },
135135 "tier": {
136136 "description": "Tier or milestone value (e.g. 2500 for followers2500)",
137137 "minimum": 0,
138138 "type": "integer"
139139 },
140140 "unlockedAt": {
141141 "description": "When the achievement was unlocked",
142142 "format": "datetime",
143143 "type": "string"
144144 },
145145 "xpReward": {
146146 "description": "XP awarded for this achievement",
147147 "minimum": 0,
148148 "type": "integer"
149149 }
150150 },
151151 "required": [
152152 "achievementId",
153153 "category",
154154 "unlockedAt",
155155 "signature",
156156 "createdAt"
157157 ],
158158 "type": "object"
159159 },
160160 "type": "record"
161161 }
162162 },
163163 "id": "net.anisota.chronicle.achievement",
164164 "lexicon": 1
165165}

Compare other versions