full diff

net.anisota.chronicle.log.weekly

anisota.net +1 −1
From
bafyreidtmiq4a6gbgxuqqzuhinuyyx675gweubbvuvn4qtrkvp3oeklanm indexed 2026-07-23 23:28 UTC View this version
To
bafyreiaogmoqlafnp42pa4u4x6mtdjqrvby6hexx344ycgultczog3d7vi indexed 2026-11-21 20:07 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "chronicleSignature": {
55 "description": "ES256 cryptographic signature proving record authenticity",
66 "properties": {
77 "alg": {
88 "description": "Signing algorithm (ES256)",
99 "type": "string"
1010 },
1111 "kid": {
1212 "description": "Key identifier for the signing key",
1313 "type": "string"
1414 },
1515 "nonce": {
1616 "description": "Unique random nonce to prevent replay",
1717 "type": "string"
1818 },
1919 "sig": {
2020 "description": "Base64-encoded ES256 signature",
2121 "type": "string"
2222 },
2323 "signedAt": {
2424 "description": "When the record was signed",
2525 "format": "datetime",
2626 "type": "string"
2727 },
2828 "version": {
2929 "description": "Signature schema version",
3030 "type": "integer"
3131 }
3232 },
3333 "required": [
3434 "sig",
3535 "alg",
3636 "kid",
3737 "signedAt",
3838 "nonce",
3939 "version"
4040 ],
4141 "type": "object"
4242 },
4343 "inAppCounts": {
4444 "description": "Per-category counts of activity performed inside anisota, summed across the period and across devices.",
4545 "properties": {
4646 "likes": {
4747 "description": "Likes created in anisota",
4848 "minimum": 0,
4949 "type": "integer"
5050 },
5151 "posts": {
5252 "description": "Top-level posts created in anisota",
5353 "minimum": 0,
5454 "type": "integer"
5555 },
5656 "quotes": {
5757 "description": "Quote posts created in anisota",
5858 "minimum": 0,
5959 "type": "integer"
6060 },
6161 "replies": {
6262 "description": "Replies created in anisota",
6363 "minimum": 0,
6464 "type": "integer"
6565 },
6666 "reposts": {
6767 "description": "Reposts created in anisota",
6868 "minimum": 0,
6969 "type": "integer"
7070 }
7171 },
7272 "type": "object"
7373 },
7474 "main": {
7575 "description": "Weekly aggregation of daily records. rkey is YYYY-WNN (ISO week). Updated once per day, finalized when week ends.",
7676 "key": "any",
7777 "record": {
7878 "properties": {
7979 "aggregates": {
8080 "ref": "#weeklyAggregates",
8181 "type": "ref"
8282 },
8383 "createdAt": {
8484 "description": "When the weekly record was first created",
8585 "format": "datetime",
8686 "type": "string"
8787 },
8888 "expeditionRefs": {
89 "description": "AT URIs of expedition records that occurred during this week",
89 "description": "Retired with walks: from the 2027 season the app leaves it out of the rollup. AT URIs of expedition records that occurred during this week",
9090 "items": {
9191 "type": "string"
9292 },
9393 "type": "array"
9494 },
9595 "finalizedAt": {
9696 "description": "When the weekly record was finalized (end of week)",
9797 "format": "datetime",
9898 "type": "string"
9999 },
100100 "inApp": {
101101 "description": "Rolled-up in-anisota activity for the week (summed daily inApp across devices, per field). Optional and additive; the read side may instead compute this from the week's daily logs.",
102102 "ref": "#inAppCounts",
103103 "type": "ref"
104104 },
105105 "lowerLogRefs": {
106106 "description": "AT URIs of daily log records included in this week",
107107 "items": {
108108 "type": "string"
109109 },
110110 "type": "array"
111111 },
112112 "patterns": {
113113 "ref": "#weeklyPatterns",
114114 "type": "ref"
115115 },
116116 "signature": {
117117 "ref": "#chronicleSignature",
118118 "type": "ref"
119119 },
120120 "status": {
121121 "description": "Whether this week is still being updated or has been finalized",
122122 "enum": [
123123 "active",
124124 "finalized"
125125 ],
126126 "type": "string"
127127 },
128128 "trends": {
129129 "ref": "#trendData",
130130 "type": "ref"
131131 },
132132 "upperLogRefs": {
133133 "description": "AT URIs of containing logs (monthly, yearly) this week belongs to",
134134 "items": {
135135 "type": "string"
136136 },
137137 "type": "array"
138138 },
139139 "week": {
140140 "description": "ISO week string in YYYY-WNN format (e.g. 2026-W06)",
141141 "type": "string"
142142 }
143143 },
144144 "required": [
145145 "week",
146146 "aggregates",
147147 "status",
148148 "signature",
149149 "createdAt"
150150 ],
151151 "type": "object"
152152 },
153153 "type": "record"
154154 },
155155 "trendData": {
156156 "description": "Week-over-week trend comparisons",
157157 "properties": {
158158 "activityChange": {
159159 "description": "Percentage change in activity compared to previous week",
160160 "type": "string"
161161 },
162162 "engagementChange": {
163163 "description": "Percentage change in engagement compared to previous week",
164164 "type": "string"
165165 },
166166 "xpChange": {
167167 "description": "Percentage change in XP compared to previous week (e.g. '+12%')",
168168 "type": "string"
169169 }
170170 },
171171 "type": "object"
172172 },
173173 "weeklyAggregates": {
174174 "description": "Rolled-up counts from daily records",
175175 "properties": {
176176 "daysActive": {
177177 "description": "Number of days with activity this week",
178178 "minimum": 0,
179179 "type": "integer"
180180 },
181181 "likesReceived": {
182182 "description": "Total likes received this week",
183183 "minimum": 0,
184184 "type": "integer"
185185 },
186186 "postsCreated": {
187187 "description": "Total posts created this week",
188188 "minimum": 0,
189189 "type": "integer"
190190 },
191191 "postsRead": {
192192 "description": "Total posts read this week",
193193 "minimum": 0,
194194 "type": "integer"
195195 },
196196 "quotesReceived": {
197197 "description": "Total quotes received this week",
198198 "minimum": 0,
199199 "type": "integer"
200200 },
201201 "repliesReceived": {
202202 "description": "Total replies received this week",
203203 "minimum": 0,
204204 "type": "integer"
205205 },
206206 "repostsReceived": {
207207 "description": "Total reposts received this week",
208208 "minimum": 0,
209209 "type": "integer"
210210 },
211211 "specimensPhotographed": {
212212 "description": "New specimens photographed this week",
213213 "minimum": 0,
214214 "type": "integer"
215215 },
216216 "totalXPGained": {
217217 "description": "Total XP gained this week",
218218 "minimum": 0,
219219 "type": "integer"
220220 }
221221 },
222222 "type": "object"
223223 },
224224 "weeklyPatterns": {
225225 "description": "Activity pattern aggregation for the week based on half-hour blocks",
226226 "properties": {
227227 "avgBlocksPerDay": {
228228 "description": "Average active blocks per day (totalActiveBlocks / daysActive, rounded)",
229229 "minimum": 0,
230230 "type": "integer"
231231 },
232232 "peakBlocks": {
233233 "description": "Highest activeBlockCount for any single day in the week",
234234 "maximum": 48,
235235 "minimum": 0,
236236 "type": "integer"
237237 },
238238 "totalActiveBlocks": {
239239 "description": "Sum of activeBlockCount across all days in the week",
240240 "minimum": 0,
241241 "type": "integer"
242242 }
243243 },
244244 "type": "object"
245245 }
246246 },
247247 "id": "net.anisota.chronicle.log.weekly",
248248 "lexicon": 1
249249}

Compare other versions