{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record containing a vit cap.",
      "key": "tid",
      "record": {
        "properties": {
          "beacon": {
            "description": "Beacon URI scoping this cap to a project.",
            "maxLength": 512,
            "type": "string"
          },
          "createdAt": {
            "description": "Client-declared timestamp when this cap was originally created.",
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "Longer description of the capability",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "embed": {
            "description": "Embedded content: images, video, external links, or record references.",
            "refs": [
              "lex:app.bsky.embed.images",
              "lex:app.bsky.embed.video",
              "lex:app.bsky.embed.external",
              "lex:app.bsky.embed.record",
              "lex:app.bsky.embed.recordWithMedia"
            ],
            "type": "union"
          },
          "facets": {
            "description": "Annotations of text (mentions, URLs, hashtags, etc).",
            "items": {
              "ref": "lex:app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          },
          "kind": {
            "description": "Category of the capability.",
            "knownValues": [
              "feat",
              "fix",
              "test",
              "docs",
              "refactor",
              "chore",
              "perf",
              "style"
            ],
            "maxGraphemes": 32,
            "maxLength": 64,
            "type": "string"
          },
          "labels": {
            "description": "Self-label values for this cap. Effectively content warnings.",
            "refs": [
              "lex:com.atproto.label.defs#selfLabels"
            ],
            "type": "union"
          },
          "langs": {
            "description": "Indicates human language of cap primary text content.",
            "items": {
              "format": "language",
              "type": "string"
            },
            "maxLength": 3,
            "type": "array"
          },
          "recap": {
            "description": "Reference to the parent cap this was derived from.",
            "ref": "lex:org.v-it.cap#recapRef",
            "type": "ref"
          },
          "ref": {
            "description": "Three lowercase words separated by dashes, e.g. fast-cache-invalidation",
            "maxGraphemes": 64,
            "maxLength": 128,
            "type": "string"
          },
          "reply": {
            "description": "Reference to the parent and root caps when this cap is a reply in a thread.",
            "ref": "lex:org.v-it.cap#replyRef",
            "type": "ref"
          },
          "tags": {
            "description": "Additional hashtags, in addition to any included in cap text and facets.",
            "items": {
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            },
            "maxLength": 8,
            "type": "array"
          },
          "text": {
            "description": "The primary cap content. May be an empty string, if there are embeds.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "title": {
            "description": "Short title for the capability",
            "maxGraphemes": 64,
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "text",
          "createdAt",
          "title",
          "description",
          "ref"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "recapRef": {
      "description": "Reference to a parent cap this was derived from.",
      "properties": {
        "ref": {
          "description": "Three lowercase words separated by dashes identifying the parent cap.",
          "maxGraphemes": 64,
          "maxLength": 128,
          "type": "string"
        },
        "uri": {
          "description": "AT URI of the parent cap record.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "ref"
      ],
      "type": "object"
    },
    "replyRef": {
      "properties": {
        "parent": {
          "description": "The direct parent cap being replied to.",
          "ref": "lex:com.atproto.repo.strongRef",
          "type": "ref"
        },
        "root": {
          "description": "The root cap of the thread.",
          "ref": "lex:com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "root",
        "parent"
      ],
      "type": "object"
    }
  },
  "id": "org.v-it.cap",
  "lexicon": 1
}
