{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "author": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "relationship": {
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "derivatives": {
      "properties": {
        "display": {
          "type": "boolean"
        },
        "poster": {
          "type": "boolean"
        },
        "thumb": {
          "type": "boolean"
        }
      },
      "required": [
        "thumb",
        "display",
        "poster"
      ],
      "type": "object"
    },
    "itemView": {
      "properties": {
        "author": {
          "ref": "#author",
          "type": "ref"
        },
        "caption": {
          "type": "string"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "derivatives": {
          "ref": "#derivatives",
          "type": "ref"
        },
        "displayUrl": {
          "type": "string"
        },
        "durationMs": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "hidden": {
          "type": "boolean"
        },
        "hiddenBy": {
          "format": "did",
          "type": "string"
        },
        "kind": {
          "knownValues": [
            "photo",
            "video"
          ],
          "type": "string"
        },
        "mediaUrl": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "posterUrl": {
          "type": "string"
        },
        "removalUri": {
          "format": "at-uri",
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "takenAt": {
          "format": "datetime",
          "type": "string"
        },
        "takenAtSource": {
          "knownValues": [
            "exif",
            "upload",
            "manual"
          ],
          "type": "string"
        },
        "thumbUrl": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "viewUrl": {
          "description": "displayUrl when a display rendition exists, else mediaUrl (photos); posterUrl or mediaUrl (videos).",
          "type": "string"
        },
        "width": {
          "type": "integer"
        }
      },
      "required": [
        "uri",
        "cid",
        "kind",
        "author",
        "derivatives",
        "hidden"
      ],
      "type": "object"
    }
  },
  "id": "ai.newnal.illi.media.defs",
  "lexicon": 1
}
