# dev.herisson.test.torrent.listing

> Published by [herisson.dev](https://lexicon.garden/identity/did:plc:kxx74oyie4dx3apzmmd624at)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:kxx74oyie4dx3apzmmd624at/dev.herisson.test.torrent.listing)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kxx74oyie4dx3apzmmd624at/dev.herisson.test.torrent.listing/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kxx74oyie4dx3apzmmd624at/dev.herisson.test.torrent.listing/examples)

## Definitions

### `dev.herisson.test.torrent.listing`

**Type**: `record`

A BitTorrent torrent listing.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Name representing the content of the torrent. |
| `license` | `string` | No |  |
| `infoHash` | `string` | Yes | Torrent infohash |
| `createdAt` | `string` (datetime) | Yes |  |
| `magnetUri` | `string` | Yes | Magnet url to download the torrent with a BitTorrent client. |
| `sizeBytes` | `integer` | No | Size in bytes of the torrent. |
| `sourceUrl` | `string` (uri) | No |  |
| `contentType` | `string` | No |  |
| `description` | `string` | No | Longer description of the content of the torrent. |

## Raw Schema

```json
{
  "id": "dev.herisson.test.torrent.listing",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "infoHash",
          "magnetUri",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 1000,
            "description": "Name representing the content of the torrent.",
            "maxGraphemes": 160
          },
          "license": {
            "type": "string",
            "maxLength": 256
          },
          "infoHash": {
            "type": "string",
            "maxLength": 128,
            "description": "Torrent infohash"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "magnetUri": {
            "type": "string",
            "maxLength": 4096,
            "description": "Magnet url to download the torrent with a BitTorrent client."
          },
          "sizeBytes": {
            "type": "integer",
            "minimum": 0,
            "description": "Size in bytes of the torrent."
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri",
            "maxLength": 4096
          },
          "contentType": {
            "type": "string",
            "maxLength": 256,
            "knownValues": [
              "software",
              "dataset",
              "archive",
              "video",
              "audio",
              "book",
              "moovie",
              "other"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 12000,
            "description": "Longer description of the content of the torrent.",
            "maxGraphemes": 2000
          }
        }
      },
      "description": "A BitTorrent torrent listing."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
