{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "properties": {
        "image": {
          "description": "The CID of the view the post names as this image.",
          "type": "cid-link"
        },
        "original": {
          "accept": [
            "image/jpeg",
            "image/png",
            "image/webp"
          ],
          "description": "The image as the member uploaded it, byte for byte.",
          "maxSize": 20000000,
          "type": "blob"
        },
        "thumb": {
          "accept": [
            "image/webp"
          ],
          "description": "A smaller WebP of the view, for feeds; absent when the view is already small.",
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "required": [
        "image"
      ],
      "type": "object"
    },
    "main": {
      "description": "The thumbnails and originals behind a post's images, kept beside the post by the member's own client: under the post's record key, in the same space and repository. The post names each image's view; an entry here names that view by CID and carries a smaller thumbnail and the file as uploaded. An entry counts only for an image of its post with that CID, and the record counts for nothing without its post (D70).",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "images": {
            "items": {
              "ref": "#entry",
              "type": "ref"
            },
            "maxLength": 10,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "images",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.off-the-clock.embed.imageSet",
  "lexicon": 1
}
