Skip to content

Tarot

Import

import {
ARKANNUS,
majorArcana,
shuffleTarotDeck,
getTarotCardProfile,
getTarotCardByNumber,
getTarotCardNumber,
getTarotArchetype,
getTarotCorrespondenceProfile,
getTarotRepresentations,
getTarotRepresentation,
resolveTarotImageUrl,
listTarotDecks,
listTarotTrees,
listTarotSpreads,
getTarotSpread,
drawTarotSpread,
drawConsciousTarotSpread,
TarotSpreadIndexOutOfPoolError,
validateTarotSpreadSelection,
TAROT_IMAGE_BASE_URL,
TAROT_TREE_IDS,
DEFAULT_TAROT_TREE_ID,
} from 'kaabalah/tarot';

Card catalog

Deck reference content

getTarotCardProfile() and getTarotArchetype() expose bilingual reference content alongside each deck’s existing description:

const card = getTarotCardProfile({ tarotCardNumber: 57 });
card?.descriptionsByDeck.mythic?.scene; // { en, pt }
card?.descriptionsByDeck.mythic?.divinatory; // { en, pt }
card?.descriptionsByDeck.mythic?.figure; // { en: 'Orestes', pt: 'Orestes' }

All 22 major Ark Annus have scenes for Papus (papus and papus_pt), Egyptian and Mythic decks. All 56 minor and court Ark Annus have Mythic scenes and divinatory texts. Existing meaning, reversedMeaning and keywords fields retain their previous values.

Mythic figure references identify: one figure per major and court, each suit’s story for pips 2 to 10, and the ace’s god. The Magician deliberately has no figure. mythicFigure(card, language) accepts the reading card identity fields (kind, number, and, when needed, suit, courtRank, rank) and returns a name or null.

TAROT_MAJOR_SCENES and MYTHIC_MINOR_CONTENT expose the source records as { source, cards }, keyed by canonical Kaabalah card number. getTarotDeckReferenceContent(number, deckId) selects a deck’s bilingual scene and divinatory text. getTarotReadingReference(language) returns the complete major, rank and suit display-name tables. Languages beginning with pt use Portuguese; other values use English. Display names preserve aliases such as The Tower, while canonical card identities remain unchanged.

ARKANNUS

The full 78-card deck as a TarotCard[], sorted by canonical kaabalah tree number. Card numbers are resolved from the Tree of Life graph rather than being hard-coded.

import { ARKANNUS } from 'kaabalah/tarot';
// all major arcana
const majors = ARKANNUS.filter(c => c.type === 'major');
// all wands
const wands = ARKANNUS.filter(c => c.suit === 'wands');

TarotCard shape:

type TarotCard = {
number: number // canonical card number
tarotCard: string // display name, e.g. "The Magician"
tarotCardFilename: string // asset slug, e.g. "01_the_magician"
egyptianCardName?: string // Kier Egyptian title, e.g. "Initiation"
meaning: string // kaabalah interpretation
papusMeaning?: string // Papus divinatory meaning
type: 'major' | 'minor' | 'daat+royalship'
deck: Deck
suit?: string // 'wands' | 'cups' | 'swords' | 'pentacles'
isInverted?: boolean
}

Card ranges:

RangeTypeDescription
1–22majorMajor Arcana (The Magician → The World)
23–26, 37–40, 51–54, 65–68daat+royalshipCourt cards (King/Queen/Knight/Page per suit)
27–36, 41–50, 55–64, 69–78minorPip cards (Ace–10 per suit)
Ace of WandsKing of Wands

majorArcana

Ordered MajorArcana[] — the 22 filename slugs from "01_the_magician" to "22_the_world".

import { majorArcana } from 'kaabalah/tarot';
// ["01_the_magician", "02_the_high_priestess", ..., "22_the_world"]
The MagicianThe High PriestessThe HierophantWheel of FortuneThe Hermit

Deck & tree metadata

listTarotDecks()

function listTarotDecks(): TarotDeckMetadata[]

Returns metadata for all supported decks.

import { listTarotDecks } from 'kaabalah/tarot';
const decks = listTarotDecks();
// [
// { id: 'papus_pt', label: 'Papus Kaabalistic' },
// { id: 'papus', label: 'Papus Divinatory' },
// { id: 'mythic', label: 'Mythic' },
// { id: 'egyptian', label: 'Egyptian' },
// { id: 'rider-waite', label: 'Rider Waite' },
// ]

TarotDeckMetadata:

