{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "blobRef": {
      "properties": {
        "cid": {
          "maxLength": 73,
          "minLength": 73,
          "type": "string"
        },
        "mimeType": {
          "maxLength": 255,
          "minLength": 3,
          "type": "string"
        },
        "size": {
          "maximum": 36700160,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "cid",
        "mimeType",
        "size"
      ],
      "type": "object"
    },
    "main": {
      "description": "Immutable metadata for one actor-private file revision.",
      "key": "any",
      "record": {
        "properties": {
          "blob": {
            "ref": "#blobRef",
            "type": "ref"
          },
          "fileId": {
            "maxLength": 69,
            "minLength": 69,
            "type": "string"
          },
          "mimeType": {
            "maxLength": 255,
            "minLength": 3,
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "operationId": {
            "maxLength": 67,
            "minLength": 67,
            "type": "string"
          },
          "parentId": {
            "maxLength": 69,
            "minLength": 69,
            "type": "string"
          },
          "parents": {
            "items": {
              "maxLength": 73,
              "minLength": 73,
              "type": "string"
            },
            "maxLength": 10000,
            "type": "array"
          },
          "revisionId": {
            "maxLength": 73,
            "minLength": 73,
            "type": "string"
          },
          "sha256": {
            "maxLength": 64,
            "minLength": 64,
            "type": "string"
          },
          "size": {
            "maximum": 36700160,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "fileId",
          "revisionId",
          "operationId",
          "name",
          "mimeType",
          "blob",
          "sha256",
          "size",
          "parents"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "email.atmos.filePersonal.file",
  "lexicon": 1
}
