{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A document record representing an archiving session recorded as a WARC or WARCZ.",
      "key": "tid",
      "record": {
        "properties": {
          "additionalMetadata": {
            "description": "Place additional metadata objects dealing with the archival object here.",
            "items": {
              "closed": false,
              "refs": [],
              "type": "union"
            },
            "type": "array"
          },
          "archiveDateCreatedAt": {
            "description": "Timestamp of the when the archive was created by accessing the original resources.",
            "format": "datetime",
            "type": "string"
          },
          "archiveFile": {
            "accept": [
              "application/warc",
              "application/warc+gzip",
              "application/wacz",
              "application/zip"
            ],
            "description": "Blob that stores the warc or wacz archive on your PDS. Less than 50MB in size.",
            "maxSize": 52428800,
            "type": "blob"
          },
          "bskyPostRef": {
            "description": "Strong reference to a Bluesky post. Useful to keep track of comments off-platform. Optional.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "coverImage": {
            "accept": [
              "image/*"
            ],
            "description": "Image to used for thumbnail or cover image. Less than 1MB is size.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "description": {
            "description": "A brief description or excerpt from the archive.",
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "links": {
            "description": "Array of values describing relationships between this document and external resources",
            "refs": [],
            "type": "union"
          },
          "sameAs": {
            "description": "Points to the records (at://) or published web page urls (https://) that represent the original documents that this archive covers. Avoid trailing slashes. An archive may be multiple files or just one.",
            "items": {
              "format": "uri",
              "maxGraphemes": 128,
              "maxLength": 1280,
              "type": "string"
            },
            "type": "array"
          },
          "tags": {
            "description": "Array of strings used to tag or categorize the archive. Avoid prepending tags with hashtags.",
            "items": {
              "maxGraphemes": 128,
              "maxLength": 1280,
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "description": "Title of the archive.",
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "uploadedAt": {
            "description": "Timestamp of the original upload",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "archiveDateCreatedAt",
          "title",
          "sameAs",
          "archiveFile"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "at.archiving.session",
  "lexicon": 1
}
