# so.sprk.story.defs

> Published by [sprk.so](https://lexicon.garden/identity/did:plc:cveom2iroj3mt747sd4qqnr2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.story.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.story.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.story.defs/examples)

## Definitions

### `so.sprk.story.defs#storyView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `media` | `union` | No |  |
| `author` | `ref` → `so.sprk.actor.defs#profileViewBasic` | Yes |  |
| `embeds` | `ref` → `so.sprk.embed.defs#views` | No |  |
| `record` | `unknown` | Yes |  |
| `indexedAt` | `string` (datetime) | Yes |  |

### `so.sprk.story.defs#interaction`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `item` | `string` (at-uri) | No |  |
| `event` | `string` | No |  |

### `so.sprk.story.defs#storiesByAuthor`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `author` | `ref` → `so.sprk.actor.defs#profileViewBasic` | Yes |  |
| `stories` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "so.sprk.story.defs",
  "defs": {
    "storyView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "author",
        "record",
        "indexedAt"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "media": {
          "refs": [
            "so.sprk.media.image#view",
            "so.sprk.media.video#view"
          ],
          "type": "union"
        },
        "author": {
          "ref": "so.sprk.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "embeds": {
          "ref": "so.sprk.embed.defs#views",
          "type": "ref"
        },
        "record": {
          "type": "unknown"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "interaction": {
      "type": "object",
      "properties": {
        "item": {
          "type": "string",
          "format": "at-uri"
        },
        "event": {
          "type": "string",
          "knownValues": [
            "so.sprk.feed.defs#clickthroughItem",
            "so.sprk.feed.defs#clickthroughAuthor",
            "so.sprk.feed.defs#clickthroughReposter",
            "so.sprk.feed.defs#clickthroughEmbed",
            "so.sprk.feed.defs#interactionSeen",
            "so.sprk.feed.defs#interactionLike",
            "so.sprk.feed.defs#interactionRepost",
            "so.sprk.feed.defs#interactionShare"
          ]
        }
      }
    },
    "storiesByAuthor": {
      "type": "object",
      "required": [
        "author",
        "stories"
      ],
      "properties": {
        "author": {
          "ref": "so.sprk.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "stories": {
          "type": "array",
          "items": {
            "ref": "#storyView",
            "type": "ref"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
