From 26f8b34251eea1698f66af354743aa176367be1b Mon Sep 17 00:00:00 2001 From: Julia Lange Date: Sun, 16 Mar 2025 16:42:53 -0700 Subject: [PATCH] me.woach.{feed,content}, 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. --- lexicons/me/woach/content/media.json | 13 ++++++++++ lexicons/me/woach/feed/session.json | 37 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 lexicons/me/woach/content/media.json create mode 100644 lexicons/me/woach/feed/session.json diff --git a/lexicons/me/woach/content/media.json b/lexicons/me/woach/content/media.json new file mode 100644 index 0000000..4a82ed0 --- /dev/null +++ b/lexicons/me/woach/content/media.json @@ -0,0 +1,13 @@ +{ + "lexicon": 1, + "id": "me.woach.content.media", + "defs": { + "anilist": { + "type": "object", + "required": ["id"], + "properties": { + "id": { "type": "integer" } + } + } + } +} diff --git a/lexicons/me/woach/feed/session.json b/lexicons/me/woach/feed/session.json new file mode 100644 index 0000000..1a50c15 --- /dev/null +++ b/lexicons/me/woach/feed/session.json @@ -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" + } + } + } + } + } +}