app.bsky.unspecced.get_post_thread_v2¶

class atproto_client.models.app.bsky.unspecced.get_post_thread_v2.Params¶

Bases: ParamsModelBase

Parameters model for app.bsky.unspecced.getPostThreadV2.

field above: bool | None = True¶

Whether to include parents above the anchor.

field anchor: str [Required]¶

Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

Constraints:
field below: int | None = None¶
Constraints:
  • ge = 0

  • le = 20

field branching_factor: int | None = None¶
Constraints:
  • ge = 0

  • le = 100

field sort: Literal['newest'] | Literal['oldest'] | Literal['top'] | str | None = 'oldest'¶
class atproto_client.models.app.bsky.unspecced.get_post_thread_v2.ParamsDict¶

Bases: TypedDict

above: typing_extensions.NotRequired[bool | None]¶

Whether to include parents above the anchor.

anchor: str¶

Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

below: typing_extensions.NotRequired[int | None]¶

How many levels of replies to include below the anchor.

branching_factor: typing_extensions.NotRequired[int | None]¶

later they might be paginated).

Type:

Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE

Type:

currently, during unspecced phase) all returned (NOTE

sort: typing_extensions.NotRequired[Literal['newest'] | Literal['oldest'] | Literal['top'] | str | None]¶

Sorting for the thread replies.

class atproto_client.models.app.bsky.unspecced.get_post_thread_v2.Response¶

Bases: ResponseModelBase

Output data model for app.bsky.unspecced.getPostThreadV2.

field has_other_replies: bool [Required]¶

Whether this thread has additional replies. If true, a call can be made to the getPostThreadOtherV2 endpoint to retrieve them.

field thread: List[models.AppBskyUnspeccedGetPostThreadV2.ThreadItem] [Required]¶

A flat list of thread items. The depth of each item is indicated by the depth property inside the item.

field threadgate: models.AppBskyFeedDefs.ThreadgateView | None = None¶

Threadgate.

class atproto_client.models.app.bsky.unspecced.get_post_thread_v2.ThreadItem¶

Bases: ModelBase

Definition model for app.bsky.unspecced.getPostThreadV2.

field depth: int [Required]¶

The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.

field py_type: Literal['app.bsky.unspecced.getPostThreadV2#threadItem'] = 'app.bsky.unspecced.getPostThreadV2#threadItem'¶
field uri: str [Required]¶

Uri.

Constraints:
field value: models.AppBskyUnspeccedDefs.ThreadItemPost | models.AppBskyUnspeccedDefs.ThreadItemNoUnauthenticated | models.AppBskyUnspeccedDefs.ThreadItemNotFound | models.AppBskyUnspeccedDefs.ThreadItemBlocked [Required]¶