Record a class-less character's existing classes
vault_record_pc_classesThe class-less on-ramp to the level-up flow. A hand-made character with no Class entries on its sheet can't level up (vault rejects the plan and the apply) — this tool records the class(es) and level(s) the character is ALREADY playing so the wizard can take over at the next level. It stamps identity snapshots ONLY: no features, proficiencies, HP, or trackables are granted — the sheet is trusted to already carry everything. Call vault_get_levelup_options first: RECORD mode (needsClassRecord: true) ships recordOptions[] (base classes with subclasses[] and subclassLevel) and totalLevel, the character's XP-derived level. The recorded levels must sum to EXACTLY that totalLevel (XP is the authority; vault never rewrites it) and a row may carry a subclass only at/above the option's subclassLevel. Rejected once any class entry exists. On success vault sets each class snapshot's stored level, attaches subclasses, updates core.class, appends a note, and returns { character, summary } — then call vault_get_levelup_options again for the normal chooser.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| classes | Yes | One row per class the character already has, distinct classes only. The levels MUST sum to exactly the RECORD-mode chooser's `totalLevel` (the character's XP-derived level) — vault rejects any other split and never rewrites XP. | |
| characterId | Yes | `_id` of the class-less character (must belong to the calling user). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||