{
  "openapi": "3.0.0",
  "info": {
    "title": "LynxPoker Club API",
    "version": "v1",
    "description": "A poker club's own server reads the club's tournaments, sends player sign-ups and keeps the club's players in step. The guide: https://lynx.poker/en/developers/club-api"
  },
  "servers": [
    {
      "url": "https://api.lynx.poker"
    }
  ],
  "security": [
    {
      "ClubKey": []
    }
  ],
  "paths": {
    "/api/club-api/v1/tournaments": {
      "get": {
        "operationId": "ClubApi_list",
        "tags": [
          "Club API"
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/ClubTournamentsModel"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/club-api/v1/tournaments/{id}": {
      "get": {
        "operationId": "ClubApi_detail",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/PublicTournamentModel"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "404": {
            "description": "Tournament not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/club-api/v1/tournaments/{id}/registrations": {
      "post": {
        "operationId": "ClubApi_register",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClubRegistrationDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "A PENDING registration (the same one again on a repeat). Staff seat or reject it at the desk.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/ClubRegistrationModel"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "404": {
            "description": "Tournament or player not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "413": {
            "description": "The body is over 100 kB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or code CLUB_KEY_DAILY_SIGNUP_LIMIT: this key already created 200 sign-ups in the last 24 hours (Retry-After, and details.retryAfterSeconds, give the seconds until one more fits). A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/club-api/v1/players": {
      "get": {
        "operationId": "ClubPlayers_list",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 200,
              "default": 100,
              "type": "number"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "The nextCursor of an earlier answer. Send it with the same filters as the call that returned it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "changedSince",
            "required": false,
            "in": "query",
            "description": "Only players changed at or after this time. A first call may start here; after that use the cursor, which never misses a change.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Text found in the name, nickname, email or phone. A whole phone number is found however it is written (702-555-0147, +17025550147), with + and the country code when it is from outside the club's country; a part of one only as the club stored it.",
            "schema": {
              "maxLength": 120,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The roster, oldest change first. Page with nextCursor while hasMore is true; then keep nextCursor and send it again later to get only the players added or changed since. A change made in the last moments may arrive on the next call.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/ClubPlayersModel"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid cursor or query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "ClubPlayers_create",
        "tags": [
          "Club API"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClubPlayerDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The player, for a key that also has the PLAYERS_READ scope. For a key without it: only id and changedAt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ClubPlayerModel"
                        },
                        {
                          "$ref": "#/components/schemas/ClubPlayerWrittenModel"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A player needs a phone or an email; the phone must be a real number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "409": {
            "description": "Code PLAYER_EXISTS: the roster already has a player with this phone (or, when no phone is sent, this email); details.playerId is that player. Code ID_NUMBER_TAKEN: another player of the club has this ID number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "413": {
            "description": "The body is over 100 kB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or code CLUB_KEY_DAILY_WRITE_LIMIT: this key already made 2000 player adds and edits in the last 24 hours (Retry-After, and details.retryAfterSeconds, give the seconds until one more fits). A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/club-api/v1/players/deleted": {
      "get": {
        "operationId": "ClubPlayers_listDeleted",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 200,
              "default": 100,
              "type": "number"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "The nextCursor of an earlier answer. Send it with the same filters as the call that returned it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "required": false,
            "in": "query",
            "description": "Only players deleted at or after this time. Lines are kept 90 days.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The ids of players deleted from the roster (in the app or through the API), oldest first, kept 90 days. Pages and syncs like the players list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/ClubDeletedPlayersModel"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "410": {
            "description": "Code SYNC_CURSOR_EXPIRED: the cursor or since time is older than 90 days, so some deletes are no longer listed. Read the whole players list again, then start this list with no cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/club-api/v1/players/{id}": {
      "get": {
        "operationId": "ClubPlayers_get",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/ClubPlayerModel"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "404": {
            "description": "Player not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "ClubPlayers_update",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClubPlayerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The player, for a key that also has the PLAYERS_READ scope. For a key without it: only id and changedAt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ClubPlayerModel"
                        },
                        {
                          "$ref": "#/components/schemas/ClubPlayerWrittenModel"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "404": {
            "description": "Player not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "409": {
            "description": "Code PLAYER_CHANGED: the player changed since expectedChangedAt; nothing was written. Code PLAYER_EXISTS: another player has this phone or email. Code ID_NUMBER_TAKEN: another player of the club has this ID number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "413": {
            "description": "The body is over 100 kB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or code CLUB_KEY_DAILY_WRITE_LIMIT: this key already made 2000 player adds and edits in the last 24 hours (Retry-After, and details.retryAfterSeconds, give the seconds until one more fits). A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "ClubPlayers_remove",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The player is deleted for good. Their past tournament rows stay, by name only, and their link to the LynxPoker app ends.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/ClubDeletedPlayerResultModel"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "404": {
            "description": "Player not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "409": {
            "description": "Code PLAYER_IN_PLAY: the player is still in play at the club: a sign-up that waits for staff, a seat, a place on a waiting list or a qualification, in a tournament or other game that has not finished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or code CLUB_DAILY_DELETE_LIMIT: the club's keys already deleted 50 players in the last 24 hours (Retry-After, and details.retryAfterSeconds, give the seconds until one more fits). A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/club-api/v1/players/{id}/sensitive": {
      "get": {
        "operationId": "ClubPlayers_getSensitive",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The ID number. Every read is written to the activity log the club owner sees.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "body"
                  ],
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "Always 200. Read the HTTP status instead."
                    },
                    "body": {
                      "$ref": "#/components/schemas/ClubPlayerSensitiveModel"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "404": {
            "description": "Player not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or code CLUB_KEY_DAILY_SENSITIVE_LIMIT: this key already made 500 ID number and photo reads in the last 24 hours (Retry-After, and details.retryAfterSeconds, give the seconds until one more fits). A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/club-api/v1/players/{id}/photo": {
      "get": {
        "operationId": "ClubPlayers_getPhoto",
        "tags": [
          "Club API"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The face photo taken at the desk, as image bytes (not JSON). Never the ID card. Every read is written to the activity log.",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The request is wrong: a field, a parameter or the body. Read message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "401": {
            "description": "The key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "403": {
            "description": "Code CLUB_API_BROWSER_BLOCKED: the call carried an Origin header that is not one of LynxPoker's own sites (a browser page, or a proxy passing a browser's headers on); call from your server, without one. Code CLUB_API_NEEDS_PLAN: the club has no plan. No code: this key does not have the scope for this route.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "404": {
            "description": "Player not found, or no photo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests, or code CLUB_KEY_DAILY_SENSITIVE_LIMIT: this key already made 500 ID number and photo reads in the last 24 hours (Retry-After, and details.retryAfterSeconds, give the seconds until one more fits). A key's own limit (10 calls a second, 300 in 10 minutes) sends Retry-After. The per-address limit (30 a second, 150 in 10 seconds, 600 a minute from one server address, which several sites on shared hosting can reach together) sends Retry-After-short, Retry-After-medium or Retry-After-long instead. Each gives the seconds to wait.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait, after a key's own limit.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-short": {
                "description": "Seconds to wait, after the per-address limit of 30 calls a second.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-medium": {
                "description": "Seconds to wait, after the per-address limit of 150 calls in 10 seconds.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              },
              "Retry-After-long": {
                "description": "Seconds to wait, after the per-address limit of 600 calls a minute.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          },
          "503": {
            "description": "We are busy or restarting. Try again after a short wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClubApiError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ClubKey": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "The word ClubKey, a space, then the key: ClubKey <keyId>.<secret>"
      }
    },
    "schemas": {
      "ClubApiError": {
        "type": "object",
        "required": [
          "statusCode",
          "message",
          "timestamp",
          "path"
        ],
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string",
            "description": "For people. It can change: read errorCode."
          },
          "errorCode": {
            "type": "string"
          },
          "details": {
            "type": "object",
            "additionalProperties": true
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "path": {
            "type": "string"
          }
        }
      },
      "BuyInPartWord": {
        "type": "string",
        "enum": [
          "RAKE",
          "FEE",
          "CUSTOM"
        ]
      },
      "ClubDeletedPlayerModel": {
        "type": "object",
        "properties": {
          "playerId": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "playerId",
          "deletedAt"
        ]
      },
      "ClubDeletedPlayerResultModel": {
        "type": "object",
        "properties": {
          "playerId": {
            "type": "string"
          }
        },
        "required": [
          "playerId"
        ]
      },
      "ClubDeletedPlayersModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClubDeletedPlayerModel"
            }
          },
          "nextCursor": {
            "type": "string",
            "description": "Never null. While hasMore is true, send it back as `cursor` for the next page. When hasMore is false, keep it: the same call later returns only what changed since."
          },
          "hasMore": {
            "type": "boolean",
            "description": "True when another page is ready now."
          }
        },
        "required": [
          "items",
          "nextCursor",
          "hasMore"
        ]
      },
      "ClubPlayerModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "type": "string",
            "nullable": true,
            "description": "The public nickname the player chose when joining. Read only."
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "In E.164 (+972541234567) when it is a valid number in the club's country or carries a +, else the text as the club stored it."
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "birthDate": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "YYYY-MM-DD, given by the player when joining. Read only."
          },
          "nationality": {
            "type": "string",
            "description": "A country code or free text, as the club stored it. May be empty."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "changedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the player last changed: a field of this model, the ID number or the photo. Send it back as expectedChangedAt on an edit."
          }
        },
        "required": [
          "id",
          "name",
          "nickname",
          "phone",
          "email",
          "birthDate",
          "nationality",
          "createdAt",
          "changedAt"
        ]
      },
      "ClubPlayerSensitiveModel": {
        "type": "object",
        "properties": {
          "idNumber": {
            "type": "string",
            "nullable": true,
            "description": "An ID, passport or member number, as the club stored it."
          },
          "hasPhoto": {
            "type": "boolean",
            "description": "True when GET /players/:id/photo has a photo to return."
          }
        },
        "required": [
          "idNumber",
          "hasPhoto"
        ]
      },
      "ClubPlayersModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClubPlayerModel"
            }
          },
          "nextCursor": {
            "type": "string",
            "description": "Never null. While hasMore is true, send it back as `cursor` for the next page. When hasMore is false, keep it: the same call later returns only what changed since."
          },
          "hasMore": {
            "type": "boolean",
            "description": "True when another page is ready now."
          }
        },
        "required": [
          "items",
          "nextCursor",
          "hasMore"
        ]
      },
      "ClubPlayerWrittenModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "changedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Send it back as expectedChangedAt on the next edit."
          }
        },
        "required": [
          "id",
          "changedAt"
        ]
      },
      "ClubRegistrationDto": {
        "type": "object",
        "properties": {
          "playerId": {
            "type": "string",
            "description": "A roster player id of this club. Send this, or name + phone/email.",
            "maxLength": 64
          },
          "name": {
            "type": "string",
            "description": "Required when there is no playerId.",
            "maxLength": 120
          },
          "phone": {
            "type": "string",
            "description": "A phone number. Without +, it is read in the club's country (Israel when the club has none).",
            "maxLength": 32
          },
          "email": {
            "type": "string",
            "maxLength": 254
          }
        }
      },
      "ClubRegistrationModel": {
        "type": "object",
        "properties": {
          "registrationId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING"
            ]
          },
          "playerId": {
            "type": "string"
          },
          "createdPlayer": {
            "type": "boolean",
            "description": "True when this request added the player to the roster."
          }
        },
        "required": [
          "registrationId",
          "status",
          "playerId",
          "createdPlayer"
        ]
      },
      "ClubTournamentsModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTournamentListItem"
            }
          },
          "serverTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "items",
          "serverTime"
        ]
      },
      "CreateClubPlayerDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120
          },
          "phone": {
            "type": "string",
            "description": "A phone number. Without +, it is read in the club's country (Israel when the club has none).",
            "maxLength": 32
          },
          "email": {
            "type": "string",
            "maxLength": 254
          },
          "nationality": {
            "type": "string",
            "maxLength": 60,
            "description": "A country code or free text."
          },
          "idNumber": {
            "type": "string",
            "maxLength": 64,
            "description": "An ID, passport or member number. Needs the PLAYERS_SENSITIVE scope too."
          }
        },
        "required": [
          "name"
        ]
      },
      "DayKind": {
        "type": "string",
        "enum": [
          "FLIGHT",
          "ONLINE",
          "DAY"
        ]
      },
      "PublicAddOnModel": {
        "type": "object",
        "properties": {
          "afterLevel": {
            "type": "number"
          },
          "buyIn": {
            "type": "number"
          },
          "stack": {
            "type": "number"
          }
        },
        "required": [
          "afterLevel",
          "buyIn",
          "stack"
        ]
      },
      "PublicClockLayoutModel": {
        "type": "object",
        "properties": {
          "open": {
            "$ref": "#/components/schemas/PublicClockStateModel"
          },
          "closed": {
            "$ref": "#/components/schemas/PublicClockStateModel"
          }
        },
        "required": [
          "open",
          "closed"
        ]
      },
      "PublicClockSideModel": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "list",
              "thirds"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "level",
                "startingStack",
                "lateReg",
                "reEntry",
                "addOn",
                "seats",
                "totalTime",
                "nextBreak",
                "timeNow",
                "estFinish",
                "players",
                "registered",
                "tablesLeft",
                "avgStack",
                "totalChips",
                "buyIn",
                "prizePool",
                "prizeList",
                "bountyPool",
                "reEntryPrice"
              ]
            }
          },
          "top": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "level",
                "startingStack",
                "lateReg",
                "reEntry",
                "addOn",
                "seats",
                "totalTime",
                "nextBreak",
                "timeNow",
                "estFinish",
                "players",
                "registered",
                "tablesLeft",
                "avgStack",
                "totalChips",
                "buyIn",
                "prizePool",
                "prizeList",
                "bountyPool",
                "reEntryPrice"
              ]
            }
          },
          "middle": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "level",
                "startingStack",
                "lateReg",
                "reEntry",
                "addOn",
                "seats",
                "totalTime",
                "nextBreak",
                "timeNow",
                "estFinish",
                "players",
                "registered",
                "tablesLeft",
                "avgStack",
                "totalChips",
                "buyIn",
                "prizePool",
                "prizeList",
                "bountyPool",
                "reEntryPrice"
              ]
            }
          },
          "bottom": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "level",
                "startingStack",
                "lateReg",
                "reEntry",
                "addOn",
                "seats",
                "totalTime",
                "nextBreak",
                "timeNow",
                "estFinish",
                "players",
                "registered",
                "tablesLeft",
                "avgStack",
                "totalChips",
                "buyIn",
                "prizePool",
                "prizeList",
                "bountyPool",
                "reEntryPrice"
              ]
            }
          }
        },
        "required": [
          "mode"
        ]
      },
      "PublicClockStateModel": {
        "type": "object",
        "properties": {
          "left": {
            "$ref": "#/components/schemas/PublicClockSideModel"
          },
          "right": {
            "$ref": "#/components/schemas/PublicClockSideModel"
          }
        },
        "required": [
          "left",
          "right"
        ]
      },
      "PublicClockValueOptionsModel": {
        "type": "object",
        "properties": {
          "buyInSplit": {
            "type": "boolean"
          },
          "lateRegFormat": {
            "type": "string",
            "enum": [
              "level",
              "time"
            ]
          },
          "prizeListMotion": {
            "type": "string",
            "enum": [
              "pages",
              "bounce",
              "loop"
            ]
          },
          "avgStackInBb": {
            "type": "boolean"
          },
          "startingStackInBb": {
            "type": "boolean"
          }
        },
        "required": [
          "buyInSplit",
          "lateRegFormat",
          "prizeListMotion",
          "avgStackInBb",
          "startingStackInBb"
        ]
      },
      "PublicGameStatusModel": {
        "type": "object",
        "properties": {
          "position": {
            "type": "string",
            "enum": [
              "Created",
              "Running",
              "Paused",
              "Finished"
            ]
          },
          "currentLevelUuid": {
            "type": "string",
            "nullable": true
          },
          "currentLevelStartTimestamp": {
            "type": "number",
            "nullable": true
          },
          "unTouchedCurrentLevelStartTimestamp": {
            "type": "number",
            "nullable": true
          },
          "currentLevelPauseStartTimestamp": {
            "type": "number",
            "nullable": true
          },
          "startTimestamp": {
            "type": "number",
            "nullable": true
          },
          "endTimestamp": {
            "type": "number",
            "nullable": true
          },
          "totalRunningTimeMs": {
            "type": "number"
          },
          "runState": {
            "type": "string",
            "enum": [
              "Created",
              "Running",
              "Paused",
              "Finished",
              "AwaitingResult",
              "LevelEndHold"
            ]
          },
          "tables": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "handForHand": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicHandForHandModel"
              }
            ]
          },
          "lastHands": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicLastHandsModel"
              }
            ]
          }
        },
        "required": [
          "position",
          "currentLevelUuid",
          "currentLevelStartTimestamp",
          "unTouchedCurrentLevelStartTimestamp",
          "currentLevelPauseStartTimestamp",
          "startTimestamp",
          "endTimestamp",
          "tables"
        ]
      },
      "PublicHandForHandModel": {
        "type": "object",
        "properties": {
          "on": {
            "type": "boolean"
          },
          "hand": {
            "type": "number"
          }
        },
        "required": [
          "on",
          "hand"
        ]
      },
      "PublicLastHandsModel": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number"
          },
          "current": {
            "type": "number"
          }
        },
        "required": [
          "total",
          "current"
        ]
      },
      "PublicLevelModel": {
        "type": "object",
        "properties": {
          "lengthInMinuets": {
            "type": "number"
          },
          "in": {
            "type": "number"
          },
          "out": {
            "type": "number"
          },
          "ante": {
            "type": "number"
          },
          "isBreak": {
            "type": "boolean"
          },
          "order": {
            "type": "number"
          },
          "orderWithBreaks": {
            "type": "number"
          },
          "uuid": {
            "type": "string"
          }
        },
        "required": [
          "lengthInMinuets",
          "in",
          "out",
          "ante",
          "isBreak",
          "order",
          "orderWithBreaks",
          "uuid"
        ]
      },
      "PublicPrizeModel": {
        "type": "object",
        "properties": {
          "place": {
            "type": "number"
          },
          "prizeAmount": {
            "type": "number",
            "nullable": true
          },
          "prizePercentage": {
            "type": "number"
          },
          "prizeType": {
            "type": "string",
            "enum": [
              "cash",
              "seat"
            ]
          },
          "seatLabel": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "place",
          "prizeAmount",
          "prizePercentage"
        ]
      },
      "PublicRegistrationModel": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "Open",
              "ClosedByLevel",
              "SwitchedOff",
              "HeldForResults",
              "Finished",
              "Unknown"
            ]
          }
        },
        "required": [
          "state"
        ]
      },
      "PublicStructureEstimateModel": {
        "type": "object",
        "properties": {
          "loMin": {
            "type": "number"
          },
          "hiMin": {
            "type": "number"
          },
          "loAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hiAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "required": [
          "loMin",
          "hiMin",
          "loAt",
          "hiAt"
        ]
      },
      "PublicTournamentInfoModel": {
        "type": "object",
        "properties": {
          "bountyPool": {
            "type": "number"
          },
          "activePlayers": {
            "type": "number"
          },
          "aggregateEntries": {
            "type": "number"
          },
          "aggregateReEntries": {
            "type": "number"
          },
          "theoreticalTotalChips": {
            "type": "number"
          },
          "aggregateAddOns": {
            "type": "number"
          },
          "totalPrizePool": {
            "type": "number"
          },
          "satelliteSeats": {
            "type": "number",
            "nullable": true
          },
          "satelliteSeatMode": {
            "type": "string",
            "enum": [
              "GUARANTEED",
              "AUTO"
            ],
            "nullable": true
          },
          "satelliteTargetStack": {
            "type": "number",
            "nullable": true
          },
          "satelliteQualified": {
            "type": "number",
            "nullable": true
          },
          "qualifiedStackTotal": {
            "type": "number",
            "nullable": true
          }
        }
      },
      "PublicTournamentListItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "timeFormat": {
            "type": "string",
            "enum": [
              "12h",
              "24h"
            ],
            "default": "24h"
          },
          "dateFormat": {
            "type": "string",
            "enum": [
              "dmy",
              "mdy"
            ],
            "default": "dmy"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "game": {
            "type": "string",
            "enum": [
              "Holdem",
              "Omaha"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "Regular",
              "Mystery",
              "Bounty",
              "Progressive",
              "Satellite"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "ReEntry",
              "Freezeout",
              "Rebuy"
            ]
          },
          "scheduledStartAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startingTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "gameStatus": {
            "$ref": "#/components/schemas/PublicGameStatusModel"
          },
          "settings": {
            "$ref": "#/components/schemas/PublicTournamentSettingsModel"
          },
          "info": {
            "$ref": "#/components/schemas/PublicTournamentInfoModel"
          },
          "levelDurationMinutes": {
            "type": "number",
            "nullable": true
          },
          "lateRegLevel": {
            "type": "number",
            "nullable": true
          },
          "lateRegCloseAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lateRegClosed": {
            "type": "boolean"
          },
          "registration": {
            "$ref": "#/components/schemas/PublicRegistrationModel"
          },
          "eventId": {
            "type": "string"
          },
          "dayLabel": {
            "type": "string"
          },
          "dayKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DayKind"
              }
            ]
          },
          "dayStep": {
            "type": "number"
          },
          "buyInPartWord": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BuyInPartWord"
              }
            ]
          },
          "buyInPartCustom": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "organizationId",
          "timeFormat",
          "dateFormat",
          "title",
          "description",
          "game",
          "type",
          "format",
          "scheduledStartAt",
          "startingTime",
          "gameStatus",
          "settings",
          "info",
          "levelDurationMinutes",
          "lateRegLevel",
          "lateRegCloseAt",
          "lateRegClosed"
        ]
      },
      "PublicTournamentModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "timeFormat": {
            "type": "string",
            "enum": [
              "12h",
              "24h"
            ],
            "default": "24h"
          },
          "dateFormat": {
            "type": "string",
            "enum": [
              "dmy",
              "mdy"
            ],
            "default": "dmy"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "game": {
            "type": "string",
            "enum": [
              "Holdem",
              "Omaha"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "Regular",
              "Mystery",
              "Bounty",
              "Progressive",
              "Satellite"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "ReEntry",
              "Freezeout",
              "Rebuy"
            ]
          },
          "scheduledStartAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startingTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "gameStatus": {
            "$ref": "#/components/schemas/PublicGameStatusModel"
          },
          "levels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicLevelModel"
            }
          },
          "settings": {
            "$ref": "#/components/schemas/PublicTournamentSettingsModel"
          },
          "info": {
            "$ref": "#/components/schemas/PublicTournamentInfoModel"
          },
          "levelDurationMinutes": {
            "type": "number",
            "nullable": true
          },
          "lateRegLevel": {
            "type": "number",
            "nullable": true
          },
          "lateRegCloseAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lateRegClosed": {
            "type": "boolean"
          },
          "registration": {
            "$ref": "#/components/schemas/PublicRegistrationModel"
          },
          "eventId": {
            "type": "string"
          },
          "dayLabel": {
            "type": "string"
          },
          "dayKind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DayKind"
              }
            ]
          },
          "dayStep": {
            "type": "number"
          },
          "day1EndLevelUuid": {
            "type": "string"
          },
          "baggingTime": {
            "type": "boolean"
          },
          "buyInPartWord": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BuyInPartWord"
              }
            ]
          },
          "buyInPartCustom": {
            "type": "string"
          },
          "prizes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPrizeModel"
            }
          },
          "players": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTournamentPlayerModel"
            }
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "serverTime": {
            "type": "string",
            "format": "date-time"
          },
          "registeredCount": {
            "type": "number"
          },
          "clockLayout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicClockLayoutModel"
              }
            ]
          },
          "clockStyle": {
            "type": "string",
            "enum": [
              "classic",
              "dial"
            ]
          },
          "clockValueOptions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicClockValueOptionsModel"
              }
            ]
          },
          "pendingRegistrationCount": {
            "type": "number"
          },
          "appRegistrationEnabled": {
            "type": "boolean"
          },
          "appRegistrationLimit": {
            "type": "number",
            "nullable": true
          },
          "structureEstimate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicStructureEstimateModel"
              }
            ]
          }
        },
        "required": [
          "id",
          "organizationId",
          "timeFormat",
          "dateFormat",
          "title",
          "description",
          "game",
          "type",
          "format",
          "scheduledStartAt",
          "startingTime",
          "gameStatus",
          "levels",
          "settings",
          "info",
          "levelDurationMinutes",
          "lateRegLevel",
          "lateRegCloseAt",
          "lateRegClosed",
          "prizes",
          "lastUpdatedAt",
          "serverTime",
          "appRegistrationEnabled",
          "appRegistrationLimit"
        ]
      },
      "PublicTournamentPlayerModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "entries": {
            "type": "number"
          },
          "busted": {
            "type": "boolean"
          },
          "qualified": {
            "type": "boolean"
          },
          "chips": {
            "type": "number",
            "nullable": true
          },
          "placed": {
            "type": "number",
            "nullable": true
          },
          "placedTo": {
            "type": "number"
          },
          "payout": {
            "type": "number"
          },
          "knockouts": {
            "type": "number"
          },
          "rebuys": {
            "type": "number"
          },
          "addOns": {
            "type": "number"
          },
          "tableNumber": {
            "type": "number",
            "nullable": true
          },
          "seatNumber": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "name",
          "entries",
          "busted",
          "qualified",
          "rebuys",
          "addOns",
          "tableNumber",
          "seatNumber"
        ]
      },
      "PublicTournamentSettingsModel": {
        "type": "object",
        "properties": {
          "buyIn": {
            "type": "number"
          },
          "rake": {
            "type": "number"
          },
          "reEntryPrice": {
            "type": "number",
            "nullable": true
          },
          "bounty": {
            "type": "number",
            "nullable": true
          },
          "startingStack": {
            "type": "number"
          },
          "guarantee": {
            "type": "number",
            "nullable": true
          },
          "reEntryLimit": {
            "type": "number",
            "nullable": true
          },
          "format": {
            "type": "string",
            "enum": [
              "ReEntry",
              "Freezeout",
              "Rebuy"
            ]
          },
          "seatsPerTable": {
            "type": "number"
          },
          "isDisplayPrizes": {
            "type": "boolean"
          },
          "isDisplayPotLimitBetRange": {
            "type": "boolean"
          },
          "startingLevelUuid": {
            "type": "string",
            "nullable": true
          },
          "startingRemainingMs": {
            "type": "number",
            "nullable": true
          },
          "showReEntries": {
            "type": "boolean"
          },
          "showTotalChips": {
            "type": "boolean"
          },
          "showAddOns": {
            "type": "boolean"
          },
          "rebuyStackLimit": {
            "type": "number",
            "nullable": true
          },
          "addOn": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAddOnModel"
              }
            ]
          },
          "showSeats": {
            "type": "boolean"
          },
          "isAnnouncement": {
            "type": "boolean"
          },
          "announcement": {
            "type": "string"
          },
          "color": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "buyIn",
          "rake",
          "bounty",
          "startingStack",
          "guarantee",
          "reEntryLimit",
          "format",
          "isDisplayPrizes",
          "isDisplayPotLimitBetRange",
          "showReEntries",
          "showTotalChips",
          "showAddOns",
          "showSeats",
          "isAnnouncement",
          "announcement",
          "color"
        ]
      },
      "UpdateClubPlayerDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 120
          },
          "phone": {
            "type": "string",
            "description": "A phone number. Without +, it is read in the club's country (Israel when the club has none). null clears it (a player keeps a phone or an email).",
            "maxLength": 32,
            "nullable": true
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "nullable": true,
            "description": "null clears it."
          },
          "nationality": {
            "type": "string",
            "maxLength": 60,
            "description": "A country code or free text."
          },
          "idNumber": {
            "type": "string",
            "maxLength": 64,
            "nullable": true,
            "description": "An ID, passport or member number; null clears it. Needs the PLAYERS_SENSITIVE scope too."
          },
          "expectedChangedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The changedAt you last read. When the player changed since, the edit is refused with 409 PLAYER_CHANGED and nothing is written."
          }
        }
      }
    }
  }
}
