# app.didpic.notification.defs

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.defs/examples)

## Definitions

### `app.didpic.notification.defs#notificationView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `post` | `ref` → `app.didpic.feed.defs#postView` | No | Hydrated post view for reasons that involve a post. |
| `count` | `integer` | Yes | Number of records collapsed into this notification. Always 1 except for likes. |
| `author` | `ref` → `app.didpic.actor.defs#profileBasic` | Yes |  |
| `isRead` | `boolean` | Yes |  |
| `reason` | `string` | Yes |  |
| `comment` | `ref` → `app.didpic.feed.defs#commentView` | No | Hydrated comment view when the subject is a comment. |
| `postUri` | `string` (at-uri) | No | Thread-root post URI for post-context reasons. Absent for follow. |
| `createdAt` | `string` (datetime) | Yes |  |
| `indexedAt` | `string` (datetime) | Yes |  |
| `recordCid` | `string` (cid) | Yes |  |
| `recordUri` | `string` (at-uri) | Yes |  |
| `subjectCid` | `string` (cid) | No |  |
| `subjectUri` | `string` (at-uri) | No | URI of the target record. Post for post-likes and top-level comments, comment for comment-likes and replies. Absent for follow. |

## Raw Schema

```json
{
  "id": "app.didpic.notification.defs",
  "defs": {
    "notificationView": {
      "type": "object",
      "required": [
        "id",
        "reason",
        "author",
        "recordUri",
        "recordCid",
        "count",
        "isRead",
        "createdAt",
        "indexedAt"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "post": {
          "ref": "app.didpic.feed.defs#postView",
          "type": "ref",
          "description": "Hydrated post view for reasons that involve a post."
        },
        "count": {
          "type": "integer",
          "minimum": 1,
          "description": "Number of records collapsed into this notification. Always 1 except for likes."
        },
        "author": {
          "ref": "app.didpic.actor.defs#profileBasic",
          "type": "ref"
        },
        "isRead": {
          "type": "boolean"
        },
        "reason": {
          "type": "string",
          "knownValues": [
            "like",
            "comment",
            "reply",
            "follow",
            "subscribed-post",
            "mention"
          ]
        },
        "comment": {
          "ref": "app.didpic.feed.defs#commentView",
          "type": "ref",
          "description": "Hydrated comment view when the subject is a comment."
        },
        "postUri": {
          "type": "string",
          "format": "at-uri",
          "description": "Thread-root post URI for post-context reasons. Absent for follow."
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime"
        },
        "recordCid": {
          "type": "string",
          "format": "cid"
        },
        "recordUri": {
          "type": "string",
          "format": "at-uri"
        },
        "subjectCid": {
          "type": "string",
          "format": "cid"
        },
        "subjectUri": {
          "type": "string",
          "format": "at-uri",
          "description": "URI of the target record. Post for post-likes and top-level comments, comment for comment-likes and replies. Absent for follow."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
