Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lexicons fetched from c0a75d3 committed 2025-01-21T18:49:02Z #529

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lexicons/app.bsky.feed.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -108,7 +115,8 @@
"type": "union",
"refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]
}
}
},
"threadContext": { "type": "ref", "ref": "#threadContext" }
}
},
"notFoundPost": {
Expand Down
3 changes: 2 additions & 1 deletion lexicons/app.bsky.feed.getAuthorFeed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
11 changes: 11 additions & 0 deletions packages/atproto_client/models/app/bsky/feed/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`."""

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
]
]
Expand Down
Loading