{
  "$defs": {
    "AssetKind": {
      "oneOf": [
        {
          "properties": {
            "kind": {
              "const": "logo",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "splash-image",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "adaptive-icon",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "font",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "marketing-background",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "iconography",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "photography",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "wordmark",
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "properties": {
            "kind": {
              "const": "other",
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name"
          ],
          "type": "object"
        }
      ]
    },
    "BrandAsset": {
      "properties": {
        "file_ref": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/AssetKind"
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "role": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "used_in": {
          "items": {
            "$ref": "#/$defs/PathRef"
          },
          "type": "array"
        }
      },
      "required": [
        "slug",
        "kind",
        "file_ref",
        "role"
      ],
      "type": "object"
    },
    "PathRef": {
      "description": "Path-based cross-reference relative to .corpospec/ root.\nPattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$`",
      "pattern": "^[a-z0-9_-]+(/[a-z0-9_.-]+)+$",
      "type": "string"
    }
  },
  "$id": "https://corpospec.com/schemas/v0.13.2/brand-asset-catalog.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Inventory of brand assets — logos, fonts, illustration sets, sound marks,\nmotion files — addressable by PathRef. Each entry pairs a file reference\nwith a role (`logo-primary`, `font-display`, `motion-loader`) and the\nsurfaces it ships on. The catalog is the single source of truth that other\nbrand records (logo, typography, iconography, photography) point into; it\nMUST stay in sync with what the repository actually contains.\n\nScope: one per company. Lives at `brand/asset-catalog.yaml`.",
  "properties": {
    "assets": {
      "items": {
        "$ref": "#/$defs/BrandAsset"
      },
      "type": "array"
    },
    "id": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef of this record (conventionally `brand/asset-catalog`). Optional\nfor back-compat with catalogs embedded inside other brand records;\nrequired when stored as a standalone pillar file."
    }
  },
  "title": "Brand Asset Catalog",
  "type": "object",
  "x-corpospec-pillar": "brand"
}