{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-consent-request-schema.json",
  "title": "ConsentRequest",
  "description": "Record the subject's biometric consent (BIPA/GDPR) before liveness/face-match. `method` must state honestly how consent was obtained.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-liveness-biometrics-api-openapi.yml#/components/schemas/ConsentRequest",
  "type": "object",
  "required": [
    "method"
  ],
  "properties": {
    "method": {
      "type": "string",
      "description": "e.g. ui_checkbox, api_explicit_flag."
    },
    "purpose": {
      "type": "string",
      "description": "Defaults to the standard biometric-verification purpose."
    }
  }
}