interface TarotDeckMetadata {
id: TarotDeckId; // 'papus_pt' | 'papus' | 'mythic' | 'egyptian' | 'rider-waite'
label: string;
}

listTarotTrees()

function listTarotTrees(): TarotTreeId[]

Returns the tree system IDs that carry tarot correspondences.

import { listTarotTrees } from 'kaabalah/tarot';
listTarotTrees();
// ['kaabalah']

Card lookup

getTarotCardProfile(lookup, language?)

function getTarotCardProfile(lookup: TarotImageLookup, language?: string): TarotCardProfile | undefined

Pass 'pt-BR' (or any pt* value) as language for Brazilian Portuguese card names and deck meanings. Lookup names, filenames, branded IDs, canonical numbers and asset paths keep their identities, and the cached English profile is never mutated. The same optional language argument exists on getTarotRepresentation, getTarotSpread and listTarotSpreads.

Fetches the rich profile for any card. Accepts multiple lookup strategies via a discriminated union:

type TarotImageLookup =
| { pathSlug: string } // e.g. { pathSlug: 'aleph' }
| { pathId: NodeId<KaabalahTypes.PATH> }
| { tarotCardFilename: string } // e.g. { tarotCardFilename: '01_the_magician' }
| { tarotCardNumber: number } // e.g. { tarotCardNumber: 1 }
| { tarotArkAnnuId: NodeId<TarotTypes.TAROT_ARK_ANNU> }
| { tarotCardName: string } // e.g. { tarotCardName: 'The Magician' }
import { getTarotCardProfile } from 'kaabalah/tarot';
const profile = getTarotCardProfile({ tarotCardName: 'The Magician' });
// {
// tarotArkAnnuId: ...,
// tarotCardNumber: 1,
// tarotCardName: 'The Magician',
// tarotCardFilename: '01_the_magician',
// tarotMeaning: '...',
// kind: 'major',
// assetPathType: 'major',
// suit: undefined,
// courtRank: undefined,
// availableDeckIds: ['papus_pt', 'papus', 'mythic', 'egyptian', 'rider-waite'],
// descriptionsByDeck: { papus_pt: { meaning: '...', keywords: [...] }, ... }
// }

TarotCardProfile shape:

interface TarotCardProfile {
tarotArkAnnuId: NodeId<TarotTypes.TAROT_ARK_ANNU>;
tarotCardNumber: number;
tarotCardName: string;
tarotCardFilename: string;
tarotMeaning?: string;
kind: 'major' | 'court' | 'minor';
assetPathType: 'major' | 'minor' | 'daat+royalship';
suit?: string;
courtRank?: 'king' | 'queen' | 'knight' | 'page';
availableDeckIds: TarotDeckId[];
descriptionsByDeck: Partial<Record<TarotDeckId, TarotDeckDescription>>;
}
interface TarotDeckDescription {
name?: string;
meaning?: string;
reversedMeaning?: string;
keywords?: string[];
}

getTarotCardByNumber(cardNumber, treeId?)

function getTarotCardByNumber(
cardNumber: number,
treeId?: TarotTreeId // default: 'kaabalah'
): TarotCardProfile | undefined

Looks up a card profile by its canonical number in the specified tree system.

import { getTarotCardByNumber } from 'kaabalah/tarot';
const card = getTarotCardByNumber(5);
// TarotCardProfile for The Hierophant

getTarotCardNumber(lookup, treeId?)

function getTarotCardNumber(
lookup: TarotImageLookup,
treeId?: TarotTreeId // default: 'kaabalah'
): number | undefined

Resolves a card’s canonical number from any lookup strategy and tree system.

import { getTarotCardNumber } from 'kaabalah/tarot';
getTarotCardNumber({ tarotCardFilename: '05_the_hierophant' }); // 5
getTarotCardNumber({ tarotCardName: 'The Hierophant' }); // 5

Archetypes (Major Arcana)

getTarotArchetype(lookup)

function getTarotArchetype(lookup: TarotArchetypeLookup): TarotArchetype | undefined

Returns the full esoteric archetype for a major arcana card — its canonical path on the Tree of Life, Hebrew letter, path number, and astrological correspondences.

