app.bsky.embed.gallery

class atproto_client.models.app.bsky.embed.gallery.Image

Bases: ModelBase

Definition model for app.bsky.embed.gallery.

field alt: str [Required]

Alt text description of the image, for accessibility.

field aspect_ratio: models.AppBskyEmbedDefs.AspectRatio [Required]

Aspect ratio.

field image: BlobRef [Required]

Image.

field py_type: Literal['app.bsky.embed.gallery#image'] = 'app.bsky.embed.gallery#image'
class atproto_client.models.app.bsky.embed.gallery.Main

Bases: ModelBase

Definition model for app.bsky.embed.gallery.

field items: List[models.AppBskyEmbedGallery.Image] [Required]

The schema-level maxLength of 20 is a future-proof ceiling. Clients should currently enforce a soft limit of 10 items in authoring UIs. The media items in the gallery. Each item may be of a different type, but all types must be supported by the client.

Constraints:
  • max_length = 20

field py_type: Literal['app.bsky.embed.gallery'] = 'app.bsky.embed.gallery'
class atproto_client.models.app.bsky.embed.gallery.View

Bases: ModelBase

Definition model for app.bsky.embed.gallery.

field items: List[models.AppBskyEmbedGallery.ViewImage] [Required]
field py_type: Literal['app.bsky.embed.gallery#view'] = 'app.bsky.embed.gallery#view'
class atproto_client.models.app.bsky.embed.gallery.ViewImage

Bases: ModelBase

Definition model for app.bsky.embed.gallery.

field alt: str [Required]

Alt text description of the image, for accessibility.

field aspect_ratio: models.AppBskyEmbedDefs.AspectRatio [Required]

Aspect ratio.

field fullsize: str [Required]

Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.

Constraints:
field py_type: Literal['app.bsky.embed.gallery#viewImage'] = 'app.bsky.embed.gallery#viewImage'
field thumbnail: str [Required]

Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.

Constraints: