# social.grain.story

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.story)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.story/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.story/analytics)

## Record (`social.grain.story`)

Type: record · key tid

### Properties

- `address` (ref)
  - Reference: `community.lexicon.location.address`
- `aspectRatio` (ref, required)
  - Reference: `social.grain.defs#aspectRatio`
- `createdAt` (string · datetime, required)
- `labels` (union): Self-label values for this story. Effectively content warnings.
  - One of: `com.atproto.label.defs#selfLabels`
- `location` (ref)
  - Reference: `community.lexicon.location.hthree`
- `media` (blob, required)
  - Constraints: maxSize: 5000000, accept: image/*, video/*

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "address": {
            "ref": "community.lexicon.location.address",
            "type": "ref"
          },
          "aspectRatio": {
            "ref": "social.grain.defs#aspectRatio",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "labels": {
            "description": "Self-label values for this story. Effectively content warnings.",
            "refs": [
              "com.atproto.label.defs#selfLabels"
            ],
            "type": "union"
          },
          "location": {
            "ref": "community.lexicon.location.hthree",
            "type": "ref"
          },
          "media": {
            "accept": [
              "image/*",
              "video/*"
            ],
            "maxSize": 5000000,
            "type": "blob"
          }
        },
        "required": [
          "media",
          "aspectRatio",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.grain.story",
  "lexicon": 1
}
```
