2025-03-16 15:24:01 -07:00
|
|
|
{
|
|
|
|
|
"lexicon": 1,
|
2025-05-01 15:48:13 -07:00
|
|
|
"id": "my.spoor.log.activity",
|
2025-03-16 15:24:01 -07:00
|
|
|
"defs": {
|
|
|
|
|
"main": {
|
|
|
|
|
"type": "record",
|
2025-05-01 15:48:13 -07:00
|
|
|
"description": "A single activity (spoor) for a specific session",
|
2025-03-16 15:24:01 -07:00
|
|
|
"key": "tid",
|
|
|
|
|
"record": {
|
|
|
|
|
"type": "object",
|
2025-06-11 20:01:28 -07:00
|
|
|
"required": ["progress", "createdAt"],
|
2025-03-16 15:24:01 -07:00
|
|
|
"nullable": ["performedAt"],
|
|
|
|
|
"properties": {
|
|
|
|
|
"session": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
|
|
|
|
|
"progress": {
|
2025-05-01 15:48:13 -07:00
|
|
|
"type": "union",
|
|
|
|
|
"refs": [
|
2025-05-08 14:27:17 -07:00
|
|
|
"#progressIndex"
|
2025-05-01 15:48:13 -07:00
|
|
|
]
|
2025-03-16 15:24:01 -07:00
|
|
|
},
|
|
|
|
|
"performedAt": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "datetime",
|
2025-05-01 15:48:13 -07:00
|
|
|
"description": "User-declared timestamp for when they performed the activity. Null implies unknown time."
|
2025-03-16 15:24:01 -07:00
|
|
|
},
|
|
|
|
|
"createdAt": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "datetime",
|
|
|
|
|
"description": "Client-declared timestamp for when this activity was created"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-05-01 15:48:13 -07:00
|
|
|
},
|
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" }
|
|
|
|
|
}
|
2025-03-16 15:24:01 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|