{
 "components": {
  "headers": {
   "Retry-After": {
    "description": "Через сколько секунд повторить",
    "schema": {
     "type": "integer"
    }
   },
   "X-Next-Cursor": {
    "description": "Курсор следующей страницы (нет — это последняя); непрозрачный",
    "schema": {
     "type": "string"
    }
   }
  },
  "responses": {
   "Internal": {
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    },
    "description": "Ошибка сервиса: в message — код запроса (он же X-Request-Id)"
   }
  },
  "schemas": {
   "Achievement": {
    "additionalProperties": true,
    "type": "object"
   },
   "AmGame": {
    "properties": {
     "away": {
      "items": {
       "$ref": "#/components/schemas/AmPlayer"
      },
      "title": "Away",
      "type": "array"
     },
     "away_team": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Away Team"
     },
     "court": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Court"
     },
     "court_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Court Id"
     },
     "home": {
      "description": "кто в первой паре",
      "items": {
       "$ref": "#/components/schemas/AmPlayer"
      },
      "title": "Home",
      "type": "array"
     },
     "home_team": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "пара раунда (команда со статусом pair) — сторона матча",
      "title": "Home Team"
     },
     "match": {
      "title": "Match",
      "type": "string"
     },
     "points": {
      "anyOf": [
       {
        "items": {
         "type": "integer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "очки пар: итог или идущий счёт судьи; null — не начат",
      "title": "Points"
     },
     "status": {
      "enum": [
       "scheduled",
       "live",
       "done",
       "cancelled"
      ],
      "title": "Status",
      "type": "string"
     },
     "winner": {
      "anyOf": [
       {
        "enum": [
         "home",
         "away",
         "draw"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Winner"
     }
    },
    "required": [
     "match",
     "status",
     "court",
     "court_id",
     "home_team",
     "away_team",
     "home",
     "away",
     "points",
     "winner"
    ],
    "title": "AmGame",
    "type": "object"
   },
   "AmNext": {
    "properties": {
     "court": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Court"
     },
     "match": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Match"
     },
     "opponents": {
      "items": {
       "$ref": "#/components/schemas/AmPlayer"
      },
      "title": "Opponents",
      "type": "array"
     },
     "partner": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmPlayer"
       },
       {
        "type": "null"
       }
      ]
     },
     "rest": {
      "description": "в этом раунде игрок отдыхает",
      "title": "Rest",
      "type": "boolean"
     },
     "round": {
      "title": "Round",
      "type": "integer"
     },
     "squad": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmSquad"
       },
       {
        "type": "null"
       }
      ],
      "description": "своя команда игрока"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     },
     "status": {
      "title": "Status",
      "type": "string"
     }
    },
    "required": [
     "round",
     "match",
     "court",
     "status",
     "starts_at",
     "partner",
     "opponents",
     "rest"
    ],
    "title": "AmNext",
    "type": "object"
   },
   "AmPlayer": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "AmPlayer",
    "type": "object"
   },
   "AmRound": {
    "properties": {
     "called": {
      "default": false,
      "description": "раунд вызван на корты («Вызвать раунд»)",
      "title": "Called",
      "type": "boolean"
     },
     "closed": {
      "default": false,
      "description": "раунд закрыт («Закрыть раунд» или, в режиме auto, сыграны все матчи)",
      "title": "Closed",
      "type": "boolean"
     },
     "games": {
      "items": {
       "$ref": "#/components/schemas/AmGame"
      },
      "title": "Games",
      "type": "array"
     },
     "rest": {
      "description": "кто отдыхает в этом раунде",
      "items": {
       "$ref": "#/components/schemas/AmPlayer"
      },
      "title": "Rest",
      "type": "array"
     },
     "round": {
      "title": "Round",
      "type": "integer"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     },
     "status": {
      "enum": [
       "scheduled",
       "live",
       "done"
      ],
      "title": "Status",
      "type": "string"
     }
    },
    "required": [
     "round",
     "starts_at",
     "status",
     "games",
     "rest"
    ],
    "title": "AmRound",
    "type": "object"
   },
   "AmRow": {
    "properties": {
     "diff": {
      "description": "личная разница: свои очки минус очки соперников",
      "title": "Diff",
      "type": "integer"
     },
     "draws": {
      "title": "Draws",
      "type": "integer"
     },
     "form": {
      "description": "W / D / L по порядку матчей",
      "title": "Form",
      "type": "string"
     },
     "losses": {
      "title": "Losses",
      "type": "integer"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "pair": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "парный Round Robin: ключ постоянной пары игрока (место — у пары); у остальных форматов поля нет",
      "title": "Pair"
     },
     "partner": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmPlayer"
       },
       {
        "type": "null"
       }
      ],
      "description": "парный Round Robin: партнёр по постоянной паре"
     },
     "person": {
      "title": "Person",
      "type": "string"
     },
     "place": {
      "title": "Place",
      "type": "integer"
     },
     "played": {
      "title": "Played",
      "type": "integer"
     },
     "points": {
      "description": "сумма очков игрока за все раунды",
      "title": "Points",
      "type": "integer"
     },
     "rests": {
      "description": "сколько сыгранных раундов игрок отдыхал",
      "title": "Rests",
      "type": "integer"
     },
     "seat_of": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmPlayer"
       },
       {
        "type": "null"
       }
      ],
      "description": "заменил игрока: продолжает его место (пирамида Мексикано и делитель зачёта), его очки — в строке ушедшего; null — не замена"
     },
     "squad": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmSquad"
       },
       {
        "type": "null"
       }
      ],
      "description": "команда игрока; null — без команды (в зачёт не идёт)"
     },
     "team": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "запись игрока (команда из одного)",
      "title": "Team"
     },
     "wins": {
      "title": "Wins",
      "type": "integer"
     }
    },
    "required": [
     "place",
     "person",
     "team",
     "name",
     "points",
     "played",
     "wins",
     "draws",
     "losses",
     "diff",
     "rests",
     "form"
    ],
    "title": "AmRow",
    "type": "object"
   },
   "AmSquad": {
    "properties": {
     "id": {
      "description": "команда — компания co-… (та же, что «Команды на мониторах»: цвет и логотип)",
      "title": "Id",
      "type": "string"
     },
     "kind": {
      "description": "company — компания; community — комьюнити («Кубок комьюнити»)",
      "enum": [
       "company",
       "community"
      ],
      "title": "Kind",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name",
     "kind"
    ],
    "title": "AmSquad",
    "type": "object"
   },
   "AmSquadCount": {
    "properties": {
     "id": {
      "description": "команда — компания co-… (та же, что «Команды на мониторах»: цвет и логотип)",
      "title": "Id",
      "type": "string"
     },
     "kind": {
      "description": "company — компания; community — комьюнити («Кубок комьюнити»)",
      "enum": [
       "company",
       "community"
      ],
      "title": "Kind",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "players": {
      "title": "Players",
      "type": "integer"
     }
    },
    "required": [
     "id",
     "name",
     "kind",
     "players"
    ],
    "title": "AmSquadCount",
    "type": "object"
   },
   "AmTeamBadge": {
    "description": "Значок команды — тот же, что на мониторах: логотип или монограмма в цвете палитры брендбука.",
    "properties": {
     "logo": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "логотип команды /api/v1/media/files/<хеш>-screen.webp — только если разрешение компании покрывает сайт; иначе null и монограмма",
      "title": "Logo"
     },
     "mono": {
      "description": "монограмма: первые буквы двух слов названия без формы юрлица и кавычек («БП»)",
      "title": "Mono",
      "type": "string"
     },
     "tone": {
      "description": "цвет команды — ключ палитры брендбука; клиент рисует его своим цветом, без hex",
      "enum": [
       "lavender",
       "cyan",
       "teal",
       "orange",
       "yellow"
      ],
      "title": "Tone",
      "type": "string"
     }
    },
    "required": [
     "tone",
     "mono",
     "logo"
    ],
    "title": "AmTeamBadge",
    "type": "object"
   },
   "AmTeamMember": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "AmTeamMember",
    "type": "object"
   },
   "AmTeamRow": {
    "properties": {
     "avg": {
      "description": "среднее очков на игрока — основной критерий зачёта",
      "title": "Avg",
      "type": "number"
     },
     "badge": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmTeamBadge"
       },
       {
        "type": "null"
       }
      ],
      "description": "значок команды: логотип или монограмма в цвете команды"
     },
     "diff": {
      "title": "Diff",
      "type": "integer"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "kind": {
      "enum": [
       "company",
       "community"
      ],
      "title": "Kind",
      "type": "string"
     },
     "members": {
      "items": {
       "$ref": "#/components/schemas/AmTeamMember"
      },
      "title": "Members",
      "type": "array"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "place": {
      "title": "Place",
      "type": "integer"
     },
     "played": {
      "title": "Played",
      "type": "integer"
     },
     "players": {
      "description": "мест команды в турнире (все записанные; заменивший и ушедший — одно место)",
      "title": "Players",
      "type": "integer"
     },
     "points": {
      "description": "сумма очков игроков команды",
      "title": "Points",
      "type": "integer"
     },
     "wins": {
      "title": "Wins",
      "type": "integer"
     }
    },
    "required": [
     "place",
     "id",
     "name",
     "kind",
     "players",
     "points",
     "avg",
     "wins",
     "diff",
     "played",
     "members"
    ],
    "title": "AmTeamRow",
    "type": "object"
   },
   "Americano": {
    "description": "Американо и Мексикано (docs/spec/americano.md): игроки по одному, пары меняются каждый раунд, матч — до N очков.",
    "properties": {
     "alone": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/AmPlayer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "парный Round Robin до «Начать»: записанные без пары (нечётный список) — «Начать» ответит 409 PAIR_MISSING; у остальных форматов null",
      "title": "Alone"
     },
     "close_rounds": {
      "default": "auto",
      "description": "кто закрывает раунд: оператор («Стол») или последний итог раунда",
      "enum": [
       "operator",
       "auto"
      ],
      "title": "Close Rounds",
      "type": "string"
     },
     "cup": {
      "description": "«Кубок комьюнити»: id лидера среди комьюнити (при равенстве — все)",
      "items": {
       "type": "string"
      },
      "title": "Cup",
      "type": "array"
     },
     "my_next": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmNext"
       },
       {
        "type": "null"
       }
      ],
      "description": "«мой следующий матч» зрителя-игрока: корт, партнёр, соперники или отдых"
     },
     "my_squad": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AmSquad"
       },
       {
        "type": "null"
       }
      ],
      "description": "команда зрителя-игрока"
     },
     "pairs": {
      "anyOf": [
       {
        "items": {
         "items": {
          "$ref": "#/components/schemas/AmPlayer"
         },
         "type": "array"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "парный Round Robin: постоянные пары (до «Начать» — какими их составит расписание); у остальных форматов null",
      "title": "Pairs"
     },
     "players": {
      "title": "Players",
      "type": "integer"
     },
     "points_to": {
      "description": "розыгрышей в матче: 16, 21, 24 или 32; счёт пар в сумме даёт N (при scoring = games не используется)",
      "title": "Points To",
      "type": "integer"
     },
     "rank": {
      "default": "points_wins",
      "description": "ключ таблицы: очки → победы → разница; очки → разница → победы; разница → очки → победы; победы → разница → личные встречи → геймы (парный Round Robin)",
      "enum": [
       "points_wins",
       "points_diff",
       "diff_points",
       "wins_diff"
      ],
      "title": "Rank",
      "type": "string"
     },
     "round_current": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Round Current"
     },
     "rounds": {
      "items": {
       "$ref": "#/components/schemas/AmRound"
      },
      "title": "Rounds",
      "type": "array"
     },
     "rounds_called": {
      "default": 0,
      "description": "номер последнего вызванного раунда; 0 — ни одного",
      "title": "Rounds Called",
      "type": "integer"
     },
     "rounds_closed": {
      "default": 0,
      "description": "номер последнего закрытого раунда; 0 — ни одного",
      "title": "Rounds Closed",
      "type": "integer"
     },
     "rounds_total": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Rounds Total"
     },
     "scoring": {
      "default": "points",
      "description": "points — матч до N розыгрышей (досчёт второй цифры); games — по геймам, два числа без досчёта (парный Round Robin)",
      "enum": [
       "points",
       "games"
      ],
      "title": "Scoring",
      "type": "string"
     },
     "seed": {
      "default": "list",
      "description": "посев первого раунда Мексикано, King и Escalera; random — случайно (тот же порядок до и после «Начать»)",
      "enum": [
       "list",
       "level",
       "elo",
       "random"
      ],
      "title": "Seed",
      "type": "string"
     },
     "seed_chosen": {
      "default": false,
      "description": "посев закреплён в турнире: выбран организатором в листе «Начать» или записан при «Начать»; false — умолчание (по уровню из списка, если он есть больше чем у половины записанных)",
      "title": "Seed Chosen",
      "type": "boolean"
     },
     "squads": {
      "description": "команды турнира (компании и комьюнити)",
      "items": {
       "$ref": "#/components/schemas/AmSquadCount"
      },
      "title": "Squads",
      "type": "array"
     },
     "table": {
      "description": "индивидуальная таблица в порядке ключа таблицы rank",
      "items": {
       "$ref": "#/components/schemas/AmRow"
      },
      "title": "Table",
      "type": "array"
     },
     "teams": {
      "description": "командный зачёт: среднее на игрока → победы → разница",
      "items": {
       "$ref": "#/components/schemas/AmTeamRow"
      },
      "title": "Teams",
      "type": "array"
     }
    },
    "required": [
     "points_to",
     "rounds_total",
     "round_current",
     "rounds",
     "table",
     "my_next",
     "players"
    ],
    "title": "Americano",
    "type": "object"
   },
   "AwardCategory": {
    "properties": {
     "category": {
      "enum": [
       "A",
       "B",
       "C",
       "D"
      ],
      "title": "Category",
      "type": "string"
     },
     "gold": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AwardPair"
       },
       {
        "type": "null"
       }
      ]
     },
     "silver": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AwardPair"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "category",
     "gold",
     "silver"
    ],
    "title": "AwardCategory",
    "type": "object"
   },
   "AwardOut": {
    "properties": {
     "categories": {
      "items": {
       "$ref": "#/components/schemas/AwardCategory"
      },
      "title": "Categories",
      "type": "array"
     },
     "league": {
      "title": "League",
      "type": "string"
     },
     "partner": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PartnerRef"
       },
       {
        "type": "null"
       }
      ],
      "description": "партнёр призов на экране награждения (с пометкой «партнёр»)"
     },
     "podium": {
      "items": {
       "$ref": "#/components/schemas/AwardSquad"
      },
      "title": "Podium",
      "type": "array"
     },
     "shown": {
      "description": "награждение включено на экранах клуба",
      "title": "Shown",
      "type": "boolean"
     },
     "winner": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AwardSquad"
       },
       {
        "type": "null"
       }
      ],
      "description": "сборная — победитель лиги; null — лига не завершена"
     }
    },
    "required": [
     "shown",
     "league",
     "categories",
     "winner",
     "podium",
     "partner"
    ],
    "title": "AwardOut",
    "type": "object"
   },
   "AwardPair": {
    "properties": {
     "name": {
      "title": "Name",
      "type": "string"
     },
     "players": {
      "items": {
       "type": "string"
      },
      "title": "Players",
      "type": "array"
     },
     "squad": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Squad"
     },
     "squad_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Squad Name"
     },
     "team": {
      "title": "Team",
      "type": "string"
     }
    },
    "required": [
     "team",
     "name",
     "players",
     "squad",
     "squad_name"
    ],
    "title": "AwardPair",
    "type": "object"
   },
   "AwardSquad": {
    "properties": {
     "name": {
      "title": "Name",
      "type": "string"
     },
     "place": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Place"
     },
     "pts": {
      "title": "Pts",
      "type": "integer"
     },
     "squad": {
      "title": "Squad",
      "type": "string"
     }
    },
    "required": [
     "squad",
     "name",
     "pts"
    ],
    "title": "AwardSquad",
    "type": "object"
   },
   "BracketBlock": {
    "properties": {
     "rounds": {
      "items": {
       "$ref": "#/components/schemas/BracketRound"
      },
      "title": "Rounds",
      "type": "array"
     },
     "type": {
      "enum": [
       "main",
       "consolation",
       "gold",
       "silver"
      ],
      "title": "Type",
      "type": "string"
     }
    },
    "required": [
     "type",
     "rounds"
    ],
    "title": "BracketBlock",
    "type": "object"
   },
   "BracketOut": {
    "properties": {
     "champion": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Champion"
     },
     "rounds": {
      "items": {
       "$ref": "#/components/schemas/BracketRound"
      },
      "title": "Rounds",
      "type": "array"
     },
     "teams": {
      "description": "посев сетки: A1, B1, A2, B2…; пусто — группы ещё не сыграны",
      "items": {
       "type": "string"
      },
      "title": "Teams",
      "type": "array"
     }
    },
    "required": [
     "teams",
     "rounds",
     "champion"
    ],
    "title": "BracketOut",
    "type": "object"
   },
   "BracketRound": {
    "properties": {
     "matches": {
      "items": {
       "type": "string"
      },
      "title": "Matches",
      "type": "array"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "round": {
      "title": "Round",
      "type": "integer"
     }
    },
    "required": [
     "round",
     "name",
     "matches"
    ],
    "title": "BracketRound",
    "type": "object"
   },
   "CategoryOut": {
    "properties": {
     "category": {
      "enum": [
       "A",
       "B",
       "C",
       "D"
      ],
      "title": "Category",
      "type": "string"
     },
     "edition": {
      "title": "Edition",
      "type": "string"
     },
     "gold": {
      "$ref": "#/components/schemas/BracketOut"
     },
     "groups": {
      "items": {
       "$ref": "#/components/schemas/etna__api__leagues__GroupOut"
      },
      "title": "Groups",
      "type": "array"
     },
     "pairs": {
      "title": "Pairs",
      "type": "integer"
     },
     "silver": {
      "$ref": "#/components/schemas/BracketOut"
     },
     "stage": {
      "enum": [
       "registration",
       "scheduled",
       "playing",
       "finished"
      ],
      "title": "Stage",
      "type": "string"
     }
    },
    "required": [
     "category",
     "edition",
     "pairs",
     "stage",
     "groups",
     "gold",
     "silver"
    ],
    "title": "CategoryOut",
    "type": "object"
   },
   "CategoryResult": {
    "properties": {
     "category": {
      "enum": [
       "A",
       "B",
       "C",
       "D"
      ],
      "title": "Category",
      "type": "string"
     },
     "edition": {
      "title": "Edition",
      "type": "string"
     },
     "finished": {
      "title": "Finished",
      "type": "boolean"
     },
     "format": {
      "enum": [
       "groups_gold_silver",
       "knockout_consolation",
       "knockout",
       "round_robin"
      ],
      "title": "Format",
      "type": "string"
     },
     "pairs": {
      "additionalProperties": {
       "enum": [
        "main_champion",
        "main_finalist",
        "main_semifinal",
        "consolation_champion",
        "consolation_finalist",
        "gold_winner",
        "gold_finalist",
        "gold_semifinal",
        "silver_winner",
        "silver_finalist",
        "place_1",
        "place_2",
        "place_3",
        "participation"
       ],
       "type": "string"
      },
      "description": "лучший итог каждой пары категории",
      "title": "Pairs",
      "type": "object"
     },
     "podium": {
      "items": {
       "$ref": "#/components/schemas/PodiumLine"
      },
      "title": "Podium",
      "type": "array"
     },
     "stage": {
      "enum": [
       "registration",
       "scheduled",
       "playing",
       "finished"
      ],
      "title": "Stage",
      "type": "string"
     }
    },
    "required": [
     "category",
     "edition",
     "format",
     "finished",
     "stage",
     "pairs",
     "podium"
    ],
    "title": "CategoryResult",
    "type": "object"
   },
   "ChainLink": {
    "properties": {
     "payload": {
      "additionalProperties": true,
      "type": "object"
     },
     "seq": {
      "type": "integer"
     },
     "subject": {
      "description": "[тип предмета, id]",
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "type": "array"
     },
     "type": {
      "type": "string"
     }
    },
    "required": [
     "seq",
     "type"
    ],
    "type": "object"
   },
   "CityCount": {
    "properties": {
     "clubs": {
      "title": "Clubs",
      "type": "integer"
     },
     "code": {
      "title": "Code",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "code",
     "name",
     "clubs"
    ],
    "title": "CityCount",
    "type": "object"
   },
   "CityRef": {
    "properties": {
     "code": {
      "title": "Code",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "code",
     "name"
    ],
    "title": "CityRef",
    "type": "object"
   },
   "ClaimRef": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "status": {
      "enum": [
       "pending",
       "approved",
       "rejected"
      ],
      "title": "Status",
      "type": "string"
     }
    },
    "required": [
     "id",
     "status"
    ],
    "title": "ClaimRef",
    "type": "object"
   },
   "ClubCard": {
    "properties": {
     "city": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CityRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "claimed": {
      "description": "клуб забрал страницу и ведёт её сам",
      "title": "Claimed",
      "type": "boolean"
     },
     "courts": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Courts"
       },
       {
        "type": "null"
       }
      ],
      "description": "корты, отмеченные в OSM или клубом; null — число кортов не указано"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "lat": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lat"
     },
     "lon": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lon"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "named": {
      "description": "название есть в источнике или его дал клуб; false — «Падел-корт без названия»",
      "title": "Named",
      "type": "boolean"
     },
     "source": {
      "description": "osm — из OpenStreetMap; fpr — с карты Федерации падела России; manual — внёс администратор ETNA («Данные ETNA»); club — клуб платформы",
      "enum": [
       "osm",
       "fpr",
       "club",
       "manual"
      ],
      "title": "Source",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name",
     "named",
     "city",
     "lat",
     "lon",
     "courts",
     "claimed",
     "source"
    ],
    "title": "ClubCard",
    "type": "object"
   },
   "ClubLive": {
    "properties": {
     "comebacks": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "камбэков сегодня (по очкам судьи)",
      "title": "Comebacks"
     },
     "date": {
      "description": "сегодня по Москве",
      "title": "Date",
      "type": "string"
     },
     "enough": {
      "description": "false — в сегодняшних матчах людей меньше порога анонимности: чисел нет",
      "title": "Enough",
      "type": "boolean"
     },
     "formats": {
      "description": "что играют сегодня: доли форматов, как в activity",
      "items": {
       "$ref": "#/components/schemas/Share"
      },
      "title": "Formats",
      "type": "array"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "live": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "идёт сейчас",
      "title": "Live"
     },
     "matches": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "сыграно сегодня матчей (с итогом)",
      "title": "Matches"
     },
     "min": {
      "description": "порог PUBLIC_ANON_MIN: сколько разных людей нужно в сегодняшних матчах",
      "title": "Min",
      "type": "integer"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "people": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "людей в сегодняшних матчах, округлено вниз до 5",
      "title": "People"
     }
    },
    "required": [
     "id",
     "name",
     "date",
     "enough",
     "min"
    ],
    "title": "ClubLive",
    "type": "object"
   },
   "ClubLogo": {
    "properties": {
     "credit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Credit"
     },
     "id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "id картинки — только суперадмину («Убрать фото»)",
      "title": "Id"
     },
     "source": {
      "anyOf": [
       {
        "const": "fpr",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source"
     },
     "url": {
      "title": "Url",
      "type": "string"
     }
    },
    "required": [
     "url"
    ],
    "title": "ClubLogo",
    "type": "object"
   },
   "ClubPage": {
    "properties": {
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "can_edit": {
      "title": "Can Edit",
      "type": "boolean"
     },
     "can_remove_photos": {
      "default": false,
      "description": "суперадмин: «Убрать фото», «Убрать все фото ФПР»",
      "title": "Can Remove Photos",
      "type": "boolean"
     },
     "city": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CityRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "claimed": {
      "description": "клуб забрал страницу и ведёт её сам",
      "title": "Claimed",
      "type": "boolean"
     },
     "courts": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Courts"
       },
       {
        "type": "null"
       }
      ],
      "description": "корты, отмеченные в OSM или клубом; null — число кортов не указано"
     },
     "etna_tournaments": {
      "items": {
       "$ref": "#/components/schemas/EtnaTournamentRef"
      },
      "title": "Etna Tournaments",
      "type": "array"
     },
     "fpr": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/FprSource"
       },
       {
        "type": "null"
       }
      ],
      "description": "клуб есть на карте ФПР: подпись и ссылка"
     },
     "fpr_images": {
      "default": 0,
      "description": "картинок ФПР у клуба (фото и логотип), в том числе скрытых своими",
      "title": "Fpr Images",
      "type": "integer"
     },
     "from_club": {
      "description": "поля, которые клуб поправил сам: импорт OSM их больше не трогает",
      "items": {
       "type": "string"
      },
      "title": "From Club",
      "type": "array"
     },
     "hidden": {
      "default": false,
      "description": "клуб скрыт с карты и из списка; страницу видит только администратор",
      "title": "Hidden",
      "type": "boolean"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "lat": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lat"
     },
     "logo": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ClubLogo"
       },
       {
        "type": "null"
       }
      ]
     },
     "lon": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lon"
     },
     "my_claim": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ClaimRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "named": {
      "description": "название есть в источнике или его дал клуб; false — «Падел-корт без названия»",
      "title": "Named",
      "type": "boolean"
     },
     "osm": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/OsmSource"
       },
       {
        "type": "null"
       }
      ]
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "телефон организации (из OSM или от клуба), не человека",
      "title": "Phone"
     },
     "photos": {
      "description": "фото клуба в порядке галереи; первое — обложка (до 12)",
      "items": {
       "$ref": "#/components/schemas/ClubPhoto"
      },
      "title": "Photos",
      "type": "array"
     },
     "source": {
      "description": "osm — из OpenStreetMap; fpr — с карты Федерации падела России; manual — внёс администратор ETNA («Данные ETNA»); club — клуб платформы",
      "enum": [
       "osm",
       "fpr",
       "club",
       "manual"
      ],
      "title": "Source",
      "type": "string"
     },
     "tournaments": {
      "items": {
       "$ref": "#/components/schemas/Listed"
      },
      "title": "Tournaments",
      "type": "array"
     },
     "website": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Website"
     }
    },
    "required": [
     "id",
     "name",
     "named",
     "city",
     "lat",
     "lon",
     "courts",
     "claimed",
     "source",
     "address",
     "website",
     "phone",
     "from_club",
     "osm",
     "can_edit",
     "my_claim",
     "tournaments",
     "etna_tournaments"
    ],
    "title": "ClubPage",
    "type": "object"
   },
   "ClubPhoto": {
    "properties": {
     "credit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "подпись под фото источника («Фото: сайт ФПР»)",
      "title": "Credit"
     },
     "height": {
      "title": "Height",
      "type": "integer"
     },
     "id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "id картинки — только суперадмину: «Убрать фото» (DELETE /admin/clubs/{id}/photos/{media})",
      "title": "Id"
     },
     "screen": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "WEBP для полноэкранного просмотра",
      "title": "Screen"
     },
     "source": {
      "anyOf": [
       {
        "const": "fpr",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "fpr — фото с карты ФПР; null — загружено в ETNA",
      "title": "Source"
     },
     "thumb": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "миниатюра WEBP 480×270",
      "title": "Thumb"
     },
     "url": {
      "description": "JPEG до 1920×1080",
      "title": "Url",
      "type": "string"
     },
     "width": {
      "title": "Width",
      "type": "integer"
     }
    },
    "required": [
     "url",
     "thumb",
     "screen",
     "width",
     "height"
    ],
    "title": "ClubPhoto",
    "type": "object"
   },
   "ClubShare": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "share": {
      "description": "доля матчей, %",
      "title": "Share",
      "type": "integer"
     }
    },
    "required": [
     "id",
     "share",
     "name"
    ],
    "title": "ClubShare",
    "type": "object"
   },
   "ClubsOut": {
    "properties": {
     "cities": {
      "items": {
       "$ref": "#/components/schemas/CityCount"
      },
      "title": "Cities",
      "type": "array"
     },
     "clubs": {
      "items": {
       "$ref": "#/components/schemas/ClubCard"
      },
      "title": "Clubs",
      "type": "array"
     },
     "courts": {
      "title": "Courts",
      "type": "integer"
     },
     "osm": {
      "$ref": "#/components/schemas/OsmInfo"
     }
    },
    "required": [
     "clubs",
     "cities",
     "courts",
     "osm"
    ],
    "title": "ClubsOut",
    "type": "object"
   },
   "CompanyPerson": {
    "properties": {
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "id": {
      "type": "string"
     },
     "matches": {
      "type": "integer"
     },
     "name": {
      "description": "публичное имя",
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "CompanyTeam": {
    "properties": {
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "edition": {
      "type": "string"
     },
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [],
    "type": "object"
   },
   "CompanyV1": {
    "properties": {
     "achievements": {
      "items": {
       "$ref": "#/components/schemas/Achievement"
      },
      "type": "array"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "id": {
      "type": "string"
     },
     "industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "name": {
      "type": "string"
     },
     "persons": {
      "items": {
       "$ref": "#/components/schemas/CompanyPerson"
      },
      "type": "array"
     },
     "teams": {
      "items": {
       "$ref": "#/components/schemas/CompanyTeam"
      },
      "type": "array"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "type": "object"
   },
   "CourtRef": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "integer"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "CourtRef",
    "type": "object"
   },
   "CourtV1": {
    "properties": {
     "id": {
      "type": "integer"
     },
     "kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "name": {
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "Courts": {
    "properties": {
     "indoor": {
      "title": "Indoor",
      "type": "integer"
     },
     "outdoor": {
      "title": "Outdoor",
      "type": "integer"
     },
     "total": {
      "title": "Total",
      "type": "integer"
     }
    },
    "required": [
     "total",
     "indoor",
     "outdoor"
    ],
    "title": "Courts",
    "type": "object"
   },
   "DayOut": {
    "properties": {
     "courts": {
      "items": {
       "$ref": "#/components/schemas/CourtRef"
      },
      "title": "Courts",
      "type": "array"
     },
     "date": {
      "title": "Date",
      "type": "string"
     },
     "matches": {
      "title": "Matches",
      "type": "integer"
     },
     "ord": {
      "title": "Ord",
      "type": "integer"
     },
     "slot_minutes": {
      "title": "Slot Minutes",
      "type": "integer"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     }
    },
    "required": [
     "ord",
     "date",
     "starts_at",
     "slot_minutes",
     "courts",
     "matches"
    ],
    "title": "DayOut",
    "type": "object"
   },
   "DocOut": {
    "properties": {
     "langs": {
      "items": {
       "type": "string"
      },
      "title": "Langs",
      "type": "array"
     },
     "slug": {
      "title": "Slug",
      "type": "string"
     },
     "title": {
      "title": "Title",
      "type": "string"
     },
     "url": {
      "description": "страница документа в PWA: /legal/<slug>/ (ru) или /legal/<slug>/<lang>/",
      "title": "Url",
      "type": "string"
     },
     "version": {
      "description": "текущая версия документа (docs/legal, метаданные md)",
      "title": "Version",
      "type": "string"
     }
    },
    "required": [
     "slug",
     "title",
     "version",
     "url",
     "langs"
    ],
    "title": "DocOut",
    "type": "object"
   },
   "Edition": {
    "properties": {
     "about": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "bracket": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ]
     },
     "cities": {
      "items": {
       "description": "код города",
       "example": "msk",
       "type": "string"
      },
      "type": "array"
     },
     "events": {
      "items": {
       "$ref": "#/components/schemas/EditionEvent"
      },
      "type": "array"
     },
     "final": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "id": {
      "description": "id розыгрыша",
      "example": "cpl2027",
      "type": "string"
     },
     "level": {
      "type": "string"
     },
     "level_label": {
      "type": "string"
     },
     "max_teams": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ]
     },
     "name": {
      "type": "string"
     },
     "period": {
      "type": "string"
     },
     "phase": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Phase"
       },
       {
        "type": "null"
       }
      ]
     },
     "pools": {
      "items": {
       "$ref": "#/components/schemas/Pool"
      },
      "type": "array"
     },
     "rules": {
      "additionalProperties": true,
      "description": "правила розыгрыша: сеты, тай-брейк, очки, состав",
      "type": "object"
     },
     "series": {
      "type": "string"
     },
     "status": {
      "description": "вычисляется из этапов",
      "type": "string"
     },
     "status_label": {
      "type": "string"
     },
     "teams_count": {
      "type": "integer"
     },
     "type": {
      "type": "string"
     },
     "type_label": {
      "type": "string"
     },
     "winner": {
      "anyOf": [
       {
        "description": "id пары",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "id",
     "name"
    ],
    "type": "object"
   },
   "EditionCard": {
    "properties": {
     "cities": {
      "items": {
       "description": "код города",
       "example": "msk",
       "type": "string"
      },
      "type": "array"
     },
     "id": {
      "description": "id розыгрыша",
      "example": "cpl2027",
      "type": "string"
     },
     "level": {
      "type": "string"
     },
     "level_label": {
      "type": "string"
     },
     "max_teams": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ]
     },
     "name": {
      "type": "string"
     },
     "period": {
      "type": "string"
     },
     "phase": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Phase"
       },
       {
        "type": "null"
       }
      ]
     },
     "series": {
      "type": "string"
     },
     "status": {
      "description": "вычисляется из этапов",
      "type": "string"
     },
     "status_label": {
      "type": "string"
     },
     "teams_count": {
      "type": "integer"
     },
     "type": {
      "type": "string"
     },
     "type_label": {
      "type": "string"
     }
    },
    "required": [
     "id",
     "name",
     "status"
    ],
    "type": "object"
   },
   "EditionEvent": {
    "properties": {
     "end": {
      "format": "date",
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "start": {
      "format": "date",
      "type": "string"
     },
     "state": {
      "enum": [
       "past",
       "now",
       "future"
      ],
      "type": "string"
     },
     "type": {
      "enum": [
       "applications",
       "draw",
       "group_stage",
       "playoff",
       "final",
       "awards"
      ],
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "Error": {
    "description": "Тело любой ошибки: code — для программы, message — для человека.",
    "properties": {
     "error": {
      "properties": {
       "code": {
        "example": "NOT_FOUND",
        "type": "string"
       },
       "message": {
        "description": "на языке Accept-Language: ru, en, es",
        "type": "string"
       },
       "retry_after_sec": {
        "description": "у 429 и 423 — то же, что Retry-After",
        "type": "integer"
       }
      },
      "required": [
       "code",
       "message"
      ],
      "type": "object"
     }
    },
    "required": [
     "error"
    ],
    "type": "object"
   },
   "EtnaTournamentRef": {
    "properties": {
     "date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Date"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name",
     "date"
    ],
    "title": "EtnaTournamentRef",
    "type": "object"
   },
   "EventV1": {
    "properties": {
     "actor": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "cause": {
      "anyOf": [
       {
        "description": "seq события-причины",
        "type": "integer"
       },
       {
        "type": "null"
       }
      ]
     },
     "correlation": {
      "anyOf": [
       {
        "description": "trace-id запроса",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "occurred_at": {
      "description": "ISO 8601 с часовым поясом",
      "format": "date-time",
      "type": "string"
     },
     "payload": {
      "additionalProperties": true,
      "description": "у личных событий — пусто: человек не раскрывается",
      "type": "object"
     },
     "recorded_at": {
      "description": "ISO 8601 с часовым поясом",
      "format": "date-time",
      "type": "string"
     },
     "seq": {
      "description": "сквозной номер, растёт",
      "type": "integer"
     },
     "source": {
      "type": "string"
     },
     "subject_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "subject_type": {
      "type": "string"
     },
     "type": {
      "example": "match.result_recorded",
      "type": "string"
     }
    },
    "required": [
     "seq",
     "type",
     "occurred_at"
    ],
    "type": "object"
   },
   "FlagBearer": {
    "properties": {
     "avatar_style": {
      "anyOf": [
       {
        "enum": [
         "fighter",
         "lady"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "стиль бойца; null — нейтральный",
      "title": "Avatar Style"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "photo_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "своё фото вместо бойца — только при согласии игрока",
      "title": "Photo Url"
     }
    },
    "required": [
     "id",
     "name",
     "avatar_style"
    ],
    "title": "FlagBearer",
    "type": "object"
   },
   "FprSource": {
    "properties": {
     "attribution": {
      "description": "«По данным карты ФПР» на языке запроса",
      "title": "Attribution",
      "type": "string"
     },
     "seen_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "последний импорт, где клуб был на карте",
      "title": "Seen At"
     },
     "url": {
      "description": "карта ФПР: https://padelrus.ru/map/",
      "title": "Url",
      "type": "string"
     }
    },
    "required": [
     "url",
     "attribution",
     "seen_at"
    ],
    "title": "FprSource",
    "type": "object"
   },
   "Geo": {
    "properties": {
     "lat": {
      "title": "Lat",
      "type": "number"
     },
     "lon": {
      "title": "Lon",
      "type": "number"
     }
    },
    "required": [
     "lat",
     "lon"
    ],
    "title": "Geo",
    "type": "object"
   },
   "GroupRow": {
    "properties": {
     "games_l": {
      "title": "Games L",
      "type": "integer"
     },
     "games_w": {
      "title": "Games W",
      "type": "integer"
     },
     "l": {
      "title": "L",
      "type": "integer"
     },
     "p": {
      "title": "P",
      "type": "integer"
     },
     "place": {
      "title": "Place",
      "type": "integer"
     },
     "pts": {
      "title": "Pts",
      "type": "integer"
     },
     "sets_l": {
      "title": "Sets L",
      "type": "integer"
     },
     "sets_w": {
      "title": "Sets W",
      "type": "integer"
     },
     "team": {
      "title": "Team",
      "type": "string"
     },
     "team_name": {
      "title": "Team Name",
      "type": "string"
     },
     "w": {
      "title": "W",
      "type": "integer"
     },
     "zone": {
      "description": "куда пара идёт после групп при нынешних местах",
      "enum": [
       "gold",
       "silver"
      ],
      "title": "Zone",
      "type": "string"
     }
    },
    "required": [
     "team",
     "team_name",
     "p",
     "w",
     "l",
     "sets_w",
     "sets_l",
     "games_w",
     "games_l",
     "pts",
     "place",
     "zone"
    ],
    "title": "GroupRow",
    "type": "object"
   },
   "Health": {
    "properties": {
     "build": {
      "description": "номер сборки: sha коммита образа (вне образа — dev)",
      "type": "string"
     },
     "db": {
      "properties": {
       "events": {
        "description": "событий в журнале",
        "type": "integer"
       },
       "ok": {
        "description": "база отвечает",
        "type": "boolean"
       },
       "schema": {
        "description": "ревизия схемы",
        "type": "string"
       }
      },
      "required": [],
      "type": "object"
     },
     "ok": {
      "description": "сервис отвечает",
      "type": "boolean"
     },
     "release_tasks": {
      "anyOf": [
       {
        "description": "задачи выпуска после миграций; null — снаружи (только адресам METRICS_ALLOW)",
        "properties": {
         "done": {
          "items": {
           "description": "id задачи выпуска",
           "type": "string"
          },
          "type": "array"
         },
         "failed": {
          "items": {
           "description": "id задачи выпуска",
           "type": "string"
          },
          "type": "array"
         }
        },
        "required": [],
        "type": "object"
       },
       {
        "type": "null"
       }
      ]
     },
     "version": {
      "description": "версия API",
      "type": "string"
     }
    },
    "required": [
     "ok",
     "version"
    ],
    "type": "object"
   },
   "HintOut": {
    "properties": {
     "border": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Border"
     },
     "category": {
      "enum": [
       "A",
       "B",
       "C",
       "D"
      ],
      "title": "Category",
      "type": "string"
     },
     "mismatch": {
      "description": "подсказка расходится с категорией, которую выбрал человек",
      "title": "Mismatch",
      "type": "boolean"
     },
     "season": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "подсказка на следующий сезон (после итогов лиги); категорию система не меняет",
      "title": "Season"
     },
     "suggest": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "подсказка по игре пары; null — сравнить не с чем",
      "title": "Suggest"
     },
     "team": {
      "title": "Team",
      "type": "string"
     },
     "text": {
      "description": "подсказка словами, без чисел",
      "title": "Text",
      "type": "string"
     }
    },
    "required": [
     "team",
     "category",
     "suggest",
     "border",
     "text",
     "mismatch",
     "season"
    ],
    "title": "HintOut",
    "type": "object"
   },
   "HintsOut": {
    "properties": {
     "items": {
      "description": "ближайший турнир, лига, клуб и тренер — по одному; данных нет — пусто",
      "items": {
       "$ref": "#/components/schemas/SearchHit"
      },
      "title": "Items",
      "type": "array"
     }
    },
    "required": [
     "items"
    ],
    "title": "HintsOut",
    "type": "object"
   },
   "HowWon": {
    "properties": {
     "final": {
      "description": "это финал; false — последний выигранный матч победителей («каждый с каждым»)",
      "title": "Final",
      "type": "boolean"
     },
     "match": {
      "title": "Match",
      "type": "string"
     },
     "text": {
      "description": "«как выиграли» одной строкой: 1–2 факта победителя (по очкам судьи или по сетам)",
      "title": "Text",
      "type": "string"
     }
    },
    "required": [
     "match",
     "text",
     "final"
    ],
    "title": "HowWon",
    "type": "object"
   },
   "LMatch": {
    "properties": {
     "away": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Away"
     },
     "away_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Away Name"
     },
     "bracket": {
      "anyOf": [
       {
        "enum": [
         "main",
         "consolation",
         "gold",
         "silver"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Bracket"
     },
     "category": {
      "enum": [
       "A",
       "B",
       "C",
       "D"
      ],
      "title": "Category",
      "type": "string"
     },
     "court": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Court"
     },
     "court_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Court Id"
     },
     "day": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "номер игрового дня",
      "title": "Day"
     },
     "home": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Home"
     },
     "home_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Home Name"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "mine": {
      "title": "Mine",
      "type": "boolean"
     },
     "round": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Round"
     },
     "round_name": {
      "title": "Round Name",
      "type": "string"
     },
     "sets": {
      "items": {
       "items": {
        "type": "integer"
       },
       "type": "array"
      },
      "title": "Sets",
      "type": "array"
     },
     "slot": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slot"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     },
     "status": {
      "enum": [
       "scheduled",
       "live",
       "done",
       "cancelled"
      ],
      "title": "Status",
      "type": "string"
     },
     "winner": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Winner"
     }
    },
    "required": [
     "id",
     "status",
     "court",
     "court_id",
     "starts_at",
     "home",
     "away",
     "home_name",
     "away_name",
     "sets",
     "winner",
     "round",
     "round_name",
     "slot",
     "mine",
     "bracket",
     "category",
     "day"
    ],
    "title": "LMatch",
    "type": "object"
   },
   "LeagueCard": {
    "properties": {
     "categories": {
      "items": {
       "enum": [
        "A",
        "B",
        "C",
        "D"
       ],
       "type": "string"
      },
      "title": "Categories",
      "type": "array"
     },
     "club": {
      "title": "Club",
      "type": "string"
     },
     "days": {
      "description": "даты игровых дней, YYYY-MM-DD",
      "items": {
       "type": "string"
      },
      "title": "Days",
      "type": "array"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "mine": {
      "description": "зритель ведёт эту лигу",
      "title": "Mine",
      "type": "boolean"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "pairs": {
      "title": "Pairs",
      "type": "integer"
     },
     "squads": {
      "title": "Squads",
      "type": "integer"
     },
     "stage": {
      "enum": [
       "registration",
       "scheduled",
       "playing",
       "finished"
      ],
      "title": "Stage",
      "type": "string"
     },
     "tours": {
      "description": "туров в лиге",
      "title": "Tours",
      "type": "integer"
     },
     "type": {
      "enum": [
       "community",
       "corporate",
       "club",
       "private"
      ],
      "title": "Type",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name",
     "type",
     "club",
     "stage",
     "days",
     "categories",
     "squads",
     "pairs",
     "mine",
     "tours"
    ],
    "title": "LeagueCard",
    "type": "object"
   },
   "LeagueOut": {
    "properties": {
     "about": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "About"
     },
     "award": {
      "$ref": "#/components/schemas/AwardOut"
     },
     "by_category": {
      "items": {
       "$ref": "#/components/schemas/CategoryOut"
      },
      "title": "By Category",
      "type": "array"
     },
     "categories": {
      "items": {
       "enum": [
        "A",
        "B",
        "C",
        "D"
       ],
       "type": "string"
      },
      "title": "Categories",
      "type": "array"
     },
     "club": {
      "$ref": "#/components/schemas/etna__api__tournaments__ClubRef"
     },
     "days": {
      "items": {
       "$ref": "#/components/schemas/DayOut"
      },
      "title": "Days",
      "type": "array"
     },
     "gold_per_group": {
      "title": "Gold Per Group",
      "type": "integer"
     },
     "group_size": {
      "title": "Group Size",
      "type": "integer"
     },
     "hints": {
      "description": "только тому, кто записывает пары: организатору и капитанам своих сборных",
      "items": {
       "$ref": "#/components/schemas/HintOut"
      },
      "title": "Hints",
      "type": "array"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "matches": {
      "items": {
       "$ref": "#/components/schemas/LMatch"
      },
      "title": "Matches",
      "type": "array"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "organizer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Organizer"
     },
     "partners": {
      "description": "партнёры лиги — только тому, кто ведёт лигу",
      "items": {
       "$ref": "#/components/schemas/LeaguePartner"
      },
      "title": "Partners",
      "type": "array"
     },
     "places": {
      "description": "места спонсоров лиги (korporaty): {id, name, role, label, mark, url, logo, logo_thumb, every_sec} — всем, в период показа; пометка mark — всегда",
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "title": "Places",
      "type": "array"
     },
     "points": {
      "$ref": "#/components/schemas/Points"
     },
     "squads": {
      "items": {
       "$ref": "#/components/schemas/SquadOut"
      },
      "title": "Squads",
      "type": "array"
     },
     "stage": {
      "enum": [
       "registration",
       "scheduled",
       "playing",
       "finished"
      ],
      "title": "Stage",
      "type": "string"
     },
     "table": {
      "items": {
       "$ref": "#/components/schemas/SquadRow"
      },
      "title": "Table",
      "type": "array"
     },
     "tours": {
      "description": "туры лиги по номерам; № 1 у старых лиг — тур сборных",
      "items": {
       "$ref": "#/components/schemas/TourCard"
      },
      "title": "Tours",
      "type": "array"
     },
     "type": {
      "enum": [
       "community",
       "corporate",
       "club",
       "private"
      ],
      "title": "Type",
      "type": "string"
     },
     "viewer": {
      "$ref": "#/components/schemas/LeagueViewer"
     }
    },
    "required": [
     "id",
     "name",
     "type",
     "about",
     "stage",
     "club",
     "organizer",
     "categories",
     "group_size",
     "gold_per_group",
     "points",
     "days",
     "squads",
     "by_category",
     "matches",
     "table",
     "award",
     "partners",
     "hints",
     "tours",
     "viewer"
    ],
    "title": "LeagueOut",
    "type": "object"
   },
   "LeaguePair": {
    "properties": {
     "category": {
      "enum": [
       "A",
       "B",
       "C",
       "D"
      ],
      "title": "Category",
      "type": "string"
     },
     "gold_place": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "место на Вершине: 1, 2 или 3 (оба полуфиналиста); null — не на Вершине или не сыграно",
      "title": "Gold Place"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "losses": {
      "title": "Losses",
      "type": "integer"
     },
     "mine": {
      "title": "Mine",
      "type": "boolean"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "players": {
      "items": {
       "$ref": "#/components/schemas/PlayerName"
      },
      "title": "Players",
      "type": "array"
     },
     "silver_place": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Silver Place"
     },
     "squad": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Squad"
     },
     "wins": {
      "title": "Wins",
      "type": "integer"
     }
    },
    "required": [
     "id",
     "name",
     "players",
     "category",
     "squad",
     "wins",
     "losses",
     "gold_place",
     "silver_place",
     "mine"
    ],
    "title": "LeaguePair",
    "type": "object"
   },
   "LeaguePartner": {
    "properties": {
     "name": {
      "description": "партнёр лиги: банк, бренд",
      "maxLength": 80,
      "minLength": 2,
      "title": "Name",
      "type": "string"
     },
     "slot": {
      "description": "нативное место: награждение, плашка статистики дня, подвал экрана",
      "enum": [
       "award",
       "stats",
       "footer"
      ],
      "title": "Slot",
      "type": "string"
     },
     "text": {
      "anyOf": [
       {
        "maxLength": 120,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "короткая строка: «Призы победителям Вершины»",
      "title": "Text"
     }
    },
    "required": [
     "name",
     "slot"
    ],
    "title": "LeaguePartner",
    "type": "object"
   },
   "LeagueTable": {
    "properties": {
     "by": {
      "enum": [
       "player",
       "company"
      ],
      "title": "By",
      "type": "string"
     },
     "rows": {
      "items": {
       "$ref": "#/components/schemas/TableRow"
      },
      "title": "Rows",
      "type": "array"
     },
     "scale": {
      "additionalProperties": {
       "type": "integer"
      },
      "propertyNames": {
       "enum": [
        "main_champion",
        "main_finalist",
        "main_semifinal",
        "consolation_champion",
        "consolation_finalist",
        "gold_winner",
        "gold_finalist",
        "gold_semifinal",
        "silver_winner",
        "silver_finalist",
        "place_1",
        "place_2",
        "place_3",
        "participation"
       ]
      },
      "title": "Scale",
      "type": "object"
     },
     "tours": {
      "items": {
       "$ref": "#/components/schemas/TableTour"
      },
      "title": "Tours",
      "type": "array"
     }
    },
    "required": [
     "by",
     "tours",
     "scale",
     "rows"
    ],
    "title": "LeagueTable",
    "type": "object"
   },
   "LeagueViewer": {
    "properties": {
     "can_manage": {
      "title": "Can Manage",
      "type": "boolean"
     },
     "can_score": {
      "title": "Can Score",
      "type": "boolean"
     },
     "captain_of": {
      "items": {
       "type": "string"
      },
      "title": "Captain Of",
      "type": "array"
     },
     "my_pairs": {
      "items": {
       "type": "string"
      },
      "title": "My Pairs",
      "type": "array"
     },
     "person": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Person"
     }
    },
    "required": [
     "can_manage",
     "captain_of",
     "person",
     "my_pairs",
     "can_score"
    ],
    "title": "LeagueViewer",
    "type": "object"
   },
   "LegalOut": {
    "properties": {
     "documents": {
      "items": {
       "$ref": "#/components/schemas/DocOut"
      },
      "maxItems": 16,
      "title": "Documents",
      "type": "array"
     },
     "status": {
      "description": "статус документов: «действует»",
      "title": "Status",
      "type": "string"
     }
    },
    "required": [
     "documents",
     "status"
    ],
    "title": "LegalOut",
    "type": "object"
   },
   "License": {
    "properties": {
     "copyright_url": {
      "title": "Copyright Url",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "url": {
      "title": "Url",
      "type": "string"
     }
    },
    "required": [
     "name",
     "url",
     "copyright_url"
    ],
    "title": "License",
    "type": "object"
   },
   "Listed": {
    "properties": {
     "category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "city": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CityRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "claimed": {
      "description": "организатор подтвердил турнир в ETNA",
      "title": "Claimed",
      "type": "boolean"
     },
     "club": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/etna__api__public__ClubRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "edition_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "турнир ведётся в ETNA — его страница /tournaments/view/?id=",
      "title": "Edition Id"
     },
     "ends_on": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ends On"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "mine": {
      "default": false,
      "description": "зритель — организатор, подтвердивший этот турнир: может вести его в ETNA",
      "title": "Mine",
      "type": "boolean"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "source": {
      "$ref": "#/components/schemas/SourceRef"
     },
     "starts_on": {
      "title": "Starts On",
      "type": "string"
     },
     "venue": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Venue"
     }
    },
    "required": [
     "id",
     "name",
     "starts_on",
     "ends_on",
     "city",
     "venue",
     "club",
     "category",
     "source",
     "claimed",
     "edition_id"
    ],
    "title": "Listed",
    "type": "object"
   },
   "ListedOut": {
    "properties": {
     "today": {
      "title": "Today",
      "type": "string"
     },
     "tournaments": {
      "items": {
       "$ref": "#/components/schemas/Listed"
      },
      "title": "Tournaments",
      "type": "array"
     }
    },
    "required": [
     "tournaments",
     "today"
    ],
    "title": "ListedOut",
    "type": "object"
   },
   "LoginIn": {
    "properties": {
     "login": {
      "maxLength": 80,
      "minLength": 1,
      "title": "Login",
      "type": "string"
     },
     "password": {
      "maxLength": 200,
      "minLength": 1,
      "title": "Password",
      "type": "string"
     }
    },
    "required": [
     "login",
     "password"
    ],
    "title": "LoginIn",
    "type": "object"
   },
   "MapAction": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "kind": {
      "description": "одна кнопка точки: respond — «Откликнуться» (POST /needs/{id}/responses), book — «Записаться» на окно (POST /me/slots/{id}/book {via: map}), open — страница турнира или запроса, rsvp — «Приду» (POST /me/trainings/{id}/rsvp)",
      "enum": [
       "respond",
       "book",
       "open",
       "rsvp"
      ],
      "title": "Kind",
      "type": "string"
     },
     "path": {
      "description": "страница объекта на этом домене",
      "title": "Path",
      "type": "string"
     }
    },
    "required": [
     "kind",
     "id",
     "path"
    ],
    "title": "MapAction",
    "type": "object"
   },
   "MapClub": {
    "properties": {
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "geo": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Geo"
       },
       {
        "type": "null"
       }
      ],
      "description": "координаты площадки (OpenStreetMap), если есть"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name",
     "address",
     "geo"
    ],
    "title": "MapClub",
    "type": "object"
   },
   "MapPlace": {
    "properties": {
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "count": {
      "title": "Count",
      "type": "integer"
     },
     "geo": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Geo"
       },
       {
        "type": "null"
       }
      ]
     },
     "key": {
      "title": "Key",
      "type": "string"
     },
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     }
    },
    "required": [
     "key",
     "name",
     "address",
     "geo",
     "count"
    ],
    "title": "MapPlace",
    "type": "object"
   },
   "MapPoint": {
    "properties": {
     "action": {
      "$ref": "#/components/schemas/MapAction"
     },
     "category": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "club": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/MapClub"
       },
       {
        "type": "null"
       }
      ]
     },
     "date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "день турнира по Москве, если времени начала нет",
      "title": "Date"
     },
     "format": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Format"
     },
     "key": {
      "description": "need:<id>, lesson:<окно>, tournament:<id>, training:<id> — как ключи «Не мой формат»",
      "title": "Key",
      "type": "string"
     },
     "kind": {
      "enum": [
       "need",
       "lesson",
       "tournament",
       "training"
      ],
      "title": "Kind",
      "type": "string"
     },
     "minutes": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Minutes"
     },
     "place": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "место словами (окно тренера, «Нужен игрок»)",
      "title": "Place"
     },
     "players": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "сколько игроков нужно («Нужен игрок»)",
      "title": "Players"
     },
     "seats_left": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "свободных мест в турнире; null — без ограничения",
      "title": "Seats Left"
     },
     "starts_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Starts At"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "турнир, тренер или тренер группы — без имён игроков",
      "title": "Title"
     },
     "where": {
      "description": "ключ места из places",
      "title": "Where",
      "type": "string"
     }
    },
    "required": [
     "key",
     "kind",
     "starts_at",
     "club",
     "where",
     "action"
    ],
    "title": "MapPoint",
    "type": "object"
   },
   "Match": {
    "properties": {
     "away": {
      "anyOf": [
       {
        "description": "id пары",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "away_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "bracket": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ]
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "court": {
      "anyOf": [
       {
        "description": "название корта",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "court_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ]
     },
     "edition": {
      "type": "string"
     },
     "group": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "home": {
      "anyOf": [
       {
        "description": "id пары",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "home_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "id": {
      "example": "m1",
      "type": "string"
     },
     "lineup_away": {
      "items": {
       "description": "id игрока",
       "type": "string"
      },
      "type": "array"
     },
     "lineup_home": {
      "items": {
       "description": "id игрока",
       "type": "string"
      },
      "type": "array"
     },
     "pending_report": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ]
     },
     "result_type": {
      "anyOf": [
       {
        "enum": [
         "played",
         "walkover",
         "retired"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "round": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ]
     },
     "sets": {
      "description": "счёт по сетам [хозяева, гости]",
      "items": {
       "items": {
        "type": "integer"
       },
       "type": "array"
      },
      "type": "array"
     },
     "stage": {
      "enum": [
       "group",
       "playoff"
      ],
      "type": "string"
     },
     "stage_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "starts_at": {
      "anyOf": [
       {
        "description": "ISO 8601 с часовым поясом",
        "format": "date-time",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "status": {
      "enum": [
       "scheduled",
       "live",
       "done",
       "cancelled"
      ],
      "type": "string"
     },
     "stream_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "tiebreak_sets": {
      "items": {
       "type": "boolean"
      },
      "type": "array"
     },
     "venue": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/VenueRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "winner": {
      "anyOf": [
       {
        "description": "id пары",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "id",
     "edition",
     "status"
    ],
    "type": "object"
   },
   "MeOut": {
    "properties": {
     "actions": {
      "items": {
       "type": "string"
      },
      "title": "Actions",
      "type": "array"
     },
     "app": {
      "title": "App",
      "type": "string"
     },
     "daily_requests": {
      "title": "Daily Requests",
      "type": "integer"
     },
     "is_test": {
      "title": "Is Test",
      "type": "boolean"
     },
     "key": {
      "title": "Key",
      "type": "string"
     },
     "operations": {
      "items": {
       "type": "string"
      },
      "title": "Operations",
      "type": "array"
     },
     "scope": {
      "title": "Scope",
      "type": "string"
     },
     "scope_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scope Id"
     },
     "used_today": {
      "title": "Used Today",
      "type": "integer"
     }
    },
    "required": [
     "app",
     "key",
     "scope",
     "scope_id",
     "actions",
     "is_test",
     "operations",
     "daily_requests",
     "used_today"
    ],
    "title": "MeOut",
    "type": "object"
   },
   "Member": {
    "properties": {
     "name": {
      "description": "публичное имя: без согласия — «Имя Ф.»",
      "type": "string"
     },
     "person": {
      "description": "id игрока",
      "type": "string"
     },
     "role": {
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "NeedCard": {
    "properties": {
     "by_level": {
      "description": "без категории: подходят по уровню игроков события (чисел нет)",
      "title": "By Level",
      "type": "boolean"
     },
     "category": {
      "anyOf": [
       {
        "enum": [
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "confirmed": {
      "title": "Confirmed",
      "type": "integer"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "my_status": {
      "anyOf": [
       {
        "enum": [
         "waiting",
         "confirmed"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "My Status"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "organizer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Organizer"
     },
     "place": {
      "title": "Place",
      "type": "string"
     },
     "players": {
      "title": "Players",
      "type": "integer"
     },
     "responses_count": {
      "title": "Responses Count",
      "type": "integer"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     },
     "state": {
      "description": "closed — событие началось, а игрока не нашли",
      "enum": [
       "open",
       "filled",
       "cancelled",
       "closed"
      ],
      "title": "State",
      "type": "string"
     },
     "suitable": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "description": "зритель подходит по категории или уровню; null — не игрок",
      "title": "Suitable"
     },
     "tournament": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/NeedTournament"
       },
       {
        "type": "null"
       }
      ]
     },
     "why": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "почему запрос показан этому игроку — словами",
      "title": "Why"
     }
    },
    "required": [
     "id",
     "state",
     "category",
     "by_level",
     "starts_at",
     "place",
     "note",
     "players",
     "confirmed",
     "responses_count",
     "tournament",
     "organizer",
     "my_status",
     "suitable"
    ],
    "title": "NeedCard",
    "type": "object"
   },
   "NeedTournament": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "NeedTournament",
    "type": "object"
   },
   "OpportunityMap": {
    "properties": {
     "days": {
      "description": "на сколько дней вперёд",
      "title": "Days",
      "type": "integer"
     },
     "places": {
      "items": {
       "$ref": "#/components/schemas/MapPlace"
      },
      "title": "Places",
      "type": "array"
     },
     "points": {
      "description": "ближайшие первыми",
      "items": {
       "$ref": "#/components/schemas/MapPoint"
      },
      "title": "Points",
      "type": "array"
     }
    },
    "required": [
     "days",
     "points",
     "places"
    ],
    "title": "OpportunityMap",
    "type": "object"
   },
   "OrgSummary": {
    "description": "Только тому, кто ведёт: «Подтвердили 14 из 16, взнос 12 из 16». Игрокам не показывается.",
    "properties": {
     "confirmed": {
      "description": "ответили «Я приду» / «Подтвердить участие»",
      "title": "Confirmed",
      "type": "integer"
     },
     "fee": {
      "description": "организатор указал взнос",
      "title": "Fee",
      "type": "boolean"
     },
     "fee_paid": {
      "description": "организатор отметил «Взнос получен»",
      "title": "Fee Paid",
      "type": "integer"
     },
     "fee_reported": {
      "description": "игрок отметил «Я оплатил», организатор ещё не подтвердил",
      "title": "Fee Reported",
      "type": "integer"
     },
     "teams": {
      "description": "пар в основном списке",
      "title": "Teams",
      "type": "integer"
     }
    },
    "required": [
     "teams",
     "confirmed",
     "fee_paid",
     "fee_reported",
     "fee"
    ],
    "title": "OrgSummary",
    "type": "object"
   },
   "OsmInfo": {
    "properties": {
     "attribution": {
      "title": "Attribution",
      "type": "string"
     },
     "imported_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Imported At"
     },
     "license": {
      "$ref": "#/components/schemas/License"
     }
    },
    "required": [
     "attribution",
     "license",
     "imported_at"
    ],
    "title": "OsmInfo",
    "type": "object"
   },
   "OsmSource": {
    "properties": {
     "attribution": {
      "title": "Attribution",
      "type": "string"
     },
     "key": {
      "title": "Key",
      "type": "string"
     },
     "license": {
      "$ref": "#/components/schemas/License"
     },
     "seen_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seen At"
     },
     "url": {
      "title": "Url",
      "type": "string"
     }
    },
    "required": [
     "key",
     "url",
     "seen_at",
     "attribution",
     "license"
    ],
    "title": "OsmSource",
    "type": "object"
   },
   "Pair": {
    "properties": {
     "attendance": {
      "anyOf": [
       {
        "enum": [
         "confirmed",
         "declined"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "ответ пары на напоминание: «Я приду» / «Не смогу»; null — нет ответа или не видно этому зрителю",
      "title": "Attendance"
     },
     "fee_paid": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "description": "отметка организатора «взнос получен»; null — не видно этому зрителю",
      "title": "Fee Paid"
     },
     "fee_reported": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "description": "игрок отметил «Я оплатил организатору» (подсказка, не платёж); null — не видно этому зрителю",
      "title": "Fee Reported"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "losses": {
      "title": "Losses",
      "type": "integer"
     },
     "mine": {
      "title": "Mine",
      "type": "boolean"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "opponents": {
      "anyOf": [
       {
        "enum": [
         "much_stronger",
         "stronger",
         "equal",
         "weaker",
         "much_weaker"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "сила соперников в среднем относительно пары — словом, без очков рейтинга; null — не играла",
      "title": "Opponents"
     },
     "place": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Place"
     },
     "players": {
      "items": {
       "$ref": "#/components/schemas/PlayerRef"
      },
      "title": "Players",
      "type": "array"
     },
     "provisional": {
      "description": "у пары мало матчей: уровень пока меняется быстрее",
      "title": "Provisional",
      "type": "boolean"
     },
     "replaced": {
      "default": false,
      "description": "Американо: игрока заменили после «Начать» — его сыгранные матчи и очки остаются за ним, в несыгранных раундах играет другой",
      "title": "Replaced",
      "type": "boolean"
     },
     "trend": {
      "anyOf": [
       {
        "enum": [
         "up",
         "down",
         "eq"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "уровень пары за этот турнир: up — вырос, down — снизился, eq — прежний; null — ещё не играла. Числа рейтинга внутри (решение 25.10)",
      "title": "Trend"
     },
     "waitlist_pos": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Waitlist Pos"
     },
     "wins": {
      "title": "Wins",
      "type": "integer"
     }
    },
    "required": [
     "id",
     "name",
     "players",
     "trend",
     "opponents",
     "provisional",
     "wins",
     "losses",
     "fee_paid",
     "attendance",
     "mine",
     "place",
     "waitlist_pos"
    ],
    "title": "Pair",
    "type": "object"
   },
   "PartnerRef": {
    "properties": {
     "name": {
      "title": "Name",
      "type": "string"
     },
     "text": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Text"
     }
    },
    "required": [
     "name",
     "text"
    ],
    "title": "PartnerRef",
    "type": "object"
   },
   "PeerStats": {
    "properties": {
     "categories": {
      "items": {
       "$ref": "#/components/schemas/Share"
      },
      "title": "Categories",
      "type": "array"
     },
     "clubs": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/ClubShare"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "компания: где играют коллеги",
      "title": "Clubs"
     },
     "days": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Days"
     },
     "enough": {
      "description": "false — людей меньше порога анонимности: чисел нет",
      "title": "Enough",
      "type": "boolean"
     },
     "formats": {
      "description": "league, round_robin, playoff, gold_silver, knockout_consolation",
      "items": {
       "$ref": "#/components/schemas/Share"
      },
      "title": "Formats",
      "type": "array"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "matches": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Matches"
     },
     "min": {
      "description": "порог: сколько разных людей нужно в агрегате",
      "title": "Min",
      "type": "integer"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "people": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "People"
     },
     "times": {
      "description": "day, evening, weekend",
      "items": {
       "$ref": "#/components/schemas/Share"
      },
      "title": "Times",
      "type": "array"
     }
    },
    "required": [
     "id",
     "name",
     "enough",
     "min"
    ],
    "title": "PeerStats",
    "type": "object"
   },
   "PersonTeam": {
    "properties": {
     "edition": {
      "type": "string"
     },
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "role": {
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "PersonV1": {
    "properties": {
     "achievements": {
      "items": {
       "$ref": "#/components/schemas/Achievement"
      },
      "type": "array"
     },
     "avatar_style": {
      "anyOf": [
       {
        "enum": [
         "fighter",
         "lady"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "company": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "department": {
      "anyOf": [
       {
        "description": "всегда null снаружи",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "id": {
      "type": "string"
     },
     "name": {
      "description": "публичное имя: без согласия — «Имя Ф.», младшим 18 — «Игрок <id>»",
      "type": "string"
     },
     "photo_url": {
      "anyOf": [
       {
        "description": "только с согласием человека",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "profile_owner": {
      "type": "string"
     },
     "standing": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Standing"
       },
       {
        "type": "null"
       }
      ]
     },
     "status": {
      "type": "string"
     },
     "teams": {
      "items": {
       "$ref": "#/components/schemas/PersonTeam"
      },
      "type": "array"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "type": "object"
   },
   "Phase": {
    "properties": {
     "name": {
      "type": "string"
     },
     "type": {
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "PlaceCategory": {
    "properties": {
     "category": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "null — пары без турнира с категорией",
      "title": "Category"
     },
     "pairs": {
      "items": {
       "$ref": "#/components/schemas/PlacePair"
      },
      "title": "Pairs",
      "type": "array"
     }
    },
    "required": [
     "category",
     "pairs"
    ],
    "title": "PlaceCategory",
    "type": "object"
   },
   "PlacePair": {
    "properties": {
     "games": {
      "description": "матчей вместе",
      "title": "Games",
      "type": "integer"
     },
     "move": {
      "description": "на сколько мест поднялась (+) или опустилась (−) пара после последних матчей",
      "title": "Move",
      "type": "integer"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "place": {
      "title": "Place",
      "type": "integer"
     },
     "players": {
      "items": {
       "type": "string"
      },
      "title": "Players",
      "type": "array"
     }
    },
    "required": [
     "place",
     "move",
     "name",
     "players",
     "games"
    ],
    "title": "PlacePair",
    "type": "object"
   },
   "Places": {
    "properties": {
     "categories": {
      "items": {
       "$ref": "#/components/schemas/PlaceCategory"
      },
      "title": "Categories",
      "type": "array"
     }
    },
    "required": [
     "categories"
    ],
    "title": "Places",
    "type": "object"
   },
   "PlayerName": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "PlayerName",
    "type": "object"
   },
   "PlayerRef": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "level_confirmed": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "description": "уровень 1.0–7.0 подтвердил тренер (без имени тренера) — только тому, кто ведёт турнир; остальным null",
      "title": "Level Confirmed"
     },
     "list": {
      "anyOf": [
       {
        "enum": [
         "favorite",
         "blocked"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "свой список организатора (избранные, чёрный список) — только тому, кто ведёт турнир",
      "title": "List"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "screen_as": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "как экраны зала покажут игрока, если он «Игрок …» (нет согласия на показ имени при строгом режиме, младший 18): «Игрок 7» — номер участника; Женя называет его игроку (правка 13). Только тому, кто ведёт турнир; остальным и тем, кого зал видит по имени, — null",
      "title": "Screen As"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "PlayerRef",
    "type": "object"
   },
   "PodiumLine": {
    "properties": {
     "key": {
      "enum": [
       "main_champion",
       "main_finalist",
       "main_semifinal",
       "consolation_champion",
       "consolation_finalist",
       "gold_winner",
       "gold_finalist",
       "gold_semifinal",
       "silver_winner",
       "silver_finalist",
       "place_1",
       "place_2",
       "place_3",
       "participation"
      ],
      "title": "Key",
      "type": "string"
     },
     "label": {
      "title": "Label",
      "type": "string"
     },
     "teams": {
      "items": {
       "$ref": "#/components/schemas/TeamRef"
      },
      "title": "Teams",
      "type": "array"
     }
    },
    "required": [
     "key",
     "label",
     "teams"
    ],
    "title": "PodiumLine",
    "type": "object"
   },
   "Points": {
    "properties": {
     "gold_win": {
      "title": "Gold Win",
      "type": "integer"
     },
     "group_win": {
      "title": "Group Win",
      "type": "integer"
     },
     "silver_win": {
      "title": "Silver Win",
      "type": "integer"
     }
    },
    "required": [
     "group_win",
     "silver_win",
     "gold_win"
    ],
    "title": "Points",
    "type": "object"
   },
   "Pool": {
    "properties": {
     "adv": {
      "description": "выходят дальше",
      "type": "integer"
     },
     "city": {
      "type": "string"
     },
     "group": {
      "type": "string"
     },
     "rounds": {
      "items": {
       "type": "integer"
      },
      "type": "array"
     },
     "teams": {
      "items": {
       "description": "id пары",
       "type": "string"
      },
      "type": "array"
     }
    },
    "required": [],
    "type": "object"
   },
   "RatingRow": {
    "properties": {
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "company": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "matches": {
      "type": "integer"
     },
     "name": {
      "description": "публичное имя",
      "type": "string"
     },
     "person": {
      "description": "id игрока",
      "type": "string"
     },
     "provisional": {
      "type": "boolean"
     },
     "rank": {
      "description": "место",
      "type": "integer"
     },
     "trend": {
      "anyOf": [
       {
        "description": "динамика места словами",
        "enum": [
         "up",
         "down",
         "eq"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "person",
     "rank"
    ],
    "type": "object"
   },
   "SearchHit": {
    "properties": {
     "href": {
      "description": "страница рабочего сайта",
      "title": "Href",
      "type": "string"
     },
     "sub": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "уточнение: клуб и дата турнира, город клуба, отрасль компании",
      "title": "Sub"
     },
     "title": {
      "description": "название; люди и пары — в публичном виде (etna/publicnames.py)",
      "title": "Title",
      "type": "string"
     },
     "type": {
      "enum": [
       "tournament",
       "league",
       "club",
       "coach",
       "team",
       "company",
       "player"
      ],
      "title": "Type",
      "type": "string"
     }
    },
    "required": [
     "type",
     "title",
     "href"
    ],
    "title": "SearchHit",
    "type": "object"
   },
   "SearchOut": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/SearchHit"
      },
      "title": "Items",
      "type": "array"
     }
    },
    "required": [
     "items"
    ],
    "title": "SearchOut",
    "type": "object"
   },
   "SeriesInfo": {
    "properties": {
     "calendar": {
      "description": "все турниры серии одним .ics: GET /tournament-series/{id}/calendar.ics",
      "title": "Calendar",
      "type": "string"
     },
     "can_extend": {
      "title": "Can Extend",
      "type": "boolean"
     },
     "end_time": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "End Time"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "rule": {
      "description": "«каждую среду»",
      "title": "Rule",
      "type": "string"
     },
     "start_time": {
      "title": "Start Time",
      "type": "string"
     },
     "tournaments": {
      "items": {
       "$ref": "#/components/schemas/SeriesTournament"
      },
      "title": "Tournaments",
      "type": "array"
     }
    },
    "required": [
     "id",
     "rule",
     "start_time",
     "end_time",
     "tournaments",
     "can_extend",
     "calendar"
    ],
    "title": "SeriesInfo",
    "type": "object"
   },
   "SeriesTournament": {
    "properties": {
     "date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Date"
     },
     "id": {
      "title": "Id",
      "type": "string"
     }
    },
    "required": [
     "id",
     "date"
    ],
    "title": "SeriesTournament",
    "type": "object"
   },
   "Share": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "share": {
      "description": "доля матчей, %",
      "title": "Share",
      "type": "integer"
     }
    },
    "required": [
     "id",
     "share"
    ],
    "title": "Share",
    "type": "object"
   },
   "SourceRef": {
    "properties": {
     "name": {
      "title": "Name",
      "type": "string"
     },
     "url": {
      "title": "Url",
      "type": "string"
     }
    },
    "required": [
     "name",
     "url"
    ],
    "title": "SourceRef",
    "type": "object"
   },
   "SquadOut": {
    "properties": {
     "captain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "капитан — организатор сборной; может не играть",
      "title": "Captain"
     },
     "flag_bearer": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/FlagBearer"
       },
       {
        "type": "null"
       }
      ],
      "description": "знаменосец «как на Олимпиаде»: выбирает капитан"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "kind": {
      "enum": [
       "community",
       "company"
      ],
      "title": "Kind",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "pairs": {
      "items": {
       "$ref": "#/components/schemas/LeaguePair"
      },
      "title": "Pairs",
      "type": "array"
     }
    },
    "required": [
     "id",
     "name",
     "kind",
     "captain",
     "pairs"
    ],
    "title": "SquadOut",
    "type": "object"
   },
   "SquadRow": {
    "properties": {
     "games_l": {
      "title": "Games L",
      "type": "integer"
     },
     "games_w": {
      "title": "Games W",
      "type": "integer"
     },
     "gold_titles": {
      "title": "Gold Titles",
      "type": "integer"
     },
     "losses": {
      "title": "Losses",
      "type": "integer"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "pairs": {
      "title": "Pairs",
      "type": "integer"
     },
     "place": {
      "title": "Place",
      "type": "integer"
     },
     "pts": {
      "title": "Pts",
      "type": "integer"
     },
     "sets_l": {
      "title": "Sets L",
      "type": "integer"
     },
     "sets_w": {
      "title": "Sets W",
      "type": "integer"
     },
     "squad": {
      "title": "Squad",
      "type": "string"
     },
     "wins": {
      "title": "Wins",
      "type": "integer"
     }
    },
    "required": [
     "squad",
     "name",
     "pts",
     "wins",
     "losses",
     "gold_titles",
     "sets_w",
     "sets_l",
     "games_w",
     "games_l",
     "place",
     "pairs"
    ],
    "title": "SquadRow",
    "type": "object"
   },
   "Standing": {
    "properties": {
     "matches": {
      "type": "integer"
     },
     "provisional": {
      "description": "мало матчей — место предварительное",
      "type": "boolean"
     },
     "rank": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ]
     },
     "trend": {
      "anyOf": [
       {
        "description": "динамика места словами",
        "enum": [
         "up",
         "down",
         "eq"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [],
    "type": "object"
   },
   "StandingRow": {
    "properties": {
     "advances": {
      "description": "выходит дальше",
      "type": "boolean"
     },
     "city": {
      "type": "string"
     },
     "games_l": {
      "type": "integer"
     },
     "games_w": {
      "type": "integer"
     },
     "group": {
      "type": "string"
     },
     "l": {
      "description": "поражений",
      "type": "integer"
     },
     "p": {
      "description": "сыграно",
      "type": "integer"
     },
     "place": {
      "type": "integer"
     },
     "pts": {
      "description": "очки",
      "type": "integer"
     },
     "sets_l": {
      "type": "integer"
     },
     "sets_w": {
      "type": "integer"
     },
     "team": {
      "description": "id пары",
      "type": "string"
     },
     "team_name": {
      "type": "string"
     },
     "w": {
      "description": "побед",
      "type": "integer"
     }
    },
    "required": [
     "team",
     "place"
    ],
    "type": "object"
   },
   "Step": {
    "properties": {
     "from": {
      "description": "нижняя граница уровня 1.0–7.0",
      "title": "From",
      "type": "number"
     },
     "here": {
      "description": "я на этой ступени (только в GET /me/steps)",
      "title": "Here",
      "type": "boolean"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "opens": {
      "items": {
       "$ref": "#/components/schemas/StepOpen"
      },
      "title": "Opens",
      "type": "array"
     },
     "text": {
      "title": "Text",
      "type": "string"
     },
     "title": {
      "title": "Title",
      "type": "string"
     },
     "to": {
      "title": "To",
      "type": "number"
     }
    },
    "required": [
     "id",
     "from",
     "to",
     "title",
     "text",
     "opens",
     "here"
    ],
    "title": "Step",
    "type": "object"
   },
   "StepOpen": {
    "properties": {
     "kind": {
      "enum": [
       "format",
       "category",
       "debut",
       "league",
       "bracket",
       "final"
      ],
      "title": "Kind",
      "type": "string"
     },
     "text": {
      "description": "что открывает ступень — словами на языке запроса",
      "title": "Text",
      "type": "string"
     },
     "value": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Value"
     }
    },
    "required": [
     "kind",
     "value",
     "text"
    ],
    "title": "StepOpen",
    "type": "object"
   },
   "Steps": {
    "properties": {
     "decided": {
      "description": "соответствие уровней и категорий утверждено (решает Hao); false — черновик",
      "title": "Decided",
      "type": "boolean"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "steps": {
      "items": {
       "$ref": "#/components/schemas/Step"
      },
      "title": "Steps",
      "type": "array"
     }
    },
    "required": [
     "decided",
     "note",
     "steps"
    ],
    "title": "Steps",
    "type": "object"
   },
   "TGroup": {
    "properties": {
     "name": {
      "title": "Name",
      "type": "string"
     },
     "rows": {
      "items": {
       "$ref": "#/components/schemas/TGroupRow"
      },
      "title": "Rows",
      "type": "array"
     }
    },
    "required": [
     "name",
     "rows"
    ],
    "title": "TGroup",
    "type": "object"
   },
   "TGroupRow": {
    "properties": {
     "l": {
      "title": "L",
      "type": "integer"
     },
     "p": {
      "title": "P",
      "type": "integer"
     },
     "place": {
      "title": "Place",
      "type": "integer"
     },
     "pts": {
      "title": "Pts",
      "type": "integer"
     },
     "team": {
      "title": "Team",
      "type": "string"
     },
     "team_name": {
      "title": "Team Name",
      "type": "string"
     },
     "w": {
      "title": "W",
      "type": "integer"
     },
     "zone": {
      "enum": [
       "gold",
       "silver"
      ],
      "title": "Zone",
      "type": "string"
     }
    },
    "required": [
     "team",
     "team_name",
     "p",
     "w",
     "l",
     "pts",
     "place",
     "zone"
    ],
    "title": "TGroupRow",
    "type": "object"
   },
   "TMatch": {
    "properties": {
     "away": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Away"
     },
     "away_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Away Name"
     },
     "bracket": {
      "anyOf": [
       {
        "enum": [
         "main",
         "consolation",
         "gold",
         "silver"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "сетка матча: основная, дополнительная, Вершина, Перевал; null — группа или сетка клубного турнира",
      "title": "Bracket"
     },
     "category": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "категория турнира лиги; null — клубный турнир",
      "title": "Category"
     },
     "court": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Court"
     },
     "court_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Court Id"
     },
     "home": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Home"
     },
     "home_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Home Name"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "mine": {
      "title": "Mine",
      "type": "boolean"
     },
     "round": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Round"
     },
     "round_name": {
      "title": "Round Name",
      "type": "string"
     },
     "sets": {
      "items": {
       "items": {
        "type": "integer"
       },
       "type": "array"
      },
      "title": "Sets",
      "type": "array"
     },
     "slot": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slot"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     },
     "status": {
      "enum": [
       "scheduled",
       "live",
       "done",
       "cancelled"
      ],
      "title": "Status",
      "type": "string"
     },
     "winner": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Winner"
     }
    },
    "required": [
     "id",
     "status",
     "court",
     "court_id",
     "starts_at",
     "home",
     "away",
     "home_name",
     "away_name",
     "sets",
     "winner",
     "round",
     "round_name",
     "slot",
     "mine"
    ],
    "title": "TMatch",
    "type": "object"
   },
   "TableCell": {
    "properties": {
     "pts": {
      "title": "Pts",
      "type": "integer"
     },
     "tour": {
      "title": "Tour",
      "type": "integer"
     }
    },
    "required": [
     "tour",
     "pts"
    ],
    "title": "TableCell",
    "type": "object"
   },
   "TableRow": {
    "properties": {
     "company": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "place": {
      "title": "Place",
      "type": "integer"
     },
     "total": {
      "title": "Total",
      "type": "integer"
     },
     "tours": {
      "items": {
       "$ref": "#/components/schemas/TableCell"
      },
      "title": "Tours",
      "type": "array"
     }
    },
    "required": [
     "id",
     "name",
     "company",
     "tours",
     "total",
     "place"
    ],
    "title": "TableRow",
    "type": "object"
   },
   "TableTour": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "is_final": {
      "title": "Is Final",
      "type": "boolean"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "number": {
      "title": "Number",
      "type": "integer"
     }
    },
    "required": [
     "id",
     "number",
     "name",
     "is_final"
    ],
    "title": "TableTour",
    "type": "object"
   },
   "TeamRef": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "TeamRef",
    "type": "object"
   },
   "TeamV1": {
    "properties": {
     "achievements": {
      "items": {
       "$ref": "#/components/schemas/Achievement"
      },
      "type": "array"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "company": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "department": {
      "anyOf": [
       {
        "description": "всегда null снаружи",
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "edition": {
      "type": "string"
     },
     "group": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "id": {
      "type": "string"
     },
     "matches": {
      "items": {
       "$ref": "#/components/schemas/Match"
      },
      "type": "array"
     },
     "members": {
      "items": {
       "$ref": "#/components/schemas/Member"
      },
      "type": "array"
     },
     "name": {
      "type": "string"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "id",
     "name"
    ],
    "type": "object"
   },
   "TokenOut": {
    "properties": {
     "access_token": {
      "description": "Bearer-токен: только на сервере партнёра",
      "type": "string"
     },
     "expires_in": {
      "description": "секунд до конца срока",
      "type": "integer"
     },
     "token_type": {
      "enum": [
       "bearer"
      ],
      "type": "string"
     }
    },
    "required": [
     "access_token",
     "token_type",
     "expires_in"
    ],
    "type": "object"
   },
   "TourCard": {
    "properties": {
     "card_status": {
      "description": "скоро, регистрация, заполнен, live, завершён, отменён",
      "enum": [
       "soon",
       "registration",
       "full",
       "live",
       "finished",
       "cancelled"
      ],
      "title": "Card Status",
      "type": "string"
     },
     "categories": {
      "items": {
       "$ref": "#/components/schemas/TourCategory"
      },
      "title": "Categories",
      "type": "array"
     },
     "club": {
      "title": "Club",
      "type": "string"
     },
     "cta": {
      "description": "Участвовать, Смотреть, В Арену, Результаты",
      "enum": [
       "enter",
       "watch",
       "arena",
       "results"
      ],
      "title": "Cta",
      "type": "string"
     },
     "date": {
      "description": "дата начала по Москве, YYYY-MM-DD",
      "title": "Date",
      "type": "string"
     },
     "ends_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ends At"
     },
     "entered": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "категория, в которую записан зритель",
      "title": "Entered"
     },
     "format": {
      "enum": [
       "groups_gold_silver",
       "knockout_consolation",
       "knockout",
       "round_robin"
      ],
      "title": "Format",
      "type": "string"
     },
     "hero_image": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Hero Image"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "is_final": {
      "title": "Is Final",
      "type": "boolean"
     },
     "league": {
      "title": "League",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "number": {
      "title": "Number",
      "type": "integer"
     },
     "slug": {
      "title": "Slug",
      "type": "string"
     },
     "squads": {
      "description": "тур сборных: пары записывают капитаны, ведётся через лигу",
      "title": "Squads",
      "type": "boolean"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     },
     "status": {
      "enum": [
       "draft",
       "registration",
       "registration_closed",
       "scheduled",
       "live",
       "finished",
       "cancelled"
      ],
      "title": "Status",
      "type": "string"
     },
     "venue": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Venue"
     }
    },
    "required": [
     "id",
     "league",
     "number",
     "name",
     "slug",
     "starts_at",
     "ends_at",
     "date",
     "club",
     "venue",
     "status",
     "card_status",
     "cta",
     "format",
     "is_final",
     "squads",
     "hero_image",
     "categories",
     "entered"
    ],
    "title": "TourCard",
    "type": "object"
   },
   "TourCategory": {
    "properties": {
     "category": {
      "enum": [
       "A",
       "B",
       "C",
       "D"
      ],
      "title": "Category",
      "type": "string"
     },
     "closed": {
      "description": "запись в эту категорию закрыта организатором, хотя регистрация тура идёт",
      "title": "Closed",
      "type": "boolean"
     },
     "edition": {
      "description": "турнир категории: /tournaments/{edition}/overview — пары, сетки, расписание",
      "title": "Edition",
      "type": "string"
     },
     "format": {
      "enum": [
       "groups_gold_silver",
       "knockout_consolation",
       "knockout",
       "round_robin"
      ],
      "title": "Format",
      "type": "string"
     },
     "max_pairs": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Pairs"
     },
     "pairs": {
      "title": "Pairs",
      "type": "integer"
     },
     "waitlist": {
      "title": "Waitlist",
      "type": "integer"
     }
    },
    "required": [
     "category",
     "edition",
     "pairs",
     "waitlist",
     "max_pairs",
     "format",
     "closed"
    ],
    "title": "TourCategory",
    "type": "object"
   },
   "TourOut": {
    "properties": {
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "card_status": {
      "description": "скоро, регистрация, заполнен, live, завершён, отменён",
      "enum": [
       "soon",
       "registration",
       "full",
       "live",
       "finished",
       "cancelled"
      ],
      "title": "Card Status",
      "type": "string"
     },
     "categories": {
      "items": {
       "$ref": "#/components/schemas/TourCategory"
      },
      "title": "Categories",
      "type": "array"
     },
     "club": {
      "title": "Club",
      "type": "string"
     },
     "courts": {
      "items": {
       "$ref": "#/components/schemas/CourtRef"
      },
      "title": "Courts",
      "type": "array"
     },
     "cta": {
      "description": "Участвовать, Смотреть, В Арену, Результаты",
      "enum": [
       "enter",
       "watch",
       "arena",
       "results"
      ],
      "title": "Cta",
      "type": "string"
     },
     "currency": {
      "title": "Currency",
      "type": "string"
     },
     "date": {
      "description": "дата начала по Москве, YYYY-MM-DD",
      "title": "Date",
      "type": "string"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "ends_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ends At"
     },
     "entered": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "категория, в которую записан зритель",
      "title": "Entered"
     },
     "entry_fee": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "взнос с игрока — информация от организатора; ETNA деньги не принимает",
      "title": "Entry Fee"
     },
     "format": {
      "enum": [
       "groups_gold_silver",
       "knockout_consolation",
       "knockout",
       "round_robin"
      ],
      "title": "Format",
      "type": "string"
     },
     "hero_image": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Hero Image"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "is_final": {
      "title": "Is Final",
      "type": "boolean"
     },
     "is_public": {
      "title": "Is Public",
      "type": "boolean"
     },
     "league": {
      "title": "League",
      "type": "string"
     },
     "league_name": {
      "title": "League Name",
      "type": "string"
     },
     "max_pairs_default": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Pairs Default"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "number": {
      "title": "Number",
      "type": "integer"
     },
     "points_scale": {
      "additionalProperties": {
       "type": "integer"
      },
      "propertyNames": {
       "enum": [
        "main_champion",
        "main_finalist",
        "main_semifinal",
        "consolation_champion",
        "consolation_finalist",
        "gold_winner",
        "gold_finalist",
        "gold_semifinal",
        "silver_winner",
        "silver_finalist",
        "place_1",
        "place_2",
        "place_3",
        "participation"
       ]
      },
      "title": "Points Scale",
      "type": "object"
     },
     "registration_ends_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Registration Ends At"
     },
     "registration_starts_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Registration Starts At"
     },
     "results": {
      "items": {
       "$ref": "#/components/schemas/CategoryResult"
      },
      "title": "Results",
      "type": "array"
     },
     "slot_minutes": {
      "title": "Slot Minutes",
      "type": "integer"
     },
     "slug": {
      "title": "Slug",
      "type": "string"
     },
     "squads": {
      "description": "тур сборных: пары записывают капитаны, ведётся через лигу",
      "title": "Squads",
      "type": "boolean"
     },
     "starts_at": {
      "title": "Starts At",
      "type": "string"
     },
     "status": {
      "enum": [
       "draft",
       "registration",
       "registration_closed",
       "scheduled",
       "live",
       "finished",
       "cancelled"
      ],
      "title": "Status",
      "type": "string"
     },
     "venue": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Venue"
     },
     "viewer": {
      "$ref": "#/components/schemas/TourViewer"
     }
    },
    "required": [
     "id",
     "league",
     "number",
     "name",
     "slug",
     "starts_at",
     "ends_at",
     "date",
     "club",
     "venue",
     "status",
     "card_status",
     "cta",
     "format",
     "is_final",
     "squads",
     "hero_image",
     "categories",
     "entered",
     "description",
     "registration_starts_at",
     "registration_ends_at",
     "entry_fee",
     "currency",
     "max_pairs_default",
     "slot_minutes",
     "courts",
     "league_name",
     "address",
     "is_public",
     "results",
     "points_scale",
     "viewer"
    ],
    "title": "TourOut",
    "type": "object"
   },
   "TourRef": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "league": {
      "title": "League",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "number": {
      "title": "Number",
      "type": "integer"
     },
     "slug": {
      "title": "Slug",
      "type": "string"
     }
    },
    "required": [
     "id",
     "league",
     "number",
     "name",
     "slug"
    ],
    "title": "TourRef",
    "type": "object"
   },
   "TourViewer": {
    "properties": {
     "actions": {
      "items": {
       "enum": [
        "open_registration",
        "close_registration",
        "publish",
        "start",
        "finish",
        "cancel"
       ],
       "type": "string"
      },
      "title": "Actions",
      "type": "array"
     },
     "can_enter": {
      "title": "Can Enter",
      "type": "boolean"
     },
     "can_manage": {
      "title": "Can Manage",
      "type": "boolean"
     },
     "entered": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Entered"
     },
     "person": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Person"
     },
     "player_category": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "самая сильная категория, в которой зритель играл в лигах",
      "title": "Player Category"
     },
     "reason": {
      "anyOf": [
       {
        "enum": [
         "squads",
         "closed",
         "login",
         "no_person",
         "entered"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "required": [
     "can_manage",
     "person",
     "player_category",
     "can_enter",
     "reason",
     "entered",
     "actions"
    ],
    "title": "TourViewer",
    "type": "object"
   },
   "Tournament": {
    "properties": {
     "about": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "About"
     },
     "americano": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Americano"
       },
       {
        "type": "null"
       }
      ],
      "description": "формат americano или mexicano: раунды и таблица игроков"
     },
     "award_shown": {
      "default": false,
      "description": "награждение турнира сейчас на мониторах клуба",
      "title": "Award Shown",
      "type": "boolean"
     },
     "bracket": {
      "description": "основная сетка (раунды по порядку)",
      "items": {
       "$ref": "#/components/schemas/BracketRound"
      },
      "title": "Bracket",
      "type": "array"
     },
     "brackets": {
      "description": "все сетки турнира: основная, дополнительная, Вершина, Перевал",
      "items": {
       "$ref": "#/components/schemas/BracketBlock"
      },
      "title": "Brackets",
      "type": "array"
     },
     "can_change_rules": {
      "description": "критерий победы ещё можно сменить: ведёт зритель, «каждый с каждым», итогов нет",
      "title": "Can Change Rules",
      "type": "boolean"
     },
     "category": {
      "anyOf": [
       {
        "enum": [
         "A",
         "B",
         "C",
         "D"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "club": {
      "$ref": "#/components/schemas/etna__api__tournaments__ClubRef"
     },
     "club_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "клуб турнира (организатора): ссылка ведущего на «Пульт» (/club/pult/?club=&t=); club — где проходит (площадка из каталога, если задана)",
      "title": "Club Id"
     },
     "courts": {
      "items": {
       "$ref": "#/components/schemas/CourtRef"
      },
      "title": "Courts",
      "type": "array"
     },
     "date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Date"
     },
     "ends_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "конец турнира («15:00–18:00») — информация для игроков и календаря",
      "title": "Ends At"
     },
     "entry_mode": {
      "default": "self",
      "description": "вступление: self — самостоятельное (есть места — в основной список), approve — «только из листа ожидания»: заявку принимает или отклоняет организатор",
      "enum": [
       "self",
       "approve"
      ],
      "title": "Entry Mode",
      "type": "string"
     },
     "fee_note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fee Note"
     },
     "fee_rub": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "взнос с игрока, ₽ — информация от организатора; ETNA деньги не принимает",
      "title": "Fee Rub"
     },
     "few_teams": {
      "title": "Few Teams",
      "type": "boolean"
     },
     "format": {
      "enum": [
       "round_robin",
       "playoff",
       "gold_silver",
       "knockout_consolation",
       "americano",
       "mexicano",
       "rr_pairs",
       "king",
       "escalera",
       "rr_solo"
      ],
      "title": "Format",
      "type": "string"
     },
     "groups": {
      "description": "группы формата «группы → Вершина и Перевал»",
      "items": {
       "$ref": "#/components/schemas/TGroup"
      },
      "title": "Groups",
      "type": "array"
     },
     "how_won": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/HowWon"
       },
       {
        "type": "null"
       }
      ],
      "description": "«Как выиграли» в «Итогах»: строка о финале или последнем выигранном матче победителей; null — турнир не завершён или факта нет"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "matches": {
      "items": {
       "$ref": "#/components/schemas/TMatch"
      },
      "title": "Matches",
      "type": "array"
     },
     "max_teams": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Teams"
     },
     "min_teams": {
      "description": "пар нужно для полноценного турнира (8 игроков); меньше — предупреждение",
      "title": "Min Teams",
      "type": "integer"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "needs": {
      "description": "запросы «Нужен игрок» этого события — тому, кто ведёт",
      "items": {
       "$ref": "#/components/schemas/NeedCard"
      },
      "title": "Needs",
      "type": "array"
     },
     "organizer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Organizer"
     },
     "pay_link": {
      "default": false,
      "description": "организатор добавил ссылку на оплату: у записанного игрока кнопка «Оплатить»",
      "title": "Pay Link",
      "type": "boolean"
     },
     "predict_open": {
      "description": "«Кто выиграет?»: id матчей, на которые сейчас принимают прогноз (пары известны, матч или раунд Американо не начат)",
      "items": {
       "type": "string"
      },
      "title": "Predict Open",
      "type": "array"
     },
     "seats_left": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seats Left"
     },
     "series": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SeriesInfo"
       },
       {
        "type": "null"
       }
      ]
     },
     "setup": {
      "additionalProperties": true,
      "description": "настройки мастера: composition (mixed, m, f), rating [от, до], criteria (порядок критериев победы), organizer",
      "title": "Setup",
      "type": "object"
     },
     "slot_minutes": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slot Minutes"
     },
     "stage": {
      "enum": [
       "registration",
       "scheduled",
       "playing",
       "finished"
      ],
      "title": "Stage",
      "type": "string"
     },
     "standings": {
      "items": {
       "$ref": "#/components/schemas/Standing"
      },
      "title": "Standings",
      "type": "array"
     },
     "starts_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Starts At"
     },
     "summary": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/OrgSummary"
       },
       {
        "type": "null"
       }
      ],
      "description": "сводка организатора; null — зритель не ведёт турнир"
     },
     "teams": {
      "items": {
       "$ref": "#/components/schemas/Pair"
      },
      "title": "Teams",
      "type": "array"
     },
     "tour": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TourRef"
       },
       {
        "type": "null"
       }
      ],
      "description": "тур лиги, в который входит турнир категории"
     },
     "variant": {
      "description": "варианты типа из каталога мастера: flex, spicy, pair (постоянные пары), mx (смешанные пары)",
      "items": {
       "enum": [
        "flex",
        "spicy",
        "pair",
        "mx"
       ],
       "type": "string"
      },
      "title": "Variant",
      "type": "array"
     },
     "viewer": {
      "$ref": "#/components/schemas/Viewer"
     },
     "waitlist": {
      "items": {
       "$ref": "#/components/schemas/Pair"
      },
      "title": "Waitlist",
      "type": "array"
     },
     "win_by": {
      "description": "критерий победы в таблице: по победам или по разнице очков (геймов)",
      "enum": [
       "wins",
       "points_diff"
      ],
      "title": "Win By",
      "type": "string"
     },
     "winner": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Winner"
     }
    },
    "required": [
     "id",
     "name",
     "about",
     "date",
     "starts_at",
     "ends_at",
     "format",
     "stage",
     "win_by",
     "can_change_rules",
     "min_teams",
     "few_teams",
     "series",
     "needs",
     "club",
     "courts",
     "organizer",
     "max_teams",
     "slot_minutes",
     "fee_rub",
     "fee_note",
     "seats_left",
     "teams",
     "waitlist",
     "matches",
     "standings",
     "bracket",
     "brackets",
     "groups",
     "category",
     "tour",
     "winner",
     "viewer"
    ],
    "title": "Tournament",
    "type": "object"
   },
   "TournamentCard": {
    "properties": {
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "код города клуба, где проходит турнир (фильтр «Все города»)",
      "title": "City"
     },
     "city_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "название города клуба",
      "title": "City Name"
     },
     "club": {
      "title": "Club",
      "type": "string"
     },
     "club_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "клуб турнира: ссылка ведущего на «Пульт дня» (/club/pult/?club=)",
      "title": "Club Id"
     },
     "date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Date"
     },
     "ends_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "конец турнира («11:00–17:00» в карточке)",
      "title": "Ends At"
     },
     "entered": {
      "description": "зритель записан (в списке или в листе ожидания)",
      "title": "Entered",
      "type": "boolean"
     },
     "entry_mode": {
      "default": "self",
      "description": "вступление: self — самостоятельное, approve — «только из листа ожидания» (лист ожидания — заявка на рассмотрении)",
      "enum": [
       "self",
       "approve"
      ],
      "title": "Entry Mode",
      "type": "string"
     },
     "fee_rub": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fee Rub"
     },
     "format": {
      "enum": [
       "round_robin",
       "playoff",
       "gold_silver",
       "knockout_consolation",
       "americano",
       "mexicano",
       "rr_pairs",
       "king",
       "escalera",
       "rr_solo"
      ],
      "title": "Format",
      "type": "string"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "level": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "рейтинг игроков «2.50–5.50» из настроек мастера",
      "title": "Level"
     },
     "max_teams": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Teams"
     },
     "mine": {
      "description": "зритель ведёт этот турнир",
      "title": "Mine",
      "type": "boolean"
     },
     "my_entry": {
      "anyOf": [
       {
        "enum": [
         "active",
         "waitlist"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "место записанного: основной список или лист ожидания",
      "title": "My Entry"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "organizer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "организатор для игроков (настройка мастера)",
      "title": "Organizer"
     },
     "pay_status": {
      "anyOf": [
       {
        "enum": [
         "none",
         "wait",
         "check",
         "paid",
         "refunding",
         "refunded"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "статус оплаты записанного (отдельно от заявки и места): none — не требуется, wait, check, paid, refunding, refunded",
      "title": "Pay Status"
     },
     "series": {
      "default": false,
      "description": "турнир серии («каждую среду»)",
      "title": "Series",
      "type": "boolean"
     },
     "series_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "серия: в «Турнирах» её турниры — одной карточкой",
      "title": "Series Id"
     },
     "series_rule": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "«каждую пятницу» на языке запроса",
      "title": "Series Rule"
     },
     "stage": {
      "enum": [
       "registration",
       "scheduled",
       "playing",
       "finished"
      ],
      "title": "Stage",
      "type": "string"
     },
     "starts_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Starts At"
     },
     "teams": {
      "title": "Teams",
      "type": "integer"
     },
     "waitlist": {
      "title": "Waitlist",
      "type": "integer"
     }
    },
    "required": [
     "id",
     "name",
     "club",
     "date",
     "starts_at",
     "format",
     "stage",
     "teams",
     "waitlist",
     "max_teams",
     "fee_rub",
     "mine",
     "entered"
    ],
    "title": "TournamentCard",
    "type": "object"
   },
   "VenueRef": {
    "properties": {
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "VenueV1": {
    "properties": {
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "courts": {
      "items": {
       "$ref": "#/components/schemas/CourtV1"
      },
      "type": "array"
     },
     "id": {
      "type": "string"
     },
     "lat": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "lon": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "name": {
      "type": "string"
     }
    },
    "required": [],
    "type": "object"
   },
   "Viewer": {
    "properties": {
     "can_answer": {
      "description": "можно ответить на напоминание: «Я приду» / «Не смогу»; до расписания — «Подтвердить участие» за 2 дня до турнира",
      "title": "Can Answer",
      "type": "boolean"
     },
     "can_enter": {
      "title": "Can Enter",
      "type": "boolean"
     },
     "can_manage": {
      "title": "Can Manage",
      "type": "boolean"
     },
     "can_score": {
      "title": "Can Score",
      "type": "boolean"
     },
     "my_attendance": {
      "anyOf": [
       {
        "enum": [
         "confirmed",
         "declined"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "My Attendance"
     },
     "my_status": {
      "anyOf": [
       {
        "enum": [
         "active",
         "waitlist"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "My Status"
     },
     "my_team": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "My Team"
     },
     "payment_status": {
      "anyOf": [
       {
        "enum": [
         "none",
         "wait",
         "check",
         "paid",
         "refunding",
         "refunded"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "свой статус оплаты участия: none — не требуется, wait — ожидается, check — на проверке, paid — оплачено, refunding — возврат оформляется, refunded — возвращено; null — не записан",
      "title": "Payment Status"
     },
     "person": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Person"
     },
     "reason": {
      "anyOf": [
       {
        "enum": [
         "closed",
         "login",
         "no_person",
         "entered"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "почему нельзя записаться",
      "title": "Reason"
     },
     "role": {
      "enum": [
       "guest",
       "player",
       "organizer"
      ],
      "title": "Role",
      "type": "string"
     }
    },
    "required": [
     "role",
     "can_manage",
     "can_score",
     "person",
     "my_team",
     "my_status",
     "can_enter",
     "reason",
     "my_attendance",
     "can_answer"
    ],
    "title": "Viewer",
    "type": "object"
   },
   "etna__api__leagues__GroupOut": {
    "properties": {
     "name": {
      "title": "Name",
      "type": "string"
     },
     "rows": {
      "items": {
       "$ref": "#/components/schemas/GroupRow"
      },
      "title": "Rows",
      "type": "array"
     }
    },
    "required": [
     "name",
     "rows"
    ],
    "title": "GroupOut",
    "type": "object"
   },
   "etna__api__public__ClubRef": {
    "properties": {
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "id",
     "name"
    ],
    "title": "ClubRef",
    "type": "object"
   },
   "etna__api__tournaments__ClubRef": {
    "properties": {
     "address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Address"
     },
     "city_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "город клуба: «Три поля» подставляют его новому игроку",
      "title": "City Code"
     },
     "id": {
      "title": "Id",
      "type": "string"
     },
     "name": {
      "title": "Name",
      "type": "string"
     },
     "page": {
      "default": false,
      "description": "у клуба есть публичная страница /clubs/view/?id= (каталог, в том числе OSM)",
      "title": "Page",
      "type": "boolean"
     }
    },
    "required": [
     "id",
     "name",
     "address"
    ],
    "title": "ClubRef",
    "type": "object"
   }
  },
  "securitySchemes": {
   "bearerAuth": {
    "description": "Токен из POST /auth/token учётки интеграции. Cookie на api-хосте не принимаются, CSRF не нужен.",
    "scheme": "bearer",
    "type": "http"
   },
   "partnerKey": {
    "bearerFormat": "etk_live_<id>_<secret>",
    "description": "Ключ партнёра сервер-сервер: Authorization: Bearer etk_live_… (песочница — etk_test_…), только на api.etnapadel.ru и только на чтение. Выдаёт ETNA по заявке с портала; показывается один раз, у нас — только хеш; ротация и отзыв. Область — действия реестра прав: public и league.curate (журнал). Лимиты — свои у ключа; ответ несёт RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset.",
    "scheme": "bearer",
    "type": "http"
   }
  }
 },
 "info": {
  "contact": {
   "name": "ETNA Padel API",
   "url": "https://etnapadel.ru/developers/#access"
  },
  "description": "Публичная часть API ETNA Padel: витрина лиги, турниры клубов, лиги сообществ, клубы города и журнал событий для партнёров. Изменяют данные только люди в кабинетах; партнёр читает. Портал: https://etnapadel.ru/developers/",
  "summary": "Публичный и партнёрский API лиги ETNA Padel: только чтение, Bearer.",
  "title": "ETNA Padel API",
  "version": "0.2.0",
  "x-i18n": {
   "en": {
    "summary": "Public and partner API of the ETNA Padel league: read-only, Bearer."
   },
   "es": {
    "summary": "API pública y para socios de la liga ETNA Padel: solo lectura, Bearer."
   }
  }
 },
 "openapi": "3.1.0",
 "paths": {
  "/auth/logout": {
   "post": {
    "operationId": "post_auth_logout",
    "responses": {
     "204": {
      "description": "Без тела"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "UNAUTHORIZED",
          "message": "Нужен вход: токена нет, он истёк или отозван"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нужен вход: токена нет, он истёк или отозван",
      "x-codes": [
       "UNAUTHORIZED"
      ]
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "CSRF",
          "message": "Нет прав"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет прав",
      "x-codes": [
       "CSRF"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {
      "bearerAuth": []
     }
    ],
    "summary": "Отозвать токен",
    "tags": [
     "auth"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Revoke the token"
     },
     "es": {
      "summary": "Revocar el token"
     }
    }
   }
  },
  "/auth/token": {
   "post": {
    "operationId": "post_auth_token",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LoginIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "access_token": "<токен>",
         "expires_in": 1,
         "token_type": "bearer"
        },
        "schema": {
         "$ref": "#/components/schemas/TokenOut"
        }
       }
      },
      "description": "OK"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_CREDENTIALS",
          "message": "Нужен вход: токена нет, он истёк или отозван"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нужен вход: токена нет, он истёк или отозван",
      "x-codes": [
       "INVALID_CREDENTIALS"
      ]
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "PASSWORD_LOGIN_DISABLED",
          "message": "Нет прав"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет прав",
      "x-codes": [
       "PASSWORD_LOGIN_DISABLED"
      ]
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "423": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "ACCOUNT_LOCKED",
          "message": "Учётка временно закрыта"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Учётка временно закрыта",
      "x-codes": [
       "ACCOUNT_LOCKED"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_ATTEMPTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_ATTEMPTS",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Получить Bearer-токен по логину и паролю учётки интеграции",
    "tags": [
     "auth"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Get a Bearer token with the integration account's login and password"
     },
     "es": {
      "summary": "Obtener un token Bearer con el usuario y la contraseña de la cuenta de integración"
     }
    }
   }
  },
  "/companies/{cid}": {
   "get": {
    "operationId": "get_companies_cid",
    "parameters": [
     {
      "in": "path",
      "name": "cid",
      "required": true,
      "schema": {
       "title": "Cid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "achievements": [
          {}
         ],
         "city": "msk",
         "id": "t-7f3a9c",
         "industry": "…",
         "name": "Кира М.",
         "persons": [
          {
           "city": "msk",
           "id": "t-7f3a9c",
           "matches": 1,
           "name": "Кира М."
          }
         ],
         "teams": [
          {
           "city": "msk",
           "edition": "cpl2027",
           "id": "t-7f3a9c",
           "name": "Кира М.",
           "status": "…"
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/CompanyV1"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Компания",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "card",
    "x-i18n": {
     "en": {
      "summary": "Company"
     },
     "es": {
      "summary": "Empresa"
     }
    }
   }
  },
  "/editions": {
   "get": {
    "operationId": "get_editions",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "cities": [
           "msk"
          ],
          "id": "cpl2027",
          "level": "…",
          "level_label": "…",
          "max_teams": 1,
          "name": "Кира М.",
          "period": "сентябрь — декабрь 2026",
          "phase": {
           "name": "Кира М.",
           "type": "match.result_recorded"
          },
          "series": "…",
          "status": "…",
          "status_label": "…",
          "teams_count": 1,
          "type": "match.result_recorded",
          "type_label": "…"
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/EditionCard"
         },
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Розыгрыши",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Seasons"
     },
     "es": {
      "summary": "Temporadas"
     }
    }
   }
  },
  "/editions/{eid}": {
   "get": {
    "operationId": "get_editions_eid",
    "parameters": [
     {
      "in": "path",
      "name": "eid",
      "required": true,
      "schema": {
       "title": "Eid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "about": "…",
         "bracket": [
          {}
         ],
         "cities": [
          "msk"
         ],
         "events": [
          {
           "end": "2026-11-17",
           "name": "Кира М.",
           "start": "2026-11-17",
           "state": "past",
           "type": "applications"
          }
         ],
         "final": "…",
         "id": "cpl2027",
         "level": "…",
         "level_label": "…",
         "max_teams": 1,
         "name": "Кира М.",
         "period": "сентябрь — декабрь 2026",
         "phase": {
          "name": "Кира М.",
          "type": "match.result_recorded"
         },
         "pools": [
          {
           "adv": 1,
           "city": "msk",
           "group": "…",
           "rounds": [
            1
           ],
           "teams": [
            "…"
           ]
          }
         ],
         "rules": {},
         "series": "…",
         "status": "…",
         "status_label": "…",
         "teams_count": 1,
         "type": "match.result_recorded",
         "type_label": "…",
         "winner": "t-cpl-msk-A-1"
        },
        "schema": {
         "$ref": "#/components/schemas/Edition"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Розыгрыш",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Season"
     },
     "es": {
      "summary": "Temporada"
     }
    }
   }
  },
  "/editions/{eid}/standings": {
   "get": {
    "operationId": "get_editions_eid_standings",
    "parameters": [
     {
      "in": "path",
      "name": "eid",
      "required": true,
      "schema": {
       "title": "Eid",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "city",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "City"
      }
     },
     {
      "in": "query",
      "name": "group",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Group"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "advances": false,
          "city": "msk",
          "games_l": 1,
          "games_w": 1,
          "group": "…",
          "l": 1,
          "p": 1,
          "place": 1,
          "pts": 1,
          "sets_l": 1,
          "sets_w": 1,
          "team": "t-cpl-msk-A-1",
          "team_name": "Кира М. / Олег О.",
          "w": 1
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/StandingRow"
         },
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Таблица розыгрыша",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "list",
    "x-i18n": {
     "en": {
      "summary": "Season standings"
     },
     "es": {
      "summary": "Clasificación de la temporada"
     }
    }
   }
  },
  "/events": {
   "get": {
    "operationId": "get_events",
    "parameters": [
     {
      "in": "query",
      "name": "since",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Since",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "type",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 400,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Type"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 200,
       "maximum": 1000,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "actor": "…",
          "cause": 1,
          "correlation": "a1b2c3d4e5f60718",
          "occurred_at": "2026-11-17T19:00:00+03:00",
          "payload": {},
          "recorded_at": "2026-11-17T19:00:00+03:00",
          "seq": 1,
          "source": "…",
          "subject_id": "x-7f3a9c",
          "subject_type": "…",
          "type": "match.result_recorded"
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/EventV1"
         },
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "UNAUTHORIZED",
          "message": "Нужен вход: токена нет, он истёк или отозван"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нужен вход: токена нет, он истёк или отозван",
      "x-codes": [
       "UNAUTHORIZED"
      ]
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "FORBIDDEN",
          "message": "Нет прав"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет прав",
      "x-codes": [
       "FORBIDDEN",
       "PASSWORD_CHANGE_REQUIRED"
      ]
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "События после известного seq",
    "tags": [
     "events"
    ],
    "x-etna-audience": "partner",
    "x-etna-key-actions": [
     "league.curate"
    ],
    "x-etna-roles": [
     "curator",
     "admin"
    ],
    "x-i18n": {
     "en": {
      "summary": "Events after a known seq"
     },
     "es": {
      "summary": "Eventos después de un seq conocido"
     }
    }
   }
  },
  "/events/{seq}/chain": {
   "get": {
    "operationId": "get_events_seq_chain",
    "parameters": [
     {
      "in": "path",
      "name": "seq",
      "required": true,
      "schema": {
       "title": "Seq",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "payload": {},
          "seq": 1,
          "subject": [
           "…"
          ],
          "type": "match.result_recorded"
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/ChainLink"
         },
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "UNAUTHORIZED",
          "message": "Нужен вход: токена нет, он истёк или отозван"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нужен вход: токена нет, он истёк или отозван",
      "x-codes": [
       "UNAUTHORIZED"
      ]
     },
     "403": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "FORBIDDEN",
          "message": "Нет прав"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет прав",
      "x-codes": [
       "FORBIDDEN",
       "PASSWORD_CHANGE_REQUIRED"
      ]
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Цепочка причин события",
    "tags": [
     "events"
    ],
    "x-etna-audience": "partner",
    "x-etna-key-actions": [
     "league.curate"
    ],
    "x-etna-roles": [
     "curator",
     "admin"
    ],
    "x-i18n": {
     "en": {
      "summary": "Cause chain of an event"
     },
     "es": {
      "summary": "Cadena de causas de un evento"
     }
    }
   }
  },
  "/health": {
   "get": {
    "operationId": "get_health",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "build": "…",
         "db": {
          "events": 1,
          "ok": false,
          "schema": "…"
         },
         "ok": false,
         "release_tasks": {
          "done": [
           "…"
          ],
          "failed": [
           "…"
          ]
         },
         "version": "0.2.0"
        },
        "schema": {
         "$ref": "#/components/schemas/Health"
        }
       }
      },
      "description": "OK"
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Сервис жив",
    "tags": [
     "service"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Service is alive"
     },
     "es": {
      "summary": "El servicio está activo"
     }
    }
   }
  },
  "/league-tours/{tour_id}": {
   "get": {
    "operationId": "get_league_tours_tour_id",
    "parameters": [
     {
      "in": "path",
      "name": "tour_id",
      "required": true,
      "schema": {
       "title": "Tour Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "address": "Москва, ул. Примерная, 1",
         "card_status": "soon",
         "categories": [
          {
           "category": "A",
           "closed": false,
           "edition": "cpl2027",
           "format": "groups_gold_silver",
           "max_pairs": 1,
           "pairs": 1,
           "waitlist": 1
          }
         ],
         "club": "Клуб «Северный»",
         "courts": [
          {
           "id": 1,
           "name": "Кира М."
          }
         ],
         "cta": "enter",
         "currency": "…",
         "date": "…",
         "description": "…",
         "ends_at": "2026-11-17T19:00:00+03:00",
         "entered": "A",
         "entry_fee": 1,
         "format": "groups_gold_silver",
         "hero_image": "…",
         "id": "t-7f3a9c",
         "is_final": false,
         "is_public": false,
         "league": "…",
         "league_name": "…",
         "max_pairs_default": 1,
         "name": "Кира М.",
         "number": 1,
         "points_scale": {},
         "registration_ends_at": "2026-11-17T19:00:00+03:00",
         "registration_starts_at": "2026-11-17T19:00:00+03:00",
         "results": [
          {
           "category": "A",
           "edition": "cpl2027",
           "finished": false,
           "format": "groups_gold_silver",
           "pairs": {},
           "podium": [],
           "stage": "registration"
          }
         ],
         "slot_minutes": 1,
         "slug": "osen-2026",
         "squads": false,
         "starts_at": "2026-11-17T19:00:00+03:00",
         "status": "draft",
         "venue": "…",
         "viewer": {
          "actions": [
           "open_registration"
          ],
          "can_enter": false,
          "can_manage": false,
          "entered": "A",
          "person": "p-3f9c2a",
          "player_category": "A",
          "reason": "squads"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/TourOut"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Тур лиги по id",
    "tags": [
     "leagues"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "League round by id"
     },
     "es": {
      "summary": "Jornada de la liga por id"
     }
    }
   }
  },
  "/leagues": {
   "get": {
    "operationId": "get_leagues",
    "parameters": [
     {
      "description": "размер страницы; без него — весь список, но не больше 200. Есть ещё — заголовок X-Next-Cursor",
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maximum": 200,
         "minimum": 1,
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "description": "размер страницы; без него — весь список, но не больше 200. Есть ещё — заголовок X-Next-Cursor",
       "title": "Limit"
      }
     },
     {
      "description": "значение X-Next-Cursor из прошлого ответа: следующая страница",
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "значение X-Next-Cursor из прошлого ответа: следующая страница",
       "title": "Cursor"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "categories": [
           "A"
          ],
          "club": "Клуб «Северный»",
          "days": [
           "…"
          ],
          "id": "t-7f3a9c",
          "mine": false,
          "name": "Кира М.",
          "pairs": 1,
          "squads": 1,
          "stage": "registration",
          "tours": 1,
          "type": "community"
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/LeagueCard"
         },
         "title": "Response Leagues Api V1 Leagues Get",
         "type": "array"
        }
       }
      },
      "description": "OK",
      "headers": {
       "X-Next-Cursor": {
        "$ref": "#/components/headers/X-Next-Cursor"
       }
      }
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_CURSOR",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_CURSOR",
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Лиги страницами",
    "tags": [
     "leagues"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Leagues, page by page"
     },
     "es": {
      "summary": "Ligas por páginas"
     }
    }
   }
  },
  "/leagues/{lid}": {
   "get": {
    "operationId": "get_leagues_lid",
    "parameters": [
     {
      "in": "path",
      "name": "lid",
      "required": true,
      "schema": {
       "title": "Lid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "about": "…",
         "award": {
          "categories": [
           {
            "category": null,
            "gold": null,
            "silver": null
           }
          ],
          "league": "…",
          "partner": {
           "name": null,
           "text": null
          },
          "podium": [
           {
            "name": null,
            "place": null,
            "pts": null,
            "squad": null
           }
          ],
          "shown": false,
          "winner": {
           "name": null,
           "place": null,
           "pts": null,
           "squad": null
          }
         },
         "by_category": [
          {
           "category": "A",
           "edition": "cpl2027",
           "gold": {
            "champion": null,
            "rounds": null,
            "teams": null
           },
           "groups": [],
           "pairs": 1,
           "silver": {
            "champion": null,
            "rounds": null,
            "teams": null
           },
           "stage": "registration"
          }
         ],
         "categories": [
          "A"
         ],
         "club": {
          "address": "Москва, ул. Примерная, 1",
          "city_code": "…",
          "id": "t-7f3a9c",
          "name": "Кира М.",
          "page": false
         },
         "days": [
          {
           "courts": [],
           "date": "…",
           "matches": 1,
           "ord": 1,
           "slot_minutes": 1,
           "starts_at": "2026-11-17T19:00:00+03:00"
          }
         ],
         "gold_per_group": 1,
         "group_size": 1,
         "hints": [
          {
           "border": "A",
           "category": "A",
           "mismatch": false,
           "season": "…",
           "suggest": "A",
           "team": "t-cpl-msk-A-1",
           "text": "…"
          }
         ],
         "id": "t-7f3a9c",
         "matches": [
          {
           "away": "t-cpl-msk-A-2",
           "away_name": "Анна В. / Илья Р.",
           "bracket": "main",
           "category": "A",
           "court": "…",
           "court_id": 1,
           "day": 1,
           "home": "t-cpl-msk-A-1",
           "home_name": "Кира М. / Олег О.",
           "id": "t-7f3a9c",
           "mine": false,
           "round": 1,
           "round_name": "…",
           "sets": [
            []
           ],
           "slot": 1,
           "starts_at": "2026-11-17T19:00:00+03:00",
           "status": "scheduled",
           "winner": "t-cpl-msk-A-1"
          }
         ],
         "name": "Кира М.",
         "organizer": "…",
         "partners": [
          {
           "name": "Кира М.",
           "slot": "award",
           "text": "…"
          }
         ],
         "places": [
          {}
         ],
         "points": {
          "gold_win": 1,
          "group_win": 1,
          "silver_win": 1
         },
         "squads": [
          {
           "captain": "…",
           "flag_bearer": null,
           "id": "t-7f3a9c",
           "kind": "community",
           "name": "Кира М.",
           "pairs": []
          }
         ],
         "stage": "registration",
         "table": [
          {
           "games_l": 1,
           "games_w": 1,
           "gold_titles": 1,
           "losses": 1,
           "name": "Кира М.",
           "pairs": 1,
           "place": 1,
           "pts": 1,
           "sets_l": 1,
           "sets_w": 1,
           "squad": "…",
           "wins": 1
          }
         ],
         "tours": [
          {
           "card_status": "soon",
           "categories": [],
           "club": "Клуб «Северный»",
           "cta": "enter",
           "date": "…",
           "ends_at": "2026-11-17T19:00:00+03:00",
           "entered": "A",
           "format": "groups_gold_silver",
           "hero_image": "…",
           "id": "t-7f3a9c",
           "is_final": false,
           "league": "…",
           "name": "Кира М.",
           "number": 1,
           "slug": "osen-2026",
           "squads": false,
           "starts_at": "2026-11-17T19:00:00+03:00",
           "status": "draft",
           "venue": "…"
          }
         ],
         "type": "community",
         "viewer": {
          "can_manage": false,
          "can_score": false,
          "captain_of": [
           "…"
          ],
          "my_pairs": [
           "…"
          ],
          "person": "p-3f9c2a"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/LeagueOut"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Лига",
    "tags": [
     "leagues"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "League"
     },
     "es": {
      "summary": "Liga"
     }
    }
   }
  },
  "/leagues/{lid}/calendar.ics": {
   "get": {
    "operationId": "get_leagues_lid_calendar_ics",
    "parameters": [
     {
      "in": "path",
      "name": "lid",
      "required": true,
      "schema": {
       "title": "Lid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "text/calendar": {
        "schema": {
         "type": "string"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Календарь лиги (.ics)",
    "tags": [
     "leagues"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "League calendar (.ics)"
     },
     "es": {
      "summary": "Calendario de la liga (.ics)"
     }
    }
   }
  },
  "/leagues/{lid}/table": {
   "get": {
    "operationId": "get_leagues_lid_table",
    "parameters": [
     {
      "in": "path",
      "name": "lid",
      "required": true,
      "schema": {
       "title": "Lid",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "by",
      "required": false,
      "schema": {
       "default": "player",
       "enum": [
        "player",
        "company"
       ],
       "title": "By",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "by": "player",
         "rows": [
          {
           "company": "…",
           "id": "t-7f3a9c",
           "name": "Кира М.",
           "place": 1,
           "total": 1,
           "tours": []
          }
         ],
         "scale": {},
         "tours": [
          {
           "id": "t-7f3a9c",
           "is_final": false,
           "name": "Кира М.",
           "number": 1
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/LeagueTable"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Таблица лиги",
    "tags": [
     "leagues"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "list",
    "x-i18n": {
     "en": {
      "summary": "League standings"
     },
     "es": {
      "summary": "Clasificación de la liga"
     }
    }
   }
  },
  "/leagues/{lid}/tours": {
   "get": {
    "operationId": "get_leagues_lid_tours",
    "parameters": [
     {
      "in": "path",
      "name": "lid",
      "required": true,
      "schema": {
       "title": "Lid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "card_status": "soon",
          "categories": [
           {
            "category": "A",
            "closed": false,
            "edition": "cpl2027",
            "format": "groups_gold_silver",
            "max_pairs": null,
            "pairs": 1,
            "waitlist": 1
           }
          ],
          "club": "Клуб «Северный»",
          "cta": "enter",
          "date": "…",
          "ends_at": "2026-11-17T19:00:00+03:00",
          "entered": "A",
          "format": "groups_gold_silver",
          "hero_image": "…",
          "id": "t-7f3a9c",
          "is_final": false,
          "league": "…",
          "name": "Кира М.",
          "number": 1,
          "slug": "osen-2026",
          "squads": false,
          "starts_at": "2026-11-17T19:00:00+03:00",
          "status": "draft",
          "venue": "…"
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/TourCard"
         },
         "title": "Response Tours Api V1 Leagues  Lid  Tours Get",
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Туры лиги",
    "tags": [
     "leagues"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "League rounds"
     },
     "es": {
      "summary": "Jornadas de la liga"
     }
    }
   }
  },
  "/leagues/{lid}/tours/{slug}": {
   "get": {
    "operationId": "get_leagues_lid_tours_slug",
    "parameters": [
     {
      "in": "path",
      "name": "lid",
      "required": true,
      "schema": {
       "title": "Lid",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "address": "Москва, ул. Примерная, 1",
         "card_status": "soon",
         "categories": [
          {
           "category": "A",
           "closed": false,
           "edition": "cpl2027",
           "format": "groups_gold_silver",
           "max_pairs": 1,
           "pairs": 1,
           "waitlist": 1
          }
         ],
         "club": "Клуб «Северный»",
         "courts": [
          {
           "id": 1,
           "name": "Кира М."
          }
         ],
         "cta": "enter",
         "currency": "…",
         "date": "…",
         "description": "…",
         "ends_at": "2026-11-17T19:00:00+03:00",
         "entered": "A",
         "entry_fee": 1,
         "format": "groups_gold_silver",
         "hero_image": "…",
         "id": "t-7f3a9c",
         "is_final": false,
         "is_public": false,
         "league": "…",
         "league_name": "…",
         "max_pairs_default": 1,
         "name": "Кира М.",
         "number": 1,
         "points_scale": {},
         "registration_ends_at": "2026-11-17T19:00:00+03:00",
         "registration_starts_at": "2026-11-17T19:00:00+03:00",
         "results": [
          {
           "category": "A",
           "edition": "cpl2027",
           "finished": false,
           "format": "groups_gold_silver",
           "pairs": {},
           "podium": [],
           "stage": "registration"
          }
         ],
         "slot_minutes": 1,
         "slug": "osen-2026",
         "squads": false,
         "starts_at": "2026-11-17T19:00:00+03:00",
         "status": "draft",
         "venue": "…",
         "viewer": {
          "actions": [
           "open_registration"
          ],
          "can_enter": false,
          "can_manage": false,
          "entered": "A",
          "person": "p-3f9c2a",
          "player_category": "A",
          "reason": "squads"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/TourOut"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Тур лиги по адресу",
    "tags": [
     "leagues"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "League round by its slug"
     },
     "es": {
      "summary": "Jornada de la liga por su dirección"
     }
    }
   }
  },
  "/legal": {
   "get": {
    "operationId": "get_legal",
    "parameters": [
     {
      "description": "язык названий и адресов документов",
      "in": "query",
      "name": "lang",
      "required": false,
      "schema": {
       "default": "ru",
       "description": "язык названий и адресов документов",
       "pattern": "^(ru|en|es)$",
       "title": "Lang",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "documents": [
          {
           "langs": [
            "…"
           ],
           "slug": "osen-2026",
           "title": "Пятничный турнир",
           "url": "https://etnapadel.ru/…",
           "version": "0.2.0"
          }
         ],
         "status": "…"
        },
        "schema": {
         "$ref": "#/components/schemas/LegalOut"
        }
       }
      },
      "description": "OK"
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Официальные документы и их версии",
    "tags": [
     "service"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Official documents and their versions"
     },
     "es": {
      "summary": "Documentos oficiales y sus versiones"
     }
    }
   }
  },
  "/matches": {
   "get": {
    "operationId": "get_matches",
    "parameters": [
     {
      "in": "query",
      "name": "edition",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "minLength": 1,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Edition"
      }
     },
     {
      "in": "query",
      "name": "team",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "minLength": 1,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Team"
      }
     },
     {
      "in": "query",
      "name": "person",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "minLength": 1,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Person"
      }
     },
     {
      "in": "query",
      "name": "company",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "minLength": 1,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Company"
      }
     },
     {
      "in": "query",
      "name": "city",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "City"
      }
     },
     {
      "in": "query",
      "name": "from",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "From"
      }
     },
     {
      "in": "query",
      "name": "to",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "To"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 1000,
       "maximum": 1000,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "away": "t-cpl-msk-A-2",
          "away_name": "Анна В. / Илья Р.",
          "bracket": {},
          "city": "msk",
          "court": "…",
          "court_id": 1,
          "edition": "cpl2027",
          "group": "…",
          "home": "t-cpl-msk-A-1",
          "home_name": "Кира М. / Олег О.",
          "id": "m1",
          "lineup_away": [
           "…"
          ],
          "lineup_home": [
           "…"
          ],
          "pending_report": {},
          "result_type": "played",
          "round": 1,
          "sets": [
           [
            1
           ]
          ],
          "stage": "group",
          "stage_name": "Групповой этап",
          "starts_at": "2026-11-17T19:00:00+03:00",
          "status": "scheduled",
          "stream_url": "https://etnapadel.ru/…",
          "tiebreak_sets": [
           false
          ],
          "venue": {
           "address": null,
           "id": "t-7f3a9c",
           "name": "Кира М."
          },
          "winner": "t-cpl-msk-A-1"
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/Match"
         },
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Матчи с фильтрами",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "list",
    "x-i18n": {
     "en": {
      "summary": "Matches with filters"
     },
     "es": {
      "summary": "Partidos con filtros"
     }
    }
   }
  },
  "/matches/{mid}": {
   "get": {
    "operationId": "get_matches_mid",
    "parameters": [
     {
      "in": "path",
      "name": "mid",
      "required": true,
      "schema": {
       "title": "Mid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "away": "t-cpl-msk-A-2",
         "away_name": "Анна В. / Илья Р.",
         "bracket": {},
         "city": "msk",
         "court": "…",
         "court_id": 1,
         "edition": "cpl2027",
         "group": "…",
         "home": "t-cpl-msk-A-1",
         "home_name": "Кира М. / Олег О.",
         "id": "m1",
         "lineup_away": [
          "…"
         ],
         "lineup_home": [
          "…"
         ],
         "pending_report": {},
         "result_type": "played",
         "round": 1,
         "sets": [
          [
           1
          ]
         ],
         "stage": "group",
         "stage_name": "Групповой этап",
         "starts_at": "2026-11-17T19:00:00+03:00",
         "status": "scheduled",
         "stream_url": "https://etnapadel.ru/…",
         "tiebreak_sets": [
          false
         ],
         "venue": {
          "address": "Москва, ул. Примерная, 1",
          "id": "t-7f3a9c",
          "name": "Кира М."
         },
         "winner": "t-cpl-msk-A-1"
        },
        "schema": {
         "$ref": "#/components/schemas/Match"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Матч",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Match"
     },
     "es": {
      "summary": "Partido"
     }
    }
   }
  },
  "/partner/me": {
   "get": {
    "operationId": "get_partner_me",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "actions": [
          "…"
         ],
         "app": "…",
         "daily_requests": 1,
         "is_test": false,
         "key": "…",
         "operations": [
          "…"
         ],
         "scope": "…",
         "scope_id": "x-7f3a9c",
         "used_today": 1
        },
        "schema": {
         "$ref": "#/components/schemas/MeOut"
        }
       }
      },
      "description": "OK"
     },
     "401": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "UNAUTHORIZED",
          "message": "Нужен вход: токена нет, он истёк или отозван"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нужен вход: токена нет, он истёк или отозван",
      "x-codes": [
       "UNAUTHORIZED"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {
      "partnerKey": []
     }
    ],
    "summary": "Что может ключ партнёра и сколько осталось на сегодня",
    "tags": [
     "auth"
    ],
    "x-etna-audience": "partner",
    "x-i18n": {
     "en": {
      "summary": "What the partner key can do and how much is left today"
     },
     "es": {
      "summary": "Qué puede la clave de socio y cuánto queda hoy"
     }
    }
   }
  },
  "/persons/{pid}": {
   "get": {
    "operationId": "get_persons_pid",
    "parameters": [
     {
      "in": "path",
      "name": "pid",
      "required": true,
      "schema": {
       "title": "Pid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "achievements": [
          {}
         ],
         "avatar_style": "fighter",
         "city": "msk",
         "company": "…",
         "company_name": "Компания «Пример»",
         "department": "…",
         "id": "t-7f3a9c",
         "name": "Кира М.",
         "photo_url": "https://etnapadel.ru/…",
         "profile_owner": "…",
         "standing": {
          "matches": 1,
          "provisional": false,
          "rank": 1,
          "trend": "up"
         },
         "status": "…",
         "teams": [
          {
           "edition": "cpl2027",
           "id": "t-7f3a9c",
           "name": "Кира М.",
           "role": "…"
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/PersonV1"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Игрок в публичном виде",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "card",
    "x-i18n": {
     "en": {
      "summary": "Player, public view"
     },
     "es": {
      "summary": "Jugador, vista pública"
     }
    }
   }
  },
  "/public/clubs": {
   "get": {
    "operationId": "get_public_clubs",
    "parameters": [
     {
      "in": "query",
      "name": "city",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 16,
         "minLength": 1,
         "pattern": "^[a-z0-9-]+$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "City"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "cities": [
          {
           "clubs": 1,
           "code": "NOT_FOUND",
           "name": "Кира М."
          }
         ],
         "clubs": [
          {
           "city": null,
           "claimed": false,
           "courts": null,
           "id": "t-7f3a9c",
           "lat": 1,
           "lon": 1,
           "name": "Кира М.",
           "named": false,
           "source": "osm"
          }
         ],
         "courts": 1,
         "osm": {
          "attribution": "…",
          "imported_at": "2026-11-17T19:00:00+03:00",
          "license": {
           "copyright_url": "https://etnapadel.ru/…",
           "name": "Кира М.",
           "url": "https://etnapadel.ru/…"
          }
         }
        },
        "schema": {
         "$ref": "#/components/schemas/ClubsOut"
        }
       }
      },
      "description": "OK"
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Клубы города (OpenStreetMap)",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "City clubs (OpenStreetMap)"
     },
     "es": {
      "summary": "Clubes de la ciudad (OpenStreetMap)"
     }
    }
   }
  },
  "/public/clubs/{club_id}": {
   "get": {
    "operationId": "get_public_clubs_club_id",
    "parameters": [
     {
      "in": "path",
      "name": "club_id",
      "required": true,
      "schema": {
       "title": "Club Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "address": "Москва, ул. Примерная, 1",
         "can_edit": false,
         "can_remove_photos": false,
         "city": {
          "code": "NOT_FOUND",
          "name": "Кира М."
         },
         "claimed": false,
         "courts": {
          "indoor": 1,
          "outdoor": 1,
          "total": 1
         },
         "etna_tournaments": [
          {
           "date": "…",
           "id": "t-7f3a9c",
           "name": "Кира М."
          }
         ],
         "fpr": {
          "attribution": "…",
          "seen_at": "2026-11-17T19:00:00+03:00",
          "url": "https://etnapadel.ru/…"
         },
         "fpr_images": 1,
         "from_club": [
          "…"
         ],
         "hidden": false,
         "id": "t-7f3a9c",
         "lat": 1,
         "logo": {
          "credit": "…",
          "id": 1,
          "source": "fpr",
          "url": "https://etnapadel.ru/…"
         },
         "lon": 1,
         "my_claim": {
          "id": "t-7f3a9c",
          "status": "pending"
         },
         "name": "Кира М.",
         "named": false,
         "osm": {
          "attribution": "…",
          "key": "…",
          "license": {
           "copyright_url": null,
           "name": null,
           "url": null
          },
          "seen_at": "2026-11-17T19:00:00+03:00",
          "url": "https://etnapadel.ru/…"
         },
         "phone": "…",
         "photos": [
          {
           "credit": "…",
           "height": 1,
           "id": 1,
           "screen": "…",
           "source": "fpr",
           "thumb": "…",
           "url": "https://etnapadel.ru/…",
           "width": 1
          }
         ],
         "source": "osm",
         "tournaments": [
          {
           "category": "…",
           "city": null,
           "claimed": false,
           "club": null,
           "edition_id": "x-7f3a9c",
           "ends_on": "…",
           "id": "t-7f3a9c",
           "mine": false,
           "name": "Кира М.",
           "source": {
            "name": null,
            "url": null
           },
           "starts_on": "…",
           "venue": "…"
          }
         ],
         "website": "…"
        },
        "schema": {
         "$ref": "#/components/schemas/ClubPage"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Страница клуба",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Club page"
     },
     "es": {
      "summary": "Página del club"
     }
    }
   }
  },
  "/public/clubs/{club_id}/activity": {
   "get": {
    "operationId": "get_public_clubs_club_id_activity",
    "parameters": [
     {
      "in": "path",
      "name": "club_id",
      "required": true,
      "schema": {
       "title": "Club Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "categories": [
          {
           "id": "t-7f3a9c",
           "share": 1
          }
         ],
         "clubs": [
          {
           "id": "t-7f3a9c",
           "name": "Кира М.",
           "share": 1
          }
         ],
         "days": 1,
         "enough": false,
         "formats": [
          {
           "id": "t-7f3a9c",
           "share": 1
          }
         ],
         "id": "t-7f3a9c",
         "matches": 1,
         "min": 1,
         "name": "Кира М.",
         "people": 1,
         "times": [
          {
           "id": "t-7f3a9c",
           "share": 1
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/PeerStats"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_ATTEMPTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_ATTEMPTS",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Что играют в клубе: доли форматов и времени",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "What the club plays: shares of formats and times"
     },
     "es": {
      "summary": "Qué se juega en el club: formatos y horarios"
     }
    }
   }
  },
  "/public/clubs/{club_id}/live": {
   "get": {
    "operationId": "get_public_clubs_club_id_live",
    "parameters": [
     {
      "in": "path",
      "name": "club_id",
      "required": true,
      "schema": {
       "title": "Club Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "comebacks": 1,
         "date": "…",
         "enough": false,
         "formats": [
          {
           "id": "t-7f3a9c",
           "share": 1
          }
         ],
         "id": "t-7f3a9c",
         "live": 1,
         "matches": 1,
         "min": 1,
         "name": "Кира М.",
         "people": 1
        },
        "schema": {
         "$ref": "#/components/schemas/ClubLive"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_ATTEMPTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_ATTEMPTS",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "«Живые цифры» клуба за сегодня",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Club's live figures for today"
     },
     "es": {
      "summary": "Cifras en vivo del club de hoy"
     }
    }
   }
  },
  "/public/opportunities": {
   "get": {
    "operationId": "get_public_opportunities",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "days": 1,
         "places": [
          {
           "address": "Москва, ул. Примерная, 1",
           "count": 1,
           "geo": null,
           "key": "…",
           "name": "Кира М."
          }
         ],
         "points": [
          {
           "action": {
            "id": null,
            "kind": null,
            "path": null
           },
           "category": "A",
           "club": null,
           "date": "…",
           "format": "…",
           "key": "…",
           "kind": "need",
           "minutes": 1,
           "place": "…",
           "players": 1,
           "seats_left": 1,
           "starts_at": "2026-11-17T19:00:00+03:00",
           "title": "Пятничный турнир",
           "where": "…"
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/OpportunityMap"
        }
       }
      },
      "description": "OK"
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Где сыграть сейчас: турниры с местами и «Нужен игрок»",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Where to play now: tournaments with open spots and «Player needed»"
     },
     "es": {
      "summary": "Dónde jugar ahora: torneos con plazas y «Se busca jugador»"
     }
    }
   }
  },
  "/public/search": {
   "get": {
    "operationId": "get_public_search",
    "parameters": [
     {
      "description": "от 2 символов; по началу слов, регистр не важен, ё = е",
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "default": "",
       "description": "от 2 символов; по началу слов, регистр не важен, ё = е",
       "maxLength": 80,
       "title": "Q",
       "type": "string"
      }
     },
     {
      "description": "showcase — с примерами «Витрины»",
      "in": "query",
      "name": "mode",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "enum": [
          "pilot",
          "showcase"
         ],
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "showcase — с примерами «Витрины»",
       "title": "Mode"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "items": [
          {
           "href": "…",
           "sub": "…",
           "title": "Пятничный турнир",
           "type": "tournament"
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/SearchOut"
        }
       }
      },
      "description": "OK"
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_ATTEMPTS",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Поиск по сайту: турниры, лиги, клубы, тренеры, пары, компании, игроки",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "search",
    "x-i18n": {
     "en": {
      "summary": "Site search: tournaments, leagues, clubs, coaches, pairs, companies, players"
     },
     "es": {
      "summary": "Búsqueda en el sitio: torneos, ligas, clubes, entrenadores, parejas, empresas, jugadores"
     }
    }
   }
  },
  "/public/search/hints": {
   "get": {
    "operationId": "get_public_search_hints",
    "parameters": [
     {
      "description": "showcase — с примерами «Витрины»",
      "in": "query",
      "name": "mode",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "enum": [
          "pilot",
          "showcase"
         ],
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "showcase — с примерами «Витрины»",
       "title": "Mode"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "items": [
          {
           "href": "…",
           "sub": "…",
           "title": "Пятничный турнир",
           "type": "tournament"
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/HintsOut"
        }
       }
      },
      "description": "OK"
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_ATTEMPTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_ATTEMPTS",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Примеры для поиска: турнир, лига, клуб и тренер",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Search examples: a tournament, a league, a club and a coach"
     },
     "es": {
      "summary": "Ejemplos de búsqueda: un torneo, una liga, un club y un entrenador"
     }
    }
   }
  },
  "/public/tournaments": {
   "get": {
    "operationId": "get_public_tournaments",
    "parameters": [
     {
      "in": "query",
      "name": "city",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 16,
         "minLength": 1,
         "pattern": "^[a-z0-9-]+$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "City"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "today": "…",
         "tournaments": [
          {
           "category": "…",
           "city": null,
           "claimed": false,
           "club": null,
           "edition_id": "x-7f3a9c",
           "ends_on": "…",
           "id": "t-7f3a9c",
           "mine": false,
           "name": "Кира М.",
           "source": {
            "name": null,
            "url": null
           },
           "starts_on": "…",
           "venue": "…"
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/ListedOut"
        }
       }
      },
      "description": "OK"
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Официальные турниры города со ссылкой на источник",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Official city tournaments with a source link"
     },
     "es": {
      "summary": "Torneos oficiales de la ciudad con enlace a la fuente"
     }
    }
   }
  },
  "/rating": {
   "get": {
    "operationId": "get_rating",
    "parameters": [
     {
      "in": "query",
      "name": "city",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "City"
      }
     },
     {
      "in": "query",
      "name": "company",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "minLength": 1,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Company"
      }
     },
     {
      "in": "query",
      "name": "edition",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "minLength": 1,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Edition"
      }
     },
     {
      "in": "query",
      "name": "provisional",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(true|false)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Provisional"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 500,
       "maximum": 1000,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "city": "msk",
          "company": "…",
          "company_name": "Компания «Пример»",
          "matches": 1,
          "name": "Кира М.",
          "person": "p-3f9c2a",
          "provisional": false,
          "rank": 1,
          "trend": "up"
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/RatingRow"
         },
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_REQUEST",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Места игроков без чисел рейтинга",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "list",
    "x-i18n": {
     "en": {
      "summary": "Player places without rating numbers"
     },
     "es": {
      "summary": "Puestos de jugadores sin cifras de rating"
     }
    }
   }
  },
  "/rating/pairs": {
   "get": {
    "operationId": "get_rating_pairs",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "categories": [
          {
           "category": "A",
           "pairs": []
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/Places"
        }
       }
      },
      "description": "OK"
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Места пар в категориях",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "list",
    "x-i18n": {
     "en": {
      "summary": "Pair places by category"
     },
     "es": {
      "summary": "Puestos de parejas por categoría"
     }
    }
   }
  },
  "/steps": {
   "get": {
    "operationId": "get_steps",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "decided": false,
         "note": "…",
         "steps": [
          {
           "from": 1,
           "here": false,
           "id": "t-7f3a9c",
           "opens": [],
           "text": "…",
           "title": "Пятничный турнир",
           "to": 1
          }
         ]
        },
        "schema": {
         "$ref": "#/components/schemas/Steps"
        }
       }
      },
      "description": "OK"
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Ступени 1.0–7.0: что открывает каждая",
    "tags": [
     "places"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Levels 1.0–7.0: what each one opens"
     },
     "es": {
      "summary": "Niveles 1.0–7.0: qué abre cada uno"
     }
    }
   }
  },
  "/teams/{tid}": {
   "get": {
    "operationId": "get_teams_tid",
    "parameters": [
     {
      "in": "path",
      "name": "tid",
      "required": true,
      "schema": {
       "title": "Tid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "achievements": [
          {}
         ],
         "city": "msk",
         "company": "…",
         "company_name": "Компания «Пример»",
         "department": "…",
         "edition": "cpl2027",
         "group": "…",
         "id": "t-7f3a9c",
         "matches": [
          {
           "away": "t-cpl-msk-A-2",
           "away_name": "Анна В. / Илья Р.",
           "bracket": {},
           "city": "msk",
           "court": "…",
           "court_id": 1,
           "edition": "cpl2027",
           "group": "…",
           "home": "t-cpl-msk-A-1",
           "home_name": "Кира М. / Олег О.",
           "id": "m1",
           "lineup_away": [
            "…"
           ],
           "lineup_home": [
            "…"
           ],
           "pending_report": {},
           "result_type": "played",
           "round": 1,
           "sets": [
            []
           ],
           "stage": "group",
           "stage_name": "Групповой этап",
           "starts_at": "2026-11-17T19:00:00+03:00",
           "status": "scheduled",
           "stream_url": "https://etnapadel.ru/…",
           "tiebreak_sets": [
            false
           ],
           "venue": null,
           "winner": "t-cpl-msk-A-1"
          }
         ],
         "members": [
          {
           "name": "Кира М.",
           "person": "p-3f9c2a",
           "role": "…"
          }
         ],
         "name": "Кира М.",
         "status": "…"
        },
        "schema": {
         "$ref": "#/components/schemas/TeamV1"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "READ_QUOTA",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "READ_QUOTA",
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Пара",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-etna-read-quota": "card",
    "x-i18n": {
     "en": {
      "summary": "Pair"
     },
     "es": {
      "summary": "Pareja"
     }
    }
   }
  },
  "/tournaments": {
   "get": {
    "operationId": "get_tournaments",
    "parameters": [
     {
      "description": "размер страницы; без него — весь список, но не больше 200. Есть ещё — заголовок X-Next-Cursor",
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maximum": 200,
         "minimum": 1,
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "description": "размер страницы; без него — весь список, но не больше 200. Есть ещё — заголовок X-Next-Cursor",
       "title": "Limit"
      }
     },
     {
      "description": "значение X-Next-Cursor из прошлого ответа: следующая страница",
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "значение X-Next-Cursor из прошлого ответа: следующая страница",
       "title": "Cursor"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "city": "msk",
          "city_name": "…",
          "club": "Клуб «Северный»",
          "club_id": "x-7f3a9c",
          "date": "…",
          "ends_at": "2026-11-17T19:00:00+03:00",
          "entered": false,
          "entry_mode": "self",
          "fee_rub": 1,
          "format": "round_robin",
          "id": "t-7f3a9c",
          "level": "…",
          "max_teams": 1,
          "mine": false,
          "my_entry": "active",
          "name": "Кира М.",
          "organizer": "…",
          "pay_status": "none",
          "series": false,
          "series_id": "x-7f3a9c",
          "series_rule": "…",
          "stage": "registration",
          "starts_at": "2026-11-17T19:00:00+03:00",
          "teams": 1,
          "waitlist": 1
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/TournamentCard"
         },
         "title": "Response Tournaments Api V1 Tournaments Get",
         "type": "array"
        }
       }
      },
      "description": "OK",
      "headers": {
       "X-Next-Cursor": {
        "$ref": "#/components/headers/X-Next-Cursor"
       }
      }
     },
     "422": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "INVALID_CURSOR",
          "message": "Неверный параметр или тело: в message — поле и правило"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Неверный параметр или тело: в message — поле и правило",
      "x-codes": [
       "INVALID_CURSOR",
       "INVALID_REQUEST"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Турниры клубов страницами",
    "tags": [
     "tournaments"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Club tournaments, page by page"
     },
     "es": {
      "summary": "Torneos de clubes por páginas"
     }
    }
   }
  },
  "/tournaments/{tid}/calendar.ics": {
   "get": {
    "operationId": "get_tournaments_tid_calendar_ics",
    "parameters": [
     {
      "in": "path",
      "name": "tid",
      "required": true,
      "schema": {
       "title": "Tid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "text/calendar": {
        "schema": {
         "type": "string"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Календарь турнира (.ics)",
    "tags": [
     "tournaments"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Tournament calendar (.ics)"
     },
     "es": {
      "summary": "Calendario del torneo (.ics)"
     }
    }
   }
  },
  "/tournaments/{tid}/overview": {
   "get": {
    "operationId": "get_tournaments_tid_overview",
    "parameters": [
     {
      "in": "path",
      "name": "tid",
      "required": true,
      "schema": {
       "title": "Tid",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": {
         "about": "…",
         "americano": {
          "alone": [],
          "close_rounds": "operator",
          "cup": [
           "…"
          ],
          "my_next": null,
          "my_squad": null,
          "pairs": [],
          "players": 1,
          "points_to": 1,
          "rank": "points_wins",
          "round_current": 1,
          "rounds": [],
          "rounds_called": 1,
          "rounds_closed": 1,
          "rounds_total": 1,
          "scoring": "points",
          "seed": "list",
          "seed_chosen": false,
          "squads": [],
          "table": [],
          "teams": []
         },
         "award_shown": false,
         "bracket": [
          {
           "matches": [
            "…"
           ],
           "name": "Кира М.",
           "round": 1
          }
         ],
         "brackets": [
          {
           "rounds": [],
           "type": "main"
          }
         ],
         "can_change_rules": false,
         "category": "A",
         "club": {
          "address": "Москва, ул. Примерная, 1",
          "city_code": "…",
          "id": "t-7f3a9c",
          "name": "Кира М.",
          "page": false
         },
         "club_id": "x-7f3a9c",
         "courts": [
          {
           "id": 1,
           "name": "Кира М."
          }
         ],
         "date": "…",
         "ends_at": "2026-11-17T19:00:00+03:00",
         "entry_mode": "self",
         "fee_note": "…",
         "fee_rub": 1,
         "few_teams": false,
         "format": "round_robin",
         "groups": [
          {
           "name": "Кира М.",
           "rows": []
          }
         ],
         "how_won": {
          "final": false,
          "match": "…",
          "text": "…"
         },
         "id": "t-7f3a9c",
         "matches": [
          {
           "away": "t-cpl-msk-A-2",
           "away_name": "Анна В. / Илья Р.",
           "bracket": "main",
           "category": "A",
           "court": "…",
           "court_id": 1,
           "home": "t-cpl-msk-A-1",
           "home_name": "Кира М. / Олег О.",
           "id": "t-7f3a9c",
           "mine": false,
           "round": 1,
           "round_name": "…",
           "sets": [
            []
           ],
           "slot": 1,
           "starts_at": "2026-11-17T19:00:00+03:00",
           "status": "scheduled",
           "winner": "t-cpl-msk-A-1"
          }
         ],
         "max_teams": 1,
         "min_teams": 1,
         "name": "Кира М.",
         "needs": [
          {
           "by_level": false,
           "category": "B",
           "confirmed": 1,
           "id": "t-7f3a9c",
           "my_status": "waiting",
           "note": "…",
           "organizer": "…",
           "place": "…",
           "players": 1,
           "responses_count": 1,
           "starts_at": "2026-11-17T19:00:00+03:00",
           "state": "open",
           "suitable": false,
           "tournament": null,
           "why": "…"
          }
         ],
         "organizer": "…",
         "pay_link": false,
         "predict_open": [
          "…"
         ],
         "seats_left": 1,
         "series": {
          "calendar": "…",
          "can_extend": false,
          "end_time": "2026-11-17T19:00:00+03:00",
          "id": "t-7f3a9c",
          "rule": "…",
          "start_time": "2026-11-17T19:00:00+03:00",
          "tournaments": []
         },
         "setup": {},
         "slot_minutes": 1,
         "stage": "registration",
         "standings": [
          {
           "matches": 1,
           "provisional": false,
           "rank": 1,
           "trend": "up"
          }
         ],
         "starts_at": "2026-11-17T19:00:00+03:00",
         "summary": {
          "confirmed": 1,
          "fee": false,
          "fee_paid": 1,
          "fee_reported": 1,
          "teams": 1
         },
         "teams": [
          {
           "attendance": "confirmed",
           "fee_paid": false,
           "fee_reported": false,
           "id": "t-7f3a9c",
           "losses": 1,
           "mine": false,
           "name": "Кира М.",
           "opponents": "much_stronger",
           "place": 1,
           "players": [],
           "provisional": false,
           "replaced": false,
           "trend": "up",
           "waitlist_pos": 1,
           "wins": 1
          }
         ],
         "tour": {
          "id": "t-7f3a9c",
          "league": "…",
          "name": "Кира М.",
          "number": 1,
          "slug": "osen-2026"
         },
         "variant": [
          "flex"
         ],
         "viewer": {
          "can_answer": false,
          "can_enter": false,
          "can_manage": false,
          "can_score": false,
          "my_attendance": "confirmed",
          "my_status": "active",
          "my_team": "…",
          "payment_status": "none",
          "person": "p-3f9c2a",
          "reason": "closed",
          "role": "guest"
         },
         "waitlist": [
          {
           "attendance": "confirmed",
           "fee_paid": false,
           "fee_reported": false,
           "id": "t-7f3a9c",
           "losses": 1,
           "mine": false,
           "name": "Кира М.",
           "opponents": "much_stronger",
           "place": 1,
           "players": [],
           "provisional": false,
           "replaced": false,
           "trend": "up",
           "waitlist_pos": 1,
           "wins": 1
          }
         ],
         "win_by": "wins",
         "winner": "t-cpl-msk-A-1"
        },
        "schema": {
         "$ref": "#/components/schemas/Tournament"
        }
       }
      },
      "description": "OK"
     },
     "404": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "NOT_FOUND",
          "message": "Нет такого объекта (или он чужой)"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Нет такого объекта (или он чужой)",
      "x-codes": [
       "NOT_FOUND"
      ]
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [
     {},
     {
      "partnerKey": []
     },
     {
      "bearerAuth": []
     }
    ],
    "summary": "Страница турнира: пары, матчи, таблица или сетка, победитель",
    "tags": [
     "tournaments"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "Tournament page: pairs, matches, table or bracket, winner"
     },
     "es": {
      "summary": "Página del torneo: parejas, partidos, tabla o cuadro, ganador"
     }
    }
   }
  },
  "/venues": {
   "get": {
    "operationId": "get_venues",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "example": [
         {
          "address": "Москва, ул. Примерная, 1",
          "city": "msk",
          "courts": [
           {
            "id": 1,
            "kind": null,
            "name": "Кира М."
           }
          ],
          "id": "t-7f3a9c",
          "lat": 1,
          "lon": 1,
          "name": "Кира М."
         }
        ],
        "schema": {
         "items": {
          "$ref": "#/components/schemas/VenueV1"
         },
         "type": "array"
        }
       }
      },
      "description": "OK"
     },
     "429": {
      "content": {
       "application/json": {
        "example": {
         "error": {
          "code": "TOO_MANY_REQUESTS",
          "message": "Слишком много запросов — ждать Retry-After"
         }
        },
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Слишком много запросов — ждать Retry-After",
      "headers": {
       "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
       }
      },
      "x-codes": [
       "TOO_MANY_REQUESTS"
      ]
     },
     "500": {
      "$ref": "#/components/responses/Internal"
     }
    },
    "security": [],
    "summary": "Площадки и корты лиги",
    "tags": [
     "league"
    ],
    "x-etna-audience": "public",
    "x-i18n": {
     "en": {
      "summary": "League venues and courts"
     },
     "es": {
      "summary": "Sedes y pistas de la liga"
     }
    }
   }
  }
 },
 "servers": [
  {
   "description": "production",
   "url": "https://api.etnapadel.ru/api/v1"
  }
 ],
 "tags": [
  {
   "description": "Живость сервиса и список официальных документов.",
   "name": "service",
   "x-i18n": {
    "en": {
     "description": "Service liveness and the list of official documents."
    },
    "es": {
     "description": "Estado del servicio y lista de documentos oficiales."
    }
   },
   "x-title": {
    "en": "Service",
    "es": "Servicio",
    "ru": "Служебное"
   }
  },
  {
   "description": "Bearer-токен для сервера партнёра и его отзыв.",
   "name": "auth",
   "x-i18n": {
    "en": {
     "description": "Bearer token for the partner's server and its revocation."
    },
    "es": {
     "description": "Token Bearer para el servidor del socio y su revocación."
    }
   },
   "x-title": {
    "en": "Token",
    "es": "Token",
    "ru": "Токен"
   }
  },
  {
   "description": "Идущие, ближайшие и завершённые турниры: пары, матчи, таблица или сетка, календарь.",
   "name": "tournaments",
   "x-i18n": {
    "en": {
     "description": "Ongoing, upcoming and finished tournaments: pairs, matches, table or bracket, calendar."
    },
    "es": {
     "description": "Torneos en curso, próximos y terminados: parejas, partidos, tabla o cuadro, calendario."
    }
   },
   "x-title": {
    "en": "Club tournaments",
    "es": "Torneos de clubes",
    "ru": "Турниры клубов"
   }
  },
  {
   "description": "Лиги, их туры, таблица и календарь.",
   "name": "leagues",
   "x-i18n": {
    "en": {
     "description": "Leagues, their rounds, standings and calendar."
    },
    "es": {
     "description": "Ligas, sus jornadas, clasificación y calendario."
    }
   },
   "x-title": {
    "en": "Community leagues",
    "es": "Ligas comunitarias",
    "ru": "Лиги сообществ"
   }
  },
  {
   "description": "Розыгрыши, таблицы, матчи, пары, компании, игроки и места в рейтинге — без чисел рейтинга.",
   "name": "league",
   "x-i18n": {
    "en": {
     "description": "Seasons, standings, matches, pairs, companies, players and rating places — without rating numbers."
    },
    "es": {
     "description": "Temporadas, clasificaciones, partidos, parejas, empresas, jugadores y puestos — sin cifras de rating."
    }
   },
   "x-title": {
    "en": "Corporate league",
    "es": "Liga corporativa",
    "ru": "Корпоративная лига"
   }
  },
  {
   "description": "Клубы и корты из открытых данных, турниры города, «живые цифры» клуба и где сыграть сейчас.",
   "name": "places",
   "x-i18n": {
    "en": {
     "description": "Clubs and courts from open data, city tournaments, live club figures and where to play now."
    },
    "es": {
     "description": "Clubes y pistas de datos abiertos, torneos de la ciudad, cifras en vivo del club y dónde jugar ahora."
    }
   },
   "x-title": {
    "en": "Clubs and city",
    "es": "Clubes y ciudad",
    "ru": "Клубы и город"
   }
  },
  {
   "description": "Поток изменений «причина → следствие» по номеру seq — для синхронизации системы партнёра.",
   "name": "events",
   "x-i18n": {
    "en": {
     "description": "Cause-and-effect stream of changes by seq number — to keep the partner's system in sync."
    },
    "es": {
     "description": "Flujo de cambios causa-efecto por número seq — para sincronizar el sistema del socio."
    }
   },
   "x-title": {
    "en": "Event journal",
    "es": "Registro de eventos",
    "ru": "Журнал событий"
   }
  }
 ],
 "x-etna-changelog": [
  {
   "date": "2026-11-11",
   "en": "Server-to-server partner keys (etk_live_, etk_test_), per-key quotas and RateLimit-* headers, GET /partner/me, HMAC-signed webhooks from the journal.",
   "es": "Claves de socio servidor a servidor (etk_live_, etk_test_), cuotas por clave y cabeceras RateLimit-*, GET /partner/me, webhooks firmados con HMAC desde el registro.",
   "ru": "Ключи партнёров сервер-сервер (etk_live_, etk_test_), квоты на ключ и заголовки RateLimit-*, GET /partner/me, вебхуки из журнала с подписью HMAC.",
   "version": "0.2.0"
  },
  {
   "date": "2026-11-11",
   "en": "Public API description and developer portal; daily ceiling on reading people (429 READ_QUOTA).",
   "es": "Descripción pública de la API y portal para desarrolladores; límite diario de lectura de personas (429 READ_QUOTA).",
   "ru": "Публичное описание API и портал для разработчиков; потолок выдачи людей в сутки (429 READ_QUOTA).",
   "version": "0.2.0"
  },
  {
   "date": "2026-11-05",
   "en": "Tournament and league pages by cursor (X-Next-Cursor); end-to-end tracing with traceparent.",
   "es": "Páginas de torneos y ligas por cursor (X-Next-Cursor); trazabilidad de extremo a extremo con traceparent.",
   "ru": "Страницы турниров и лиг курсором (X-Next-Cursor); сквозная трассировка traceparent.",
   "version": "0.2.0"
  }
 ],
 "x-etna-errors": [
  {
   "codes": "UNAUTHORIZED, INVALID_CREDENTIALS",
   "en": "No token, or it expired or was revoked — get a new one",
   "es": "No hay token, caducó o fue revocado — obtenga uno nuevo",
   "ru": "Токена нет, он истёк или отозван — получите новый",
   "status": 401
  },
  {
   "codes": "FORBIDDEN, PASSWORD_CHANGE_REQUIRED",
   "en": "The account has no rights; a temporary password must be changed first",
   "es": "La cuenta no tiene permisos; una contraseña temporal debe cambiarse primero",
   "ru": "У учётки нет прав; временный пароль — сначала смените его",
   "status": 403
  },
  {
   "codes": "NOT_FOUND",
   "en": "No such address or object — or it is not yours: the answer does not reveal that it exists",
   "es": "No existe la dirección u objeto — o no es suyo: la respuesta no revela que exista",
   "ru": "Нет адреса или объекта — или он чужой: по ответу не узнать, что объект есть",
   "status": 404
  },
  {
   "codes": "MATCH_CLOSED, …",
   "en": "The state has changed — read the object again",
   "es": "El estado ya cambió — vuelva a leer el objeto",
   "ru": "Состояние уже другое — перечитайте объект",
   "status": 409
  },
  {
   "codes": "PAYLOAD_TOO_LARGE",
   "en": "Body larger than 256 KiB",
   "es": "Cuerpo mayor de 256 KiB",
   "ru": "Тело больше 256 КиБ",
   "status": 413
  },
  {
   "codes": "INVALID_REQUEST, INVALID_CURSOR",
   "en": "Invalid parameter — message names the field and rule; cursor — start the list again",
   "es": "Parámetro no válido — message indica el campo y la regla; cursor — empiece la lista de nuevo",
   "ru": "Неверный параметр — в message поле и правило; курсор — начните список сначала",
   "status": 422
  },
  {
   "codes": "ACCOUNT_LOCKED",
   "en": "Account temporarily locked after failed logins — wait for Retry-After",
   "es": "Cuenta bloqueada temporalmente tras accesos fallidos — espere Retry-After",
   "ru": "Учётка временно закрыта после неудачных входов — ждите Retry-After",
   "status": 423
  },
  {
   "codes": "TOO_MANY_REQUESTS, TOO_MANY_ATTEMPTS, READ_QUOTA",
   "en": "Rate limit or the daily ceiling on reading people — wait for Retry-After",
   "es": "Límite de frecuencia o tope diario de lectura de personas — espere Retry-After",
   "ru": "Лимит частоты или потолок чтения людей за сутки — ждите Retry-After",
   "status": 429
  },
  {
   "codes": "INTERNAL",
   "en": "Service error: message contains the request id, send it to us",
   "es": "Error del servicio: message contiene el id de la petición, envíenoslo",
   "ru": "Ошибка сервиса: в message — код запроса, пришлите его нам",
   "status": 500
  },
  {
   "codes": "—",
   "en": "Service not ready — retry later with a pause",
   "es": "Servicio no disponible — reintente más tarde con una pausa",
   "ru": "Сервис не готов — повторите позже с паузой",
   "status": 503
  }
 ],
 "x-etna-limits": [
  {
   "en": "the whole API from one address",
   "es": "toda la API desde una dirección",
   "limit": "5 r/s, burst 20",
   "per": "address",
   "ru": "весь API с одного адреса",
   "what": "api"
  },
  {
   "en": "simultaneous connections per address",
   "es": "conexiones simultáneas por dirección",
   "limit": "20",
   "per": "address",
   "ru": "одновременных соединений с адреса",
   "what": "connections"
  },
  {
   "en": "POST /auth/token; after 5 failures in a row the account is locked for 15 min (423)",
   "es": "POST /auth/token; tras 5 fallos seguidos la cuenta se bloquea 15 min (423)",
   "limit": "30/min nginx, 10/min api",
   "per": "address",
   "ru": "POST /auth/token; после 5 неудач подряд учётка закрыта на 15 мин (423)",
   "what": "auth_token"
  },
  {
   "en": "request body, more — 413",
   "es": "cuerpo de la petición, más — 413",
   "limit": "256 KiB",
   "per": "request",
   "ru": "тело запроса, больше — 413",
   "what": "body"
  },
  {
   "en": "cards per page of tournaments and leagues (cursor)",
   "es": "tarjetas por página de torneos y ligas (cursor)",
   "limit": "200",
   "per": "page",
   "ru": "карточек на странице турниров и лиг (курсор)",
   "what": "page"
  },
  {
   "en": "journal events per request (by seq)",
   "es": "eventos del registro por petición (por seq)",
   "limit": "1000",
   "per": "page",
   "ru": "событий журнала за запрос (по seq)",
   "what": "events"
  },
  {
   "en": "people, pair and company cards per day (429 READ_QUOTA)",
   "es": "fichas de personas, parejas y empresas al día (429 READ_QUOTA)",
   "limit": "1500/day",
   "per": "account or address",
   "ru": "карточек людей, пар и компаний в сутки (429 READ_QUOTA)",
   "what": "people_card"
  },
  {
   "en": "requests to people lists per day (429 READ_QUOTA)",
   "es": "peticiones a listas de personas al día (429 READ_QUOTA)",
   "limit": "3000/day",
   "per": "account or address",
   "ru": "запросов к спискам людей в сутки (429 READ_QUOTA)",
   "what": "people_list"
  },
  {
   "en": "people search by name, from two letters, up to 10 results; club staff — 5× more",
   "es": "búsqueda de personas por nombre, desde dos letras, hasta 10 resultados; personal del club — 5× más",
   "limit": "300/day, 40/min",
   "per": "account",
   "ru": "поиск людей по имени, от двух букв, до 10 ответов; сотрудникам клуба — в 5 раз больше",
   "what": "people_search"
  }
 ],
 "x-etna-versioning": {
  "en": "The version is in the path (/api/v1). In v1 fields are only added; clients skip unknown fields. Removals and changes of meaning happen only in /api/v2. A deprecated operation answers with Deprecation and Sunset (shutdown date) headers at least 6 months in advance.",
  "es": "La versión va en la ruta (/api/v1). En v1 los campos solo se añaden; el cliente ignora los desconocidos. Eliminar o cambiar el sentido solo en /api/v2. Una operación obsoleta responde con las cabeceras Deprecation y Sunset (fecha de apagado) con al menos 6 meses de antelación.",
  "ru": "Версия — в пути (/api/v1). В v1 поля только добавляются; неизвестные поля клиент пропускает. Удаление и смена смысла — только в /api/v2. Устаревающая операция отвечает заголовками Deprecation и Sunset (дата отключения) не меньше чем за 6 месяцев."
 }
}