app.bsky.embed.record_with_media

class atproto_client.models.app.bsky.embed.record_with_media.Main

Bases: ModelBase

Definition model for app.bsky.embed.recordWithMedia.

field media: models.AppBskyEmbedImages.Main | models.AppBskyEmbedVideo.Main | models.AppBskyEmbedGallery.Main | models.AppBskyEmbedExternal.Main | DotDict [Required]

Media.

Constraints:
  • __module__ = atproto_client.models.unknown_union

  • __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’>>

  • __dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__doc__’: “Annotation for open ref unions: an unrecognized $type falls back to DotDict.nn Applied 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 thatn matches no member, or a missing one, degrades to a DotDict.n “, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownUnionFallback.__get_pydantic_core_schema__ at 0x79725dafee60>)>, ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownUnionFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>}

  • __weakref__ = <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>

field py_type: Literal['app.bsky.embed.recordWithMedia'] = 'app.bsky.embed.recordWithMedia'
field record: models.AppBskyEmbedRecord.Main [Required]

Record.

class atproto_client.models.app.bsky.embed.record_with_media.View

Bases: ModelBase

Definition model for app.bsky.embed.recordWithMedia.

field media: models.AppBskyEmbedImages.View | models.AppBskyEmbedVideo.View | models.AppBskyEmbedGallery.View | models.AppBskyEmbedExternal.View | DotDict [Required]

Media.

Constraints:
  • __module__ = atproto_client.models.unknown_union

  • __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’>>

  • __dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__doc__’: “Annotation for open ref unions: an unrecognized $type falls back to DotDict.nn Applied 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 thatn matches no member, or a missing one, degrades to a DotDict.n “, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownUnionFallback.__get_pydantic_core_schema__ at 0x79725dafee60>)>, ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownUnionFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>}

  • __weakref__ = <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>

field py_type: Literal['app.bsky.embed.recordWithMedia#view'] = 'app.bsky.embed.recordWithMedia#view'
field record: models.AppBskyEmbedRecord.View [Required]

Record.