{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aveco-app/json-schema/aveco-app-consent-body-schema.json",
  "title": "ConsentBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aveco-app-compliance-api-openapi.yml#/components/schemas/ConsentBody",
  "properties": {
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone"
    },
    "telegram": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Telegram"
    },
    "channel": {
      "type": "string",
      "title": "Channel",
      "default": "all"
    },
    "event_type": {
      "type": "string",
      "title": "Event Type",
      "default": "consent_given"
    },
    "legal_basis": {
      "type": "string",
      "title": "Legal Basis",
      "default": "consent"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note"
    }
  },
  "type": "object"
}