Lexicons, woach to spoor, anilist to external
THESE LEXICONS ARE NOT FINAL, she screamed into the wind. converts all references to woach.me to spoor.my to reflect the official domain name. Rename "feed" 3ld to "log" since the content here is separate from what an activity feed would look like. Log has more in common with records. I maintained the name activity over "spoor" here, because I want the items to be easily digested by other services. I think "spoor" is actually a more apt term than "activity" since "activity" is more generic, than the specific mediaspoor it is, but it will do. Changes the "anilist" entry to a more generic "external" entry, which will be able to handle tvdb, or similar.
This commit is contained in:
parent
db33099405
commit
8363125108
6 changed files with 53 additions and 30 deletions
39
lexicons/my/spoor/log/activity.json
Normal file
39
lexicons/my/spoor/log/activity.json
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"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",
|
||||
"required": ["session", "progress", "createdAt"],
|
||||
"nullable": ["performedAt"],
|
||||
"properties": {
|
||||
"session": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
|
||||
"progress": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"my.spoor.log.activity#indexProgress"
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"indexProgress": {
|
||||
"type": "integer",
|
||||
"description": "The index of the content consumed. Content must be indexable"
|
||||
}
|
||||
}
|
||||
}
|
||||
32
lexicons/my/spoor/log/session.json
Normal file
32
lexicons/my/spoor/log/session.json
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"lexicon": 1,
|
||||
"id": "my.spoor.log.session",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"description": "A session of consuming some content",
|
||||
"key": "tid",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["content", "createdAt"],
|
||||
"properties": {
|
||||
"content": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
|
||||
"label": {
|
||||
"type": "string",
|
||||
"maxGraphemes": 64,
|
||||
"maxLength": 640
|
||||
},
|
||||
"otherParticipants": {
|
||||
"type": "array",
|
||||
"items": { "type": "string", "format": "did" }
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime",
|
||||
"description": "Client-declared timestamp for when this activity was created"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue