{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-apply-changeset-queued-response-schema.json",
  "title": "ApplyChangesetQueuedResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-content-api-openapi.yml#/components/schemas/ApplyChangesetQueuedResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "slug": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued"
      ]
    },
    "id": {
      "type": "string",
      "description": "Workflow id. Poll `job` instead (`GET …/jobs/{id}`); this id is only for the older `…/content/jobs/{id}` URL."
    },
    "items": {
      "type": "integer",
      "description": "Number of writes queued."
    },
    "skippedDeletes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "skipped": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "reserved_key"
            ]
          }
        },
        "required": [
          "key",
          "reason"
        ]
      },
      "description": "Keys left out and not written: site custom code (`_site/code-*.html`) is set with PUT /custom-code."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Non-blocking notes about tags that will not compose, one per problem, each as `<key>: <code> — <what to change>`. Codes: `fragment_unclosed`, `fragment_bad_name`, `fragment_full_document`, `fragment_self_reference`, `fragment_attr_hyphen`, `legacy_paige_tag`, `layout_missing_content`, `unknown_dotsy_syntax`. The write still happened. At most 50 are listed."
    },
    "job": {
      "allOf": [
        {
          "$ref": "#/$defs/JobRef"
        },
        {
          "description": "Poll `GET /api/v1/sites/{slug}/jobs/{job.id}` until `status` is `succeeded` or `failed`. Absent when the server cannot issue job ids."
        }
      ]
    },
    "published": {
      "type": "boolean",
      "enum": [
        false
      ],
      "description": "Always false: the change is staged in the draft until you publish."
    },
    "hint": {
      "type": "string",
      "description": "Reminder that the change is staged and how to make it live."
    }
  },
  "required": [
    "ok",
    "slug",
    "status",
    "id",
    "items",
    "published",
    "hint"
  ],
  "$defs": {
    "JobRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Public job id. Poll GET /api/v1/sites/{slug}/jobs/{id}."
        },
        "kind": {
          "type": "string",
          "enum": [
            "import",
            "content",
            "rename"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "succeeded",
            "failed"
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "status"
      ]
    }
  }
}