{
  "openapi": "3.1.0",
  "info": {
    "title": "Sculk customer API",
    "version": "0.28.0",
    "description": "Read your organisation's cases, bans, appeals, players, audit log, server events, detections and server status with an org API key (Authorization: Bearer sculk_…), and kick, ban or lift a ban when the key holds those permissions. Since 0.28.0 a key can also read a server config and its history, and propose a config change or an unban: a proposal is stored with its dry-run count and nothing applies until a person confirms it in the dashboard with step-up. Every answer is your organisation's only. Pages: newest first, pass `next` back as `cursor`. Conditional GETs: If-None-Match with the ETag answers 304. Outbound webhooks are set per server on the dashboard (Integrations). Guide: https://sculkac.com/docs/api"
  },
  "servers": [
    {
      "url": "https://api.sculkac.com/v1"
    }
  ],
  "paths": {
    "/api-keys": {
      "get": {
        "operationId": "getApiKeys",
        "summary": "The org's API keys, newest first, never the secret (apikeys.manage)",
        "tags": [
          "api-keys"
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "postApiKeys",
        "summary": "Make an API key; the secret is in this response only (apikeys.manage, step-up)",
        "tags": [
          "api-keys"
        ],
        "security": [
          {
            "session": []
          }
        ],
        "x-step-up": true,
        "x-csrf": true,
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreated"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api-keys/{id}/revoke": {
      "post": {
        "operationId": "postApiKeysIdRevoke",
        "summary": "Revoke a key; it stops at once (apikeys.manage)",
        "tags": [
          "api-keys"
        ],
        "security": [
          {
            "session": []
          }
        ],
        "x-csrf": true,
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKey"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/cases": {
      "get": {
        "operationId": "getApiCases",
        "summary": "Cases with an evidence summary (cases.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "detection",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.-]+$"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "$ref": "#/components/schemas/CaseStatus"
            }
          },
          {
            "in": "query",
            "name": "player",
            "schema": {
              "description": "0.23.0: player ref",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
            },
            "description": "0.23.0: player ref"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCasePage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/cases/{id}": {
      "get": {
        "operationId": "getApiCasesId",
        "summary": "One case; evidence rows need cases.evidence (cases.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCaseDetail"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/bans": {
      "get": {
        "operationId": "getApiBans",
        "summary": "Bans, imported ones included: source=import (cases.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "$ref": "#/components/schemas/ApiBanStatus"
            }
          },
          {
            "in": "query",
            "name": "detection",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.-]+$"
            }
          },
          {
            "in": "query",
            "name": "source",
            "schema": {
              "description": "0.23.0",
              "$ref": "#/components/schemas/ApiBanSource"
            },
            "description": "0.23.0"
          },
          {
            "in": "query",
            "name": "player",
            "schema": {
              "description": "0.23.0: player ref",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
            },
            "description": "0.23.0: player ref"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBanPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/appeals": {
      "get": {
        "operationId": "getApiAppeals",
        "summary": "Appeals (appeals.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "$ref": "#/components/schemas/AppealDecision"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAppealPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/players": {
      "get": {
        "operationId": "getApiPlayers",
        "summary": "Players seen, by last seen (players.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPlayerPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/players/{ref}": {
      "get": {
        "operationId": "getApiServersServerPlayersRef",
        "summary": "One player: name, sessions, cases, bans; identifier masks with players.identifiers (players.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "ref",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPlayerDetail"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/audit": {
      "get": {
        "operationId": "getApiAudit",
        "summary": "The org audit log (audit.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "action",
            "schema": {
              "description": "Exact action, or a prefix ending in `.` (e.g. `moderation.`)",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.]+$"
            },
            "description": "Exact action, or a prefix ending in `.` (e.g. `moderation.`)"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAuditPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/events": {
      "get": {
        "operationId": "getApiEvents",
        "summary": "Server events: detection observations, joins, leaves (cases.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "$ref": "#/components/schemas/ApiEventKind"
            }
          },
          {
            "in": "query",
            "name": "detection",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.-]+$"
            }
          },
          {
            "in": "query",
            "name": "player",
            "schema": {
              "description": "Player ref",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
            },
            "description": "Player ref"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEventPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/detections": {
      "get": {
        "operationId": "getApiDetections",
        "summary": "The detections catalogue (workspace.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiDetectionList"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers": {
      "get": {
        "operationId": "getApiServers",
        "summary": "Server status: online, version, mode (workspace.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiServerList"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/openapi.json": {
      "get": {
        "operationId": "getApiOpenapiJson",
        "summary": "This API as an OpenAPI 3.1 document (no key needed)",
        "tags": [
          "customer-api"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/players/{id}/kick": {
      "post": {
        "operationId": "postApiServersServerPlayersIdKick",
        "summary": "Kick (moderation.kick): the dashboard route, same signer breaker and role caps, audited as apikey:<id>",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "x-csrf": true,
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "description": "Player ref"
            },
            "required": true,
            "description": "Player ref"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KickRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommandQueued"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/players/{id}/ban": {
      "post": {
        "operationId": "postApiServersServerPlayersIdBan",
        "summary": "Ban (moderation.ban): the dashboard route, same signer breaker and role ban limit (202 BanRequested over it), audited as apikey:<id>",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "x-csrf": true,
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "description": "Player ref"
            },
            "required": true,
            "description": "Player ref"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BanRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommandQueued"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/bans/{id}/unban": {
      "post": {
        "operationId": "postApiServersServerBansIdUnban",
        "summary": "Lift a ban (moderation.unban): the dashboard route, audited as apikey:<id>",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "x-csrf": true,
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "Ban id"
            },
            "required": true,
            "description": "Ban id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnbanRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommandQueued"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/me": {
      "get": {
        "operationId": "getApiMe",
        "summary": "The calling key: name, permissions, servers, expiry; never the secret (any key permission)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeySelf"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/config": {
      "get": {
        "operationId": "getApiServersServerConfig",
        "summary": "The server config in force (config.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/config/versions": {
      "get": {
        "operationId": "getApiServersServerConfigVersions",
        "summary": "Config history, newest first, with what changed (config.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiConfigVersionList"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/proposals": {
      "get": {
        "operationId": "getApiServersServerProposals",
        "summary": "Config and unban proposals on this server (config.read). Conditional GET: send If-None-Match with the ETag to get 304",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Default: every status",
              "type": "string",
              "enum": [
                "pending",
                "applied",
                "cancelled",
                "expired",
                "undone"
              ]
            },
            "description": "Default: every status"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProposalList"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/config/proposals": {
      "post": {
        "operationId": "postApiServersServerConfigProposals",
        "summary": "Propose a config change (config.propose): stored pending with its dry-run count; nothing applies until a person confirms it with step-up",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "x-csrf": true,
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiConfigProposalRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiConfigProposalCreated"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/servers/{server}/bans/{id}/unban-proposals": {
      "post": {
        "operationId": "postApiServersServerBansIdUnbanProposals",
        "summary": "Propose lifting a ban (moderation.unban.propose): nothing is lifted until a person confirms it with step-up",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "x-csrf": true,
        "parameters": [
          {
            "in": "path",
            "name": "server",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "Ban id"
            },
            "required": true,
            "description": "Ban id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiUnbanProposalRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiUnbanProposalCreated"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/proposals/{id}/cancel": {
      "post": {
        "operationId": "postApiProposalsIdCancel",
        "summary": "Withdraw a pending proposal this key made (config.propose or moderation.unban.propose)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "x-csrf": true,
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProposalCancelled"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/org/cases": {
      "get": {
        "operationId": "getOrgCases",
        "summary": "Cases with an evidence summary (cases.read)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "deprecated": true,
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "detection",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.-]+$"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "$ref": "#/components/schemas/CaseStatus"
            }
          },
          {
            "in": "query",
            "name": "player",
            "schema": {
              "description": "0.23.0: player ref",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
            },
            "description": "0.23.0: player ref"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCasePage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/org/cases/{id}": {
      "get": {
        "operationId": "getOrgCasesId",
        "summary": "One case; evidence rows need cases.evidence (cases.read)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "deprecated": true,
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCaseDetail"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/org/bans": {
      "get": {
        "operationId": "getOrgBans",
        "summary": "Bans (cases.read)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "deprecated": true,
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "$ref": "#/components/schemas/ApiBanStatus"
            }
          },
          {
            "in": "query",
            "name": "detection",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.-]+$"
            }
          },
          {
            "in": "query",
            "name": "source",
            "schema": {
              "description": "0.23.0",
              "$ref": "#/components/schemas/ApiBanSource"
            },
            "description": "0.23.0"
          },
          {
            "in": "query",
            "name": "player",
            "schema": {
              "description": "0.23.0: player ref",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
            },
            "description": "0.23.0: player ref"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiBanPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/org/appeals": {
      "get": {
        "operationId": "getOrgAppeals",
        "summary": "Appeals (appeals.read)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "deprecated": true,
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "$ref": "#/components/schemas/AppealDecision"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAppealPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/org/players": {
      "get": {
        "operationId": "getOrgPlayers",
        "summary": "Players seen, by last seen (players.read)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "deprecated": true,
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiPlayerPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/org/audit": {
      "get": {
        "operationId": "getOrgAudit",
        "summary": "The org audit log (audit.read)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "deprecated": true,
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "action",
            "schema": {
              "description": "Exact action, or a prefix ending in `.` (e.g. `moderation.`)",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.]+$"
            },
            "description": "Exact action, or a prefix ending in `.` (e.g. `moderation.`)"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAuditPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/org/events": {
      "get": {
        "operationId": "getOrgEvents",
        "summary": "Server events: detection observations, joins, leaves (cases.read)",
        "tags": [
          "customer-api"
        ],
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "deprecated": true,
        "parameters": [
          {
            "in": "query",
            "name": "server",
            "schema": {
              "description": "Only this server",
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            },
            "description": "Only this server"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "At or after (inclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "At or after (inclusive)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Before (exclusive)",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "description": "Before (exclusive)"
          },
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "$ref": "#/components/schemas/ApiEventKind"
            }
          },
          {
            "in": "query",
            "name": "detection",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[a-z0-9_.-]+$"
            }
          },
          {
            "in": "query",
            "name": "player",
            "schema": {
              "description": "Player ref",
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
            },
            "description": "Player ref"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "The `next` of the previous page",
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "The `next` of the previous page"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Default 50",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Default 50"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEventPage"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: If-None-Match matched the ETag"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or step_up_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (also ai_not_enabled: the org owner has not accepted the AI consent text)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not found: `no_route` when no such route exists, `not_found` when the record (also for another org) does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict: version_conflict, proposal_expired, proposal_not_pending, proposal_not_applied, already_subscribed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable: action_above_cap, invalid_config, no_change, not_clean",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiKeyCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
          },
          "permissions": {
            "minItems": 1,
            "maxItems": 13,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiKeyPermission"
            }
          },
          "scopes": {
            "description": "Deprecated (0.x): use permissions",
            "minItems": 1,
            "maxItems": 2,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "moderate"
              ]
            }
          },
          "servers": {
            "description": "Limit the key to these servers; null or absent = every server",
            "anyOf": [
              {
                "minItems": 1,
                "maxItems": 50,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresInDays": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 30
                  },
                  {
                    "type": "number",
                    "const": 90
                  },
                  {
                    "type": "number",
                    "const": 365
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "ApiKeyPermission": {
        "type": "string",
        "enum": [
          "workspace.read",
          "cases.read",
          "cases.evidence",
          "players.read",
          "players.identifiers",
          "appeals.read",
          "audit.read",
          "config.read",
          "moderation.kick",
          "moderation.ban",
          "moderation.unban",
          "config.propose",
          "moderation.unban.propose"
        ]
      },
      "CaseStatus": {
        "type": "string",
        "enum": [
          "needs_review",
          "confirmed",
          "closed"
        ]
      },
      "ApiBanStatus": {
        "type": "string",
        "enum": [
          "active",
          "lifted",
          "expired"
        ]
      },
      "ApiBanSource": {
        "type": "string",
        "enum": [
          "engine",
          "staff",
          "evasion",
          "sync",
          "discord",
          "import"
        ],
        "description": "`import`: brought in with the ban import (G2.5)"
      },
      "AppealDecision": {
        "type": "string",
        "enum": [
          "open",
          "awaiting_evidence",
          "accepted",
          "overturned_fp",
          "rejected",
          "expired"
        ]
      },
      "ApiEventKind": {
        "type": "string",
        "enum": [
          "detection",
          "join",
          "leave"
        ]
      },
      "KickRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 500
          }
        },
        "required": [
          "reason"
        ]
      },
      "BanRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 500
          },
          "duration_s": {
            "description": "Temporary ban length in seconds; omit for the server's configured temp length",
            "type": "integer",
            "minimum": 60,
            "maximum": 315360000
          },
          "perm": {
            "description": "Permanent ban. Mutually exclusive with duration_s.",
            "type": "boolean"
          },
          "scope": {
            "description": "Default server. org: every server of the org (Network plan, config.write); needs perm or duration_s.",
            "$ref": "#/components/schemas/BanScope"
          }
        },
        "required": [
          "reason"
        ]
      },
      "BanScope": {
        "type": "string",
        "enum": [
          "server",
          "org"
        ]
      },
      "UnbanRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 500
          },
          "overturned": {
            "description": "The ban was wrong (not merely ended): Sculk History retracts what it published for it",
            "type": "boolean"
          }
        },
        "required": [
          "reason"
        ]
      },
      "ApiConfigProposalRequest": {
        "type": "object",
        "properties": {
          "detection": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Detection id, not name"
          },
          "preset": {
            "$ref": "#/components/schemas/Preset"
          },
          "action": {
            "$ref": "#/components/schemas/Action"
          },
          "max_action": {
            "description": "Owner ceiling for this detection; may lower, never raise, the class cap. Omit to keep the current one.",
            "$ref": "#/components/schemas/Action"
          },
          "params": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "mode": {
            "description": "Propose a mode change instead of a detection change",
            "$ref": "#/components/schemas/ServerMode"
          },
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 500,
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$",
            "description": "Why the change is proposed; shown to the person who confirms it"
          }
        },
        "required": [
          "reason"
        ]
      },
      "Preset": {
        "type": "string",
        "enum": [
          "off",
          "observe",
          "low",
          "medium",
          "high",
          "custom"
        ]
      },
      "Action": {
        "type": "string",
        "enum": [
          "none",
          "log",
          "cancel",
          "warn",
          "kick",
          "ban_temp",
          "ban_perm"
        ],
        "description": "Rung on the action ladder, lowest first"
      },
      "ServerMode": {
        "type": "string",
        "enum": [
          "learning",
          "report",
          "enforcing"
        ]
      },
      "ApiUnbanProposalRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 500,
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$"
          }
        },
        "required": [
          "reason"
        ]
      },
      "ApiKeyList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ApiKey"
        }
      },
      "ApiKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "description": "First 14 characters (`sculk_` + 8): tells keys apart, cannot be used as a key"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiKeyPermission"
            }
          },
          "servers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "null = every server of the org (that the creator can reach)"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "moderate"
              ]
            },
            "description": "Deprecated (0.x): read always, moderate when a write permission is held"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "createdBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "revokedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastUsedIp": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 45
              },
              {
                "type": "null"
              }
            ],
            "description": "0.23.0: the address of the last request (updated at most once a minute)"
          },
          "revokedReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApiKeyRevokedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "0.23.0: set when the key revoked itself"
          },
          "usage24h": {
            "$ref": "#/components/schemas/ApiKeyUsage"
          }
        },
        "required": [
          "id",
          "name",
          "prefix",
          "permissions",
          "servers",
          "scopes",
          "createdAt",
          "createdBy",
          "expiresAt",
          "lastUsedAt",
          "revokedAt",
          "lastUsedIp",
          "revokedReason",
          "usage24h"
        ],
        "additionalProperties": false
      },
      "ApiKeyRevokedReason": {
        "type": "string",
        "enum": [
          "creator_left",
          "permission_lost"
        ]
      },
      "ApiKeyUsage": {
        "type": "object",
        "properties": {
          "requests": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "denied": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limited": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "requests",
          "denied",
          "limited"
        ],
        "additionalProperties": false,
        "description": "Requests in the last 24 hours: answered, refused (401/403/404), rate limited (429)"
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "Stable machine-readable error code, e.g. step_up_required, forbidden, not_found, version_conflict"
          },
          "message": {
            "description": "Human-readable message, safe to show",
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "additionalProperties": false
      },
      "ApiKeyCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "description": "First 14 characters (`sculk_` + 8): tells keys apart, cannot be used as a key"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiKeyPermission"
            }
          },
          "servers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "null = every server of the org (that the creator can reach)"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "moderate"
              ]
            },
            "description": "Deprecated (0.x): read always, moderate when a write permission is held"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "createdBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "revokedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastUsedIp": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 45
              },
              {
                "type": "null"
              }
            ],
            "description": "0.23.0: the address of the last request (updated at most once a minute)"
          },
          "revokedReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApiKeyRevokedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "0.23.0: set when the key revoked itself"
          },
          "usage24h": {
            "$ref": "#/components/schemas/ApiKeyUsage"
          },
          "secret": {
            "type": "string",
            "pattern": "^sculk_[A-Za-z0-9_-]{43}$",
            "description": "Shown this once. Sculk keeps only its sha256."
          }
        },
        "required": [
          "id",
          "name",
          "prefix",
          "permissions",
          "servers",
          "scopes",
          "createdAt",
          "createdBy",
          "expiresAt",
          "lastUsedAt",
          "revokedAt",
          "lastUsedIp",
          "revokedReason",
          "usage24h",
          "secret"
        ],
        "additionalProperties": false
      },
      "ApiCasePage": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiCase"
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "additionalProperties": false
      },
      "ApiCase": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "server": {
            "$ref": "#/components/schemas/ApiServer"
          },
          "player": {
            "type": "object",
            "properties": {
              "ref": {
                "type": "string",
                "description": "Salted per-server player ref (as on the dashboard)"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "ref",
              "name"
            ],
            "additionalProperties": false
          },
          "detection": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "class": {
            "$ref": "#/components/schemas/ConfidenceClass"
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "status": {
            "$ref": "#/components/schemas/CaseStatus"
          },
          "action": {
            "description": "What the server did (never above the detection cap)",
            "$ref": "#/components/schemas/Action"
          },
          "wouldHave": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Action"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a stronger setting would have done (report mode, probation); never applied"
          },
          "mode": {
            "type": "string",
            "enum": [
              "learning",
              "report",
              "enforcing"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "detail": {
            "type": "string"
          },
          "evidence": {
            "$ref": "#/components/schemas/ApiEvidenceSummary"
          }
        },
        "required": [
          "id",
          "server",
          "player",
          "detection",
          "category",
          "class",
          "score",
          "status",
          "action",
          "wouldHave",
          "mode",
          "at",
          "detail",
          "evidence"
        ],
        "additionalProperties": false
      },
      "ApiServer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "ConfidenceClass": {
        "type": "string",
        "enum": [
          "deterministic",
          "strong",
          "statistical",
          "client",
          "prevention",
          "tool"
        ]
      },
      "ApiEvidenceSummary": {
        "type": "object",
        "properties": {
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Evidence rows on the case"
          },
          "strongest": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "observed": {
                    "type": "number"
                  },
                  "threshold": {
                    "type": "number"
                  }
                },
                "required": [
                  "observed",
                  "threshold"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The row furthest over its threshold (observed / threshold), null when there is none"
          },
          "screenshots": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "replay": {
            "type": "boolean",
            "description": "A Case Replay is attached"
          }
        },
        "required": [
          "items",
          "strongest",
          "screenshots",
          "replay"
        ],
        "additionalProperties": false
      },
      "ApiCaseDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "server": {
            "$ref": "#/components/schemas/ApiServer"
          },
          "player": {
            "type": "object",
            "properties": {
              "ref": {
                "type": "string",
                "description": "Salted per-server player ref (as on the dashboard)"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "ref",
              "name"
            ],
            "additionalProperties": false
          },
          "detection": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "class": {
            "$ref": "#/components/schemas/ConfidenceClass"
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "status": {
            "$ref": "#/components/schemas/CaseStatus"
          },
          "action": {
            "description": "What the server did (never above the detection cap)",
            "$ref": "#/components/schemas/Action"
          },
          "wouldHave": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Action"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a stronger setting would have done (report mode, probation); never applied"
          },
          "mode": {
            "type": "string",
            "enum": [
              "learning",
              "report",
              "enforcing"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "detail": {
            "type": "string"
          },
          "evidence": {
            "$ref": "#/components/schemas/ApiEvidenceSummary"
          },
          "evidenceRows": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ApiEvidence"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Every evidence row; null unless the key holds cases.evidence"
          }
        },
        "required": [
          "id",
          "server",
          "player",
          "detection",
          "category",
          "class",
          "score",
          "status",
          "action",
          "wouldHave",
          "mode",
          "at",
          "detail",
          "evidence",
          "evidenceRows"
        ],
        "additionalProperties": false
      },
      "ApiEvidence": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "event",
              "position",
              "screenshot"
            ]
          },
          "observed": {
            "type": "number"
          },
          "threshold": {
            "type": "number"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "id",
          "kind",
          "observed",
          "threshold",
          "at"
        ],
        "additionalProperties": false
      },
      "ApiBanPage": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBan"
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "additionalProperties": false
      },
      "ApiBan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "code": {
            "type": "string",
            "description": "The ban code the player sees and appeals with"
          },
          "server": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApiServer"
              },
              {
                "type": "null"
              }
            ],
            "description": "null for an org-wide ban whose server was removed"
          },
          "scope": {
            "$ref": "#/components/schemas/BanScope"
          },
          "status": {
            "$ref": "#/components/schemas/ApiBanStatus"
          },
          "player": {
            "type": "object",
            "properties": {
              "ref": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "ref",
              "name"
            ],
            "additionalProperties": false
          },
          "reason": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/ApiBanSource"
          },
          "detection": {
            "type": [
              "string",
              "null"
            ]
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "null = permanent"
          },
          "liftedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "overturned": {
            "type": "boolean",
            "description": "Lifted as a false positive"
          }
        },
        "required": [
          "id",
          "code",
          "server",
          "scope",
          "status",
          "player",
          "reason",
          "source",
          "detection",
          "caseId",
          "createdAt",
          "expiresAt",
          "liftedAt",
          "overturned"
        ],
        "additionalProperties": false
      },
      "ApiAppealPage": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiAppeal"
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "additionalProperties": false
      },
      "ApiAppeal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "banId": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "banCode": {
            "type": "string"
          },
          "server": {
            "$ref": "#/components/schemas/ApiServer"
          },
          "player": {
            "type": "object",
            "properties": {
              "ref": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "ref",
              "name"
            ],
            "additionalProperties": false
          },
          "status": {
            "$ref": "#/components/schemas/AppealDecision"
          },
          "reason": {
            "type": "string",
            "description": "What the player wrote"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "decidedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "banId",
          "banCode",
          "server",
          "player",
          "status",
          "reason",
          "createdAt",
          "deadline",
          "decidedAt"
        ],
        "additionalProperties": false,
        "description": "Never the player's contact email"
      },
      "ApiPlayerPage": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiPlayerSeen"
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "additionalProperties": false
      },
      "ApiPlayerSeen": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "string"
          },
          "server": {
            "$ref": "#/components/schemas/ApiServer"
          },
          "name": {
            "type": "string",
            "description": "Last in-game name seen"
          },
          "firstSeen": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "description": "First join inside the window"
          },
          "lastSeen": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "joins": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "cases": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Cases inside the window"
          }
        },
        "required": [
          "ref",
          "server",
          "name",
          "firstSeen",
          "lastSeen",
          "joins",
          "cases"
        ],
        "additionalProperties": false
      },
      "ApiPlayerDetail": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "string"
          },
          "server": {
            "$ref": "#/components/schemas/ApiServer"
          },
          "name": {
            "type": "string"
          },
          "firstSeen": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastSeen": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessions": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiSession"
            },
            "description": "Newest first, at most 50"
          },
          "cases": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Cases on this server"
          },
          "bans": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBan"
            }
          },
          "identifiers": {
            "anyOf": [
              {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ApiIdentifier"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "null unless the key holds players.identifiers"
          }
        },
        "required": [
          "ref",
          "server",
          "name",
          "firstSeen",
          "lastSeen",
          "sessions",
          "cases",
          "bans",
          "identifiers"
        ],
        "additionalProperties": false
      },
      "ApiSession": {
        "type": "object",
        "properties": {
          "startedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "null when the join fell outside what retention kept"
          },
          "endedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "null: still connected, or no leave was recorded"
          },
          "seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "connected": {
            "type": "boolean",
            "description": "The newest session, with no leave yet"
          }
        },
        "required": [
          "startedAt",
          "endedAt",
          "seconds",
          "connected"
        ],
        "additionalProperties": false
      },
      "ApiIdentifier": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "license",
              "license2",
              "steam",
              "discord",
              "fivem",
              "xbl",
              "live",
              "token",
              "ip",
              "ip24"
            ]
          },
          "mask": {
            "type": "string",
            "description": "Display label, e.g. `license:…a1b2` or `ip (hashed)`; never the raw identifier"
          },
          "lastSeen": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "kind",
          "mask",
          "lastSeen"
        ],
        "additionalProperties": false
      },
      "ApiAuditPage": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiAuditEvent"
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "additionalProperties": false
      },
      "ApiAuditEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "enum": [
              "UI",
              "Sculky",
              "API",
              "In-game"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "action": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "serverId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The server the entry is about, when it names one"
          }
        },
        "required": [
          "id",
          "actor",
          "source",
          "at",
          "action",
          "target",
          "reason",
          "serverId"
        ],
        "additionalProperties": false
      },
      "ApiEventPage": {
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiEvent"
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "additionalProperties": false
      },
      "ApiEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable id of the record"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "server": {
            "$ref": "#/components/schemas/ApiServer"
          },
          "kind": {
            "$ref": "#/components/schemas/ApiEventKind"
          },
          "player": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "ref": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "ref",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "detection": {
            "type": [
              "string",
              "null"
            ]
          },
          "observed": {
            "type": [
              "number",
              "null"
            ]
          },
          "threshold": {
            "type": [
              "number",
              "null"
            ]
          },
          "wouldHave": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Action"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionS": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "leave: session length"
          }
        },
        "required": [
          "id",
          "at",
          "server",
          "kind",
          "player",
          "detection",
          "observed",
          "threshold",
          "wouldHave",
          "sessionS"
        ],
        "additionalProperties": false,
        "description": "A detection observation, join or leave as the server sent it; free-form extras are not included"
      },
      "ApiDetectionList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiDetection"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "ApiDetection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "catches": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "class": {
            "type": "string"
          },
          "side": {
            "type": "string"
          },
          "maxAction": {
            "$ref": "#/components/schemas/Action"
          },
          "neverBan": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "partial",
              "dormant",
              "planned"
            ],
            "description": "live: works as documented; partial: works, with a limit its docs page states; dormant: built, but nothing can feed it yet, so it does not fire; planned: not built yet"
          }
        },
        "required": [
          "id",
          "name",
          "catches",
          "category",
          "class",
          "side",
          "maxAction",
          "neverBan",
          "status"
        ],
        "additionalProperties": false,
        "description": "One detection of the public catalogue (no thresholds)"
      },
      "ApiServerList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiServerStatus"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "ApiServerStatus": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "production",
              "dev"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "learning",
              "report",
              "enforcing"
            ]
          },
          "online": {
            "type": "boolean",
            "description": "Heard from in the last 90 seconds"
          },
          "lastSeenAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "resourceVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "paused": {
            "type": "boolean"
          },
          "updateChannel": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "role",
          "mode",
          "online",
          "lastSeenAt",
          "resourceVersion",
          "paused",
          "updateChannel"
        ],
        "additionalProperties": false
      },
      "CommandQueued": {
        "type": "object",
        "properties": {
          "commandId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "status": {
            "type": "string",
            "enum": [
              "queued"
            ]
          },
          "deliverBy": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "description": "The server picks it up at its next poll (≤ 25 s while online)"
          },
          "captureId": {
            "description": "screenshot only: the capture to poll (GET /servers/{server}/captures/{id}) (0.12.0)",
            "type": "string"
          }
        },
        "required": [
          "commandId",
          "status",
          "deliverBy"
        ],
        "additionalProperties": false
      },
      "ApiKeySelf": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "name": {
            "type": "string"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiKeyPermission"
            }
          },
          "servers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "permissions",
          "servers",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "Config": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "mode": {
            "$ref": "#/components/schemas/ServerMode"
          },
          "bans": {
            "type": "object",
            "properties": {
              "temp_hours": {
                "type": "integer",
                "minimum": 1,
                "maximum": 8760
              },
              "appeal": {
                "type": "string",
                "maxLength": 200
              },
              "server_name": {
                "type": "string",
                "maxLength": 64
              }
            },
            "additionalProperties": false
          },
          "custom_flags": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "log",
                  "warn",
                  "kick"
                ]
              }
            },
            "required": [
              "action"
            ],
            "additionalProperties": false
          },
          "detections": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/DetectionConfig"
            },
            "description": "Keyed by detection id"
          },
          "keptLocal": {
            "description": "Present once a resource has answered a config_push with kept-local settings",
            "type": "object",
            "properties": {
              "ids": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "description": "Detection ids the resource kept at its own (config.lua) settings"
              },
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991,
                "description": "As reported by the resource; may exceed ids.length (the id list is capped at 200 bytes)"
              },
              "modeKept": {
                "type": "boolean",
                "description": "The resource kept its own mode instead of the cloud one"
              },
              "at": {
                "type": "string",
                "format": "date-time",
                "description": "When the resource last answered a config_push"
              }
            },
            "required": [
              "ids",
              "count",
              "modeKept",
              "at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "version",
          "mode",
          "detections"
        ],
        "additionalProperties": false
      },
      "DetectionConfig": {
        "type": "object",
        "properties": {
          "preset": {
            "$ref": "#/components/schemas/Preset"
          },
          "action": {
            "description": "Custom preset only: action at the strike threshold",
            "$ref": "#/components/schemas/Action"
          },
          "max_action": {
            "description": "Owner ceiling; may lower, never raise, the class cap",
            "$ref": "#/components/schemas/Action"
          },
          "params": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "mitigate": {
            "description": "Block each hit as it happens, where the detection can",
            "type": "boolean"
          },
          "promotion": {
            "description": "Owner opt-in to a promoted ceiling under a verified condition (registry promotions); fails closed above it",
            "type": "object",
            "properties": {
              "when": {
                "type": "string"
              },
              "action": {
                "$ref": "#/components/schemas/Action"
              }
            },
            "required": [
              "when",
              "action"
            ],
            "additionalProperties": false
          },
          "corroboration": {
            "description": "Let a second independent signal lift a strong detection (default true)",
            "type": "boolean"
          }
        },
        "required": [
          "preset"
        ],
        "additionalProperties": false
      },
      "ApiConfigVersionList": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ConfigVersion"
        }
      },
      "ConfigVersion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "actor": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "snapshot": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "changes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "key",
                "from",
                "to"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "version",
          "at",
          "actor",
          "source",
          "current",
          "snapshot",
          "changes"
        ],
        "additionalProperties": false
      },
      "ApiProposalList": {
        "type": "object",
        "properties": {
          "config": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Proposal"
            }
          },
          "unbans": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnbanProposal"
            }
          }
        },
        "required": [
          "config",
          "unbans"
        ],
        "additionalProperties": false,
        "description": "Newest first, at most 50 of each"
      },
      "Proposal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "applied",
              "cancelled",
              "expired",
              "undone"
            ]
          },
          "author": {
            "type": "string",
            "enum": [
              "user",
              "sculky",
              "apikey"
            ],
            "description": "0.28.0: `apikey` = proposed through the customer API (an agent, a script); confirming and undoing it always need step-up"
          },
          "mode": {
            "type": "object",
            "properties": {
              "from": {
                "$ref": "#/components/schemas/ServerMode"
              },
              "to": {
                "$ref": "#/components/schemas/ServerMode"
              }
            },
            "required": [
              "from",
              "to"
            ],
            "additionalProperties": false
          },
          "changes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "detection": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "name": {
                  "type": "string"
                },
                "class": {
                  "$ref": "#/components/schemas/ConfidenceClass"
                },
                "from": {
                  "$ref": "#/components/schemas/ProposalSide"
                },
                "to": {
                  "$ref": "#/components/schemas/ProposalSide"
                },
                "maxAction": {
                  "$ref": "#/components/schemas/Action"
                },
                "players": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "observations": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "notes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "no_observations",
                      "unattributed_observations",
                      "players_lower_bound",
                      "value_params_not_replayed",
                      "probation_applies"
                    ]
                  }
                }
              },
              "required": [
                "detection",
                "name",
                "class",
                "from",
                "to",
                "maxAction",
                "players",
                "observations",
                "notes"
              ],
              "additionalProperties": false
            }
          },
          "data": {
            "type": "object",
            "properties": {
              "sufficient": {
                "type": "boolean"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "no_data",
                      "short_window",
                      "truncated"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "days": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "daysWithData": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "sufficient",
              "reason",
              "days",
              "daysWithData"
            ],
            "additionalProperties": false,
            "description": "Whether the recorded data was enough to trust the numbers. When false, the counts are not a safety claim."
          },
          "affectedPlayers": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "affectedPlayersList": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ref": {
                  "type": "string"
                },
                "id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string"
                },
                "observations": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "action": {
                  "$ref": "#/components/schemas/Action"
                }
              },
              "required": [
                "ref",
                "id",
                "name",
                "observations",
                "action"
              ],
              "additionalProperties": false
            }
          },
          "maxAction": {
            "$ref": "#/components/schemas/Action"
          },
          "today": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "description": "ISO 8601 timestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "requiresStepUp": {
            "type": "boolean"
          },
          "reason": {
            "description": "0.28.0: why it was proposed (API-key proposals)",
            "type": "string"
          },
          "apiKey": {
            "description": "0.28.0: the key that proposed it (author apikey)",
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "dryRun": {
            "description": "0.14.0 (G2.3): the change replayed against the last 7 days. Absent on proposals made before 0.14.0",
            "$ref": "#/components/schemas/DryRun"
          }
        },
        "required": [
          "id",
          "title",
          "status",
          "author",
          "mode",
          "changes",
          "data",
          "affectedPlayers",
          "affectedPlayersList",
          "maxAction",
          "today",
          "expiresAt",
          "version",
          "requiresStepUp"
        ],
        "additionalProperties": false,
        "description": "A previewed change. Nothing applies until a human confirms it."
      },
      "ProposalSide": {
        "type": "object",
        "properties": {
          "preset": {
            "$ref": "#/components/schemas/Preset"
          },
          "enabled": {
            "type": "boolean"
          },
          "action": {
            "$ref": "#/components/schemas/Action"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DetectionConfig"
              },
              {
                "type": "null"
              }
            ],
            "description": "null = not in the document (registry default)"
          }
        },
        "required": [
          "preset",
          "enabled",
          "action",
          "config"
        ],
        "additionalProperties": false
      },
      "DryRun": {
        "type": "object",
        "properties": {
          "window": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "to": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "days": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "from",
              "to",
              "days"
            ],
            "additionalProperties": false
          },
          "wouldHave": {
            "type": "boolean",
            "description": "The server (or the change) is in learning or report mode: these actions would not have been taken, only shown"
          },
          "actions": {
            "type": "object",
            "properties": {
              "before": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "after": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "stopped": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "caused": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "before",
              "after",
              "stopped",
              "caused"
            ],
            "additionalProperties": false
          },
          "players": {
            "type": "object",
            "properties": {
              "stopped": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "caused": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "stopped",
              "caused"
            ],
            "additionalProperties": false
          },
          "stoppedList": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DryRunPlayer"
            }
          },
          "causedList": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DryRunPlayer"
            }
          },
          "detections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DryRunDetection"
            }
          },
          "sufficient": {
            "type": "boolean",
            "description": "Same rule as Proposal.data: false means the counts are not a safety claim"
          },
          "lowerBound": {
            "type": "boolean"
          }
        },
        "required": [
          "window",
          "wouldHave",
          "actions",
          "players",
          "stoppedList",
          "causedList",
          "detections",
          "sufficient",
          "lowerBound"
        ],
        "additionalProperties": false,
        "description": "G2.3: \"would have stopped N actions, caused M new ones\", listed"
      },
      "DryRunPlayer": {
        "type": "object",
        "properties": {
          "ref": {
            "type": "string"
          },
          "id": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "actions": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "detections": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "ref",
          "id",
          "name",
          "actions",
          "detections"
        ],
        "additionalProperties": false
      },
      "DryRunDetection": {
        "type": "object",
        "properties": {
          "detection": {
            "type": "string"
          },
          "replay": {
            "type": "string",
            "enum": [
              "unchanged",
              "exact",
              "partial",
              "ratio",
              "not_replayed"
            ]
          },
          "observations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "measured": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Observations carrying measured values"
          },
          "before": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "after": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "stopped": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "caused": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "lowerBound": {
            "type": "boolean"
          }
        },
        "required": [
          "detection",
          "replay",
          "observations",
          "measured",
          "before",
          "after",
          "stopped",
          "caused",
          "lowerBound"
        ],
        "additionalProperties": false
      },
      "UnbanProposal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "server": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "applied",
              "cancelled",
              "expired",
              "undone"
            ]
          },
          "author": {
            "type": "string",
            "enum": [
              "apikey"
            ],
            "description": "Only API keys write unban proposals (a person unbans directly)"
          },
          "apiKey": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "type": "string"
          },
          "ban": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
              },
              "banCode": {
                "type": "string"
              },
              "scope": {
                "$ref": "#/components/schemas/BanScope"
              },
              "player": {
                "type": "object",
                "properties": {
                  "ref": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "ref",
                  "name"
                ],
                "additionalProperties": false
              },
              "reason": {
                "type": "string"
              },
              "caseId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "banCode",
              "scope",
              "player",
              "reason",
              "caseId",
              "createdAt",
              "expiresAt"
            ],
            "additionalProperties": false
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "requiresStepUp": {
            "type": "boolean",
            "const": true,
            "description": "Confirm and undo always need a fresh authenticator step-up"
          },
          "reinstatedBanId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "After an undo: the ban that was put back"
          }
        },
        "required": [
          "id",
          "server",
          "status",
          "author",
          "apiKey",
          "reason",
          "ban",
          "createdAt",
          "expiresAt",
          "requiresStepUp",
          "reinstatedBanId"
        ],
        "additionalProperties": false,
        "description": "An unban an API key proposed. Nothing is lifted until a person confirms it in the dashboard."
      },
      "ApiConfigProposalCreated": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "pending"
          },
          "applied": {
            "type": "boolean",
            "const": false
          },
          "dashboardUrl": {
            "type": "string",
            "description": "Where a person confirms it (signed in, with step-up)"
          },
          "proposal": {
            "$ref": "#/components/schemas/Proposal"
          }
        },
        "required": [
          "status",
          "applied",
          "dashboardUrl",
          "proposal"
        ],
        "additionalProperties": false
      },
      "ApiUnbanProposalCreated": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "pending"
          },
          "applied": {
            "type": "boolean",
            "const": false
          },
          "dashboardUrl": {
            "type": "string",
            "description": "Where a person confirms it (signed in, with step-up)"
          },
          "proposal": {
            "$ref": "#/components/schemas/UnbanProposal"
          }
        },
        "required": [
          "status",
          "applied",
          "dashboardUrl",
          "proposal"
        ],
        "additionalProperties": false
      },
      "ApiProposalCancelled": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "cancelled"
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sculk_<43 chars>",
        "description": "Org API key (0.18.0): Authorization: Bearer sculk_… Made on the dashboard (API keys); holds a subset of the permissions of its creator and optionally a list of servers. Limited per key and per org: 429 rate_limited with Retry-After; RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset on /api/* answers (0.23.0)."
      },
      "session": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__Secure-sculk.session_token"
      }
    }
  }
}