{
  "components": {
    "schemas": {
      "Account": {
        "properties": {
          "category_id": {
            "format": "uuid",
            "type": "string"
          },
          "checked_in_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "checkin_code": {
            "description": "Codice breve e casuale per il check-in a voce o a mano",
            "type": "string"
          },
          "completed_by_staff_at": {
            "description": "Segnata completa a mano dallo staff: il ricalcolo dai documenti non la cambia finché lo staff non sceglie un altro stato",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "email_confirmed_at": {
            "description": "Doppio opt-in: finché è NULL l'iscrizione non conta e non si entra",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "event_id": {
            "format": "uuid",
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "description": "individual | team",
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "description": "pending | complete | cancelled | removed",
            "type": "string"
          },
          "team_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "event_id",
          "category_id",
          "kind",
          "email",
          "checkin_code",
          "first_name",
          "last_name",
          "status",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "AccountStatusRequest": {
        "properties": {
          "force": {
            "description": "true per riattivare un'iscrizione annullata o rimossa anche con la categoria piena (senza, 409 posti esauriti)",
            "type": "boolean"
          },
          "status": {
            "description": "pending | complete | cancelled | removed",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "AccountView": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Account"
          },
          {
            "properties": {
              "checkin_code": {
                "description": "Codice breve per il check-in a voce o a mano",
                "type": "string"
              },
              "linked_to_boxly": {
                "description": "Entrato con le credenziali Boxly (senza dire quale utente)",
                "type": "boolean"
              },
              "participants": {
                "items": {
                  "$ref": "#/components/schemas/ParticipantView"
                },
                "type": "array"
              }
            },
            "required": [
              "checkin_code",
              "linked_to_boxly",
              "participants"
            ],
            "type": "object"
          }
        ]
      },
      "AttendanceRequest": {
        "properties": {
          "status": {
            "description": "attended o no_show (da 2 ore prima dell'inizio) | booked (per correggere; a lezione finita una presenza tolta diventa no_show)",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "AttendanceRow": {
        "properties": {
          "attended": {
            "format": "int64",
            "type": "integer"
          },
          "booked": {
            "description": "Prenotazioni valide (prenotato, presente o assente)",
            "format": "int64",
            "type": "integer"
          },
          "cancelled": {
            "format": "int64",
            "type": "integer"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "late_cancelled": {
            "format": "int64",
            "type": "integer"
          },
          "no_show": {
            "format": "int64",
            "type": "integer"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name",
          "booked",
          "attended",
          "no_show",
          "late_cancelled",
          "cancelled"
        ],
        "type": "object"
      },
      "BookForRequest": {
        "properties": {
          "check_in": {
            "description": "true = il cliente è già qui: prenotato e segnato presente insieme, dalla finestra in cui si segnano le presenze (prima: 409; lezione piena: 409, niente lista d'attesa). Con una chiave API serve anche il permesso set_attendance. A lezione iniziata la prenotazione nasce presente anche senza",
            "type": [
              "boolean",
              "null"
            ]
          },
          "force": {
            "description": "true = prenota anche senza abbonamento/certificato valido (es. prova gratuita)",
            "type": [
              "boolean",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id"
        ],
        "type": "object"
      },
      "BookOutcome": {
        "oneOf": [
          {
            "description": "Posto confermato",
            "properties": {
              "booking": {
                "$ref": "#/components/schemas/Booking"
              },
              "kind": {
                "enum": [
                  "booked"
                ],
                "type": "string"
              }
            },
            "required": [
              "booking",
              "kind"
            ],
            "type": "object"
          },
          {
            "description": "Lezione piena: in lista d'attesa alla posizione `rank`",
            "properties": {
              "entry": {
                "$ref": "#/components/schemas/WaitlistEntry"
              },
              "kind": {
                "enum": [
                  "waitlisted"
                ],
                "type": "string"
              },
              "rank": {
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "entry",
              "rank",
              "kind"
            ],
            "type": "object"
          },
          {
            "description": "Stessa richiesta già registrata in precedenza",
            "properties": {
              "booking": {
                "$ref": "#/components/schemas/Booking"
              },
              "kind": {
                "enum": [
                  "already_booked"
                ],
                "type": "string"
              }
            },
            "required": [
              "booking",
              "kind"
            ],
            "type": "object"
          }
        ]
      },
      "BookedLessons": {
        "description": "Cosa fare delle lezioni future con prenotati quando cambiano giorni, ora, tipo di corso o sede dell'orario.",
        "enum": [
          "move",
          "keep"
        ],
        "type": "string"
      },
      "Booking": {
        "properties": {
          "booked_at": {
            "format": "date-time",
            "type": "string"
          },
          "booked_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "cancelled_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "cancelled_by_class": {
            "description": "Cancellata perché la lezione è stata cancellata dalla palestra (ingresso restituito): \"Ripristina\" la riprenota.",
            "type": "boolean"
          },
          "checked_in_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credit_tx_id": {
            "description": "Movimento del ledger crediti scalato da questa prenotazione",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "occurrence_id",
          "user_id",
          "status",
          "booked_at",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "BookingWithUser": {
        "description": "Prenotazione con i dati dell'utente, per la lista presenze dello staff.",
        "properties": {
          "booked_at": {
            "format": "date-time",
            "type": "string"
          },
          "booked_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "checked_in_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "user_id",
          "first_name",
          "last_name",
          "email",
          "status",
          "booked_at"
        ],
        "type": "object"
      },
      "BroadcastRequest": {
        "properties": {
          "body": {
            "type": "string"
          },
          "email": {
            "description": "Anche via email a chi lo consente",
            "type": [
              "boolean",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "body"
        ],
        "type": "object"
      },
      "BroadcastResponse": {
        "properties": {
          "queued": {
            "type": "boolean"
          }
        },
        "required": [
          "queued"
        ],
        "type": "object"
      },
      "Category": {
        "properties": {
          "capacity": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "constraints": {
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "event_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "description": "individual | team",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price_cents": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "sort": {
            "format": "int32",
            "type": "integer"
          },
          "team_max": {
            "format": "int32",
            "type": "integer"
          },
          "team_min": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "event_id",
          "name",
          "kind",
          "team_min",
          "team_max",
          "constraints",
          "sort",
          "created_at"
        ],
        "type": "object"
      },
      "CategoryLeaderboard": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "leaderboard": {
            "$ref": "#/components/schemas/EventLeaderboard"
          }
        },
        "required": [
          "category",
          "leaderboard"
        ],
        "type": "object"
      },
      "CategoryPatch": {
        "properties": {
          "capacity": {
            "description": "Posti della categoria (`null` = senza limite)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "constraints": {
            "type": [
              "object",
              "null"
            ]
          },
          "force": {
            "description": "Solo in modifica: true per abbassare i posti sotto gli iscritti che già li occupano (senza, 409)",
            "type": "boolean"
          },
          "kind": {
            "description": "individual | team",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "price_cents": {
            "description": "Quota in centesimi (`null` = gratuita)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "sort": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "team_max": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "team_min": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "CheckinOutcome": {
        "enum": [
          "checked_in",
          "already_checked_in",
          "walk_in",
          "no_booking"
        ],
        "type": "string"
      },
      "CheckinRequest": {
        "properties": {
          "occurrence_id": {
            "description": "La lezione a cui fare il check-in. Assente = la prenotazione \"di adesso\".",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "token": {
            "description": "Il contenuto del QR mostrato dall'app del cliente",
            "type": "string"
          },
          "walk_in": {
            "description": "Senza prenotazione: prenota e segna presente (serve `occurrence_id`). Vale abbonamento e certificato, non la finestra di prenotazione: da 2 ore prima dell'inizio fino alla fine.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "token"
        ],
        "type": "object"
      },
      "CheckinResponse": {
        "properties": {
          "booking": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Booking"
              },
              {
                "type": "null"
              }
            ]
          },
          "occurrence": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Occurrence"
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "$ref": "#/components/schemas/CheckinOutcome"
          },
          "user": {
            "$ref": "#/components/schemas/CheckinUser"
          },
          "warnings": {
            "description": "Cose da dire al cliente: certificato scaduto, abbonamento finito…",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "outcome",
          "user",
          "warnings"
        ],
        "type": "object"
      },
      "CheckinUser": {
        "properties": {
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "last_name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "email"
        ],
        "type": "object"
      },
      "ClassTemplate": {
        "properties": {
          "capacity": {
            "format": "int32",
            "type": "integer"
          },
          "class_type_id": {
            "format": "uuid",
            "type": "string"
          },
          "coach_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "deactivated_at": {
            "description": "Quando è stato disattivato; null se è attivo",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "duration_min": {
            "format": "int32",
            "type": "integer"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "is_active": {
            "description": "false = disattivato: non genera più lezioni, resta per lo storico",
            "type": "boolean"
          },
          "location_id": {
            "format": "uuid",
            "type": "string"
          },
          "room_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "start_time": {
            "description": "Ora locale della sede",
            "example": "18:30:00",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "valid_from": {
            "format": "date",
            "type": "string"
          },
          "valid_until": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "weekdays": {
            "description": "Giorni ISO: 1 = lunedì ... 7 = domenica",
            "items": {
              "format": "int32",
              "type": "integer"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "gym_id",
          "class_type_id",
          "location_id",
          "weekdays",
          "start_time",
          "duration_min",
          "capacity",
          "valid_from",
          "is_active",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "ClassType": {
        "properties": {
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credit_cost": {
            "description": "Ingressi (crediti) consumati da una prenotazione",
            "format": "int32",
            "type": "integer"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_min": {
            "format": "int32",
            "type": "integer"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "level": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "name",
          "duration_min",
          "is_active",
          "credit_cost",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "ClassTypeLite": {
        "properties": {
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "ClassTypeRequest": {
        "properties": {
          "color": {
            "description": "Esadecimale #RRGGBB",
            "type": [
              "string",
              "null"
            ]
          },
          "credit_cost": {
            "description": "Ingressi consumati da una prenotazione (1–20, default 1)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_min": {
            "description": "Default 60",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "level": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CoachHoursReport": {
        "description": "Ore lavorate dai coach nel periodo: riepilogo per coach e dettaglio.",
        "properties": {
          "coach_options": {
            "description": "Coach da proporre come filtro: chi ha il ruolo coach e chiunque abbia lavorato nel periodo",
            "items": {
              "$ref": "#/components/schemas/CoachOption"
            },
            "type": "array"
          },
          "coaches": {
            "description": "Un elemento per coach con lezioni o sedute nel periodo, in ordine di nome; per ultime le lezioni senza coach",
            "items": {
              "$ref": "#/components/schemas/CoachHoursSummary"
            },
            "type": "array"
          },
          "from": {
            "description": "Inizio del periodo (incluso)",
            "format": "date-time",
            "type": "string"
          },
          "pt_enabled": {
            "description": "Personal trainer attivo per la palestra: solo allora ci sono le sedute PT",
            "type": "boolean"
          },
          "rows": {
            "description": "Lezioni e sedute già finite, in ordine di inizio",
            "items": {
              "$ref": "#/components/schemas/CoachHoursRow"
            },
            "type": "array"
          },
          "timezone": {
            "description": "Fuso della palestra: date e ore delle righe sono in questo fuso",
            "type": "string"
          },
          "to": {
            "description": "Fine del periodo (esclusa)",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "from",
          "to",
          "timezone",
          "pt_enabled",
          "coaches",
          "rows",
          "coach_options"
        ],
        "type": "object"
      },
      "CoachHoursRow": {
        "description": "Una lezione di gruppo o una seduta PT già finita, nel report delle ore dei coach. Date e ore sono nel fuso della palestra.",
        "properties": {
          "attended": {
            "description": "Presenti; seduta PT: 1 se fatta",
            "format": "int64",
            "type": "integer"
          },
          "booked": {
            "description": "Posti occupati (prenotati + presenti + assenti); seduta PT: 1 se non annullata",
            "format": "int64",
            "type": "integer"
          },
          "class_type_name": {
            "description": "Tipo di corso (vuoto per le sedute PT)",
            "type": [
              "string",
              "null"
            ]
          },
          "coach_id": {
            "description": "Coach della singola lezione, anche se diverso da quello dell'orario (vuoto = senza coach)",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "coach_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "counted": {
            "description": "Le ore contano nei totali (false per lezioni cancellate e sedute annullate)",
            "type": "boolean"
          },
          "date": {
            "description": "Giorno dell'inizio nel fuso della palestra",
            "format": "date",
            "type": "string"
          },
          "end_at": {
            "format": "date-time",
            "type": "string"
          },
          "end_time": {
            "description": "Ora di fine HH:MM nel fuso della palestra",
            "type": "string"
          },
          "hours": {
            "description": "I minuti in ore decimali, con sei cifre al massimo: la somma delle righe torna col totale",
            "format": "double",
            "type": "number"
          },
          "id": {
            "description": "Id della lezione o della seduta",
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "description": "class (lezione di gruppo) | pt (seduta di personal training)",
            "type": "string"
          },
          "location_name": {
            "description": "Sede (per le sedute PT quella del coach, se impostata)",
            "type": [
              "string",
              "null"
            ]
          },
          "minutes": {
            "description": "Minuti di lavoro: fine meno inizio reali (giusti anche nella notte del cambio dell'ora); 0 se cancellata o annullata",
            "format": "int64",
            "type": "integer"
          },
          "room_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "start_at": {
            "format": "date-time",
            "type": "string"
          },
          "start_time": {
            "description": "Ora di inizio HH:MM nel fuso della palestra",
            "type": "string"
          },
          "status": {
            "description": "Lezione: held (svolta) o cancelled (cancellata). Seduta PT: done (fatta), no_show (cliente assente), confirmed (confermata, non ancora segnata), cancelled (annullata in tempo) o late_cancelled (annullata in ritardo)",
            "type": "string"
          },
          "weekday": {
            "description": "Giorno della settimana ISO (1 = lunedì)",
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "kind",
          "id",
          "start_at",
          "end_at",
          "date",
          "weekday",
          "start_time",
          "end_time",
          "minutes",
          "hours",
          "booked",
          "attended",
          "status",
          "counted"
        ],
        "type": "object"
      },
      "CoachHoursSummary": {
        "description": "Totali di un coach nel periodo.",
        "properties": {
          "cancelled": {
            "description": "Lezioni cancellate e sedute annullate: nel dettaglio con 0 ore, fuori dai totali",
            "format": "int64",
            "type": "integer"
          },
          "class_minutes": {
            "description": "Minuti delle lezioni tenute",
            "format": "int64",
            "type": "integer"
          },
          "classes": {
            "description": "Lezioni di gruppo tenute (non cancellate)",
            "format": "int64",
            "type": "integer"
          },
          "coach_id": {
            "description": "Vuoto = lezioni senza coach",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "coach_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "pt_minutes": {
            "description": "Minuti delle sedute PT che contano",
            "format": "int64",
            "type": "integer"
          },
          "pt_sessions": {
            "description": "Sedute PT che contano: fatte, cliente assente, confermate già finite",
            "format": "int64",
            "type": "integer"
          },
          "total_hours": {
            "description": "Il totale in ore decimali, arrotondate a due cifre",
            "format": "double",
            "type": "number"
          },
          "total_minutes": {
            "description": "Lezioni più sedute PT, in minuti",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "classes",
          "class_minutes",
          "pt_sessions",
          "pt_minutes",
          "cancelled",
          "total_minutes",
          "total_hours"
        ],
        "type": "object"
      },
      "CoachOption": {
        "description": "Coach da proporre come filtro del report.",
        "properties": {
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name"
        ],
        "type": "object"
      },
      "CreateEventRequest": {
        "properties": {
          "checkin_codes": {
            "description": "Codice check-in personale per ogni iscritto (default: no)",
            "type": [
              "boolean",
              "null"
            ]
          },
          "ends_at": {
            "format": "date-time",
            "type": "string"
          },
          "registration_closes_at": {
            "description": "Chiusura iscrizioni (vuoto = all'inizio dell'evento)",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "registration_opens_at": {
            "description": "Apertura iscrizioni (vuoto = subito alla pubblicazione)",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "starts_at": {
            "format": "date-time",
            "type": "string"
          },
          "template": {
            "description": "gara (default) | benefico | essenziale: solo \"gara\" parte con il requisito sanitario e il consenso del genitore",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "starts_at",
          "ends_at"
        ],
        "type": "object"
      },
      "CreateMemberRequest": {
        "properties": {
          "email": {
            "description": "Deve essere libera: un account esistente entra con il codice invito o con una richiesta dall'app (409 altrimenti). Assente: viene creato un cliente \"senza app\" con email segnaposto.",
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "send_invite": {
            "description": "Con un'email: manda subito al cliente l'email con il link per scegliere la password ed entrare nell'app (default true). false = nessuna email, la si può mandare dopo con `send_member_access_link`. L'email e la lingua del cliente seguono `Accept-Language` (it, en, fr; default italiano).",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "first_name",
          "last_name"
        ],
        "type": "object"
      },
      "CustomDay": {
        "description": "Testo scritto a mano per un giorno: sostituisce le skill dei corsi sulla TV.",
        "properties": {
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "day": {
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "gym_id",
          "day",
          "title",
          "updated_at"
        ],
        "type": "object"
      },
      "CustomDayRequest": {
        "properties": {
          "body": {
            "description": "Testo del WOD, una riga per movimento (massimo 2000 caratteri)",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "description": "Vuoto = torna alle skill dei corsi",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "Dashboard": {
        "properties": {
          "active_members": {
            "format": "int64",
            "type": "integer"
          },
          "certificates_attention": {
            "items": {
              "$ref": "#/components/schemas/ExpiringCertificate"
            },
            "type": "array"
          },
          "low_credits": {
            "items": {
              "$ref": "#/components/schemas/LowCredits"
            },
            "type": "array"
          },
          "members_missing_documents": {
            "description": "Clienti a cui manca una firma obbligatoria (0 se la palestra non chiede documenti)",
            "format": "int64",
            "type": "integer"
          },
          "members_without_certificate": {
            "format": "int64",
            "type": "integer"
          },
          "membership_fees_due": {
            "description": "Con abbonamento in corso ma quota associativa da saldare (vuoto se la palestra non la richiede)",
            "items": {
              "$ref": "#/components/schemas/FeeDue"
            },
            "type": "array"
          },
          "memberships_expiring": {
            "items": {
              "$ref": "#/components/schemas/ExpiringMembership"
            },
            "type": "array"
          },
          "recent_no_shows": {
            "items": {
              "$ref": "#/components/schemas/RecentNoShow"
            },
            "type": "array"
          },
          "recent_trials": {
            "description": "Prove degli ultimi 7 giorni non segnate assenti: da richiamare",
            "items": {
              "$ref": "#/components/schemas/RecentTrial"
            },
            "type": "array"
          },
          "today": {
            "$ref": "#/components/schemas/TodaySummary"
          }
        },
        "required": [
          "today",
          "active_members",
          "memberships_expiring",
          "low_credits",
          "certificates_attention",
          "members_without_certificate",
          "membership_fees_due",
          "recent_no_shows",
          "recent_trials",
          "members_missing_documents"
        ],
        "type": "object"
      },
      "DayWorkout": {
        "description": "WOD segnato su un tipo di corso per un giorno (tabella `workouts`), con nome e colore del corso: è quello che la TV mostra di default.",
        "properties": {
          "class_type_color": {
            "type": [
              "string",
              "null"
            ]
          },
          "class_type_id": {
            "format": "uuid",
            "type": "string"
          },
          "class_type_name": {
            "type": "string"
          },
          "day": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "class_type_id",
          "class_type_name",
          "day",
          "title"
        ],
        "type": "object"
      },
      "DeactivationPreview": {
        "description": "Cosa succede alle lezioni con prenotati disattivando un orario: le lezioni future ancora in programma con almeno una prenotazione attiva, più quelle annullate da una chiusura con clienti da riprenotare quando la si toglie. Senza `cancel_booked` restano attive (quelle chiuse tornano togliendo la chiusura), con `cancel_booked` vengono annullate (quelle chiuse restano annullate anche togliendo la chiusura).",
        "properties": {
          "bookings": {
            "description": "Prenotazioni su quelle lezioni: attive, o da riprenotare togliendo la chiusura",
            "format": "int64",
            "type": "integer"
          },
          "first_start_at": {
            "description": "Inizio della prima di quelle lezioni; null se non ce ne sono",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "lessons_with_bookings": {
            "description": "Lezioni future con prenotati: in programma con almeno un prenotato, o annullate da una chiusura con clienti da riprenotare",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "lessons_with_bookings",
          "bookings"
        ],
        "type": "object"
      },
      "DecisionBody": {
        "properties": {
          "reason": {
            "description": "Motivo del rifiuto, mostrato al cliente (facoltativo)",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Document": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "declared_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "expires_on": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "locked_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "participant_id": {
            "format": "uuid",
            "type": "string"
          },
          "purged_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "reject_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "requirement_id": {
            "format": "uuid",
            "type": "string"
          },
          "reviewed_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "participant_id",
          "requirement_id",
          "status",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "DocumentView": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Document"
          },
          {
            "properties": {
              "has_file": {
                "type": "boolean"
              }
            },
            "required": [
              "has_file"
            ],
            "type": "object"
          }
        ]
      },
      "ErrorBody": {
        "properties": {
          "error": {
            "description": "Codice stabile: bad_request, unauthorized, forbidden, not_found, conflict, membership_required, too_many_requests, gym_inactive, api_disabled, missing_scope, email_not_sent, internal",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "next_membership_starts_on": {
            "description": "Solo nelle prenotazioni rifiutate per l'abbonamento (`membership_required` o `conflict`): il cliente ne ha già uno valido per la lezione che parte in questa data, quindi non va proposto il rinnovo",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "error",
          "message"
        ],
        "type": "object"
      },
      "Event": {
        "properties": {
          "auto_delete_accounts": {
            "type": "boolean"
          },
          "auto_delete_after_days": {
            "format": "int32",
            "type": "integer"
          },
          "cancel_until": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "checkin_codes": {
            "description": "Codice check-in personale per ogni iscritto (spento di default)",
            "type": "boolean"
          },
          "collected_fields": {
            "description": "Campi facoltativi dei partecipanti che l'organizzatore raccoglie (sex, tax_code, shirt_size, phone): gli altri non si chiedono né si salvano",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "competitive": {
            "type": "boolean"
          },
          "contact_email": {
            "type": [
              "string",
              "null"
            ]
          },
          "content_en": {
            "type": [
              "object",
              "null"
            ]
          },
          "content_fr": {
            "type": [
              "object",
              "null"
            ]
          },
          "content_it": {
            "type": [
              "object",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "description_en": {
            "type": [
              "string",
              "null"
            ]
          },
          "description_fr": {
            "type": [
              "string",
              "null"
            ]
          },
          "description_it": {
            "type": [
              "string",
              "null"
            ]
          },
          "docs_purged_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "docs_retention_days": {
            "format": "int32",
            "type": "integer"
          },
          "ends_at": {
            "format": "date-time",
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "leaderboard_mode": {
            "type": "string"
          },
          "leaderboard_names": {
            "type": "string"
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "organizer_name": {
            "description": "Titolare del trattamento (ragione sociale dell'organizzatore)",
            "type": [
              "string",
              "null"
            ]
          },
          "organizer_privacy_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "organizer_privacy_url": {
            "description": "Informativa dell'organizzatore: link oppure testo",
            "type": [
              "string",
              "null"
            ]
          },
          "participants_list_mode": {
            "type": "string"
          },
          "registration_closes_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "registration_opens_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "sections": {
            "type": "object"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "starts_at": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "description": "draft | published | closed | archived",
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "theme": {
            "type": "object"
          },
          "title": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "hash",
          "title",
          "starts_at",
          "ends_at",
          "collected_fields",
          "checkin_codes",
          "status",
          "leaderboard_mode",
          "leaderboard_names",
          "participants_list_mode",
          "auto_delete_accounts",
          "auto_delete_after_days",
          "docs_retention_days",
          "competitive",
          "template",
          "theme",
          "sections",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "EventCheckinRequest": {
        "properties": {
          "checked_in": {
            "type": "boolean"
          }
        },
        "required": [
          "checked_in"
        ],
        "type": "object"
      },
      "EventCheckinResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Account"
          },
          {
            "properties": {
              "already_checked_in": {
                "description": "Era già entrato: l'orario resta quello del primo check-in (`checked_in_at`)",
                "type": "boolean"
              }
            },
            "required": [
              "already_checked_in"
            ],
            "type": "object"
          }
        ],
        "description": "Esito del check-in: l'iscrizione, e se era già entrata."
      },
      "EventLeaderboard": {
        "description": "Classifica di una categoria: le prove e le righe con punti o posizione.",
        "properties": {
          "ranking_mode": {
            "type": "string"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/Row"
            },
            "type": "array"
          },
          "workouts": {
            "items": {
              "$ref": "#/components/schemas/EventWorkout"
            },
            "type": "array"
          }
        },
        "required": [
          "ranking_mode",
          "workouts",
          "rows"
        ],
        "type": "object"
      },
      "EventLinks": {
        "properties": {
          "preview_url": {
            "type": "string"
          },
          "public_url": {
            "type": "string"
          }
        },
        "required": [
          "public_url",
          "preview_url"
        ],
        "type": "object"
      },
      "EventListResponse": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/EventSummary"
            },
            "type": "array"
          },
          "events_per_month": {
            "format": "int32",
            "type": "integer"
          },
          "used_this_month": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "events",
          "used_this_month",
          "events_per_month"
        ],
        "type": "object"
      },
      "EventParticipant": {
        "description": "Partecipante iscritto a un evento: anagrafica e documenti richiesti.",
        "properties": {
          "account_id": {
            "format": "uuid",
            "type": "string"
          },
          "birth_date": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": "string"
          },
          "hide_name_in_leaderboard": {
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "sex": {
            "type": [
              "string",
              "null"
            ]
          },
          "shirt_size": {
            "type": [
              "string",
              "null"
            ]
          },
          "sort": {
            "format": "int32",
            "type": "integer"
          },
          "tax_code": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "account_id",
          "first_name",
          "last_name",
          "hide_name_in_leaderboard",
          "sort",
          "created_at"
        ],
        "type": "object"
      },
      "EventPatch": {
        "description": "Campi modificabili dell'evento: assente = invariato, `null` = svuotato.",
        "properties": {
          "auto_delete_after_days": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "cancel_until": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "checkin_codes": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "collected_fields": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "competitive": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "contact_email": {
            "type": [
              "string",
              "null"
            ]
          },
          "content_en": {
            "type": [
              "object",
              "null"
            ]
          },
          "content_fr": {
            "type": [
              "object",
              "null"
            ]
          },
          "content_it": {
            "type": [
              "object",
              "null"
            ]
          },
          "description_en": {
            "type": [
              "string",
              "null"
            ]
          },
          "description_fr": {
            "type": [
              "string",
              "null"
            ]
          },
          "description_it": {
            "type": [
              "string",
              "null"
            ]
          },
          "docs_retention_days": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "ends_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "leaderboard_mode": {
            "type": [
              "string",
              "null"
            ]
          },
          "leaderboard_names": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "organizer_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "organizer_privacy_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "organizer_privacy_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "participants_list_mode": {
            "type": [
              "string",
              "null"
            ]
          },
          "registration_closes_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "registration_opens_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "sections": {
            "type": [
              "object",
              "null"
            ]
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "starts_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "template": {
            "type": [
              "string",
              "null"
            ]
          },
          "theme": {
            "type": [
              "object",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "EventSummary": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Event"
          },
          {
            "properties": {
              "has_cover": {
                "type": "boolean"
              },
              "has_rules": {
                "type": "boolean"
              },
              "public_key": {
                "type": "string"
              },
              "registrations": {
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "public_key",
              "registrations",
              "has_cover",
              "has_rules"
            ],
            "type": "object"
          }
        ]
      },
      "EventWorkout": {
        "description": "Prova (workout) di un evento, con tipo di punteggio e modo di classifica.",
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "event_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "ranking_mode": {
            "description": "positions | points_table | raw_sum",
            "type": "string"
          },
          "score_type": {
            "description": "time | reps | load | distance | calories | points",
            "type": "string"
          },
          "sort": {
            "format": "int32",
            "type": "integer"
          },
          "tiebreak_type": {
            "description": "time | reps | load | distance | calories | points",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "event_id",
          "title",
          "score_type",
          "ranking_mode",
          "sort",
          "created_at"
        ],
        "type": "object"
      },
      "ExpiringCertificate": {
        "properties": {
          "expires_on": {
            "format": "date",
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name",
          "expires_on",
          "verified"
        ],
        "type": "object"
      },
      "ExpiringMembership": {
        "properties": {
          "credits_balance": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "ends_on": {
            "format": "date",
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "plan_name": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name",
          "plan_name",
          "ends_on"
        ],
        "type": "object"
      },
      "FeeDue": {
        "properties": {
          "first_name": {
            "type": "string"
          },
          "last_fee_ends_on": {
            "description": "Scadenza dell'ultima quota, se ne ha avuta una",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name"
        ],
        "type": "object"
      },
      "GymDto": {
        "description": "Palestra come la vede un utente. `invite_code` compare solo per owner/admin.",
        "properties": {
          "api_enabled": {
            "description": "Box API attiva: la sezione chiavi API del pannello compare solo se è acceso",
            "type": "boolean"
          },
          "api_rate_limit_per_min": {
            "description": "Chiamate al minuto in totale per tutte le chiavi API della palestra (429 oltre)",
            "format": "int32",
            "type": "integer"
          },
          "booking_animation": {
            "description": "Dopo la prenotazione l'app mostra un esercizio animato a caso",
            "type": "boolean"
          },
          "bookings_open_until": {
            "description": "Tutte le lezioni fino a questa data (inclusa) sono prenotabili subito",
            "type": [
              "string",
              "null"
            ]
          },
          "events_enabled": {
            "description": "Sezione Eventi attiva per la palestra (admin di piattaforma, default no)",
            "type": "boolean"
          },
          "events_per_month": {
            "description": "Eventi creabili al mese (lo cambia solo l'admin di piattaforma)",
            "format": "int32",
            "type": "integer"
          },
          "external_payment_enabled": {
            "description": "La palestra ha già un suo sistema di pagamento: quando la prenotazione è rifiutata con `membership_required` l'app propone \"Rinnova qui\" (se il cliente ha già un abbonamento che parte più avanti, `next_membership_starts_on`, mostra invece da quando potrà prenotare)",
            "type": "boolean"
          },
          "external_payment_url": {
            "description": "Link per rinnovare o comprare l'abbonamento sul sito della palestra. I clienti lo ricevono solo se l'opzione è accesa",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "invite_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_listed": {
            "description": "Compare nella ricerca dell'app",
            "type": "boolean"
          },
          "logo_url": {
            "description": "Indirizzo pubblico del logo caricato (PNG, senza login), assente se la palestra non l'ha caricato. Cambia a ogni caricamento.",
            "type": [
              "string",
              "null"
            ]
          },
          "mcp_enabled": {
            "description": "Connettore MCP attivo: titolare e admin possono collegare un assistente AI (Claude, ChatGPT…) alla palestra (admin di piattaforma, default no)",
            "type": "boolean"
          },
          "member_docs_enabled": {
            "description": "Documenti della palestra da firmare nell'app (modulo, termini, regolamento)",
            "type": "boolean"
          },
          "membership_fee_cents": {
            "description": "Importo proposto della quota associativa, in centesimi",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "my_role": {
            "description": "Ruolo dell'utente che ha fatto la richiesta",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "plan_expires_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "plan_status": {
            "type": "string"
          },
          "primary_color": {
            "type": [
              "string",
              "null"
            ]
          },
          "pt_enabled": {
            "description": "Modulo Personal training attivo: voce di menu nel pannello e sezione nell'app compaiono solo se è acceso (admin di piattaforma, default no)",
            "type": "boolean"
          },
          "qr_checkin_enabled": {
            "description": "QR del cliente per timbrare gli ingressi (spento: l'app non lo mostra)",
            "type": "boolean"
          },
          "reminder_minutes_before": {
            "description": "Promemoria pre-lezione in minuti (0 = off)",
            "format": "int32",
            "type": "integer"
          },
          "require_medical_certificate": {
            "description": "Serve un certificato medico valido per prenotare",
            "type": "boolean"
          },
          "require_membership_fee": {
            "description": "Serve la quota associativa annuale (tesseramento) saldata per prenotare",
            "type": "boolean"
          },
          "service_active": {
            "description": "Servizio attivo: se è falso pannello e app mostrano solo l'avviso (le altre chiamate rispondono `gym_inactive`)",
            "type": "boolean"
          },
          "service_blocks_at": {
            "description": "Quando si blocca il servizio (la scadenza: niente tolleranza)",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "show_coach_last_name": {
            "description": "Nelle lezioni il coach compare con nome e cognome (altrimenti solo nome)",
            "type": "boolean"
          },
          "show_prices": {
            "description": "I clienti vedono importi e prezzi nell'app",
            "type": "boolean"
          },
          "slug": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "wod_tv_enabled": {
            "description": "Wod TV attiva: la voce di menu del pannello compare solo se è acceso",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "timezone",
          "plan_status",
          "service_active",
          "require_medical_certificate",
          "reminder_minutes_before",
          "is_listed",
          "qr_checkin_enabled",
          "show_coach_last_name",
          "require_membership_fee",
          "show_prices",
          "booking_animation",
          "events_per_month",
          "events_enabled",
          "api_enabled",
          "api_rate_limit_per_min",
          "pt_enabled",
          "member_docs_enabled",
          "wod_tv_enabled",
          "mcp_enabled",
          "external_payment_enabled",
          "my_role"
        ],
        "type": "object"
      },
      "Image": {
        "properties": {
          "alt_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "event_id": {
            "format": "uuid",
            "type": "string"
          },
          "height": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "link_url": {
            "description": "Sito dello sponsor (https), aperto cliccando il logo",
            "type": [
              "string",
              "null"
            ]
          },
          "sort": {
            "format": "int32",
            "type": "integer"
          },
          "width": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "event_id",
          "kind",
          "sort",
          "created_at"
        ],
        "type": "object"
      },
      "ImagePatch": {
        "properties": {
          "alt": {
            "type": [
              "string",
              "null"
            ]
          },
          "link": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "InactiveMember": {
        "properties": {
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "has_membership": {
            "description": "Ha un abbonamento attivo oggi",
            "type": "boolean"
          },
          "joined_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_attended_at": {
            "description": "Ultima lezione a cui è risultato presente (nessuna = mai)",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name",
          "email",
          "joined_at",
          "has_membership"
        ],
        "type": "object"
      },
      "JoinRequestForStaff": {
        "description": "Richiesta come la vede lo staff.",
        "properties": {
          "avatar_path": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "user_id",
          "first_name",
          "last_name",
          "email",
          "status",
          "created_at"
        ],
        "type": "object"
      },
      "LedgerEntry": {
        "properties": {
          "booking_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "delta": {
            "format": "int32",
            "type": "integer"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "membership_id": {
            "format": "uuid",
            "type": "string"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "membership_id",
          "delta",
          "reason",
          "created_at"
        ],
        "type": "object"
      },
      "Location": {
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "gym_id",
          "name",
          "is_default",
          "created_at"
        ],
        "type": "object"
      },
      "LocationRequest": {
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_default": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "LowCredits": {
        "properties": {
          "credits_balance": {
            "format": "int64",
            "type": "integer"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "plan_name": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name",
          "plan_name",
          "credits_balance"
        ],
        "type": "object"
      },
      "Member": {
        "description": "Un membro visto dallo staff della palestra.",
        "properties": {
          "avatar_url": {
            "description": "Percorso relativo all'API (es. /files/avatars/<uuid>.jpg)",
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": "string"
          },
          "email_editable": {
            "description": "Come `managed_by_gym` e in più l'account l'ha creato lo staff di questa palestra (o è un cliente senza email): si può cambiare anche l'email. Per gli altri la cambia Boxly, su richiesta.",
            "type": "boolean"
          },
          "first_name": {
            "type": "string"
          },
          "joined_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "managed_by_gym": {
            "description": "Cliente iscritto solo a questa palestra: titolare e admin possono modificarne i dati ed eliminarne l'account. Falso per lo staff e per chi è iscritto anche ad altre palestre (lì lo fa Boxly su richiesta).",
            "type": "boolean"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "photo_hidden": {
            "description": "Nella palestra l'iscritto compare senza foto (scelta del titolare)",
            "type": "boolean"
          },
          "role": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "email",
          "first_name",
          "last_name",
          "role",
          "status",
          "joined_at",
          "photo_hidden",
          "managed_by_gym",
          "email_editable"
        ],
        "type": "object"
      },
      "MembershipFee": {
        "description": "Quota associativa annuale (tesseramento): la registra lo staff, ed è già approvata. Copre le lezioni da `starts_on` a `ends_on` inclusi.",
        "properties": {
          "amount_cents": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "approved_at": {
            "format": "date-time",
            "type": "string"
          },
          "approved_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "ends_on": {
            "format": "date",
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "starts_on": {
            "format": "date",
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "user_id",
          "starts_on",
          "ends_on",
          "approved_at",
          "created_at"
        ],
        "type": "object"
      },
      "MembershipFeeRequest": {
        "properties": {
          "amount_cents": {
            "description": "Default: l'importo proposto dalla palestra",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "ends_on": {
            "description": "Default: un anno dall'inizio (l'ultimo giorno incluso)",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PaymentInput",
                "description": "Se presente (e con importo > 0) registra anche il pagamento"
              },
              {
                "type": "null"
              }
            ]
          },
          "starts_on": {
            "description": "Default: oggi",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "MembershipFeeResponse": {
        "properties": {
          "fee": {
            "$ref": "#/components/schemas/MembershipFee"
          },
          "payment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Payment"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "fee"
        ],
        "type": "object"
      },
      "MembershipRequest": {
        "properties": {
          "credits": {
            "description": "Default: crediti del piano (da 1 a 1000)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "ends_on": {
            "description": "Default: dalla durata del piano, ultimo giorno incluso (30 giorni dal 9/02 → 10/03; 1 mese dal 9/02 → 8/03, dal 31/01 → 28/02)",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PaymentInput",
                "description": "Se presente, registra anche il pagamento"
              },
              {
                "type": "null"
              }
            ]
          },
          "plan_id": {
            "format": "uuid",
            "type": "string"
          },
          "starts_on": {
            "description": "Default: oggi",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "plan_id"
        ],
        "type": "object"
      },
      "MembershipResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MembershipView"
          },
          {
            "properties": {
              "payment": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Payment"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "MembershipView": {
        "description": "Abbonamento con nome e tipo del piano e saldo crediti calcolato.",
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credits_balance": {
            "description": "Somma del ledger (NULL per gli illimitati)",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "credits_total": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "ends_on": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "frozen_on": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "plan_id": {
            "format": "uuid",
            "type": "string"
          },
          "plan_kind": {
            "type": "string"
          },
          "plan_max_per_day": {
            "description": "Limiti del piano (NULL = nessuno)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "plan_max_per_week": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "plan_name": {
            "type": "string"
          },
          "starts_on": {
            "format": "date",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "suspensions": {
            "description": "Sospensioni per un periodo, dalla prima: nei loro giorni l'abbonamento non vale per prenotare",
            "items": {
              "$ref": "#/components/schemas/SuspensionBrief"
            },
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "user_id",
          "plan_id",
          "plan_name",
          "plan_kind",
          "status",
          "starts_on",
          "suspensions",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "MyBooking": {
        "description": "Prenotazione con i dati della lezione, per \"le mie prenotazioni\".",
        "properties": {
          "booked_at": {
            "format": "date-time",
            "type": "string"
          },
          "checked_in_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "class_type_color": {
            "type": [
              "string",
              "null"
            ]
          },
          "class_type_id": {
            "format": "uuid",
            "type": "string"
          },
          "class_type_name": {
            "type": "string"
          },
          "coach_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "end_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "location_address": {
            "description": "Indirizzo della sede, se impostato",
            "type": [
              "string",
              "null"
            ]
          },
          "location_name": {
            "type": "string"
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          },
          "occurrence_status": {
            "type": "string"
          },
          "room_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "start_at": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "workout_animation": {
            "description": "Animazione dell'esercizio scelta a mano per la skill del giorno: assente = dal testo, `none` = nessuna",
            "type": [
              "string",
              "null"
            ]
          },
          "workout_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "workout_title": {
            "description": "Skill del giorno della lezione, se impostata",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "occurrence_id",
          "status",
          "booked_at",
          "start_at",
          "end_at",
          "occurrence_status",
          "class_type_id",
          "class_type_name",
          "location_name"
        ],
        "type": "object"
      },
      "OccupancyRow": {
        "properties": {
          "attended": {
            "format": "int64",
            "type": "integer"
          },
          "booked": {
            "description": "Posti occupati: prenotati + presenti + assenti",
            "format": "int64",
            "type": "integer"
          },
          "capacity": {
            "format": "int64",
            "type": "integer"
          },
          "key": {
            "description": "Id del tipo corso / del coach, numero ISO del giorno (1 = lunedì) o ora \"HH\"",
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "no_show": {
            "format": "int64",
            "type": "integer"
          },
          "occurrences": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "key",
          "label",
          "occurrences",
          "capacity",
          "booked",
          "attended",
          "no_show"
        ],
        "type": "object"
      },
      "Occurrence": {
        "description": "Una lezione in calendario, con i nomi già risolti per il client.",
        "properties": {
          "booked_count": {
            "description": "Posti occupati: prenotazioni attive + promozioni in attesa di accettazione",
            "format": "int64",
            "type": "integer"
          },
          "booking_opens_at": {
            "description": "Da quando si può prenotare: la regola \"ore prima\" oppure, se la palestra ha aperto in anticipo fino a una data che copre la lezione, già adesso (si usa la creazione della lezione).",
            "format": "date-time",
            "type": "string"
          },
          "cancel_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "capacity": {
            "format": "int32",
            "type": "integer"
          },
          "class_type_color": {
            "type": [
              "string",
              "null"
            ]
          },
          "class_type_id": {
            "format": "uuid",
            "type": "string"
          },
          "class_type_name": {
            "type": "string"
          },
          "close_minutes_before": {
            "description": "Quanti minuti prima dell'inizio chiudono le prenotazioni",
            "format": "int32",
            "type": "integer"
          },
          "closure_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "coach_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "coach_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credit_cost": {
            "description": "Ingressi consumati da una prenotazione (dal tipo di corso)",
            "format": "int32",
            "type": "integer"
          },
          "end_at": {
            "format": "date-time",
            "type": "string"
          },
          "free_cancel_minutes_before": {
            "description": "Dalla regola di prenotazione in vigore (tipo corso o default palestra): fino a quanti minuti prima si cancella gratis",
            "format": "int32",
            "type": "integer"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "is_modified": {
            "type": "boolean"
          },
          "location_id": {
            "format": "uuid",
            "type": "string"
          },
          "location_name": {
            "type": "string"
          },
          "my_booking_status": {
            "description": "Stato della prenotazione di chi guarda (anche cancellata), se esiste",
            "type": [
              "string",
              "null"
            ]
          },
          "my_waitlist_rank": {
            "description": "Posizione in lista d'attesa (solo se waiting)",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "my_waitlist_status": {
            "description": "Stato in lista d'attesa di chi guarda (waiting o promoted)",
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "open_hours_before": {
            "description": "Da quante ore prima dell'inizio si può prenotare",
            "format": "int32",
            "type": "integer"
          },
          "room_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "room_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "start_at": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "template_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "waitlist_count": {
            "description": "Persone in lista d'attesa",
            "format": "int64",
            "type": "integer"
          },
          "waitlist_enabled": {
            "description": "Dalla regola in vigore: a lezione piena si può entrare in lista d'attesa",
            "type": "boolean"
          },
          "workout_animation": {
            "description": "Animazione dell'esercizio scelta a mano per la skill del giorno: assente = dal testo, `none` = nessuna",
            "type": [
              "string",
              "null"
            ]
          },
          "workout_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "workout_title": {
            "description": "Skill del giorno (WOD) del tipo di corso in quel giorno, se impostata",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "gym_id",
          "class_type_id",
          "location_id",
          "start_at",
          "end_at",
          "capacity",
          "status",
          "is_modified",
          "created_at",
          "updated_at",
          "class_type_name",
          "location_name",
          "booked_count",
          "waitlist_count",
          "credit_cost",
          "free_cancel_minutes_before",
          "close_minutes_before",
          "open_hours_before",
          "booking_opens_at",
          "waitlist_enabled"
        ],
        "type": "object"
      },
      "OccurrenceBookings": {
        "properties": {
          "bookings": {
            "items": {
              "$ref": "#/components/schemas/BookingWithUser"
            },
            "type": "array"
          },
          "trials": {
            "description": "Prove aggiunte dallo staff: occupano un posto, presenza senza strike",
            "items": {
              "$ref": "#/components/schemas/TrialSpot"
            },
            "type": "array"
          },
          "waitlist": {
            "items": {
              "$ref": "#/components/schemas/WaitlistEntryWithUser"
            },
            "type": "array"
          }
        },
        "required": [
          "bookings",
          "waitlist",
          "trials"
        ],
        "type": "object"
      },
      "Participant": {
        "description": "Un iscritto come lo vedono gli altri iscritti: nome e iniziale, foto. Chi ha scelto di non comparire è \"Atleta\" senza id né foto.",
        "properties": {
          "anonymous": {
            "type": "boolean"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "display_name": {
            "type": "string"
          },
          "is_me": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "trial": {
            "description": "Prova aggiunta dallo staff (nell'app con la mascotte, senza foto)",
            "type": "boolean"
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "display_name",
          "is_me",
          "anonymous",
          "status",
          "trial"
        ],
        "type": "object"
      },
      "ParticipantView": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EventParticipant"
          },
          {
            "properties": {
              "consent_link_sent_at": {
                "description": "Quando è partito l'ultimo link per i consensi del compagno",
                "format": "date-time",
                "type": [
                  "string",
                  "null"
                ]
              },
              "consent_pending": {
                "description": "Compagno di squadra che non ha ancora dato i suoi consensi dal link ricevuto via email (l'iscrizione resta in sospeso)",
                "type": "boolean"
              },
              "documents": {
                "items": {
                  "$ref": "#/components/schemas/DocumentView"
                },
                "type": "array"
              },
              "is_minor": {
                "type": "boolean"
              }
            },
            "required": [
              "is_minor",
              "documents",
              "consent_pending"
            ],
            "type": "object"
          }
        ]
      },
      "ParticipantVisibility": {
        "properties": {
          "hide_name_in_leaderboard": {
            "type": "boolean"
          }
        },
        "required": [
          "hide_name_in_leaderboard"
        ],
        "type": "object"
      },
      "Participants": {
        "properties": {
          "participants": {
            "items": {
              "$ref": "#/components/schemas/Participant"
            },
            "type": "array"
          },
          "total": {
            "minimum": 0,
            "type": "integer"
          },
          "waitlist": {
            "items": {
              "$ref": "#/components/schemas/Waiter"
            },
            "type": "array"
          },
          "waitlist_total": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "participants",
          "total",
          "waitlist",
          "waitlist_total"
        ],
        "type": "object"
      },
      "Payment": {
        "properties": {
          "amount_cents": {
            "format": "int32",
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "membership_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "method": {
            "type": "string"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_at": {
            "format": "date-time",
            "type": "string"
          },
          "receipt_number": {
            "type": "string"
          },
          "recorded_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "user_id",
          "amount_cents",
          "currency",
          "method",
          "paid_at",
          "receipt_number",
          "created_at"
        ],
        "type": "object"
      },
      "PaymentInput": {
        "properties": {
          "amount_cents": {
            "format": "int32",
            "type": "integer"
          },
          "method": {
            "description": "cash | bank_transfer | pos | other",
            "type": "string"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents",
          "method"
        ],
        "type": "object"
      },
      "PaymentListItem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Payment"
          },
          {
            "properties": {
              "email": {
                "description": "Email del cliente: vuota se ha eliminato l'account; per chi è stato creato senza email è un indirizzo segnaposto",
                "type": [
                  "string",
                  "null"
                ]
              },
              "first_name": {
                "description": "Nome del cliente",
                "type": "string"
              },
              "last_name": {
                "description": "Cognome del cliente",
                "type": "string"
              },
              "membership_fee": {
                "description": "Il pagamento salda una quota associativa",
                "type": "boolean"
              },
              "plan_name": {
                "description": "Piano dell'abbonamento a cui si riferisce il pagamento, se c'è",
                "type": [
                  "string",
                  "null"
                ]
              },
              "recorded_by_name": {
                "description": "Nome e cognome di chi ha registrato il pagamento",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "first_name",
              "last_name",
              "membership_fee"
            ],
            "type": "object"
          }
        ],
        "description": "Un pagamento nell'elenco dello staff, con i nomi già risolti."
      },
      "PaymentRequest": {
        "properties": {
          "amount_cents": {
            "format": "int32",
            "type": "integer"
          },
          "membership_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "method": {
            "type": "string"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents",
          "method"
        ],
        "type": "object"
      },
      "Plan": {
        "properties": {
          "class_type_ids": {
            "description": "NULL = tutti i tipi di corso",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "credits": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_days": {
            "description": "Validità in giorni dall'attivazione (NULL = in mesi o senza scadenza)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "duration_months": {
            "description": "Validità in mesi di calendario dall'attivazione, 1–36 (NULL = in giorni o senza scadenza)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "kind": {
            "type": "string"
          },
          "location_ids": {
            "description": "NULL = tutte le sedi",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "max_per_day": {
            "description": "Massimo ingressi al giorno con questo piano (NULL = nessun limite)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "max_per_week": {
            "description": "Massimo ingressi a settimana con questo piano (NULL = nessun limite)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "price_cents": {
            "description": "NULL = piano senza prezzo (es. eventi)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "sort_order": {
            "format": "int32",
            "type": "integer"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "name",
          "kind",
          "currency",
          "is_active",
          "sort_order",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "PolicyRequest": {
        "properties": {
          "auto_no_show": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "block_days": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "class_type_id": {
            "description": "Assente = policy di default della palestra",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "close_minutes_before": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "free_cancel_minutes_before": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "max_active_bookings": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "max_per_day": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "max_per_week": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "no_show_strikes_before_block": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "open_hours_before": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "waitlist_accept_minutes": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "waitlist_enabled": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PolicyRow": {
        "properties": {
          "auto_no_show": {
            "type": "boolean"
          },
          "block_days": {
            "format": "int32",
            "type": "integer"
          },
          "class_type_id": {
            "description": "NULL = default della palestra",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "close_minutes_before": {
            "format": "int32",
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "free_cancel_minutes_before": {
            "format": "int32",
            "type": "integer"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "max_active_bookings": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "max_per_day": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "max_per_week": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "no_show_strikes_before_block": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "open_hours_before": {
            "format": "int32",
            "type": "integer"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "waitlist_accept_minutes": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "waitlist_enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "gym_id",
          "open_hours_before",
          "close_minutes_before",
          "free_cancel_minutes_before",
          "waitlist_enabled",
          "block_days",
          "auto_no_show",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "PtSession": {
        "properties": {
          "booked_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "cancel_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "cancelled_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "coach_avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "coach_id": {
            "format": "uuid",
            "type": "string"
          },
          "coach_name": {
            "type": "string"
          },
          "consumes": {
            "description": "Scala una seduta del pacchetto",
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "end_at": {
            "format": "date-time",
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "location_address": {
            "description": "Indirizzo della sede del coach; se il coach non ha una sede, quello della sede principale della palestra",
            "type": [
              "string",
              "null"
            ]
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "membership_id": {
            "description": "Pacchetto da cui è scalata (vuoto = seduta fuori pacchetto)",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "membership_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "membership_price_cents": {
            "description": "Prezzo del pacchetto in centesimi (vuoto se senza prezzo)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "membership_sessions_total": {
            "description": "Sedute comprese nel pacchetto",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "room_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "session_price_cents": {
            "description": "Prezzo del pacchetto diviso le sue sedute, in centesimi arrotondati (vuoto per sedute fuori pacchetto o pacchetti senza prezzo)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "start_at": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "description": "pending (da confermare), confirmed, done (fatta), no_show (assente), cancelled (annullata in tempo), late_cancelled (annullata in ritardo), declined (rifiutata dal coach)",
            "type": "string"
          },
          "user_avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          },
          "user_name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "coach_id",
          "coach_name",
          "user_id",
          "user_name",
          "start_at",
          "end_at",
          "status",
          "consumes",
          "created_at"
        ],
        "type": "object"
      },
      "RecentNoShow": {
        "properties": {
          "class_type_name": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "no_show_strikes": {
            "format": "int32",
            "type": "integer"
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          },
          "start_at": {
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "first_name",
          "last_name",
          "occurrence_id",
          "class_type_name",
          "start_at",
          "no_show_strikes"
        ],
        "type": "object"
      },
      "RecentTrial": {
        "properties": {
          "attended": {
            "description": "Presenza: vuoto = da segnare, true = presente",
            "type": [
              "boolean",
              "null"
            ]
          },
          "class_type_name": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Nome scelto dallo staff; vuoto = \"Prova\"",
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "description": "Nota visibile solo allo staff",
            "type": [
              "string",
              "null"
            ]
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          },
          "start_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "occurrence_id",
          "class_type_name",
          "start_at"
        ],
        "type": "object"
      },
      "RecurringBooking": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "template_id": {
            "format": "uuid",
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "template_id",
          "user_id",
          "created_at"
        ],
        "type": "object"
      },
      "RecurringRequest": {
        "properties": {
          "user_id": {
            "description": "Per lo staff: il cliente da iscrivere. Assente = chi fa la richiesta.",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Requirement": {
        "properties": {
          "applies_to": {
            "description": "all | minors",
            "type": "string"
          },
          "event_id": {
            "format": "uuid",
            "type": "string"
          },
          "has_template": {
            "description": "Il percorso resta sul server: al pannello basta sapere se c'è.",
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "description": "medical_certificate | waiver | parent_consent | id_document | payment_receipt | other",
            "type": "string"
          },
          "mode": {
            "description": "upload | declaration",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "sort": {
            "format": "int32",
            "type": "integer"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "event_id",
          "kind",
          "title",
          "mode",
          "required",
          "applies_to",
          "has_template",
          "sort"
        ],
        "type": "object"
      },
      "RequirementPatch": {
        "properties": {
          "applies_to": {
            "description": "all | minors",
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "description": "medical_certificate | waiver | parent_consent | id_document | payment_receipt | other",
            "type": [
              "string",
              "null"
            ]
          },
          "mode": {
            "description": "upload (file da caricare) | declaration (dichiarazione spuntata)",
            "type": [
              "string",
              "null"
            ]
          },
          "required": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "sort": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "ReviewRequest": {
        "properties": {
          "approve": {
            "type": "boolean"
          },
          "expected_updated_at": {
            "description": "`updated_at` del documento come l'hai letto (da `list_event_accounts`): se nel frattempo è cambiato (nuovo caricamento o un'altra revisione) risponde 409 e non decide nulla. Senza, si decide il documento com'era all'arrivo della richiesta, in qualunque stato (anche già approvato o respinto): due richieste insieme danno un solo esito, e un documento già nello stato chiesto torna com'è, senza un'altra email",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "approve"
        ],
        "type": "object"
      },
      "Room": {
        "properties": {
          "capacity": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "location_id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "location_id",
          "name",
          "created_at"
        ],
        "type": "object"
      },
      "RoomRequest": {
        "properties": {
          "capacity": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "Row": {
        "properties": {
          "account_id": {
            "format": "uuid",
            "type": "string"
          },
          "category_id": {
            "format": "uuid",
            "type": "string"
          },
          "display_name": {
            "description": "Nome mostrato, già filtrato secondo le impostazioni di privacy",
            "type": "string"
          },
          "hidden_from_public": {
            "description": "Solo nella classifica dello staff: l'iscrizione non è ancora completa, quindi la riga non compare nella classifica pubblica (che ha comunque gli stessi totali e le stesse posizioni)",
            "type": "boolean"
          },
          "rank": {
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/WorkoutResult"
            },
            "type": "array"
          },
          "team": {
            "type": "boolean"
          },
          "total": {
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "account_id",
          "category_id",
          "display_name",
          "team",
          "rank",
          "total",
          "results",
          "hidden_from_public"
        ],
        "type": "object"
      },
      "Score": {
        "properties": {
          "account_id": {
            "format": "uuid",
            "type": "string"
          },
          "entered_at": {
            "format": "date-time",
            "type": "string"
          },
          "entered_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "scaled": {
            "type": "boolean"
          },
          "tiebreak": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "value": {
            "format": "double",
            "type": "number"
          },
          "workout_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workout_id",
          "account_id",
          "value",
          "scaled",
          "entered_at"
        ],
        "type": "object"
      },
      "ScoreRequest": {
        "properties": {
          "account_id": {
            "format": "uuid",
            "type": "string"
          },
          "scaled": {
            "type": "boolean"
          },
          "tiebreak": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "value": {
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "account_id",
          "value"
        ],
        "type": "object"
      },
      "StatusRequest": {
        "properties": {
          "status": {
            "description": "draft | published | closed | archived",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "SuspensionBrief": {
        "description": "Sospensione dell'abbonamento per un periodo (dal/al compresi)",
        "properties": {
          "ends_on": {
            "description": "Ultimo giorno sospeso (compreso)",
            "format": "date",
            "type": "string"
          },
          "has_certificate": {
            "description": "C'è il file del certificato che motiva la sospensione",
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "starts_on": {
            "description": "Primo giorno sospeso",
            "format": "date",
            "type": "string"
          }
        },
        "required": [
          "id",
          "starts_on",
          "ends_on",
          "has_certificate"
        ],
        "type": "object"
      },
      "TemplateChangePreview": {
        "description": "Anteprima di una modifica dell'orario: le lezioni future con prenotati che cambierebbero giorno, ora, tipo di corso o sede. Sono quelle per cui si sceglie `booked_lessons` (spostarle o lasciarle come sono). Su un orario disattivato è sempre a zero: le sue lezioni rimaste non seguono le modifiche finché non lo si riattiva.",
        "properties": {
          "bookings": {
            "description": "Prenotazioni attive su quelle lezioni",
            "format": "int64",
            "type": "integer"
          },
          "first_start_at": {
            "description": "Inizio della prima di quelle lezioni; null se non ce ne sono",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "lessons_not_movable": {
            "description": "Lezioni future con prenotati che anche con `move` resterebbero come sono: il giorno nuovo è chiuso o ha già un'altra lezione dell'orario, l'ora nuova è già passata, oppure la lezione ha già presenze o assenze segnate",
            "format": "int64",
            "type": "integer"
          },
          "lessons_with_bookings": {
            "description": "Lezioni future con prenotati che si sposterebbero",
            "format": "int64",
            "type": "integer"
          },
          "lessons_with_waitlist_only": {
            "description": "Lezioni future senza prenotati ma con qualcuno in lista d'attesa (o con un posto da accettare) che si sposterebbero: anche per loro vale `booked_lessons`, e con `move` chi aspetta viene avvisato",
            "format": "int64",
            "type": "integer"
          },
          "lessons_without_day": {
            "description": "Lezioni future con prenotati in un giorno tolto senza un giorno nuovo al suo posto: restano in programma come sono (si annullano dal Calendario)",
            "format": "int64",
            "type": "integer"
          },
          "members_removed": {
            "description": "Con `move` e un tipo di corso o una sede nuovi: clienti (prenotati o in lista d'attesa) che non possono farli con il loro abbonamento (o certificato, quota, documenti; chi è in lista d'attesa anche se la lezione costerà più ingressi di prima e non li ha) e verrebbero tolti, con un avviso (gli ingressi già scalati tornano indietro); ognuno contato una volta, come `removed_members` della modifica",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "lessons_with_bookings",
          "bookings",
          "lessons_with_waitlist_only",
          "lessons_not_movable",
          "lessons_without_day",
          "members_removed"
        ],
        "type": "object"
      },
      "TemplateDeactivation": {
        "description": "Esito di \"Disattiva\" con `cancel_booked=true`.",
        "properties": {
          "cancelled_occurrences": {
            "description": "Lezioni future con prenotati annullate, comprese quelle già annullate da una chiusura con clienti da riprenotare (restano annullate anche togliendo la chiusura): lo stesso numero dell'anteprima `deactivation-preview`",
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "notified_members": {
            "description": "Clienti avvisati (prenotati e lista d'attesa), ognuno contato una volta",
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "cancelled_occurrences",
          "notified_members"
        ],
        "type": "object"
      },
      "TemplateReactivationPreview": {
        "description": "Anteprima della riattivazione di un orario: le lezioni future in calendario dopo la riattivazione e quelle annullate che restano annullate.",
        "properties": {
          "cancelled_lessons": {
            "description": "Lezioni future annullate (disattivando l'orario con `cancel_booked` o a mano) che restano annullate: tengono il loro giorno, dove non si genera un'altra lezione. Escluse quelle annullate da una chiusura, che tornano togliendola.",
            "format": "int64",
            "type": "integer"
          },
          "first_start_at": {
            "description": "Inizio della prima di quelle lezioni; null se non ce ne sono",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "last_cancelled_at": {
            "description": "Inizio dell'ultima di quelle lezioni annullate; null se non ce ne sono",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "lessons": {
            "description": "Lezioni future in programma dopo la riattivazione, nei prossimi tre mesi: quelle rimaste, quelle che tornano e quelle generate di nuovo",
            "format": "int64",
            "type": "integer"
          },
          "recurring_members": {
            "description": "Clienti con un'iscrizione fissa all'orario: vengono prenotati in automatico sulle lezioni in programma (non su quelle annullate né su quelle che avevano cancellato)",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "lessons",
          "cancelled_lessons",
          "recurring_members"
        ],
        "type": "object"
      },
      "TemplateRequest": {
        "properties": {
          "capacity": {
            "format": "int32",
            "type": "integer"
          },
          "class_type_id": {
            "format": "uuid",
            "type": "string"
          },
          "coach_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "duration_min": {
            "description": "Default: durata del tipo di corso",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "location_id": {
            "format": "uuid",
            "type": "string"
          },
          "room_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "start_time": {
            "description": "Ora locale della sede, HH:MM",
            "type": "string"
          },
          "valid_from": {
            "description": "Default: oggi",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "valid_until": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "weekdays": {
            "description": "Giorni ISO: 1 = lunedì ... 7 = domenica",
            "items": {
              "format": "int32",
              "minimum": 0,
              "type": "integer"
            },
            "type": "array"
          }
        },
        "required": [
          "class_type_id",
          "location_id",
          "weekdays",
          "start_time",
          "capacity"
        ],
        "type": "object"
      },
      "TemplateUpdate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ClassTemplate"
          },
          {
            "properties": {
              "moved_lessons": {
                "description": "Lezioni future con prenotati o con qualcuno in lista d'attesa spostate al nuovo orario (solo con `booked_lessons: move`)",
                "format": "int64",
                "minimum": 0,
                "type": "integer"
              },
              "notified_members": {
                "description": "Clienti avvisati dello spostamento, ognuno contato una volta",
                "format": "int64",
                "minimum": 0,
                "type": "integer"
              },
              "removed_members": {
                "description": "Clienti tolti dalle lezioni spostate a un altro tipo di corso o a un'altra sede perché il loro abbonamento (o certificato, quota, documenti; in lista d'attesa anche gli ingressi, se la lezione costa di più) non lo permette: prenotazione annullata con l'ingresso restituito, se era stato scalato, o uscita dalla lista d'attesa, e un avviso; ognuno contato una volta (solo con `booked_lessons: move`)",
                "format": "int64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "moved_lessons",
              "notified_members",
              "removed_members"
            ],
            "type": "object"
          }
        ],
        "description": "Esito della modifica di un orario: l'orario, più le lezioni spostate con i loro prenotati."
      },
      "TodaySummary": {
        "properties": {
          "booked": {
            "format": "int64",
            "type": "integer"
          },
          "capacity": {
            "format": "int64",
            "type": "integer"
          },
          "occurrences": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "occurrences",
          "booked",
          "capacity"
        ],
        "type": "object"
      },
      "TrialSpot": {
        "description": "Prova nella lezione: segnaposto dello staff per chi viene a provare e non è un cliente. Occupa un posto; lo staff segna se è venuta, senza strike né no-show automatico; la nota è solo per lo staff. (Migrazione 0073.)",
        "properties": {
          "attended": {
            "description": "Presenza: vuoto = da segnare, true = presente, false = assente",
            "type": [
              "boolean",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by_name": {
            "description": "Chi l'ha aggiunta (nome e cognome)",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Nome scelto dallo staff; vuoto = \"Prova\"",
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "description": "Nota visibile solo allo staff",
            "type": [
              "string",
              "null"
            ]
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "occurrence_id",
          "created_at"
        ],
        "type": "object"
      },
      "TvDay": {
        "description": "Un giorno come lo vede il pannello: le skill della settimana dei corsi e, se c'è, il testo a mano.",
        "properties": {
          "custom": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomDay"
              },
              {
                "type": "null"
              }
            ]
          },
          "day": {
            "type": "string"
          },
          "workouts": {
            "items": {
              "$ref": "#/components/schemas/DayWorkout"
            },
            "type": "array"
          }
        },
        "required": [
          "day",
          "workouts"
        ],
        "type": "object"
      },
      "UpdateClassTypeRequest": {
        "properties": {
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "credit_cost": {
            "description": "Ingressi consumati da una prenotazione (1–20)",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_min": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_active": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "level": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "UpdateGymRequest": {
        "description": "Il logo non si cambia da qui: si carica con `POST /gyms/{gym_id}/logo`.",
        "properties": {
          "booking_animation": {
            "description": "Esercizio animato dopo la prenotazione",
            "type": [
              "boolean",
              "null"
            ]
          },
          "bookings_open_until": {
            "description": "Apertura anticipata: lezioni prenotabili subito fino a questa data (inclusa). Assente = invariata, `null` = tolta.",
            "type": [
              "string",
              "null"
            ]
          },
          "external_payment_enabled": {
            "description": "Hai già un tuo sistema di pagamento: accenderlo richiede un link (nel corpo o già salvato)",
            "type": [
              "boolean",
              "null"
            ]
          },
          "external_payment_url": {
            "description": "Link per rinnovare sul sito della palestra (http o https; senza schema si aggiunge https://). Assente = invariato, `null` o vuoto = tolto.",
            "type": [
              "string",
              "null"
            ]
          },
          "is_listed": {
            "description": "Visibile nella ricerca dell'app (false = solo codice invito)",
            "type": [
              "boolean",
              "null"
            ]
          },
          "member_docs_enabled": {
            "description": "Documenti della palestra da firmare nell'app",
            "type": [
              "boolean",
              "null"
            ]
          },
          "membership_fee_cents": {
            "description": "Importo proposto della quota (centesimi). Assente = invariato, `null` = tolto.",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "primary_color": {
            "description": "Colore primario esadecimale, es. #C6FF3D",
            "type": [
              "string",
              "null"
            ]
          },
          "qr_checkin_enabled": {
            "description": "QR del cliente per gli ingressi",
            "type": [
              "boolean",
              "null"
            ]
          },
          "reminder_minutes_before": {
            "description": "0 = nessun promemoria, massimo 1440",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "require_medical_certificate": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "require_membership_fee": {
            "description": "Quota associativa annuale obbligatoria per prenotare",
            "type": [
              "boolean",
              "null"
            ]
          },
          "show_coach_last_name": {
            "description": "Cognome del coach visibile nelle lezioni",
            "type": [
              "boolean",
              "null"
            ]
          },
          "show_prices": {
            "description": "Importi e prezzi visibili ai clienti nell'app",
            "type": [
              "boolean",
              "null"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "UpdateLocationRequest": {
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_default": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "UpdateMemberProfileRequest": {
        "properties": {
          "email": {
            "description": "Nuova email: solo per i clienti creati dallo staff della palestra (403 altrimenti), 409 se è già di un altro account. Al nuovo indirizzo arriva l'email con il link per scegliere la password ed entrare nell'app (vale 7 giorni); i link mandati prima, la password di prima e le sessioni aperte smettono di valere.",
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "description": "Stringa vuota = toglie il telefono",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "UpdateRoomRequest": {
        "properties": {
          "capacity": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "UpdateTemplateRequest": {
        "properties": {
          "booked_lessons": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BookedLessons",
                "description": "Se cambiano giorni, ora, tipo di corso o sede: cosa fare delle lezioni future che hanno già prenotati (vedi l'anteprima `change-preview`). `move` le sposta al nuovo orario e avvisa i prenotati; `keep` (default) le lascia come sono. In entrambi i casi nello stesso giorno resta una sola lezione dell'orario."
              },
              {
                "type": "null"
              }
            ]
          },
          "capacity": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "class_type_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "coach_id": {
            "description": "null per togliere il coach",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "duration_min": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_active": {
            "description": "false lo disattiva come la DELETE; true lo riattiva e rigenera le lezioni future",
            "type": [
              "boolean",
              "null"
            ]
          },
          "location_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "room_id": {
            "description": "null per togliere la sala",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "start_time": {
            "type": [
              "string",
              "null"
            ]
          },
          "valid_from": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "valid_until": {
            "description": "null per renderlo senza scadenza",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "weekdays": {
            "items": {
              "format": "int32",
              "minimum": 0,
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Waiter": {
        "description": "Chi è in coda: stessa privacy degli iscritti, più la posizione.",
        "properties": {
          "anonymous": {
            "type": "boolean"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "display_name": {
            "type": "string"
          },
          "is_me": {
            "type": "boolean"
          },
          "position": {
            "description": "1 = il prossimo a entrare",
            "format": "int64",
            "type": "integer"
          },
          "promoted": {
            "description": "Ha già un posto offerto e deve accettarlo",
            "type": "boolean"
          },
          "user_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "display_name",
          "is_me",
          "anonymous",
          "position",
          "promoted"
        ],
        "type": "object"
      },
      "WaitlistEntry": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "occurrence_id": {
            "format": "uuid",
            "type": "string"
          },
          "position": {
            "format": "int32",
            "type": "integer"
          },
          "promoted_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "occurrence_id",
          "user_id",
          "position",
          "status",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "WaitlistEntryWithUser": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "rank": {
            "format": "int64",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "user_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "user_id",
          "first_name",
          "last_name",
          "status",
          "rank",
          "created_at"
        ],
        "type": "object"
      },
      "WodTv": {
        "description": "Aspetto e contenuto della TV. Il `token` è l'indirizzo pubblico.",
        "properties": {
          "accent_color": {
            "description": "Colore d'accento (orologio, etichette), `#RRGGBB`",
            "type": "string"
          },
          "bg_color": {
            "description": "Colore di sfondo, `#RRGGBB`",
            "type": "string"
          },
          "bg_color2": {
            "description": "Secondo colore del gradiente, `#RRGGBB`",
            "type": "string"
          },
          "bg_mode": {
            "description": "solid | gradient | image",
            "type": "string"
          },
          "class_type_ids": {
            "description": "Tipi di corso mostrati; assente = tutti",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "font": {
            "description": "unbounded | manrope | serif | mono | system",
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "orientation": {
            "description": "auto | landscape | portrait",
            "type": "string"
          },
          "rotate_seconds": {
            "description": "Secondi tra un WOD e il successivo quando ce n'è più di uno (5–120)",
            "format": "int32",
            "type": "integer"
          },
          "show_clock": {
            "description": "Orologio in alto a destra",
            "type": "boolean"
          },
          "show_logo": {
            "description": "Logo della palestra accanto al nome",
            "type": "boolean"
          },
          "show_schedule": {
            "description": "Striscia con le lezioni di oggi",
            "type": "boolean"
          },
          "text_color": {
            "description": "Colore del testo, `#RRGGBB`",
            "type": "string"
          },
          "text_scale": {
            "description": "Grandezza del testo in percentuale (50–200)",
            "format": "int32",
            "type": "integer"
          },
          "token": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "gym_id",
          "token",
          "orientation",
          "font",
          "bg_mode",
          "bg_color",
          "bg_color2",
          "text_color",
          "accent_color",
          "text_scale",
          "show_clock",
          "show_schedule",
          "show_logo",
          "rotate_seconds",
          "updated_at"
        ],
        "type": "object"
      },
      "WodTvDto": {
        "properties": {
          "bg_image_url": {
            "description": "Foto di sfondo caricata, se c'è",
            "type": [
              "string",
              "null"
            ]
          },
          "class_types": {
            "description": "Tipi di corso attivi (per scegliere quali mostrare)",
            "items": {
              "$ref": "#/components/schemas/ClassTypeLite"
            },
            "type": "array"
          },
          "days": {
            "description": "Oggi e i prossimi giorni",
            "items": {
              "$ref": "#/components/schemas/TvDay"
            },
            "type": "array"
          },
          "public_url": {
            "description": "Indirizzo da aprire sulla TV",
            "type": "string"
          },
          "settings": {
            "$ref": "#/components/schemas/WodTv"
          },
          "today": {
            "type": "string"
          }
        },
        "required": [
          "settings",
          "public_url",
          "today",
          "days",
          "class_types"
        ],
        "type": "object"
      },
      "WodTvSettingsRequest": {
        "properties": {
          "accent_color": {
            "description": "Colore d'accento (orologio, etichette), `#RRGGBB`",
            "type": "string"
          },
          "bg_color": {
            "description": "Colore di sfondo, `#RRGGBB`",
            "type": "string"
          },
          "bg_color2": {
            "description": "Secondo colore del gradiente, `#RRGGBB`",
            "type": "string"
          },
          "bg_mode": {
            "description": "solid | gradient | image",
            "type": "string"
          },
          "class_type_ids": {
            "description": "Tipi di corso da mostrare; assente o vuoto = tutti",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "font": {
            "description": "unbounded | manrope | serif | mono | system",
            "type": "string"
          },
          "orientation": {
            "description": "auto | landscape | portrait",
            "type": "string"
          },
          "rotate_seconds": {
            "description": "Secondi tra un corso e l'altro, 5–120",
            "format": "int32",
            "type": "integer"
          },
          "show_clock": {
            "description": "Orologio in alto a destra",
            "type": "boolean"
          },
          "show_logo": {
            "description": "Logo della palestra accanto al nome",
            "type": "boolean"
          },
          "show_schedule": {
            "description": "Striscia con le lezioni di oggi",
            "type": "boolean"
          },
          "text_color": {
            "description": "Colore del testo, `#RRGGBB`",
            "type": "string"
          },
          "text_scale": {
            "description": "Grandezza del testo in percentuale, 50–200",
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "orientation",
          "font",
          "bg_mode",
          "bg_color",
          "bg_color2",
          "text_color",
          "accent_color",
          "text_scale",
          "show_clock",
          "show_schedule",
          "show_logo",
          "rotate_seconds"
        ],
        "type": "object"
      },
      "Workout": {
        "description": "Cosa si fa in un giorno per un tipo di corso: condivisa da tutte le lezioni di quel corso in quel giorno (nel fuso della palestra).",
        "properties": {
          "animation": {
            "description": "Animazione dell'esercizio scelta a mano per la skill del giorno: assente = dal testo, `none` = nessuna",
            "type": [
              "string",
              "null"
            ]
          },
          "class_type_id": {
            "format": "uuid",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "day": {
            "format": "date",
            "type": "string"
          },
          "gym_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "gym_id",
          "class_type_id",
          "day",
          "title",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "WorkoutItem": {
        "description": "Una skill del giorno da salvare; titolo vuoto = la toglie.",
        "properties": {
          "animation": {
            "description": "Animazione dell'esercizio nell'app: assente = resta quella di prima, `auto` = dal testo, `none` = nessuna, altrimenti il nome dell'esercizio (es. `deadlift`)",
            "type": [
              "string",
              "null"
            ]
          },
          "class_type_id": {
            "format": "uuid",
            "type": "string"
          },
          "day": {
            "example": "2026-10-20",
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "day",
          "class_type_id",
          "title"
        ],
        "type": "object"
      },
      "WorkoutPatch": {
        "properties": {
          "ranking_mode": {
            "description": "positions | points_table | raw_sum",
            "type": [
              "string",
              "null"
            ]
          },
          "score_type": {
            "description": "time | reps | load | distance | calories | points",
            "type": [
              "string",
              "null"
            ]
          },
          "sort": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "tiebreak_type": {
            "description": "time | reps | load | distance | calories | points (null = nessuno)",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "WorkoutResult": {
        "properties": {
          "contribution": {
            "description": "Punti o posizione usati per l'overall",
            "format": "double",
            "type": "number"
          },
          "rank": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "scaled": {
            "type": "boolean"
          },
          "tiebreak": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "value": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "workout_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "workout_id",
          "scaled",
          "contribution"
        ],
        "type": "object"
      },
      "WorkoutsRequest": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WorkoutItem"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiKey": {
        "bearerFormat": "bx_live_…",
        "description": "Chiave API della palestra, creata dal pannello (Impostazioni → Box API). Lo scope accanto al lucchetto è l'id dell'API da concedere alla chiave.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {
      "email": "info@boxly.run",
      "name": "Boxly",
      "url": "https://boxly.run/api.html"
    },
    "description": "Box API: le API del pannello Boxly che una palestra può aprire ai propri sistemi (script, Zapier, Make, n8n, gestionali, tornelli). L'accesso lo attiva Boxly per la singola palestra; il titolare crea le chiavi dal pannello scegliendo scadenza e, una per una, le API permesse. Autenticazione: `Authorization: Bearer bx_live_…`. La chiave vale solo per la propria palestra (`gym_id` nel percorso): un altro `gym_id` risponde 403. Errori sempre in JSON `{\"error\": \"<codice>\", \"message\": \"<testo>\"}` con `message` nella lingua di `Accept-Language` (it, en, fr); `missing_scope` = API non concessa alla chiave, `api_disabled` = accesso spento da Boxly. Limite: 60 chiamate al minuto in totale per palestra, condivise da tutte le chiavi; oltre, 429 `too_many_requests`.",
    "termsOfService": "https://boxly.run/palestre-termini.html",
    "title": "Boxly · Box API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/gyms/{gym_id}": {
      "get": {
        "description": "Leggere i dati della palestra",
        "operationId": "get_gym",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GymDto"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "get_gym"
            ]
          }
        ],
        "summary": "Leggere i dati della palestra",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Read the gym's data",
          "fr": "Lire les données de la salle",
          "it": "Leggere i dati della palestra"
        }
      },
      "patch": {
        "description": "Modificare i dati e le impostazioni della palestra",
        "operationId": "update_gym",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateGymRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GymDto"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_gym"
            ]
          }
        ],
        "summary": "Modificare i dati e le impostazioni della palestra",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Update the gym's data and settings",
          "fr": "Modifier les données et réglages de la salle",
          "it": "Modificare i dati e le impostazioni della palestra"
        }
      }
    },
    "/gyms/{gym_id}/booking-policies": {
      "get": {
        "description": "Leggere le regole di prenotazione",
        "operationId": "list_policies",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PolicyRow"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_policies"
            ]
          }
        ],
        "summary": "Leggere le regole di prenotazione",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Read booking rules",
          "fr": "Lire les règles de réservation",
          "it": "Leggere le regole di prenotazione"
        }
      },
      "put": {
        "description": "Creare o modificare una regola di prenotazione",
        "operationId": "upsert_policy",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyRow"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upsert_policy"
            ]
          }
        ],
        "summary": "Creare o modificare una regola di prenotazione",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Create or update a booking rule",
          "fr": "Créer ou modifier une règle de réservation",
          "it": "Creare o modificare una regola di prenotazione"
        }
      }
    },
    "/gyms/{gym_id}/booking-policies/{policy_id}": {
      "delete": {
        "description": "Eliminare una regola di prenotazione",
        "operationId": "delete_policy",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_policy"
            ]
          }
        ],
        "summary": "Eliminare una regola di prenotazione",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Delete a booking rule",
          "fr": "Supprimer une règle de réservation",
          "it": "Eliminare una regola di prenotazione"
        }
      }
    },
    "/gyms/{gym_id}/broadcast": {
      "post": {
        "description": "Notifica a tutti i clienti",
        "operationId": "broadcast",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BroadcastRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BroadcastResponse"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "broadcast"
            ]
          }
        ],
        "summary": "Notifica a tutti i clienti",
        "tags": [
          "communications"
        ],
        "x-area-label": {
          "en": "Communications",
          "fr": "Communications",
          "it": "Comunicazioni"
        },
        "x-description": {
          "en": "Notify all members",
          "fr": "Notifier tous les membres",
          "it": "Notifica a tutti i clienti"
        }
      }
    },
    "/gyms/{gym_id}/checkin": {
      "post": {
        "description": "Check-in all'ingresso con il QR del cliente (tornelli e lettori)",
        "operationId": "checkin",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckinRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckinResponse"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "checkin"
            ]
          }
        ],
        "summary": "Check-in all'ingresso con il QR del cliente (tornelli e lettori)",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Entrance check-in with the member's QR (turnstiles and readers)",
          "fr": "Check-in à l'entrée avec le QR du membre (tourniquets et lecteurs)",
          "it": "Check-in all'ingresso con il QR del cliente (tornelli e lettori)"
        }
      }
    },
    "/gyms/{gym_id}/class-types": {
      "get": {
        "description": "Elenco dei tipi di corso",
        "operationId": "list_class_types",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_inactive",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ClassType"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_class_types"
            ]
          }
        ],
        "summary": "Elenco dei tipi di corso",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "List class types",
          "fr": "Liste des types de cours",
          "it": "Elenco dei tipi di corso"
        }
      },
      "post": {
        "description": "Creare un tipo di corso",
        "operationId": "create_class_type",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClassTypeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassType"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_class_type"
            ]
          }
        ],
        "summary": "Creare un tipo di corso",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Create a class type",
          "fr": "Créer un type de cours",
          "it": "Creare un tipo di corso"
        }
      }
    },
    "/gyms/{gym_id}/class-types/{class_type_id}": {
      "patch": {
        "description": "Modificare un tipo di corso",
        "operationId": "update_class_type",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "class_type_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClassTypeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassType"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_class_type"
            ]
          }
        ],
        "summary": "Modificare un tipo di corso",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Update a class type",
          "fr": "Modifier un type de cours",
          "it": "Modificare un tipo di corso"
        }
      }
    },
    "/gyms/{gym_id}/dashboard": {
      "get": {
        "description": "Dashboard del giorno",
        "operationId": "dashboard",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dashboard"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "dashboard"
            ]
          }
        ],
        "summary": "Dashboard del giorno",
        "tags": [
          "reports"
        ],
        "x-area-label": {
          "en": "Reports",
          "fr": "Rapports",
          "it": "Report"
        },
        "x-description": {
          "en": "Today's dashboard",
          "fr": "Tableau de bord du jour",
          "it": "Dashboard del giorno"
        }
      }
    },
    "/gyms/{gym_id}/events": {
      "get": {
        "description": "Elenco degli eventi",
        "operationId": "list_events",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventListResponse"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_events"
            ]
          }
        ],
        "summary": "Elenco degli eventi",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "List events",
          "fr": "Liste des événements",
          "it": "Elenco degli eventi"
        },
        "x-requires-events": true
      },
      "post": {
        "description": "Creare un evento",
        "operationId": "create_event",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventSummary"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_event"
            ]
          }
        ],
        "summary": "Creare un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Create an event",
          "fr": "Créer un événement",
          "it": "Creare un evento"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}": {
      "delete": {
        "description": "Eliminare un evento",
        "operationId": "delete_event",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event"
            ]
          }
        ],
        "summary": "Eliminare un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete an event",
          "fr": "Supprimer un événement",
          "it": "Eliminare un evento"
        },
        "x-requires-events": true
      },
      "get": {
        "description": "Dettaglio di un evento",
        "operationId": "get_event",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventSummary"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "get_event"
            ]
          }
        ],
        "summary": "Dettaglio di un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Event details",
          "fr": "Détail d'un événement",
          "it": "Dettaglio di un evento"
        },
        "x-requires-events": true
      },
      "patch": {
        "description": "Modificare un evento",
        "operationId": "update_event",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventSummary"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_event"
            ]
          }
        ],
        "summary": "Modificare un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Update an event",
          "fr": "Modifier un événement",
          "it": "Modificare un evento"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/accounts": {
      "get": {
        "description": "Iscritti a un evento (con partecipanti e documenti)",
        "operationId": "list_event_accounts",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AccountView"
                  },
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_event_accounts"
            ]
          }
        ],
        "summary": "Iscritti a un evento (con partecipanti e documenti)",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Event registrations (with participants and documents)",
          "fr": "Inscrits à un événement (participants et documents)",
          "it": "Iscritti a un evento (con partecipanti e documenti)"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/accounts/{aid}": {
      "delete": {
        "description": "Eliminare un'iscrizione",
        "operationId": "delete_event_account",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "aid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event_account"
            ]
          }
        ],
        "summary": "Eliminare un'iscrizione",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete a registration",
          "fr": "Supprimer une inscription",
          "it": "Eliminare un'iscrizione"
        },
        "x-requires-events": true
      },
      "patch": {
        "description": "Cambiare lo stato di un'iscrizione",
        "operationId": "set_event_account_status",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "aid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "set_event_account_status"
            ]
          }
        ],
        "summary": "Cambiare lo stato di un'iscrizione",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Change a registration's status",
          "fr": "Changer le statut d'une inscription",
          "it": "Cambiare lo stato di un'iscrizione"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/accounts/{aid}/checkin": {
      "post": {
        "description": "Check-in di un'iscrizione all'evento",
        "operationId": "event_checkin",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "aid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventCheckinRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventCheckinResult"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "event_checkin"
            ]
          }
        ],
        "summary": "Check-in di un'iscrizione all'evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Check in a registration at the event",
          "fr": "Check-in d'une inscription à l'événement",
          "it": "Check-in di un'iscrizione all'evento"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/categories": {
      "get": {
        "description": "Categorie di un evento",
        "operationId": "list_event_categories",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Category"
                  },
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_event_categories"
            ]
          }
        ],
        "summary": "Categorie di un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Event categories",
          "fr": "Catégories d'un événement",
          "it": "Categorie di un evento"
        },
        "x-requires-events": true
      },
      "post": {
        "description": "Creare una categoria",
        "operationId": "create_event_category",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CategoryPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Category"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_event_category"
            ]
          }
        ],
        "summary": "Creare una categoria",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Create a category",
          "fr": "Créer une catégorie",
          "it": "Creare una categoria"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/categories/{cid}": {
      "delete": {
        "description": "Eliminare una categoria",
        "operationId": "delete_event_category",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "cid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event_category"
            ]
          }
        ],
        "summary": "Eliminare una categoria",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete a category",
          "fr": "Supprimer une catégorie",
          "it": "Eliminare una categoria"
        },
        "x-requires-events": true
      },
      "patch": {
        "description": "Modificare una categoria",
        "operationId": "update_event_category",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "cid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CategoryPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Category"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_event_category"
            ]
          }
        ],
        "summary": "Modificare una categoria",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Update a category",
          "fr": "Modifier une catégorie",
          "it": "Modificare una categoria"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/checkin/{code}": {
      "post": {
        "description": "Check-in all'evento con il codice dell'iscritto",
        "operationId": "event_checkin_by_code",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventCheckinResult"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "event_checkin_by_code"
            ]
          }
        ],
        "summary": "Check-in all'evento con il codice dell'iscritto",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Event check-in by the participant's code",
          "fr": "Check-in à l'événement avec le code de l'inscrit",
          "it": "Check-in all'evento con il codice dell'iscritto"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/documents/{did}/file": {
      "get": {
        "description": "Scaricare il documento di un iscritto",
        "operationId": "download_event_document",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "did",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Il file"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "download_event_document"
            ]
          }
        ],
        "summary": "Scaricare il documento di un iscritto",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Download a participant's document",
          "fr": "Télécharger le document d'un inscrit",
          "it": "Scaricare il documento di un iscritto"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/documents/{did}/review": {
      "post": {
        "description": "Validare o rifiutare il documento di un iscritto",
        "operationId": "review_event_document",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "did",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentView"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "review_event_document"
            ]
          }
        ],
        "summary": "Validare o rifiutare il documento di un iscritto",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Approve or reject a participant's document",
          "fr": "Valider ou refuser le document d'un inscrit",
          "it": "Validare o rifiutare il documento di un iscritto"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/export.csv": {
      "get": {
        "description": "Esportazione CSV degli iscritti",
        "operationId": "event_export_csv",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv": {}
            },
            "description": "CSV degli iscritti"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "event_export_csv"
            ]
          }
        ],
        "summary": "Esportazione CSV degli iscritti",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "CSV export of registrations",
          "fr": "Export CSV des inscrits",
          "it": "Esportazione CSV degli iscritti"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/images": {
      "get": {
        "description": "Immagini della pagina dell'evento",
        "operationId": "list_event_images",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Image"
                  },
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_event_images"
            ]
          }
        ],
        "summary": "Immagini della pagina dell'evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Event page images",
          "fr": "Images de la page de l'événement",
          "it": "Immagini della pagina dell'evento"
        },
        "x-requires-events": true
      },
      "post": {
        "description": "Caricare un'immagine (copertina, galleria, sponsor)",
        "operationId": "upload_event_image",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {}
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Image"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upload_event_image"
            ]
          }
        ],
        "summary": "Caricare un'immagine (copertina, galleria, sponsor)",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Upload an image (cover, gallery, sponsor)",
          "fr": "Téléverser une image (couverture, galerie, sponsor)",
          "it": "Caricare un'immagine (copertina, galleria, sponsor)"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/images/{iid}": {
      "delete": {
        "description": "Eliminare un'immagine",
        "operationId": "delete_event_image",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "iid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event_image"
            ]
          }
        ],
        "summary": "Eliminare un'immagine",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete an image",
          "fr": "Supprimer une image",
          "it": "Eliminare un'immagine"
        },
        "x-requires-events": true
      },
      "patch": {
        "description": "Modificare un'immagine",
        "operationId": "update_event_image",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "iid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImagePatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Image"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_event_image"
            ]
          }
        ],
        "summary": "Modificare un'immagine",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Update an image",
          "fr": "Modifier une image",
          "it": "Modificare un'immagine"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/leaderboard": {
      "get": {
        "description": "Classifica di un evento",
        "operationId": "event_leaderboard",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CategoryLeaderboard"
                  },
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "event_leaderboard"
            ]
          }
        ],
        "summary": "Classifica di un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Event leaderboard",
          "fr": "Classement d'un événement",
          "it": "Classifica di un evento"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/links": {
      "get": {
        "description": "Link pubblici e di anteprima di un evento",
        "operationId": "event_links",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventLinks"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "event_links"
            ]
          }
        ],
        "summary": "Link pubblici e di anteprima di un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Public and preview links of an event",
          "fr": "Liens publics et d'aperçu d'un événement",
          "it": "Link pubblici e di anteprima di un evento"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/participants/{pid}": {
      "patch": {
        "description": "Nascondere o mostrare un partecipante in classifica",
        "operationId": "set_event_participant_visibility",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParticipantVisibility"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventParticipant"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "set_event_participant_visibility"
            ]
          }
        ],
        "summary": "Nascondere o mostrare un partecipante in classifica",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Hide or show a participant in the leaderboard",
          "fr": "Masquer ou afficher un participant au classement",
          "it": "Nascondere o mostrare un partecipante in classifica"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/requirements": {
      "get": {
        "description": "Requisiti documentali di un evento",
        "operationId": "list_event_requirements",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Requirement"
                  },
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_event_requirements"
            ]
          }
        ],
        "summary": "Requisiti documentali di un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Document requirements of an event",
          "fr": "Documents requis d'un événement",
          "it": "Requisiti documentali di un evento"
        },
        "x-requires-events": true
      },
      "post": {
        "description": "Creare un requisito documentale",
        "operationId": "create_event_requirement",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequirementPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_event_requirement"
            ]
          }
        ],
        "summary": "Creare un requisito documentale",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Create a document requirement",
          "fr": "Créer un document requis",
          "it": "Creare un requisito documentale"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/requirements/{rid}": {
      "delete": {
        "description": "Eliminare un requisito documentale",
        "operationId": "delete_event_requirement",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event_requirement"
            ]
          }
        ],
        "summary": "Eliminare un requisito documentale",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete a document requirement",
          "fr": "Supprimer un document requis",
          "it": "Eliminare un requisito documentale"
        },
        "x-requires-events": true
      },
      "patch": {
        "description": "Modificare un requisito documentale",
        "operationId": "update_event_requirement",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequirementPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_event_requirement"
            ]
          }
        ],
        "summary": "Modificare un requisito documentale",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Update a document requirement",
          "fr": "Modifier un document requis",
          "it": "Modificare un requisito documentale"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/requirements/{rid}/template": {
      "delete": {
        "description": "Eliminare il modello di un requisito",
        "operationId": "delete_requirement_template",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_requirement_template"
            ]
          }
        ],
        "summary": "Eliminare il modello di un requisito",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete a requirement's template",
          "fr": "Supprimer le modèle d'un document requis",
          "it": "Eliminare il modello di un requisito"
        },
        "x-requires-events": true
      },
      "get": {
        "description": "Scaricare il modello di un requisito",
        "operationId": "download_requirement_template",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Il file"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "download_requirement_template"
            ]
          }
        ],
        "summary": "Scaricare il modello di un requisito",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Download a requirement's template",
          "fr": "Télécharger le modèle d'un document requis",
          "it": "Scaricare il modello di un requisito"
        },
        "x-requires-events": true
      },
      "post": {
        "description": "Caricare il modello di un requisito (PDF)",
        "operationId": "upload_requirement_template",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {}
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upload_requirement_template"
            ]
          }
        ],
        "summary": "Caricare il modello di un requisito (PDF)",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Upload a requirement's template (PDF)",
          "fr": "Téléverser le modèle d'un document requis (PDF)",
          "it": "Caricare il modello di un requisito (PDF)"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/rules": {
      "delete": {
        "description": "Eliminare il regolamento",
        "operationId": "delete_event_rules",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event_rules"
            ]
          }
        ],
        "summary": "Eliminare il regolamento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete the rules",
          "fr": "Supprimer le règlement",
          "it": "Eliminare il regolamento"
        },
        "x-requires-events": true
      },
      "post": {
        "description": "Caricare il regolamento (PDF)",
        "operationId": "upload_event_rules",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {}
          }
        },
        "responses": {
          "204": {},
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upload_event_rules"
            ]
          }
        ],
        "summary": "Caricare il regolamento (PDF)",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Upload the rules (PDF)",
          "fr": "Téléverser le règlement (PDF)",
          "it": "Caricare il regolamento (PDF)"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/status": {
      "post": {
        "description": "Cambiare lo stato di un evento (bozza, pubblicato, chiuso, archiviato)",
        "operationId": "set_event_status",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Event"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "set_event_status"
            ]
          }
        ],
        "summary": "Cambiare lo stato di un evento (bozza, pubblicato, chiuso, archiviato)",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Change an event's status (draft, published, closed, archived)",
          "fr": "Changer le statut d'un événement",
          "it": "Cambiare lo stato di un evento (bozza, pubblicato, chiuso, archiviato)"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/workouts": {
      "get": {
        "description": "Prove (workout) e punteggi di un evento",
        "operationId": "list_event_workouts",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EventWorkout"
                  },
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_event_workouts"
            ]
          }
        ],
        "summary": "Prove (workout) e punteggi di un evento",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Event workouts and scores",
          "fr": "Épreuves et scores d'un événement",
          "it": "Prove (workout) e punteggi di un evento"
        },
        "x-requires-events": true
      },
      "post": {
        "description": "Creare una prova (workout)",
        "operationId": "create_event_workout",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkoutPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventWorkout"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_event_workout"
            ]
          }
        ],
        "summary": "Creare una prova (workout)",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Create a workout",
          "fr": "Créer une épreuve",
          "it": "Creare una prova (workout)"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/workouts/{wid}": {
      "delete": {
        "description": "Eliminare una prova",
        "operationId": "delete_event_workout",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "wid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event_workout"
            ]
          }
        ],
        "summary": "Eliminare una prova",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete a workout",
          "fr": "Supprimer une épreuve",
          "it": "Eliminare una prova"
        },
        "x-requires-events": true
      },
      "patch": {
        "description": "Modificare una prova",
        "operationId": "update_event_workout",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "wid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkoutPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventWorkout"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_event_workout"
            ]
          }
        ],
        "summary": "Modificare una prova",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Update a workout",
          "fr": "Modifier une épreuve",
          "it": "Modificare una prova"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/workouts/{wid}/scores": {
      "put": {
        "description": "Inserire o modificare un punteggio",
        "operationId": "upsert_event_score",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "wid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Score"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upsert_event_score"
            ]
          }
        ],
        "summary": "Inserire o modificare un punteggio",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Enter or update a score",
          "fr": "Saisir ou modifier un score",
          "it": "Inserire o modificare un punteggio"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/events/{id}/workouts/{wid}/scores/{aid}": {
      "delete": {
        "description": "Cancellare un punteggio",
        "operationId": "delete_event_score",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "wid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "aid",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_event_score"
            ]
          }
        ],
        "summary": "Cancellare un punteggio",
        "tags": [
          "events"
        ],
        "x-area-label": {
          "en": "Events and competitions",
          "fr": "Événements",
          "it": "Eventi e gare"
        },
        "x-description": {
          "en": "Delete a score",
          "fr": "Supprimer un score",
          "it": "Cancellare un punteggio"
        },
        "x-requires-events": true
      }
    },
    "/gyms/{gym_id}/invite-code": {
      "post": {
        "description": "Rigenerare il codice invito",
        "operationId": "rotate_invite_code",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GymDto"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "rotate_invite_code"
            ]
          }
        ],
        "summary": "Rigenerare il codice invito",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Regenerate the invite code",
          "fr": "Régénérer le code d'invitation",
          "it": "Rigenerare il codice invito"
        }
      }
    },
    "/gyms/{gym_id}/join-requests": {
      "get": {
        "description": "Richieste di iscrizione in attesa",
        "operationId": "list_join_requests",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/JoinRequestForStaff"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_join_requests"
            ]
          }
        ],
        "summary": "Richieste di iscrizione in attesa",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Pending join requests",
          "fr": "Demandes d'adhésion en attente",
          "it": "Richieste di iscrizione in attesa"
        }
      }
    },
    "/gyms/{gym_id}/join-requests/{request_id}/approve": {
      "post": {
        "description": "Approvare una richiesta di iscrizione",
        "operationId": "approve_join_request",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "approve_join_request"
            ]
          }
        ],
        "summary": "Approvare una richiesta di iscrizione",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Approve a join request",
          "fr": "Approuver une demande d'adhésion",
          "it": "Approvare una richiesta di iscrizione"
        }
      }
    },
    "/gyms/{gym_id}/join-requests/{request_id}/reject": {
      "post": {
        "description": "Rifiutare una richiesta di iscrizione",
        "operationId": "reject_join_request",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "reject_join_request"
            ]
          }
        ],
        "summary": "Rifiutare una richiesta di iscrizione",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Reject a join request",
          "fr": "Refuser une demande d'adhésion",
          "it": "Rifiutare una richiesta di iscrizione"
        }
      }
    },
    "/gyms/{gym_id}/locations": {
      "get": {
        "description": "Elenco delle sedi",
        "operationId": "list_locations",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Location"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_locations"
            ]
          }
        ],
        "summary": "Elenco delle sedi",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "List locations",
          "fr": "Liste des sites",
          "it": "Elenco delle sedi"
        }
      },
      "post": {
        "description": "Creare una sede",
        "operationId": "create_location",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Location"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_location"
            ]
          }
        ],
        "summary": "Creare una sede",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Create a location",
          "fr": "Créer un site",
          "it": "Creare una sede"
        }
      }
    },
    "/gyms/{gym_id}/locations/{location_id}": {
      "delete": {
        "description": "Eliminare una sede",
        "operationId": "delete_location",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "location_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_location"
            ]
          }
        ],
        "summary": "Eliminare una sede",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Delete a location",
          "fr": "Supprimer un site",
          "it": "Eliminare una sede"
        }
      },
      "patch": {
        "description": "Modificare una sede",
        "operationId": "update_location",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "location_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Location"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_location"
            ]
          }
        ],
        "summary": "Modificare una sede",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Update a location",
          "fr": "Modifier un site",
          "it": "Modificare una sede"
        }
      }
    },
    "/gyms/{gym_id}/locations/{location_id}/rooms": {
      "post": {
        "description": "Creare una sala in una sede",
        "operationId": "create_room",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "location_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoomRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Room"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_room"
            ]
          }
        ],
        "summary": "Creare una sala in una sede",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Create a room in a location",
          "fr": "Créer un espace dans un site",
          "it": "Creare una sala in una sede"
        }
      }
    },
    "/gyms/{gym_id}/logo": {
      "delete": {
        "description": "Togliere il logo della palestra",
        "operationId": "delete_gym_logo",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GymDto"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_gym_logo"
            ]
          }
        ],
        "summary": "Togliere il logo della palestra",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Remove the gym's logo",
          "fr": "Supprimer le logo de la salle",
          "it": "Togliere il logo della palestra"
        }
      },
      "post": {
        "description": "Caricare il logo della palestra (multipart, campo file: PNG, JPG o WebP, massimo 1 MB)",
        "operationId": "upload_gym_logo",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {}
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GymDto"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upload_gym_logo"
            ]
          }
        ],
        "summary": "Caricare il logo della palestra (multipart, campo file: PNG, JPG o WebP, massimo 1 MB)",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Upload the gym's logo (multipart, field file: PNG, JPG or WebP, up to 1 MB)",
          "fr": "Téléverser le logo de la salle (multipart, champ file : PNG, JPG ou WebP, 1 Mo maximum)",
          "it": "Caricare il logo della palestra (multipart, campo file: PNG, JPG o WebP, massimo 1 MB)"
        }
      }
    },
    "/gyms/{gym_id}/members": {
      "get": {
        "description": "Elenco dei clienti e dello staff",
        "operationId": "list_members",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Member"
                  },
                  "type": "array"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_members"
            ]
          }
        ],
        "summary": "Elenco dei clienti e dello staff",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "List members and staff",
          "fr": "Liste des membres et de l'équipe",
          "it": "Elenco dei clienti e dello staff"
        }
      },
      "post": {
        "description": "Creare un cliente (con o senza email)",
        "operationId": "create_member",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_member"
            ]
          }
        ],
        "summary": "Creare un cliente (con o senza email)",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Create a member (with or without email)",
          "fr": "Créer un membre (avec ou sans e-mail)",
          "it": "Creare un cliente (con o senza email)"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}": {
      "delete": {
        "description": "Eliminare l'account di un cliente iscritto solo a questa palestra (irreversibile: prenotazioni future annullate, pagamenti e presenze restano senza nome)",
        "operationId": "delete_member",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_member"
            ]
          }
        ],
        "summary": "Eliminare l'account di un cliente iscritto solo a questa palestra (irreversibile: prenotazioni future annullate, pagamenti e presenze restano senza nome)",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Delete the account of a member who belongs only to this gym (cannot be undone: future bookings cancelled, payments and attendance kept without the name)",
          "fr": "Supprimer le compte d'un membre inscrit uniquement dans cette salle (irréversible : réservations futures annulées, paiements et présences conservés sans le nom)",
          "it": "Eliminare l'account di un cliente iscritto solo a questa palestra (irreversibile: prenotazioni future annullate, pagamenti e presenze restano senza nome)"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/access-link": {
      "post": {
        "description": "Mandare a un cliente l'email per scegliere la password ed entrare nell'app",
        "operationId": "send_member_access_link",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": [
              "send_member_access_link"
            ]
          }
        ],
        "summary": "Mandare a un cliente l'email per scegliere la password ed entrare nell'app",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Email a member the link to choose a password and sign in to the app",
          "fr": "Envoyer à un membre l'e-mail pour choisir son mot de passe et se connecter à l'app",
          "it": "Mandare a un cliente l'email per scegliere la password ed entrare nell'app"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/avatar": {
      "delete": {
        "description": "Togliere la foto di un cliente iscritto solo a questa palestra",
        "operationId": "delete_member_avatar",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_member_avatar"
            ]
          }
        ],
        "summary": "Togliere la foto di un cliente iscritto solo a questa palestra",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Remove the photo of a member who belongs only to this gym",
          "fr": "Supprimer la photo d'un membre inscrit uniquement dans cette salle",
          "it": "Togliere la foto di un cliente iscritto solo a questa palestra"
        }
      },
      "post": {
        "description": "Caricare la foto di un cliente iscritto solo a questa palestra (JPG o PNG)",
        "operationId": "upload_member_avatar",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {}
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upload_member_avatar"
            ]
          }
        ],
        "summary": "Caricare la foto di un cliente iscritto solo a questa palestra (JPG o PNG)",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Upload the photo of a member who belongs only to this gym (JPG or PNG)",
          "fr": "Téléverser la photo d'un membre inscrit uniquement dans cette salle (JPG ou PNG)",
          "it": "Caricare la foto di un cliente iscritto solo a questa palestra (JPG o PNG)"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/bookings": {
      "get": {
        "description": "Storico prenotazioni e presenze di un cliente",
        "operationId": "member_bookings",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MyBooking"
                  },
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "member_bookings"
            ]
          }
        ],
        "summary": "Storico prenotazioni e presenze di un cliente",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "A member's booking and attendance history",
          "fr": "Historique des réservations et présences d'un membre",
          "it": "Storico prenotazioni e presenze di un cliente"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/membership-fees": {
      "get": {
        "description": "Quote associative di un cliente",
        "operationId": "list_membership_fees",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MembershipFee"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_membership_fees"
            ]
          }
        ],
        "summary": "Quote associative di un cliente",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "A member's membership fees",
          "fr": "Cotisations d'un membre",
          "it": "Quote associative di un cliente"
        }
      },
      "post": {
        "description": "Registrare la quota associativa di un cliente",
        "operationId": "create_membership_fee",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipFeeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipFeeResponse"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_membership_fee"
            ]
          }
        ],
        "summary": "Registrare la quota associativa di un cliente",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "Record a member's membership fee",
          "fr": "Enregistrer la cotisation d'un membre",
          "it": "Registrare la quota associativa di un cliente"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/membership-fees/{fee_id}": {
      "delete": {
        "description": "Cancellare una quota associativa",
        "operationId": "delete_membership_fee",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "fee_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_membership_fee"
            ]
          }
        ],
        "summary": "Cancellare una quota associativa",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "Delete a membership fee",
          "fr": "Supprimer une cotisation",
          "it": "Cancellare una quota associativa"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/memberships": {
      "get": {
        "description": "Abbonamenti di un cliente",
        "operationId": "list_memberships",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MembershipView"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_memberships"
            ]
          }
        ],
        "summary": "Abbonamenti di un cliente",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "A member's memberships",
          "fr": "Abonnements d'un membre",
          "it": "Abbonamenti di un cliente"
        }
      },
      "post": {
        "description": "Assegnare un abbonamento (con pagamento facoltativo)",
        "operationId": "create_membership",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipResponse"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_membership"
            ]
          }
        ],
        "summary": "Assegnare un abbonamento (con pagamento facoltativo)",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "Assign a membership (optional payment)",
          "fr": "Attribuer un abonnement (paiement facultatif)",
          "it": "Assegnare un abbonamento (con pagamento facoltativo)"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/memberships/{membership_id}/freeze": {
      "post": {
        "description": "Congelare un abbonamento",
        "operationId": "freeze_membership",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "membership_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipView"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "freeze_membership"
            ]
          }
        ],
        "summary": "Congelare un abbonamento",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "Freeze a membership",
          "fr": "Geler un abonnement",
          "it": "Congelare un abbonamento"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/memberships/{membership_id}/ledger": {
      "get": {
        "description": "Movimenti degli ingressi di un abbonamento",
        "operationId": "membership_ledger",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "membership_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/LedgerEntry"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "membership_ledger"
            ]
          }
        ],
        "summary": "Movimenti degli ingressi di un abbonamento",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "Credit movements of a membership",
          "fr": "Mouvements des entrées d'un abonnement",
          "it": "Movimenti degli ingressi di un abbonamento"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/memberships/{membership_id}/unfreeze": {
      "post": {
        "description": "Scongelare un abbonamento",
        "operationId": "unfreeze_membership",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "membership_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipView"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "unfreeze_membership"
            ]
          }
        ],
        "summary": "Scongelare un abbonamento",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "Unfreeze a membership",
          "fr": "Dégeler un abonnement",
          "it": "Scongelare un abbonamento"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/message": {
      "post": {
        "description": "Messaggio a un cliente",
        "operationId": "message_member",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BroadcastRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BroadcastResponse"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "message_member"
            ]
          }
        ],
        "summary": "Messaggio a un cliente",
        "tags": [
          "communications"
        ],
        "x-area-label": {
          "en": "Communications",
          "fr": "Communications",
          "it": "Comunicazioni"
        },
        "x-description": {
          "en": "Message a member",
          "fr": "Envoyer un message à un membre",
          "it": "Messaggio a un cliente"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/payments": {
      "post": {
        "description": "Registrare un pagamento",
        "operationId": "create_payment",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Payment"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_payment"
            ]
          }
        ],
        "summary": "Registrare un pagamento",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "Record a payment",
          "fr": "Enregistrer un paiement",
          "it": "Registrare un pagamento"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/profile": {
      "patch": {
        "description": "Modificare nome, cognome, telefono ed email (se l'ha creato la palestra) di un cliente iscritto solo a questa palestra",
        "operationId": "update_member_profile",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMemberProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_member_profile"
            ]
          }
        ],
        "summary": "Modificare nome, cognome, telefono ed email (se l'ha creato la palestra) di un cliente iscritto solo a questa palestra",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Update the name, phone and email (if the gym created the account) of a member who belongs only to this gym",
          "fr": "Modifier le nom, le téléphone et l'e-mail (si la salle a créé le compte) d'un membre inscrit uniquement dans cette salle",
          "it": "Modificare nome, cognome, telefono ed email (se l'ha creato la palestra) di un cliente iscritto solo a questa palestra"
        }
      }
    },
    "/gyms/{gym_id}/members/{user_id}/unblock": {
      "post": {
        "description": "Sbloccare un cliente bloccato per assenze",
        "operationId": "unblock_member",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "unblock_member"
            ]
          }
        ],
        "summary": "Sbloccare un cliente bloccato per assenze",
        "tags": [
          "members"
        ],
        "x-area-label": {
          "en": "Members",
          "fr": "Membres",
          "it": "Clienti"
        },
        "x-description": {
          "en": "Unblock a member blocked for no-shows",
          "fr": "Débloquer un membre bloqué pour absences",
          "it": "Sbloccare un cliente bloccato per assenze"
        }
      }
    },
    "/gyms/{gym_id}/payments": {
      "get": {
        "description": "Elenco dei pagamenti in un periodo (anche CSV)",
        "operationId": "list_payments",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Inizio del periodo (incluso): data YYYY-MM-DD, cioè la mezzanotte nel fuso della palestra, o RFC 3339 (default: 365 giorni fa)",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Fine del periodo (esclusa): data YYYY-MM-DD o RFC 3339 (default: fra 24 ore). Un mese intero: from=2026-10-01&to=2026-11-01",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Solo i pagamenti di questo cliente",
            "in": "query",
            "name": "user_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "json (default) | csv",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PaymentListItem"
                  },
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_payments"
            ]
          }
        ],
        "summary": "Elenco dei pagamenti in un periodo (anche CSV)",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "List payments in a period (CSV too)",
          "fr": "Liste des paiements sur une période (CSV aussi)",
          "it": "Elenco dei pagamenti in un periodo (anche CSV)"
        }
      }
    },
    "/gyms/{gym_id}/plans": {
      "get": {
        "description": "Elenco dei piani di abbonamento",
        "operationId": "list_plans",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_inactive",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Plan"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_plans"
            ]
          }
        ],
        "summary": "Elenco dei piani di abbonamento",
        "tags": [
          "memberships"
        ],
        "x-area-label": {
          "en": "Memberships and payments",
          "fr": "Abonnements et paiements",
          "it": "Abbonamenti e pagamenti"
        },
        "x-description": {
          "en": "List membership plans",
          "fr": "Liste des formules d'abonnement",
          "it": "Elenco dei piani di abbonamento"
        }
      }
    },
    "/gyms/{gym_id}/pt/sessions": {
      "get": {
        "description": "Elenco delle sedute personal con coach, cliente, stato, pacchetto e prezzo",
        "operationId": "list_pt_sessions",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ISO 8601, default ora",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ISO 8601, default +7 giorni",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Solo le sedute di questo coach",
            "in": "query",
            "name": "coach_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Solo le sedute di questo cliente",
            "in": "query",
            "name": "user_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Solo questi stati, separati da virgola (es. done,no_show)",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PtSession"
                  },
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_pt_sessions"
            ]
          }
        ],
        "summary": "Elenco delle sedute personal con coach, cliente, stato, pacchetto e prezzo",
        "tags": [
          "personal_training"
        ],
        "x-area-label": {
          "en": "Personal trainer",
          "fr": "Personal trainer",
          "it": "Personal trainer"
        },
        "x-description": {
          "en": "List personal training sessions with coach, member, status, package and price",
          "fr": "Liste des séances de personal training avec coach, membre, statut, forfait et prix",
          "it": "Elenco delle sedute personal con coach, cliente, stato, pacchetto e prezzo"
        },
        "x-requires-pt": true
      }
    },
    "/gyms/{gym_id}/recurring": {
      "get": {
        "description": "Prenotazioni fisse ricorrenti",
        "operationId": "list_recurring",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "template_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "user_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RecurringBooking"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_recurring"
            ]
          }
        ],
        "summary": "Prenotazioni fisse ricorrenti",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Recurring bookings",
          "fr": "Réservations fixes récurrentes",
          "it": "Prenotazioni fisse ricorrenti"
        }
      }
    },
    "/gyms/{gym_id}/reports/attendance": {
      "get": {
        "description": "Report presenze (anche CSV)",
        "operationId": "report_attendance",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "json (default) | csv",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AttendanceRow"
                  },
                  "type": "array"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "report_attendance"
            ]
          }
        ],
        "summary": "Report presenze (anche CSV)",
        "tags": [
          "reports"
        ],
        "x-area-label": {
          "en": "Reports",
          "fr": "Rapports",
          "it": "Report"
        },
        "x-description": {
          "en": "Attendance report (also CSV)",
          "fr": "Rapport de présences (aussi en CSV)",
          "it": "Report presenze (anche CSV)"
        }
      }
    },
    "/gyms/{gym_id}/reports/coach-hours": {
      "get": {
        "description": "Ore lavorate dai coach: lezioni e sedute PT già finite, riepilogo per coach (anche CSV)",
        "operationId": "report_coach_hours",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Inizio del periodo (incluso): data YYYY-MM-DD, cioè la mezzanotte nel fuso della palestra, o RFC 3339 (default: 30 giorni prima di `to`)",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Fine del periodo (esclusa): data YYYY-MM-DD o RFC 3339 (default: adesso; al massimo 2 anni dopo `from`). Un mese intero: from=2026-10-01&to=2026-11-01",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Solo le lezioni e le sedute di questo coach",
            "in": "query",
            "name": "coach_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "json (default) | csv",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoachHoursReport"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "report_coach_hours"
            ]
          }
        ],
        "summary": "Ore lavorate dai coach: lezioni e sedute PT già finite, riepilogo per coach (anche CSV)",
        "tags": [
          "reports"
        ],
        "x-area-label": {
          "en": "Reports",
          "fr": "Rapports",
          "it": "Report"
        },
        "x-description": {
          "en": "Hours worked by coaches: finished classes and PT sessions, summary per coach (also CSV)",
          "fr": "Heures travaillées par les coachs : cours et séances PT terminés, récapitulatif par coach (aussi en CSV)",
          "it": "Ore lavorate dai coach: lezioni e sedute PT già finite, riepilogo per coach (anche CSV)"
        }
      }
    },
    "/gyms/{gym_id}/reports/inactive": {
      "get": {
        "description": "Clienti inattivi (anche CSV)",
        "operationId": "report_inactive",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "description": "json (default) | csv",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/InactiveMember"
                  },
                  "type": "array"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "report_inactive"
            ]
          }
        ],
        "summary": "Clienti inattivi (anche CSV)",
        "tags": [
          "reports"
        ],
        "x-area-label": {
          "en": "Reports",
          "fr": "Rapports",
          "it": "Report"
        },
        "x-description": {
          "en": "Inactive members (also CSV)",
          "fr": "Membres inactifs (aussi en CSV)",
          "it": "Clienti inattivi (anche CSV)"
        }
      }
    },
    "/gyms/{gym_id}/reports/occupancy": {
      "get": {
        "description": "Report occupazione (anche CSV)",
        "operationId": "report_occupancy",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "class_type | coach | weekday | hour",
            "in": "query",
            "name": "by",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "json (default) | csv",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OccupancyRow"
                  },
                  "type": "array"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "report_occupancy"
            ]
          }
        ],
        "summary": "Report occupazione (anche CSV)",
        "tags": [
          "reports"
        ],
        "x-area-label": {
          "en": "Reports",
          "fr": "Rapports",
          "it": "Report"
        },
        "x-description": {
          "en": "Occupancy report (also CSV)",
          "fr": "Rapport d'occupation (aussi en CSV)",
          "it": "Report occupazione (anche CSV)"
        }
      }
    },
    "/gyms/{gym_id}/rooms": {
      "get": {
        "description": "Elenco delle sale",
        "operationId": "list_rooms",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Room"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_rooms"
            ]
          }
        ],
        "summary": "Elenco delle sale",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "List rooms",
          "fr": "Liste des espaces",
          "it": "Elenco delle sale"
        }
      }
    },
    "/gyms/{gym_id}/rooms/{room_id}": {
      "delete": {
        "description": "Eliminare una sala",
        "operationId": "delete_room",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "room_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_room"
            ]
          }
        ],
        "summary": "Eliminare una sala",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Delete a room",
          "fr": "Supprimer un espace",
          "it": "Eliminare una sala"
        }
      },
      "patch": {
        "description": "Modificare una sala",
        "operationId": "update_room",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "room_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRoomRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Room"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_room"
            ]
          }
        ],
        "summary": "Modificare una sala",
        "tags": [
          "gym"
        ],
        "x-area-label": {
          "en": "Gym and locations",
          "fr": "Salle et sites",
          "it": "Palestra e sedi"
        },
        "x-description": {
          "en": "Update a room",
          "fr": "Modifier un espace",
          "it": "Modificare una sala"
        }
      }
    },
    "/gyms/{gym_id}/schedule": {
      "get": {
        "description": "Calendario delle lezioni in un intervallo",
        "operationId": "list_schedule",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Inizio intervallo, RFC 3339 o data YYYY-MM-DD (default: adesso)",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Fine intervallo esclusa (default: from + 14 giorni, massimo 62)",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "location_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "class_type_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "coach_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_cancelled",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Occurrence"
                  },
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_schedule"
            ]
          }
        ],
        "summary": "Calendario delle lezioni in un intervallo",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Classes in a date range",
          "fr": "Cours sur une période",
          "it": "Calendario delle lezioni in un intervallo"
        }
      }
    },
    "/gyms/{gym_id}/schedule/{occurrence_id}": {
      "get": {
        "description": "Dettaglio di una lezione",
        "operationId": "get_occurrence",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "occurrence_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Occurrence"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "get_occurrence"
            ]
          }
        ],
        "summary": "Dettaglio di una lezione",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Class details",
          "fr": "Détail d'un cours",
          "it": "Dettaglio di una lezione"
        }
      }
    },
    "/gyms/{gym_id}/schedule/{occurrence_id}/bookings": {
      "get": {
        "description": "Iscritti e lista d'attesa di una lezione",
        "operationId": "list_occurrence_bookings",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "occurrence_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OccurrenceBookings"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_occurrence_bookings"
            ]
          }
        ],
        "summary": "Iscritti e lista d'attesa di una lezione",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Bookings and waitlist of a class",
          "fr": "Inscrits et liste d'attente d'un cours",
          "it": "Iscritti e lista d'attesa di una lezione"
        }
      },
      "post": {
        "description": "Prenotare un cliente a una lezione",
        "operationId": "book_for",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "occurrence_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookForRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookOutcome"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "book_for"
            ]
          }
        ],
        "summary": "Prenotare un cliente a una lezione",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Book a member into a class",
          "fr": "Réserver un cours pour un membre",
          "it": "Prenotare un cliente a una lezione"
        }
      }
    },
    "/gyms/{gym_id}/schedule/{occurrence_id}/bookings/{user_id}": {
      "delete": {
        "description": "Togliere un cliente da una lezione",
        "operationId": "cancel_for",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "occurrence_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "cancel_for"
            ]
          }
        ],
        "summary": "Togliere un cliente da una lezione",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Remove a member from a class",
          "fr": "Retirer un membre d'un cours",
          "it": "Togliere un cliente da una lezione"
        }
      },
      "patch": {
        "description": "Segnare presenza o assenza a una lezione",
        "operationId": "set_attendance",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "occurrence_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttendanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Booking"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "set_attendance"
            ]
          }
        ],
        "summary": "Segnare presenza o assenza a una lezione",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Mark attendance or no-show for a class",
          "fr": "Marquer la présence ou l'absence à un cours",
          "it": "Segnare presenza o assenza a una lezione"
        }
      }
    },
    "/gyms/{gym_id}/schedule/{occurrence_id}/participants": {
      "get": {
        "description": "Partecipanti di una lezione come li vede l'app",
        "operationId": "list_participants",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "occurrence_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Participants"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_participants"
            ]
          }
        ],
        "summary": "Partecipanti di una lezione come li vede l'app",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Class participants as shown in the app",
          "fr": "Participants d'un cours tels qu'affichés dans l'app",
          "it": "Partecipanti di una lezione come li vede l'app"
        }
      }
    },
    "/gyms/{gym_id}/templates": {
      "get": {
        "description": "Elenco dei template ricorrenti",
        "operationId": "list_templates",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_inactive",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ClassTemplate"
                  },
                  "type": "array"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_templates"
            ]
          }
        ],
        "summary": "Elenco dei template ricorrenti",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "List weekly templates",
          "fr": "Liste des créneaux récurrents",
          "it": "Elenco dei template ricorrenti"
        }
      },
      "post": {
        "description": "Creare un template ricorrente",
        "operationId": "create_template",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassTemplate"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_template"
            ]
          }
        ],
        "summary": "Creare un template ricorrente",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Create a weekly template",
          "fr": "Créer un créneau récurrent",
          "it": "Creare un template ricorrente"
        }
      }
    },
    "/gyms/{gym_id}/templates/{template_id}": {
      "delete": {
        "description": "Disattivare un template ricorrente (non lo elimina: smette di generare lezioni e toglie le future senza prenotati e non modificate a mano, tranne quelle con solo prenotazioni cancellate dai clienti, che restano annullate; quelle con prenotati restano attive, oppure si annullano con cancel_booked=true; lo storico resta)",
        "operationId": "delete_template",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "true = annulla anche le lezioni future che hanno già prenotati: prenotazioni liberate, ingressi restituiti, prenotati e lista d'attesa avvisati. Assente o false: restano attive in calendario",
            "in": "query",
            "name": "cancel_booked",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateDeactivation"
                }
              }
            },
            "description": "Con `cancel_booked=true`: lezioni annullate e clienti avvisati"
          },
          "204": {
            "description": "Senza `cancel_booked`: orario disattivato"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_template"
            ]
          }
        ],
        "summary": "Disattivare un template ricorrente (non lo elimina: smette di generare lezioni e toglie le future senza prenotati e non modificate a mano, tranne quelle con solo prenotazioni cancellate dai clienti, che restano annullate; quelle con prenotati restano attive, oppure si annullano con cancel_booked=true; lo storico resta)",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Deactivate a weekly template (it is not deleted: it stops generating classes and removes future classes with no bookings that were not edited by hand, except those with only bookings cancelled by members, which stay cancelled; those with bookings stay active, or are cancelled with cancel_booked=true; the history stays)",
          "fr": "Désactiver un créneau récurrent (il n'est pas supprimé : il ne génère plus de cours et retire les cours à venir sans réservation non modifiés à la main, sauf ceux avec seulement des réservations annulées par les membres, qui restent annulés ; ceux avec des réservations restent actifs, ou sont annulés avec cancel_booked=true ; l'historique reste)",
          "it": "Disattivare un template ricorrente (non lo elimina: smette di generare lezioni e toglie le future senza prenotati e non modificate a mano, tranne quelle con solo prenotazioni cancellate dai clienti, che restano annullate; quelle con prenotati restano attive, oppure si annullano con cancel_booked=true; lo storico resta)"
        }
      },
      "patch": {
        "description": "Modificare un template ricorrente (le lezioni future non modificate a mano lo seguono; quelle con prenotati cambiano giorni, ora, tipo di corso o sede solo con booked_lessons=move, e i prenotati vengono avvisati; con move e un corso o una sede nuovi esce, rimborsato, chi non è coperto dall'abbonamento)",
        "operationId": "update_template",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateUpdate"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_template"
            ]
          }
        ],
        "summary": "Modificare un template ricorrente (le lezioni future non modificate a mano lo seguono; quelle con prenotati cambiano giorni, ora, tipo di corso o sede solo con booked_lessons=move, e i prenotati vengono avvisati; con move e un corso o una sede nuovi esce, rimborsato, chi non è coperto dall'abbonamento)",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Update a weekly template (future classes not edited by hand follow it; those with bookings change days, time, class type or location only with booked_lessons=move, and the booked members are notified; with move and a new class type or location, members not covered by their membership are removed and refunded)",
          "fr": "Modifier un créneau récurrent (les cours à venir non modifiés à la main le suivent ; ceux avec des réservations ne changent de jours, d'heure, de type de cours ou de site qu'avec booked_lessons=move, et les inscrits sont prévenus ; avec move et un nouveau type de cours ou site, les membres que leur abonnement ne couvre pas sont retirés et remboursés)",
          "it": "Modificare un template ricorrente (le lezioni future non modificate a mano lo seguono; quelle con prenotati cambiano giorni, ora, tipo di corso o sede solo con booked_lessons=move, e i prenotati vengono avvisati; con move e un corso o una sede nuovi esce, rimborsato, chi non è coperto dall'abbonamento)"
        }
      }
    },
    "/gyms/{gym_id}/templates/{template_id}/change-preview": {
      "get": {
        "description": "Prima di cambiare giorni, ora, tipo di corso o sede di un template: quante lezioni future con prenotati cambierebbero (per scegliere booked_lessons), quante resterebbero come sono e quanti clienti uscirebbero con booked_lessons=move",
        "operationId": "preview_template_change",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Giorni nuovi separati da virgola, 1 = lunedì ... 7 = domenica (es. 1,3,5)",
            "in": "query",
            "name": "weekdays",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Ora nuova, HH:MM",
            "in": "query",
            "name": "start_time",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tipo di corso nuovo",
            "in": "query",
            "name": "class_type_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Sede nuova",
            "in": "query",
            "name": "location_id",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateChangePreview"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "preview_template_change"
            ]
          }
        ],
        "summary": "Prima di cambiare giorni, ora, tipo di corso o sede di un template: quante lezioni future con prenotati cambierebbero (per scegliere booked_lessons), quante resterebbero come sono e quanti clienti uscirebbero con booked_lessons=move",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Before changing the days, time, class type or location of a weekly template: how many future classes with bookings would change (to choose booked_lessons), how many would stay as they are and how many members would be removed with booked_lessons=move",
          "fr": "Avant de changer les jours, l'heure, le type de cours ou le site d'un créneau récurrent : combien de cours à venir avec des réservations changeraient (pour choisir booked_lessons), combien resteraient tels quels et combien de membres seraient retirés avec booked_lessons=move",
          "it": "Prima di cambiare giorni, ora, tipo di corso o sede di un template: quante lezioni future con prenotati cambierebbero (per scegliere booked_lessons), quante resterebbero come sono e quanti clienti uscirebbero con booked_lessons=move"
        }
      }
    },
    "/gyms/{gym_id}/templates/{template_id}/deactivation-preview": {
      "get": {
        "description": "Prima di disattivare un template: quante lezioni future hanno già prenotati",
        "operationId": "preview_template_deactivation",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeactivationPreview"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "preview_template_deactivation"
            ]
          }
        ],
        "summary": "Prima di disattivare un template: quante lezioni future hanno già prenotati",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Before deactivating a weekly template: how many future classes already have bookings",
          "fr": "Avant de désactiver un créneau récurrent : combien de cours à venir ont déjà des réservations",
          "it": "Prima di disattivare un template: quante lezioni future hanno già prenotati"
        }
      }
    },
    "/gyms/{gym_id}/templates/{template_id}/reactivation-preview": {
      "get": {
        "description": "Prima di riattivare un template: quante lezioni future saranno in calendario e da quando, quante restano annullate e quanti clienti hanno l'iscrizione fissa",
        "operationId": "preview_template_reactivation",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateReactivationPreview"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "preview_template_reactivation"
            ]
          }
        ],
        "summary": "Prima di riattivare un template: quante lezioni future saranno in calendario e da quando, quante restano annullate e quanti clienti hanno l'iscrizione fissa",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Before reactivating a weekly template: how many future classes will be in the calendar and from when, how many stay cancelled and how many members have a recurring booking",
          "fr": "Avant de réactiver un créneau récurrent : combien de cours à venir seront au planning et à partir de quand, combien restent annulés et combien de membres ont une inscription récurrente",
          "it": "Prima di riattivare un template: quante lezioni future saranno in calendario e da quando, quante restano annullate e quanti clienti hanno l'iscrizione fissa"
        }
      }
    },
    "/gyms/{gym_id}/templates/{template_id}/recurring": {
      "post": {
        "description": "Creare una prenotazione fissa su un template",
        "operationId": "create_recurring",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurringBooking"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "create_recurring"
            ]
          }
        ],
        "summary": "Creare una prenotazione fissa su un template",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Create a recurring booking on a template",
          "fr": "Créer une réservation fixe sur un créneau",
          "it": "Creare una prenotazione fissa su un template"
        }
      }
    },
    "/gyms/{gym_id}/templates/{template_id}/recurring/{user_id}": {
      "delete": {
        "description": "Togliere una prenotazione fissa",
        "operationId": "delete_recurring",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {},
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_recurring"
            ]
          }
        ],
        "summary": "Togliere una prenotazione fissa",
        "tags": [
          "bookings"
        ],
        "x-area-label": {
          "en": "Bookings and attendance",
          "fr": "Réservations et présences",
          "it": "Prenotazioni e presenze"
        },
        "x-description": {
          "en": "Remove a recurring booking",
          "fr": "Supprimer une réservation fixe",
          "it": "Togliere una prenotazione fissa"
        }
      }
    },
    "/gyms/{gym_id}/wod-tv": {
      "get": {
        "description": "Leggere la Wod TV: aspetto, indirizzo e skill dei prossimi giorni",
        "operationId": "get_wod_tv",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WodTvDto"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "get_wod_tv"
            ]
          }
        ],
        "summary": "Leggere la Wod TV: aspetto, indirizzo e skill dei prossimi giorni",
        "tags": [
          "wod_tv"
        ],
        "x-area-label": {
          "en": "Wod TV",
          "fr": "Wod TV",
          "it": "Wod TV"
        },
        "x-description": {
          "en": "Read the Wod TV: look, address and skills of the coming days",
          "fr": "Lire la Wod TV : apparence, adresse et skills des prochains jours",
          "it": "Leggere la Wod TV: aspetto, indirizzo e skill dei prossimi giorni"
        },
        "x-requires-wod-tv": true
      },
      "put": {
        "description": "Cambiare l'aspetto della Wod TV",
        "operationId": "update_wod_tv",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WodTvSettingsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WodTvDto"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "update_wod_tv"
            ]
          }
        ],
        "summary": "Cambiare l'aspetto della Wod TV",
        "tags": [
          "wod_tv"
        ],
        "x-area-label": {
          "en": "Wod TV",
          "fr": "Wod TV",
          "it": "Wod TV"
        },
        "x-description": {
          "en": "Change the Wod TV look",
          "fr": "Modifier l'apparence de la Wod TV",
          "it": "Cambiare l'aspetto della Wod TV"
        },
        "x-requires-wod-tv": true
      }
    },
    "/gyms/{gym_id}/wod-tv/background": {
      "delete": {
        "description": "Togliere la foto di sfondo della Wod TV",
        "operationId": "delete_wod_tv_background",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WodTvDto"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "delete_wod_tv_background"
            ]
          }
        ],
        "summary": "Togliere la foto di sfondo della Wod TV",
        "tags": [
          "wod_tv"
        ],
        "x-area-label": {
          "en": "Wod TV",
          "fr": "Wod TV",
          "it": "Wod TV"
        },
        "x-description": {
          "en": "Remove the Wod TV background photo",
          "fr": "Supprimer la photo de fond de la Wod TV",
          "it": "Togliere la foto di sfondo della Wod TV"
        },
        "x-requires-wod-tv": true
      },
      "post": {
        "description": "Caricare la foto di sfondo della Wod TV",
        "operationId": "upload_wod_tv_background",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {}
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WodTvDto"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "upload_wod_tv_background"
            ]
          }
        ],
        "summary": "Caricare la foto di sfondo della Wod TV",
        "tags": [
          "wod_tv"
        ],
        "x-area-label": {
          "en": "Wod TV",
          "fr": "Wod TV",
          "it": "Wod TV"
        },
        "x-description": {
          "en": "Upload the Wod TV background photo",
          "fr": "Téléverser la photo de fond de la Wod TV",
          "it": "Caricare la foto di sfondo della Wod TV"
        },
        "x-requires-wod-tv": true
      }
    },
    "/gyms/{gym_id}/wod-tv/days/{day}": {
      "put": {
        "description": "Scrivere il testo a mano di un giorno sulla Wod TV",
        "operationId": "set_wod_tv_day",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Giorno `YYYY-MM-DD` nel fuso della palestra",
            "in": "path",
            "name": "day",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomDayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WodTvDto"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "set_wod_tv_day"
            ]
          }
        ],
        "summary": "Scrivere il testo a mano di un giorno sulla Wod TV",
        "tags": [
          "wod_tv"
        ],
        "x-area-label": {
          "en": "Wod TV",
          "fr": "Wod TV",
          "it": "Wod TV"
        },
        "x-description": {
          "en": "Write a day's custom text on the Wod TV",
          "fr": "Écrire le texte personnalisé d'un jour sur la Wod TV",
          "it": "Scrivere il testo a mano di un giorno sulla Wod TV"
        },
        "x-requires-wod-tv": true
      }
    },
    "/gyms/{gym_id}/workouts": {
      "get": {
        "description": "Leggere le skill del giorno (WOD)",
        "operationId": "list_workouts",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Workout"
                  },
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "list_workouts"
            ]
          }
        ],
        "summary": "Leggere le skill del giorno (WOD)",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Read workouts of the day (WOD)",
          "fr": "Lire les WOD du jour",
          "it": "Leggere le skill del giorno (WOD)"
        }
      },
      "put": {
        "description": "Scrivere le skill del giorno (WOD)",
        "operationId": "save_workouts",
        "parameters": [
          {
            "in": "path",
            "name": "gym_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkoutsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Workout"
                  },
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "Limite di chiamate al minuto superato per questa palestra: riprova tra poco"
          }
        },
        "security": [
          {
            "apiKey": [
              "save_workouts"
            ]
          }
        ],
        "summary": "Scrivere le skill del giorno (WOD)",
        "tags": [
          "schedule"
        ],
        "x-area-label": {
          "en": "Schedule",
          "fr": "Planning",
          "it": "Palinsesto"
        },
        "x-description": {
          "en": "Write workouts of the day (WOD)",
          "fr": "Écrire les WOD du jour",
          "it": "Scrivere le skill del giorno (WOD)"
        }
      }
    }
  },
  "servers": [
    {
      "description": "Produzione",
      "url": "https://api.boxly.run"
    }
  ],
  "tags": [
    {
      "description": "Palestra e sedi",
      "name": "gym",
      "x-label": {
        "en": "Gym and locations",
        "fr": "Salle et sites",
        "it": "Palestra e sedi"
      }
    },
    {
      "description": "Clienti",
      "name": "members",
      "x-label": {
        "en": "Members",
        "fr": "Membres",
        "it": "Clienti"
      }
    },
    {
      "description": "Abbonamenti e pagamenti",
      "name": "memberships",
      "x-label": {
        "en": "Memberships and payments",
        "fr": "Abonnements et paiements",
        "it": "Abbonamenti e pagamenti"
      }
    },
    {
      "description": "Palinsesto",
      "name": "schedule",
      "x-label": {
        "en": "Schedule",
        "fr": "Planning",
        "it": "Palinsesto"
      }
    },
    {
      "description": "Prenotazioni e presenze",
      "name": "bookings",
      "x-label": {
        "en": "Bookings and attendance",
        "fr": "Réservations et présences",
        "it": "Prenotazioni e presenze"
      }
    },
    {
      "description": "Comunicazioni",
      "name": "communications",
      "x-label": {
        "en": "Communications",
        "fr": "Communications",
        "it": "Comunicazioni"
      }
    },
    {
      "description": "Report",
      "name": "reports",
      "x-label": {
        "en": "Reports",
        "fr": "Rapports",
        "it": "Report"
      }
    },
    {
      "description": "Eventi e gare",
      "name": "events",
      "x-label": {
        "en": "Events and competitions",
        "fr": "Événements",
        "it": "Eventi e gare"
      }
    },
    {
      "description": "Wod TV",
      "name": "wod_tv",
      "x-label": {
        "en": "Wod TV",
        "fr": "Wod TV",
        "it": "Wod TV"
      }
    },
    {
      "description": "Personal trainer",
      "name": "personal_training",
      "x-label": {
        "en": "Personal trainer",
        "fr": "Personal trainer",
        "it": "Personal trainer"
      }
    }
  ]
}
