{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/svgicons-com/json-schema/svgicons-com-project-kit-detail-response-schema.json",
  "title": "ProjectKitDetailResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/svgicons-com-openapi.yml#/components/schemas/ProjectKitDetailResponse",
  "type": "object",
  "required": [
    "data",
    "icons"
  ],
  "properties": {
    "data": {
      "allOf": [
        {
          "$ref": "#/$defs/ProjectKitSummary"
        },
        {
          "type": "object",
          "properties": {
            "licenseSummary": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": true
              }
            },
            "iconSetSummary": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "hasCustomIcons": {
              "type": "boolean",
              "description": "Whether any entry in the collection is a custom-icon variant."
            }
          }
        }
      ]
    },
    "icons": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "$defs": {
    "Pagination": {
      "type": "object",
      "description": "Laravel length-aware paginator response used for Icon Collection icons.",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectKitIcon"
          }
        },
        "current_page": {
          "type": "integer"
        },
        "first_page_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "from": {
          "type": [
            "integer",
            "null"
          ]
        },
        "last_page": {
          "type": "integer"
        },
        "last_page_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "label": {
                "type": "string"
              },
              "active": {
                "type": "boolean"
              }
            }
          }
        },
        "next_page_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "path": {
          "type": "string",
          "format": "uri"
        },
        "per_page": {
          "type": "integer"
        },
        "prev_page_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "to": {
          "type": [
            "integer",
            "null"
          ]
        },
        "total": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    },
    "ProjectKitIcon": {
      "type": "object",
      "description": "One collection entry. An icon can appear as a plain entry plus custom-icon variants; entryId identifies the entry row. Custom-icon entries carry customEditId, customName, and their customized SVG snapshot as the body.",
      "required": [
        "id",
        "entryId",
        "icon_set_id",
        "name",
        "width",
        "height",
        "body",
        "iconSet"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "entryId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The entry row id, used for entry-level operations such as reordering."
        },
        "icon_set_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "body": {
          "type": "string",
          "description": "SVG body markup. For custom-icon entries this is the customized rendered snapshot, not the catalog body."
        },
        "customEditId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The Icon Studio edit id when the entry is a custom-icon variant."
        },
        "customName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The custom icon's name when the entry is a custom-icon variant."
        },
        "iconSet": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "prefix": {
              "type": "string"
            },
            "license": {
              "type": [
                "string",
                "null"
              ]
            },
            "licenseUrl": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            }
          }
        }
      }
    },
    "ProjectKitSummary": {
      "type": "object",
      "required": [
        "id",
        "name",
        "slug",
        "framework",
        "colorPolicy",
        "namingPolicy",
        "iconsCount"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "framework": {
          "type": "string",
          "enum": [
            "svg",
            "react-ts",
            "vue",
            "sprite"
          ]
        },
        "colorPolicy": {
          "type": "string",
          "enum": [
            "currentColor",
            "preserve",
            "strip"
          ]
        },
        "namingPolicy": {
          "type": "string",
          "enum": [
            "kebab",
            "pascal",
            "camel"
          ]
        },
        "iconsCount": {
          "type": "integer"
        },
        "showUrl": {
          "type": "string"
        },
        "updatedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "styledWith": {
          "type": [
            "string",
            "null"
          ],
          "description": "The style name when the collection was built by applying a style."
        }
      }
    }
  }
}