{
  "$defs": {
    "DiligenceStatus": {
      "description": "Status of counterparty privacy diligence (IAB Diligence Platform).",
      "enum": [
        "unknown",
        "pending",
        "passed",
        "failed"
      ],
      "title": "DiligenceStatus",
      "type": "string"
    }
  },
  "description": "Privacy consent signals that travel with a deal (flagged decision FD-10).\n\nFull build-out (EP-10.4) of the EP-1.2 placeholder: the three\ninteroperable consent-string carriers \u2014 GPP (Global Privacy Platform)\nwith its applicable section ids, TCF (Transparency & Consent Framework)\nwith the ``gdpr_applies`` gate, and the US Privacy (``us_privacy``)\nstring \u2014 plus the SGP (SafeGuard Privacy / IAB Diligence Platform)\n``diligence_status``. Field names from the EP-1.2 placeholder are kept\nunchanged for backward compatibility; the build-out is purely additive.\nIt travels with the Deal, Quote, and Order. Strings are carried opaque:\nno decoding/vendor-list validation is claimed (see the conformance\nstandards registry).",
  "properties": {
    "applicable_regimes": {
      "description": "Privacy regime identifiers in scope (e.g. 'GDPR', 'CCPA').",
      "items": {
        "type": "string"
      },
      "title": "Applicable Regimes",
      "type": "array"
    },
    "diligence_status": {
      "$ref": "#/$defs/DiligenceStatus",
      "default": "unknown",
      "description": "Counterparty diligence status (SGP = SafeGuard Privacy / IAB Diligence Platform)."
    },
    "gdpr_applies": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Whether GDPR (EU General Data Protection Regulation) applies to this context; None when undetermined. Gates interpretation of the TCF string.",
      "title": "Gdpr Applies"
    },
    "gpp_section_ids": {
      "description": "GPP section ids present in the string.",
      "items": {
        "type": "integer"
      },
      "title": "Gpp Section Ids",
      "type": "array"
    },
    "gpp_string": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "GPP (Global Privacy Platform) consent string.",
      "title": "Gpp String"
    },
    "tcf_string": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "TCF (Transparency & Consent Framework) TC string, when GDPR applies.",
      "title": "Tcf String"
    },
    "us_privacy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "US Privacy (CCPA) string, e.g. '1YNN'; superseded by GPP where present.",
      "title": "Us Privacy"
    },
    "verified_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Timezone-aware timestamp of the last diligence verification, if any.",
      "title": "Verified At"
    }
  },
  "title": "ConsentContext",
  "type": "object"
}