type TarotArchetypeLookup =
| { pathSlug: string }
| { pathId: NodeId<KaabalahTypes.PATH> }
| { tarotCardFilename: MajorArcana | string }
| { tarotCardNumber: number }
import { getTarotArchetype } from 'kaabalah/tarot';
const archetype = getTarotArchetype({ tarotCardNumber: 1 });
// {
// canonicalId: ...,
// kind: 'major',
// pathId: ...,
// pathNumber: 1,
// pathSlug: 'aleph',
// hebrewLetterId: ...,
// hebrewLetter: 'Aleph',
// pathMeaning: '...',
// tarotArkAnnuId: ...,
// tarotCardNumber: 1,
// tarotCardName: 'The Magician',
// tarotCardFilename: '01_the_magician',
// tarotMeaning: '...',
// astrology: [
// { type: 'planet', id: ..., label: 'Mercury' }
// ],
// availableDeckIds: [...],
// descriptionsByDeck: { ... }
// }

TarotArchetype shape:

interface TarotArchetype {
canonicalId: NodeId<KaabalahTypes.PATH>;
kind: 'major';
pathId: NodeId<KaabalahTypes.PATH>;
pathNumber: number;
pathSlug: string; // lowercase Hebrew letter name
hebrewLetterId: NodeId<LetterTypes.HEBREW_LETTER>;
hebrewLetter: string;
pathMeaning?: string;
tarotArkAnnuId: NodeId<TarotTypes.TAROT_ARK_ANNU>;
tarotCardNumber: number;
tarotCardName: string;
tarotCardFilename: MajorArcana;
tarotMeaning?: string;
astrology: TarotAstrologyCorrespondence[]; // planet, sign, or element
availableDeckIds: TarotDeckId[];
descriptionsByDeck: Partial<Record<TarotDeckId, TarotDeckDescription>>;
}
interface TarotAstrologyCorrespondence {
type: WesternAstrologyTypes.PLANET
| WesternAstrologyTypes.WESTERN_ZODIAC_SIGN
| WesternAstrologyTypes.WESTERN_ELEMENT;
id: NodeId<...>;
label: string;
}

Correspondences

getTarotCorrespondenceProfile(lookup, treeId?)

function getTarotCorrespondenceProfile(
lookup: TarotImageLookup,
treeId?: TarotTreeId // default: 'kaabalah'
): TarotCorrespondenceProfile | undefined

Returns the full esoteric correspondence profile for any card — the shape varies by card kind:

  • Major — path on the Tree of Life (from/to spheres, Hebrew letter, path number, path meaning) + astrology (element/planet/sign)
  • Court — Page — element via suit
  • Court — King/Queen/Knight — zodiac sign + ruling planets
  • Minor — Kabbalistic sphere + ruling planets
import { getTarotCorrespondenceProfile } from 'kaabalah/tarot';
// Major arcana
const major = getTarotCorrespondenceProfile({ tarotCardNumber: 1 });
// {
// kind: 'major',
// tarotCardNumber: 1,
// tarotCardName: 'The Magician',
// ...
// correspondences: {
// astrology: [{ type: 'planet', label: 'Mercury', id: ... }],
// path: {
// pathId: ..., pathNumber: 1, pathSlug: 'aleph',
// meaning: '...',
// hebrewLetter: { id: ..., label: 'Aleph' },
// fromSphere: { id: ..., label: 'Kether' },
// toSphere: { id: ..., label: 'Chokhmah' }
// }
// }
// }
// Minor arcana
const minor = getTarotCorrespondenceProfile({ tarotCardName: 'Ace of Wands' });
// {
// kind: 'minor',
// ...
// correspondences: {
// sphere: { id: ..., label: 'Kether' },
// planets: [{ id: ..., label: 'Neptune' }]
// }
// }
// Court card (King)
const court = getTarotCorrespondenceProfile({ tarotCardName: 'King of Wands' });
// {
// kind: 'court', courtRank: 'king',
// correspondences: {
// sign: { id: ..., label: 'Aries' },
// planets: [{ id: ..., label: 'Mars' }]
// }
// }

TarotCorrespondenceProfile union:

type TarotCorrespondenceProfile =
| TarotMajorCorrespondenceProfile
| TarotPageCorrespondenceProfile
| TarotCourtAstrologyCorrespondenceProfile
| TarotMinorCorrespondenceProfile;

Deck representations & image URLs

TAROT_IMAGE_BASE_URL

const TAROT_IMAGE_BASE_URL = 'https://d1u8antvu60ox0.cloudfront.net/tarot';

Image URLs follow the pattern:

{TAROT_IMAGE_BASE_URL}/{deckId}/{assetPath}.jpg

Where assetPath is:

  • major/{tarotCardFilename} for major arcana
  • {assetPathType}/{suit}/{tarotCardFilename} for court and minor cards

For example, resolving The Magician from the Rider-Waite deck:

https://d1u8antvu60ox0.cloudfront.net/tarot/rider-waite/major/01_the_magician.jpg
The Magician — Rider-Waite

The Magician (01_the_magician) from the Rider-Waite deck. The URL is assembled from TAROT_IMAGE_BASE_URL + ”/” + deckId + “/major/” + tarotCardFilename + “.jpg”.

getTarotRepresentations(lookup)

function getTarotRepresentations(lookup: TarotImageLookup): TarotRepresentation[]

Returns one TarotRepresentation per deck (five total) for the matched card. Each entry carries the deck-specific image URL, label, and description.

import { getTarotRepresentations } from 'kaabalah/tarot';
const reps = getTarotRepresentations({ tarotCardNumber: 1 });
// [
// {
// card: TarotCardProfile,
// archetype: TarotArchetype | undefined, // populated for major arcana
// deck: { id: 'papus_pt', label: 'Papus Kaabalistic' },
// assetPath: 'major/01_the_magician',
// imageUrl: 'https://d1u8antvu60ox0.cloudfront.net/tarot/papus_pt/major/01_the_magician.jpg',
// label: 'The Magician - Papus Kaabalistic',
// altText: 'The Magician - Papus Kaabalistic',
// cardLabel: 'The Magician',
// description: { meaning: '...', keywords: [...] }
// },
// ... (one per deck)
// ]

getTarotRepresentation(lookup, deckId, language?)

function getTarotRepresentation(
lookup: TarotImageLookup,
deckId: TarotDeckId,
language?: string
): TarotRepresentation | undefined

Single-deck variant — returns the representation for the specified deck only.

import { getTarotRepresentation } from 'kaabalah/tarot';
const rep = getTarotRepresentation({ tarotCardNumber: 1 }, 'rider-waite');
// TarotRepresentation for The Magician in the Rider-Waite deck

TarotRepresentation shape:

interface TarotRepresentation {
card: TarotCardProfile;
archetype?: TarotArchetype; // only for major arcana
deck: TarotDeckMetadata;
assetPath: string;
imageUrl: string;
label: string;
altText: string;
cardLabel: string; // deck-specific card name if available
description?: TarotDeckDescription;
}

resolveTarotImageUrl(lookup, deckId)

function resolveTarotImageUrl(
lookup: TarotImageLookup,
deckId: TarotDeckId
): string | undefined

Convenience shorthand that returns just the image URL string for a card + deck combination.

import { resolveTarotImageUrl } from 'kaabalah/tarot';
const url = resolveTarotImageUrl({ tarotCardFilename: '01_the_magician' }, 'mythic');
// 'https://d1u8antvu60ox0.cloudfront.net/tarot/mythic/major/01_the_magician.jpg'

Deck shuffling

shuffleTarotDeck(cards, includeInvertedCards?, shuffleCount?, shuffleDelay?, rng?)

async function shuffleTarotDeck(
cards: TarotCard[],
includeInvertedCards?: boolean, // default: false
shuffleCount?: number, // default: 6
shuffleDelay?: number, // delay between passes in ms, default: 300
rng?: () => number // default: Math.random — inject for tests/replay only
): Promise<TarotCard[]>

Shuffles the deck using a Fisher-Yates algorithm applied shuffleCount times. When includeInvertedCards is true, the bottom half of the deck after the first shuffle is marked isInverted: true.

The default shuffleDelay of 300 ms per pass (~1.8 s total) is a UX affordance for human-facing draws. Pass 0 for machine-driven flows — the CLI does this automatically in --json mode. The rng parameter exists so tests can prove permutation behavior deterministically; production draws should keep the Math.random default.

import { ARKANNUS, shuffleTarotDeck } from 'kaabalah/tarot';
const shuffled = await shuffleTarotDeck(ARKANNUS, true);
const threeCardSpread = shuffled.slice(0, 3);
// No artificial delay (e.g. server-side or pipeline use):
const instant = await shuffleTarotDeck(ARKANNUS, false, 6, 0);

Spread engine

The spread engine provides structured spread definitions, deterministic drawing, and validation.

listTarotSpreads(language?)

function listTarotSpreads(language?: string): TarotSpreadDefinition[]

Returns definitions for all built-in spreads:

spreadIdLabelSlots
quick-insightQuick Insight1 (any)
conscious-readingConscious Reading3 — major, court, minor
time-readingTime Reading3 major arcana (past/present/future)
dialectic-readingDialectic Reading3 major arcana (thesis/antithesis/synthesis)
tree-of-life-readingTree of Life Reading10 minor (Aces–Tens) + 4 court (Daath)
celtic-crossCeltic Cross10 (any)
event-readingEvent Reading12 outer minor/court + 7 inner major + 1 inquirer

CLI spread IDs

The CLI uses the same spreadId values through tarot:spread --spread-id.

Terminal window
kaabalah tarot:spread --list
kaabalah tarot:spread --spread-id=quick-insight --json
kaabalah tarot:spread --spread-id=celtic-cross --json
kaabalah tarot:spread --spread-id=event-reading --inquirer-gender=woman --json
kaabalah tarot:spread --describe --spread-id=celtic-cross --json --compact
kaabalah tarot:spread --spread-id=conscious-reading --method=conscious --indices=1,2,3 --json --compact

Use one of these IDs:

Spread IDNotes
quick-insightOne-card draw
conscious-readingThree-card draw: conscious, unconscious, subconscious
time-readingThree major arcana cards: past, present, future
dialectic-readingThree major arcana cards: thesis, antithesis, synthesis
tree-of-life-readingTree of Life layout with rank-constrained minor cards plus Daath court cards
celtic-crossClassic ten-card layout
event-readingPapus-style event layout; requires --inquirer-gender=man or --inquirer-gender=woman

For JSON input, pass the spread ID as spreadId and spread context under context:

Terminal window
kaabalah tarot:spread --input-json=- --json --compact <<'JSON'
{"spreadId":"event-reading","context":{"inquirerGender":"woman"}}
JSON

getTarotSpread(spreadId, language?)

function getTarotSpread(spreadId: TarotSpreadId, language?: string): TarotSpreadDefinition | undefined

Returns a single spread definition by ID. With a pt* language, spread and slot labels, descriptions and metadata notes are Portuguese; IDs, slot keys, validation rules and numbers do not change.

import { getTarotSpread } from 'kaabalah/tarot';
const spread = getTarotSpread('celtic-cross');
// { spreadId: 'celtic-cross', label: 'Celtic Cross', slots: [...], ... }

TarotSpreadDefinition shape:

interface TarotSpreadDefinition {
spreadId: TarotSpreadId;
label: string;
description?: string;
contextRequirements?: TarotSpreadContextKey[]; // e.g. ['inquirerGender']
slots: TarotSpreadSlotDefinition[];
specialRules?: {
inquirerCard?: TarotSpreadInquirerRule;
};
}
interface TarotSpreadSlotDefinition {
slotKey: string;
label: string;
order: number;
minCards: number;
maxCards: number;
validationRules?: TarotSpreadCardConstraint;
manualSelectionRules?: TarotSpreadCardConstraint;
drawRules?: TarotSpreadCardConstraint;
metadata?: TarotSpreadSlotMetadata;
}
interface TarotSpreadCardConstraint {
allowedTypes?: ('major' | 'minor' | 'daat+royalship')[];
requiredRank?: 'ace' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
allowedCardFilenames?: string[];
excludedCardFilenames?: string[];
}

drawTarotSpread(options)

function drawTarotSpread(options: DrawTarotSpreadOptions): TarotSpreadDrawResult

Draws a complete spread by randomly selecting cards that satisfy each slot’s draw rules. Throws if the spread ID is unknown or the resulting selection is invalid.

interface DrawTarotSpreadOptions {
spreadId: TarotSpreadId;
deckId?: TarotDeckId; // default: 'rider-waite'
includeInverted?: boolean; // default: false
rng?: () => number; // default: Math.random
context?: TarotSpreadSelectionContext;
}
import { drawTarotSpread } from 'kaabalah/tarot';
// Basic draw
const result = drawTarotSpread({ spreadId: 'celtic-cross' });
// Event Reading requires inquirerGender context
const eventResult = drawTarotSpread({
spreadId: 'event-reading',
includeInverted: true,
context: { inquirerGender: 'woman' }
});
// Deterministic draw (for tests)
let seed = 0;
const deterministicResult = drawTarotSpread({
spreadId: 'time-reading',
rng: () => (seed = (seed * 1103515245 + 12345) & 0x7fffffff) / 0x7fffffff
});

TarotSpreadDrawResult shape:

