app.bsky.feed.post¶
- class atproto_client.models.app.bsky.feed.post.CreateRecordResponse¶
Bases:
SugarResponseModelBase
Create record response for
models.AppBskyFeedPost.Record
.- field cid: str [Required]¶
The CID of the record.
- field uri: str [Required]¶
The URI of the record.
- class atproto_client.models.app.bsky.feed.post.Entity¶
Bases:
ModelBase
Definition model for
app.bsky.feed.post
. Deprecated: use facets instead.- field index: models.AppBskyFeedPost.TextSlice [Required]¶
Index.
- field py_type: Literal['app.bsky.feed.post#entity'] = 'app.bsky.feed.post#entity'¶
- field type: str [Required]¶
Expected values are ‘mention’ and ‘link’.
- field value: str [Required]¶
Value.
- class atproto_client.models.app.bsky.feed.post.GetRecordResponse¶
Bases:
SugarResponseModelBase
Get record response for
models.AppBskyFeedPost.Record
.- field cid: str | None = None¶
The CID of the record.
- field uri: str [Required]¶
The URI of the record.
- field value: models.AppBskyFeedPost.Record [Required]¶
The record.
- class atproto_client.models.app.bsky.feed.post.ListRecordsResponse¶
Bases:
SugarResponseModelBase
List records response for
models.AppBskyFeedPost.Record
.- field cursor: str | None = None¶
Next page cursor.
- field records: Dict[str, models.AppBskyFeedPost.Record] [Required]¶
Map of URIs to records.
- class atproto_client.models.app.bsky.feed.post.Record¶
Bases:
RecordModelBase
Record model for
app.bsky.feed.post
.- field created_at: str [Required]¶
Client-declared timestamp when this post was originally created.
- field embed: Main | models.AppBskyEmbedVideo.Main | models.AppBskyEmbedExternal.Main | models.AppBskyEmbedRecord.Main | models.AppBskyEmbedRecordWithMedia.Main[models.AppBskyEmbedImages.Main | models.AppBskyEmbedVideo.Main | models.AppBskyEmbedExternal.Main | models.AppBskyEmbedRecord.Main | models.AppBskyEmbedRecordWithMedia.Main] | None = None¶
- field entities: List[models.AppBskyFeedPost.Entity] | None = None¶
DEPRECATED: replaced by app.bsky.richtext.facet.
- field facets: List[models.AppBskyRichtextFacet.Main] | None = None¶
Annotations of text (mentions, URLs, hashtags, etc).
- field labels: SelfLabels[models.ComAtprotoLabelDefs.SelfLabels] | None = None¶
- field langs: List[str] | None = None¶
Indicates human language of post primary text content.
- Constraints:
max_length = 3
- field py_type: Literal['app.bsky.feed.post'] = 'app.bsky.feed.post'¶
- field reply: models.AppBskyFeedPost.ReplyRef | None = None¶
Reply.
- field tags: List[str] | None = None¶
Additional hashtags, in addition to any included in post text and facets.
- Constraints:
max_length = 8
- field text: str [Required]¶
The primary post content. May be an empty string, if there are embeds.
- Constraints:
max_length = 3000
- class atproto_client.models.app.bsky.feed.post.ReplyRef¶
Bases:
ModelBase
Definition model for
app.bsky.feed.post
.- field parent: models.ComAtprotoRepoStrongRef.Main [Required]¶
Parent.
- field py_type: Literal['app.bsky.feed.post#replyRef'] = 'app.bsky.feed.post#replyRef'¶
- field root: models.ComAtprotoRepoStrongRef.Main [Required]¶
Root.
- class atproto_client.models.app.bsky.feed.post.TextSlice¶
Bases:
ModelBase
Definition model for
app.bsky.feed.post
. Deprecated. Use app.bsky.richtext instead – A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.- field end: int [Required]¶
End.
- Constraints:
ge = 0
- field py_type: Literal['app.bsky.feed.post#textSlice'] = 'app.bsky.feed.post#textSlice'¶
- field start: int [Required]¶
Start.
- Constraints:
ge = 0