{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eon.io/json-schema/eon.io-affiliate-redeem-request-schema.json",
  "title": "AffiliateRedeemRequest",
  "description": "An affiliate link being followed: an address, the solved challenge, a\npassword only on local consoles, and optionally what the person is building.",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/console-era-openapi.json#/components/schemas/AffiliateRedeemRequest",
  "properties": {
    "first_name": {
      "type": "string",
      "maxLength": 120,
      "title": "First Name",
      "default": ""
    },
    "last_name": {
      "type": "string",
      "maxLength": 120,
      "title": "Last Name",
      "default": ""
    },
    "utm_source": {
      "type": "string",
      "maxLength": 256,
      "title": "Utm Source",
      "default": ""
    },
    "utm_medium": {
      "type": "string",
      "maxLength": 256,
      "title": "Utm Medium",
      "default": ""
    },
    "utm_campaign": {
      "type": "string",
      "maxLength": 256,
      "title": "Utm Campaign",
      "default": ""
    },
    "utm_content": {
      "type": "string",
      "maxLength": 256,
      "title": "Utm Content",
      "default": ""
    },
    "utm_term": {
      "type": "string",
      "maxLength": 256,
      "title": "Utm Term",
      "default": ""
    },
    "affiliate_code": {
      "type": "string",
      "maxLength": 64,
      "title": "Affiliate Code",
      "default": ""
    },
    "landing_url": {
      "type": "string",
      "maxLength": 2048,
      "title": "Landing Url",
      "default": ""
    },
    "referrer": {
      "type": "string",
      "maxLength": 2048,
      "title": "Referrer",
      "default": ""
    },
    "ai_tool": {
      "type": "string",
      "maxLength": 32,
      "title": "Ai Tool",
      "default": ""
    },
    "email": {
      "type": "string",
      "maxLength": 254,
      "title": "Email"
    },
    "password": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Password"
    },
    "challenge": {
      "type": "string",
      "maxLength": 8192,
      "title": "Challenge",
      "default": ""
    },
    "company": {
      "type": "string",
      "maxLength": 120,
      "title": "Company",
      "default": ""
    },
    "purpose": {
      "type": "string",
      "maxLength": 1000,
      "title": "Purpose",
      "default": ""
    },
    "use_case": {
      "type": "string",
      "enum": [
        "",
        "evaluate",
        "train",
        "demo",
        "explore"
      ],
      "title": "Use Case",
      "default": ""
    },
    "accept_terms": {
      "type": "boolean",
      "title": "Accept Terms",
      "default": false
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "email"
  ]
}