{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "location": {
      "properties": {
        "lat": {
          "maxLength": 32,
          "type": "string"
        },
        "lon": {
          "maxLength": 32,
          "type": "string"
        },
        "placeName": {
          "maxLength": 256,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "authorizationLevel": {
            "description": "POC supports public only",
            "enum": [
              "public"
            ],
            "type": "string"
          },
          "capturedAt": {
            "description": "Self-asserted capture time",
            "format": "datetime",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 2048,
            "type": "string"
          },
          "fileHash": {
            "description": "SHA-256 hex digest of the distributed file",
            "maxLength": 64,
            "type": "string"
          },
          "fileSize": {
            "minimum": 1,
            "type": "integer"
          },
          "gpgKeyFingerprint": {
            "maxLength": 64,
            "type": "string"
          },
          "gpgSignature": {
            "description": "ASCII-armored detached GPG signature of the canonical manifest",
            "maxLength": 8192,
            "type": "string"
          },
          "location": {
            "ref": "#location",
            "type": "ref"
          },
          "magnet": {
            "description": "magnet:?xt=urn:btih:<infohash>",
            "maxLength": 2048,
            "type": "string"
          },
          "mimeType": {
            "maxLength": 128,
            "type": "string"
          },
          "supersedes": {
            "description": "AT URI of the record this one replaces",
            "maxLength": 512,
            "type": "string"
          },
          "title": {
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "fileHash",
          "fileSize",
          "mimeType",
          "magnet",
          "title",
          "authorizationLevel",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A verifiable media record: signed provenance metadata plus BitTorrent distribution pointers.",
  "id": "org.realarchive.record",
  "lexicon": 1
}
