{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ditto-audio/json-schema/ditto-audio-upsert-annotation-dto-schema.json",
  "title": "UpsertAnnotationDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ditto-audio-sync-data-api-openapi.yml#/components/schemas/UpsertAnnotationDto",
  "type": "object",
  "properties": {
    "clientId": {
      "type": "string",
      "description": "client annotation id"
    },
    "bookId": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "highlight",
        "note",
        "clipping"
      ]
    },
    "chapterIndex": {
      "type": "number"
    },
    "paragraphIndex": {
      "type": "number"
    },
    "cfi": {
      "type": "string"
    },
    "selectedText": {
      "type": "string"
    },
    "color": {
      "type": "string"
    },
    "noteContent": {
      "type": "string"
    },
    "chapterTitle": {
      "type": "string"
    },
    "createdAtMs": {
      "type": "number"
    },
    "deleted": {
      "type": "boolean"
    }
  },
  "required": [
    "clientId",
    "bookId",
    "kind"
  ]
}