interface TarotSpreadDrawResult {
spread: TarotSpreadDefinition;
deckId: TarotDeckId;
context?: TarotSpreadSelectionContext;
cards: TarotSpreadResolvedSelectionCard[];
}
interface TarotSpreadResolvedSelectionCard {
slotKey: string;
cardNumber: number;
isInverted?: boolean;
card: TarotCard;
slot: TarotSpreadSlotDefinition;
}

drawConsciousTarotSpread(options)

function drawConsciousTarotSpread(options: DrawConsciousTarotSpreadOptions): TarotSpreadConsciousDrawResult

Draws a spread from a deck you shuffled, choosing the card at a position you pick. For each slot (in slot order) the eligible pool is the shuffled deck filtered by that slot’s draw rules, and the 1-based index selects a card from that pool.

interface DrawConsciousTarotSpreadOptions {
spreadId: TarotSpreadId;
shuffledDeck: TarotCard[]; // e.g. the result of shuffleTarotDeck
indices: number[]; // exactly one 1-based index per slot
deckId?: TarotDeckId; // default: 'rider-waite'
includeInverted?: boolean;
rng?: () => number; // used only for inversion
context?: TarotSpreadSelectionContext;
}
import { ARKANNUS, shuffleTarotDeck, drawConsciousTarotSpread } from 'kaabalah/tarot';
const shuffled = await shuffleTarotDeck(ARKANNUS, false, 7, 0);
const result = drawConsciousTarotSpread({
spreadId: 'conscious-reading',
shuffledDeck: shuffled,
indices: [3, 12, 7],
});
result.method; // 'conscious'
result.cards[0].pos; // e.g. '3 of 22': the picked index and the pool size

The result has the same shape as drawTarotSpread’s, plus method: 'conscious', and each card carries the picked index, the poolSize and a pos string. A wrong number of indices, or a non-integer or non-positive index, throws an Error; an index larger than the pool throws TarotSpreadIndexOutOfPoolError (code: 'INDEX_OUT_OF_POOL', with slotKey, index and poolSize). The CLI exposes this as tarot:spread --method=conscious --indices=....

validateTarotSpreadSelection(input)

function validateTarotSpreadSelection(
input: TarotSpreadValidationInput
): TarotSpreadValidationResult

Validates a manually composed card selection against a spread’s rules. Supports partial validation via allowPartial: true.

interface TarotSpreadValidationInput {
spreadId: TarotSpreadId;
cards: TarotSpreadSelectionCard[]; // { slotKey, cardNumber, isInverted? }[]
context?: TarotSpreadSelectionContext;
allowPartial?: boolean;
}
import { validateTarotSpreadSelection } from 'kaabalah/tarot';
const result = validateTarotSpreadSelection({
spreadId: 'time-reading',
cards: [
{ slotKey: 'past', cardNumber: 1 },
{ slotKey: 'present', cardNumber: 5 },
{ slotKey: 'future', cardNumber: 12 }
]
});
// {
// ok: true,
// isComplete: true,
// spread: TarotSpreadDefinition,
// resolvedCards: TarotSpreadResolvedSelectionCard[],
// errors: []
// }

Validation error codes:

CodeDescription
UNKNOWN_SPREADThe spreadId does not exist
UNKNOWN_SLOTA slotKey is not defined on the spread
CARD_NOT_FOUNDcardNumber does not map to a known card
DUPLICATE_CARDSame card used in multiple slots
MISSING_REQUIRED_CARDSSlot has fewer cards than minCards
TOO_MANY_CARDSSlot has more cards than maxCards
INVALID_CARD_TYPECard type not in slot’s allowedTypes
INVALID_CARD_RANKMinor arcana card does not match requiredRank
DISALLOWED_CARDCard is excluded or not in allowedCardFilenames
MISSING_CONTEXTSpread requires context.inquirerGender but it was not supplied
INVALID_INQUIRER_CARDEvent Reading inquirer card placement rule violated

Types reference

type Deck = 'papus_pt' | 'papus' | 'mythic' | 'egyptian' | 'rider-waite';
type TarotDeckId = Deck;
type TarotTreeId = 'kaabalah';
type TarotCardKind = 'major' | 'court' | 'minor';
type TarotCourtRank = 'king' | 'queen' | 'knight' | 'page';
type TarotAssetPathType = 'major' | 'minor' | 'daat+royalship';
type TarotInquirerGender = 'man' | 'woman';
type TarotSpreadId =
| 'quick-insight'
| 'conscious-reading'
| 'time-reading'
| 'dialectic-reading'
| 'tree-of-life-reading'
| 'celtic-cross'
| 'event-reading';