{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sprixen-com/json-schema/sprixen-com-create-moveset-dto-schema.json",
  "title": "CreateMovesetDto",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sprixen-com-openapi.json#/components/schemas/CreateMovesetDto",
  "type": "object",
  "properties": {
    "moves": {
      "type": "array",
      "description": "Moves to animate. Omit for the default set: idle (relaxed), combat_idle, walk, run, combo_1, combo_2, combo_3, hurt, death, jump, flourish. Also available: dodge, special, victory. Send [] for a poses-only set. Every combat move starts and ends in the base sprite pose, so combo_1..3 chain.",
      "items": {
        "type": "string",
        "enum": [
          "idle",
          "combat_idle",
          "walk",
          "run",
          "combo_1",
          "combo_2",
          "combo_3",
          "hurt",
          "death",
          "jump",
          "flourish",
          "dodge",
          "special",
          "victory"
        ]
      }
    },
    "poses": {
      "type": "array",
      "description": "Static poses generated from the base sprite (2 credits each): pose_relaxed (default; the relaxed idle is animated from it) and pose_victory. Send [] for none; without pose_relaxed the idle is animated from the base sprite.",
      "items": {
        "type": "string",
        "enum": [
          "pose_relaxed",
          "pose_victory"
        ]
      }
    },
    "premium": {
      "type": "array",
      "description": "Moves to render on premium (8 credits, video with a locked camera, up to 96 frames, about 30 minutes). Default: jump, flourish, special, victory.",
      "items": {
        "type": "string",
        "enum": [
          "idle",
          "combat_idle",
          "walk",
          "run",
          "combo_1",
          "combo_2",
          "combo_3",
          "hurt",
          "death",
          "jump",
          "flourish",
          "dodge",
          "special",
          "victory"
        ]
      }
    },
    "standard": {
      "type": "array",
      "description": "Moves forced to standard (4 credits, 8 key frames plus in-betweens), e.g. to keep the whole set cheaper.",
      "items": {
        "type": "string",
        "enum": [
          "idle",
          "combat_idle",
          "walk",
          "run",
          "combo_1",
          "combo_2",
          "combo_3",
          "hurt",
          "death",
          "jump",
          "flourish",
          "dodge",
          "special",
          "victory"
        ]
      }
    },
    "frames": {
      "type": "number",
      "enum": [
        8,
        16,
        24
      ],
      "default": 16,
      "description": "Frames for the standard moves that use in-betweens (idle, combat idle, combo hits, hurt, dodge): 16 (+2 credits each, default), 24 (+3) or 8 (none). Walk, run and death stay at 8."
    },
    "descriptions": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Motion text per move key, replacing the default description (max 500 characters each). Keep \"starts and ends in the guard\" for combo hits."
    },
    "archetype": {
      "type": "string",
      "enum": [
        "humanoid_biped",
        "quadruped",
        "winged",
        "amorphous",
        "serpentine"
      ],
      "description": "Body archetype for every move; inferred from the sprite when omitted."
    },
    "weaponHand": {
      "type": "string",
      "enum": [
        "left",
        "right",
        "both"
      ],
      "description": "Hand that holds the weapon, kept in every move."
    },
    "weaponType": {
      "type": "string",
      "description": "Weapon label (sword, spear, staff, bow...), improves consistency across moves."
    },
    "hasShield": {
      "type": "boolean",
      "description": "True if the character carries a shield."
    },
    "direction": {
      "type": "string",
      "enum": [
        "right",
        "left",
        "up",
        "down",
        "up-right",
        "up-left",
        "down-right",
        "down-left"
      ],
      "description": "Facing direction of every move; the sprite as drawn when omitted."
    },
    "maxCredits": {
      "type": "number",
      "description": "Refuse the moveset when its total passes this many credits. Always send it when an agent builds on its own."
    },
    "dryRun": {
      "type": "boolean",
      "default": false,
      "description": "Return the plan and total credits without charging or generating anything."
    }
  }
}