{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Create a photo record after blob upload. Writes to public repo or permissioned space per visibility.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "albumUris": {
              "items": {
                "format": "at-uri",
                "type": "string"
              },
              "maxLength": 100,
              "type": "array"
            },
            "caption": {
              "maxLength": 2000,
              "type": "string"
            },
            "contributor": {
              "format": "did",
              "type": "string"
            },
            "copyrightHolder": {
              "format": "did",
              "type": "string"
            },
            "description": {
              "maxLength": 5000,
              "type": "string"
            },
            "height": {
              "minimum": 1,
              "type": "integer"
            },
            "image": {
              "accept": [
                "image/*"
              ],
              "type": "blob"
            },
            "inLanguage": {
              "maxLength": 35,
              "type": "string"
            },
            "keywords": {
              "items": {
                "maxLength": 64,
                "type": "string"
              },
              "maxLength": 50,
              "type": "array"
            },
            "license": {
              "format": "uri",
              "type": "string"
            },
            "locationCreated": {
              "ref": "net.atpix.gallery.defs#geoPlace",
              "type": "ref"
            },
            "source": {
              "format": "at-uri",
              "type": "string"
            },
            "spaceUri": {
              "maxLength": 512,
              "type": "string"
            },
            "thumbnail": {
              "accept": [
                "image/*"
              ],
              "type": "blob"
            },
            "title": {
              "maxLength": 500,
              "type": "string"
            },
            "visibility": {
              "ref": "net.atpix.gallery.defs#visibility",
              "type": "ref"
            },
            "width": {
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "image",
            "visibility"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "net.atpix.gallery.createPhoto",
  "lexicon": 1
}
