{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiopod-ai/json-schema/audiopod-ai-audiobook-chapter-response-schema.json",
  "title": "AudiobookChapterResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiopod-ai-audiobook-api-openapi.yml#/components/schemas/AudiobookChapterResponse",
  "properties": {
    "chapter_number": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Chapter Number"
    },
    "title": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "subtitle": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "title": "Subtitle"
    },
    "content": {
      "type": "string",
      "minLength": 1,
      "title": "Content",
      "description": "Chapter text content"
    },
    "section_kind": {
      "type": "string",
      "title": "Section Kind",
      "default": "chapter"
    },
    "exclusion_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exclusion Reason"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    },
    "word_count": {
      "type": "integer",
      "title": "Word Count"
    },
    "character_count": {
      "type": "integer",
      "title": "Character Count"
    },
    "estimated_duration_minutes": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Duration Minutes"
    },
    "audio_file_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Audio File Path"
    },
    "duration_seconds": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration Seconds"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "state_version": {
      "type": "integer",
      "title": "State Version",
      "description": "Monotonic version of this record. It increases whenever the record's status, audio, review state or text changes, and equals the id of the matching event on the project's event stream. Keep the higher one.",
      "default": 0
    },
    "processing_started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Processing Started At"
    },
    "processing_completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Processing Completed At"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "retry_count": {
      "type": "integer",
      "title": "Retry Count"
    },
    "audio_levels": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Audio Levels"
    },
    "acx_compliance": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Acx Compliance"
    },
    "skip_narration": {
      "type": "boolean",
      "title": "Skip Narration"
    },
    "voice_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Voice Id"
    },
    "narration_notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Narration Notes"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "r2_purged_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "R2 Purged At"
    }
  },
  "type": "object",
  "required": [
    "chapter_number",
    "content",
    "id",
    "project_id",
    "word_count",
    "character_count",
    "estimated_duration_minutes",
    "audio_file_path",
    "duration_seconds",
    "status",
    "processing_started_at",
    "processing_completed_at",
    "error_message",
    "retry_count",
    "audio_levels",
    "acx_compliance",
    "skip_narration",
    "voice_id",
    "narration_notes",
    "created_at",
    "updated_at"
  ]
}