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:
parent
6bd626888b
commit
5cd14bec0e
2 changed files with 50 additions and 0 deletions
13
lexicons/me/woach/content/media.json
Normal file
13
lexicons/me/woach/content/media.json
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"lexicon": 1,
|
||||||
|
"id": "me.woach.content.media",
|
||||||
|
"defs": {
|
||||||
|
"anilist": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["id"],
|
||||||
|
"properties": {
|
||||||
|
"id": { "type": "integer" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
37
lexicons/me/woach/feed/session.json
Normal file
37
lexicons/me/woach/feed/session.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue