{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ditto-audio/json-schema/ditto-audio-update-book-dto-schema.json",
  "title": "UpdateBookDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ditto-audio-sync-library-api-openapi.yml#/components/schemas/UpdateBookDto",
  "type": "object",
  "properties": {
    "bookId": {
      "type": "string",
      "description": "client book id (stable across devices)"
    },
    "title": {
      "type": "string"
    },
    "author": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "chapterCount": {
      "type": "number"
    },
    "contentHash": {
      "type": "string",
      "description": "sha-256 of the book file"
    },
    "coverImageUrl": {
      "type": "string"
    },
    "addedAtMs": {
      "type": "number",
      "description": "client add time, ms epoch"
    },
    "deleted": {
      "type": "boolean",
      "description": "tombstone — remove from cloud library"
    }
  }
}