{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ditto-audio/json-schema/ditto-audio-update-progress-dto-schema.json",
  "title": "UpdateProgressDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ditto-audio-reader-api-openapi.yml#/components/schemas/UpdateProgressDto",
  "type": "object",
  "properties": {
    "chapterIndex": {
      "type": "number"
    },
    "paragraphIndex": {
      "type": "number",
      "description": "Segment within the chapter."
    },
    "cfi": {
      "type": "string",
      "description": "An epub.js CFI, if you have one."
    },
    "percentComplete": {
      "type": "number",
      "description": "0..1"
    },
    "totalReadingTimeMs": {
      "type": "number",
      "description": "Total listening/reading time, ms."
    },
    "lastReadAtMs": {
      "type": "number",
      "description": "Client clock, ms epoch. Last-write-wins is resolved on THIS, not on arrival order — an update older than the stored one is ignored, so a device coming back online cannot rewind a position set elsewhere."
    }
  }
}