{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tryorcha-com/json-schema/tryorcha-com-sync-run-schema.json",
  "title": "SyncRun",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tryorcha-com-openapi.json#/components/schemas/SyncRun",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "queued",
        "running",
        "completed",
        "completed_with_warnings",
        "failed",
        "cancelled",
        "rolled_back"
      ]
    },
    "counters": {
      "type": "object",
      "properties": {
        "created": {
          "type": "integer"
        },
        "updated": {
          "type": "integer"
        },
        "skipped": {
          "type": "integer"
        },
        "conflicts": {
          "type": "integer"
        },
        "pruned": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    },
    "wouldPrune": {
      "type": "array",
      "description": "Preview only: previously synced files and folders absent from this manifest that a prune pass would move to trash",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}