app.bsky.embed.gallery

bsky-lexicons.bsky.social

Documentation

main object

No description available.

Properties

items array of union 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.

maxLength: 20 items
Known types:
View raw schema
{
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "refs": [
          "#image"
        ],
        "type": "union",
        "description": "The media items in the gallery. Each item may be of a different type, but all types must be supported by the client."
      },
      "maxLength": 20,
      "description": "The schema-level maxLength of 20 is a future-proof ceiling. Clients should currently enforce a soft limit of 10 items in authoring UIs."
    }
  }
}
image object

No description available.

Properties

alt string Required

Alt text description of the image, for accessibility.

image blob Required

No description available.

maxSize: 2.0 MB
View raw schema
{
  "type": "object",
  "required": [
    "image",
    "alt",
    "aspectRatio"
  ],
  "properties": {
    "alt": {
      "type": "string",
      "description": "Alt text description of the image, for accessibility."
    },
    "image": {
      "type": "blob",
      "accept": [
        "image/*"
      ],
      "maxSize": 2000000
    },
    "aspectRatio": {
      "ref": "app.bsky.embed.defs#aspectRatio",
      "type": "ref"
    }
  }
}
view object

No description available.

Properties

items array of union Required

No description available.

Known types:
View raw schema
{
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "refs": [
          "#viewImage"
        ],
        "type": "union"
      }
    }
  }
}
viewImage object

No description available.

Properties

alt string Required

Alt text description of the image, for accessibility.

fullsize string uri 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.

thumbnail string uri Required

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

View raw schema
{
  "type": "object",
  "required": [
    "thumbnail",
    "fullsize",
    "alt",
    "aspectRatio"
  ],
  "properties": {
    "alt": {
      "type": "string",
      "description": "Alt text description of the image, for accessibility."
    },
    "fullsize": {
      "type": "string",
      "format": "uri",
      "description": "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."
    },
    "thumbnail": {
      "type": "string",
      "format": "uri",
      "description": "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View."
    },
    "aspectRatio": {
      "ref": "app.bsky.embed.defs#aspectRatio",
      "type": "ref"
    }
  }
}

Lexicon Garden

@