From e1fd16322baeafe79fcc369aeabf49e9316c054d Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Thu, 23 Jan 2025 10:17:00 +0000 Subject: [PATCH] Update lexicons fetched from c0a75d3 committed 2025-01-21T18:49:02Z --- lexicons/app.bsky.feed.defs.json | 10 +++++++++- lexicons/app.bsky.feed.getAuthorFeed.json | 3 ++- packages/atproto_client/models/app/bsky/feed/defs.py | 11 +++++++++++ .../models/app/bsky/feed/get_author_feed.py | 2 ++ 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/lexicons/app.bsky.feed.defs.json b/lexicons/app.bsky.feed.defs.json index 8aca402f..4f92c401 100644 --- a/lexicons/app.bsky.feed.defs.json +++ b/lexicons/app.bsky.feed.defs.json @@ -48,6 +48,13 @@ "pinned": { "type": "boolean" } } }, + "threadContext": { + "type": "object", + "description": "Metadata about this post within the context of the thread it is in.", + "properties": { + "rootAuthorLike": { "type": "string", "format": "at-uri" } + } + }, "feedViewPost": { "type": "object", "required": ["post"], @@ -108,7 +115,8 @@ "type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"] } - } + }, + "threadContext": { "type": "ref", "ref": "#threadContext" } } }, "notFoundPost": { diff --git a/lexicons/app.bsky.feed.getAuthorFeed.json b/lexicons/app.bsky.feed.getAuthorFeed.json index 19e99b17..c9ef8c50 100644 --- a/lexicons/app.bsky.feed.getAuthorFeed.json +++ b/lexicons/app.bsky.feed.getAuthorFeed.json @@ -24,7 +24,8 @@ "posts_with_replies", "posts_no_replies", "posts_with_media", - "posts_and_author_threads" + "posts_and_author_threads", + "posts_with_video" ], "default": "posts_with_replies" }, diff --git a/packages/atproto_client/models/app/bsky/feed/defs.py b/packages/atproto_client/models/app/bsky/feed/defs.py index a02cec2c..324ec70d 100644 --- a/packages/atproto_client/models/app/bsky/feed/defs.py +++ b/packages/atproto_client/models/app/bsky/feed/defs.py @@ -66,6 +66,16 @@ class ViewerState(base.ModelBase): ) +class ThreadContext(base.ModelBase): + """Definition model for :obj:`app.bsky.feed.defs`. Metadata about this post within the context of the thread it is in.""" + + root_author_like: t.Optional[string_formats.AtUri] = None #: Root author like. + + py_type: t.Literal['app.bsky.feed.defs#threadContext'] = Field( + default='app.bsky.feed.defs#threadContext', alias='$type', frozen=True + ) + + class FeedViewPost(base.ModelBase): """Definition model for :obj:`app.bsky.feed.defs`.""" @@ -159,6 +169,7 @@ class ThreadViewPost(base.ModelBase): ] ] ] = None #: Replies. + thread_context: t.Optional['models.AppBskyFeedDefs.ThreadContext'] = None #: Thread context. py_type: t.Literal['app.bsky.feed.defs#threadViewPost'] = Field( default='app.bsky.feed.defs#threadViewPost', alias='$type', frozen=True diff --git a/packages/atproto_client/models/app/bsky/feed/get_author_feed.py b/packages/atproto_client/models/app/bsky/feed/get_author_feed.py index 5c65c07b..1391b8d7 100644 --- a/packages/atproto_client/models/app/bsky/feed/get_author_feed.py +++ b/packages/atproto_client/models/app/bsky/feed/get_author_feed.py @@ -28,6 +28,7 @@ class Params(base.ParamsModelBase): t.Literal['posts_no_replies'], t.Literal['posts_with_media'], t.Literal['posts_and_author_threads'], + t.Literal['posts_with_video'], str, ] ] = 'posts_with_replies' #: Combinations of post/repost types to include in response. @@ -45,6 +46,7 @@ class ParamsDict(t.TypedDict): t.Literal['posts_no_replies'], t.Literal['posts_with_media'], t.Literal['posts_and_author_threads'], + t.Literal['posts_with_video'], str, ] ]