# at.archiving.session

> A document record representing an archiving session recorded as a WARC or WARCZ.

- Kind: record
- Record key: tid
- Authority: archiving.at
- Lexicon: 1
- Published by [archiving.at](https://lexicon.garden/identity/did:plc:m2txopmdhmh5xkyhvr6sqekq), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:m2txopmdhmh5xkyhvr6sqekq/at.archiving.session)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:m2txopmdhmh5xkyhvr6sqekq/at.archiving.session/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:m2txopmdhmh5xkyhvr6sqekq/at.archiving.session/analytics)

## Record (`at.archiving.session`)

Type: record · key tid

### Properties

- `additionalMetadata` (array): Place additional metadata objects dealing with the archival object here.
  - `items` (union)
    - One of: 
- `archiveDateCreatedAt` (string · datetime, required): Timestamp of the when the archive was created by accessing the original resources.
- `archiveFile` (blob, required): Blob that stores the warc or wacz archive on your PDS. Less than 50MB in size.
  - Constraints: maxSize: 52428800, accept: application/warc, application/warc+gzip, application/wacz, application/zip
- `bskyPostRef` (ref): Strong reference to a Bluesky post. Useful to keep track of comments off-platform. Optional.
  - Reference: `com.atproto.repo.strongRef`
- `coverImage` (blob): Image to used for thumbnail or cover image. Less than 1MB is size.
  - Constraints: maxSize: 1000000, accept: image/*
- `description` (string): A brief description or excerpt from the archive.
  - Constraints: maxLength: 30000, maxGraphemes: 3000
- `links` (union): Array of values describing relationships between this document and external resources
  - One of: 
- `sameAs` (array, required): 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` (string · uri)
    - Constraints: maxLength: 1280, maxGraphemes: 128
- `tags` (array): Array of strings used to tag or categorize the archive. Avoid prepending tags with hashtags.
  - `items` (string)
    - Constraints: maxLength: 1280, maxGraphemes: 128
- `title` (string, required): Title of the archive.
  - Constraints: maxLength: 5000, maxGraphemes: 500
- `uploadedAt` (string · datetime): Timestamp of the original upload

## Schema

```json
{
  "$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
}
```
