{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A photo, written by its photographer into each circle space it is shared with. Base and manifest are sealed under subkeys of the photo key (docs/format.md, the Spaces photo form).",
      "key": "tid",
      "record": {
        "properties": {
          "base": {
            "accept": [
              "application/octet-stream"
            ],
            "description": "The sealed base image.",
            "maxSize": 20971520,
            "type": "blob"
          },
          "caption": {
            "description": "The caption, sealed under a subkey of the photo key.",
            "maxLength": 8192,
            "type": "bytes"
          },
          "circleGeneration": {
            "description": "The circle epoch generation the photo key is wrapped to.",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "manifest": {
            "description": "The sealed manifest.",
            "maxLength": 524352,
            "minLength": 1,
            "type": "bytes"
          },
          "photoKeyWrap": {
            "description": "The photo key, wrapped to this circle's epoch key.",
            "maxLength": 1280,
            "minLength": 1,
            "type": "bytes"
          }
        },
        "required": [
          "base",
          "manifest",
          "photoKeyWrap",
          "circleGeneration",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.brightblur.photo.post",
  "lexicon": 1
}
