{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.wherever.audio/schemas/webhooks/playback-progress/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"
    },
    "recovered": {
      "type": "boolean",
      "description": "True when re-sent at startup for a segment a killed page left open."
    }
  },
  "required": [
    "origin",
    "episode",
    "segment",
    "recovered"
  ],
  "title": "playback.progress data",
  "description": "Periodic segment state while playing.",
  "x-stability": "stable"
}
