{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thiri-ai/json-schema/thiri-ai-post-v2-analyze-response-schema.json",
  "title": "PostV2AnalyzeResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/thiri-ai-openapi-generated.yml#/components/schemas/PostV2AnalyzeResponse",
  "type": "object",
  "properties": {
    "symbol": {
      "type": "string",
      "description": "Original input chord symbol"
    },
    "root": {
      "type": "string",
      "description": "Root note name"
    },
    "quality": {
      "type": "string",
      "description": "Chord quality classification"
    },
    "intervals": {
      "type": "number",
      "description": "Semitone intervals from root"
    },
    "extensions": {
      "type": "number",
      "description": "Upper extensions present"
    },
    "alterations": {
      "type": "string",
      "description": "Altered tones (e.g. \"b9\", \"#11\")"
    },
    "bassNote": {
      "type": "string",
      "description": "Slash chord bass note"
    },
    "numeral": {
      "type": "string",
      "description": "Roman numeral (when key provided)"
    },
    "degree": {
      "type": "number",
      "description": "Scale degree 1–7 (when key provided)"
    },
    "diatonic": {
      "type": "boolean",
      "description": "Whether chord belongs to the key"
    },
    "function": {
      "type": "string",
      "description": "tonic, subdominant, predominant, or dominant"
    },
    "scales": {
      "type": "array",
      "description": "Recommended scales with name and role"
    }
  }
}