lexicons/my/spoor/log/activity.json

44 lines
1.2 KiB
JSON
Raw Permalink Normal View History

{
"lexicon": 1,
"id": "my.spoor.log.activity",
"defs": {
"main": {
"type": "record",
"description": "A single activity (spoor) for a specific session",
"key": "tid",
"record": {
"type": "object",
2025-06-11 20:01:28 -07:00
"required": ["progress", "createdAt"],
"nullable": ["performedAt"],
"properties": {
"session": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
"progress": {
"type": "union",
"refs": [
2025-05-08 14:27:17 -07:00
"#progressIndex"
]
},
"performedAt": {
"type": "string",
"format": "datetime",
"description": "User-declared timestamp for when they performed the activity. Null implies unknown time."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp for when this activity was created"
}
}
}
},
2025-05-08 14:27:17 -07:00
"progressIndex": {
"type": "object",
"description": "The index of the content consumed. Content must be indexable",
"required": [ "index" ],
"properties": {
"index": { "type": "integer" }
}
}
}
}