{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financegenius-ai/json-schema/financegenius-ai-consent-in-schema.json",
  "title": "ConsentIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financegenius-ai-crm-attribution-api-openapi.yml#/components/schemas/ConsentIn",
  "properties": {
    "choice": {
      "type": "string",
      "enum": [
        "granted",
        "declined"
      ],
      "title": "Choice"
    },
    "language": {
      "type": "string",
      "maxLength": 12,
      "title": "Language",
      "default": "en"
    },
    "shown_sha256": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shown Sha256"
    },
    "visitor_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Visitor Id"
    },
    "visitor_token": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Visitor Token"
    },
    "initiated_by": {
      "type": "string",
      "enum": [
        "finmall_prompt",
        "customer"
      ],
      "title": "Initiated By",
      "default": "finmall_prompt"
    },
    "ui_surface": {
      "type": "string",
      "enum": [
        "cookie-banner",
        "cookie-settings"
      ],
      "title": "Ui Surface",
      "default": "cookie-banner"
    },
    "surface": {
      "type": "string",
      "enum": [
        "web",
        "app"
      ],
      "title": "Surface",
      "default": "web"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "choice"
  ]
}