{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-product-kit-response-schema.json",
  "title": "ProductKitResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-collections-api-openapi.yml#/components/schemas/ProductKitResponse",
  "type": "object",
  "properties": {
    "installed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "part": {
            "type": "string",
            "enum": [
              "roadmap",
              "changelog",
              "help"
            ]
          },
          "keys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Draft content keys, assets and the schema file written."
          },
          "routes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "menu": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Menu labels added."
          }
        },
        "required": [
          "part",
          "keys",
          "routes",
          "menu"
        ]
      },
      "description": "What this call wrote. Empty when everything was already there."
    },
    "skipped": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "target": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "exists",
              "route_exists",
              "schema_exists",
              "menu_exists"
            ]
          }
        },
        "required": [
          "target",
          "reason"
        ]
      },
      "description": "Never overwritten. A section whose page, route or collection is the site's own is skipped whole; a section that is already fully installed reads as one `exists` row."
    },
    "publish": {
      "type": "boolean",
      "enum": [
        false
      ],
      "description": "Everything is a draft until you publish the site."
    },
    "failedAt": {
      "type": "object",
      "properties": {
        "step": {
          "type": "string",
          "enum": [
            "schema",
            "templates",
            "routes",
            "samples",
            "menu"
          ]
        },
        "target": {
          "type": "string"
        },
        "error": {
          "type": "string"
        }
      },
      "required": [
        "step",
        "error"
      ],
      "description": "The install stopped here. Call again to finish: it skips what exists and adds the rest."
    },
    "truncated": {
      "type": "boolean",
      "enum": [
        true
      ],
      "description": "Lists are capped at 50 entries."
    }
  },
  "required": [
    "installed",
    "skipped",
    "publish"
  ]
}