com.deckbelcher.deck.list

deckbelcher.com

Documentation

A Magic: The Gathering decklist.

main record

A Magic: The Gathering decklist.

Record Key tid Timestamp-based ID

Properties

cards array of ref #card Required

Array of cards in the decklist.

createdAt string datetime Required

Timestamp when the decklist was created.

format ref #format Optional

Format of the deck.

name string Required

Name of the decklist.

maxLength: 1280 bytesmaxGraphemes: 128 graphemes
updatedAt string datetime Optional

Timestamp when the decklist was last updated.

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "name",
      "cards",
      "createdAt"
    ],
    "properties": {
      "name": {
        "type": "string",
        "maxLength": 1280,
        "description": "Name of the decklist.",
        "maxGraphemes": 128
      },
      "cards": {
        "type": "array",
        "items": {
          "ref": "#card",
          "type": "ref"
        },
        "description": "Array of cards in the decklist."
      },
      "format": {
        "ref": "#format",
        "type": "ref",
        "description": "Format of the deck."
      },
      "primer": {
        "refs": [
          "com.deckbelcher.richtext#document",
          "#primerUri",
          "#primerRef"
        ],
        "type": "union",
        "description": "Deck primer with strategy, combos, and card choices."
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when the decklist was created."
      },
      "updatedAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when the decklist was last updated."
      }
    }
  },
  "description": "A Magic: The Gathering decklist."
}
card object

A card entry in a decklist.

Properties

quantity integer Required

Number of copies in the deck.

minimum: 1
section ref #section Required

Which section of the deck this card belongs to. Extensible to support format-specific sections.

tags array of string Optional

User annotations for this card in this deck (e.g., "removal", "wincon", "ramp").

maxLength: 128 items
View raw schema
{
  "type": "object",
  "required": [
    "ref",
    "quantity",
    "section"
  ],
  "properties": {
    "ref": {
      "ref": "com.deckbelcher.defs#cardRef",
      "type": "ref",
      "description": "Reference to the card (scryfall printing + oracle card)."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 640,
        "description": "A tag annotation for a card.",
        "maxGraphemes": 64
      },
      "maxLength": 128,
      "description": "User annotations for this card in this deck (e.g., \"removal\", \"wincon\", \"ramp\")."
    },
    "section": {
      "ref": "#section",
      "type": "ref",
      "description": "Which section of the deck this card belongs to. Extensible to support format-specific sections."
    },
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of copies in the deck."
    }
  },
  "description": "A card entry in a decklist."
}
format string

Game format for a deck.

ConstraintsmaxLength: 320 bytes, maxGraphemes: 32 graphemes
Known Values (other values may be valid)
standard pioneer modern legacy vintage pauper commander duel paupercommander predh oathbreaker brawl standardbrawl historic timeless alchemy gladiator premodern oldschool draft penny cube kitchentable
View raw schema
{
  "type": "string",
  "maxLength": 320,
  "description": "Game format for a deck.",
  "knownValues": [
    "standard",
    "pioneer",
    "modern",
    "legacy",
    "vintage",
    "pauper",
    "commander",
    "duel",
    "paupercommander",
    "predh",
    "oathbreaker",
    "brawl",
    "standardbrawl",
    "historic",
    "timeless",
    "alchemy",
    "gladiator",
    "premodern",
    "oldschool",
    "draft",
    "penny",
    "cube",
    "kitchentable"
  ],
  "maxGraphemes": 32
}
primerRef object

Primer in a separate ATProto record. For use with any longform writing lexicon.

Properties

View raw schema
{
  "type": "object",
  "required": [
    "ref"
  ],
  "properties": {
    "ref": {
      "ref": "com.atproto.repo.strongRef",
      "type": "ref"
    }
  },
  "description": "Primer in a separate ATProto record. For use with any longform writing lexicon."
}
primerUri object

External primer content. Typically a URL, but any valid URI scheme.

Properties

uri string Required

No description available.

maxLength: 10000 bytesmaxGraphemes: 1000 graphemes
View raw schema
{
  "type": "object",
  "required": [
    "uri"
  ],
  "properties": {
    "uri": {
      "type": "string",
      "maxLength": 10000,
      "maxGraphemes": 1000
    }
  },
  "description": "External primer content. Typically a URL, but any valid URI scheme."
}
section string

Which section of the deck this card belongs to. Extensible to support format-specific sections.

ConstraintsmaxLength: 640 bytes, maxGraphemes: 64 graphemes
Known Values (other values may be valid)
mainboard sideboard maybeboard commander
View raw schema
{
  "type": "string",
  "maxLength": 640,
  "description": "Which section of the deck this card belongs to. Extensible to support format-specific sections.",
  "knownValues": [
    "mainboard",
    "sideboard",
    "maybeboard",
    "commander"
  ],
  "maxGraphemes": 64
}

Lexicon Garden

@