{
  "$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"
        }
      ]
    },
    "IsoCountry": {
      "description": "ISO 3166-1 alpha-2 country code.",
      "pattern": "^[A-Z]{2}$",
      "type": "string"
    },
    "IsoCurrency": {
      "description": "ISO 4217 currency code.",
      "pattern": "^[A-Z]{3}$",
      "type": "string"
    },
    "IsoDate": {
      "description": "ISO 8601 date (YYYY-MM-DD).",
      "format": "date",
      "type": "string"
    },
    "LitigationKind": {
      "description": "Dispute / case category.",
      "oneOf": [
        {
          "enum": [
            "other"
          ],
          "type": "string"
        },
        {
          "const": "commercial",
          "description": "Commercial dispute (supplier / customer).",
          "type": "string"
        },
        {
          "const": "employment",
          "description": "Employment (wrongful termination, discrimination).",
          "type": "string"
        },
        {
          "const": "intellectual_property",
          "description": "Intellectual property (infringement, opposition).",
          "type": "string"
        },
        {
          "const": "privacy_enforcement",
          "description": "Privacy / data-protection enforcement (Art. 83 GDPR fine).",
          "type": "string"
        },
        {
          "const": "regulatory_enforcement",
          "description": "Regulatory enforcement (BaFin, FCA, SEC).",
          "type": "string"
        },
        {
          "const": "antitrust",
          "description": "Antitrust / competition.",
          "type": "string"
        },
        {
          "const": "tax_dispute",
          "description": "Tax dispute / audit.",
          "type": "string"
        },
        {
          "const": "shareholder",
          "description": "Shareholder / governance dispute.",
          "type": "string"
        },
        {
          "const": "product_liability",
          "description": "Product liability.",
          "type": "string"
        },
        {
          "const": "class_action",
          "description": "Class action.",
          "type": "string"
        },
        {
          "const": "investigation",
          "description": "Investigation (criminal / regulatory).",
          "type": "string"
        }
      ]
    },
    "LitigationRole": {
      "description": "Position in the dispute.",
      "oneOf": [
        {
          "enum": [
            "claimant",
            "defendant"
          ],
          "type": "string"
        },
        {
          "const": "third_party",
          "description": "Third-party witness / contributor.",
          "type": "string"
        }
      ]
    },
    "LitigationStatus": {
      "description": "Case lifecycle.",
      "oneOf": [
        {
          "enum": [
            "discovery",
            "in_trial",
            "in_appeal",
            "settled",
            "closed",
            "withdrawn"
          ],
          "type": "string"
        },
        {
          "const": "pre_action",
          "description": "Pre-action (cease-and-desist / negotiation).",
          "type": "string"
        },
        {
          "const": "filed",
          "description": "Formal complaint filed.",
          "type": "string"
        },
        {
          "const": "in_adr",
          "description": "In arbitration / mediation.",
          "type": "string"
        },
        {
          "const": "judgement",
          "description": "Judgement / decision rendered.",
          "type": "string"
        }
      ]
    },
    "OutcomeLikelihood": {
      "description": "Outcome likelihood per IAS 37.",
      "oneOf": [
        {
          "const": "remote",
          "description": "Remote (<10%) — IAS 37: no disclosure required.",
          "type": "string"
        },
        {
          "const": "possible",
          "description": "Possible (10–50%) — disclose as contingent liability.",
          "type": "string"
        },
        {
          "const": "probable",
          "description": "Probable (>50%) — provision required if reliably estimable.",
          "type": "string"
        },
        {
          "const": "virtually_certain",
          "description": "Virtually certain (≥95%) — recognise as liability.",
          "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"
    }
  },
  "$id": "https://corpospec.com/schemas/v0.16.0/litigation.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Litigation record.",
  "properties": {
    "accrued_provision": {
      "description": "Accrued provision under IAS 37 (None if not yet provisioned).",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "case_number": {
      "description": "Case / docket number.",
      "type": [
        "string",
        "null"
      ]
    },
    "claim_amount": {
      "description": "Claim amount (claimant) or exposure (defendant).",
      "format": "double",
      "type": "number"
    },
    "closed_at": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoDate"
        },
        {
          "type": "null"
        }
      ]
    },
    "confidentiality": {
      "$ref": "#/$defs/Confidentiality"
    },
    "counterparty": {
      "description": "Counterparty name (free-form).",
      "type": "string"
    },
    "counterparty_jurisdiction": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoCountry"
        },
        {
          "type": "null"
        }
      ],
      "description": "Counterparty jurisdiction."
    },
    "currency": {
      "$ref": "#/$defs/IsoCurrency"
    },
    "document_refs": {
      "description": "PathRefs to case-related documents.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "entity": {
      "$ref": "#/$defs/PathRef"
    },
    "external_counsel": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "External counsel (PathRef to vendor record)."
    },
    "forum": {
      "description": "Court / forum (e.g. \"Landgericht Berlin\", \"ICC arbitration\",\n\"BaFin\", \"AG Tiergarten\").",
      "type": "string"
    },
    "id": {
      "$ref": "#/$defs/PathRef"
    },
    "internal_owner": {
      "$ref": "#/$defs/PathRef",
      "description": "Internal sponsor."
    },
    "jurisdiction": {
      "$ref": "#/$defs/IsoCountry"
    },
    "kind": {
      "$ref": "#/$defs/LitigationKind"
    },
    "material_for_disclosure": {
      "description": "Whether the case is material enough for IR / board disclosure.",
      "type": "boolean"
    },
    "opened_at": {
      "$ref": "#/$defs/IsoDate"
    },
    "outcome_likelihood": {
      "$ref": "#/$defs/OutcomeLikelihood"
    },
    "related_ref": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef to related security incident, regulatory filing, etc."
    },
    "role": {
      "$ref": "#/$defs/LitigationRole"
    },
    "status": {
      "$ref": "#/$defs/LitigationStatus"
    },
    "summary": {
      "description": "Description summary.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "entity",
    "kind",
    "role",
    "status",
    "counterparty",
    "forum",
    "jurisdiction",
    "currency",
    "claim_amount",
    "outcome_likelihood",
    "internal_owner",
    "opened_at",
    "material_for_disclosure",
    "summary",
    "confidentiality"
  ],
  "title": "Litigation",
  "type": "object",
  "x-corpospec-pillar": "legal"
}