{
  "$defs": {
    "Confidentiality": {
      "description": "Cross-cutting confidentiality classification used across privacy,\nsecurity, knowledge, IR pillars. Default rendering rule: `corpospec-report`\nexcludes `Restricted | BoardOnly | InvestorOnly` records from public output\nunless an explicit audience parameter overrides. See BDR 0076 §1.",
      "oneOf": [
        {
          "const": "public",
          "description": "Safe to publish anywhere.",
          "type": "string"
        },
        {
          "const": "customer",
          "description": "Visible to customers under standard ToS.",
          "type": "string"
        },
        {
          "const": "internal",
          "description": "Employees and contractors only.",
          "type": "string"
        },
        {
          "const": "restricted",
          "description": "Need-to-know subset of internal.",
          "type": "string"
        },
        {
          "const": "board_only",
          "description": "Board members and direct staff.",
          "type": "string"
        },
        {
          "const": "investor_only",
          "description": "Existing investors + prospective with NDA.",
          "type": "string"
        }
      ]
    },
    "ContentKind": {
      "description": "Content asset kind.",
      "oneOf": [
        {
          "enum": [
            "blog_post",
            "video",
            "podcast",
            "webinar",
            "whitepaper",
            "case_study",
            "press_release",
            "social_post",
            "newsletter",
            "conference_talk",
            "demo",
            "tutorial",
            "open_source_release",
            "research"
          ],
          "type": "string"
        },
        {
          "const": "spotlight",
          "description": "Customer / community spotlight.",
          "type": "string"
        }
      ]
    },
    "ContentPerformance": {
      "description": "Performance metrics snapshot.",
      "properties": {
        "avg_dwell_seconds": {
          "format": "double",
          "type": "number"
        },
        "backlinks": {
          "format": "int32",
          "type": "integer"
        },
        "conversions": {
          "description": "Conversions attributed to this asset.",
          "format": "int32",
          "type": "integer"
        },
        "social_shares": {
          "format": "int32",
          "type": "integer"
        },
        "unique_visitors": {
          "format": "int64",
          "type": "integer"
        },
        "views": {
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "views",
        "unique_visitors",
        "avg_dwell_seconds",
        "social_shares",
        "backlinks",
        "conversions"
      ],
      "type": "object"
    },
    "ContentStatus": {
      "description": "Content status.",
      "oneOf": [
        {
          "enum": [
            "drafting",
            "in_review",
            "approved",
            "scheduled",
            "published",
            "archived"
          ],
          "type": "string"
        },
        {
          "const": "updated",
          "description": "Updated / republished.",
          "type": "string"
        },
        {
          "const": "unpublished",
          "description": "Unpublished / taken down.",
          "type": "string"
        }
      ]
    },
    "IsoDate": {
      "description": "ISO 8601 date (YYYY-MM-DD).",
      "format": "date",
      "type": "string"
    },
    "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"
    },
    "PublicationChannel": {
      "description": "Publication channel.",
      "oneOf": [
        {
          "const": "owned_website",
          "description": "Own website / blog.",
          "type": "string"
        },
        {
          "const": "linked_in",
          "description": "Social — LinkedIn.",
          "type": "string"
        },
        {
          "const": "x",
          "description": "Social — X.",
          "type": "string"
        },
        {
          "const": "bluesky",
          "description": "Social — Bluesky.",
          "type": "string"
        },
        {
          "const": "mastodon",
          "description": "Social — Mastodon.",
          "type": "string"
        },
        {
          "const": "you_tube",
          "description": "YouTube.",
          "type": "string"
        },
        {
          "const": "spotify",
          "description": "Spotify.",
          "type": "string"
        },
        {
          "const": "apple_podcasts",
          "description": "Apple Podcasts.",
          "type": "string"
        },
        {
          "const": "git_hub",
          "description": "GitHub.",
          "type": "string"
        },
        {
          "const": "hacker_news",
          "description": "Hacker News.",
          "type": "string"
        },
        {
          "const": "reddit",
          "description": "Reddit.",
          "type": "string"
        },
        {
          "const": "press_wire",
          "description": "Press / news wire.",
          "type": "string"
        },
        {
          "const": "conference",
          "description": "Conference programme.",
          "type": "string"
        },
        {
          "const": "external_publication",
          "description": "External publication (Substack, Medium, Forbes).",
          "type": "string"
        },
        {
          "const": "partner_channel",
          "description": "Customer / partner channel.",
          "type": "string"
        }
      ]
    }
  },
  "$id": "https://corpospec.com/schemas/v0.16.0/content-asset.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Content-asset record.",
  "properties": {
    "approver": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "Approver / editor."
    },
    "author": {
      "$ref": "#/$defs/PathRef",
      "description": "Primary author (PathRef into people)."
    },
    "brand_voice_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef to the related BDR (e.g. brand voice)."
    },
    "campaign_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef to the campaign this asset belongs to."
    },
    "co_authors": {
      "description": "Co-authors / contributors.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "confidentiality": {
      "$ref": "#/$defs/Confidentiality"
    },
    "entity": {
      "$ref": "#/$defs/PathRef"
    },
    "gated": {
      "description": "Whether the asset is gated (requires form submission).",
      "type": "boolean"
    },
    "id": {
      "$ref": "#/$defs/PathRef"
    },
    "kind": {
      "$ref": "#/$defs/ContentKind"
    },
    "last_updated_on": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoDate"
        },
        {
          "type": "null"
        }
      ],
      "description": "Last meaningful update."
    },
    "performance": {
      "$ref": "#/$defs/ContentPerformance"
    },
    "primary_channel": {
      "$ref": "#/$defs/PublicationChannel",
      "description": "Channel of first publication."
    },
    "published_on": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoDate"
        },
        {
          "type": "null"
        }
      ],
      "description": "Actual publication date."
    },
    "scheduled_for": {
      "$ref": "#/$defs/IsoDate",
      "description": "Date scheduled for publication."
    },
    "secondary_channels": {
      "description": "Cross-posted channels.",
      "items": {
        "$ref": "#/$defs/PublicationChannel"
      },
      "type": "array"
    },
    "status": {
      "$ref": "#/$defs/ContentStatus"
    },
    "summary": {
      "type": "string"
    },
    "target_audience": {
      "description": "Target audience (free-form).",
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "topic_tags": {
      "description": "Topic tags.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "url": {
      "description": "Canonical URL.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "entity",
    "kind",
    "status",
    "title",
    "summary",
    "author",
    "primary_channel",
    "url",
    "scheduled_for",
    "target_audience",
    "gated",
    "performance",
    "confidentiality"
  ],
  "title": "ContentAsset",
  "type": "object",
  "x-corpospec-pillar": "knowledge"
}