{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-song-mix-job-schema.json",
  "title": "SongMixJob",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-song-mixes-api-openapi.yml#/components/schemas/SongMixJob",
  "type": "object",
  "required": [
    "job_id",
    "status",
    "prompt",
    "tracks",
    "engine",
    "output_format",
    "transition_style",
    "auto_order",
    "message",
    "next_step"
  ],
  "properties": {
    "job_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending_engine",
        "pending_song_generation"
      ]
    },
    "prompt": {
      "type": "string"
    },
    "tracks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SongMixTrack"
      }
    },
    "engine": {
      "type": "string"
    },
    "output_format": {
      "type": "string"
    },
    "transition_style": {
      "type": "string"
    },
    "auto_order": {
      "type": "boolean"
    },
    "desired_duration_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 30,
      "maximum": 7200
    },
    "output_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "message": {
      "type": "string"
    },
    "next_step": {
      "type": "string"
    }
  },
  "$defs": {
    "SongMixTrack": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "artist": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "asset_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "bpm": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 40,
          "maximum": 240
        },
        "key": {
          "type": [
            "string",
            "null"
          ]
        },
        "mood": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}