app.bsky.bookmark.defs

Shared type definitions.

class atproto_client.models.app.bsky.bookmark.defs.Bookmark

Bases: ModelBase

Definition 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: ModelBase

Definition model for app.bsky.bookmark.defs.

field created_at: DateTime | None = None

Created at.

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 $type falls back to DotDict. Applied to t.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated by py_type as usual, so a known type that fails validation still raises. Only a $type that matches no member, or a missing one, degrades to a DotDict.

  • __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 $type falls back to DotDict.nnApplied to t.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 $type thatnmatches no member, or a missing one, degrades to a DotDict.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.