# org.consentvid.video

> Published by [ekazakos.bsky.social](https://lexicon.garden/identity/did:plc:u73ld57pmwsta45y45uitdfi)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:u73ld57pmwsta45y45uitdfi/org.consentvid.video)
- [Documentation](https://lexicon.garden/lexicon/did:plc:u73ld57pmwsta45y45uitdfi/org.consentvid.video/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:u73ld57pmwsta45y45uitdfi/org.consentvid.video/examples)

## Definitions

### `org.consentvid.video`

**Type**: `record`

A video registered for inclusion in a consent-first dataset. Storage of the bytes is decoupled: this record only commits to a content hash and a pointer.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tags` | `array` | No |  |
| `title` | `string` | Yes |  |
| `width` | `integer` | No |  |
| `height` | `integer` | No |  |
| `language` | `string` | No | BCP-47 language tag for primary audio if any. |
| `createdAt` | `string` (datetime) | Yes |  |
| `durationMs` | `integer` | No | Duration in milliseconds. ATproto records have no float type. |
| `storageRef` | `ref` → `#storageRef` | Yes |  |
| `contentHash` | `string` | Yes | SHA-256 of the video bytes, hex-encoded with 'sha256-' prefix. |
| `description` | `string` | No |  |

### `org.consentvid.video#storageRef`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kind` | `string` | Yes |  |
| `value` | `string` | Yes |  |

## Raw Schema

```json
{
  "id": "org.consentvid.video",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "contentHash",
          "storageRef",
          "createdAt"
        ],
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            },
            "maxLength": 32
          },
          "title": {
            "type": "string",
            "maxLength": 300
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "language": {
            "type": "string",
            "description": "BCP-47 language tag for primary audio if any."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "durationMs": {
            "type": "integer",
            "description": "Duration in milliseconds. ATproto records have no float type."
          },
          "storageRef": {
            "ref": "#storageRef",
            "type": "ref"
          },
          "contentHash": {
            "type": "string",
            "maxLength": 80,
            "description": "SHA-256 of the video bytes, hex-encoded with 'sha256-' prefix."
          },
          "description": {
            "type": "string",
            "maxLength": 3000
          }
        }
      },
      "description": "A video registered for inclusion in a consent-first dataset. Storage of the bytes is decoupled: this record only commits to a content hash and a pointer."
    },
    "storageRef": {
      "type": "object",
      "required": [
        "kind",
        "value"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "knownValues": [
            "url",
            "local",
            "ipfs",
            "r2",
            "peertube"
          ]
        },
        "value": {
          "type": "string"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
