# social.coves.feed.generator

> Declares a feed generator: a service that orders posts or comments for Coves feeds

- Kind: record
- Record key: any
- Authority: feed.coves.social
- Lexicon: 1
- Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.generator)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.generator/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.generator/analytics)

## Record (`social.coves.feed.generator`)

Type: record · key any

### Properties

- `acceptsInteractions` (boolean): Whether the generator accepts interaction events through social.coves.feed.sendInteractions
- `avatar` (blob): Avatar image shown in feed pickers
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg
- `createdAt` (string · datetime, required): When the record was created
- `description` (string): What the feed shows
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `did` (string · did, required): DID of the service that serves the feed skeleton
- `displayName` (string, required): Name shown in feed pickers
  - Constraints: maxLength: 240, maxGraphemes: 24
- `kind` (string, required): Whether the generator orders posts (getFeedSkeleton) or comments (getCommentSkeleton)
  - Constraints: maxLength: 64, knownValues: posts | comments
- `scopes` (array, required): Where the feed can be used
  - Constraints: minLength: 1
  - `items` (ref)
    - Reference: `social.coves.feed.defs#scope`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Declares a feed generator: a service that orders posts or comments for Coves feeds",
      "key": "any",
      "record": {
        "properties": {
          "acceptsInteractions": {
            "description": "Whether the generator accepts interaction events through social.coves.feed.sendInteractions",
            "type": "boolean"
          },
          "avatar": {
            "accept": [
              "image/png",
              "image/jpeg"
            ],
            "description": "Avatar image shown in feed pickers",
            "maxSize": 1000000,
            "type": "blob"
          },
          "createdAt": {
            "description": "When the record was created",
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "What the feed shows",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "did": {
            "description": "DID of the service that serves the feed skeleton",
            "format": "did",
            "type": "string"
          },
          "displayName": {
            "description": "Name shown in feed pickers",
            "maxGraphemes": 24,
            "maxLength": 240,
            "type": "string"
          },
          "kind": {
            "description": "Whether the generator orders posts (getFeedSkeleton) or comments (getCommentSkeleton)",
            "knownValues": [
              "posts",
              "comments"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "scopes": {
            "description": "Where the feed can be used",
            "items": {
              "ref": "social.coves.feed.defs#scope",
              "type": "ref"
            },
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "did",
          "displayName",
          "kind",
          "scopes",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.coves.feed.generator",
  "lexicon": 1
}
```
