{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/magicmaster-pro/json-schema/magicmaster-pro-register-request-schema.json",
  "title": "RegisterRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/magicmaster-pro-openapi.yml#/components/schemas/RegisterRequest",
  "properties": {
    "email": {
      "type": "string",
      "title": "Email"
    },
    "password": {
      "type": "string",
      "title": "Password"
    },
    "ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ref"
    },
    "acq": {
      "anyOf": [
        {
          "$ref": "#/$defs/AcquisitionInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaign": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Campaign"
    },
    "pd_consent": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pd Consent"
    },
    "news_optin": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "News Optin"
    }
  },
  "type": "object",
  "required": [
    "email",
    "password"
  ],
  "$defs": {
    "AcquisitionInfo": {
      "properties": {
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source"
        },
        "medium": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Medium"
        },
        "campaign": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Campaign"
        },
        "ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ref"
        },
        "referrer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Referrer"
        },
        "landing": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Landing"
        },
        "first_seen": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Seen"
        }
      },
      "type": "object",
      "title": "AcquisitionInfo",
      "description": "Первое касание: откуда человек пришёл в первый раз.\n\nСобирается фронтом при первом визите и лежит в localStorage до регистрации.\nВсё необязательно: если человек пришёл напрямую, полей просто нет."
    }
  }
}