{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.wherever.audio/schemas/webhooks/playback-seeked/v1.json",
  "type": "object",
  "properties": {
    "origin": {
      "type": "string",
      "enum": [
        "user",
        "agent",
        "link",
        "system",
        "sync"
      ],
      "description": "Who caused the event."
    },
    "actionId": {
      "description": "Shared by every event one action produced.",
      "type": "string"
    },
    "test": {
      "description": "Present only on synthetic events from a test send.",
      "type": "boolean",
      "const": true
    },
    "episode": {
      "$ref": "https://docs.wherever.audio/schemas/webhooks/references/episode/v1.json"
    },
    "segment": {
      "$ref": "https://docs.wherever.audio/schemas/webhooks/references/segment/v1.json"
    },
    "from": {
      "type": "number",
      "minimum": 0,
      "description": "Position before the seek (seconds)"
    },
    "to": {
      "type": "number",
      "minimum": 0,
      "description": "Position after the seek (seconds)"
    },
    "method": {
      "type": "string",
      "examples": [
        "skip",
        "scrub",
        "chapter",
        "auto"
      ],
      "description": "Known values: `skip`, `scrub`, `chapter`, `auto`. Receivers must accept others."
    }
  },
  "required": [
    "origin",
    "episode",
    "segment",
    "from",
    "to",
    "method"
  ],
  "title": "playback.seeked data",
  "description": "The position jumped; closes the segment.",
  "x-stability": "stable"
}
