{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tokcloner-com/json-schema/tokcloner-com-clone-list-schema.json",
  "title": "CloneList",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tokcloner-com-openapi.json#/components/schemas/CloneList",
  "type": "object",
  "properties": {
    "clones": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CloneDigest"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "CloneDigest": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "source_url": {
          "type": "string"
        },
        "platform": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "tiktok",
            "instagram",
            null
          ]
        },
        "status": {
          "$ref": "#/$defs/CloneState"
        },
        "slide_count": {
          "type": "integer"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "error": {
          "type": "string"
        }
      }
    },
    "CloneState": {
      "type": "string",
      "enum": [
        "queued",
        "extracting",
        "analyzing",
        "analyzed",
        "adapting",
        "generating",
        "ready",
        "done",
        "failed"
      ],
      "description": "Pipeline states. `ready`, `done`, and `failed` are terminal."
    }
  }
}