{
  "$defs": {
    "BoardRepresentation": {
      "description": "Board / observer-seat representation.",
      "oneOf": [
        {
          "enum": [
            "none"
          ],
          "type": "string"
        },
        {
          "const": "board_seat",
          "description": "Voting board seat (Aufsichtsrat / Beirat / Board).",
          "type": "string"
        },
        {
          "const": "observer_seat",
          "description": "Observer seat (no vote).",
          "type": "string"
        },
        {
          "const": "board_chair",
          "description": "Board chair.",
          "type": "string"
        }
      ]
    },
    "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"
        }
      ]
    },
    "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"
    },
    "ShareholderHolding": {
      "description": "Per-class holding line.",
      "properties": {
        "cost_basis": {
          "description": "Acquisition cost basis (currency-of-issue).",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "share_class": {
          "$ref": "#/$defs/PathRef",
          "description": "PathRef to share class (entity/share_classes/<slug>)."
        },
        "units": {
          "description": "Number of shares / units (issued + vested).",
          "format": "double",
          "type": "number"
        },
        "vesting": {
          "description": "Whether vesting applies.",
          "type": "boolean"
        },
        "vesting_schedule": {
          "anyOf": [
            {
              "$ref": "#/$defs/PathRef"
            },
            {
              "type": "null"
            }
          ],
          "description": "PathRef to vesting schedule."
        },
        "voting_units": {
          "description": "Voting units (1:1 for common; weighted for super-voting).",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "share_class",
        "units",
        "voting_units",
        "vesting"
      ],
      "type": "object"
    },
    "ShareholderKind": {
      "description": "Shareholder party kind.",
      "oneOf": [
        {
          "enum": [
            "founder",
            "employee",
            "advisor",
            "other"
          ],
          "type": "string"
        },
        {
          "const": "friends_and_family",
          "description": "Friends & family round investor.",
          "type": "string"
        },
        {
          "const": "angel",
          "description": "Angel investor.",
          "type": "string"
        },
        {
          "const": "venture_capital",
          "description": "Institutional VC fund.",
          "type": "string"
        },
        {
          "const": "private_equity",
          "description": "Private equity / growth fund.",
          "type": "string"
        },
        {
          "const": "strategic",
          "description": "Strategic corporate investor / CVC.",
          "type": "string"
        },
        {
          "const": "family_office",
          "description": "Family office.",
          "type": "string"
        },
        {
          "const": "government",
          "description": "Government / public-grant body.",
          "type": "string"
        },
        {
          "const": "treasury",
          "description": "Treasury-stock holder (the issuing entity itself).",
          "type": "string"
        },
        {
          "const": "holding_company",
          "description": "Holding-company / SPV intermediary.",
          "type": "string"
        },
        {
          "const": "public",
          "description": "Retail / unidentified public shareholder.",
          "type": "string"
        },
        {
          "const": "trust",
          "description": "Trust.",
          "type": "string"
        },
        {
          "const": "foundation",
          "description": "Foundation / charity.",
          "type": "string"
        }
      ]
    },
    "ShareholderStatus": {
      "description": "Lifecycle.",
      "oneOf": [
        {
          "const": "active",
          "description": "Active / current.",
          "type": "string"
        },
        {
          "const": "exited",
          "description": "Fully exited (no remaining shares).",
          "type": "string"
        },
        {
          "const": "escrow",
          "description": "In escrow (e.g. founder shares vesting / lock-up).",
          "type": "string"
        },
        {
          "const": "sanctioned",
          "description": "Sanctioned (rights frozen).",
          "type": "string"
        }
      ]
    }
  },
  "$id": "https://corpospec.com/schemas/v0.16.0/shareholder.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Shareholder record.",
  "properties": {
    "board_representation": {
      "$ref": "#/$defs/BoardRepresentation"
    },
    "confidentiality": {
      "$ref": "#/$defs/Confidentiality"
    },
    "entity": {
      "$ref": "#/$defs/PathRef",
      "description": "PathRef to the entity whose equity is held."
    },
    "exited_at": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoDate"
        },
        {
          "type": "null"
        }
      ]
    },
    "fully_diluted_economic_pct": {
      "description": "Total economic pct on a fully-diluted basis.",
      "format": "double",
      "type": "number"
    },
    "fully_diluted_voting_pct": {
      "description": "Total voting pct on a fully-diluted basis.",
      "format": "double",
      "type": "number"
    },
    "holdings": {
      "items": {
        "$ref": "#/$defs/ShareholderHolding"
      },
      "type": "array"
    },
    "id": {
      "$ref": "#/$defs/PathRef"
    },
    "kind": {
      "$ref": "#/$defs/ShareholderKind"
    },
    "onboarded_at": {
      "$ref": "#/$defs/IsoDate"
    },
    "party": {
      "$ref": "#/$defs/PathRef",
      "description": "PathRef to the party (person or other entity)."
    },
    "protective_provisions": {
      "description": "PathRefs to consent / protective provisions held by this\nshareholder (e.g. veto rights).",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "shareholder_agreement_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef to shareholder agreement."
    },
    "status": {
      "$ref": "#/$defs/ShareholderStatus"
    },
    "transfer_restriction_summary": {
      "description": "Transfer-restriction summary (e.g. lock-up until 2027-01-01).",
      "type": [
        "string",
        "null"
      ]
    },
    "ubo_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef to UBO record (if applicable)."
    }
  },
  "required": [
    "id",
    "entity",
    "party",
    "kind",
    "status",
    "holdings",
    "fully_diluted_voting_pct",
    "fully_diluted_economic_pct",
    "board_representation",
    "onboarded_at",
    "confidentiality"
  ],
  "title": "Shareholder",
  "type": "object",
  "x-corpospec-pillar": "entity"
}