{
  "$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
}
