{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A collection of flashcards and sources.",
      "key": "tid",
      "record": {
        "properties": {
          "cardRefs": {
            "description": "Ordered list of references to cards in this deck.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "Description of the deck context.",
            "maxLength": 3000,
            "type": "string"
          },
          "language": {
            "description": "Language code for the deck content (e.g., 'en', 'es', 'fr').",
            "maxLength": 20,
            "type": "string"
          },
          "license": {
            "description": "License for the deck content.",
            "maxLength": 500,
            "type": "string"
          },
          "sourceRefs": {
            "description": "References to source materials (articles, lectures) used in this deck.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "tags": {
            "items": {
              "maxLength": 100,
              "type": "string"
            },
            "maxLength": 64,
            "type": "array"
          },
          "title": {
            "description": "Title of the deck.",
            "maxLength": 300,
            "type": "string"
          },
          "updatedAt": {
            "description": "Timestamp of last update.",
            "format": "datetime",
            "type": "string"
          },
          "visibility": {
            "default": "public",
            "description": "Visibility setting for the deck.",
            "knownValues": [
              "private",
              "unlisted",
              "public"
            ],
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "title",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.stormlightlabs.malfestio.deck",
  "lexicon": 1
}
