{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rsnc-network/json-schema/rsnc-network-event-request-schema.json",
  "title": "EventRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rsnc-network-openapi.yml#/components/schemas/EventRequest",
  "type": "object",
  "required": [
    "brandId",
    "eventType",
    "userEmail"
  ],
  "properties": {
    "brandId": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "Your brand wallet address (42 characters, starts with 0x)"
    },
    "eventType": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_]{1,50}$",
      "description": "Event type identifier (alphanumeric + underscore, max 50 chars)"
    },
    "userEmail": {
      "type": "string",
      "format": "email",
      "maxLength": 254,
      "description": "User's email address (RFC 5322 compliant)"
    },
    "domain": {
      "type": "string",
      "maxLength": 253,
      "description": "Your website domain (extracted from sourceUrl if not provided)"
    },
    "sourceUrl": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "URL where the event occurred"
    },
    "userIdentifier": {
      "type": "string",
      "description": "Alternative identifier (email or Ethereum address)"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "description": "Additional event data"
    }
  }
}