app.bsky.embed.record
Record.
- class atproto_client.models.app.bsky.embed.record.Main
Bases:
ModelBaseDefinition model for
app.bsky.embed.record.- field record: models.ComAtprotoRepoStrongRef.Main [Required]
Record.
- class atproto_client.models.app.bsky.embed.record.View
Bases:
ModelBaseDefinition model for
app.bsky.embed.record.- field record: models.AppBskyEmbedRecord.ViewRecord | models.AppBskyEmbedRecord.ViewNotFound | models.AppBskyEmbedRecord.ViewBlocked | models.AppBskyEmbedRecord.ViewDetached | models.AppBskyFeedDefs.GeneratorView | models.AppBskyGraphDefs.ListView | models.AppBskyLabelerDefs.LabelerView | models.AppBskyGraphDefs.StarterPackViewBasic | DotDict [Required]
Record.
- 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>
- class atproto_client.models.app.bsky.embed.record.ViewRecord
Bases:
ModelBaseDefinition model for
app.bsky.embed.record.- field author: models.AppBskyActorDefs.ProfileViewBasic [Required]
Author.
- field cid: Cid [Required]
Cid.
- field embeds: List[models.AppBskyEmbedImages.View | models.AppBskyEmbedVideo.View | models.AppBskyEmbedGallery.View | models.AppBskyEmbedExternal.View | models.AppBskyEmbedRecord.View | models.AppBskyEmbedRecordWithMedia.View | DotDict] | None = None
Embeds.
- field indexed_at: DateTime [Required]
Indexed at.
- field labels: List[models.ComAtprotoLabelDefs.Label] | None = None
Labels.
- field uri: AtUri [Required]
Uri.
- field value: UnknownType [Required]
The record data itself.
- Constraints:
__module__ = atproto_client.models.unknown_union
__firstlineno__ = 72
__doc__ = Annotation for lexicon
unknownfields: any registered record type, elseDotDict. Record types are looked up in the runtime registry rather than in a union fixed at import time, so a record defined by a package generated from custom lexicons is decoded to its own model.__get_pydantic_core_schema__ = <bound method UnknownRecordFallback.__get_pydantic_core_schema__ of <class ‘atproto_client.models.unknown_union.UnknownRecordFallback’>>
__static_attributes__ = ()
__dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__firstlineno__’: 72, ‘__doc__’: ‘Annotation for lexicon
unknownfields: any registered record type, elseDotDict.nnRecord types are looked up in the runtime registry rather than in a union fixed at import time,nso a record defined by a package generated from custom lexicons is decoded to its own model.n’, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownRecordFallback.__get_pydantic_core_schema__ at 0x786e5ef30d60>)>, ‘__static_attributes__’: (), ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownRecordFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>}__weakref__ = <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>
- class atproto_client.models.app.bsky.embed.record.ViewNotFound
Bases:
ModelBaseDefinition model for
app.bsky.embed.record.- field not_found: bool [Required]
Not found.
- field uri: AtUri [Required]
Uri.
- class atproto_client.models.app.bsky.embed.record.ViewBlocked
Bases:
ModelBaseDefinition model for
app.bsky.embed.record.- field author: models.AppBskyFeedDefs.BlockedAuthor [Required]
Author.
- field blocked: bool [Required]
Blocked.
- field uri: AtUri [Required]
Uri.
- class atproto_client.models.app.bsky.embed.record.ViewDetached
Bases:
ModelBaseDefinition model for
app.bsky.embed.record.- field detached: bool [Required]
Detached.
- field uri: AtUri [Required]
Uri.