app.bsky.bookmark.defs
Shared type definitions.
- class atproto_client.models.app.bsky.bookmark.defs.Bookmark
Bases:
ModelBaseDefinition model for
app.bsky.bookmark.defs. Object used to store bookmark data in stash.- field subject: models.ComAtprotoRepoStrongRef.Main [Required]
A strong ref to the record to be bookmarked. Currently, only app.bsky.feed.post records are supported.
- class atproto_client.models.app.bsky.bookmark.defs.BookmarkView
Bases:
ModelBaseDefinition model for
app.bsky.bookmark.defs.- field item: models.AppBskyFeedDefs.BlockedPost | models.AppBskyFeedDefs.NotFoundPost | models.AppBskyFeedDefs.PostView | DotDict [Required]
Item.
- Constraints:
__module__ = atproto_client.models.unknown_union
__firstlineno__ = 17
__doc__ = Annotation for open ref unions: an unrecognized
$typefalls back toDotDict. Applied tot.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated bypy_typeas usual, so a known type that fails validation still raises. Only a$typethat matches no member, or a missing one, degrades to aDotDict.__get_pydantic_core_schema__ = <bound method UnknownUnionFallback.__get_pydantic_core_schema__ of <class ‘atproto_client.models.unknown_union.UnknownUnionFallback’>>
__static_attributes__ = ()
__dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__firstlineno__’: 17, ‘__doc__’: “Annotation for open ref unions: an unrecognized
$typefalls back toDotDict.nnApplied tot.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated byn``py_type`` as usual, so a known type that fails validation still raises. Only a$typethatnmatches no member, or a missing one, degrades to aDotDict.n”, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownUnionFallback.__get_pydantic_core_schema__ at 0x786e5ef30c20>)>, ‘__static_attributes__’: (), ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownUnionFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>}__weakref__ = <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>
- field subject: models.ComAtprotoRepoStrongRef.Main [Required]
A strong ref to the bookmarked record.