lexicon, add session and anilist media

I have a local stash with an alternative media method, but for the MVP
we'll just implement anilist. In order to use anilist we need to contact
them to make sure we don't break rule 5 of their Terms of Service.
This commit is contained in:
Julia Lange 2025-03-16 16:42:53 -07:00
parent 6bd626888b
commit 5cd14bec0e
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{
"lexicon": 1,
"id": "me.woach.content.media",
"defs": {
"anilist": {
"type": "object",
"required": ["id"],
"properties": {
"id": { "type": "integer" }
}
}
}
}

View file

@ -0,0 +1,37 @@
{
"lexicon": 1,
"id": "me.woach.feed.session",
"defs": {
"main": {
"type": "record",
"description": "A session of consuming some content",
"key": "tid",
"record": {
"type": "object",
"required": ["content", "createdAt"],
"properties": {
"content": {
"type": "union",
"refs": [
"me.woach.content.media#anilist"
]
},
"title": {
"type": "string",
"maxGraphemes": 64,
"maxLength": 640
},
"participants": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp for when this activity was created"
}
}
}
}
}
}