{
  "openapi": "3.1.0",
  "info": {
    "title": "Databek Talent API",
    "version": "0.1.0",
    "description": "The API of talent.databek.com: programs and applications, proctored assessments, reviews and\ninterviews, the academy, contests, the talent pool and the integration API.\n\n**Base path** `/api/v1` on every portal host. The portal comes from the `Host` header, never from the path or\nthe body.\n\n**Auth.** Cookies set by the sign-in endpoints, never an `Authorization` header: `access_token` (httpOnly JWT,\n15 min), `refresh_token` (httpOnly, path `/api/v1/auth`) and `csrf_token` (readable by JavaScript; it comes with\nthe first `/api/` response). After a 401 `auth.required` call `POST /api/v1/auth/refresh` once (it reads the refresh\ncookie) and retry. Send `X-CSRF-Token` equal to the `csrf_token` cookie on every POST, PUT, PATCH and DELETE that\ncarries an auth cookie (access or refresh), and always on sign-up, sign-in, the e-mailed code and the password\nreset (403 `auth.csrf_failed` otherwise). The proctoring telemetry batches\n(`POST /api/v1/sessions/{session_id}/telemetry`, sent by `navigator.sendBeacon`, which cannot add headers) are exempt\nand check the session's telemetry token instead. The integration endpoints take the portal's API key as\n`Authorization: Bearer <key>` instead. There is no CORS: browser pages on other sites cannot call the API. Each\noperation names the permission it needs and the roles that have it; object-level rules (a mentor's assigned\napplications, a candidate's own session) can still answer 403 or 404.\n\n**Errors** have the body `{\"code\", \"message\", \"field\"?}`: `code` is a stable i18n key, `message` an English\nfallback; extra keys appear where stated (`errors` on validation, `retry_after` on most rate limits).\n\n**Lists** answer `{items, next_cursor}` and take `?cursor=&limit=` (default 50, max 200) or numbered pages\n`?page=&page_size=` (then `total` is filled); a few short lists answer a plain array.\n\n**Retries.** Code runs and submits take an `Idempotency-Key` header (8–64 characters of `A-Z a-z 0-9 - _`): a\nretry with the same key within 12 hours gets the first result back."
  },
  "paths": {
    "/api/v1/academy/dashboard": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Dashboard",
        "description": "Next class, due homework, progress, latest activity score + rank and the mentor card.",
        "operationId": "dashboard_api_v1_academy_dashboard_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcademyDashboardOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/courses": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "My Courses",
        "description": "Courses of the caller's cohorts with progress (oldest first).",
        "operationId": "my_courses_api_v1_academy_courses_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_CourseProgressOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/modules/{module_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Module Detail",
        "description": "Lessons in order with completion; a module before `unlocks_at` comes back `locked`.",
        "operationId": "module_detail_api_v1_academy_modules__module_id__get",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/lessons/{lesson_id}/complete": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Complete Lesson",
        "operationId": "complete_lesson_api_v1_academy_lessons__lesson_id__complete_post",
        "parameters": [
          {
            "name": "lesson_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Lesson Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonCompleteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Uncomplete Lesson",
        "operationId": "uncomplete_lesson_api_v1_academy_lessons__lesson_id__complete_delete",
        "parameters": [
          {
            "name": "lesson_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Lesson Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonCompleteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/homeworks/{homework_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Homework Detail",
        "operationId": "homework_detail_api_v1_academy_homeworks__homework_id__get",
        "parameters": [
          {
            "name": "homework_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Homework Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HomeworkDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/homeworks/{homework_id}/submissions": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Submit Homework",
        "description": "Validated by submission type; late attempts are flagged (penalty applied on display);\n`auto_code` answers are judged by the Runner and graded at once. A retry with the same\n`Idempotency-Key` returns the first attempt (never a second one).",
        "operationId": "submit_homework_api_v1_academy_homeworks__homework_id__submissions_post",
        "parameters": [
          {
            "name": "homework_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Homework Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HomeworkSubmitIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcademyAttemptOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/homeworks/{homework_id}/run": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Run Homework Code",
        "description": "Try code of an auto-code question on its visible tests (not stored, not scored). A retry\nwith the same `Idempotency-Key` returns the first result.",
        "operationId": "run_homework_code_api_v1_academy_homeworks__homework_id__run_post",
        "parameters": [
          {
            "name": "homework_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Homework Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HomeworkRunIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HomeworkRunOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/attendance": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "My Attendance",
        "operationId": "my_attendance_api_v1_academy_attendance_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyAttendanceOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.learn",
          "roles": [
            "intern"
          ],
          "summary": "Permission `academy.learn`: intern."
        }
      }
    },
    "/api/v1/academy/prep/courses": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Prep Courses",
        "description": "Prep courses with the caller's lesson progress (oldest first). `access` says why the caller\nmay study them; null = no non-draft application yet, and nothing is listed.",
        "operationId": "prep_courses_api_v1_academy_prep_courses_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrepCoursesOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.prep",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `academy.prep`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/academy/prep/modules/{module_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Prep Module",
        "description": "Lessons in order (Markdown articles, videos, links) with completion and the module's tasks;\na module before `unlocks_at` comes back `locked`.",
        "operationId": "prep_module_api_v1_academy_prep_modules__module_id__get",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModuleDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.prep",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `academy.prep`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/academy/prep/lessons/{lesson_id}/complete": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Complete Prep Lesson",
        "operationId": "complete_prep_lesson_api_v1_academy_prep_lessons__lesson_id__complete_post",
        "parameters": [
          {
            "name": "lesson_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Lesson Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonCompleteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.prep",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `academy.prep`: admin, mentor, intern, guest."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Uncomplete Prep Lesson",
        "operationId": "uncomplete_prep_lesson_api_v1_academy_prep_lessons__lesson_id__complete_delete",
        "parameters": [
          {
            "name": "lesson_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Lesson Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonCompleteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.prep",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `academy.prep`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/academy/prep/homeworks/{homework_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Prep Homework",
        "description": "The task with its acceptance criteria and rubric (no submission). `submittable`: an intern\nwhose cohort's program is linked to the course submits it at `/academy/homeworks/{id}`.",
        "operationId": "prep_homework_api_v1_academy_prep_homeworks__homework_id__get",
        "parameters": [
          {
            "name": "homework_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Homework Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrepHomeworkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.prep",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `academy.prep`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/activity/recompute": {
      "post": {
        "tags": [
          "activity"
        ],
        "summary": "Recompute",
        "description": "Recompute today's scores for one cohort (any status) or every active cohort.",
        "operationId": "recompute_api_v1_activity_recompute_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecomputeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecomputeOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/activity/cohorts/{cohort_id}/leaderboard": {
      "get": {
        "tags": [
          "activity"
        ],
        "summary": "Leaderboard",
        "description": "Latest ranking of a cohort: interns see their own cohort, mentors theirs, admins all.",
        "operationId": "leaderboard_api_v1_activity_cohorts__cohort_id__leaderboard_get",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Cohort Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MentoringLeaderboardOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/activity/weights/{program_id}": {
      "get": {
        "tags": [
          "activity"
        ],
        "summary": "Get Weights",
        "operationId": "get_weights_api_v1_activity_weights__program_id__get",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeightsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "put": {
        "tags": [
          "activity"
        ],
        "summary": "Put Weights",
        "description": "Weights must sum to 100; used by the next recompute.",
        "operationId": "put_weights_api_v1_activity_weights__program_id__put",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WeightsIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeightsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/applications": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "List Applications",
        "description": "Paginated table (`total` = rows matching the filters). Drafts are hidden unless asked.\nA row of an assessment link's participant names the link (`set`) and its state in the link's\nresults (`set_state`). `set_id` / `set_state` with `kind=program`: 422 `review.invalid_filter`.",
        "operationId": "list_applications_api_v1_applications_get",
        "parameters": [
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "maxItems": 50
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several programs",
              "title": "Program Id"
            },
            "description": "Repeat for several programs"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApplicationStatus"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "min_total",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Total"
            }
          },
          {
            "name": "max_total",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Total"
            }
          },
          {
            "name": "integrity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "none"
                    ],
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Integrity"
            }
          },
          {
            "name": "integrity_below",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "\"Hide integrity ≥ X\": only scores below X (or none)",
              "title": "Integrity Below"
            },
            "description": "\"Hide integrity ≥ X\": only scores below X (or none)"
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "reviewer",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 40
                },
                {
                  "type": "null"
                }
              ],
              "description": "`me` or a user id",
              "title": "Reviewer"
            },
            "description": "`me` or a user id"
          },
          {
            "name": "section_min",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum section percent per type, e.g. `sql:60`",
              "title": "Section Min"
            },
            "description": "Minimum section percent per type, e.g. `sql:60`"
          },
          {
            "name": "min_profile_signal",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Profile Signal"
            }
          },
          {
            "name": "scoring",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "not_scored",
                    "provisional",
                    "final"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scoring"
            }
          },
          {
            "name": "recommendation",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SummaryRecommendation"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Recommendation"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only these applications",
              "title": "Ids"
            },
            "description": "Only these applications"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "program",
                    "set"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`program`: programs' applications only; `set`: the participants of assessment links who started the attempt (as the links' results). Without it: programs' applications unless `program_id` or `ids` name others",
              "title": "Kind"
            },
            "description": "`program`: programs' applications only; `set`: the participants of assessment links who started the attempt (as the links' results). Without it: programs' applications unless `program_id` or `ids` name others"
          },
          {
            "name": "set_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "maxItems": 50
                },
                {
                  "type": "null"
                }
              ],
              "description": "Assessment links (repeat for several): their participants; implies `kind=set`",
              "title": "Set Id"
            },
            "description": "Assessment links (repeat for several): their participants; implies `kind=set`"
          },
          {
            "name": "set_state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "started",
                      "submitted",
                      "scored",
                      "reviewed"
                    ],
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "A participant's state in the link's results (repeat for several); implies `kind=set`",
              "title": "Set State"
            },
            "description": "A participant's state in the link's results (repeat for several); implies `kind=set`"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 40,
              "default": "submitted_at",
              "title": "Sort"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string",
              "default": "desc",
              "title": "Order"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationPageOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/counts": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "Counts",
        "description": "Rows of the table's two tabs without filters: programs' applications and assessment-link\nparticipants who started the attempt (drafts and the caller's own application left out;\nmentors count the applications assigned to them).",
        "operationId": "counts_api_v1_applications_counts_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationCountsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/views": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "List Views",
        "description": "The caller's saved views of this table (\"Top SQL\", \"Needs review\" …), by name.",
        "operationId": "list_views_api_v1_applications_views_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_SavedViewOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      },
      "post": {
        "tags": [
          "review"
        ],
        "summary": "Create View",
        "operationId": "create_view_api_v1_applications_views_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedViewIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedViewOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/views/{view_id}": {
      "patch": {
        "tags": [
          "review"
        ],
        "summary": "Update View",
        "operationId": "update_view_api_v1_applications_views__view_id__patch",
        "parameters": [
          {
            "name": "view_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "View Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedViewPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedViewOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      },
      "delete": {
        "tags": [
          "review"
        ],
        "summary": "Delete View",
        "operationId": "delete_view_api_v1_applications_views__view_id__delete",
        "parameters": [
          {
            "name": "view_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "View Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/reviewers": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "Reviewers",
        "description": "People who can be assigned as reviewers (the portal's admins and mentors), by name.",
        "operationId": "reviewers_api_v1_applications_reviewers_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Name or email",
              "title": "Q"
            },
            "description": "Name or email"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_StaffOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.decide",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.decide`: admin."
        }
      }
    },
    "/api/v1/applications/compare": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "Compare",
        "operationId": "compare_api_v1_applications_compare_get",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              },
              "description": "2–4 application ids",
              "title": "Ids"
            },
            "description": "2–4 application ids"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompareOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/export": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "Export",
        "description": "CSV/XLSX with the table's filters, sort and columns (≤ 10 000 rows); audit-logged.",
        "operationId": "export_api_v1_applications_export_get",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "csv",
                "xlsx"
              ],
              "type": "string",
              "default": "csv",
              "title": "Format"
            }
          },
          {
            "name": "columns",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Columns"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "uz",
                "en"
              ],
              "type": "string",
              "default": "en",
              "title": "Lang"
            }
          },
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "maxItems": 50
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several programs",
              "title": "Program Id"
            },
            "description": "Repeat for several programs"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApplicationStatus"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "min_total",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Total"
            }
          },
          {
            "name": "max_total",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Total"
            }
          },
          {
            "name": "integrity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "none"
                    ],
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Integrity"
            }
          },
          {
            "name": "integrity_below",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "\"Hide integrity ≥ X\": only scores below X (or none)",
              "title": "Integrity Below"
            },
            "description": "\"Hide integrity ≥ X\": only scores below X (or none)"
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "reviewer",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 40
                },
                {
                  "type": "null"
                }
              ],
              "description": "`me` or a user id",
              "title": "Reviewer"
            },
            "description": "`me` or a user id"
          },
          {
            "name": "section_min",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum section percent per type, e.g. `sql:60`",
              "title": "Section Min"
            },
            "description": "Minimum section percent per type, e.g. `sql:60`"
          },
          {
            "name": "min_profile_signal",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Profile Signal"
            }
          },
          {
            "name": "scoring",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "not_scored",
                    "provisional",
                    "final"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scoring"
            }
          },
          {
            "name": "recommendation",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SummaryRecommendation"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Recommendation"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only these applications",
              "title": "Ids"
            },
            "description": "Only these applications"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "program",
                    "set"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`program`: programs' applications only; `set`: the participants of assessment links who started the attempt (as the links' results). Without it: programs' applications unless `program_id` or `ids` name others",
              "title": "Kind"
            },
            "description": "`program`: programs' applications only; `set`: the participants of assessment links who started the attempt (as the links' results). Without it: programs' applications unless `program_id` or `ids` name others"
          },
          {
            "name": "set_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "maxItems": 50
                },
                {
                  "type": "null"
                }
              ],
              "description": "Assessment links (repeat for several): their participants; implies `kind=set`",
              "title": "Set Id"
            },
            "description": "Assessment links (repeat for several): their participants; implies `kind=set`"
          },
          {
            "name": "set_state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "started",
                      "submitted",
                      "scored",
                      "reviewed"
                    ],
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "A participant's state in the link's results (repeat for several); implies `kind=set`",
              "title": "Set State"
            },
            "description": "A participant's state in the link's results (repeat for several); implies `kind=set`"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 40,
              "default": "submitted_at",
              "title": "Sort"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string",
              "default": "desc",
              "title": "Order"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The applications as CSV (`format=csv`) or Excel (`format=xlsx`), as an attachment.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "exports.run",
          "roles": [
            "admin"
          ],
          "summary": "Permission `exports.run`: admin."
        }
      }
    },
    "/api/v1/applications/bulk": {
      "post": {
        "tags": [
          "review"
        ],
        "summary": "Bulk",
        "description": "`status` (shortlist), `tag` / `untag`, `assign` / `unassign` reviewer, `rescore`.",
        "operationId": "bulk_api_v1_applications_bulk_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.decide",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.decide`: admin."
        }
      }
    },
    "/api/v1/applications/{application_id}": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "Application Detail",
        "operationId": "application_detail_api_v1_applications__application_id__get",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/{application_id}/notes": {
      "get": {
        "tags": [
          "review"
        ],
        "summary": "List Notes",
        "description": "Pinned notes first, then newest first.",
        "operationId": "list_notes_api_v1_applications__application_id__notes_get",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_NoteOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      },
      "post": {
        "tags": [
          "review"
        ],
        "summary": "Create Note",
        "description": "Markdown note; `@[Name](user:<id>)` mentions notify admins / assigned reviewers.",
        "operationId": "create_note_api_v1_applications__application_id__notes_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewNoteIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewNoteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/{application_id}/notes/{note_id}": {
      "patch": {
        "tags": [
          "review"
        ],
        "summary": "Update Note",
        "operationId": "update_note_api_v1_applications__application_id__notes__note_id__patch",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          },
          {
            "name": "note_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Note Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotePatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewNoteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      },
      "delete": {
        "tags": [
          "review"
        ],
        "summary": "Delete Note",
        "operationId": "delete_note_api_v1_applications__application_id__notes__note_id__delete",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          },
          {
            "name": "note_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Note Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/applications/{application_id}/summary": {
      "post": {
        "tags": [
          "review"
        ],
        "summary": "Regenerate Summary",
        "description": "Queue a fresh AI candidate summary (worker; AI tools rate limit).",
        "operationId": "regenerate_summary_api_v1_applications__application_id__summary_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/contest-questions": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Question Options",
        "description": "Ready Python/SQL questions with `usage=contest` that can be added as problems\n(easiest first, then by title).",
        "operationId": "question_options_api_v1_contest_questions_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Part of the base title, a translated title (uz, en), the slug or a tag; any case, o' = oʻ = o‘ = o’",
              "title": "Q"
            },
            "description": "Part of the base title, a translated title (uz, en), the slug or a tag; any case, o' = oʻ = o‘ = o’"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/QuestionType"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            }
          },
          {
            "name": "difficulty",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Difficulty"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Difficulty"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_QuestionOptionOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "List Contests",
        "description": "Every contest of the portal, drafts included, latest start first. `slug` finds one\ncontest exactly (the web's `/contests/{slug}/edit` page); a repeated `status` matches any\nof them.",
        "operationId": "list_contests_api_v1_contests_manage_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContestStatus"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several statuses",
              "title": "Status"
            },
            "description": "Repeat for several statuses"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Title or slug",
              "title": "Q"
            },
            "description": "Title or slug"
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 120
                },
                {
                  "type": "null"
                }
              ],
              "description": "Exact slug",
              "title": "Slug"
            },
            "description": "Exact slug"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ContestAdminListItem_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Create Contest",
        "operationId": "create_contest_api_v1_contests_manage_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContestIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Get Contest",
        "operationId": "get_contest_api_v1_contests_manage__contest_id__get",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Update Contest",
        "description": "Format and start are locked once running; the schedule is locked after the end.",
        "operationId": "update_contest_api_v1_contests_manage__contest_id__patch",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContestPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Delete Contest",
        "description": "Only contests without submissions (409 `contests.has_submissions`).",
        "operationId": "delete_contest_api_v1_contests_manage__contest_id__delete",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/problems": {
      "put": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Put Problems",
        "description": "Replace the ordered problem list (labels default to A, B, C…) before the start.",
        "operationId": "put_problems_api_v1_contests_manage__contest_id__problems_put",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ContestProblemIn"
                },
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/publish": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Publish",
        "description": "Draft → scheduled (visible, registration by its window).",
        "operationId": "publish_api_v1_contests_manage__contest_id__publish_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/unpublish": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Unpublish",
        "operationId": "unpublish_api_v1_contests_manage__contest_id__unpublish_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/finalize": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Finalize",
        "description": "Recompute final standings now (the cron does it within a minute of the end).",
        "operationId": "finalize_api_v1_contests_manage__contest_id__finalize_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/publish-results": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Publish Results",
        "description": "Apply ratings (rated contests, once) and notify participants (`contest_results`). Refused\nwhile a rejudge is queued or running (409 `contests.rejudge_running`).",
        "operationId": "publish_results_api_v1_contests_manage__contest_id__publish_results_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultsPublishedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/participants": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Participants",
        "operationId": "participants_api_v1_contests_manage__contest_id__participants_get",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ParticipantAdminOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Add Participants",
        "description": "Register existing users by email (the way into private contests).",
        "operationId": "add_participants_api_v1_contests_manage__contest_id__participants_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddParticipantsIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddParticipantsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/participants/{user_id}/disqualify": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Disqualify",
        "description": "Removed from the standings and the rating update; allowed until results are published.",
        "operationId": "disqualify_api_v1_contests_manage__contest_id__participants__user_id__disqualify_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisqualifyIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/participants/{user_id}/reinstate": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Reinstate",
        "operationId": "reinstate_api_v1_contests_manage__contest_id__participants__user_id__reinstate_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/submissions": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Submissions",
        "operationId": "submissions_api_v1_contests_manage__contest_id__submissions_get",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 4
                },
                {
                  "type": "null"
                }
              ],
              "title": "Label"
            }
          },
          {
            "name": "verdict",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Verdict"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Verdict"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ContestAdminSubmissionOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/rejudge": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Rejudge",
        "description": "Judge stored submits again with the current tests — one submission (`submission_id`), one\nproblem (`label`) or the whole contest (empty body) — through the Runner queue with submit\npriority, then recompute the standings. One rejudge per contest at a time: while one is\nqueued or running, the same request returns it (`created: false`) and any other is refused\n(409 `contests.rejudge_running`). Submits of erased accounts keep their stored verdicts.\nAudit-logged; refused once results are published (409 `contests.results_published`).",
        "operationId": "rejudge_api_v1_contests_manage__contest_id__rejudge_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RejudgeIn"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejudgeOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/rejudges": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Rejudges",
        "description": "Rejudges of the contest, newest first, with progress and the verdicts they changed.",
        "operationId": "rejudges_api_v1_contests_manage__contest_id__rejudges_get",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_RejudgeOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/clarifications": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Clarifications",
        "description": "Questions and announcements, newest first.",
        "operationId": "clarifications_api_v1_contests_manage__contest_id__clarifications_get",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "open",
                "answered"
              ],
              "type": "string",
              "default": "all",
              "title": "Status"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ClarificationAdminOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Announce",
        "description": "Broadcast an announcement to every participant (public clarification).",
        "operationId": "announce_api_v1_contests_manage__contest_id__clarifications_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClarificationAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/clarifications/{clarification_id}": {
      "patch": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Answer",
        "description": "Answer privately or to everyone (`is_public`); the asker gets an in-app notification.",
        "operationId": "answer_api_v1_contests_manage__contest_id__clarifications__clarification_id__patch",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "clarification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Clarification Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClarificationAnswerIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClarificationAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/plagiarism": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Plagiarism",
        "description": "Pairs of final submissions with similarity ≥ 0.6 (most similar first), both codes for a\nside-by-side view.",
        "operationId": "plagiarism_api_v1_contests_manage__contest_id__plagiarism_get",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_PlagiarismPairOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/plagiarism/run": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Run Plagiarism",
        "operationId": "run_plagiarism_api_v1_contests_manage__contest_id__plagiarism_run_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobQueuedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/to-talent-pool": {
      "post": {
        "tags": [
          "contests-admin"
        ],
        "summary": "To Talent Pool",
        "description": "Add the top N ranked (non-disqualified) participants to the talent pool.",
        "operationId": "to_talent_pool_api_v1_contests_manage__contest_id__to_talent_pool_post",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToTalentPoolIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToTalentPoolOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `contests.manage`: admin."
        }
      }
    },
    "/api/v1/contests/manage/{contest_id}/export": {
      "get": {
        "tags": [
          "contests-admin"
        ],
        "summary": "Export Standings",
        "description": "Final (live) standings as CSV, including emails, virtual and disqualified rows.",
        "operationId": "export_standings_api_v1_contests_manage__contest_id__export_get",
        "parameters": [
          {
            "name": "contest_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Contest Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The standings as CSV (UTF-8 with a BOM), as an attachment.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "exports.run",
          "roles": [
            "admin"
          ],
          "summary": "Permission `exports.run`: admin."
        }
      }
    },
    "/api/v1/ai-usage": {
      "get": {
        "tags": [
          "ai_usage"
        ],
        "summary": "Ai Usage",
        "description": "Totals, one point per day, and breakdowns by model and by purpose (`kind`), with the cost\nestimated from list prices when read (`cost_usd`; null for a model without a price).",
        "operationId": "ai_usage_api_v1_ai_usage_get",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "7d",
                "30d",
                "month",
                "custom"
              ],
              "type": "string",
              "description": "today, 7d (today and the 6 days before), 30d, month (since the 1st) or custom (`from`, `to`); local days in the viewer's time zone",
              "default": "30d",
              "title": "Period"
            },
            "description": "today, 7d (today and the 6 days before), 30d, month (since the 1st) or custom (`from`, `to`); local days in the viewer's time zone"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom period: first day",
              "title": "From"
            },
            "description": "Custom period: first day"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom period: last day (default today)",
              "title": "To"
            },
            "description": "Custom period: last day (default today)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiUsageOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/ai-usage/calls": {
      "get": {
        "tags": [
          "ai_usage"
        ],
        "summary": "Ai Calls",
        "description": "Every AI call of the period, newest first, with `total`: kind, model, tokens, status, error\ncategory, estimated cost and the application or question it was about. Never a prompt, an\nanswer or an error text.",
        "operationId": "ai_calls_api_v1_ai_usage_calls_get",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "7d",
                "30d",
                "month",
                "custom"
              ],
              "type": "string",
              "description": "today, 7d (today and the 6 days before), 30d, month (since the 1st) or custom (`from`, `to`); local days in the viewer's time zone",
              "default": "30d",
              "title": "Period"
            },
            "description": "today, 7d (today and the 6 days before), 30d, month (since the 1st) or custom (`from`, `to`); local days in the viewer's time zone"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom period: first day",
              "title": "From"
            },
            "description": "Custom period: first day"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom period: last day (default today)",
              "title": "To"
            },
            "description": "Custom period: last day (default today)"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AiJobKind"
                },
                {
                  "type": "null"
                }
              ],
              "description": "What the call was for",
              "title": "Kind"
            },
            "description": "What the call was for"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AiJobStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "model",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 120
                },
                {
                  "type": "null"
                }
              ],
              "description": "Exact `provider:model` as stored with the call",
              "title": "Model"
            },
            "description": "Exact `provider:model` as stored with the call"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_AiCallOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/ai-usage/budget": {
      "get": {
        "tags": [
          "ai_usage"
        ],
        "summary": "Ai Budget Status",
        "description": "This calendar month (Asia/Tashkent) against the portal's monthly AI limit: estimated spend\nso far (read fresh), the limit (null = none), percent, remaining, projected month-end spend\nat the current pace and the state (`none`, `ok`, `warning` from 80 %, `exceeded`).",
        "operationId": "ai_budget_status_api_v1_ai_usage_budget_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiBudgetOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/ai-usage/retry-failed": {
      "get": {
        "tags": [
          "ai_usage"
        ],
        "summary": "Ai Retry Preview",
        "description": "How many failed AI items of the period a retry would queue (grading of written answers,\npitch analysis, candidate summaries; one per item, without those that succeeded later or\nare running), by kind, and whether that is more than one request queues (`limit`).",
        "operationId": "ai_retry_preview_api_v1_ai_usage_retry_failed_get",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "7d",
                "30d",
                "month",
                "custom"
              ],
              "type": "string",
              "description": "today, 7d (today and the 6 days before), 30d, month (since the 1st) or custom (`from`, `to`); local days in the viewer's time zone",
              "default": "30d",
              "title": "Period"
            },
            "description": "today, 7d (today and the 6 days before), 30d, month (since the 1st) or custom (`from`, `to`); local days in the viewer's time zone"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom period: first day",
              "title": "From"
            },
            "description": "Custom period: first day"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Custom period: last day (default today)",
              "title": "To"
            },
            "description": "Custom period: last day (default today)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiRetryPreviewOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      },
      "post": {
        "tags": [
          "ai_usage"
        ],
        "summary": "Ai Retry Failed",
        "description": "Queue the period's failed AI work again through the per-item retry services, newest\nfailures first, at most `limit` (200) items per request. 503 `ai.disabled` /\n`ai.budget_exceeded`, 429 `rate_limited` (one AI tools use of the caller, at most 5 batches\nan hour per portal). Audit-logged (`ai.retry_failed`).",
        "operationId": "ai_retry_failed_api_v1_ai_usage_retry_failed_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiRetryIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiRetryOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/programs/{slug}/form": {
      "get": {
        "tags": [
          "application_forms"
        ],
        "summary": "Program Form",
        "operationId": "program_form_api_v1_programs__slug__form_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramFormOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/programs/manage/{program_id}/form-fields": {
      "get": {
        "tags": [
          "application_forms"
        ],
        "summary": "Admin Form Fields",
        "operationId": "admin_form_fields_api_v1_programs_manage__program_id__form_fields_get",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FormFieldOut"
                  },
                  "title": "Response Admin Form Fields Api V1 Programs Manage  Program Id  Form Fields Get"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      },
      "put": {
        "tags": [
          "application_forms"
        ],
        "summary": "Admin Put Form Fields",
        "operationId": "admin_put_form_fields_api_v1_programs_manage__program_id__form_fields_put",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FormFieldIn"
                },
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FormFieldOut"
                  },
                  "title": "Response Admin Put Form Fields Api V1 Programs Manage  Program Id  Form Fields Put"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/programs/{slug}/application": {
      "get": {
        "tags": [
          "applications"
        ],
        "summary": "My Application For Program",
        "operationId": "my_application_for_program_api_v1_programs__slug__application_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/programs/{slug}/applications": {
      "post": {
        "tags": [
          "applications"
        ],
        "summary": "Save Application Draft",
        "description": "Create the draft on first call, then autosave custom answers and the wizard step.",
        "operationId": "save_application_draft_api_v1_programs__slug__applications_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationDraftIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/applications/{application_id}/submit": {
      "post": {
        "tags": [
          "applications"
        ],
        "summary": "Submit Application",
        "operationId": "submit_application_api_v1_applications__application_id__submit_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationSubmitIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/applications/{application_id}/withdraw": {
      "post": {
        "tags": [
          "applications"
        ],
        "summary": "Withdraw Application",
        "operationId": "withdraw_application_api_v1_applications__application_id__withdraw_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/me/applications": {
      "get": {
        "tags": [
          "applications"
        ],
        "summary": "My Applications",
        "operationId": "my_applications_api_v1_me_applications_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MyApplicationOut"
                  },
                  "type": "array",
                  "title": "Response My Applications Api V1 Me Applications Get"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/assessments": {
      "get": {
        "tags": [
          "assessments"
        ],
        "summary": "List Assessments",
        "operationId": "list_assessments_api_v1_assessments_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AssessmentStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Archived"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_AssessmentListItem_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "assessments"
        ],
        "summary": "Create Assessment",
        "description": "Create a draft; settings are merged with the defaults.",
        "operationId": "create_assessment_api_v1_assessments_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssessmentIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/assessments/{assessment_id}": {
      "get": {
        "tags": [
          "assessments"
        ],
        "summary": "Get Assessment",
        "operationId": "get_assessment_api_v1_assessments__assessment_id__get",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "assessments"
        ],
        "summary": "Update Assessment",
        "description": "Partial update; `settings` keys not sent keep their value. `active` needs a section.",
        "operationId": "update_assessment_api_v1_assessments__assessment_id__patch",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssessmentPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "assessments"
        ],
        "summary": "Archive Assessment",
        "description": "Archive (kept for history; no new invites).",
        "operationId": "archive_assessment_api_v1_assessments__assessment_id__delete",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/assessments/{assessment_id}/sections": {
      "put": {
        "tags": [
          "assessments"
        ],
        "summary": "Replace Sections",
        "description": "Replace the ordered sections. Pool questions must be `ready` assessment questions of\nthis portal with the section's type; sections used by real sessions cannot be removed.",
        "operationId": "replace_sections_api_v1_assessments__assessment_id__sections_put",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SectionIn"
                },
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SectionOut"
                  },
                  "title": "Response Replace Sections Api V1 Assessments  Assessment Id  Sections Put"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/assessments/{assessment_id}/pool-stats": {
      "get": {
        "tags": [
          "assessments"
        ],
        "summary": "Pool Stats",
        "description": "Available questions per section and difficulty, with warnings for unfillable picks.",
        "operationId": "pool_stats_api_v1_assessments__assessment_id__pool_stats_get",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolStatsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/assessments/{assessment_id}/preview-session": {
      "post": {
        "tags": [
          "assessments"
        ],
        "summary": "Preview Session",
        "description": "Draw a started try-out session for the admin (`is_preview`, no application); use the\ncandidate session endpoints with the returned id.",
        "operationId": "preview_session_api_v1_assessments__assessment_id__preview_session_post",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewSessionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/applications/{application_id}/assessment-invite": {
      "post": {
        "tags": [
          "assessments"
        ],
        "summary": "Invite To Assessment",
        "description": "Create the invite or resend it (new token, window restarted, `resend_count + 1`),\nemail `assessment_invite`; the application moves to `assessment_invited` when allowed.",
        "operationId": "invite_to_assessment_api_v1_applications__application_id__assessment_invite_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminInviteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.decide",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.decide`: admin."
        }
      }
    },
    "/api/v1/classes": {
      "get": {
        "tags": [
          "mentoring"
        ],
        "summary": "List Classes",
        "description": "By start time (`past`: latest first) with attendance counts.",
        "operationId": "list_classes_api_v1_classes_get",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cohort Id"
            }
          },
          {
            "name": "when",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "upcoming",
                "past"
              ],
              "type": "string",
              "default": "all",
              "title": "When"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ClassOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "attendance.write",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `attendance.write`: admin, mentor."
        }
      },
      "post": {
        "tags": [
          "mentoring"
        ],
        "summary": "Create Class",
        "operationId": "create_class_api_v1_classes_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClassIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "attendance.write",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `attendance.write`: admin, mentor."
        }
      }
    },
    "/api/v1/classes/{class_id}": {
      "get": {
        "tags": [
          "mentoring"
        ],
        "summary": "Get Class",
        "operationId": "get_class_api_v1_classes__class_id__get",
        "parameters": [
          {
            "name": "class_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Class Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "attendance.write",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `attendance.write`: admin, mentor."
        }
      },
      "patch": {
        "tags": [
          "mentoring"
        ],
        "summary": "Update Class",
        "operationId": "update_class_api_v1_classes__class_id__patch",
        "parameters": [
          {
            "name": "class_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Class Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClassPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "attendance.write",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `attendance.write`: admin, mentor."
        }
      },
      "delete": {
        "tags": [
          "mentoring"
        ],
        "summary": "Delete Class",
        "operationId": "delete_class_api_v1_classes__class_id__delete",
        "parameters": [
          {
            "name": "class_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Class Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "attendance.write",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `attendance.write`: admin, mentor."
        }
      }
    },
    "/api/v1/classes/{class_id}/attendance": {
      "put": {
        "tags": [
          "mentoring"
        ],
        "summary": "Save Attendance",
        "description": "Bulk upsert `{records: [{user_id, status, note}], all_present}`.\n\nUntil 30 minutes before the start only `excused` can be set (409 `mentoring.class_not_started`).",
        "operationId": "save_attendance_api_v1_classes__class_id__attendance_put",
        "parameters": [
          {
            "name": "class_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Class Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttendanceIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "attendance.write",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `attendance.write`: admin, mentor."
        }
      }
    },
    "/api/v1/audit": {
      "get": {
        "tags": [
          "audit"
        ],
        "summary": "List Audit Log",
        "description": "Sensitive actions with before/after snapshots, `created_at DESC, id DESC`.",
        "operationId": "list_audit_log_api_v1_audit_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Action, entity type/id, actor name or email",
              "title": "Q"
            },
            "description": "Action, entity type/id, actor name or email"
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Action"
            }
          },
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 60
                },
                {
                  "type": "null"
                }
              ],
              "title": "Entity Type"
            }
          },
          {
            "name": "entity_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Entity Id"
            }
          },
          {
            "name": "actor_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Actor Id"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First local day (viewer's time zone), inclusive",
              "title": "From"
            },
            "description": "First local day (viewer's time zone), inclusive"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last local day, inclusive",
              "title": "To"
            },
            "description": "Last local day, inclusive"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_AuditLogOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "audit.read",
          "roles": [
            "admin"
          ],
          "summary": "Permission `audit.read`: admin."
        }
      }
    },
    "/api/v1/audit/facets": {
      "get": {
        "tags": [
          "audit"
        ],
        "summary": "Audit Facets",
        "description": "Distinct actions and entity types of this portal's log (filter options).",
        "operationId": "audit_facets_api_v1_audit_facets_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditFacetsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "audit.read",
          "roles": [
            "admin"
          ],
          "summary": "Permission `audit.read`: admin."
        }
      }
    },
    "/api/v1/audit/attempts": {
      "get": {
        "tags": [
          "audit"
        ],
        "summary": "List Attempts",
        "description": "Every code run and submit of this portal (practice, contests, assessments, homework):\nwho, which problem, run/submit, language, verdict, Runner time; newest first, with `total`.\nRead from the submissions themselves (no duplicate audit rows); the code is not included.",
        "operationId": "list_attempts_api_v1_audit_attempts_get",
        "parameters": [
          {
            "name": "user",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Name or email (substring)",
              "title": "User"
            },
            "description": "Name or email (substring)"
          },
          {
            "name": "problem",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Title or slug (substring)",
              "title": "Problem"
            },
            "description": "Title or slug (substring)"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          },
          {
            "name": "question_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Question Id"
            }
          },
          {
            "name": "context",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SubmissionContext"
                },
                {
                  "type": "null"
                }
              ],
              "description": "practice, contest, assessment or homework",
              "title": "Context"
            },
            "description": "practice, contest, assessment or homework"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SubmissionKind"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`run` (sample tests) or `submit`",
              "title": "Kind"
            },
            "description": "`run` (sample tests) or `submit`"
          },
          {
            "name": "verdict",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Verdict"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Verdict"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Language"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Language"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First local day (viewer time zone), inclusive",
              "title": "From"
            },
            "description": "First local day (viewer time zone), inclusive"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last local day, inclusive",
              "title": "To"
            },
            "description": "Last local day, inclusive"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_AttemptOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "audit.read",
          "roles": [
            "admin"
          ],
          "summary": "Permission `audit.read`: admin."
        }
      }
    },
    "/api/v1/auth/google/login": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Google Login",
        "description": "Redirect to Google. `state`, PKCE verifier and nonce live in a short signed cookie, with\n`next` (a same-site path, else dropped) for the callback.",
        "operationId": "google_login_api_v1_auth_google_login_get",
        "parameters": [
          {
            "name": "next",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Next"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "To Google's consent screen; a short signed cookie keeps the state, PKCE and `next`.",
            "headers": {
              "Location": {
                "description": "Where the browser goes next.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/google/callback": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Google Callback",
        "description": "Sign the browser in and go to `next` (checked again: only a same-site path). A failed\nsign-in — Google's error, or an ID token Authlib rejects (signature, algorithm, issuer,\naudience, nonce, expiry) — returns to the sign-in page with the error and the same `next`; a\nprofile that is not complete is filled in first, except on the way to a link page (`/s/…`,\n`/assessment/…`).",
        "operationId": "google_callback_api_v1_auth_google_callback_get",
        "responses": {
          "303": {
            "description": "To `next` (a same-site path; the profile form first when the profile is not complete) with the session cookies set, or back to the sign-in page with `?error=<code>`.",
            "headers": {
              "Location": {
                "description": "Where the browser goes next.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Refresh",
        "operationId": "refresh_api_v1_auth_refresh_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/RefreshFailed"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "refreshCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "refresh_cookie",
          "summary": "The refresh cookie, and the CSRF cookie and header (it is an auth cookie): rotates the refresh token and sets a new access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Logout",
        "operationId": "logout_api_v1_auth_logout_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {},
          {
            "refreshCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "refresh_cookie",
          "summary": "Anonymous callers allowed (only the cookies are cleared); with the refresh cookie its session ends, and then the CSRF cookie and header are required.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/signup": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Sign Up",
        "description": "Create an account (or prepare a password for an unverified email) and email a code.\n\nThe answer is the same for every email: a verified address (Google or password) gets a\nnotice with the reset link instead of a code, so the code step can never succeed for it.",
        "operationId": "sign_up_api_v1_auth_signup_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignUpIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthStepOut"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie. The CSRF cookie and header are required even without auth cookies.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/signin": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Sign In",
        "description": "Email + password. A verified account → session cookies. The password of an unfinished\nsign-up → its code step again (`verification_required`, the same for new and existing\naddresses). Anything else: 401 `auth.invalid_credentials`; 429 `auth.locked` after 5\nattempts for the address in 15 minutes (browsers that signed in to it before count apart).",
        "operationId": "sign_in_api_v1_auth_signin_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignInIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthStepOut"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie. The CSRF cookie and header are required even without auth cookies.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/verify-email": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Verify Email",
        "description": "Check the emailed code; success verifies the email, applies the pending password (and\nemails a \"password set\" notice) and signs the browser in.",
        "operationId": "verify_email_api_v1_auth_verify_email_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyCodeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthStepOut"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie. The CSRF cookie and header are required even without auth cookies.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/resend-code": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Resend Code",
        "description": "Email a new code for the same challenge (60 s cooldown, at most 5 emails).",
        "operationId": "resend_code_api_v1_auth_resend_code_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendCodeIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthStepOut"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie. The CSRF cookie and header are required even without auth cookies.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/forgot-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Forgot Password",
        "description": "Email a single-use reset link (30 min) if the address has an account; always 202. A\nsame-site `next` rides along in the link, so the reset returns to the page the visitor came\nfrom (anything else is dropped).",
        "operationId": "forgot_password_api_v1_auth_forgot_password_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie. The CSRF cookie and header are required even without auth cookies.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/reset-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Reset Password",
        "description": "Set a new password with the link's token: ends every session of the account, then signs\nthis browser in.",
        "operationId": "reset_password_api_v1_auth_reset_password_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthStepOut"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie. The CSRF cookie and header are required even without auth cookies.",
          "permission": "public"
        }
      }
    },
    "/api/v1/auth/sessions": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "List Sessions",
        "description": "Active sessions of the caller, this device first, then by last activity (standard page; `total` = every active session).",
        "operationId": "list_sessions_api_v1_auth_sessions_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_AuthSessionOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/auth/sessions/{session_id}": {
      "delete": {
        "tags": [
          "auth"
        ],
        "summary": "End Session",
        "description": "End one of the caller's sessions. Ending this device's session also signs it out.",
        "operationId": "end_session_api_v1_auth_sessions__session_id__delete",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/auth/sessions/revoke-others": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "End Other Sessions",
        "description": "End every session of the caller except this device's.",
        "operationId": "end_other_sessions_api_v1_auth_sessions_revoke_others_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionsRevokedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/skills": {
      "get": {
        "tags": [
          "catalogs"
        ],
        "summary": "List Skills",
        "operationId": "list_skills_api_v1_skills_get",
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Inactive"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProfileSkillOut"
                  },
                  "title": "Response List Skills Api V1 Skills Get"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      },
      "post": {
        "tags": [
          "catalogs"
        ],
        "summary": "Create Skill",
        "operationId": "create_skill_api_v1_skills_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileSkillOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/profile-link-types": {
      "get": {
        "tags": [
          "catalogs"
        ],
        "summary": "List Link Types",
        "description": "The active link types. Candidates' browsers run each `url_regex` as they type, so a type\nwhose stored pattern is outside the bounded subset is left out, as if\ninactive, until an admin fixes it; `include_inactive=true` lists every type as stored.",
        "operationId": "list_link_types_api_v1_profile_link_types_get",
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Inactive"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkTypeOut"
                  },
                  "title": "Response List Link Types Api V1 Profile Link Types Get"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      },
      "post": {
        "tags": [
          "catalogs"
        ],
        "summary": "Create Link Type",
        "operationId": "create_link_type_api_v1_profile_link_types_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkTypeIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkTypeOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/skills/{skill_id}": {
      "patch": {
        "tags": [
          "catalogs"
        ],
        "summary": "Update Skill",
        "operationId": "update_skill_api_v1_skills__skill_id__patch",
        "parameters": [
          {
            "name": "skill_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Skill Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileSkillOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/profile-link-types/{link_type_id}": {
      "patch": {
        "tags": [
          "catalogs"
        ],
        "summary": "Update Link Type",
        "operationId": "update_link_type_api_v1_profile_link_types__link_type_id__patch",
        "parameters": [
          {
            "name": "link_type_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Link Type Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkTypeIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkTypeOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/cohorts": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "List Cohorts",
        "operationId": "list_cohorts_api_v1_cohorts_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/CohortStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_CohortListItem_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Create Cohort",
        "operationId": "create_cohort_api_v1_cohorts_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CohortIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CohortOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/cohorts/mine": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "My Cohorts",
        "description": "Cohorts the caller works with — members assigned to them or classes they host\n(admins: every cohort of the portal), newest first.",
        "operationId": "my_cohorts_api_v1_cohorts_mine_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_CohortBriefOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interns.view",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `interns.view`: admin, mentor."
        }
      }
    },
    "/api/v1/cohorts/{cohort_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Get Cohort",
        "operationId": "get_cohort_api_v1_cohorts__cohort_id__get",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Cohort Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CohortOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "academy"
        ],
        "summary": "Update Cohort",
        "operationId": "update_cohort_api_v1_cohorts__cohort_id__patch",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Cohort Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CohortPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CohortOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Delete Cohort",
        "operationId": "delete_cohort_api_v1_cohorts__cohort_id__delete",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Cohort Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/cohorts/{cohort_id}/members": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Add Member",
        "operationId": "add_member_api_v1_cohorts__cohort_id__members_post",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Cohort Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CohortMemberIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CohortMemberOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/cohorts/{cohort_id}/members/{user_id}": {
      "put": {
        "tags": [
          "academy"
        ],
        "summary": "Update Member",
        "description": "Assign/unassign the mentor (`mentor_id`, null = none) and/or change the status.",
        "operationId": "update_member_api_v1_cohorts__cohort_id__members__user_id__put",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Cohort Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CohortMemberPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CohortMemberOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Remove Member",
        "operationId": "remove_member_api_v1_cohorts__cohort_id__members__user_id__delete",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Cohort Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/contests": {
      "get": {
        "tags": [
          "contests"
        ],
        "summary": "List Contests",
        "description": "Public contests (and unlisted/private ones the caller is registered for): running first,\nthen upcoming (soonest first), then past (latest first).",
        "operationId": "list_contests_api_v1_contests_get",
        "parameters": [
          {
            "name": "when",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "upcoming",
                    "running",
                    "past"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "When"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ContestListItem_"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/contests/{slug}": {
      "get": {
        "tags": [
          "contests"
        ],
        "summary": "Get Contest",
        "operationId": "get_contest_api_v1_contests__slug__get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/contests/{slug}/register": {
      "post": {
        "tags": [
          "contests"
        ],
        "summary": "Register",
        "description": "Idempotent; `contest_registered` notification on the first registration.",
        "operationId": "register_api_v1_contests__slug__register_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      },
      "delete": {
        "tags": [
          "contests"
        ],
        "summary": "Unregister",
        "operationId": "unregister_api_v1_contests__slug__register_delete",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/contests/{slug}/virtual": {
      "post": {
        "tags": [
          "contests"
        ],
        "summary": "Start Virtual",
        "description": "Start a virtual participation (after the end, if allowed); never rated.",
        "operationId": "start_virtual_api_v1_contests__slug__virtual_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/contests/{slug}/problems": {
      "get": {
        "tags": [
          "contests"
        ],
        "summary": "Arena",
        "description": "Problems with statements: participants while running, everyone after the end.",
        "operationId": "arena_api_v1_contests__slug__problems_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArenaOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/contests/{slug}/problems/{label}/run": {
      "post": {
        "tags": [
          "contests"
        ],
        "summary": "Run Code",
        "description": "Visible tests. A retry with the same `Idempotency-Key` returns the first result; 503\n`runner.*` with `retry_after`: the Runner judged nothing (nothing stored, no rate-limit use).",
        "operationId": "run_code_api_v1_contests__slug__problems__label__run_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "label",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][0-9]?$",
              "title": "Label"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SolutionIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunResultOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/contests/{slug}/problems/{label}/submit": {
      "post": {
        "tags": [
          "contests"
        ],
        "summary": "Submit Code",
        "description": "Judged at once; counted submissions update the standings (SSE subscribers see it). A\nretry with the same `Idempotency-Key` returns the first result — judged once, one\nsubmission, counted once.",
        "operationId": "submit_code_api_v1_contests__slug__problems__label__submit_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "label",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][0-9]?$",
              "title": "Label"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SolutionIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContestSubmitOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/contests/{slug}/submissions": {
      "get": {
        "tags": [
          "contests"
        ],
        "summary": "My Submissions",
        "description": "The caller's submissions, newest first; `label` keeps one problem's (an unknown label\nanswers an empty page).",
        "operationId": "my_submissions_api_v1_contests__slug__submissions_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "label",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Label"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ContestSubmissionOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/contests/{slug}/standings": {
      "get": {
        "tags": [
          "contests"
        ],
        "summary": "Standings",
        "description": "Frozen for the public during the freeze; `live=true` is honoured for admins only.\n\nThe whole board, or one numbered page of it (`page`, `page_size`); `total` counts every row\nand `me` is the caller's row on any page. `sort`/`order` order the board before paging\n(disqualified and unranked rows last, virtual rows after official ones).",
        "operationId": "standings_api_v1_contests__slug__standings_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "live",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Live"
            }
          },
          {
            "name": "virtual",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Virtual"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "rank",
                "name",
                "solved",
                "score",
                "penalty"
              ],
              "type": "string",
              "default": "rank",
              "title": "Sort"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string",
              "default": "asc",
              "title": "Order"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandingsOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/contests/{slug}/standings/stream": {
      "get": {
        "tags": [
          "contests"
        ],
        "summary": "Standings Stream",
        "description": "Server-sent events (`text/event-stream`): an `event: standings` with the same payload as\n`GET .../standings` (same page and order) whenever it changes; the stream ends after a few\nminutes and the browser reconnects. Clients without EventSource poll `GET .../standings`\n(field `version`).",
        "operationId": "standings_stream_api_v1_contests__slug__standings_stream_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "live",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Live"
            }
          },
          {
            "name": "virtual",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Virtual"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "rank",
                "name",
                "solved",
                "score",
                "penalty"
              ],
              "type": "string",
              "default": "rank",
              "title": "Sort"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string",
              "default": "asc",
              "title": "Order"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Server-sent events: `event: standings` with the standings page whenever it changes.",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/contests/{slug}/clarifications": {
      "get": {
        "tags": [
          "contests"
        ],
        "summary": "Clarifications",
        "description": "Public answers and announcements plus the caller's own questions, newest first.",
        "operationId": "clarifications_api_v1_contests__slug__clarifications_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ClarificationOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      },
      "post": {
        "tags": [
          "contests"
        ],
        "summary": "Ask",
        "description": "Registered participants ask the jury (until the end; 5/min).",
        "operationId": "ask_api_v1_contests__slug__clarifications_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClarificationIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClarificationOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "contests.participate",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `contests.participate`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/courses": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "List Courses",
        "operationId": "list_courses_api_v1_courses_get",
        "parameters": [
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_CourseListItem_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Create Course",
        "operationId": "create_course_api_v1_courses_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CourseIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/courses/{course_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Get Course",
        "operationId": "get_course_api_v1_courses__course_id__get",
        "parameters": [
          {
            "name": "course_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Course Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "academy"
        ],
        "summary": "Update Course",
        "operationId": "update_course_api_v1_courses__course_id__patch",
        "parameters": [
          {
            "name": "course_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Course Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoursePatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Delete Course",
        "operationId": "delete_course_api_v1_courses__course_id__delete",
        "parameters": [
          {
            "name": "course_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Course Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/courses/{course_id}/modules": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Create Module",
        "operationId": "create_module_api_v1_courses__course_id__modules_post",
        "parameters": [
          {
            "name": "course_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Course Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModuleIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/courses/{course_id}/modules/order": {
      "put": {
        "tags": [
          "academy"
        ],
        "summary": "Reorder Modules",
        "operationId": "reorder_modules_api_v1_courses__course_id__modules_order_put",
        "parameters": [
          {
            "name": "course_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Course Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/modules/{module_id}": {
      "patch": {
        "tags": [
          "academy"
        ],
        "summary": "Update Module",
        "operationId": "update_module_api_v1_modules__module_id__patch",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModulePatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Delete Module",
        "operationId": "delete_module_api_v1_modules__module_id__delete",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/modules/{module_id}/lessons": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Create Lesson",
        "operationId": "create_lesson_api_v1_modules__module_id__lessons_post",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LessonIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/modules/{module_id}/lessons/order": {
      "put": {
        "tags": [
          "academy"
        ],
        "summary": "Reorder Lessons",
        "operationId": "reorder_lessons_api_v1_modules__module_id__lessons_order_put",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/lessons/{lesson_id}": {
      "patch": {
        "tags": [
          "academy"
        ],
        "summary": "Update Lesson",
        "operationId": "update_lesson_api_v1_lessons__lesson_id__patch",
        "parameters": [
          {
            "name": "lesson_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Lesson Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LessonPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Archive Lesson",
        "description": "Lessons are soft-deleted (`archived_at`); progress rows are kept.",
        "operationId": "archive_lesson_api_v1_lessons__lesson_id__delete",
        "parameters": [
          {
            "name": "lesson_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Lesson Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/dashboard": {
      "get": {
        "tags": [
          "dashboard"
        ],
        "summary": "Dashboard",
        "operationId": "dashboard_api_v1_dashboard_get",
        "parameters": [
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 180,
              "minimum": 7,
              "default": 30,
              "title": "Days"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewDashboardOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "dashboard.view",
          "roles": [
            "admin"
          ],
          "summary": "Permission `dashboard.view`: admin."
        }
      }
    },
    "/api/v1/applications/decisions": {
      "post": {
        "tags": [
          "decisions"
        ],
        "summary": "Bulk Decision",
        "description": "The same decision for many applications; one result per application.",
        "operationId": "bulk_decision_api_v1_applications_decisions_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDecisionIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDecisionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.decide",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.decide`: admin."
        }
      }
    },
    "/api/v1/applications/{application_id}/decision": {
      "post": {
        "tags": [
          "decisions"
        ],
        "summary": "Decide",
        "description": "Accept / reject / waitlist with a note; template email unless `send_email` is false.",
        "operationId": "decide_api_v1_applications__application_id__decision_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecisionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.decide",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.decide`: admin."
        }
      }
    },
    "/api/v1/email/queue": {
      "get": {
        "tags": [
          "email"
        ],
        "summary": "Email Queue",
        "description": "The portal's pending emails per template (priority first), how many of them are held,\nand its failed emails.",
        "operationId": "email_queue_api_v1_email_queue_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailQueueOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/email/queue/messages": {
      "get": {
        "tags": [
          "email"
        ],
        "summary": "Email Queue Messages",
        "description": "The portal's failed, sent or pending emails: template, address, attempts, the last error\n(300 characters) and its failure reason, when it was sent, why one waits and until when.\nNever the content.",
        "operationId": "email_queue_messages_api_v1_email_queue_messages_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "failed",
                "pending",
                "sent"
              ],
              "type": "string",
              "description": "failed (newest first), sent (last sent first) or pending (in delivery order)",
              "default": "failed",
              "title": "Status"
            },
            "description": "failed (newest first), sent (last sent first) or pending (in delivery order)"
          },
          {
            "name": "template_code",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 60
                },
                {
                  "type": "null"
                }
              ],
              "title": "Template Code"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 255
                },
                {
                  "type": "null"
                }
              ],
              "description": "Part of the recipient's address",
              "title": "Q"
            },
            "description": "Part of the recipient's address"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_EmailMessageOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/email/queue/counts": {
      "get": {
        "tags": [
          "email"
        ],
        "summary": "Email Queue Counts",
        "description": "How many of the portal's emails are sent, failed and pending (all time); with `q` only\nthose to addresses containing it (did the sign-in code reach this person?).",
        "operationId": "email_queue_counts_api_v1_email_queue_counts_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 255
                },
                {
                  "type": "null"
                }
              ],
              "description": "Part of the recipient's address",
              "title": "Q"
            },
            "description": "Part of the recipient's address"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailQueueCountsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/email/history": {
      "get": {
        "tags": [
          "email"
        ],
        "summary": "Email History",
        "description": "The portal's emails sent, failed and held per day and per template over the last 7 or 30\ndays, and why the failed ones failed (address, mailbox full, sign-in to the mail server,\nconnection, blocked, quota, other).",
        "operationId": "email_history_api_v1_email_history_get",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 30,
              "minimum": 1,
              "description": "Local days, today included (the page: 7 or 30)",
              "default": 7,
              "title": "Days"
            },
            "description": "Local days, today included (the page: 7 or 30)"
          },
          {
            "name": "template_code",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 60
                },
                {
                  "type": "null"
                }
              ],
              "title": "Template Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailHistoryOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/email/queue/resend-failed": {
      "post": {
        "tags": [
          "email"
        ],
        "summary": "Resend Failed Emails",
        "description": "Queue the portal's failed emails of the last 7 days again (at most 200; expired sign-in\ncodes and reset links excepted). Audit-logged (`email.resend_failed`).",
        "operationId": "resend_failed_emails_api_v1_email_queue_resend_failed_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailResendFailedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/email/queue/{message_id}/resend": {
      "post": {
        "tags": [
          "email"
        ],
        "summary": "Resend Email",
        "description": "Queue one failed email again with fresh attempts. 404 `email_queue.not_found`, 409\n`email_queue.not_failed` / `email_queue.not_resendable`. Audit-logged (`email.resend`).",
        "operationId": "resend_email_api_v1_email_queue__message_id__resend_post",
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Message Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailMessageOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/files/presign-upload": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Presign Upload",
        "operationId": "presign_upload_api_v1_files_presign_upload_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresignUploadIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PresignUploadOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/files/{file_id}/complete": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Complete Upload",
        "operationId": "complete_upload_api_v1_files__file_id__complete_post",
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "File Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/files/{file_id}/url": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "File Url",
        "description": "Short-lived signed URL; documents, images and recordings are served inline (playable in\nthe page), everything else as a download.",
        "operationId": "file_url_api_v1_files__file_id__url_get",
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "File Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUrlOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/grading": {
      "get": {
        "tags": [
          "grading"
        ],
        "summary": "Grading Queue",
        "description": "Oldest submissions first; `reason` explains why an answer has no score.",
        "operationId": "grading_queue_api_v1_grading_get",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "pending",
                "ai_graded"
              ],
              "type": "string",
              "default": "pending",
              "title": "State"
            }
          },
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/QuestionType"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingPageOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "scores.override",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `scores.override`: admin, mentor."
        }
      }
    },
    "/api/v1/grading/{session_question_id}": {
      "get": {
        "tags": [
          "grading"
        ],
        "summary": "Grading Detail",
        "description": "Question, rubric, answer (text / transcript / code), AI grade and override history.",
        "operationId": "grading_detail_api_v1_grading__session_question_id__get",
        "parameters": [
          {
            "name": "session_question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Question Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "scores.override",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `scores.override`: admin, mentor."
        }
      }
    },
    "/api/v1/grading/{session_question_id}/retry-ai": {
      "post": {
        "tags": [
          "grading"
        ],
        "summary": "Retry Ai",
        "description": "Queue AI grading (written answer), the AI feedback (judged Python / SQL answer) or the\npitch pipeline again (AI tools rate limit).",
        "operationId": "retry_ai_api_v1_grading__session_question_id__retry_ai_post",
        "parameters": [
          {
            "name": "session_question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Question Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueuedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "scores.override",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `scores.override`: admin, mentor."
        }
      }
    },
    "/api/v1/scores/override": {
      "post": {
        "tags": [
          "grading"
        ],
        "summary": "Override Score",
        "description": "Set a question's score by hand (0..points, reason required); totals are recomputed.",
        "operationId": "override_score_api_v1_scores_override_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OverrideIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OverrideOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "scores.override",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `scores.override`: admin, mentor."
        }
      }
    },
    "/api/v1/modules/{module_id}/homeworks": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Create Homework",
        "operationId": "create_homework_api_v1_modules__module_id__homeworks_post",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HomeworkIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/modules/{module_id}/homeworks/order": {
      "put": {
        "tags": [
          "academy"
        ],
        "summary": "Reorder Homeworks",
        "operationId": "reorder_homeworks_api_v1_modules__module_id__homeworks_order_put",
        "parameters": [
          {
            "name": "module_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Module Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/homeworks/{homework_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Get Homework",
        "operationId": "get_homework_api_v1_homeworks__homework_id__get",
        "parameters": [
          {
            "name": "homework_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Homework Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HomeworkAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "academy"
        ],
        "summary": "Update Homework",
        "operationId": "update_homework_api_v1_homeworks__homework_id__patch",
        "parameters": [
          {
            "name": "homework_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Homework Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HomeworkPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "academy"
        ],
        "summary": "Delete Homework",
        "operationId": "delete_homework_api_v1_homeworks__homework_id__delete",
        "parameters": [
          {
            "name": "homework_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Homework Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "academy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `academy.manage`: admin."
        }
      }
    },
    "/api/v1/homework-submissions": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Grading Queue",
        "description": "Pending attempts oldest first (mentors: their interns only; admins: everything).",
        "operationId": "grading_queue_api_v1_homework_submissions_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "pending",
                "graded",
                "returned",
                "all"
              ],
              "type": "string",
              "default": "pending",
              "title": "Status"
            }
          },
          {
            "name": "cohort_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cohort Id"
            }
          },
          {
            "name": "homework_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Homework Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_GradingItemOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "homework.grade",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `homework.grade`: admin, mentor."
        }
      }
    },
    "/api/v1/homework-submissions/{submission_id}": {
      "get": {
        "tags": [
          "academy"
        ],
        "summary": "Get Submission",
        "operationId": "get_submission_api_v1_homework_submissions__submission_id__get",
        "parameters": [
          {
            "name": "submission_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Submission Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "homework.grade",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `homework.grade`: admin, mentor."
        }
      }
    },
    "/api/v1/homework-submissions/{submission_id}/grade": {
      "post": {
        "tags": [
          "academy"
        ],
        "summary": "Grade Submission",
        "description": "`action: grade` (score required) or `return` for resubmission (feedback required);\nnotifies the intern (`homework_graded`).",
        "operationId": "grade_submission_api_v1_homework_submissions__submission_id__grade_post",
        "parameters": [
          {
            "name": "submission_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Submission Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GradeIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "homework.grade",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `homework.grade`: admin, mentor."
        }
      }
    },
    "/api/v1/integration/sets": {
      "get": {
        "tags": [
          "integration"
        ],
        "summary": "List Sets",
        "description": "Every set of the portal, newest first: link, status (draft = opens later, open, closed,\narchived), dates, the assessment and how many invited people started and submitted.",
        "operationId": "list_sets_api_v1_integration_sets_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IntegrationSetOut"
                  },
                  "type": "array",
                  "title": "Response List Sets Api V1 Integration Sets Get"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/IntegrationUnauthorized"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "429": {
            "$ref": "#/components/responses/IntegrationRateLimited"
          }
        },
        "security": [
          {
            "integrationKey": []
          }
        ],
        "x-auth": {
          "kind": "integration_key",
          "permission": "integration.api",
          "summary": "The portal's integration API key."
        }
      }
    },
    "/api/v1/integration/sets/{set_id}/invites": {
      "post": {
        "tags": [
          "integration"
        ],
        "summary": "Invite",
        "description": "Invite up to 200 people by e-mail; each gets a personal link. An e-mail invited before is\n`existing` (no new e-mail) unless `resend` is true and the person has not started. Closed or\narchived sets answer 409 `integration.set_closed`, a set without an active assessment 409\n`integration.set_not_ready`.",
        "operationId": "invite_api_v1_integration_sets__set_id__invites_post",
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Set Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitesIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitesOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/IntegrationUnauthorized"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          },
          "429": {
            "$ref": "#/components/responses/IntegrationRateLimited"
          }
        },
        "security": [
          {
            "integrationKey": []
          }
        ],
        "x-auth": {
          "kind": "integration_key",
          "permission": "integration.api",
          "summary": "The portal's integration API key."
        }
      },
      "get": {
        "tags": [
          "integration"
        ],
        "summary": "List Invites",
        "description": "The set's invites in invite order (with `total`), each with its status, times and, once\nscored, the score (0-100), the section scores and the integrity score.",
        "operationId": "list_invites_api_v1_integration_sets__set_id__invites_get",
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Set Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "invited",
                    "opened",
                    "started",
                    "submitted",
                    "scored",
                    "expired",
                    "voided"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 320
                },
                {
                  "type": "null"
                }
              ],
              "title": "Email"
            }
          },
          {
            "name": "external_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "External Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_InviteOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/IntegrationUnauthorized"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          },
          "429": {
            "$ref": "#/components/responses/IntegrationRateLimited"
          }
        },
        "security": [
          {
            "integrationKey": []
          }
        ],
        "x-auth": {
          "kind": "integration_key",
          "permission": "integration.api",
          "summary": "The portal's integration API key."
        }
      }
    },
    "/api/v1/integration/invites/{invite_id}": {
      "get": {
        "tags": [
          "integration"
        ],
        "summary": "Get Invite",
        "description": "One invite's status and result.",
        "operationId": "get_invite_api_v1_integration_invites__invite_id__get",
        "parameters": [
          {
            "name": "invite_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Invite Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationInviteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/IntegrationUnauthorized"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          },
          "429": {
            "$ref": "#/components/responses/IntegrationRateLimited"
          }
        },
        "security": [
          {
            "integrationKey": []
          }
        ],
        "x-auth": {
          "kind": "integration_key",
          "permission": "integration.api",
          "summary": "The portal's integration API key."
        }
      }
    },
    "/api/v1/integration-keys": {
      "get": {
        "tags": [
          "integration"
        ],
        "summary": "List Keys",
        "description": "The portal's keys (never their secrets): live first, then revoked; newest first.",
        "operationId": "list_keys_api_v1_integration_keys_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IntegrationKeyOut"
                  },
                  "type": "array",
                  "title": "Response List Keys Api V1 Integration Keys Get"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      },
      "post": {
        "tags": [
          "integration"
        ],
        "summary": "Create Key",
        "description": "A new key; `secret` is in this answer only. 409 `integration.too_many_keys` over 10 live\nkeys.",
        "operationId": "create_key_api_v1_integration_keys_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntegrationKeyIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationKeyCreatedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/integration-keys/{key_id}/revoke": {
      "post": {
        "tags": [
          "integration"
        ],
        "summary": "Revoke Key",
        "description": "Revoke at once and for good (idempotent).",
        "operationId": "revoke_key_api_v1_integration_keys__key_id__revoke_post",
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Key Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationKeyOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/interview-slots": {
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Create Slots",
        "description": "Bulk-create slots: `single`, weekly `recurring` or a `block` cut into equal slots.\n\nSlots in the past or overlapping the interviewer's other slots are skipped (reported).",
        "operationId": "create_slots_api_v1_interview_slots_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/SingleSlotsIn"
                  },
                  {
                    "$ref": "#/components/schemas/RecurringSlotsIn"
                  },
                  {
                    "$ref": "#/components/schemas/BlockSlotsIn"
                  }
                ],
                "discriminator": {
                  "propertyName": "mode",
                  "mapping": {
                    "single": "#/components/schemas/SingleSlotsIn",
                    "recurring": "#/components/schemas/RecurringSlotsIn",
                    "block": "#/components/schemas/BlockSlotsIn"
                  }
                },
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlotsCreatedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      },
      "get": {
        "tags": [
          "interviews"
        ],
        "summary": "List Slots",
        "description": "Slots of a calendar range (at most 92 days) by start time; a calendar view reads every\npage (`limit` up to 200).",
        "operationId": "list_slots_api_v1_interview_slots_get",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Default: this Monday",
              "title": "From"
            },
            "description": "Default: this Monday"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Default: from + 7 days",
              "title": "To"
            },
            "description": "Default: from + 7 days"
          },
          {
            "name": "interviewer_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Interviewer Id"
            }
          },
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SlotStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_SlotOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interview-slots/{slot_id}": {
      "patch": {
        "tags": [
          "interviews"
        ],
        "summary": "Update Slot",
        "description": "Open slots: everything. Booked slots: link / location / interviewer (both are notified).",
        "operationId": "update_slot_api_v1_interview_slots__slot_id__patch",
        "parameters": [
          {
            "name": "slot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Slot Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SlotPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlotOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "interviews"
        ],
        "summary": "Delete Slot",
        "description": "Only open (or cancelled) slots; booked ones go through the cancel flow.",
        "operationId": "delete_slot_api_v1_interview_slots__slot_id__delete",
        "parameters": [
          {
            "name": "slot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Slot Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interview-slots/{slot_id}/cancel": {
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Cancel Slot",
        "description": "Cancel a slot; a booked candidate gets a fresh booking link to pick another time.",
        "operationId": "cancel_slot_api_v1_interview_slots__slot_id__cancel_post",
        "parameters": [
          {
            "name": "slot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Slot Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlotCancelOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interview-scorecards": {
      "get": {
        "tags": [
          "interviews"
        ],
        "summary": "List Scorecards",
        "description": "Scorecard templates (default first, then by title); the default template is created on\nfirst use.",
        "operationId": "list_scorecards_api_v1_interview_scorecards_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Title",
              "title": "Q"
            },
            "description": "Title"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ScorecardOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Create Scorecard",
        "operationId": "create_scorecard_api_v1_interview_scorecards_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScorecardIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScorecardOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interview-scorecards/{scorecard_id}": {
      "patch": {
        "tags": [
          "interviews"
        ],
        "summary": "Update Scorecard",
        "operationId": "update_scorecard_api_v1_interview_scorecards__scorecard_id__patch",
        "parameters": [
          {
            "name": "scorecard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Scorecard Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScorecardPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScorecardOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "interviews"
        ],
        "summary": "Delete Scorecard",
        "operationId": "delete_scorecard_api_v1_interview_scorecards__scorecard_id__delete",
        "parameters": [
          {
            "name": "scorecard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Scorecard Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interviews/options": {
      "get": {
        "tags": [
          "interviews"
        ],
        "summary": "Interview Options",
        "description": "Programs and interviewers (admins + mentors) for the slot and invite forms.",
        "operationId": "interview_options_api_v1_interviews_options_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewOptionsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interviews/candidates": {
      "get": {
        "tags": [
          "interviews"
        ],
        "summary": "Invite Candidates",
        "description": "Applications ready for an interview invite (best total score first).",
        "operationId": "invite_candidates_api_v1_interviews_candidates_get",
        "parameters": [
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ApplicationStatus",
              "default": "shortlisted"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_InviteCandidateOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interviews/invite": {
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Invite",
        "description": "Send booking links (email + in-app + Telegram); results per application.",
        "operationId": "invite_api_v1_interviews_invite_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewInviteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/interviews": {
      "get": {
        "tags": [
          "interviews"
        ],
        "summary": "List Interviews",
        "description": "Interviews with candidate and slot. Without `interviews.manage` only your own.",
        "operationId": "list_interviews_api_v1_interviews_get",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Day in `tz` (YYYY-MM-DD)",
              "title": "Date"
            },
            "description": "Day in `tz` (YYYY-MM-DD)"
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64,
              "default": "Asia/Tashkent",
              "title": "Tz"
            }
          },
          {
            "name": "mine",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Mine"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/InterviewStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "program_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Program Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "upcoming",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Upcoming"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_InterviewListItem_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.feedback",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `interviews.feedback`: admin, mentor."
        }
      }
    },
    "/api/v1/interviews/book/{token}": {
      "get": {
        "tags": [
          "interviews"
        ],
        "summary": "Booking Page",
        "description": "Invite state and open future slots grouped by day (Asia/Tashkent).",
        "operationId": "booking_page_api_v1_interviews_book__token__get",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      },
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Book Slot",
        "description": "Book a slot, or reschedule once until 12 h before; confirmation with `.ics` to both.",
        "operationId": "book_slot_api_v1_interviews_book__token__post",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/interviews/{interview_id}/brief": {
      "get": {
        "tags": [
          "interviews"
        ],
        "summary": "Interview Brief",
        "description": "One-page candidate brief: profile, skills, scores, flags, suggested questions.",
        "operationId": "interview_brief_api_v1_interviews__interview_id__brief_get",
        "parameters": [
          {
            "name": "interview_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Interview Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewBriefOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.feedback",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `interviews.feedback`: admin, mentor."
        }
      }
    },
    "/api/v1/interviews/{interview_id}/no-show": {
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Mark No Show",
        "description": "Marked by the interviewer (or an admin); frees the slot.",
        "operationId": "mark_no_show_api_v1_interviews__interview_id__no_show_post",
        "parameters": [
          {
            "name": "interview_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Interview Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewListItem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.feedback",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `interviews.feedback`: admin, mentor."
        }
      }
    },
    "/api/v1/interviews/{interview_id}/cancel": {
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Cancel Interview",
        "description": "Staff cancel: frees the slot, the application returns to `shortlisted`.",
        "operationId": "cancel_interview_api_v1_interviews__interview_id__cancel_post",
        "parameters": [
          {
            "name": "interview_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Interview Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewListItem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `interviews.manage`: admin."
        }
      }
    },
    "/api/v1/applications/{application_id}/interview-link": {
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Fresh Booking Link",
        "description": "Owner: a fresh booking link for the active interview (rotates the emailed token).",
        "operationId": "fresh_booking_link_api_v1_applications__application_id__interview_link_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingLinkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/interviews/{interview_id}/feedback": {
      "post": {
        "tags": [
          "interviews"
        ],
        "summary": "Submit Feedback",
        "description": "Scorecard (1–5 per criterion), recommendation and notes; resubmitting updates it.",
        "operationId": "submit_feedback_api_v1_interviews__interview_id__feedback_post",
        "parameters": [
          {
            "name": "interview_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Interview Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeedbackIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedbackOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interviews.feedback",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `interviews.feedback`: admin, mentor."
        }
      }
    },
    "/api/v1/me": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "Get Me",
        "operationId": "get_me_api_v1_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      },
      "patch": {
        "tags": [
          "me"
        ],
        "summary": "Update Me",
        "operationId": "update_me_api_v1_me_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeUpdateIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/profile": {
      "get": {
        "tags": [
          "me"
        ],
        "summary": "Get Profile",
        "operationId": "get_profile_api_v1_me_profile_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      },
      "patch": {
        "tags": [
          "me"
        ],
        "summary": "Update Profile",
        "operationId": "update_profile_api_v1_me_profile_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUpdateIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/skills": {
      "put": {
        "tags": [
          "me"
        ],
        "summary": "Put Skills",
        "operationId": "put_skills_api_v1_me_skills_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/UserSkillIn"
                },
                "type": "array",
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserSkillOut"
                  },
                  "type": "array",
                  "title": "Response Put Skills Api V1 Me Skills Put"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/links": {
      "put": {
        "tags": [
          "me"
        ],
        "summary": "Put Links",
        "operationId": "put_links_api_v1_me_links_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/UserLinkIn"
                },
                "type": "array",
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserLinkOut"
                  },
                  "type": "array",
                  "title": "Response Put Links Api V1 Me Links Put"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/telegram/link": {
      "post": {
        "tags": [
          "me"
        ],
        "summary": "Telegram Link",
        "operationId": "telegram_link_api_v1_me_telegram_link_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelegramLinkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/telegram": {
      "delete": {
        "tags": [
          "me"
        ],
        "summary": "Telegram Unlink",
        "operationId": "telegram_unlink_api_v1_me_telegram_delete",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/members": {
      "get": {
        "tags": [
          "members"
        ],
        "summary": "List Members",
        "description": "Members with `total`; `role` filters by the stored membership role (a repeated `role`\nmatches any of them).",
        "operationId": "list_members_api_v1_members_get",
        "parameters": [
          {
            "name": "role",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Role"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several roles",
              "title": "Role"
            },
            "description": "Repeat for several roles"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Name or email",
              "title": "Q"
            },
            "description": "Name or email"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "joined",
                "name",
                "email",
                "last_login"
              ],
              "type": "string",
              "default": "joined",
              "title": "Sort"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "asc",
                    "desc"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Default: newest first for `joined` / `last_login`, A–Z otherwise",
              "title": "Order"
            },
            "description": "Default: newest first for `joined` / `last_login`, A–Z otherwise"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_MemberOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "members.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `members.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "members"
        ],
        "summary": "Invite Member",
        "operationId": "invite_member_api_v1_members_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberInviteIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "members.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `members.manage`: admin."
        }
      }
    },
    "/api/v1/members/{user_id}": {
      "patch": {
        "tags": [
          "members"
        ],
        "summary": "Change Role",
        "operationId": "change_role_api_v1_members__user_id__patch",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberRoleIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "members.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `members.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "members"
        ],
        "summary": "Remove Member",
        "operationId": "remove_member_api_v1_members__user_id__delete",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "members.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `members.manage`: admin."
        }
      }
    },
    "/api/v1/cohort-members": {
      "get": {
        "tags": [
          "mentoring"
        ],
        "summary": "List Members",
        "description": "Activity score + trend, attendance, homework status, last activity and risk badge;\nby cohort, then name.",
        "operationId": "list_members_api_v1_cohort_members_get",
        "parameters": [
          {
            "name": "cohort_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cohort Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Name or email",
              "title": "Q"
            },
            "description": "Name or email"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_InternRowOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interns.view",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `interns.view`: admin, mentor."
        }
      }
    },
    "/api/v1/cohort-members/notes/{note_id}": {
      "delete": {
        "tags": [
          "mentoring"
        ],
        "summary": "Delete Note",
        "description": "Authors delete their own notes; admins any.",
        "operationId": "delete_note_api_v1_cohort_members_notes__note_id__delete",
        "parameters": [
          {
            "name": "note_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Note Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "mentor_notes.rw",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `mentor_notes.rw`: admin, mentor."
        }
      }
    },
    "/api/v1/cohort-members/{user_id}": {
      "get": {
        "tags": [
          "mentoring"
        ],
        "summary": "Member Detail",
        "operationId": "member_detail_api_v1_cohort_members__user_id__get",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          },
          {
            "name": "cohort_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cohort Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "interns.view",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `interns.view`: admin, mentor."
        }
      }
    },
    "/api/v1/cohort-members/{user_id}/notes": {
      "post": {
        "tags": [
          "mentoring"
        ],
        "summary": "Add Note",
        "operationId": "add_note_api_v1_cohort_members__user_id__notes_post",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MentoringNoteIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MentoringNoteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "mentor_notes.rw",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `mentor_notes.rw`: admin, mentor."
        }
      }
    },
    "/api/v1/cohort-members/{user_id}/rating": {
      "put": {
        "tags": [
          "mentoring"
        ],
        "summary": "Rate Week",
        "description": "Weekly 1–5 rating; `week_start` is a Monday; one rating per member and week (upsert).",
        "operationId": "rate_week_api_v1_cohort_members__user_id__rating_put",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RatingIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RatingOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "mentor_notes.rw",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `mentor_notes.rw`: admin, mentor."
        }
      }
    },
    "/api/v1/notifications": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "List Notifications",
        "operationId": "list_notifications_api_v1_notifications_get",
        "parameters": [
          {
            "name": "unread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Unread"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_NotificationOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/notifications/unread-count": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "Unread Count",
        "operationId": "unread_count_api_v1_notifications_unread_count_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadCountOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/notifications/{notification_id}/read": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "Mark Read",
        "operationId": "mark_read_api_v1_notifications__notification_id__read_post",
        "parameters": [
          {
            "name": "notification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Notification Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/notifications/read-all": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "Mark All Read",
        "operationId": "mark_all_read_api_v1_notifications_read_all_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/portal": {
      "get": {
        "tags": [
          "portals"
        ],
        "summary": "Current Portal",
        "description": "Branding and feature flags of the portal serving this host.",
        "operationId": "current_portal_api_v1_portal_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalPublicOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/portal/settings": {
      "get": {
        "tags": [
          "portals"
        ],
        "summary": "Admin Portal",
        "operationId": "admin_portal_api_v1_portal_settings_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      },
      "patch": {
        "tags": [
          "portals"
        ],
        "summary": "Update Portal",
        "operationId": "update_portal_api_v1_portal_settings_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortalUpdateIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/practice/problems": {
      "get": {
        "tags": [
          "practice"
        ],
        "summary": "List Problems",
        "description": "Ready `usage=practice` Python/SQL problems, easiest first, with solve stats.\n\n`q` searches the base title, the translated titles (uz, en) and the topic, in any case and\nwith the apostrophe variants alike (o' = oʻ = o‘ = o’). A repeated filter\n(`?difficulty=easy&difficulty=hard`) matches any of its values; different filters combine.",
        "operationId": "list_problems_api_v1_practice_problems_get",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionType"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several types",
              "title": "Type"
            },
            "description": "Repeat for several types"
          },
          {
            "name": "difficulty",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Difficulty"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several levels",
              "title": "Difficulty"
            },
            "description": "Repeat for several levels"
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "maxItems": 20
                },
                {
                  "type": "null"
                }
              ],
              "description": "Any of these tags",
              "title": "Tag"
            },
            "description": "Any of these tags"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "solved",
                      "attempted",
                      "not_started"
                    ],
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "My state, repeat for several; ignored when anonymous",
              "title": "Status"
            },
            "description": "My state, repeat for several; ignored when anonymous"
          },
          {
            "name": "solved",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only (un)solved by me; ignored when anonymous",
              "title": "Solved"
            },
            "description": "Only (un)solved by me; ignored when anonymous"
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "uz",
                    "en"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by the title in this UI language (fallback: base title)",
              "title": "Locale"
            },
            "description": "Order by the title in this UI language (fallback: base title)"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_PracticeProblemItem_"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/practice/tags": {
      "get": {
        "tags": [
          "practice"
        ],
        "summary": "List Tags",
        "operationId": "list_tags_api_v1_practice_tags_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PracticeTagOut"
                  },
                  "type": "array",
                  "title": "Response List Tags Api V1 Practice Tags Get"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/practice/problems/{slug}": {
      "get": {
        "tags": [
          "practice"
        ],
        "summary": "Get Problem",
        "description": "Candidate view of the statement (never hidden tests or reference solutions).",
        "operationId": "get_problem_api_v1_practice_problems__slug__get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PracticeProblemOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/practice/problems/{slug}/run": {
      "post": {
        "tags": [
          "practice"
        ],
        "summary": "Run Code",
        "description": "Visible tests only (20/min per user). A retry with the same `Idempotency-Key` returns the\nfirst result (409 `request.in_progress` while it runs); 503 `runner.*` with `retry_after`:\nthe Runner judged nothing (nothing stored, no rate-limit use).",
        "operationId": "run_code_api_v1_practice_problems__slug__run_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SolutionIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunResultOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "practice.solve",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `practice.solve`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/practice/problems/{slug}/submit": {
      "post": {
        "tags": [
          "practice"
        ],
        "summary": "Submit Code",
        "description": "All tests (10/min per user); hidden tests are reported as verdict counts only. A retry\nwith the same `Idempotency-Key` returns the first result — judged once, one submission.",
        "operationId": "submit_code_api_v1_practice_problems__slug__submit_post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SolutionIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PracticeSubmitOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "practice.solve",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `practice.solve`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/practice/problems/{slug}/submissions": {
      "get": {
        "tags": [
          "practice"
        ],
        "summary": "My Submissions",
        "operationId": "my_submissions_api_v1_practice_problems__slug__submissions_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_PracticeSubmissionOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "practice.solve",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `practice.solve`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/practice/me": {
      "get": {
        "tags": [
          "practice"
        ],
        "summary": "My Stats",
        "description": "Solved/attempted counts, streaks and 90 days of activity of the caller.",
        "operationId": "my_stats_api_v1_practice_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PracticeStatsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "practice.solve",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `practice.solve`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/practice/leaderboard": {
      "get": {
        "tags": [
          "practice"
        ],
        "summary": "Leaderboard",
        "description": "Full ranking of this portal's solvers by problems first accepted in the period, then\npoints; shared ranks; streaks in Asia/Tashkent days; `me` = the caller's row on any page.\nNames follow the public-profile rules (handle only for public profiles, never emails).\nPages by `cursor` or by number (`page` + `page_size`); `total` is always filled.",
        "operationId": "leaderboard_api_v1_practice_leaderboard_get",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "week",
                "month",
                "all"
              ],
              "type": "string",
              "description": "`week` = last 7 days, `month` = last 30 days (rolling), `all`",
              "default": "all",
              "title": "Period"
            },
            "description": "`week` = last 7 days, `month` = last 30 days (rolling), `all`"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "Page size (the UI offers 25, 50 and 100)",
              "default": 50,
              "title": "Limit"
            },
            "description": "Page size (the UI offers 25, 50 and 100)"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (instead of `cursor`)",
              "title": "Page"
            },
            "description": "1-based page number (instead of `cursor`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PracticeLeaderboardOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/me/privacy": {
      "get": {
        "tags": [
          "privacy"
        ],
        "summary": "My Privacy",
        "description": "Recent exports of this portal and the open (or last) deletion request.",
        "operationId": "my_privacy_api_v1_me_privacy_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyPrivacyOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/privacy/exports": {
      "post": {
        "tags": [
          "privacy"
        ],
        "summary": "Request Export",
        "description": "Queue \"download my data\"; the worker builds the zip and notifies the user.",
        "operationId": "request_export_api_v1_me_privacy_exports_post",
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataExportOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/privacy/exports/{export_id}/download": {
      "get": {
        "tags": [
          "privacy"
        ],
        "summary": "Download Export",
        "description": "Short-lived download URL of a ready export (owner only, audit-logged).",
        "operationId": "download_export_api_v1_me_privacy_exports__export_id__download_get",
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Export Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/me/privacy/deletion-request": {
      "post": {
        "tags": [
          "privacy"
        ],
        "summary": "Request Deletion",
        "description": "Ask for the account to be erased; an admin of this portal reviews the request.",
        "operationId": "request_deletion_api_v1_me_privacy_deletion_request_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeletionRequestIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyDeletionRequestOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      },
      "delete": {
        "tags": [
          "privacy"
        ],
        "summary": "Cancel Deletion",
        "description": "Withdraw a pending deletion request.",
        "operationId": "cancel_deletion_api_v1_me_privacy_deletion_request_delete",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/privacy/deletion-requests": {
      "get": {
        "tags": [
          "privacy"
        ],
        "summary": "List Deletion Requests",
        "description": "This portal's deletion requests; `status=pending` is the work queue (oldest first).",
        "operationId": "list_deletion_requests_api_v1_privacy_deletion_requests_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DeletionRequestStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Name or email",
              "title": "Q"
            },
            "description": "Name or email"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_DeletionRequestOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "privacy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `privacy.manage`: admin."
        }
      }
    },
    "/api/v1/privacy/deletion-requests/{request_id}/approve": {
      "post": {
        "tags": [
          "privacy"
        ],
        "summary": "Approve Deletion Request",
        "description": "Approve: the worker erases the account and emails the person.",
        "operationId": "approve_deletion_request_api_v1_privacy_deletion_requests__request_id__approve_post",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Request Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletionRequestOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "privacy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `privacy.manage`: admin."
        }
      }
    },
    "/api/v1/privacy/deletion-requests/{request_id}/reject": {
      "post": {
        "tags": [
          "privacy"
        ],
        "summary": "Reject Deletion Request",
        "description": "Reject with a reason (sent to the person).",
        "operationId": "reject_deletion_request_api_v1_privacy_deletion_requests__request_id__reject_post",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Request Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletionRequestOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "privacy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `privacy.manage`: admin."
        }
      }
    },
    "/api/v1/privacy/users/{user_id}/delete": {
      "post": {
        "tags": [
          "privacy"
        ],
        "summary": "Delete User Data",
        "description": "Admin \"delete user data\" for a member of this portal, with a reason (audit-logged).",
        "operationId": "delete_user_data_api_v1_privacy_users__user_id__delete_post",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "User Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonIn"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletionRequestOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "privacy.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `privacy.manage`: admin."
        }
      }
    },
    "/api/v1/sessions/{session_id}/replay": {
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "Session Replay",
        "description": "Timeline events, one question's code snapshots (patches + checkpoints), typing\nstatistics and away intervals. Webcam / screen frames: `GET /sessions/{id}/frames`.",
        "operationId": "session_replay_api_v1_sessions__session_id__replay_get",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "question",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Session question whose snapshots to include (default: first code one)",
              "title": "Question"
            },
            "description": "Session question whose snapshots to include (default: first code one)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/sessions/{session_id}/integrity": {
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "Session Integrity",
        "description": "Score, level, flags with evidence and review marks, plagiarism peers (other candidates\nare named only for users who may read every application). `computed=false` until the\nworker has built the report.",
        "operationId": "session_integrity_api_v1_sessions__session_id__integrity_get",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProctoringIntegrityOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/sessions/{session_id}/integrity/review": {
      "post": {
        "tags": [
          "proctoring"
        ],
        "summary": "Review Integrity",
        "description": "Dismiss or confirm flags (null clears a mark) and keep a note; audit `integrity.review`.\nThe stored score is not changed (`adjusted_score` shows it without dismissed flags).",
        "operationId": "review_integrity_api_v1_sessions__session_id__integrity_review_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntegrityReviewIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProctoringIntegrityOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.decide",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.decide`: admin."
        }
      }
    },
    "/api/v1/sessions/{session_id}/integrity/recompute": {
      "post": {
        "tags": [
          "proctoring"
        ],
        "summary": "Recompute Integrity",
        "description": "Rebuild the report now with the current weights (keeps the review).",
        "operationId": "recompute_integrity_api_v1_sessions__session_id__integrity_recompute_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProctoringIntegrityOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.decide",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.decide`: admin."
        }
      }
    },
    "/api/v1/portal/settings/integrity": {
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "Get Integrity Weights",
        "description": "Portal integrity weights (the defaults until an admin changes them).",
        "operationId": "get_integrity_weights_api_v1_portal_settings_integrity_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrityWeightsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      },
      "put": {
        "tags": [
          "proctoring"
        ],
        "summary": "Put Integrity Weights",
        "description": "Replace the weights; a change gets a new version string (reports keep the version they\nwere computed with); audit `settings.integrity_weights`.",
        "operationId": "put_integrity_weights_api_v1_portal_settings_integrity_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntegrityWeightsIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrityWeightsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/assessments/{assessment_id}/plagiarism": {
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "List Plagiarism",
        "description": "Suspicious pairs (similarity ≥ 0.6, most similar first) with the flag threshold, how\nmany submitted sessions were compared and whether a run is in progress.",
        "operationId": "list_plagiarism_api_v1_assessments__assessment_id__plagiarism_get",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          },
          {
            "name": "question_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only pairs of this question",
              "title": "Question Id"
            },
            "description": "Only pairs of this question"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlagiarismListOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/assessments/{assessment_id}/plagiarism/{match_id}": {
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "Plagiarism Pair",
        "description": "One pair with both candidates' final code for the side-by-side diff.",
        "operationId": "plagiarism_pair_api_v1_assessments__assessment_id__plagiarism__match_id__get",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          },
          {
            "name": "match_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Match Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlagiarismPairDetailOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/assessments/{assessment_id}/plagiarism/run": {
      "post": {
        "tags": [
          "proctoring"
        ],
        "summary": "Run Plagiarism",
        "description": "Queue a plagiarism check now (it also runs automatically after sessions are submitted).",
        "operationId": "run_plagiarism_api_v1_assessments__assessment_id__plagiarism_run_post",
        "parameters": [
          {
            "name": "assessment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Assessment Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlagiarismRunOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "assessments.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `assessments.manage`: admin."
        }
      }
    },
    "/api/v1/sessions/{session_id}/frames": {
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "Session Frames",
        "description": "One numbered page of the session's frames in time order (`t_ms`, then id) with presigned\nURLs valid for `url_ttl_sec` (5 minutes) and the size of each JPEG. Frame i of a capture is\nentry i of that capture's `times` in the timeline.",
        "operationId": "session_frames_api_v1_sessions__session_id__frames_get",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/MediaKind"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only webcam or only screen frames",
              "title": "Kind"
            },
            "description": "Only webcam or only screen frames"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100000,
              "minimum": 1,
              "description": "1-based page number",
              "default": 1,
              "title": "Page"
            },
            "description": "1-based page number"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "Frames per page (at most 100)",
              "default": 50,
              "title": "Page Size"
            },
            "description": "Frames per page (at most 100)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FramePageOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/sessions/{session_id}/frames/timeline": {
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "Session Frames Timeline",
        "description": "What the frames player needs once: the frame times of each capture, the important\nmoments built from the integrity events, the questions and when each was opened.",
        "operationId": "session_frames_timeline_api_v1_sessions__session_id__frames_timeline_get",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FramesTimelineOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_assigned",
          "roles": [
            "admin",
            "mentor"
          ],
          "summary": "Permission `applications.read_assigned`: admin, mentor."
        }
      }
    },
    "/api/v1/programs": {
      "get": {
        "tags": [
          "programs"
        ],
        "summary": "List Programs",
        "description": "Published programs (open first).",
        "operationId": "list_programs_api_v1_programs_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ProgramListItem_"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/programs/manage": {
      "get": {
        "tags": [
          "programs"
        ],
        "summary": "Admin List Programs",
        "description": "Every program of the portal, drafts included, newest first (with `total`). The hidden\nprograms of assessment links are not listed (`/sets`).",
        "operationId": "admin_list_programs_api_v1_programs_manage_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ProgramStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Archived"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Title or slug",
              "title": "Q"
            },
            "description": "Title or slug"
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 120
                },
                {
                  "type": "null"
                }
              ],
              "description": "Exact slug",
              "title": "Slug"
            },
            "description": "Exact slug"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ProgramAdminOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "programs"
        ],
        "summary": "Admin Create Program",
        "operationId": "admin_create_program_api_v1_programs_manage_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProgramIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/programs/manage/{program_id}": {
      "get": {
        "tags": [
          "programs"
        ],
        "summary": "Admin Get Program",
        "operationId": "admin_get_program_api_v1_programs_manage__program_id__get",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "programs"
        ],
        "summary": "Admin Update Program",
        "operationId": "admin_update_program_api_v1_programs_manage__program_id__patch",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProgramPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramAdminOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "programs"
        ],
        "summary": "Admin Archive Program",
        "operationId": "admin_archive_program_api_v1_programs_manage__program_id__delete",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/programs/manage/{program_id}/stages": {
      "put": {
        "tags": [
          "programs"
        ],
        "summary": "Admin Put Stages",
        "operationId": "admin_put_stages_api_v1_programs_manage__program_id__stages_put",
        "parameters": [
          {
            "name": "program_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Program Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StageIn"
                },
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StageOut"
                  },
                  "title": "Response Admin Put Stages Api V1 Programs Manage  Program Id  Stages Put"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/programs/{slug}": {
      "get": {
        "tags": [
          "programs"
        ],
        "summary": "Get Program",
        "operationId": "get_program_api_v1_programs__slug__get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/users": {
      "get": {
        "tags": [
          "public-profiles"
        ],
        "summary": "List Profiles",
        "description": "Handles of this portal's public profiles (`/u/<handle>`) that search engines may list,\nordered by handle, for the sitemap: profiles `GET /users/{handle}` shows (hidden, unverified\nand deleted accounts and other portals' members never appear) of people who already appear\non a public list here — the practice leaderboard (an accepted practice submit) or a public\ncontest's final standings (a submitted, not virtual, not disqualified result). Each with\n`updated_on`, the day its public content last changed (public activity or the public-profile\nsettings; never a sign-in). A page may hold fewer rows than asked; follow `next_cursor` (or\nthe page numbers) until it is null. Rate limited per IP.",
        "operationId": "list_profiles_api_v1_users_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_PublicProfileLinkOut_"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/users/{handle}": {
      "get": {
        "tags": [
          "public-profiles"
        ],
        "summary": "Get Profile",
        "description": "Only the sections the owner made public in this portal; 404 when the profile is off.\n`indexable` tells whether the profile is in the sitemap (`GET /users`); the web marks the\nother profiles `noindex`.",
        "operationId": "get_profile_api_v1_users__handle__get",
        "parameters": [
          {
            "name": "handle",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Handle"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProfileOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/me/public-profile": {
      "get": {
        "tags": [
          "public-profiles"
        ],
        "summary": "Get Settings",
        "operationId": "get_settings_api_v1_me_public_profile_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProfileSettingsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      },
      "put": {
        "tags": [
          "public-profiles"
        ],
        "summary": "Put Settings",
        "description": "Handle (unique, 409 `me.handle_taken`), on/off and the visible sections.",
        "operationId": "put_settings_api_v1_me_public_profile_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicProfileSettingsIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProfileSettingsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/CsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "user",
          "permission": "authenticated",
          "summary": "Any signed-in member of the portal (guest or higher)."
        }
      }
    },
    "/api/v1/question-tools/infer-dataset": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Infer Dataset",
        "description": "CSV/XLSX → column types, preview, CREATE TABLE + INSERT (DuckDB inside the Runner).",
        "operationId": "infer_dataset_api_v1_question_tools_infer_dataset_post",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_infer_dataset_api_v1_question_tools_infer_dataset_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InferOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/sql-hints": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Sql Hints Check",
        "description": "The DuckDB hints of a reference query the editor has not saved yet: the ids\ndetected in it (`auto`) and what candidates would see with `hints` applied (`effective`).",
        "operationId": "sql_hints_check_api_v1_question_tools_sql_hints_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SqlHintsIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SqlHintsOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/parse-mcq": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Parse Mcq",
        "operationId": "parse_mcq_api_v1_question_tools_parse_mcq_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McqTextIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McqParseOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/import-mcq": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Import Mcq",
        "description": "One click: every parsed MCQ becomes a draft (all-or-nothing).",
        "operationId": "import_mcq_api_v1_question_tools_import_mcq_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McqImportIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McqImportOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/ai-draft": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Ai Draft",
        "operationId": "ai_draft_api_v1_question_tools_ai_draft_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiDraftIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/ai-more-tests": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Ai More Tests",
        "operationId": "ai_more_tests_api_v1_question_tools_ai_more_tests_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiMoreTestsIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/ai-improve": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Ai Improve",
        "operationId": "ai_improve_api_v1_question_tools_ai_improve_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiQuestionIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/ai-mcq": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Ai Mcq",
        "operationId": "ai_mcq_api_v1_question_tools_ai_mcq_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiMcqIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/test-grader": {
      "post": {
        "tags": [
          "question_tools"
        ],
        "summary": "Test Grader",
        "operationId": "test_grader_api_v1_question_tools_test_grader_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestGraderIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/question-tools/ai-jobs/{job_id}": {
      "get": {
        "tags": [
          "question_tools"
        ],
        "summary": "Ai Job",
        "operationId": "ai_job_api_v1_question_tools_ai_jobs__job_id__get",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Job Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiJobOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions": {
      "get": {
        "tags": [
          "questions"
        ],
        "summary": "List Questions",
        "operationId": "list_questions_api_v1_questions_get",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionType"
                  },
                  "maxItems": 10
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several types (at most 10)",
              "title": "Type"
            },
            "description": "Repeat for several types (at most 10)"
          },
          {
            "name": "difficulty",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Difficulty"
                  },
                  "maxItems": 10
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several levels (at most 10)",
              "title": "Difficulty"
            },
            "description": "Repeat for several levels (at most 10)"
          },
          {
            "name": "usage",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionUsage"
                  },
                  "maxItems": 10
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several uses (at most 10)",
              "title": "Usage"
            },
            "description": "Repeat for several uses (at most 10)"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionStatus"
                  },
                  "maxItems": 10
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repeat for several (at most 10); archived questions only when named here",
              "title": "Status"
            },
            "description": "Repeat for several (at most 10); archived questions only when named here"
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "maxItems": 20
                },
                {
                  "type": "null"
                }
              ],
              "description": "Any of these tags (at most 20)",
              "title": "Tag"
            },
            "description": "Any of these tags (at most 20)"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Part of the base title, a translated title (uz, en) or the topic; any case, o' = oʻ = o‘ = o’",
              "title": "Q"
            },
            "description": "Part of the base title, a translated title (uz, en) or the topic; any case, o' = oʻ = o‘ = o’"
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Archived"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "enum": [
                      "uz",
                      "en"
                    ],
                    "type": "string"
                  },
                  "maxItems": 10
                },
                {
                  "type": "null"
                }
              ],
              "description": "Readable in this language (the base language or a translated statement); repeat for several, any of them matches",
              "title": "Language"
            },
            "description": "Readable in this language (the base language or a translated statement); repeat for several, any of them matches"
          },
          {
            "name": "missing_language",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "uz",
                    "en"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Not readable in this language (no translated statement yet)",
              "title": "Missing Language"
            },
            "description": "Not readable in this language (no translated statement yet)"
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "maxItems": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only these questions (repeat, at most 100): the assessment pool picker searches its ticked questions with `q` this way",
              "title": "Id"
            },
            "description": "Only these questions (repeat, at most 100): the assessment pool picker searches its ticked questions with `q` this way"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_QuestionListItem_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      },
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Create Question",
        "description": "New draft. With AI on, the translation into the other language is queued in the\nbackground when the body brings none (`translation_states` says `queued`).",
        "operationId": "create_question_api_v1_questions_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/bulk-tag": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Bulk Tag",
        "operationId": "bulk_tag_api_v1_questions_bulk_tag_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkTagIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkTagOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/import": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Import Questions",
        "description": "Excel template (.xlsx) or YAML bundle (.zip). Imported questions are drafts.",
        "operationId": "import_questions_api_v1_questions_import_post",
        "parameters": [
          {
            "name": "dry_run",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Preview only (row-level errors), nothing is saved",
              "default": true,
              "title": "Dry Run"
            },
            "description": "Preview only (row-level errors), nothing is saved"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_import_questions_api_v1_questions_import_post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportResultOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/import/template": {
      "get": {
        "tags": [
          "questions"
        ],
        "summary": "Import Template",
        "operationId": "import_template_api_v1_questions_import_template_get",
        "responses": {
          "200": {
            "description": "The Excel import template (`questions_template.xlsx`), as an attachment.",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/export": {
      "get": {
        "tags": [
          "questions"
        ],
        "summary": "Export Questions",
        "operationId": "export_questions_api_v1_questions_export_get",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              },
              "minItems": 1,
              "maxItems": 500,
              "title": "Ids"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The questions as a ZIP bundle (`questions.zip`), an attachment.",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/tags": {
      "get": {
        "tags": [
          "questions"
        ],
        "summary": "List Question Tags",
        "description": "The bank's tags with how many questions carry each, most used first, at most 500 (the\noptions of the bank's tag filter).",
        "operationId": "list_question_tags_api_v1_questions_tags_get",
        "parameters": [
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also count archived questions",
              "default": false,
              "title": "Include Archived"
            },
            "description": "Also count archived questions"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionTagOut"
                  },
                  "title": "Response List Question Tags Api V1 Questions Tags Get"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}": {
      "get": {
        "tags": [
          "questions"
        ],
        "summary": "Get Question",
        "operationId": "get_question_api_v1_questions__question_id__get",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      },
      "patch": {
        "tags": [
          "questions"
        ],
        "summary": "Update Question",
        "description": "Partial update; `translations` are merged per language (see `QuestionIn`). With AI on,\na missing translation, or an AI translation of an older base text, is redone in the\nbackground; a manual translation is never replaced (it shows as `outdated`).",
        "operationId": "update_question_api_v1_questions__question_id__patch",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          },
          {
            "name": "confirm_usage_change",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Confirm Usage Change"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      },
      "delete": {
        "tags": [
          "questions"
        ],
        "summary": "Archive Question",
        "operationId": "archive_question_api_v1_questions__question_id__delete",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}/validate": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Validate Question",
        "operationId": "validate_question_api_v1_questions__question_id__validate_post",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}/status": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Set Status",
        "description": "`ready` only when validation passes; `archived` soft-deletes.",
        "operationId": "set_status_api_v1_questions__question_id__status_post",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}/duplicate": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Duplicate Question",
        "operationId": "duplicate_question_api_v1_questions__question_id__duplicate_post",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}/generate-expected": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Generate Expected",
        "description": "Run the reference solution in the Runner and fill every test's expected output.",
        "operationId": "generate_expected_api_v1_questions__question_id__generate_expected_post",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateExpectedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}/generate-tests": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Generate Tests",
        "description": "Input generator → N random hidden tests, outputs from the reference solution.",
        "operationId": "generate_tests_api_v1_questions__question_id__generate_tests_post",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTestsIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateExpectedOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}/sql/add-variant": {
      "post": {
        "tags": [
          "questions"
        ],
        "summary": "Add Sql Variant",
        "description": "Hidden test from a mutated copy of the seed data (`mutations`: shuffle, extra_rows,\nduplicates, nulls, drop_rows; default shuffle + extra rows + NULLs) that respects the schema's\nconstraints; its expected output comes from the reference query. A variant the reference\nquery fails on is not kept (422 `questions.variant_failed`).",
        "operationId": "add_sql_variant_api_v1_questions__question_id__sql_add_variant_post",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/SqlVariantIn"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SqlVariantOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/questions/{question_id}/preview": {
      "get": {
        "tags": [
          "questions"
        ],
        "summary": "Preview Question",
        "description": "Exactly what a candidate would see (current draft content).",
        "operationId": "preview_question_api_v1_questions__question_id__preview_get",
        "parameters": [
          {
            "name": "question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Question Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateQuestionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "questions.manage",
          "roles": [
            "admin",
            "mentor (when the portal setting `mentor_can_author` is on)"
          ],
          "summary": "Permission `questions.manage`: admin, mentor (when the portal setting `mentor_can_author` is on)."
        }
      }
    },
    "/api/v1/assessment/invites/{token}": {
      "get": {
        "tags": [
          "sessions"
        ],
        "summary": "Invite Landing",
        "description": "Landing: program, duration, sections, rules and required consents. Only the\napplication owner (others get 404). Marks the invite as opened.",
        "operationId": "invite_landing_api_v1_assessment_invites__token__get",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 10,
              "maxLength": 200,
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteLandingOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/assessment/invites/{token}/start": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Start Assessment",
        "description": "Start the server timer (idempotent: returns the existing session). Needs the\n`assessment_recording` consent (+ webcam/screen when required); mobile devices are\nrefused unless the assessment allows them.",
        "operationId": "start_assessment_api_v1_assessment_invites__token__start_post",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 10,
              "maxLength": 200,
              "title": "Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/StartIn"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/applications/{application_id}/assessment-link": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Regenerate Assessment Link",
        "description": "New personal link (the token is rotated) while the invite is valid and unused.",
        "operationId": "regenerate_assessment_link_api_v1_applications__application_id__assessment_link_post",
        "parameters": [
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentLinkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}": {
      "get": {
        "tags": [
          "sessions"
        ],
        "summary": "Get Session",
        "description": "Owner (or a reviewer with `applications.read_all` / assignment): questions rendered\nfrom the served revision plus saved answers, code drafts and submission summaries. A\nsession that never started answers its owner 409 `sessions.not_started` (no questions\nbefore the timer runs).",
        "operationId": "get_session_api_v1_sessions__session_id__get",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/time": {
      "get": {
        "tags": [
          "sessions"
        ],
        "summary": "Get Session Time",
        "description": "Server clock for the countdown (sync every 30 s).",
        "operationId": "get_session_time_api_v1_sessions__session_id__time_get",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionTimeOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/questions/{session_question_id}/answer": {
      "put": {
        "tags": [
          "sessions"
        ],
        "summary": "Save Answer",
        "description": "Autosave: MCQ selection, prompt/open text, or the Python/SQL editor draft. With `rev` a\nsave that is not newer than the stored one changes nothing (`stale: true`).",
        "operationId": "save_answer_api_v1_sessions__session_id__questions__session_question_id__answer_put",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "session_question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Question Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnswerIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnswerOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/questions/{session_question_id}/run": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Run Code",
        "description": "Run against the visible tests (20/min per session, `max_runs_per_question`). A retry with\nthe same `Idempotency-Key` returns the first result (409 `request.in_progress` while it runs).",
        "operationId": "run_code_api_v1_sessions__session_id__questions__session_question_id__run_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "session_question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Question Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CodeIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/questions/{session_question_id}/submit": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Submit Code",
        "description": "Judge against all tests and score (10/min per session); hidden tests are reported only\nas verdict counts. A retry with the same `Idempotency-Key` returns the first result — judged\nonce, one submission (409 `request.in_progress` while it runs).",
        "operationId": "submit_code_api_v1_sessions__session_id__questions__session_question_id__submit_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "session_question_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Question Id"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again",
              "title": "Idempotency-Key"
            },
            "description": "Retry key (8-64 of A-Z a-z 0-9 - _): a retry with the same key gets the first result back instead of running again"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CodeIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/pitch": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Upload Pitch",
        "description": "Attach a completed `pitch` upload (attempts limited by the question); queues analysis.",
        "operationId": "upload_pitch_api_v1_sessions__session_id__pitch_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PitchIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PitchOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/sections/{section_id}/finish": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Finish Section",
        "description": "Timed sections: close the open section now and open the next one (no going back;\nidempotent for a closed section). Finishing the last section submits the session.",
        "operationId": "finish_section_api_v1_sessions__session_id__sections__section_id__finish_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "section_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Section Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/finish": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Finish Session",
        "description": "Submit the whole assessment (idempotent); queues scoring and the integrity report.",
        "operationId": "finish_session_api_v1_sessions__session_id__finish_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionSummaryOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/me/set-attempts": {
      "get": {
        "tags": [
          "set_links"
        ],
        "summary": "My Set Attempts",
        "description": "Newest first; numbered pages (`?page=&page_size=`, always with `total`). `state` is the\ncaller's progress (`none`: the form was filled in, the test never started); `score` is set\nonly when `visible`, as on the result page.",
        "operationId": "my_set_attempts_api_v1_me_set_attempts_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_MySetAttemptOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/set-links/{code}": {
      "get": {
        "tags": [
          "set_links"
        ],
        "summary": "Set Link",
        "description": "The set's page: title, description, form, duration and sections, dates, status, result\npolicy and `me` (`none` / `started` / `submitted` / `scored`). 404 `sets.not_found` for\nunknown and archived codes.",
        "operationId": "set_link_api_v1_set_links__code__get",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "title": "Code"
            }
          },
          {
            "name": "invite",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "description": "Token of a personal e-mail invite: marks it opened",
              "title": "Invite"
            },
            "description": "Token of a personal e-mail invite: marks it opened"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetLinkOut"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {},
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "public",
          "summary": "Public: anonymous callers allowed; a signed-in caller is recognised by the access cookie.",
          "permission": "public"
        }
      }
    },
    "/api/v1/set-links/{code}/start": {
      "post": {
        "tags": [
          "set_links"
        ],
        "summary": "Start Set",
        "description": "Validate the answers (422 `sets.invalid_answers`), then create the application and the\nsession of the set's assessment. 409 `sets.closed` (with `status`) or `sets.already_started`\n(with `application_id`, `session_id`, `session_url`).",
        "operationId": "start_set_api_v1_set_links__code__start_post",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "title": "Code"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/SetStartIn"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetStartOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/set-links/{code}/result": {
      "get": {
        "tags": [
          "set_links"
        ],
        "summary": "My Set Result",
        "description": "The caller's own result per the set's policy, or `visible: false` with the reason\n(`not_submitted`, `hidden`, `pending_review`, `scoring`). A released result of an\n`after_review` set with `show_feedback` also carries the AI feedback written for the caller,\ngrouped by section (an admin read it before releasing).",
        "operationId": "my_set_result_api_v1_set_links__code__result_get",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "title": "Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetMyResultOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sets": {
      "get": {
        "tags": [
          "sets"
        ],
        "summary": "List Sets",
        "description": "The portal's sets, newest first (with `total`), each with its link and counts.",
        "operationId": "list_sets_api_v1_sets_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "draft",
                    "open",
                    "closed",
                    "archived"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Computed status; without it every set but the archived ones",
              "title": "Status"
            },
            "description": "Computed status; without it every set but the archived ones"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_SetOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "sets"
        ],
        "summary": "Create Set",
        "description": "New set with a random link code; the assessment must be active in this portal.\n`show_feedback` needs `show_result` `after_review` (422 `sets.feedback_needs_review`).",
        "operationId": "create_set_api_v1_sets_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/sets/{set_id}": {
      "get": {
        "tags": [
          "sets"
        ],
        "summary": "Get Set",
        "operationId": "get_set_api_v1_sets__set_id__get",
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Set Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "sets"
        ],
        "summary": "Update Set",
        "description": "Partial update. The assessment is fixed once someone started (409\n`sets.assessment_locked`); `form_fields` replaces the whole form. `show_feedback` stays with\n`show_result` `after_review` only, checked on the values after the change (422\n`sets.feedback_needs_review`).",
        "operationId": "update_set_api_v1_sets__set_id__patch",
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Set Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetPatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/sets/{set_id}/archive": {
      "post": {
        "tags": [
          "sets"
        ],
        "summary": "Archive Set",
        "description": "The link stops working (404); results stay. Idempotent.",
        "operationId": "archive_set_api_v1_sets__set_id__archive_post",
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Set Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/sets/{set_id}/results": {
      "get": {
        "tags": [
          "sets"
        ],
        "summary": "Set Results",
        "description": "One row per participant (with `total`): state, total and section scores, the grader's\nstaff summary, the feedback written for the participant (whatever `show_feedback` says),\nintegrity next to the score and whether the result was released.",
        "operationId": "set_results_api_v1_sets__set_id__results_get",
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Set Id"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Name or email",
              "title": "Q"
            },
            "description": "Name or email"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "started",
                    "submitted",
                    "scored",
                    "reviewed"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "State"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "-score",
                "score",
                "-submitted_at",
                "submitted_at"
              ],
              "type": "string",
              "default": "-submitted_at",
              "title": "Sort"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_SetResultOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.read_all",
          "roles": [
            "admin"
          ],
          "summary": "Permission `applications.read_all`: admin."
        }
      }
    },
    "/api/v1/sets/{set_id}/results/{application_id}/release": {
      "post": {
        "tags": [
          "sets"
        ],
        "summary": "Release Result",
        "description": "Sets shown after review: the participant sees the result (once it is scored). 409\n`sets.release_not_allowed` for other sets, `sets.not_submitted` before the attempt ends.",
        "operationId": "release_result_api_v1_sets__set_id__results__application_id__release_post",
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Set Id"
            }
          },
          {
            "name": "application_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Application Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetResultOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "programs.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `programs.manage`: admin."
        }
      }
    },
    "/api/v1/portal/settings/ai": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Ai Config",
        "operationId": "get_ai_config_api_v1_portal_settings_ai_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConfigOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Put Ai Config",
        "operationId": "put_ai_config_api_v1_portal_settings_ai_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiConfigIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConfigOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "portal.settings",
          "roles": [
            "admin"
          ],
          "summary": "Permission `portal.settings`: admin."
        }
      }
    },
    "/api/v1/talent/search": {
      "get": {
        "tags": [
          "talent"
        ],
        "summary": "Search",
        "description": "Members of this portal (guests and interns unless `role` is given) with their skills,\nbest application score, contest rating, practice activity and availability.",
        "operationId": "search_api_v1_talent_search_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "skill",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "maxItems": 10,
              "title": "Skill"
            }
          },
          {
            "name": "min_skill_level",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 5,
              "minimum": 1,
              "default": 1,
              "title": "Min Skill Level"
            }
          },
          {
            "name": "min_score",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 100.0,
                  "minimum": 0.0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Score"
            }
          },
          {
            "name": "min_rating",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 5000,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Rating"
            }
          },
          {
            "name": "min_solved",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 10000,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Solved"
            }
          },
          {
            "name": "active_days",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 365,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "title": "Active Days"
            }
          },
          {
            "name": "min_hours",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 80,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Hours"
            }
          },
          {
            "name": "role",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Role"
              },
              "title": "Role"
            }
          },
          {
            "name": "in_pool",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "In Pool"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(rating|practice|score|recent|name)$",
              "default": "rating",
              "title": "Sort"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_TalentSearchItem_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/talent-pool": {
      "get": {
        "tags": [
          "talent"
        ],
        "summary": "List Entries",
        "operationId": "list_entries_api_v1_talent_pool_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TalentSource"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TalentStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "shortlist",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Shortlist"
            }
          },
          {
            "name": "min_rating",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 5000,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Rating"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_TalentEntryOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      },
      "post": {
        "tags": [
          "talent"
        ],
        "summary": "Add Entries",
        "description": "Add members (source `manual`); existing entries only get the tags merged.",
        "operationId": "add_entries_api_v1_talent_pool_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TalentEntriesIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TalentEntriesOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/talent-pool/shortlists": {
      "get": {
        "tags": [
          "talent"
        ],
        "summary": "Shortlists",
        "description": "Shortlists (tags of pool entries) by name, with the number of people on each.",
        "operationId": "shortlists_api_v1_talent_pool_shortlists_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "description": "Part of the name",
              "title": "Q"
            },
            "description": "Part of the name"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_ShortlistOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/talent-pool/shortlists/{name}": {
      "patch": {
        "tags": [
          "talent"
        ],
        "summary": "Rename Shortlist",
        "operationId": "rename_shortlist_api_v1_talent_pool_shortlists__name__patch",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShortlistRenameIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "talent"
        ],
        "summary": "Delete Shortlist",
        "description": "Removes the list; the people stay in the pool.",
        "operationId": "delete_shortlist_api_v1_talent_pool_shortlists__name__delete",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/talent-pool/bulk": {
      "post": {
        "tags": [
          "talent"
        ],
        "summary": "Bulk",
        "description": "`add_to_shortlist` (creates pool entries as needed), `remove_from_shortlist`,\n`set_status`.",
        "operationId": "bulk_api_v1_talent_pool_bulk_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TalentBulkIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TalentBulkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/talent-pool/programs": {
      "get": {
        "tags": [
          "talent"
        ],
        "summary": "Invite Programs",
        "description": "Programs open for applications (targets of an invitation), closing soonest first.",
        "operationId": "invite_programs_api_v1_talent_pool_programs_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "description": "Title or slug",
              "title": "Q"
            },
            "description": "Title or slug"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from `next_cursor`",
              "title": "Cursor"
            },
            "description": "Opaque cursor from `next_cursor`"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "1-based page number (numbered pages, with `total`)",
              "title": "Page"
            },
            "description": "1-based page number (numbered pages, with `total`)"
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 200,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Rows per numbered page (default: `limit`)",
              "title": "Page Size"
            },
            "description": "Rows per numbered page (default: `limit`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOut_InviteProgramOut_"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/talent-pool/invite": {
      "post": {
        "tags": [
          "talent"
        ],
        "summary": "Invite",
        "description": "Invite people to an open program with a personal message (`talent_invite`).",
        "operationId": "invite_api_v1_talent_pool_invite_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TalentInviteIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TalentInviteOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/talent-pool/export": {
      "get": {
        "tags": [
          "talent"
        ],
        "summary": "Export",
        "description": "CSV of the (filtered) pool; audit-logged (`export.talent_pool`).",
        "operationId": "export_api_v1_talent_pool_export_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TalentSource"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TalentStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "shortlist",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Shortlist"
            }
          },
          {
            "name": "min_rating",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 5000,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Rating"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The pool as CSV (UTF-8 with a BOM), an attachment (`talent-pool.csv`).",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "exports.run",
          "roles": [
            "admin"
          ],
          "summary": "Permission `exports.run`: admin."
        }
      }
    },
    "/api/v1/talent-pool/{entry_id}": {
      "get": {
        "tags": [
          "talent"
        ],
        "summary": "Get Entry",
        "operationId": "get_entry_api_v1_talent_pool__entry_id__get",
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Entry Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TalentEntryOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      },
      "patch": {
        "tags": [
          "talent"
        ],
        "summary": "Update Entry",
        "operationId": "update_entry_api_v1_talent_pool__entry_id__patch",
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Entry Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TalentEntryPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TalentEntryOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      },
      "delete": {
        "tags": [
          "talent"
        ],
        "summary": "Delete Entry",
        "operationId": "delete_entry_api_v1_talent_pool__entry_id__delete",
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Entry Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "talent_pool.manage",
          "roles": [
            "admin"
          ],
          "summary": "Permission `talent_pool.manage`: admin."
        }
      }
    },
    "/api/v1/sessions/{session_id}/telemetry": {
      "post": {
        "tags": [
          "proctoring"
        ],
        "summary": "Ingest Telemetry",
        "description": "One batch of events and code snapshots (≤ 512 KB within 10 s, ≤ 500 events, ≤ 200\nsnapshots; 60 batches/min per session, counted for valid tokens only). Session owner only\n(else 404); the telemetry token comes in `X-Telemetry-Token` (checked before the body is read)\nor the body's `token` (403 `proctoring.invalid_token`). Accepted while in progress and up to\n120 s after the deadline/submit (else 409 `proctoring.session_closed`). Items with `seq` ≤ the\nlast accepted one are ignored as duplicates; item times are clamped by the server clock.",
        "operationId": "ingest_telemetry_api_v1_sessions__session_id__telemetry_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "x-telemetry-token",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Telemetry-Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryAckOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "408": {
            "description": "Body not received within 10 s (`proctoring.body_timeout`)"
          },
          "413": {
            "description": "Batch too large (`proctoring.too_large`)"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "`POST /sessions/{id}/telemetry` body (JSON; `text/plain` from `navigator.sendBeacon`).",
                "properties": {
                  "token": {
                    "anyOf": [
                      {
                        "maxLength": 200,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Telemetry token (or header X-Telemetry-Token)",
                    "title": "Token"
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "maximum": 10000000000000.0,
                        "minimum": 0,
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Client clock when this request was sent",
                    "title": "Sent At"
                  },
                  "events": {
                    "items": {
                      "description": "One browser/workspace event. `at` and the batch `sent_at` share the client's clock; the\nserver converts `at` to ms since the session start, correcting the clock offset.",
                      "properties": {
                        "seq": {
                          "description": "Per-session monotonic item number",
                          "maximum": 2000000000,
                          "minimum": 1,
                          "title": "Seq",
                          "type": "integer"
                        },
                        "type": {
                          "enum": [
                            "focus",
                            "blur",
                            "visibility_hidden",
                            "visibility_visible",
                            "fullscreen_exit",
                            "fullscreen_enter",
                            "paste_blocked",
                            "paste",
                            "copy",
                            "cut",
                            "context_menu",
                            "large_insert",
                            "resize",
                            "devtools_suspected",
                            "multi_monitor",
                            "ip_change",
                            "network_offline",
                            "network_online",
                            "run",
                            "submit",
                            "question_open",
                            "keystroke_stats",
                            "telemetry_gap",
                            "screen_share_started",
                            "screen_share_stopped",
                            "screen_share_invalid",
                            "camera_started",
                            "camera_stopped",
                            "camera_virtual",
                            "camera_frozen",
                            "camera_dark"
                          ],
                          "title": "ProctorEventType",
                          "type": "string"
                        },
                        "at": {
                          "description": "Client time (epoch ms, monotonic clock)",
                          "maximum": 10000000000000.0,
                          "minimum": 0,
                          "title": "At",
                          "type": "number"
                        },
                        "question_id": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Session question id, if any",
                          "title": "Question Id"
                        },
                        "meta": {
                          "additionalProperties": true,
                          "description": "Payload; only the allowed keys of the event type",
                          "title": "Meta",
                          "type": "object"
                        }
                      },
                      "required": [
                        "seq",
                        "type",
                        "at"
                      ],
                      "title": "TelemetryEventIn",
                      "type": "object"
                    },
                    "title": "Events",
                    "type": "array"
                  },
                  "snapshots": {
                    "items": {
                      "description": "Editor content of one code question: a diff-match-patch patch against the previous\nsnapshot of this question sent from the same page, `full_text` on checkpoints.",
                      "properties": {
                        "seq": {
                          "maximum": 2000000000,
                          "minimum": 1,
                          "title": "Seq",
                          "type": "integer"
                        },
                        "question_id": {
                          "format": "uuid",
                          "title": "Question Id",
                          "type": "string"
                        },
                        "at": {
                          "maximum": 10000000000000.0,
                          "minimum": 0,
                          "title": "At",
                          "type": "number"
                        },
                        "patch": {
                          "default": "",
                          "description": "patch_toText(); '' = none",
                          "maxLength": 50000,
                          "title": "Patch",
                          "type": "string"
                        },
                        "full_text": {
                          "anyOf": [
                            {
                              "maxLength": 100000,
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Full Text"
                        },
                        "char_count": {
                          "anyOf": [
                            {
                              "maximum": 10000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Char Count"
                        }
                      },
                      "required": [
                        "seq",
                        "question_id",
                        "at"
                      ],
                      "title": "TelemetrySnapshotIn",
                      "type": "object"
                    },
                    "title": "Snapshots",
                    "type": "array"
                  }
                },
                "title": "TelemetryBatchIn",
                "type": "object"
              }
            },
            "text/plain": {
              "schema": {
                "description": "`POST /sessions/{id}/telemetry` body (JSON; `text/plain` from `navigator.sendBeacon`).",
                "properties": {
                  "token": {
                    "anyOf": [
                      {
                        "maxLength": 200,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Telemetry token (or header X-Telemetry-Token)",
                    "title": "Token"
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "maximum": 10000000000000.0,
                        "minimum": 0,
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Client clock when this request was sent",
                    "title": "Sent At"
                  },
                  "events": {
                    "items": {
                      "description": "One browser/workspace event. `at` and the batch `sent_at` share the client's clock; the\nserver converts `at` to ms since the session start, correcting the clock offset.",
                      "properties": {
                        "seq": {
                          "description": "Per-session monotonic item number",
                          "maximum": 2000000000,
                          "minimum": 1,
                          "title": "Seq",
                          "type": "integer"
                        },
                        "type": {
                          "enum": [
                            "focus",
                            "blur",
                            "visibility_hidden",
                            "visibility_visible",
                            "fullscreen_exit",
                            "fullscreen_enter",
                            "paste_blocked",
                            "paste",
                            "copy",
                            "cut",
                            "context_menu",
                            "large_insert",
                            "resize",
                            "devtools_suspected",
                            "multi_monitor",
                            "ip_change",
                            "network_offline",
                            "network_online",
                            "run",
                            "submit",
                            "question_open",
                            "keystroke_stats",
                            "telemetry_gap",
                            "screen_share_started",
                            "screen_share_stopped",
                            "screen_share_invalid",
                            "camera_started",
                            "camera_stopped",
                            "camera_virtual",
                            "camera_frozen",
                            "camera_dark"
                          ],
                          "title": "ProctorEventType",
                          "type": "string"
                        },
                        "at": {
                          "description": "Client time (epoch ms, monotonic clock)",
                          "maximum": 10000000000000.0,
                          "minimum": 0,
                          "title": "At",
                          "type": "number"
                        },
                        "question_id": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Session question id, if any",
                          "title": "Question Id"
                        },
                        "meta": {
                          "additionalProperties": true,
                          "description": "Payload; only the allowed keys of the event type",
                          "title": "Meta",
                          "type": "object"
                        }
                      },
                      "required": [
                        "seq",
                        "type",
                        "at"
                      ],
                      "title": "TelemetryEventIn",
                      "type": "object"
                    },
                    "title": "Events",
                    "type": "array"
                  },
                  "snapshots": {
                    "items": {
                      "description": "Editor content of one code question: a diff-match-patch patch against the previous\nsnapshot of this question sent from the same page, `full_text` on checkpoints.",
                      "properties": {
                        "seq": {
                          "maximum": 2000000000,
                          "minimum": 1,
                          "title": "Seq",
                          "type": "integer"
                        },
                        "question_id": {
                          "format": "uuid",
                          "title": "Question Id",
                          "type": "string"
                        },
                        "at": {
                          "maximum": 10000000000000.0,
                          "minimum": 0,
                          "title": "At",
                          "type": "number"
                        },
                        "patch": {
                          "default": "",
                          "description": "patch_toText(); '' = none",
                          "maxLength": 50000,
                          "title": "Patch",
                          "type": "string"
                        },
                        "full_text": {
                          "anyOf": [
                            {
                              "maxLength": 100000,
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Full Text"
                        },
                        "char_count": {
                          "anyOf": [
                            {
                              "maximum": 10000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Char Count"
                        }
                      },
                      "required": [
                        "seq",
                        "question_id",
                        "at"
                      ],
                      "title": "TelemetrySnapshotIn",
                      "type": "object"
                    },
                    "title": "Snapshots",
                    "type": "array"
                  }
                },
                "title": "TelemetryBatchIn",
                "type": "object"
              }
            }
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      },
      "get": {
        "tags": [
          "proctoring"
        ],
        "summary": "Telemetry State",
        "description": "Owner only: the last accepted `seq` (where the client continues after a reload),\nwhether batches are accepted, server time since start and the enabled media captures.",
        "operationId": "telemetry_state_api_v1_sessions__session_id__telemetry_get",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelemetryStateOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/media/presign": {
      "post": {
        "tags": [
          "proctoring"
        ],
        "summary": "Presign Media",
        "description": "Presigned PUT for one webcam/screen JPEG while the session is in progress; only when the\nassessment enables it and the candidate consented (409 `proctoring.media_not_allowed`).",
        "operationId": "presign_media_api_v1_sessions__session_id__media_presign_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MediaPresignIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PresignUploadOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    },
    "/api/v1/sessions/{session_id}/media": {
      "post": {
        "tags": [
          "proctoring"
        ],
        "summary": "Complete Media",
        "description": "Verify an uploaded snapshot (size + JPEG magic bytes) and record the capture with its\ntime offset; idempotent per file.",
        "operationId": "complete_media_api_v1_sessions__session_id__media_post",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MediaCompleteIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaCaptureOut"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/AuthRequired"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenOrCsrfFailed"
          },
          "404": {
            "$ref": "#/components/responses/PortalNotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationFailed"
          }
        },
        "security": [
          {
            "accessCookie": [],
            "csrfCookie": [],
            "csrfHeader": []
          }
        ],
        "x-auth": {
          "kind": "permission",
          "permission": "applications.own",
          "roles": [
            "admin",
            "mentor",
            "intern",
            "guest"
          ],
          "summary": "Permission `applications.own`: admin, mentor, intern, guest."
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActivityHistoryOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "total": {
            "type": "number",
            "title": "Total"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "components": {
            "additionalProperties": true,
            "type": "object",
            "title": "Components"
          }
        },
        "type": "object",
        "required": [
          "date",
          "total",
          "rank",
          "components"
        ],
        "title": "ActivityHistoryOut"
      },
      "ActivityOut": {
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "candidate_name": {
            "type": "string",
            "title": "Candidate Name"
          },
          "program_title": {
            "type": "string",
            "title": "Program Title"
          },
          "from_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "to_status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "changed_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changed By"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "title": "At"
          }
        },
        "type": "object",
        "required": [
          "application_id",
          "candidate_name",
          "program_title",
          "from_status",
          "to_status",
          "at"
        ],
        "title": "ActivityOut"
      },
      "ActivityPointOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "total": {
            "type": "number",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "date",
          "total"
        ],
        "title": "ActivityPointOut"
      },
      "ActivitySummaryOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "total": {
            "type": "number",
            "title": "Total"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "cohort_size": {
            "type": "integer",
            "title": "Cohort Size"
          },
          "components": {
            "additionalProperties": true,
            "type": "object",
            "title": "Components"
          }
        },
        "type": "object",
        "required": [
          "date",
          "total",
          "rank",
          "cohort_size",
          "components"
        ],
        "title": "ActivitySummaryOut"
      },
      "AddParticipantsIn": {
        "properties": {
          "emails": {
            "items": {
              "type": "string",
              "format": "email"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "Emails"
          }
        },
        "type": "object",
        "required": [
          "emails"
        ],
        "title": "AddParticipantsIn"
      },
      "AddParticipantsOut": {
        "properties": {
          "added": {
            "type": "integer",
            "title": "Added"
          },
          "already": {
            "type": "integer",
            "title": "Already"
          },
          "not_found": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Not Found"
          }
        },
        "type": "object",
        "required": [
          "added",
          "already",
          "not_found"
        ],
        "title": "AddParticipantsOut"
      },
      "AdminInviteOut": {
        "properties": {
          "invite_id": {
            "type": "string",
            "format": "uuid",
            "title": "Invite Id"
          },
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Assessment Id"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "title": "Valid From"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "title": "Valid Until"
          },
          "sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sent At"
          },
          "resend_count": {
            "type": "integer",
            "title": "Resend Count"
          },
          "application_status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          }
        },
        "type": "object",
        "required": [
          "invite_id",
          "application_id",
          "assessment_id",
          "valid_from",
          "valid_until",
          "sent_at",
          "resend_count",
          "application_status"
        ],
        "title": "AdminInviteOut"
      },
      "AiBudgetOut": {
        "properties": {
          "month": {
            "type": "string",
            "title": "Month",
            "description": "`YYYY-MM`"
          },
          "date_from": {
            "type": "string",
            "format": "date",
            "title": "Date From",
            "description": "First day of the month"
          },
          "date_to": {
            "type": "string",
            "format": "date",
            "title": "Date To",
            "description": "Last day of the month"
          },
          "today": {
            "type": "string",
            "format": "date",
            "title": "Today"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone"
          },
          "currency": {
            "type": "string",
            "const": "USD",
            "title": "Currency",
            "default": "USD"
          },
          "limit_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit Usd",
            "description": "Monthly limit; null = no limit"
          },
          "spent_usd": {
            "type": "number",
            "title": "Spent Usd",
            "description": "Estimated spend of the month so far (list prices); with a limit, calls on a model without a price count at the highest listed price of their provider"
          },
          "remaining_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remaining Usd",
            "description": "Limit minus spend, not below 0; null without"
          },
          "percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent",
            "description": "Spend in percent of the limit (can pass 100)"
          },
          "projected_usd": {
            "type": "number",
            "title": "Projected Usd",
            "description": "Month-end spend at the pace of the days so far"
          },
          "state": {
            "type": "string",
            "enum": [
              "none",
              "ok",
              "warning",
              "exceeded"
            ],
            "title": "State",
            "description": "none (no limit), ok, warning (from 80 %) or exceeded (at or above the limit)"
          },
          "unpriced_calls": {
            "type": "integer",
            "title": "Unpriced Calls",
            "description": "Calls that used tokens on a model without a price (with a limit counted at their provider's highest listed price, without one left out)"
          },
          "thresholds": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Thresholds",
            "description": "Alert thresholds in percent of the limit"
          }
        },
        "type": "object",
        "required": [
          "month",
          "date_from",
          "date_to",
          "today",
          "timezone",
          "limit_usd",
          "spent_usd",
          "remaining_usd",
          "percent",
          "projected_usd",
          "state",
          "unpriced_calls",
          "thresholds"
        ],
        "title": "AiBudgetOut",
        "description": "This calendar month (Asia/Tashkent) of the portal against its monthly AI limit."
      },
      "AiCallLinkOut": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "application",
              "question"
            ],
            "title": "Type"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "type",
          "id"
        ],
        "title": "AiCallLinkOut",
        "description": "What the call was about, as an id the UI can link to."
      },
      "AiCallOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "duration_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Ms"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "done",
              "failed"
            ],
            "title": "Status"
          },
          "error_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Type",
            "description": "Failure category (unavailable, budget_exceeded, refused, truncated, invalid_output, failed) or the exception class name; never the error text"
          },
          "input_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input Tokens"
          },
          "output_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Tokens"
          },
          "cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Usd"
          },
          "link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiCallLinkOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiCallUserOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The staff member who started an authoring tool; null for automatic calls"
          }
        },
        "type": "object",
        "required": [
          "id",
          "created_at",
          "finished_at",
          "duration_ms",
          "kind",
          "provider",
          "model",
          "status",
          "error_type",
          "input_tokens",
          "output_tokens",
          "cost_usd",
          "link",
          "created_by"
        ],
        "title": "AiCallOut",
        "description": "One AI call: when, what for, which model, tokens, status and estimated cost."
      },
      "AiCallUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name"
        ],
        "title": "AiCallUserOut"
      },
      "AiConfigIn": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider",
            "description": "anthropic | openai | gemini; null = the default provider"
          },
          "model": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ],
            "title": "Model",
            "description": "null = provider default"
          },
          "grading_model": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ],
            "title": "Grading Model",
            "description": "Model for grading calls; null = the provider's grading default, omitted = unchanged. Like `model`, used only while the portal picks that provider"
          },
          "monthly_budget_usd": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,6}|(?=[\\d.]{1,9}0*$)\\d{0,6}\\.\\d{0,2}0*$)"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Budget Usd",
            "description": "Monthly AI limit in USD, more than 0 and at most 100000, cents allowed; null = no limit; omitted = unchanged"
          }
        },
        "type": "object",
        "title": "AiConfigIn"
      },
      "AiConfigOut": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "grading_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grading Model",
            "description": "Model of answer grading, code feedback, pitch analysis and \"Test the grader\" (staff tools use `model`)"
          },
          "providers": {
            "items": {
              "$ref": "#/components/schemas/ProviderInfo"
            },
            "type": "array",
            "title": "Providers"
          },
          "env_default_provider": {
            "type": "string",
            "title": "Env Default Provider"
          },
          "monthly_budget_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Budget Usd",
            "description": "Monthly AI limit in USD (estimated spend, calendar month in Asia/Tashkent); null = no limit"
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "provider",
          "model",
          "grading_model",
          "providers",
          "env_default_provider",
          "monthly_budget_usd"
        ],
        "title": "AiConfigOut"
      },
      "AiCurrentModelOut": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiPriceOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "provider",
          "model",
          "price"
        ],
        "title": "AiCurrentModelOut",
        "description": "The model new calls of this portal use now (the portal's AI settings, else the default provider)."
      },
      "AiDraftIn": {
        "properties": {
          "idea": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 5,
            "title": "Idea"
          },
          "type": {
            "type": "string",
            "enum": [
              "python",
              "sql",
              "mcq",
              "prompt",
              "open_text"
            ],
            "title": "Type"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty",
            "default": "medium"
          },
          "usage": {
            "$ref": "#/components/schemas/QuestionUsage",
            "default": "assessment"
          }
        },
        "type": "object",
        "required": [
          "idea",
          "type"
        ],
        "title": "AiDraftIn"
      },
      "AiGradeOut": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "graded",
              "failed",
              "disabled",
              "manual_only",
              "pending",
              "empty"
            ],
            "title": "Status"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent"
          },
          "criteria": {
            "items": {
              "$ref": "#/components/schemas/CriterionGradeOut"
            },
            "type": "array",
            "title": "Criteria"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "red_flags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Red Flags"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Id"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "AiGradeOut"
      },
      "AiJobKind": {
        "type": "string",
        "enum": [
          "prompt_grade",
          "open_text_grade",
          "pitch_analysis",
          "candidate_summary",
          "question_draft",
          "test_generation",
          "statement_improve",
          "mcq_generation",
          "interview_brief",
          "translation",
          "code_feedback",
          "smoke"
        ],
        "title": "AiJobKind"
      },
      "AiJobOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "status",
          "model",
          "result",
          "error"
        ],
        "title": "AiJobOut"
      },
      "AiJobStatus": {
        "type": "string",
        "enum": [
          "pending",
          "running",
          "done",
          "failed"
        ],
        "title": "AiJobStatus"
      },
      "AiMcqIn": {
        "properties": {
          "topic": {
            "type": "string",
            "maxLength": 300,
            "minLength": 2,
            "title": "Topic"
          },
          "count": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 5
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty",
            "default": "medium"
          }
        },
        "type": "object",
        "required": [
          "topic"
        ],
        "title": "AiMcqIn"
      },
      "AiMoreTestsIn": {
        "properties": {
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "count": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 5
          }
        },
        "type": "object",
        "required": [
          "question_id"
        ],
        "title": "AiMoreTestsIn"
      },
      "AiPriceOut": {
        "properties": {
          "input_per_mtok": {
            "type": "number",
            "title": "Input Per Mtok"
          },
          "output_per_mtok": {
            "type": "number",
            "title": "Output Per Mtok"
          }
        },
        "type": "object",
        "required": [
          "input_per_mtok",
          "output_per_mtok"
        ],
        "title": "AiPriceOut",
        "description": "List price in USD per 1M tokens (output includes thinking tokens)."
      },
      "AiQuestionIn": {
        "properties": {
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          }
        },
        "type": "object",
        "required": [
          "question_id"
        ],
        "title": "AiQuestionIn"
      },
      "AiRetryIn": {
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "today",
              "7d",
              "30d",
              "month",
              "custom"
            ],
            "title": "Period",
            "default": "30d"
          },
          "from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "From",
            "description": "Custom period: first day"
          },
          "to": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "To",
            "description": "Custom period: last day"
          }
        },
        "type": "object",
        "title": "AiRetryIn",
        "description": "The period whose failed AI work is retried (the same choices as the page)."
      },
      "AiRetryOut": {
        "properties": {
          "date_from": {
            "type": "string",
            "format": "date",
            "title": "Date From"
          },
          "date_to": {
            "type": "string",
            "format": "date",
            "title": "Date To"
          },
          "queued": {
            "type": "integer",
            "title": "Queued"
          },
          "skipped": {
            "type": "integer",
            "title": "Skipped"
          },
          "by_kind": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Kind",
            "description": "Queued items per call kind"
          },
          "skipped_by_reason": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Skipped By Reason",
            "description": "succeeded, superseded, in_progress, already_queued, not_retryable or error"
          },
          "remaining": {
            "type": "integer",
            "title": "Remaining",
            "description": "Items left for another request (beyond `limit`)"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          }
        },
        "type": "object",
        "required": [
          "date_from",
          "date_to",
          "queued",
          "skipped",
          "by_kind",
          "skipped_by_reason",
          "remaining",
          "limit"
        ],
        "title": "AiRetryOut"
      },
      "AiRetryPreviewOut": {
        "properties": {
          "date_from": {
            "type": "string",
            "format": "date",
            "title": "Date From"
          },
          "date_to": {
            "type": "string",
            "format": "date",
            "title": "Date To"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "description": "Failed items of the period that a retry would consider"
          },
          "by_kind": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Kind"
          },
          "limit": {
            "type": "integer",
            "title": "Limit",
            "description": "Items queued per request at most"
          },
          "capped": {
            "type": "boolean",
            "title": "Capped",
            "description": "More items than one request queues"
          }
        },
        "type": "object",
        "required": [
          "date_from",
          "date_to",
          "total",
          "by_kind",
          "limit",
          "capped"
        ],
        "title": "AiRetryPreviewOut"
      },
      "AiUsageDayOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "calls": {
            "type": "integer",
            "title": "Calls"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "input_tokens": {
            "type": "integer",
            "title": "Input Tokens"
          },
          "output_tokens": {
            "type": "integer",
            "title": "Output Tokens"
          },
          "cost_usd": {
            "type": "number",
            "title": "Cost Usd"
          },
          "unpriced_calls": {
            "type": "integer",
            "title": "Unpriced Calls"
          }
        },
        "type": "object",
        "required": [
          "date",
          "calls",
          "failed",
          "input_tokens",
          "output_tokens",
          "cost_usd",
          "unpriced_calls"
        ],
        "title": "AiUsageDayOut"
      },
      "AiUsageKindOut": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind",
            "description": "What the call was for"
          },
          "calls": {
            "type": "integer",
            "title": "Calls"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "input_tokens": {
            "type": "integer",
            "title": "Input Tokens"
          },
          "output_tokens": {
            "type": "integer",
            "title": "Output Tokens"
          },
          "cost_usd": {
            "type": "number",
            "title": "Cost Usd"
          },
          "unpriced_calls": {
            "type": "integer",
            "title": "Unpriced Calls"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "calls",
          "failed",
          "input_tokens",
          "output_tokens",
          "cost_usd",
          "unpriced_calls"
        ],
        "title": "AiUsageKindOut"
      },
      "AiUsageModelOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "The model as stored (`provider:model`): the log filter"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider",
            "description": "anthropic | openai | gemini; null if unknown"
          },
          "model": {
            "type": "string",
            "title": "Model"
          },
          "calls": {
            "type": "integer",
            "title": "Calls"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "input_tokens": {
            "type": "integer",
            "title": "Input Tokens"
          },
          "output_tokens": {
            "type": "integer",
            "title": "Output Tokens"
          },
          "cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Usd",
            "description": "Null when the model has no price"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiPriceOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "Price on the last day of the period"
          }
        },
        "type": "object",
        "required": [
          "key",
          "provider",
          "model",
          "calls",
          "failed",
          "input_tokens",
          "output_tokens",
          "cost_usd",
          "price"
        ],
        "title": "AiUsageModelOut"
      },
      "AiUsageTotalsOut": {
        "properties": {
          "calls": {
            "type": "integer",
            "title": "Calls"
          },
          "done": {
            "type": "integer",
            "title": "Done"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "in_progress": {
            "type": "integer",
            "title": "In Progress",
            "description": "Pending or running calls"
          },
          "input_tokens": {
            "type": "integer",
            "title": "Input Tokens"
          },
          "output_tokens": {
            "type": "integer",
            "title": "Output Tokens"
          },
          "cost_usd": {
            "type": "number",
            "title": "Cost Usd",
            "description": "Estimated cost of the calls whose model has a price"
          },
          "unpriced_calls": {
            "type": "integer",
            "title": "Unpriced Calls",
            "description": "Calls that used tokens on a model without a price (not in `cost_usd`)"
          }
        },
        "type": "object",
        "required": [
          "calls",
          "done",
          "failed",
          "in_progress",
          "input_tokens",
          "output_tokens",
          "cost_usd",
          "unpriced_calls"
        ],
        "title": "AiUsageTotalsOut"
      },
      "AnnouncementIn": {
        "properties": {
          "problem_label": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z][0-9]?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Problem Label"
          },
          "text": {
            "type": "string",
            "maxLength": 4000,
            "minLength": 3,
            "title": "Text"
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "AnnouncementIn"
      },
      "AnswerFieldOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label_uz": {
            "type": "string",
            "title": "Label Uz"
          },
          "label_en": {
            "type": "string",
            "title": "Label En"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "value": {
            "title": "Value"
          },
          "display_uz": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Uz"
          },
          "display_en": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display En"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label_uz",
          "label_en",
          "type"
        ],
        "title": "AnswerFieldOut"
      },
      "AnswerIn": {
        "properties": {
          "selected_option_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 12
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Option Ids"
          },
          "text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 2147483647.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev",
            "description": "Client revision of this answer: a save whose rev is not above the stored one changes nothing (`stale` in the response) — retries and late requests are safe"
          }
        },
        "type": "object",
        "title": "AnswerIn",
        "description": "MCQ: `selected_option_ids`; prompt/open text: `text`; Python/SQL draft: `code`."
      },
      "AnswerOut": {
        "properties": {
          "session_question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Question Id"
          },
          "status": {
            "$ref": "#/components/schemas/SessionQuestionStatus"
          },
          "saved_at": {
            "type": "string",
            "format": "date-time",
            "title": "Saved At"
          },
          "word_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Word Count"
          },
          "word_limit_ok": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Word Limit Ok"
          },
          "seq": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Seq"
          },
          "rev": {
            "type": "integer",
            "title": "Rev",
            "description": "The stored revision after this request",
            "default": 0
          },
          "stale": {
            "type": "boolean",
            "title": "Stale",
            "description": "The request's rev was not newer than the stored one: nothing was written (`rev` equal to the sent one: this save was stored before — a retry)",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "session_question_id",
          "status",
          "saved_at"
        ],
        "title": "AnswerOut"
      },
      "AnswerStateOut": {
        "properties": {
          "selected_option_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Option Ids"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "word_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Word Count"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "saved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Saved At"
          },
          "rev": {
            "type": "integer",
            "title": "Rev",
            "description": "Highest client revision stored for this answer (0: none); the workspace continues numbering after the highest one and keeps a newer unsaved local answer",
            "default": 0
          }
        },
        "type": "object",
        "title": "AnswerStateOut",
        "description": "Saved state for resume: MCQ selection, text, latest code draft."
      },
      "ApplicationCountsOut": {
        "properties": {
          "programs": {
            "type": "integer",
            "title": "Programs",
            "description": "Programs' applications (`kind=program`)"
          },
          "sets": {
            "type": "integer",
            "title": "Sets",
            "description": "Assessment-link participants who started the attempt (`kind=set`)"
          }
        },
        "type": "object",
        "required": [
          "programs",
          "sets"
        ],
        "title": "ApplicationCountsOut",
        "description": "Rows of the table's two tabs without filters (drafts and the caller's own application\nleft out; mentors count their assigned applications)."
      },
      "ApplicationDetailOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "program": {
            "$ref": "#/components/schemas/ProgramRef"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "total_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Score"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "ranked_total": {
            "type": "integer",
            "title": "Ranked Total",
            "default": 0
          },
          "profile_signal": {
            "$ref": "#/components/schemas/ProfileSignalOut"
          },
          "integrity": {
            "$ref": "#/components/schemas/ReviewIntegrityOut"
          },
          "decision_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision Note"
          },
          "decided_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "decided_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "candidate": {
            "$ref": "#/components/schemas/CandidateOut"
          },
          "cv": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CvRefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "skills": {
            "items": {
              "$ref": "#/components/schemas/ReviewSkillOut"
            },
            "type": "array",
            "title": "Skills"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/LinkOut"
            },
            "type": "array",
            "title": "Links"
          },
          "answers": {
            "items": {
              "$ref": "#/components/schemas/AnswerFieldOut"
            },
            "type": "array",
            "title": "Answers"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "reviewers": {
            "items": {
              "$ref": "#/components/schemas/PersonRef"
            },
            "type": "array",
            "title": "Reviewers"
          },
          "mentionable": {
            "items": {
              "$ref": "#/components/schemas/PersonRef"
            },
            "type": "array",
            "title": "Mentionable"
          },
          "assessment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AssessmentReviewOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CandidateSummaryOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "interview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewSummaryOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/StatusHistoryItem"
            },
            "type": "array",
            "title": "History"
          },
          "timeline": {
            "items": {
              "$ref": "#/components/schemas/TimelineEventOut"
            },
            "type": "array",
            "title": "Timeline"
          },
          "allowed_statuses": {
            "items": {
              "$ref": "#/components/schemas/ApplicationStatus"
            },
            "type": "array",
            "title": "Allowed Statuses"
          },
          "can": {
            "$ref": "#/components/schemas/DetailPermissionsOut"
          },
          "ai_enabled": {
            "type": "boolean",
            "title": "Ai Enabled",
            "default": false
          },
          "set_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Set Id",
            "description": "The assessment link this application belongs to, else null. Set participants get no internship stages (shortlist, decision, interview, re-invite), so `allowed_statuses` is empty for them"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "program",
          "created_at",
          "updated_at",
          "candidate"
        ],
        "title": "ApplicationDetailOut"
      },
      "ApplicationDraftIn": {
        "properties": {
          "answers": {
            "additionalProperties": true,
            "type": "object",
            "title": "Answers"
          },
          "wizard_step": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 8.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Wizard Step"
          },
          "source": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          }
        },
        "type": "object",
        "title": "ApplicationDraftIn"
      },
      "ApplicationListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "program": {
            "$ref": "#/components/schemas/ProgramRef"
          },
          "candidate": {
            "$ref": "#/components/schemas/PersonRef"
          },
          "age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "total_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Score"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "profile_signal": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Signal"
          },
          "sections": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Sections",
            "description": "Section percent per question type (0–100)"
          },
          "integrity": {
            "$ref": "#/components/schemas/ReviewIntegrityOut"
          },
          "scoring_status": {
            "type": "string",
            "enum": [
              "not_scored",
              "provisional",
              "final"
            ],
            "title": "Scoring Status",
            "default": "not_scored"
          },
          "pending_grading": {
            "type": "integer",
            "title": "Pending Grading",
            "default": 0
          },
          "sql_level": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sql Level"
          },
          "python_level": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Python Level"
          },
          "english_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Level"
          },
          "top_skills": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Top Skills"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/LinkBadgeOut"
            },
            "type": "array",
            "title": "Links"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "reviewers": {
            "items": {
              "$ref": "#/components/schemas/PersonRef"
            },
            "type": "array",
            "title": "Reviewers"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "recommendation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SummaryRecommendation"
              },
              {
                "type": "null"
              }
            ]
          },
          "set": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SetRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The assessment link of a participant's application"
          },
          "set_state": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "started",
                  "submitted",
                  "scored",
                  "reviewed"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Set State",
            "description": "A link participant's state, as in the link's results: started · submitted · scored · reviewed (null for program applications)"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "program",
          "candidate"
        ],
        "title": "ApplicationListItem"
      },
      "ApplicationOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "program_id": {
            "type": "string",
            "format": "uuid",
            "title": "Program Id"
          },
          "status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "answers": {
            "additionalProperties": true,
            "type": "object",
            "title": "Answers"
          },
          "wizard_step": {
            "type": "integer",
            "title": "Wizard Step"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "program_id",
          "status",
          "answers",
          "wizard_step",
          "submitted_at",
          "created_at",
          "updated_at"
        ],
        "title": "ApplicationOut"
      },
      "ApplicationPageOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ApplicationListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "ApplicationPageOut"
      },
      "ApplicationStatus": {
        "type": "string",
        "enum": [
          "draft",
          "submitted",
          "assessment_invited",
          "assessment_in_progress",
          "assessment_done",
          "shortlisted",
          "interview_invited",
          "interview_scheduled",
          "interviewed",
          "accepted",
          "rejected",
          "waitlisted",
          "withdrawn"
        ],
        "title": "ApplicationStatus"
      },
      "ApplicationSubmitIn": {
        "properties": {
          "consents": {
            "$ref": "#/components/schemas/ConsentsIn"
          }
        },
        "type": "object",
        "required": [
          "consents"
        ],
        "title": "ApplicationSubmitIn"
      },
      "ArenaOut": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "format": {
            "$ref": "#/components/schemas/ContestFormat"
          },
          "phase": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "contest",
                  "virtual",
                  "upsolve"
                ]
              },
              {
                "type": "string",
                "const": "view"
              }
            ],
            "title": "Mode"
          },
          "proctoring": {
            "$ref": "#/components/schemas/ContestProctoring"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "window_ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Window Ends At"
          },
          "freeze_minutes": {
            "type": "integer",
            "title": "Freeze Minutes"
          },
          "freeze_starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Freeze Starts At"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          },
          "can_submit": {
            "type": "boolean",
            "title": "Can Submit"
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/ArenaProblemOut"
            },
            "type": "array",
            "title": "Problems"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "title",
          "format",
          "phase",
          "mode",
          "proctoring",
          "starts_at",
          "ends_at",
          "window_ends_at",
          "freeze_minutes",
          "freeze_starts_at",
          "server_now",
          "can_submit",
          "problems"
        ],
        "title": "ArenaOut"
      },
      "ArenaProblemOut": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "question": {
            "$ref": "#/components/schemas/CandidateQuestionOut"
          },
          "my": {
            "$ref": "#/components/schemas/ArenaProblemStateOut"
          }
        },
        "type": "object",
        "required": [
          "label",
          "points",
          "question",
          "my"
        ],
        "title": "ArenaProblemOut"
      },
      "ArenaProblemStateOut": {
        "properties": {
          "solved": {
            "type": "boolean",
            "title": "Solved",
            "default": false
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts",
            "default": 0
          },
          "best_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Best Score"
          }
        },
        "type": "object",
        "title": "ArenaProblemStateOut"
      },
      "AssessmentBriefOut": {
        "properties": {
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "title": "Valid Until"
          },
          "opened_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opened At"
          },
          "used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Used At"
          },
          "available": {
            "type": "boolean",
            "title": "Available"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "session_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Status"
          }
        },
        "type": "object",
        "required": [
          "valid_until",
          "opened_at",
          "used_at",
          "available"
        ],
        "title": "AssessmentBriefOut"
      },
      "AssessmentIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "title": "Title"
          },
          "instructions_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Instructions Md"
          },
          "duration_minutes": {
            "type": "integer",
            "maximum": 600.0,
            "minimum": 5.0,
            "title": "Duration Minutes",
            "default": 90
          },
          "window_hours": {
            "type": "integer",
            "maximum": 1440.0,
            "minimum": 1.0,
            "title": "Window Hours",
            "default": 72
          },
          "settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AssessmentSettingsIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/AssessmentStatus",
            "default": "draft"
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "AssessmentIn"
      },
      "AssessmentLinkOut": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "title": "Valid Until"
          }
        },
        "type": "object",
        "required": [
          "url",
          "valid_until"
        ],
        "title": "AssessmentLinkOut"
      },
      "AssessmentListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/AssessmentStatus"
          },
          "duration_minutes": {
            "type": "integer",
            "title": "Duration Minutes"
          },
          "window_hours": {
            "type": "integer",
            "title": "Window Hours"
          },
          "sections_count": {
            "type": "integer",
            "title": "Sections Count"
          },
          "total_questions": {
            "type": "integer",
            "title": "Total Questions"
          },
          "sessions_count": {
            "type": "integer",
            "title": "Sessions Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "status",
          "duration_minutes",
          "window_hours",
          "sections_count",
          "total_questions",
          "sessions_count",
          "created_at",
          "updated_at"
        ],
        "title": "AssessmentListItem"
      },
      "AssessmentOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/AssessmentStatus"
          },
          "duration_minutes": {
            "type": "integer",
            "title": "Duration Minutes"
          },
          "window_hours": {
            "type": "integer",
            "title": "Window Hours"
          },
          "sections_count": {
            "type": "integer",
            "title": "Sections Count"
          },
          "total_questions": {
            "type": "integer",
            "title": "Total Questions"
          },
          "sessions_count": {
            "type": "integer",
            "title": "Sessions Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "instructions_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instructions Md"
          },
          "settings": {
            "$ref": "#/components/schemas/AssessmentSettings"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SectionOut"
            },
            "type": "array",
            "title": "Sections"
          },
          "program_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Program Ids"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "status",
          "duration_minutes",
          "window_hours",
          "sections_count",
          "total_questions",
          "sessions_count",
          "created_at",
          "updated_at",
          "instructions_md",
          "settings",
          "sections",
          "program_ids"
        ],
        "title": "AssessmentOut"
      },
      "AssessmentPatch": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "instructions_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Instructions Md"
          },
          "duration_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 600.0,
                "minimum": 5.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Minutes"
          },
          "window_hours": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1440.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Window Hours"
          },
          "settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AssessmentSettingsIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AssessmentStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "AssessmentPatch"
      },
      "AssessmentReviewOut": {
        "properties": {
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Assessment Id"
          },
          "assessment_title": {
            "type": "string",
            "title": "Assessment Title"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "duration_sec": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Sec"
          },
          "auto_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Score"
          },
          "final_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Final Score"
          },
          "scoring_status": {
            "type": "string",
            "enum": [
              "not_scored",
              "provisional",
              "final"
            ],
            "title": "Scoring Status",
            "default": "not_scored"
          },
          "pending_count": {
            "type": "integer",
            "title": "Pending Count",
            "default": 0
          },
          "code_score_policy": {
            "type": "string",
            "enum": [
              "last",
              "best"
            ],
            "title": "Code Score Policy",
            "default": "last"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SectionScoreOut"
            },
            "type": "array",
            "title": "Sections"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/QuestionReviewOut"
            },
            "type": "array",
            "title": "Questions"
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "assessment_id",
          "assessment_title",
          "status"
        ],
        "title": "AssessmentReviewOut"
      },
      "AssessmentSettings": {
        "properties": {
          "paste_allowed": {
            "type": "boolean",
            "title": "Paste Allowed",
            "default": false
          },
          "fullscreen_required": {
            "type": "boolean",
            "title": "Fullscreen Required",
            "default": true
          },
          "webcam_mode": {
            "type": "string",
            "enum": [
              "off",
              "optional",
              "required"
            ],
            "title": "Webcam Mode",
            "default": "off"
          },
          "screen_mode": {
            "type": "string",
            "enum": [
              "off",
              "optional",
              "required"
            ],
            "title": "Screen Mode",
            "default": "off"
          },
          "snapshot_interval_sec": {
            "type": "integer",
            "maximum": 3600.0,
            "minimum": 10.0,
            "title": "Snapshot Interval Sec",
            "default": 30
          },
          "max_runs_per_question": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Runs Per Question"
          },
          "show_score_after_submit": {
            "type": "boolean",
            "title": "Show Score After Submit",
            "default": false
          },
          "allow_mobile": {
            "type": "boolean",
            "title": "Allow Mobile",
            "default": false
          },
          "code_score_policy": {
            "type": "string",
            "enum": [
              "last",
              "best"
            ],
            "title": "Code Score Policy",
            "default": "last"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "AssessmentSettings",
        "description": "The effective settings, defaults filled in."
      },
      "AssessmentSettingsIn": {
        "properties": {
          "paste_allowed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paste Allowed"
          },
          "fullscreen_required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fullscreen Required"
          },
          "webcam_mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "off",
                  "optional",
                  "required"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Webcam Mode"
          },
          "screen_mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "off",
                  "optional",
                  "required"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Screen Mode"
          },
          "snapshot_interval_sec": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3600.0,
                "minimum": 10.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Snapshot Interval Sec"
          },
          "max_runs_per_question": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Runs Per Question"
          },
          "show_score_after_submit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Show Score After Submit"
          },
          "allow_mobile": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Mobile"
          },
          "code_score_policy": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "last",
                  "best"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Code Score Policy"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "AssessmentSettingsIn",
        "description": "Partial settings for create/patch; omitted keys keep their current (or default) value."
      },
      "AssessmentStatus": {
        "type": "string",
        "enum": [
          "draft",
          "active",
          "archived"
        ],
        "title": "AssessmentStatus"
      },
      "AttemptQuestionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title"
        ],
        "title": "AttemptQuestionOut"
      },
      "AttemptUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email"
        ],
        "title": "AttemptUserOut"
      },
      "AttendanceCountsOut": {
        "properties": {
          "present": {
            "type": "integer",
            "title": "Present",
            "default": 0
          },
          "late": {
            "type": "integer",
            "title": "Late",
            "default": 0
          },
          "absent": {
            "type": "integer",
            "title": "Absent",
            "default": 0
          },
          "excused": {
            "type": "integer",
            "title": "Excused",
            "default": 0
          },
          "unmarked": {
            "type": "integer",
            "title": "Unmarked",
            "default": 0
          }
        },
        "type": "object",
        "title": "AttendanceCountsOut"
      },
      "AttendanceIn": {
        "properties": {
          "records": {
            "items": {
              "$ref": "#/components/schemas/AttendanceRecordIn"
            },
            "type": "array",
            "maxItems": 500,
            "title": "Records"
          },
          "all_present": {
            "type": "boolean",
            "title": "All Present",
            "default": false
          }
        },
        "type": "object",
        "title": "AttendanceIn",
        "description": "Bulk upsert. `all_present` marks every active member present unless listed in `records`."
      },
      "AttendanceItemOut": {
        "properties": {
          "class_id": {
            "type": "string",
            "format": "uuid",
            "title": "Class Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttendanceStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "class_id",
          "title",
          "starts_at",
          "ends_at",
          "status",
          "note"
        ],
        "title": "AttendanceItemOut"
      },
      "AttendanceRecordIn": {
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "status": {
            "$ref": "#/components/schemas/AttendanceStatus"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "status"
        ],
        "title": "AttendanceRecordIn"
      },
      "AttendanceStatus": {
        "type": "string",
        "enum": [
          "present",
          "late",
          "absent",
          "excused"
        ],
        "title": "AttendanceStatus"
      },
      "AttendanceSummaryOut": {
        "properties": {
          "held": {
            "type": "integer",
            "title": "Held"
          },
          "present": {
            "type": "integer",
            "title": "Present"
          },
          "late": {
            "type": "integer",
            "title": "Late"
          },
          "absent": {
            "type": "integer",
            "title": "Absent"
          },
          "excused": {
            "type": "integer",
            "title": "Excused"
          },
          "percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent"
          }
        },
        "type": "object",
        "required": [
          "held",
          "present",
          "late",
          "absent",
          "excused",
          "percent"
        ],
        "title": "AttendanceSummaryOut"
      },
      "AuditActorOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email"
        ],
        "title": "AuditActorOut"
      },
      "AuditFacetsOut": {
        "properties": {
          "actions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Actions"
          },
          "entity_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Entity Types"
          }
        },
        "type": "object",
        "required": [
          "actions",
          "entity_types"
        ],
        "title": "AuditFacetsOut",
        "description": "Distinct values present in this portal's log, for the filter selects."
      },
      "AuditLogOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Id"
          },
          "actor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "before": {
            "title": "Before"
          },
          "after": {
            "title": "After"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip"
          }
        },
        "type": "object",
        "required": [
          "id",
          "created_at",
          "action",
          "entity_type"
        ],
        "title": "AuditLogOut"
      },
      "AuthMethod": {
        "type": "string",
        "enum": [
          "google",
          "password",
          "dev"
        ],
        "title": "AuthMethod"
      },
      "AuthSessionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "current": {
            "type": "boolean",
            "title": "Current"
          },
          "method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuthMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "browser": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Browser"
          },
          "os": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Os"
          },
          "mobile": {
            "type": "boolean",
            "title": "Mobile"
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip"
          },
          "user_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Agent"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_active_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last Active At"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "current",
          "method",
          "browser",
          "os",
          "mobile",
          "ip",
          "user_agent",
          "created_at",
          "last_active_at",
          "expires_at"
        ],
        "title": "AuthSessionOut"
      },
      "AuthStepOut": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "signed_in",
              "verification_required"
            ],
            "title": "Status"
          },
          "challenge_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Challenge Id"
          },
          "resend_after": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resend After",
            "description": "Seconds until a new code may be sent."
          },
          "expires_in": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In",
            "description": "Seconds until the current code expires."
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "AuthStepOut",
        "description": "`signed_in` (cookies are set) or `verification_required` (enter the emailed code)."
      },
      "AwayIntervalOut": {
        "properties": {
          "start_ms": {
            "type": "integer",
            "title": "Start Ms"
          },
          "end_ms": {
            "type": "integer",
            "title": "End Ms"
          }
        },
        "type": "object",
        "required": [
          "start_ms",
          "end_ms"
        ],
        "title": "AwayIntervalOut"
      },
      "BadgeOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "tier": {
            "type": "string",
            "enum": [
              "bronze",
              "silver",
              "gold"
            ],
            "title": "Tier",
            "default": "bronze"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "BadgeOut"
      },
      "BlockSlotsIn": {
        "properties": {
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id",
            "description": "Program whose candidates may book; null = any program"
          },
          "interviewer_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interviewer Id",
            "description": "Admin or mentor of the portal; defaults to the caller"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "mode": {
            "type": "string",
            "const": "block",
            "title": "Mode"
          },
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "from": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "title": "From"
          },
          "to": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "title": "To"
          },
          "slot_minutes": {
            "type": "integer",
            "maximum": 480.0,
            "minimum": 5.0,
            "title": "Slot Minutes",
            "default": 30
          },
          "gap_minutes": {
            "type": "integer",
            "maximum": 240.0,
            "minimum": 0.0,
            "title": "Gap Minutes",
            "description": "Break between consecutive slots",
            "default": 0
          },
          "timezone": {
            "type": "string",
            "maxLength": 64,
            "title": "Timezone",
            "default": "Asia/Tashkent"
          }
        },
        "type": "object",
        "required": [
          "mode",
          "date",
          "from",
          "to"
        ],
        "title": "BlockSlotsIn",
        "description": "One day cut into slots, e.g. 10:00–17:00 in 30-minute slots (wall-clock time zone)."
      },
      "Body_import_questions_api_v1_questions_import_post": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_import_questions_api_v1_questions_import_post"
      },
      "Body_infer_dataset_api_v1_question_tools_infer_dataset_post": {
        "properties": {
          "files": {
            "items": {
              "type": "string",
              "contentMediaType": "application/octet-stream"
            },
            "type": "array",
            "title": "Files"
          },
          "names": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Names"
          }
        },
        "type": "object",
        "required": [
          "files"
        ],
        "title": "Body_infer_dataset_api_v1_question_tools_infer_dataset_post"
      },
      "BookIn": {
        "properties": {
          "slot_id": {
            "type": "string",
            "format": "uuid",
            "title": "Slot Id"
          }
        },
        "type": "object",
        "required": [
          "slot_id"
        ],
        "title": "BookIn"
      },
      "BookedSlotOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "interviewer_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interviewer Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "starts_at",
          "ends_at",
          "meeting_url",
          "location",
          "interviewer_name"
        ],
        "title": "BookedSlotOut"
      },
      "BookingDayOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "slots": {
            "items": {
              "$ref": "#/components/schemas/BookingSlotOut"
            },
            "type": "array",
            "title": "Slots"
          }
        },
        "type": "object",
        "required": [
          "date",
          "slots"
        ],
        "title": "BookingDayOut"
      },
      "BookingLinkOut": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "url"
        ],
        "title": "BookingLinkOut"
      },
      "BookingOut": {
        "properties": {
          "interview_id": {
            "type": "string",
            "format": "uuid",
            "title": "Interview Id"
          },
          "status": {
            "$ref": "#/components/schemas/InterviewStatus"
          },
          "program": {
            "$ref": "#/components/schemas/InterviewProgramRefOut"
          },
          "booked_slot": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BookedSlotOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "can_book": {
            "type": "boolean",
            "title": "Can Book"
          },
          "can_reschedule": {
            "type": "boolean",
            "title": "Can Reschedule"
          },
          "reschedule_count": {
            "type": "integer",
            "title": "Reschedule Count"
          },
          "max_reschedules": {
            "type": "integer",
            "title": "Max Reschedules"
          },
          "reschedule_deadline": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reschedule Deadline"
          },
          "reschedule_block_reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "limit",
                  "too_late"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reschedule Block Reason"
          },
          "days": {
            "items": {
              "$ref": "#/components/schemas/BookingDayOut"
            },
            "type": "array",
            "title": "Days"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone"
          }
        },
        "type": "object",
        "required": [
          "interview_id",
          "status",
          "program",
          "booked_slot",
          "can_book",
          "can_reschedule",
          "reschedule_count",
          "max_reschedules",
          "reschedule_deadline",
          "days",
          "timezone"
        ],
        "title": "BookingOut"
      },
      "BookingSlotOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "is_online": {
            "type": "boolean",
            "title": "Is Online"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          }
        },
        "type": "object",
        "required": [
          "id",
          "starts_at",
          "ends_at",
          "is_online",
          "location"
        ],
        "title": "BookingSlotOut"
      },
      "BriefAnswerOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label_uz": {
            "type": "string",
            "title": "Label Uz"
          },
          "label_en": {
            "type": "string",
            "title": "Label En"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "value_uz": {
            "type": "string",
            "title": "Value Uz"
          },
          "value_en": {
            "type": "string",
            "title": "Value En"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label_uz",
          "label_en",
          "type",
          "value_uz",
          "value_en"
        ],
        "title": "BriefAnswerOut"
      },
      "BriefLinkOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "url",
          "handle"
        ],
        "title": "BriefLinkOut"
      },
      "BriefProfileOut": {
        "properties": {
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age"
          },
          "education_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Education Level"
          },
          "university": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "University"
          },
          "graduation_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graduation Year"
          },
          "current_position": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Position"
          },
          "company": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company"
          },
          "english_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Level"
          },
          "english_certificate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Certificate"
          },
          "about_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "About Md"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/BriefLinkOut"
            },
            "type": "array",
            "title": "Links"
          }
        },
        "type": "object",
        "required": [
          "full_name",
          "email",
          "avatar_url"
        ],
        "title": "BriefProfileOut"
      },
      "BriefScoresOut": {
        "properties": {
          "total_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Score"
          },
          "integrity_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integrity Score"
          },
          "integrity_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integrity Level"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "plagiarism_max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plagiarism Max"
          },
          "assessment_submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assessment Submitted At"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/BriefSectionOut"
            },
            "type": "array",
            "title": "Sections"
          }
        },
        "type": "object",
        "required": [
          "total_score",
          "integrity_score",
          "integrity_level",
          "rank"
        ],
        "title": "BriefScoresOut"
      },
      "BriefSectionOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          },
          "percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max"
          }
        },
        "type": "object",
        "required": [
          "key",
          "title",
          "type",
          "percent"
        ],
        "title": "BriefSectionOut"
      },
      "BriefSkillOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "category": {
            "type": "string",
            "title": "Category"
          },
          "level": {
            "type": "integer",
            "title": "Level"
          },
          "years": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Years"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "category",
          "level",
          "years"
        ],
        "title": "BriefSkillOut"
      },
      "BriefSummaryOut": {
        "properties": {
          "summary_md": {
            "type": "string",
            "title": "Summary Md"
          },
          "strengths": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Strengths"
          },
          "risks": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Risks"
          },
          "recommendation": {
            "$ref": "#/components/schemas/SummaryRecommendation"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Generated At"
          }
        },
        "type": "object",
        "required": [
          "summary_md",
          "strengths",
          "risks",
          "recommendation",
          "generated_at"
        ],
        "title": "BriefSummaryOut"
      },
      "BulkAction": {
        "type": "string",
        "enum": [
          "status",
          "tag",
          "untag",
          "assign",
          "unassign",
          "rescore"
        ],
        "title": "BulkAction"
      },
      "BulkDecisionIn": {
        "properties": {
          "decision": {
            "$ref": "#/components/schemas/Decision"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "send_email": {
            "type": "boolean",
            "title": "Send Email",
            "default": true
          },
          "application_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "Application Ids"
          }
        },
        "type": "object",
        "required": [
          "decision",
          "application_ids"
        ],
        "title": "BulkDecisionIn"
      },
      "BulkDecisionOut": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/DecisionOut"
            },
            "type": "array",
            "title": "Results"
          },
          "succeeded": {
            "type": "integer",
            "title": "Succeeded"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          }
        },
        "type": "object",
        "required": [
          "results",
          "succeeded",
          "failed"
        ],
        "title": "BulkDecisionOut"
      },
      "BulkIn": {
        "properties": {
          "action": {
            "$ref": "#/components/schemas/BulkAction"
          },
          "application_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Application Ids"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "send_email": {
            "type": "boolean",
            "title": "Send Email",
            "default": true
          },
          "tag": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          }
        },
        "type": "object",
        "required": [
          "action",
          "application_ids"
        ],
        "title": "BulkIn",
        "description": "One action for many applications. Decisions (accept/reject/waitlist) use\n`POST /applications/decisions`, interview invites `POST /interviews/invite`."
      },
      "BulkOut": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/BulkResultOut"
            },
            "type": "array",
            "title": "Results"
          },
          "succeeded": {
            "type": "integer",
            "title": "Succeeded"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          }
        },
        "type": "object",
        "required": [
          "results",
          "succeeded",
          "failed"
        ],
        "title": "BulkOut"
      },
      "BulkResultOut": {
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "application_id",
          "ok"
        ],
        "title": "BulkResultOut"
      },
      "BulkTagIn": {
        "properties": {
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Ids"
          },
          "add": {
            "items": {
              "type": "string",
              "maxLength": 40
            },
            "type": "array",
            "maxItems": 20,
            "title": "Add"
          },
          "remove": {
            "items": {
              "type": "string",
              "maxLength": 40
            },
            "type": "array",
            "maxItems": 20,
            "title": "Remove"
          }
        },
        "type": "object",
        "required": [
          "ids"
        ],
        "title": "BulkTagIn",
        "description": "Tags to add to / remove from up to 500 questions: at most 20 of each, 40 characters each,\nstored like the editor's tags (trimmed, lower case); a question keeps at most 20 tags."
      },
      "BulkTagOut": {
        "properties": {
          "updated": {
            "type": "integer",
            "title": "Updated"
          }
        },
        "type": "object",
        "required": [
          "updated"
        ],
        "title": "BulkTagOut"
      },
      "CandidateOut": {
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone",
            "description": "Admins only"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "education_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Education Level"
          },
          "university": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "University"
          },
          "graduation_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graduation Year"
          },
          "current_position": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Position"
          },
          "company": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company"
          },
          "english_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Level"
          },
          "english_certificate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Certificate"
          },
          "about_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "About Md"
          },
          "portfolio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Portfolio Url"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "full_name",
          "email"
        ],
        "title": "CandidateOut"
      },
      "CandidateQuestionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "statement_md": {
            "type": "string",
            "title": "Statement Md"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty"
          },
          "time_limit_ms": {
            "type": "integer",
            "title": "Time Limit Ms"
          },
          "memory_limit_mb": {
            "type": "integer",
            "title": "Memory Limit Mb"
          },
          "language": {
            "type": "string",
            "enum": [
              "uz",
              "en"
            ],
            "title": "Language",
            "description": "Base language of `title` / `statement_md`; `translations` hold others",
            "default": "uz"
          },
          "translations": {
            "additionalProperties": true,
            "type": "object",
            "title": "Translations",
            "description": "{\"en\": {\"title\", \"statement_md\"}} (text only)"
          },
          "python_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PythonMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "function_signature": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Function Signature"
          },
          "starter_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starter Code"
          },
          "visible_tests": {
            "items": {
              "$ref": "#/components/schemas/VisibleTestOut"
            },
            "type": "array",
            "title": "Visible Tests",
            "default": []
          },
          "hidden_tests_count": {
            "type": "integer",
            "title": "Hidden Tests Count",
            "default": 0
          },
          "sql_tables": {
            "items": {
              "$ref": "#/components/schemas/SchemaTableOut"
            },
            "type": "array",
            "title": "Sql Tables",
            "default": []
          },
          "sql_hints": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Sql Hints",
            "description": "SQL only: ids of the DuckDB hints this question may need — ids only; the text comes from the catalog the web app ships"
          },
          "options": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Options",
            "default": []
          },
          "multi_select": {
            "type": "boolean",
            "title": "Multi Select",
            "default": false
          },
          "scenario_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scenario Md"
          },
          "deliverable_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deliverable Md"
          },
          "min_words": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Words"
          },
          "max_words": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Words"
          },
          "pitch": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PitchConfig"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "title",
          "statement_md",
          "difficulty",
          "time_limit_ms",
          "memory_limit_mb"
        ],
        "title": "CandidateQuestionOut"
      },
      "CandidateSummaryOut": {
        "properties": {
          "summary_md": {
            "type": "string",
            "title": "Summary Md"
          },
          "strengths": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Strengths"
          },
          "risks": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Risks"
          },
          "recommendation": {
            "$ref": "#/components/schemas/SummaryRecommendation"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Generated At"
          },
          "ai_job_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Job Id"
          }
        },
        "type": "object",
        "required": [
          "summary_md",
          "strengths",
          "risks",
          "recommendation",
          "generated_at"
        ],
        "title": "CandidateSummaryOut",
        "description": "AI-generated — the UI always shows the label \"AI-generated, verify\"."
      },
      "CaseResultOut": {
        "properties": {
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "is_hidden": {
            "type": "boolean",
            "title": "Is Hidden"
          },
          "verdict": {
            "type": "string",
            "title": "Verdict"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input"
          },
          "expected_output": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Output"
          },
          "stdout": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stdout"
          },
          "stderr": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stderr"
          },
          "console": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Console"
          },
          "console_truncated": {
            "type": "boolean",
            "title": "Console Truncated",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "position",
          "is_hidden",
          "verdict"
        ],
        "title": "CaseResultOut",
        "description": "Per-test outcome shown to the intern; hidden tests carry the verdict only."
      },
      "CaseResultReviewOut": {
        "properties": {
          "test_case_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Case Id"
          },
          "number": {
            "type": "integer",
            "title": "Number"
          },
          "is_hidden": {
            "type": "boolean",
            "title": "Is Hidden"
          },
          "weight": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weight"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "memory_kb": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Memory Kb"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input",
            "description": "Hidden tests: admins only"
          },
          "expected": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected",
            "description": "Hidden tests: admins only"
          },
          "stdout": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stdout",
            "description": "Hidden tests: admins only"
          },
          "stderr": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stderr",
            "description": "Hidden tests: admins only"
          },
          "console": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Console",
            "description": "Function mode, visible tests only: what the code printed"
          },
          "console_truncated": {
            "type": "boolean",
            "title": "Console Truncated",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "number",
          "is_hidden",
          "verdict"
        ],
        "title": "CaseResultReviewOut"
      },
      "Checker": {
        "type": "string",
        "enum": [
          "exact",
          "tokens",
          "float_tolerance",
          "unordered_lines",
          "custom"
        ],
        "title": "Checker"
      },
      "ClarificationAdminOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "problem_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Problem Label"
          },
          "question": {
            "type": "string",
            "title": "Question"
          },
          "answer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answer"
          },
          "is_public": {
            "type": "boolean",
            "title": "Is Public"
          },
          "is_announcement": {
            "type": "boolean",
            "title": "Is Announcement"
          },
          "is_mine": {
            "type": "boolean",
            "title": "Is Mine",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "asker": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicUserOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "asker_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asker Email"
          },
          "answered_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answered By Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "problem_label",
          "question",
          "answer",
          "is_public",
          "is_announcement",
          "created_at",
          "updated_at"
        ],
        "title": "ClarificationAdminOut"
      },
      "ClarificationAnswerIn": {
        "properties": {
          "answer": {
            "type": "string",
            "maxLength": 4000,
            "minLength": 1,
            "title": "Answer"
          },
          "is_public": {
            "type": "boolean",
            "title": "Is Public",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "answer"
        ],
        "title": "ClarificationAnswerIn"
      },
      "ClarificationIn": {
        "properties": {
          "problem_label": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z][0-9]?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Problem Label"
          },
          "question": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 3,
            "title": "Question"
          }
        },
        "type": "object",
        "required": [
          "question"
        ],
        "title": "ClarificationIn"
      },
      "ClarificationOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "problem_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Problem Label"
          },
          "question": {
            "type": "string",
            "title": "Question"
          },
          "answer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answer"
          },
          "is_public": {
            "type": "boolean",
            "title": "Is Public"
          },
          "is_announcement": {
            "type": "boolean",
            "title": "Is Announcement"
          },
          "is_mine": {
            "type": "boolean",
            "title": "Is Mine",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "problem_label",
          "question",
          "answer",
          "is_public",
          "is_announcement",
          "created_at",
          "updated_at"
        ],
        "title": "ClarificationOut"
      },
      "ClassBriefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "cohort_id": {
            "type": "string",
            "format": "uuid",
            "title": "Cohort Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "host": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "cohort_id",
          "title",
          "starts_at",
          "ends_at",
          "meeting_url",
          "location"
        ],
        "title": "ClassBriefOut"
      },
      "ClassDetailOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "cohort": {
            "$ref": "#/components/schemas/CohortBriefOut"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "host": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "reminder_sent": {
            "type": "boolean",
            "title": "Reminder Sent"
          },
          "attendance_taken": {
            "type": "boolean",
            "title": "Attendance Taken"
          },
          "counts": {
            "$ref": "#/components/schemas/AttendanceCountsOut"
          },
          "roster": {
            "items": {
              "$ref": "#/components/schemas/RosterEntryOut"
            },
            "type": "array",
            "title": "Roster"
          }
        },
        "type": "object",
        "required": [
          "id",
          "cohort",
          "title",
          "starts_at",
          "ends_at",
          "meeting_url",
          "location",
          "host",
          "reminder_sent",
          "attendance_taken",
          "counts",
          "roster"
        ],
        "title": "ClassDetailOut"
      },
      "ClassIn": {
        "properties": {
          "cohort_id": {
            "type": "string",
            "format": "uuid",
            "title": "Cohort Id"
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "host_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host Id"
          }
        },
        "type": "object",
        "required": [
          "cohort_id",
          "title",
          "starts_at"
        ],
        "title": "ClassIn"
      },
      "ClassOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "cohort": {
            "$ref": "#/components/schemas/CohortBriefOut"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "host": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "reminder_sent": {
            "type": "boolean",
            "title": "Reminder Sent"
          },
          "attendance_taken": {
            "type": "boolean",
            "title": "Attendance Taken"
          },
          "counts": {
            "$ref": "#/components/schemas/AttendanceCountsOut"
          }
        },
        "type": "object",
        "required": [
          "id",
          "cohort",
          "title",
          "starts_at",
          "ends_at",
          "meeting_url",
          "location",
          "host",
          "reminder_sent",
          "attendance_taken",
          "counts"
        ],
        "title": "ClassOut"
      },
      "ClassPatchIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "host_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host Id"
          }
        },
        "type": "object",
        "title": "ClassPatchIn"
      },
      "CodeAnswerIn": {
        "properties": {
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "code": {
            "type": "string",
            "maxLength": 100000,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "question_id",
          "code"
        ],
        "title": "CodeAnswerIn"
      },
      "CodeFeedbackOut": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "done",
              "pending",
              "failed",
              "none"
            ],
            "title": "Status",
            "description": "`none`: no feedback and none on its way (scored before AI feedback existed, or AI was off then) — a staff retry writes it"
          },
          "staff_feedback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Staff Feedback",
            "description": "For reviewers: what is wrong and where (≤ 1500 characters)"
          },
          "candidate_feedback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Candidate Feedback",
            "description": "What an assessment link with `show_feedback` shows the participant once the result is released (checked for leaks; null when it failed the check or with red flags)"
          },
          "red_flags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Red Flags"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "ai_budget_exceeded | ai_unavailable | ai_refused | ai_failed"
          },
          "submission_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submission Id",
            "description": "The submission it was written for (compare `counted_submission_id`)"
          },
          "generated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Generated At"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Id"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "CodeFeedbackOut",
        "description": "AI feedback on a judged code answer; never part of the score."
      },
      "CodeIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 100000,
            "title": "Code"
          },
          "rev": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 2147483647.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Rev",
            "description": "Client revision of this code: it replaces the saved draft only when newer"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "CodeIn"
      },
      "CodeResultOut": {
        "properties": {
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "question_title": {
            "type": "string",
            "title": "Question Title"
          },
          "language": {
            "type": "string",
            "title": "Language"
          },
          "python_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Python Mode"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "verdict": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verdict"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/CaseResultOut"
            },
            "type": "array",
            "title": "Tests",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "question_id",
          "question_title",
          "language",
          "code",
          "verdict",
          "tests_passed",
          "tests_total",
          "score",
          "max_score",
          "message"
        ],
        "title": "CodeResultOut"
      },
      "CodeReviewOut": {
        "properties": {
          "language": {
            "type": "string",
            "title": "Language"
          },
          "policy": {
            "type": "string",
            "enum": [
              "last",
              "best"
            ],
            "title": "Policy"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code",
            "description": "Code of the counted submission (or last draft)"
          },
          "counted_submission_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Counted Submission Id"
          },
          "submissions": {
            "items": {
              "$ref": "#/components/schemas/SubmissionReviewOut"
            },
            "type": "array",
            "title": "Submissions"
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/CaseResultReviewOut"
            },
            "type": "array",
            "title": "Tests"
          },
          "hidden_passed": {
            "type": "integer",
            "title": "Hidden Passed",
            "default": 0
          },
          "hidden_total": {
            "type": "integer",
            "title": "Hidden Total",
            "default": 0
          },
          "reference_solution": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reference Solution",
            "description": "Admins only"
          },
          "ai": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CodeFeedbackOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "AI feedback on the judged answer; null without a judged submission, or when AI is off and none was written"
          }
        },
        "type": "object",
        "required": [
          "language",
          "policy"
        ],
        "title": "CodeReviewOut"
      },
      "CohortBriefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "status": {
            "$ref": "#/components/schemas/CohortStatus"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "status"
        ],
        "title": "CohortBriefOut"
      },
      "CohortIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "minLength": 2,
            "title": "Name"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "status": {
            "$ref": "#/components/schemas/CohortStatus",
            "default": "planned"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CohortIn"
      },
      "CohortListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "program_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Title"
          },
          "is_program_cohort": {
            "type": "boolean",
            "title": "Is Program Cohort"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "status": {
            "$ref": "#/components/schemas/CohortStatus"
          },
          "members_count": {
            "type": "integer",
            "title": "Members Count"
          },
          "active_members_count": {
            "type": "integer",
            "title": "Active Members Count"
          },
          "mentors_count": {
            "type": "integer",
            "title": "Mentors Count"
          },
          "classes_count": {
            "type": "integer",
            "title": "Classes Count"
          },
          "next_class_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Class At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "program_id",
          "program_title",
          "is_program_cohort",
          "starts_at",
          "ends_at",
          "status",
          "members_count",
          "active_members_count",
          "mentors_count",
          "classes_count",
          "next_class_at",
          "created_at"
        ],
        "title": "CohortListItem"
      },
      "CohortMemberIn": {
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "mentor_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mentor Id"
          }
        },
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "CohortMemberIn"
      },
      "CohortMemberOut": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/AcademyPersonOut"
          },
          "mentor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CohortMemberStatus"
          },
          "joined_at": {
            "type": "string",
            "format": "date-time",
            "title": "Joined At"
          },
          "activity_total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activity Total"
          },
          "activity_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activity Rank"
          }
        },
        "type": "object",
        "required": [
          "user",
          "mentor",
          "status",
          "joined_at"
        ],
        "title": "CohortMemberOut"
      },
      "CohortMemberPatchIn": {
        "properties": {
          "mentor_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mentor Id"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CohortMemberStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "CohortMemberPatchIn",
        "description": "Only the fields that are sent change; `mentor_id: null` unassigns the mentor."
      },
      "CohortMemberStatus": {
        "type": "string",
        "enum": [
          "active",
          "paused",
          "dropped",
          "graduated"
        ],
        "title": "CohortMemberStatus"
      },
      "CohortOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "program_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Title"
          },
          "is_program_cohort": {
            "type": "boolean",
            "title": "Is Program Cohort"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "status": {
            "$ref": "#/components/schemas/CohortStatus"
          },
          "members_count": {
            "type": "integer",
            "title": "Members Count"
          },
          "active_members_count": {
            "type": "integer",
            "title": "Active Members Count"
          },
          "mentors_count": {
            "type": "integer",
            "title": "Mentors Count"
          },
          "classes_count": {
            "type": "integer",
            "title": "Classes Count"
          },
          "next_class_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Class At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/CohortMemberOut"
            },
            "type": "array",
            "title": "Members"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "program_id",
          "program_title",
          "is_program_cohort",
          "starts_at",
          "ends_at",
          "status",
          "members_count",
          "active_members_count",
          "mentors_count",
          "classes_count",
          "next_class_at",
          "created_at",
          "members"
        ],
        "title": "CohortOut"
      },
      "CohortPatchIn": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CohortStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "CohortPatchIn"
      },
      "CohortStatus": {
        "type": "string",
        "enum": [
          "planned",
          "active",
          "finished"
        ],
        "title": "CohortStatus"
      },
      "CompareItemOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "candidate": {
            "$ref": "#/components/schemas/PersonRef"
          },
          "program": {
            "$ref": "#/components/schemas/ProgramRef"
          },
          "status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "total_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Score"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "profile_signal": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Signal"
          },
          "integrity": {
            "$ref": "#/components/schemas/ReviewIntegrityOut"
          },
          "scoring_status": {
            "type": "string",
            "enum": [
              "not_scored",
              "provisional",
              "final"
            ],
            "title": "Scoring Status",
            "default": "not_scored"
          },
          "sections": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Sections"
          },
          "sql_level": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sql Level"
          },
          "python_level": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Python Level"
          },
          "english_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Level"
          },
          "top_skills": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Top Skills"
          },
          "duration_sec": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Sec"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "recommendation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SummaryRecommendation"
              },
              {
                "type": "null"
              }
            ]
          },
          "strengths": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Strengths"
          },
          "risks": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Risks"
          },
          "interview_overall": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interview Overall"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          }
        },
        "type": "object",
        "required": [
          "id",
          "candidate",
          "program",
          "status"
        ],
        "title": "CompareItemOut"
      },
      "CompareOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CompareItemOut"
            },
            "type": "array",
            "title": "Items"
          },
          "section_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Section Types"
          }
        },
        "type": "object",
        "required": [
          "items",
          "section_types"
        ],
        "title": "CompareOut"
      },
      "ConsentsIn": {
        "properties": {
          "personal_data": {
            "type": "boolean",
            "title": "Personal Data"
          },
          "marketing": {
            "type": "boolean",
            "title": "Marketing",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "personal_data"
        ],
        "title": "ConsentsIn"
      },
      "ContestAdminListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "format": {
            "$ref": "#/components/schemas/ContestFormat"
          },
          "visibility": {
            "$ref": "#/components/schemas/ContestVisibility"
          },
          "status": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "phase": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "freeze_minutes": {
            "type": "integer",
            "title": "Freeze Minutes"
          },
          "is_rated": {
            "type": "boolean",
            "title": "Is Rated"
          },
          "participants_count": {
            "type": "integer",
            "title": "Participants Count"
          },
          "problems_count": {
            "type": "integer",
            "title": "Problems Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "format",
          "visibility",
          "status",
          "phase",
          "starts_at",
          "ends_at",
          "freeze_minutes",
          "is_rated",
          "participants_count",
          "problems_count"
        ],
        "title": "ContestAdminListItem"
      },
      "ContestAdminOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "format": {
            "$ref": "#/components/schemas/ContestFormat"
          },
          "visibility": {
            "$ref": "#/components/schemas/ContestVisibility"
          },
          "status": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "phase": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "freeze_minutes": {
            "type": "integer",
            "title": "Freeze Minutes"
          },
          "is_rated": {
            "type": "boolean",
            "title": "Is Rated"
          },
          "participants_count": {
            "type": "integer",
            "title": "Participants Count"
          },
          "problems_count": {
            "type": "integer",
            "title": "Problems Count"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "rules_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Md"
          },
          "registration_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Opens At"
          },
          "registration_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Closes At"
          },
          "proctoring": {
            "$ref": "#/components/schemas/ContestProctoring"
          },
          "allow_virtual": {
            "type": "boolean",
            "title": "Allow Virtual"
          },
          "prizes_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prizes Md"
          },
          "sponsor_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Text"
          },
          "ratings_applied_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ratings Applied At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/ContestProblemAdminOut"
            },
            "type": "array",
            "title": "Problems"
          },
          "counts": {
            "$ref": "#/components/schemas/ContestCountsOut"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "format",
          "visibility",
          "status",
          "phase",
          "starts_at",
          "ends_at",
          "freeze_minutes",
          "is_rated",
          "participants_count",
          "problems_count",
          "description_md",
          "rules_md",
          "registration_opens_at",
          "registration_closes_at",
          "proctoring",
          "allow_virtual",
          "prizes_md",
          "sponsor_text",
          "ratings_applied_at",
          "created_at",
          "updated_at",
          "problems",
          "counts"
        ],
        "title": "ContestAdminOut"
      },
      "ContestAdminSubmissionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "user": {
            "$ref": "#/components/schemas/ParticipantUserOut"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "counted": {
            "type": "boolean",
            "title": "Counted"
          },
          "minute": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minute"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "user",
          "label",
          "kind",
          "verdict",
          "score",
          "tests_passed",
          "tests_total",
          "time_ms",
          "counted",
          "minute",
          "code",
          "created_at"
        ],
        "title": "ContestAdminSubmissionOut"
      },
      "ContestCountsOut": {
        "properties": {
          "participants": {
            "type": "integer",
            "title": "Participants",
            "default": 0
          },
          "virtual": {
            "type": "integer",
            "title": "Virtual",
            "default": 0
          },
          "disqualified": {
            "type": "integer",
            "title": "Disqualified",
            "default": 0
          },
          "submissions": {
            "type": "integer",
            "title": "Submissions",
            "default": 0
          },
          "open_clarifications": {
            "type": "integer",
            "title": "Open Clarifications",
            "default": 0
          },
          "plagiarism_pairs": {
            "type": "integer",
            "title": "Plagiarism Pairs",
            "default": 0
          }
        },
        "type": "object",
        "title": "ContestCountsOut"
      },
      "ContestFormat": {
        "type": "string",
        "enum": [
          "icpc",
          "ioi"
        ],
        "title": "ContestFormat"
      },
      "ContestIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "rules_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Md"
          },
          "visibility": {
            "$ref": "#/components/schemas/ContestVisibility",
            "default": "public"
          },
          "format": {
            "$ref": "#/components/schemas/ContestFormat",
            "default": "icpc"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "freeze_minutes": {
            "type": "integer",
            "maximum": 1440.0,
            "minimum": 0.0,
            "title": "Freeze Minutes",
            "default": 0
          },
          "registration_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Opens At"
          },
          "registration_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Closes At"
          },
          "proctoring": {
            "$ref": "#/components/schemas/ContestProctoring",
            "default": "none"
          },
          "is_rated": {
            "type": "boolean",
            "title": "Is Rated",
            "default": false
          },
          "allow_virtual": {
            "type": "boolean",
            "title": "Allow Virtual",
            "default": true
          },
          "prizes_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20000
              },
              {
                "type": "null"
              }
            ],
            "title": "Prizes Md"
          },
          "sponsor_text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Text"
          }
        },
        "type": "object",
        "required": [
          "title",
          "starts_at",
          "ends_at"
        ],
        "title": "ContestIn"
      },
      "ContestListItem": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "format": {
            "$ref": "#/components/schemas/ContestFormat"
          },
          "phase": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "freeze_minutes": {
            "type": "integer",
            "title": "Freeze Minutes"
          },
          "is_rated": {
            "type": "boolean",
            "title": "Is Rated"
          },
          "allow_virtual": {
            "type": "boolean",
            "title": "Allow Virtual"
          },
          "participants_count": {
            "type": "integer",
            "title": "Participants Count"
          },
          "problems_count": {
            "type": "integer",
            "title": "Problems Count"
          },
          "registration_open": {
            "type": "boolean",
            "title": "Registration Open"
          },
          "registered": {
            "type": "boolean",
            "title": "Registered",
            "default": false
          },
          "sponsor_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Text"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "title",
          "format",
          "phase",
          "starts_at",
          "ends_at",
          "freeze_minutes",
          "is_rated",
          "allow_virtual",
          "participants_count",
          "problems_count",
          "registration_open"
        ],
        "title": "ContestListItem"
      },
      "ContestOut": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "rules_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Md"
          },
          "prizes_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prizes Md"
          },
          "sponsor_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Text"
          },
          "format": {
            "$ref": "#/components/schemas/ContestFormat"
          },
          "visibility": {
            "$ref": "#/components/schemas/ContestVisibility"
          },
          "proctoring": {
            "$ref": "#/components/schemas/ContestProctoring"
          },
          "phase": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "duration_minutes": {
            "type": "integer",
            "title": "Duration Minutes"
          },
          "freeze_minutes": {
            "type": "integer",
            "title": "Freeze Minutes"
          },
          "freeze_starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Freeze Starts At"
          },
          "registration_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Opens At"
          },
          "registration_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Closes At"
          },
          "is_rated": {
            "type": "boolean",
            "title": "Is Rated"
          },
          "allow_virtual": {
            "type": "boolean",
            "title": "Allow Virtual"
          },
          "participants_count": {
            "type": "integer",
            "title": "Participants Count"
          },
          "registration_open": {
            "type": "boolean",
            "title": "Registration Open"
          },
          "can_register": {
            "type": "boolean",
            "title": "Can Register"
          },
          "can_unregister": {
            "type": "boolean",
            "title": "Can Unregister"
          },
          "can_start_virtual": {
            "type": "boolean",
            "title": "Can Start Virtual"
          },
          "my": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MyParticipationOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/ContestProblemBrief"
            },
            "type": "array",
            "title": "Problems",
            "default": []
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "title",
          "description_md",
          "rules_md",
          "prizes_md",
          "sponsor_text",
          "format",
          "visibility",
          "proctoring",
          "phase",
          "starts_at",
          "ends_at",
          "duration_minutes",
          "freeze_minutes",
          "freeze_starts_at",
          "registration_opens_at",
          "registration_closes_at",
          "is_rated",
          "allow_virtual",
          "participants_count",
          "registration_open",
          "can_register",
          "can_unregister",
          "can_start_virtual",
          "server_now"
        ],
        "title": "ContestOut"
      },
      "ContestPatch": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "rules_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Rules Md"
          },
          "visibility": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContestVisibility"
              },
              {
                "type": "null"
              }
            ]
          },
          "format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContestFormat"
              },
              {
                "type": "null"
              }
            ]
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "freeze_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1440.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Freeze Minutes"
          },
          "registration_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Opens At"
          },
          "registration_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Closes At"
          },
          "proctoring": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContestProctoring"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_rated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Rated"
          },
          "allow_virtual": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Virtual"
          },
          "prizes_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20000
              },
              {
                "type": "null"
              }
            ],
            "title": "Prizes Md"
          },
          "sponsor_text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Text"
          }
        },
        "type": "object",
        "title": "ContestPatch"
      },
      "ContestProblemAdminOut": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty"
          },
          "status": {
            "$ref": "#/components/schemas/QuestionStatus"
          }
        },
        "type": "object",
        "required": [
          "label",
          "points",
          "position",
          "question_id",
          "title",
          "slug",
          "type",
          "difficulty",
          "status"
        ],
        "title": "ContestProblemAdminOut"
      },
      "ContestProblemBrief": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "language": {
            "type": "string",
            "enum": [
              "uz",
              "en"
            ],
            "title": "Language",
            "description": "Base language of `title`; `title_translations` hold the others",
            "default": "uz"
          },
          "title_translations": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Title Translations",
            "default": {}
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty"
          }
        },
        "type": "object",
        "required": [
          "label",
          "title",
          "points",
          "type",
          "difficulty"
        ],
        "title": "ContestProblemBrief"
      },
      "ContestProblemIn": {
        "properties": {
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "label": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z][0-9]?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "points": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Points",
            "default": "100"
          }
        },
        "type": "object",
        "required": [
          "question_id"
        ],
        "title": "ContestProblemIn"
      },
      "ContestProctoring": {
        "type": "string",
        "enum": [
          "none",
          "light",
          "full"
        ],
        "title": "ContestProctoring"
      },
      "ContestResultOut": {
        "properties": {
          "contest_slug": {
            "type": "string",
            "title": "Contest Slug"
          },
          "contest_title": {
            "type": "string",
            "title": "Contest Title"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "participants": {
            "type": "integer",
            "title": "Participants"
          },
          "solved": {
            "type": "integer",
            "title": "Solved"
          },
          "score": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Score"
          }
        },
        "type": "object",
        "required": [
          "contest_slug",
          "contest_title",
          "ends_at",
          "rank",
          "participants",
          "solved",
          "score"
        ],
        "title": "ContestResultOut"
      },
      "ContestStatus": {
        "type": "string",
        "enum": [
          "draft",
          "scheduled",
          "running",
          "frozen",
          "finished",
          "published"
        ],
        "title": "ContestStatus"
      },
      "ContestSubmissionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "counted": {
            "type": "boolean",
            "title": "Counted"
          },
          "minute": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minute"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "label",
          "verdict",
          "score",
          "max_score",
          "tests_passed",
          "tests_total",
          "time_ms",
          "message",
          "code",
          "counted",
          "minute",
          "created_at"
        ],
        "title": "ContestSubmissionOut"
      },
      "ContestSubmitOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "compile_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compile Error"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "SQL: the query's DuckDB error as the solver may see it — class and message, at most three lines and 500 characters; from a hidden test only its DuckDB class (e.g. \"Conversion Error\"), never the message body. Null for Python and when no test failed with an error."
          },
          "visible": {
            "items": {
              "$ref": "#/components/schemas/TestResultOut"
            },
            "type": "array",
            "title": "Visible"
          },
          "hidden": {
            "$ref": "#/components/schemas/HiddenSummaryOut"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "mode": {
            "type": "string",
            "enum": [
              "contest",
              "virtual",
              "upsolve"
            ],
            "title": "Mode"
          },
          "counted": {
            "type": "boolean",
            "title": "Counted"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "verdict",
          "tests_passed",
          "tests_total",
          "visible",
          "hidden",
          "created_at",
          "label",
          "mode",
          "counted"
        ],
        "title": "ContestSubmitOut"
      },
      "ContestVisibility": {
        "type": "string",
        "enum": [
          "public",
          "unlisted",
          "private"
        ],
        "title": "ContestVisibility"
      },
      "CountedWeight": {
        "properties": {
          "points": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Points"
          },
          "max": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Max"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "points",
          "max"
        ],
        "title": "CountedWeight"
      },
      "CourseAudience": {
        "type": "string",
        "enum": [
          "cohort",
          "prep"
        ],
        "title": "CourseAudience",
        "description": "Who studies a course."
      },
      "CourseIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 2,
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "audience": {
            "$ref": "#/components/schemas/CourseAudience",
            "default": "cohort"
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "CourseIn"
      },
      "CourseListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "program_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Title"
          },
          "audience": {
            "$ref": "#/components/schemas/CourseAudience"
          },
          "modules_count": {
            "type": "integer",
            "title": "Modules Count"
          },
          "lessons_count": {
            "type": "integer",
            "title": "Lessons Count"
          },
          "homeworks_count": {
            "type": "integer",
            "title": "Homeworks Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "description_md",
          "program_id",
          "program_title",
          "audience",
          "modules_count",
          "lessons_count",
          "homeworks_count",
          "created_at",
          "updated_at"
        ],
        "title": "CourseListItem"
      },
      "CourseOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "program_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Title"
          },
          "audience": {
            "$ref": "#/components/schemas/CourseAudience"
          },
          "modules_count": {
            "type": "integer",
            "title": "Modules Count"
          },
          "lessons_count": {
            "type": "integer",
            "title": "Lessons Count"
          },
          "homeworks_count": {
            "type": "integer",
            "title": "Homeworks Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "modules": {
            "items": {
              "$ref": "#/components/schemas/ModuleOut"
            },
            "type": "array",
            "title": "Modules"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "description_md",
          "program_id",
          "program_title",
          "audience",
          "modules_count",
          "lessons_count",
          "homeworks_count",
          "created_at",
          "updated_at",
          "modules"
        ],
        "title": "CourseOut"
      },
      "CoursePatchIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "audience": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CourseAudience"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "CoursePatchIn"
      },
      "CourseProgressOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "lessons_total": {
            "type": "integer",
            "title": "Lessons Total"
          },
          "lessons_done": {
            "type": "integer",
            "title": "Lessons Done"
          },
          "progress_percent": {
            "type": "number",
            "title": "Progress Percent"
          },
          "modules": {
            "items": {
              "$ref": "#/components/schemas/ModuleSummaryOut"
            },
            "type": "array",
            "title": "Modules"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "description_md",
          "lessons_total",
          "lessons_done",
          "progress_percent",
          "modules"
        ],
        "title": "CourseProgressOut"
      },
      "CoverageOut": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "insufficient"
            ],
            "title": "Status"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons"
          },
          "batches": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Batches"
          },
          "expected_min_batches": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Min Batches"
          },
          "max_silence_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Silence Ms"
          },
          "last_receipt_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Receipt Ms"
          },
          "missing_items": {
            "type": "integer",
            "title": "Missing Items",
            "default": 0
          },
          "clamped_items": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Clamped Items"
          },
          "media": {
            "additionalProperties": {
              "$ref": "#/components/schemas/MediaCoverageOut"
            },
            "type": "object",
            "title": "Media",
            "description": "Per capture kind (`webcam`, `screen`) that was on"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "CoverageOut",
        "description": "How complete the telemetry is. Shown next to the score; never adds points."
      },
      "CriterionGradeOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "criterion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Criterion"
          },
          "score": {
            "type": "number",
            "title": "Score"
          },
          "max": {
            "type": "number",
            "title": "Max"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "key",
          "score",
          "max"
        ],
        "title": "CriterionGradeOut"
      },
      "CriterionIn": {
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,39}$",
            "title": "Key"
          },
          "title": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "weight": {
            "type": "number",
            "maximum": 100.0,
            "exclusiveMinimum": 0.0,
            "title": "Weight",
            "default": 1
          }
        },
        "type": "object",
        "required": [
          "key",
          "title"
        ],
        "title": "CriterionIn"
      },
      "CriterionOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "weight": {
            "type": "number",
            "title": "Weight"
          }
        },
        "type": "object",
        "required": [
          "key",
          "title",
          "weight"
        ],
        "title": "CriterionOut"
      },
      "CvOut": {
        "properties": {
          "file_id": {
            "type": "string",
            "format": "uuid",
            "title": "File Id"
          },
          "original_name": {
            "type": "string",
            "title": "Original Name"
          },
          "size_bytes": {
            "type": "integer",
            "title": "Size Bytes"
          }
        },
        "type": "object",
        "required": [
          "file_id",
          "original_name",
          "size_bytes"
        ],
        "title": "CvOut"
      },
      "CvRefOut": {
        "properties": {
          "file_id": {
            "type": "string",
            "format": "uuid",
            "title": "File Id"
          },
          "original_name": {
            "type": "string",
            "title": "Original Name"
          },
          "size_bytes": {
            "type": "integer",
            "title": "Size Bytes"
          }
        },
        "type": "object",
        "required": [
          "file_id",
          "original_name",
          "size_bytes"
        ],
        "title": "CvRefOut"
      },
      "DailyPointOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "date",
          "count"
        ],
        "title": "DailyPointOut"
      },
      "DashboardTotalsOut": {
        "properties": {
          "applications": {
            "type": "integer",
            "title": "Applications",
            "default": 0
          },
          "submitted_recent": {
            "type": "integer",
            "title": "Submitted Recent",
            "default": 0
          },
          "scored": {
            "type": "integer",
            "title": "Scored",
            "default": 0
          },
          "pending_grading": {
            "type": "integer",
            "title": "Pending Grading",
            "default": 0
          },
          "upcoming_interviews": {
            "type": "integer",
            "title": "Upcoming Interviews",
            "default": 0
          },
          "avg_total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Total"
          }
        },
        "type": "object",
        "title": "DashboardTotalsOut"
      },
      "DataExportOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/DataExportStatus"
          },
          "size_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size Bytes"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "downloaded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Downloaded At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "created_at"
        ],
        "title": "DataExportOut"
      },
      "DataExportStatus": {
        "type": "string",
        "enum": [
          "pending",
          "building",
          "ready",
          "failed",
          "expired"
        ],
        "title": "DataExportStatus"
      },
      "DayCountOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "solved": {
            "type": "integer",
            "title": "Solved"
          }
        },
        "type": "object",
        "required": [
          "date",
          "solved"
        ],
        "title": "DayCountOut"
      },
      "Decision": {
        "type": "string",
        "enum": [
          "accept",
          "reject",
          "waitlist"
        ],
        "title": "Decision"
      },
      "DecisionIn": {
        "properties": {
          "decision": {
            "$ref": "#/components/schemas/Decision"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "send_email": {
            "type": "boolean",
            "title": "Send Email",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "decision"
        ],
        "title": "DecisionIn"
      },
      "DecisionOut": {
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "ok": {
            "type": "boolean",
            "title": "Ok",
            "default": true
          },
          "decision": {
            "$ref": "#/components/schemas/Decision"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Warnings"
          },
          "cohort_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cohort Id"
          },
          "role": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Role"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "application_id",
          "decision"
        ],
        "title": "DecisionOut"
      },
      "DeletionRequestIn": {
        "properties": {
          "confirm_email": {
            "type": "string",
            "maxLength": 255,
            "minLength": 3,
            "title": "Confirm Email"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "confirm_email"
        ],
        "title": "DeletionRequestIn"
      },
      "DeletionRequestOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/DeletionRequestStatus"
          },
          "source": {
            "$ref": "#/components/schemas/DeletionSource"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "decision_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision Note"
          },
          "user": {
            "$ref": "#/components/schemas/PrivacyUserOut"
          },
          "requested_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested By Name"
          },
          "decided_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided By Name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "decided_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts",
            "default": 0
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Error"
          },
          "summary": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "source",
          "user",
          "created_at"
        ],
        "title": "DeletionRequestOut",
        "description": "Admin view of a deletion request (portal-scoped)."
      },
      "DeletionRequestStatus": {
        "type": "string",
        "enum": [
          "pending",
          "approved",
          "completed",
          "rejected",
          "cancelled"
        ],
        "title": "DeletionRequestStatus"
      },
      "DeletionSource": {
        "type": "string",
        "enum": [
          "user",
          "admin"
        ],
        "title": "DeletionSource"
      },
      "DetailPermissionsOut": {
        "properties": {
          "is_admin": {
            "type": "boolean",
            "title": "Is Admin",
            "default": false
          },
          "override": {
            "type": "boolean",
            "title": "Override",
            "default": false
          },
          "decide": {
            "type": "boolean",
            "title": "Decide",
            "default": false
          },
          "export": {
            "type": "boolean",
            "title": "Export",
            "default": false
          },
          "interviews": {
            "type": "boolean",
            "title": "Interviews",
            "default": false
          }
        },
        "type": "object",
        "title": "DetailPermissionsOut"
      },
      "DeviceCheckIn": {
        "properties": {
          "is_mobile": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Mobile"
          },
          "screen_width": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Screen Width"
          },
          "screen_height": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Screen Height"
          },
          "fullscreen_supported": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fullscreen Supported"
          },
          "webcam_ok": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Webcam Ok"
          },
          "screen_ok": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Screen Ok"
          },
          "network_ok": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Network Ok"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "DeviceCheckIn",
        "description": "Result of the browser device check; unknown keys are kept (stored as JSON, ≤ 8 KB)."
      },
      "Difficulty": {
        "type": "string",
        "enum": [
          "easy",
          "medium",
          "hard"
        ],
        "title": "Difficulty"
      },
      "DisqualifyIn": {
        "properties": {
          "reason": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 3,
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "reason"
        ],
        "title": "DisqualifyIn"
      },
      "DownloadOut": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          }
        },
        "type": "object",
        "required": [
          "url",
          "expires_in"
        ],
        "title": "DownloadOut"
      },
      "DueHomeworkOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "module_id": {
            "type": "string",
            "format": "uuid",
            "title": "Module Id"
          },
          "module_title": {
            "type": "string",
            "title": "Module Title"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "type": "number",
            "title": "Max Score"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "overdue": {
            "type": "boolean",
            "title": "Overdue"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "module_id",
          "module_title",
          "due_at",
          "max_score",
          "submission_type",
          "status",
          "overdue"
        ],
        "title": "DueHomeworkOut"
      },
      "EducationLevel": {
        "type": "string",
        "enum": [
          "school",
          "college",
          "bachelor_student",
          "bachelor",
          "master_student",
          "master",
          "phd",
          "other"
        ],
        "title": "EducationLevel"
      },
      "EmailFailureReasonOut": {
        "properties": {
          "reason": {
            "type": "string",
            "enum": [
              "address",
              "mailbox_full",
              "auth",
              "connection",
              "blocked",
              "quota",
              "other"
            ],
            "title": "Reason"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "last_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last At",
            "description": "When the newest of them failed"
          },
          "example": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example",
            "description": "The newest error text, at most 300 characters"
          }
        },
        "type": "object",
        "required": [
          "reason",
          "count",
          "last_at",
          "example"
        ],
        "title": "EmailFailureReasonOut"
      },
      "EmailHistoryDayOut": {
        "properties": {
          "sent": {
            "type": "integer",
            "title": "Sent"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "held": {
            "type": "integer",
            "title": "Held",
            "description": "Emails that had to wait for the limit (also counted as sent or failed)"
          },
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          }
        },
        "type": "object",
        "required": [
          "sent",
          "failed",
          "held",
          "date"
        ],
        "title": "EmailHistoryDayOut",
        "description": "One local day of the viewer's time zone."
      },
      "EmailHistoryOut": {
        "properties": {
          "days": {
            "type": "integer",
            "title": "Days"
          },
          "date_from": {
            "type": "string",
            "format": "date",
            "title": "Date From"
          },
          "date_to": {
            "type": "string",
            "format": "date",
            "title": "Date To"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone"
          },
          "template_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Template Code",
            "description": "The template the totals, days and reasons are narrowed to"
          },
          "totals": {
            "$ref": "#/components/schemas/EmailHistoryTotalsOut"
          },
          "daily": {
            "items": {
              "$ref": "#/components/schemas/EmailHistoryDayOut"
            },
            "type": "array",
            "title": "Daily",
            "description": "Every day of the period, oldest first"
          },
          "templates": {
            "items": {
              "$ref": "#/components/schemas/EmailHistoryTemplateOut"
            },
            "type": "array",
            "title": "Templates",
            "description": "Per template, most emails first (never narrowed)"
          },
          "reasons": {
            "items": {
              "$ref": "#/components/schemas/EmailFailureReasonOut"
            },
            "type": "array",
            "title": "Reasons",
            "description": "Failure reasons, most frequent first"
          }
        },
        "type": "object",
        "required": [
          "days",
          "date_from",
          "date_to",
          "timezone",
          "template_code",
          "totals",
          "daily",
          "templates",
          "reasons"
        ],
        "title": "EmailHistoryOut",
        "description": "The portal's emails of the last 7 or 30 local days: each counts once, in its state now\n(sent on the day it went, failed on the day it failed for good), and also as held on the\nday it first waited for the limit."
      },
      "EmailHistoryTemplateOut": {
        "properties": {
          "sent": {
            "type": "integer",
            "title": "Sent"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "held": {
            "type": "integer",
            "title": "Held",
            "description": "Emails that had to wait for the limit (also counted as sent or failed)"
          },
          "template_code": {
            "type": "string",
            "title": "Template Code"
          },
          "priority": {
            "type": "boolean",
            "title": "Priority"
          }
        },
        "type": "object",
        "required": [
          "sent",
          "failed",
          "held",
          "template_code",
          "priority"
        ],
        "title": "EmailHistoryTemplateOut"
      },
      "EmailHistoryTotalsOut": {
        "properties": {
          "sent": {
            "type": "integer",
            "title": "Sent"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "held": {
            "type": "integer",
            "title": "Held",
            "description": "Emails that had to wait for the limit (also counted as sent or failed)"
          }
        },
        "type": "object",
        "required": [
          "sent",
          "failed",
          "held"
        ],
        "title": "EmailHistoryTotalsOut"
      },
      "EmailMessageOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "template_code": {
            "type": "string",
            "title": "Template Code"
          },
          "to_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "To Address"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "sent",
              "failed"
            ],
            "title": "Status"
          },
          "priority": {
            "type": "boolean",
            "title": "Priority"
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts"
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Error",
            "description": "The last failure, at most 300 characters"
          },
          "held_reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "quota",
                  "provider"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Held Reason"
          },
          "next_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Attempt At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sent At",
            "description": "When the mail server accepted it"
          },
          "held_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Held At",
            "description": "When it first had to wait for the daily limit or the provider's quota"
          },
          "failed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failed At",
            "description": "When it failed for good"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "address",
                  "mailbox_full",
                  "auth",
                  "connection",
                  "blocked",
                  "quota",
                  "other"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "A failed email's failure reason, read from its last error: address (no such recipient), mailbox_full, auth (the mail server refused our sign-in), connection, blocked (spam or policy), quota (the provider's limit), other"
          },
          "resendable": {
            "type": "boolean",
            "title": "Resendable",
            "description": "A failed email that may be queued again (sign-in codes and reset links expire: the person asks for a new one)"
          },
          "outdated": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "outdated",
                  "expired",
                  "unverified"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Outdated",
            "description": "A failed email about an application's progress that should not simply go out again (the bulk re-send skips it): outdated = a later message about the same application exists (reminders aside) or the application has moved on; expired = its invite window or interview has passed; unverified = queued before emails named their application"
          }
        },
        "type": "object",
        "required": [
          "id",
          "template_code",
          "to_address",
          "status",
          "priority",
          "attempts",
          "last_error",
          "held_reason",
          "next_attempt_at",
          "created_at",
          "resendable"
        ],
        "title": "EmailMessageOut"
      },
      "EmailQueueCountsOut": {
        "properties": {
          "sent": {
            "type": "integer",
            "title": "Sent"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "pending": {
            "type": "integer",
            "title": "Pending"
          }
        },
        "type": "object",
        "required": [
          "sent",
          "failed",
          "pending"
        ],
        "title": "EmailQueueCountsOut",
        "description": "The portal's emails per status (all time), optionally only to matching addresses."
      },
      "EmailQueueOut": {
        "properties": {
          "pending": {
            "type": "integer",
            "title": "Pending"
          },
          "held_quota": {
            "type": "integer",
            "title": "Held Quota"
          },
          "held_provider": {
            "type": "integer",
            "title": "Held Provider"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "failed_recent": {
            "type": "integer",
            "title": "Failed Recent",
            "description": "Failed emails of the last 7 days a bulk re-send looks at (at most 200); outdated emails about an application's progress among them are skipped"
          },
          "templates": {
            "items": {
              "$ref": "#/components/schemas/EmailQueueTemplateOut"
            },
            "type": "array",
            "title": "Templates",
            "description": "Pending emails per template"
          }
        },
        "type": "object",
        "required": [
          "pending",
          "held_quota",
          "held_provider",
          "failed",
          "failed_recent",
          "templates"
        ],
        "title": "EmailQueueOut",
        "description": "The portal's email queue (its own emails only)."
      },
      "EmailQueueTemplateOut": {
        "properties": {
          "template_code": {
            "type": "string",
            "title": "Template Code"
          },
          "priority": {
            "type": "boolean",
            "title": "Priority",
            "description": "Goes first and may use the reserved slice"
          },
          "pending": {
            "type": "integer",
            "title": "Pending"
          },
          "held": {
            "type": "integer",
            "title": "Held",
            "description": "Of `pending`: held for the limit or the provider's quota"
          },
          "oldest_at": {
            "type": "string",
            "format": "date-time",
            "title": "Oldest At",
            "description": "When the oldest of them was queued"
          }
        },
        "type": "object",
        "required": [
          "template_code",
          "priority",
          "pending",
          "held",
          "oldest_at"
        ],
        "title": "EmailQueueTemplateOut"
      },
      "EmailResendFailedOut": {
        "properties": {
          "requeued": {
            "type": "integer",
            "title": "Requeued"
          },
          "skipped": {
            "type": "integer",
            "title": "Skipped",
            "description": "Outdated emails about an application's progress left as they are",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "requeued"
        ],
        "title": "EmailResendFailedOut"
      },
      "EnglishLevel": {
        "type": "string",
        "enum": [
          "A1",
          "A2",
          "B1",
          "B2",
          "C1",
          "C2",
          "native"
        ],
        "title": "EnglishLevel"
      },
      "FeedbackIn": {
        "properties": {
          "scores": {
            "additionalProperties": {
              "type": "integer",
              "maximum": 5.0,
              "minimum": 1.0
            },
            "type": "object",
            "maxProperties": 20,
            "minProperties": 1,
            "title": "Scores"
          },
          "recommendation": {
            "$ref": "#/components/schemas/InterviewRecommendation"
          },
          "notes_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes Md"
          }
        },
        "type": "object",
        "required": [
          "scores",
          "recommendation"
        ],
        "title": "FeedbackIn"
      },
      "FeedbackOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "interview_id": {
            "type": "string",
            "format": "uuid",
            "title": "Interview Id"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "scores": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Scores"
          },
          "overall": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Overall"
          },
          "recommendation": {
            "$ref": "#/components/schemas/InterviewRecommendation"
          },
          "notes_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes Md"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Submitted At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "interview_id",
          "author",
          "scores",
          "overall",
          "recommendation",
          "notes_md",
          "submitted_at"
        ],
        "title": "FeedbackOut"
      },
      "FieldType": {
        "type": "string",
        "enum": [
          "text",
          "textarea",
          "number",
          "select",
          "multiselect",
          "url",
          "file",
          "scale",
          "date",
          "checkbox"
        ],
        "title": "FieldType"
      },
      "FileBriefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "original_name": {
            "type": "string",
            "title": "Original Name"
          },
          "mime_type": {
            "type": "string",
            "title": "Mime Type"
          },
          "size_bytes": {
            "type": "integer",
            "title": "Size Bytes"
          }
        },
        "type": "object",
        "required": [
          "id",
          "original_name",
          "mime_type",
          "size_bytes"
        ],
        "title": "FileBriefOut"
      },
      "FileOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "purpose": {
            "$ref": "#/components/schemas/FilePurpose"
          },
          "original_name": {
            "type": "string",
            "title": "Original Name"
          },
          "mime_type": {
            "type": "string",
            "title": "Mime Type"
          },
          "size_bytes": {
            "type": "integer",
            "title": "Size Bytes"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "purpose",
          "original_name",
          "mime_type",
          "size_bytes",
          "completed_at",
          "created_at"
        ],
        "title": "FileOut"
      },
      "FilePurpose": {
        "type": "string",
        "enum": [
          "cv",
          "avatar",
          "logo",
          "pitch",
          "webcam",
          "screen",
          "homework",
          "material",
          "import"
        ],
        "title": "FilePurpose"
      },
      "FileUrlOut": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          },
          "mime_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mime Type"
          }
        },
        "type": "object",
        "required": [
          "url",
          "expires_in"
        ],
        "title": "FileUrlOut"
      },
      "ForgotPasswordIn": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Next",
            "description": "The page to return to after the reset (a same-site path, else ignored); the emailed link carries it"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "ForgotPasswordIn"
      },
      "FormFieldIn": {
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 60,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "title": "Key"
          },
          "label_uz": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Label Uz"
          },
          "label_en": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Label En"
          },
          "help_uz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Help Uz"
          },
          "help_en": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Help En"
          },
          "type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "options": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "required": {
            "type": "boolean",
            "title": "Required",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "key",
          "label_uz",
          "label_en",
          "type"
        ],
        "title": "FormFieldIn"
      },
      "FormFieldOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label_uz": {
            "type": "string",
            "title": "Label Uz"
          },
          "label_en": {
            "type": "string",
            "title": "Label En"
          },
          "help_uz": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Help Uz"
          },
          "help_en": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Help En"
          },
          "type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "options": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "required": {
            "type": "boolean",
            "title": "Required"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "is_system": {
            "type": "boolean",
            "title": "Is System"
          }
        },
        "type": "object",
        "required": [
          "id",
          "key",
          "label_uz",
          "label_en",
          "help_uz",
          "help_en",
          "type",
          "options",
          "required",
          "position",
          "is_system"
        ],
        "title": "FormFieldOut"
      },
      "FrameHighlightOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "Integrity signal key (`screen_share_issues`, `camera_stopped`, `camera_virtual`, `camera_frozen`, `camera_dark`, `time_away`, `fullscreen_exits`, `paste_attempts`, `large_inserts`, `multi_monitor`, `devtools_suspected`, `ip_change`) or `network_offline`, `telemetry_gap`, `idle`"
          },
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Event type behind it; `away` and `idle` are computed spans"
          },
          "t_ms": {
            "type": "integer",
            "title": "T Ms",
            "description": "Where it starts"
          },
          "end_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Ms",
            "description": "Where it ends (null: a single moment)"
          },
          "count": {
            "type": "integer",
            "title": "Count",
            "description": "Events merged into it (a paste burst, an outage)",
            "default": 1
          },
          "question_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Id",
            "description": "Session question, when one"
          },
          "detail": {
            "additionalProperties": true,
            "type": "object",
            "title": "Detail",
            "description": "Small facts for the label (ms, reasons, sources, surface, chars, tab, reopened…)"
          }
        },
        "type": "object",
        "required": [
          "key",
          "type",
          "t_ms"
        ],
        "title": "FrameHighlightOut",
        "description": "An important moment: a span of the session the reviewer should look at."
      },
      "FrameOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "kind": {
            "$ref": "#/components/schemas/MediaKind"
          },
          "t_ms": {
            "type": "integer",
            "title": "T Ms",
            "description": "Capture time, ms since the session started (server clock)"
          },
          "captured_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Captured At",
            "description": "started_at + t_ms"
          },
          "size_bytes": {
            "type": "integer",
            "title": "Size Bytes",
            "description": "Size of the JPEG"
          },
          "url": {
            "type": "string",
            "title": "Url",
            "description": "Presigned GET, valid for `url_ttl_sec` (private cache only)"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "t_ms",
          "size_bytes",
          "url"
        ],
        "title": "FrameOut",
        "description": "One webcam or screen snapshot."
      },
      "FramePageOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FrameOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "url_ttl_sec": {
            "type": "integer",
            "title": "Url Ttl Sec",
            "description": "Lifetime of every URL on this page"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At",
            "description": "When the URLs on this page stop working"
          }
        },
        "type": "object",
        "required": [
          "items",
          "page",
          "page_size",
          "url_ttl_sec",
          "expires_at"
        ],
        "title": "FramePageOut",
        "description": "One numbered page of frames in time order (`t_ms`, then id; one kind or both)."
      },
      "FrameQuestionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id",
            "description": "Session question id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "type",
          "title"
        ],
        "title": "FrameQuestionOut"
      },
      "FrameTrackOut": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "The capture was on for the assessment and consented"
          },
          "count": {
            "type": "integer",
            "title": "Count",
            "description": "Frames stored (also those cut from `times`)"
          },
          "times": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Times",
            "description": "`t_ms` of every frame in list order (`t_ms`, then id): index i of this list is frame i of `GET …/frames?kind=` (page = i // page_size + 1)"
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "count",
          "times"
        ],
        "title": "FrameTrackOut",
        "description": "The frames of one capture: their times in the order of the frames list."
      },
      "FrameTracksOut": {
        "properties": {
          "screen": {
            "$ref": "#/components/schemas/FrameTrackOut"
          },
          "webcam": {
            "$ref": "#/components/schemas/FrameTrackOut"
          }
        },
        "type": "object",
        "required": [
          "screen",
          "webcam"
        ],
        "title": "FrameTracksOut"
      },
      "FramesTimelineOut": {
        "properties": {
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Assessment Id"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "is_preview": {
            "type": "boolean",
            "title": "Is Preview"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "duration_ms": {
            "type": "integer",
            "title": "Duration Ms"
          },
          "interval_sec": {
            "type": "integer",
            "title": "Interval Sec",
            "description": "Snapshot interval of the assessment"
          },
          "purged": {
            "type": "boolean",
            "title": "Purged",
            "description": "The session ended before the recording retention"
          },
          "frames": {
            "$ref": "#/components/schemas/FrameTracksOut"
          },
          "frames_total": {
            "type": "integer",
            "title": "Frames Total"
          },
          "index_truncated": {
            "type": "boolean",
            "title": "Index Truncated",
            "description": "Some frame times were left out of `times`"
          },
          "highlights": {
            "items": {
              "$ref": "#/components/schemas/FrameHighlightOut"
            },
            "type": "array",
            "title": "Highlights"
          },
          "highlights_truncated": {
            "type": "boolean",
            "title": "Highlights Truncated"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/FrameQuestionOut"
            },
            "type": "array",
            "title": "Questions"
          },
          "switches": {
            "items": {
              "$ref": "#/components/schemas/QuestionSwitchOut"
            },
            "type": "array",
            "title": "Switches"
          },
          "page_size_max": {
            "type": "integer",
            "title": "Page Size Max",
            "description": "Largest `page_size` of the frames list"
          },
          "url_ttl_sec": {
            "type": "integer",
            "title": "Url Ttl Sec"
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "assessment_id",
          "status",
          "is_preview",
          "started_at",
          "submitted_at",
          "duration_ms",
          "interval_sec",
          "purged",
          "frames",
          "frames_total",
          "index_truncated",
          "highlights",
          "highlights_truncated",
          "questions",
          "switches",
          "page_size_max",
          "url_ttl_sec"
        ],
        "title": "FramesTimelineOut"
      },
      "FunnelOut": {
        "properties": {
          "program": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProgramRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "None = all programs"
          },
          "stages": {
            "items": {
              "$ref": "#/components/schemas/FunnelStageOut"
            },
            "type": "array",
            "title": "Stages"
          }
        },
        "type": "object",
        "required": [
          "stages"
        ],
        "title": "FunnelOut"
      },
      "FunnelStageOut": {
        "properties": {
          "stage": {
            "type": "string",
            "enum": [
              "submitted",
              "assessed",
              "shortlisted",
              "interviewed",
              "accepted"
            ],
            "title": "Stage"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "percent_of_first": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent Of First"
          },
          "percent_of_previous": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent Of Previous"
          }
        },
        "type": "object",
        "required": [
          "stage",
          "count"
        ],
        "title": "FunnelStageOut"
      },
      "GenerateExpectedOut": {
        "properties": {
          "updated": {
            "type": "integer",
            "title": "Updated"
          },
          "errors": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Errors"
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestCaseOut"
            },
            "type": "array",
            "title": "Tests"
          }
        },
        "type": "object",
        "required": [
          "updated",
          "errors",
          "tests"
        ],
        "title": "GenerateExpectedOut"
      },
      "GenerateTestsIn": {
        "properties": {
          "count": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 10
          }
        },
        "type": "object",
        "title": "GenerateTestsIn"
      },
      "GradeIn": {
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "grade",
              "return"
            ],
            "title": "Action",
            "default": "grade"
          },
          "score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "rubric_scores": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                }
              ]
            },
            "type": "object",
            "title": "Rubric Scores"
          },
          "feedback_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20000
              },
              {
                "type": "null"
              }
            ],
            "title": "Feedback Md"
          }
        },
        "type": "object",
        "title": "GradeIn"
      },
      "GradingDetailOut": {
        "properties": {
          "item": {
            "$ref": "#/components/schemas/ReviewGradingItemOut"
          },
          "question": {
            "$ref": "#/components/schemas/QuestionReviewOut"
          },
          "can_retry_ai": {
            "type": "boolean",
            "title": "Can Retry Ai",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "item",
          "question"
        ],
        "title": "GradingDetailOut"
      },
      "GradingPageOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ReviewGradingItemOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "GradingPageOut"
      },
      "HiddenSummaryOut": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "passed": {
            "type": "integer",
            "title": "Passed"
          },
          "verdicts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Verdicts"
          }
        },
        "type": "object",
        "required": [
          "total",
          "passed",
          "verdicts"
        ],
        "title": "HiddenSummaryOut"
      },
      "HistogramBinOut": {
        "properties": {
          "start": {
            "type": "integer",
            "title": "Start"
          },
          "end": {
            "type": "integer",
            "title": "End"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "start",
          "end",
          "count"
        ],
        "title": "HistogramBinOut"
      },
      "HomeworkAdminOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "module_id": {
            "type": "string",
            "format": "uuid",
            "title": "Module Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "type": "number",
            "title": "Max Score"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType"
          },
          "question_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Question Ids"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/QuestionBriefOut"
            },
            "type": "array",
            "title": "Questions"
          },
          "rubric": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Rubric"
          },
          "allow_late": {
            "type": "boolean",
            "title": "Allow Late"
          },
          "late_penalty_percent": {
            "type": "number",
            "title": "Late Penalty Percent"
          },
          "submissions_count": {
            "type": "integer",
            "title": "Submissions Count"
          },
          "pending_count": {
            "type": "integer",
            "title": "Pending Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "module_id",
          "position",
          "title",
          "description_md",
          "due_at",
          "max_score",
          "submission_type",
          "question_ids",
          "questions",
          "rubric",
          "allow_late",
          "late_penalty_percent",
          "submissions_count",
          "pending_count"
        ],
        "title": "HomeworkAdminOut"
      },
      "HomeworkBriefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "type": "number",
            "title": "Max Score"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType"
          },
          "allow_late": {
            "type": "boolean",
            "title": "Allow Late"
          },
          "mine": {
            "$ref": "#/components/schemas/MyHomeworkStatus"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "due_at",
          "max_score",
          "submission_type",
          "allow_late",
          "mine"
        ],
        "title": "HomeworkBriefOut"
      },
      "HomeworkDetailOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "module_id": {
            "type": "string",
            "format": "uuid",
            "title": "Module Id"
          },
          "module_title": {
            "type": "string",
            "title": "Module Title"
          },
          "course_id": {
            "type": "string",
            "format": "uuid",
            "title": "Course Id"
          },
          "course_title": {
            "type": "string",
            "title": "Course Title"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "type": "number",
            "title": "Max Score"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType"
          },
          "allow_late": {
            "type": "boolean",
            "title": "Allow Late"
          },
          "late_penalty_percent": {
            "type": "number",
            "title": "Late Penalty Percent"
          },
          "rubric": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Rubric"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/CandidateQuestionOut"
            },
            "type": "array",
            "title": "Questions"
          },
          "attempts": {
            "items": {
              "$ref": "#/components/schemas/AcademyAttemptOut"
            },
            "type": "array",
            "title": "Attempts"
          },
          "mine": {
            "$ref": "#/components/schemas/MyHomeworkStatus"
          },
          "can_submit": {
            "type": "boolean",
            "title": "Can Submit"
          },
          "submit_block_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submit Block Reason"
          }
        },
        "type": "object",
        "required": [
          "id",
          "module_id",
          "module_title",
          "course_id",
          "course_title",
          "title",
          "description_md",
          "due_at",
          "max_score",
          "submission_type",
          "allow_late",
          "late_penalty_percent",
          "rubric",
          "questions",
          "attempts",
          "mine",
          "can_submit",
          "submit_block_reason"
        ],
        "title": "HomeworkDetailOut"
      },
      "HomeworkIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Max Score",
            "default": "100"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType",
            "default": "github_url"
          },
          "question_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Question Ids"
          },
          "rubric": {
            "items": {
              "$ref": "#/components/schemas/AcademyRubricItem"
            },
            "type": "array",
            "maxItems": 30,
            "title": "Rubric"
          },
          "allow_late": {
            "type": "boolean",
            "title": "Allow Late",
            "default": true
          },
          "late_penalty_percent": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Late Penalty Percent",
            "default": "10"
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "HomeworkIn"
      },
      "HomeworkPatchIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "submission_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HomeworkSubmissionType"
              },
              {
                "type": "null"
              }
            ]
          },
          "question_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Ids"
          },
          "rubric": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AcademyRubricItem"
                },
                "type": "array",
                "maxItems": 30
              },
              {
                "type": "null"
              }
            ],
            "title": "Rubric"
          },
          "allow_late": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Late"
          },
          "late_penalty_percent": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Late Penalty Percent"
          },
          "module_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Module Id"
          }
        },
        "type": "object",
        "title": "HomeworkPatchIn"
      },
      "HomeworkRefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "module_title": {
            "type": "string",
            "title": "Module Title"
          },
          "course_title": {
            "type": "string",
            "title": "Course Title"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "type": "number",
            "title": "Max Score"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType"
          },
          "rubric": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Rubric"
          },
          "late_penalty_percent": {
            "type": "number",
            "title": "Late Penalty Percent"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "module_title",
          "course_title",
          "due_at",
          "max_score",
          "submission_type",
          "rubric",
          "late_penalty_percent"
        ],
        "title": "HomeworkRefOut"
      },
      "HomeworkRunIn": {
        "properties": {
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "code": {
            "type": "string",
            "maxLength": 100000,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "question_id",
          "code"
        ],
        "title": "HomeworkRunIn"
      },
      "HomeworkRunOut": {
        "properties": {
          "verdict": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verdict"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/CaseResultOut"
            },
            "type": "array",
            "title": "Tests"
          }
        },
        "type": "object",
        "required": [
          "verdict",
          "message",
          "tests_passed",
          "tests_total",
          "tests"
        ],
        "title": "HomeworkRunOut"
      },
      "HomeworkStatsOut": {
        "properties": {
          "due": {
            "type": "integer",
            "title": "Due"
          },
          "submitted": {
            "type": "integer",
            "title": "Submitted"
          },
          "graded": {
            "type": "integer",
            "title": "Graded"
          },
          "pending": {
            "type": "integer",
            "title": "Pending"
          },
          "returned": {
            "type": "integer",
            "title": "Returned"
          },
          "missing": {
            "type": "integer",
            "title": "Missing"
          },
          "late": {
            "type": "integer",
            "title": "Late"
          }
        },
        "type": "object",
        "required": [
          "due",
          "submitted",
          "graded",
          "pending",
          "returned",
          "missing",
          "late"
        ],
        "title": "HomeworkStatsOut"
      },
      "HomeworkSubmissionStatus": {
        "type": "string",
        "enum": [
          "submitted",
          "graded",
          "returned",
          "resubmitted"
        ],
        "title": "HomeworkSubmissionStatus"
      },
      "HomeworkSubmissionType": {
        "type": "string",
        "enum": [
          "github_url",
          "file",
          "text",
          "auto_code",
          "mixed"
        ],
        "title": "HomeworkSubmissionType"
      },
      "HomeworkSubmitIn": {
        "properties": {
          "text_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Text Md"
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Id"
          },
          "code": {
            "items": {
              "$ref": "#/components/schemas/CodeAnswerIn"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Code"
          }
        },
        "type": "object",
        "title": "HomeworkSubmitIn"
      },
      "ImportResultOut": {
        "properties": {
          "dry_run": {
            "type": "boolean",
            "title": "Dry Run"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "created": {
            "type": "integer",
            "title": "Created"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/ImportRow"
            },
            "type": "array",
            "title": "Rows"
          }
        },
        "type": "object",
        "required": [
          "dry_run",
          "total",
          "created",
          "rows"
        ],
        "title": "ImportResultOut"
      },
      "ImportRow": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source"
          },
          "row": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Row"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          },
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Errors",
            "default": []
          },
          "question_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Id"
          }
        },
        "type": "object",
        "required": [
          "source"
        ],
        "title": "ImportRow"
      },
      "InferOut": {
        "properties": {
          "tables": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Tables"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "tables"
        ],
        "title": "InferOut"
      },
      "IntegrationAssessmentOut": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "duration_minutes": {
            "type": "integer",
            "title": "Duration Minutes"
          }
        },
        "type": "object",
        "required": [
          "title",
          "duration_minutes"
        ],
        "title": "IntegrationAssessmentOut"
      },
      "IntegrationKeyCreatedOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "prefix": {
            "type": "string",
            "title": "Prefix",
            "description": "The key's first characters, to tell keys apart"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "created_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Name"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          },
          "secret": {
            "type": "string",
            "title": "Secret",
            "description": "The whole key — shown only now, store it in the calling app"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "prefix",
          "created_at",
          "created_by_name",
          "last_used_at",
          "revoked_at",
          "secret"
        ],
        "title": "IntegrationKeyCreatedOut"
      },
      "IntegrationKeyIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "description": "Which app uses the key"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "IntegrationKeyIn"
      },
      "IntegrationKeyOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "prefix": {
            "type": "string",
            "title": "Prefix",
            "description": "The key's first characters, to tell keys apart"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "created_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Name"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "prefix",
          "created_at",
          "created_by_name",
          "last_used_at",
          "revoked_at"
        ],
        "title": "IntegrationKeyOut"
      },
      "IntegrationSetOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "url": {
            "type": "string",
            "title": "Url",
            "description": "The set's public link https://<portal host>/s/<code>"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "open",
              "closed",
              "archived"
            ],
            "title": "Status",
            "description": "draft (opens later), open, closed or archived"
          },
          "opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opens At"
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          },
          "assessment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IntegrationAssessmentOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "invited": {
            "type": "integer",
            "title": "Invited",
            "description": "Invites made through the API"
          },
          "started": {
            "type": "integer",
            "title": "Started",
            "description": "Invited people who started"
          },
          "submitted": {
            "type": "integer",
            "title": "Submitted",
            "description": "Invited people whose attempt was submitted"
          }
        },
        "type": "object",
        "required": [
          "id",
          "code",
          "title",
          "url",
          "status",
          "opens_at",
          "closes_at",
          "assessment",
          "invited",
          "started",
          "submitted"
        ],
        "title": "IntegrationSetOut"
      },
      "IntegrityDistributionOut": {
        "properties": {
          "low": {
            "type": "integer",
            "title": "Low",
            "default": 0
          },
          "medium": {
            "type": "integer",
            "title": "Medium",
            "default": 0
          },
          "high": {
            "type": "integer",
            "title": "High",
            "default": 0
          },
          "none": {
            "type": "integer",
            "title": "None",
            "default": 0
          }
        },
        "type": "object",
        "title": "IntegrityDistributionOut"
      },
      "IntegrityFlagOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "Signal key, e.g. paste_attempts"
          },
          "points": {
            "type": "integer",
            "title": "Points"
          },
          "detail": {
            "additionalProperties": true,
            "type": "object",
            "title": "Detail",
            "description": "Counts, durations and event references"
          },
          "review": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "dismissed",
                  "confirmed"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Review"
          },
          "reviewed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProctoringPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewed At"
          }
        },
        "type": "object",
        "required": [
          "key",
          "points",
          "detail"
        ],
        "title": "IntegrityFlagOut"
      },
      "IntegrityLevel": {
        "type": "string",
        "enum": [
          "low",
          "medium",
          "high"
        ],
        "title": "IntegrityLevel"
      },
      "IntegrityReviewIn": {
        "properties": {
          "flags": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "dismissed",
                    "confirmed"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Flags",
            "description": "Signal key → dismissed | confirmed | null (clear)"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "title": "IntegrityReviewIn"
      },
      "IntegrityWeights": {
        "properties": {
          "paste_attempt": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "large_insert": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "time_away": {
            "$ref": "#/components/schemas/TimeAwayWeight"
          },
          "fullscreen_exit": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "multi_monitor": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Multi Monitor"
          },
          "devtools_suspected": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Devtools Suspected"
          },
          "typing_speed_outlier": {
            "$ref": "#/components/schemas/TypingWeight"
          },
          "plagiarism": {
            "$ref": "#/components/schemas/PlagiarismWeight"
          },
          "ip_change": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Ip Change"
          },
          "screen_share_issue": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "camera_virtual": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Camera Virtual"
          },
          "camera_frozen": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "camera_dark": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "camera_stopped": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "version": {
            "type": "string",
            "maxLength": 40,
            "minLength": 1,
            "title": "Version"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "paste_attempt",
          "large_insert",
          "time_away",
          "fullscreen_exit",
          "multi_monitor",
          "devtools_suspected",
          "typing_speed_outlier",
          "plagiarism",
          "ip_change",
          "screen_share_issue",
          "camera_virtual",
          "camera_frozen",
          "camera_dark",
          "camera_stopped",
          "version"
        ],
        "title": "IntegrityWeights"
      },
      "IntegrityWeightsIn": {
        "properties": {
          "paste_attempt": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "large_insert": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "time_away": {
            "$ref": "#/components/schemas/TimeAwayWeight"
          },
          "fullscreen_exit": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "multi_monitor": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Multi Monitor"
          },
          "devtools_suspected": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Devtools Suspected"
          },
          "typing_speed_outlier": {
            "$ref": "#/components/schemas/TypingWeight"
          },
          "plagiarism": {
            "$ref": "#/components/schemas/PlagiarismWeight"
          },
          "ip_change": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Ip Change"
          },
          "screen_share_issue": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "camera_virtual": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Camera Virtual"
          },
          "camera_frozen": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "camera_dark": {
            "$ref": "#/components/schemas/CountedWeight"
          },
          "camera_stopped": {
            "$ref": "#/components/schemas/CountedWeight"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "paste_attempt",
          "large_insert",
          "time_away",
          "fullscreen_exit",
          "multi_monitor",
          "devtools_suspected",
          "typing_speed_outlier",
          "plagiarism",
          "ip_change",
          "screen_share_issue",
          "camera_virtual",
          "camera_frozen",
          "camera_dark",
          "camera_stopped"
        ],
        "title": "IntegrityWeightsIn",
        "description": "Editable weights."
      },
      "IntegrityWeightsOut": {
        "properties": {
          "weights": {
            "$ref": "#/components/schemas/IntegrityWeights"
          },
          "defaults": {
            "$ref": "#/components/schemas/IntegrityWeights"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "weights",
          "defaults",
          "is_default"
        ],
        "title": "IntegrityWeightsOut"
      },
      "InternDetailOut": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/InternProfileOut"
          },
          "cohort": {
            "$ref": "#/components/schemas/CohortBriefOut"
          },
          "mentor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CohortMemberStatus"
          },
          "joined_at": {
            "type": "string",
            "format": "date-time",
            "title": "Joined At"
          },
          "activity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivityHistoryOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "live_components": {
            "additionalProperties": true,
            "type": "object",
            "title": "Live Components"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/ActivityHistoryOut"
            },
            "type": "array",
            "title": "History"
          },
          "attendance_summary": {
            "$ref": "#/components/schemas/AttendanceSummaryOut"
          },
          "attendance": {
            "items": {
              "$ref": "#/components/schemas/AttendanceItemOut"
            },
            "type": "array",
            "title": "Attendance"
          },
          "homework_stats": {
            "$ref": "#/components/schemas/HomeworkStatsOut"
          },
          "homeworks": {
            "items": {
              "$ref": "#/components/schemas/InternHomeworkOut"
            },
            "type": "array",
            "title": "Homeworks"
          },
          "notes": {
            "items": {
              "$ref": "#/components/schemas/MentoringNoteOut"
            },
            "type": "array",
            "title": "Notes"
          },
          "ratings": {
            "items": {
              "$ref": "#/components/schemas/RatingOut"
            },
            "type": "array",
            "title": "Ratings"
          },
          "risk": {
            "$ref": "#/components/schemas/RiskOut"
          },
          "last_activity_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Activity At"
          }
        },
        "type": "object",
        "required": [
          "user",
          "cohort",
          "mentor",
          "status",
          "joined_at",
          "activity",
          "live_components",
          "history",
          "attendance_summary",
          "attendance",
          "homework_stats",
          "homeworks",
          "notes",
          "ratings",
          "risk",
          "last_activity_at"
        ],
        "title": "InternDetailOut"
      },
      "InternHomeworkOut": {
        "properties": {
          "homework_id": {
            "type": "string",
            "format": "uuid",
            "title": "Homework Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "module_title": {
            "type": "string",
            "title": "Module Title"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due At"
          },
          "max_score": {
            "type": "number",
            "title": "Max Score"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts"
          },
          "latest_submission_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latest Submission Id"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "effective_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Score"
          },
          "is_late": {
            "type": "boolean",
            "title": "Is Late"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          }
        },
        "type": "object",
        "required": [
          "homework_id",
          "title",
          "module_title",
          "due_at",
          "max_score",
          "submission_type",
          "status",
          "attempts",
          "latest_submission_id",
          "score",
          "effective_score",
          "is_late",
          "submitted_at"
        ],
        "title": "InternHomeworkOut"
      },
      "InternProfileOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "university": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "University"
          },
          "english_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Level"
          },
          "telegram_linked": {
            "type": "boolean",
            "title": "Telegram Linked",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email"
        ],
        "title": "InternProfileOut"
      },
      "InternRowOut": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/AcademyPersonOut"
          },
          "cohort": {
            "$ref": "#/components/schemas/CohortBriefOut"
          },
          "mentor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CohortMemberStatus"
          },
          "activity_total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activity Total"
          },
          "activity_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activity Rank"
          },
          "trend": {
            "items": {
              "$ref": "#/components/schemas/ActivityPointOut"
            },
            "type": "array",
            "title": "Trend"
          },
          "trend_delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trend Delta"
          },
          "attendance": {
            "$ref": "#/components/schemas/AttendanceSummaryOut"
          },
          "homework": {
            "$ref": "#/components/schemas/HomeworkStatsOut"
          },
          "last_activity_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Activity At"
          },
          "risk": {
            "$ref": "#/components/schemas/RiskOut"
          }
        },
        "type": "object",
        "required": [
          "user",
          "cohort",
          "mentor",
          "status",
          "activity_total",
          "activity_rank",
          "trend",
          "trend_delta",
          "attendance",
          "homework",
          "last_activity_at",
          "risk"
        ],
        "title": "InternRowOut"
      },
      "InterviewListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/InterviewStatus"
          },
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "application_status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "program": {
            "$ref": "#/components/schemas/InterviewProgramRefOut"
          },
          "candidate": {
            "$ref": "#/components/schemas/InterviewPersonOut"
          },
          "slot": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewSlotBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "scorecard_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scorecard Id"
          },
          "invited_at": {
            "type": "string",
            "format": "date-time",
            "title": "Invited At"
          },
          "booked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Booked At"
          },
          "reschedule_count": {
            "type": "integer",
            "title": "Reschedule Count"
          },
          "total_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Score"
          },
          "integrity_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integrity Score"
          },
          "feedback_count": {
            "type": "integer",
            "title": "Feedback Count",
            "default": 0
          },
          "overall": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Overall"
          },
          "recommendation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewRecommendation"
              },
              {
                "type": "null"
              }
            ]
          },
          "my_feedback": {
            "type": "boolean",
            "title": "My Feedback",
            "default": false
          },
          "can_feedback": {
            "type": "boolean",
            "title": "Can Feedback",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "application_id",
          "application_status",
          "program",
          "candidate",
          "slot",
          "scorecard_id",
          "invited_at",
          "booked_at",
          "reschedule_count",
          "total_score",
          "integrity_score"
        ],
        "title": "InterviewListItem"
      },
      "InterviewOptionsOut": {
        "properties": {
          "programs": {
            "items": {
              "$ref": "#/components/schemas/ProgramOptionOut"
            },
            "type": "array",
            "title": "Programs"
          },
          "interviewers": {
            "items": {
              "$ref": "#/components/schemas/InterviewerOut"
            },
            "type": "array",
            "title": "Interviewers"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone"
          }
        },
        "type": "object",
        "required": [
          "programs",
          "interviewers",
          "timezone"
        ],
        "title": "InterviewOptionsOut"
      },
      "InterviewRecommendation": {
        "type": "string",
        "enum": [
          "strong_yes",
          "yes",
          "no",
          "strong_no"
        ],
        "title": "InterviewRecommendation"
      },
      "InterviewSlotBriefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "interviewer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewPersonOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "starts_at",
          "ends_at",
          "meeting_url",
          "location",
          "interviewer"
        ],
        "title": "InterviewSlotBriefOut"
      },
      "InterviewStatus": {
        "type": "string",
        "enum": [
          "invited",
          "scheduled",
          "completed",
          "no_show",
          "cancelled"
        ],
        "title": "InterviewStatus"
      },
      "InterviewSummaryOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/InterviewStatus"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "interviewer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "feedback_count": {
            "type": "integer",
            "title": "Feedback Count",
            "default": 0
          },
          "overall_avg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Overall Avg"
          },
          "recommendations": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Recommendations"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status"
        ],
        "title": "InterviewSummaryOut"
      },
      "InterviewerOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email",
          "role"
        ],
        "title": "InterviewerOut"
      },
      "InviteCandidateOut": {
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "program": {
            "$ref": "#/components/schemas/InterviewProgramRefOut"
          },
          "status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "total_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Score"
          },
          "integrity_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integrity Score"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "active_interview_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_interview_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "can_invite": {
            "type": "boolean",
            "title": "Can Invite"
          }
        },
        "type": "object",
        "required": [
          "application_id",
          "user_id",
          "full_name",
          "email",
          "program",
          "status",
          "total_score",
          "integrity_score",
          "submitted_at",
          "can_invite"
        ],
        "title": "InviteCandidateOut"
      },
      "InviteIn": {
        "properties": {
          "application_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "Application Ids"
          },
          "scorecard_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scorecard Id"
          }
        },
        "type": "object",
        "required": [
          "application_ids"
        ],
        "title": "InviteIn"
      },
      "InviteLandingOut": {
        "properties": {
          "program_title": {
            "type": "string",
            "title": "Program Title"
          },
          "assessment_title": {
            "type": "string",
            "title": "Assessment Title"
          },
          "instructions_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instructions Md"
          },
          "duration_minutes": {
            "type": "integer",
            "title": "Duration Minutes"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/InviteSectionOut"
            },
            "type": "array",
            "title": "Sections"
          },
          "total_questions": {
            "type": "integer",
            "title": "Total Questions"
          },
          "rules": {
            "$ref": "#/components/schemas/RulesOut"
          },
          "required_consents": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required Consents"
          },
          "optional_consents": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Optional Consents"
          },
          "consent_version": {
            "type": "string",
            "title": "Consent Version"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "title": "Valid From"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "title": "Valid Until"
          },
          "status": {
            "type": "string",
            "enum": [
              "not_started",
              "in_progress",
              "submitted",
              "expired"
            ],
            "title": "Status"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "timed_sections": {
            "type": "boolean",
            "title": "Timed Sections",
            "description": "Some section has a time limit: sections are taken in order, each with its own countdown, and a closed section cannot be reopened",
            "default": false
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          },
          "set_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Set Code",
            "description": "The assessment link (`/s/<code>`) whose participant this invite belongs to; null for an internship invite. Its attempts are listed on `/me/results`, not with the applications"
          },
          "set_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Set Title",
            "description": "With `set_code`: the link's title (the name the participant knows)"
          },
          "set_show_result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SetResultPolicy"
              },
              {
                "type": "null"
              }
            ],
            "description": "With `set_code`: what the participant will see of their result (`never`, `immediate` once scored, `after_review` once released). It replaces the assessment's own `rules.show_score_after_submit`, which is false for a link"
          }
        },
        "type": "object",
        "required": [
          "program_title",
          "assessment_title",
          "instructions_md",
          "duration_minutes",
          "sections",
          "total_questions",
          "rules",
          "required_consents",
          "optional_consents",
          "consent_version",
          "valid_from",
          "valid_until",
          "status",
          "session_id",
          "server_now"
        ],
        "title": "InviteLandingOut"
      },
      "InviteProgramOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "slug",
          "status"
        ],
        "title": "InviteProgramOut"
      },
      "InviteSectionOut": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "is_optional": {
            "type": "boolean",
            "title": "Is Optional"
          },
          "time_limit_minutes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Limit Minutes"
          }
        },
        "type": "object",
        "required": [
          "type",
          "title",
          "count",
          "is_optional",
          "time_limit_minutes"
        ],
        "title": "InviteSectionOut"
      },
      "InvitesIn": {
        "properties": {
          "recipients": {
            "items": {
              "$ref": "#/components/schemas/RecipientIn"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "Recipients"
          },
          "resend": {
            "type": "boolean",
            "title": "Resend",
            "description": "E-mail people who were invited before once more (a new link replaces the old one). Without it they are returned as `existing` and get no e-mail",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "recipients"
        ],
        "title": "InvitesIn"
      },
      "InvitesOut": {
        "properties": {
          "created": {
            "type": "integer",
            "title": "Created"
          },
          "existing": {
            "type": "integer",
            "title": "Existing"
          },
          "resent": {
            "type": "integer",
            "title": "Resent"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/IntegrationInviteResultOut"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "created",
          "existing",
          "resent",
          "items"
        ],
        "title": "InvitesOut"
      },
      "JobOut": {
        "properties": {
          "job_id": {
            "type": "string",
            "format": "uuid",
            "title": "Job Id"
          }
        },
        "type": "object",
        "required": [
          "job_id"
        ],
        "title": "JobOut"
      },
      "JobQueuedOut": {
        "properties": {
          "queued": {
            "type": "boolean",
            "title": "Queued",
            "default": true
          }
        },
        "type": "object",
        "title": "JobQueuedOut"
      },
      "Language": {
        "type": "string",
        "enum": [
          "python",
          "sql"
        ],
        "title": "Language"
      },
      "LeaderboardEntryOut": {
        "properties": {
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "user": {
            "$ref": "#/components/schemas/AcademyPersonOut"
          },
          "total": {
            "type": "number",
            "title": "Total"
          },
          "components": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Components"
          },
          "is_me": {
            "type": "boolean",
            "title": "Is Me"
          }
        },
        "type": "object",
        "required": [
          "rank",
          "user",
          "total",
          "components",
          "is_me"
        ],
        "title": "LeaderboardEntryOut"
      },
      "LeaderboardRowOut": {
        "properties": {
          "rank": {
            "type": "integer",
            "title": "Rank",
            "description": "Shared by equal solved + points (1, 2, 2, 4)"
          },
          "user": {
            "$ref": "#/components/schemas/PublicUserOut"
          },
          "solved": {
            "type": "integer",
            "title": "Solved",
            "description": "Distinct problems first accepted inside the period"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "current_streak": {
            "type": "integer",
            "title": "Current Streak",
            "description": "Consecutive Asia/Tashkent days with an accepted submit, ending today or yesterday",
            "default": 0
          },
          "best_streak": {
            "type": "integer",
            "title": "Best Streak",
            "description": "Longest such run ever",
            "default": 0
          },
          "last_solved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Solved At"
          },
          "is_me": {
            "type": "boolean",
            "title": "Is Me",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "rank",
          "user",
          "solved",
          "points"
        ],
        "title": "LeaderboardRowOut"
      },
      "LessonAdminOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "module_id": {
            "type": "string",
            "format": "uuid",
            "title": "Module Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "type": {
            "$ref": "#/components/schemas/LessonType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "content_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Md"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "file": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FileBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "question_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Question Ids"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/QuestionBriefOut"
            },
            "type": "array",
            "title": "Questions"
          },
          "estimated_minutes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Minutes"
          },
          "is_required": {
            "type": "boolean",
            "title": "Is Required"
          },
          "completions": {
            "type": "integer",
            "title": "Completions"
          }
        },
        "type": "object",
        "required": [
          "id",
          "module_id",
          "position",
          "type",
          "title",
          "content_md",
          "url",
          "provider",
          "file",
          "question_ids",
          "questions",
          "estimated_minutes",
          "is_required",
          "completions"
        ],
        "title": "LessonAdminOut"
      },
      "LessonCompleteOut": {
        "properties": {
          "lesson_id": {
            "type": "string",
            "format": "uuid",
            "title": "Lesson Id"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "module_id": {
            "type": "string",
            "format": "uuid",
            "title": "Module Id"
          },
          "lessons_total": {
            "type": "integer",
            "title": "Lessons Total"
          },
          "lessons_done": {
            "type": "integer",
            "title": "Lessons Done"
          }
        },
        "type": "object",
        "required": [
          "lesson_id",
          "completed_at",
          "module_id",
          "lessons_total",
          "lessons_done"
        ],
        "title": "LessonCompleteOut"
      },
      "LessonIn": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/LessonType"
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "content_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200000
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Md"
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Id"
          },
          "question_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Question Ids"
          },
          "estimated_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Minutes"
          },
          "is_required": {
            "type": "boolean",
            "title": "Is Required",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "type",
          "title"
        ],
        "title": "LessonIn"
      },
      "LessonOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "type": {
            "$ref": "#/components/schemas/LessonType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "content_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Md"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "file": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FileBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "estimated_minutes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Minutes"
          },
          "is_required": {
            "type": "boolean",
            "title": "Is Required"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "practice_problems": {
            "items": {
              "$ref": "#/components/schemas/AcademyPracticeProblemOut"
            },
            "type": "array",
            "title": "Practice Problems",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "type",
          "title",
          "content_md",
          "url",
          "provider",
          "file",
          "estimated_minutes",
          "is_required",
          "completed_at"
        ],
        "title": "LessonOut"
      },
      "LessonPatchIn": {
        "properties": {
          "type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LessonType"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "content_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200000
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Md"
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Id"
          },
          "question_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Ids"
          },
          "estimated_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Estimated Minutes"
          },
          "is_required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Required"
          },
          "module_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Module Id"
          }
        },
        "type": "object",
        "title": "LessonPatchIn"
      },
      "LessonType": {
        "type": "string",
        "enum": [
          "article",
          "video",
          "external_link",
          "file",
          "practice_set"
        ],
        "title": "LessonType"
      },
      "LinkBadgeOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "enriched": {
            "type": "boolean",
            "title": "Enriched",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "url"
        ],
        "title": "LinkBadgeOut"
      },
      "LinkCategory": {
        "type": "string",
        "enum": [
          "code",
          "competitive",
          "data",
          "social",
          "other"
        ],
        "title": "LinkCategory"
      },
      "LinkOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "enriched": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enriched"
          },
          "enrich_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enrich Error"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "url"
        ],
        "title": "LinkOut"
      },
      "LinkTypeIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 40,
            "minLength": 1,
            "pattern": "^[a-z0-9_]+$",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "url_regex": {
            "type": "string",
            "maxLength": 300,
            "minLength": 3,
            "title": "Url Regex",
            "description": "Python regex with a `handle` group, within the bounded subset (no nested quantifiers, backreferences or lookarounds)"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "category": {
            "$ref": "#/components/schemas/LinkCategory"
          },
          "enrich_provider": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(github|codeforces|leetcode)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enrich Provider"
          },
          "sort_order": {
            "type": "integer",
            "title": "Sort Order",
            "default": 0
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "url_regex",
          "category"
        ],
        "title": "LinkTypeIn"
      },
      "LinkTypeOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url_regex": {
            "type": "string",
            "title": "Url Regex"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "category": {
            "$ref": "#/components/schemas/LinkCategory"
          },
          "enrich_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enrich Provider"
          },
          "sort_order": {
            "type": "integer",
            "title": "Sort Order"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          }
        },
        "type": "object",
        "required": [
          "id",
          "code",
          "name",
          "url_regex",
          "icon",
          "category",
          "enrich_provider",
          "sort_order",
          "is_active"
        ],
        "title": "LinkTypeOut"
      },
      "Locale": {
        "type": "string",
        "enum": [
          "uz",
          "en"
        ],
        "title": "Locale"
      },
      "McqConfig": {
        "properties": {
          "multi_select": {
            "type": "boolean",
            "title": "Multi Select",
            "default": false
          },
          "partial_credit": {
            "type": "boolean",
            "title": "Partial Credit",
            "default": false
          },
          "shuffle_options": {
            "type": "boolean",
            "title": "Shuffle Options",
            "default": true
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/McqOptionIn"
            },
            "type": "array",
            "maxItems": 12,
            "title": "Options"
          }
        },
        "type": "object",
        "title": "McqConfig"
      },
      "McqImportIn": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 500000,
            "title": "Text"
          },
          "usage": {
            "$ref": "#/components/schemas/QuestionUsage",
            "default": "assessment"
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "uz",
                  "en"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Language",
            "description": "Base language of every imported question (empty: guessed per question)"
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "McqImportIn"
      },
      "McqImportOut": {
        "properties": {
          "created": {
            "type": "integer",
            "title": "Created"
          },
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Ids"
          }
        },
        "type": "object",
        "required": [
          "created",
          "ids"
        ],
        "title": "McqImportOut"
      },
      "McqOptionIn": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "text_md": {
            "type": "string",
            "maxLength": 5000,
            "minLength": 1,
            "title": "Text Md"
          },
          "is_correct": {
            "type": "boolean",
            "title": "Is Correct",
            "default": false
          },
          "explanation_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 5000
              },
              {
                "type": "null"
              }
            ],
            "title": "Explanation Md"
          }
        },
        "type": "object",
        "required": [
          "text_md"
        ],
        "title": "McqOptionIn"
      },
      "McqOptionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "text_md": {
            "type": "string",
            "maxLength": 5000,
            "minLength": 1,
            "title": "Text Md"
          },
          "is_correct": {
            "type": "boolean",
            "title": "Is Correct",
            "default": false
          },
          "explanation_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 5000
              },
              {
                "type": "null"
              }
            ],
            "title": "Explanation Md"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          }
        },
        "type": "object",
        "required": [
          "id",
          "text_md",
          "position"
        ],
        "title": "McqOptionOut"
      },
      "McqOptionReviewOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "text_md": {
            "type": "string",
            "title": "Text Md"
          },
          "selected": {
            "type": "boolean",
            "title": "Selected",
            "default": false
          },
          "is_correct": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Correct",
            "description": "Admins only"
          }
        },
        "type": "object",
        "required": [
          "id",
          "text_md"
        ],
        "title": "McqOptionReviewOut"
      },
      "McqParseOut": {
        "properties": {
          "questions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Questions"
          },
          "errors": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Errors"
          }
        },
        "type": "object",
        "required": [
          "questions",
          "errors"
        ],
        "title": "McqParseOut"
      },
      "McqReviewOut": {
        "properties": {
          "multi_select": {
            "type": "boolean",
            "title": "Multi Select"
          },
          "partial_credit": {
            "type": "boolean",
            "title": "Partial Credit"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/McqOptionReviewOut"
            },
            "type": "array",
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "multi_select",
          "partial_credit",
          "options"
        ],
        "title": "McqReviewOut"
      },
      "McqTextIn": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 500000,
            "title": "Text"
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "McqTextIn"
      },
      "MeOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "locale": {
            "$ref": "#/components/schemas/Locale"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "public_profile": {
            "type": "boolean",
            "title": "Public Profile"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Permissions"
          },
          "profile_completed": {
            "type": "boolean",
            "title": "Profile Completed"
          },
          "telegram_linked": {
            "type": "boolean",
            "title": "Telegram Linked"
          },
          "has_set_attempts": {
            "type": "boolean",
            "title": "Has Set Attempts",
            "description": "The user filled in at least one assessment link of this portal that is not archived (`GET /me/set-attempts` lists them): the menu shows \"My results\"",
            "default": false
          },
          "portal": {
            "$ref": "#/components/schemas/PortalPublicOut"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "full_name",
          "avatar_url",
          "locale",
          "timezone",
          "handle",
          "public_profile",
          "role",
          "permissions",
          "profile_completed",
          "telegram_linked",
          "portal"
        ],
        "title": "MeOut"
      },
      "MeUpdateIn": {
        "properties": {
          "full_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          },
          "locale": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Locale"
              },
              {
                "type": "null"
              }
            ]
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "public_profile": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Profile"
          }
        },
        "type": "object",
        "title": "MeUpdateIn"
      },
      "MediaCaptureOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "kind": {
            "$ref": "#/components/schemas/MediaKind"
          },
          "t_ms": {
            "type": "integer",
            "title": "T Ms"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "Always null: reviewers get frames from GET /sessions/{id}/frames only"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "t_ms",
          "created_at"
        ],
        "title": "MediaCaptureOut"
      },
      "MediaCompleteIn": {
        "properties": {
          "file_id": {
            "type": "string",
            "format": "uuid",
            "title": "File Id"
          },
          "at": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "At",
            "description": "Client time of the shot"
          },
          "sent_at": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 10000000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Sent At"
          }
        },
        "type": "object",
        "required": [
          "file_id"
        ],
        "title": "MediaCompleteIn"
      },
      "MediaCoverageOut": {
        "properties": {
          "required": {
            "type": "boolean",
            "title": "Required"
          },
          "snapshots": {
            "type": "integer",
            "title": "Snapshots",
            "description": "Snapshots stored"
          },
          "expected_snapshots": {
            "type": "integer",
            "title": "Expected Snapshots",
            "description": "Session time ÷ snapshot interval"
          },
          "started": {
            "type": "integer",
            "title": "Started",
            "description": "`screen_share_started` / `camera_started` events"
          },
          "stopped": {
            "type": "integer",
            "title": "Stopped",
            "description": "Events that stop the capture (stopped, refused, virtual)"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons",
            "description": "Coverage reasons of this kind"
          }
        },
        "type": "object",
        "required": [
          "required",
          "snapshots",
          "expected_snapshots",
          "started",
          "stopped"
        ],
        "title": "MediaCoverageOut",
        "description": "One capture (webcam / screen) that was enabled and consented for the session."
      },
      "MediaKind": {
        "type": "string",
        "enum": [
          "webcam",
          "screen"
        ],
        "title": "MediaKind"
      },
      "MediaPresignIn": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/MediaKind"
          },
          "mime_type": {
            "type": "string",
            "maxLength": 100,
            "minLength": 3,
            "title": "Mime Type",
            "default": "image/jpeg"
          },
          "size_bytes": {
            "type": "integer",
            "maximum": 10485760.0,
            "exclusiveMinimum": 0.0,
            "title": "Size Bytes"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "size_bytes"
        ],
        "title": "MediaPresignIn"
      },
      "MemberInviteIn": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          }
        },
        "type": "object",
        "required": [
          "email",
          "role"
        ],
        "title": "MemberInviteIn"
      },
      "MemberOut": {
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "last_login_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Login At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "email",
          "full_name",
          "avatar_url",
          "role",
          "last_login_at",
          "created_at"
        ],
        "title": "MemberOut"
      },
      "MemberRoleIn": {
        "properties": {
          "role": {
            "$ref": "#/components/schemas/Role"
          }
        },
        "type": "object",
        "required": [
          "role"
        ],
        "title": "MemberRoleIn"
      },
      "MentorCardOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "telegram_linked": {
            "type": "boolean",
            "title": "Telegram Linked",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email"
        ],
        "title": "MentorCardOut"
      },
      "ModuleDetailOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "course_id": {
            "type": "string",
            "format": "uuid",
            "title": "Course Id"
          },
          "course_title": {
            "type": "string",
            "title": "Course Title"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "unlocks_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unlocks At"
          },
          "locked": {
            "type": "boolean",
            "title": "Locked"
          },
          "lessons": {
            "items": {
              "$ref": "#/components/schemas/LessonOut"
            },
            "type": "array",
            "title": "Lessons"
          },
          "homeworks": {
            "items": {
              "$ref": "#/components/schemas/HomeworkBriefOut"
            },
            "type": "array",
            "title": "Homeworks"
          },
          "lessons_total": {
            "type": "integer",
            "title": "Lessons Total"
          },
          "lessons_done": {
            "type": "integer",
            "title": "Lessons Done"
          },
          "prev_module_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prev Module Id"
          },
          "next_module_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Module Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "course_id",
          "course_title",
          "position",
          "title",
          "description_md",
          "unlocks_at",
          "locked",
          "lessons",
          "homeworks",
          "lessons_total",
          "lessons_done",
          "prev_module_id",
          "next_module_id"
        ],
        "title": "ModuleDetailOut"
      },
      "ModuleIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "unlocks_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unlocks At"
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "ModuleIn"
      },
      "ModuleOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "course_id": {
            "type": "string",
            "format": "uuid",
            "title": "Course Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "unlocks_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unlocks At"
          },
          "lessons": {
            "items": {
              "$ref": "#/components/schemas/LessonAdminOut"
            },
            "type": "array",
            "title": "Lessons"
          },
          "homeworks": {
            "items": {
              "$ref": "#/components/schemas/HomeworkAdminOut"
            },
            "type": "array",
            "title": "Homeworks"
          }
        },
        "type": "object",
        "required": [
          "id",
          "course_id",
          "position",
          "title",
          "description_md",
          "unlocks_at",
          "lessons",
          "homeworks"
        ],
        "title": "ModuleOut"
      },
      "ModulePatchIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "unlocks_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unlocks At"
          }
        },
        "type": "object",
        "title": "ModulePatchIn"
      },
      "ModuleSummaryOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "unlocks_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unlocks At"
          },
          "locked": {
            "type": "boolean",
            "title": "Locked"
          },
          "lessons_total": {
            "type": "integer",
            "title": "Lessons Total"
          },
          "lessons_done": {
            "type": "integer",
            "title": "Lessons Done"
          },
          "homeworks": {
            "items": {
              "$ref": "#/components/schemas/HomeworkBriefOut"
            },
            "type": "array",
            "title": "Homeworks"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "title",
          "description_md",
          "unlocks_at",
          "locked",
          "lessons_total",
          "lessons_done",
          "homeworks"
        ],
        "title": "ModuleSummaryOut"
      },
      "MyApplicationOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "program": {
            "$ref": "#/components/schemas/ProgramBriefOut"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/StatusHistoryOut"
            },
            "type": "array",
            "title": "History"
          },
          "next_step": {
            "type": "string",
            "title": "Next Step"
          },
          "can_withdraw": {
            "type": "boolean",
            "title": "Can Withdraw"
          },
          "assessment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AssessmentBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "interview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationInterviewBriefOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "program",
          "submitted_at",
          "created_at",
          "history",
          "next_step",
          "can_withdraw"
        ],
        "title": "MyApplicationOut"
      },
      "MyAttendanceOut": {
        "properties": {
          "cohort": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CohortBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "$ref": "#/components/schemas/AttendanceSummaryOut"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/AttendanceItemOut"
            },
            "type": "array",
            "title": "Items"
          },
          "upcoming": {
            "items": {
              "$ref": "#/components/schemas/ClassBriefOut"
            },
            "type": "array",
            "title": "Upcoming"
          }
        },
        "type": "object",
        "required": [
          "cohort",
          "summary",
          "items",
          "upcoming"
        ],
        "title": "MyAttendanceOut"
      },
      "MyDeletionRequestOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/DeletionRequestStatus"
          },
          "source": {
            "$ref": "#/components/schemas/DeletionSource"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "decision_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision Note"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "decided_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "source",
          "created_at"
        ],
        "title": "MyDeletionRequestOut"
      },
      "MyHomeworkStatus": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts"
          },
          "is_late": {
            "type": "boolean",
            "title": "Is Late"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "effective_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Score"
          },
          "overdue": {
            "type": "boolean",
            "title": "Overdue"
          }
        },
        "type": "object",
        "required": [
          "status",
          "attempts",
          "is_late",
          "score",
          "effective_score",
          "overdue"
        ],
        "title": "MyHomeworkStatus",
        "description": "The intern's state of one homework (`not_submitted` when there is no attempt)."
      },
      "MyParticipationOut": {
        "properties": {
          "registered_at": {
            "type": "string",
            "format": "date-time",
            "title": "Registered At"
          },
          "is_virtual": {
            "type": "boolean",
            "title": "Is Virtual"
          },
          "virtual_started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Virtual Started At"
          },
          "window_starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Window Starts At"
          },
          "window_ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Window Ends At"
          },
          "in_window": {
            "type": "boolean",
            "title": "In Window"
          },
          "disqualified": {
            "type": "boolean",
            "title": "Disqualified"
          },
          "dq_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dq Reason"
          }
        },
        "type": "object",
        "required": [
          "registered_at",
          "is_virtual",
          "window_starts_at",
          "window_ends_at",
          "in_window",
          "disqualified"
        ],
        "title": "MyParticipationOut"
      },
      "MyPrivacyOut": {
        "properties": {
          "exports": {
            "items": {
              "$ref": "#/components/schemas/DataExportOut"
            },
            "type": "array",
            "title": "Exports"
          },
          "deletion_request": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MyDeletionRequestOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "export_ttl_hours": {
            "type": "integer",
            "title": "Export Ttl Hours"
          },
          "exports_per_day": {
            "type": "integer",
            "title": "Exports Per Day"
          }
        },
        "type": "object",
        "required": [
          "exports",
          "export_ttl_hours",
          "exports_per_day"
        ],
        "title": "MyPrivacyOut",
        "description": "The privacy section of `/me/settings`: recent exports and the open/last deletion request."
      },
      "MySetAttemptOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code",
            "description": "The link code: the pages are `/s/<code>` and `/s/<code>/result`"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "open",
              "closed",
              "archived"
            ],
            "title": "Status",
            "description": "The link's status now"
          },
          "show_result": {
            "$ref": "#/components/schemas/SetResultPolicy"
          },
          "state": {
            "type": "string",
            "enum": [
              "none",
              "started",
              "submitted",
              "scored"
            ],
            "title": "State",
            "description": "`none`: the form was filled in but the test never started · `started` · `submitted` (scoring not final) · `scored`"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id",
            "description": "The started session (to continue it); null before the timer starts"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "visible": {
            "type": "boolean",
            "title": "Visible",
            "description": "The result page shows the score now"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "hidden",
                  "pending_review",
                  "scoring",
                  "preparing",
                  "not_submitted"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Why the result is not shown (as the result endpoint answers)"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "description": "Weighted total in percent, only when visible"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At",
            "description": "When the caller filled in the link's form"
          }
        },
        "type": "object",
        "required": [
          "code",
          "title",
          "status",
          "show_result",
          "state",
          "started_at",
          "submitted_at",
          "visible",
          "created_at"
        ],
        "title": "MySetAttemptOut",
        "description": "One row of the caller's own assessment links (`GET /me/set-attempts`): the link, the\ncaller's progress and the result as `GET /set-links/{code}/result` would show it right now —\nthe total only when that result is visible (never sections, feedback or answers here)."
      },
      "NotePatch": {
        "properties": {
          "body_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Body Md"
          },
          "is_pinned": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Pinned"
          }
        },
        "type": "object",
        "title": "NotePatch"
      },
      "NotificationOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          },
          "link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Link"
          },
          "read_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Read At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "title",
          "body",
          "link",
          "read_at",
          "created_at"
        ],
        "title": "NotificationOut"
      },
      "OkOut": {
        "properties": {
          "ok": {
            "type": "boolean",
            "title": "Ok",
            "default": true
          }
        },
        "type": "object",
        "title": "OkOut"
      },
      "OpenTextConfig": {
        "properties": {
          "rubric": {
            "items": {
              "$ref": "#/components/schemas/RubricItem-Output"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Rubric"
          },
          "sample_answer_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Sample Answer Md"
          },
          "grade_with_ai": {
            "type": "boolean",
            "title": "Grade With Ai",
            "default": true
          },
          "min_words": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 5000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Words"
          },
          "max_words": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Words"
          }
        },
        "type": "object",
        "title": "OpenTextConfig"
      },
      "OrderIn": {
        "properties": {
          "ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Ids"
          }
        },
        "type": "object",
        "required": [
          "ids"
        ],
        "title": "OrderIn",
        "description": "New order of the children of one parent: every id exactly once."
      },
      "OverrideIn": {
        "properties": {
          "session_question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Question Id"
          },
          "score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100000.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Score"
          },
          "reason": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 3,
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "session_question_id",
          "score",
          "reason"
        ],
        "title": "OverrideIn"
      },
      "OverrideOut": {
        "properties": {
          "session_question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Question Id"
          },
          "old_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Old Score"
          },
          "score": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Score"
          },
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "auto_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Score"
          },
          "final_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Final Score"
          },
          "scoring_status": {
            "type": "string",
            "enum": [
              "not_scored",
              "provisional",
              "final"
            ],
            "title": "Scoring Status",
            "default": "not_scored"
          },
          "application_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Id"
          },
          "total_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Score"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          }
        },
        "type": "object",
        "required": [
          "session_question_id",
          "old_score",
          "score",
          "session_id"
        ],
        "title": "OverrideOut"
      },
      "PageOut_AiCallOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AiCallOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[AiCallOut]"
      },
      "PageOut_AssessmentListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AssessmentListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[AssessmentListItem]"
      },
      "PageOut_AttemptOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AuditAttemptOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[AttemptOut]"
      },
      "PageOut_AuditLogOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AuditLogOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[AuditLogOut]"
      },
      "PageOut_AuthSessionOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AuthSessionOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[AuthSessionOut]"
      },
      "PageOut_ClarificationAdminOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ClarificationAdminOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ClarificationAdminOut]"
      },
      "PageOut_ClarificationOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ClarificationOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ClarificationOut]"
      },
      "PageOut_ClassOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ClassOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ClassOut]"
      },
      "PageOut_CohortBriefOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CohortBriefOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[CohortBriefOut]"
      },
      "PageOut_CohortListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CohortListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[CohortListItem]"
      },
      "PageOut_ContestAdminListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContestAdminListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ContestAdminListItem]"
      },
      "PageOut_ContestAdminSubmissionOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContestAdminSubmissionOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ContestAdminSubmissionOut]"
      },
      "PageOut_ContestListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContestListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ContestListItem]"
      },
      "PageOut_ContestSubmissionOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContestSubmissionOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ContestSubmissionOut]"
      },
      "PageOut_CourseListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CourseListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[CourseListItem]"
      },
      "PageOut_CourseProgressOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CourseProgressOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[CourseProgressOut]"
      },
      "PageOut_DeletionRequestOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DeletionRequestOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[DeletionRequestOut]"
      },
      "PageOut_EmailMessageOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/EmailMessageOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[EmailMessageOut]"
      },
      "PageOut_GradingItemOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MentoringGradingItemOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[GradingItemOut]"
      },
      "PageOut_InternRowOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InternRowOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[InternRowOut]"
      },
      "PageOut_InterviewListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InterviewListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[InterviewListItem]"
      },
      "PageOut_InviteCandidateOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InviteCandidateOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[InviteCandidateOut]"
      },
      "PageOut_InviteOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/IntegrationInviteOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[InviteOut]"
      },
      "PageOut_InviteProgramOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/InviteProgramOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[InviteProgramOut]"
      },
      "PageOut_MemberOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MemberOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[MemberOut]"
      },
      "PageOut_MySetAttemptOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MySetAttemptOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[MySetAttemptOut]"
      },
      "PageOut_NoteOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ReviewNoteOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[NoteOut]"
      },
      "PageOut_NotificationOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/NotificationOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[NotificationOut]"
      },
      "PageOut_ParticipantAdminOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ParticipantAdminOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ParticipantAdminOut]"
      },
      "PageOut_PlagiarismPairOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContestPlagiarismPairOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[PlagiarismPairOut]"
      },
      "PageOut_PracticeProblemItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PracticeProblemItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[PracticeProblemItem]"
      },
      "PageOut_PracticeSubmissionOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PracticeSubmissionOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[PracticeSubmissionOut]"
      },
      "PageOut_ProgramAdminOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProgramAdminOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ProgramAdminOut]"
      },
      "PageOut_ProgramListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProgramListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ProgramListItem]"
      },
      "PageOut_PublicProfileLinkOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicProfileLinkOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[PublicProfileLinkOut]"
      },
      "PageOut_QuestionListItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/QuestionListItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[QuestionListItem]"
      },
      "PageOut_QuestionOptionOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/QuestionOptionOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[QuestionOptionOut]"
      },
      "PageOut_RejudgeOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/RejudgeOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[RejudgeOut]"
      },
      "PageOut_SavedViewOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SavedViewOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[SavedViewOut]"
      },
      "PageOut_ScorecardOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ScorecardOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ScorecardOut]"
      },
      "PageOut_SetOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SetOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[SetOut]"
      },
      "PageOut_SetResultOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SetResultOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[SetResultOut]"
      },
      "PageOut_ShortlistOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ShortlistOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[ShortlistOut]"
      },
      "PageOut_SlotOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SlotOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[SlotOut]"
      },
      "PageOut_StaffOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/StaffOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[StaffOut]"
      },
      "PageOut_TalentEntryOut_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TalentEntryOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[TalentEntryOut]"
      },
      "PageOut_TalentSearchItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TalentSearchItem"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "PageOut[TalentSearchItem]"
      },
      "ParticipantAdminOut": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/ParticipantUserOut"
          },
          "registered_at": {
            "type": "string",
            "format": "date-time",
            "title": "Registered At"
          },
          "is_virtual": {
            "type": "boolean",
            "title": "Is Virtual"
          },
          "virtual_started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Virtual Started At"
          },
          "disqualified": {
            "type": "boolean",
            "title": "Disqualified"
          },
          "dq_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dq Reason"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "solved": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Solved"
          },
          "penalty": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Penalty"
          },
          "submissions": {
            "type": "integer",
            "title": "Submissions"
          }
        },
        "type": "object",
        "required": [
          "user",
          "registered_at",
          "is_virtual",
          "virtual_started_at",
          "disqualified",
          "dq_reason",
          "rank",
          "score",
          "solved",
          "penalty",
          "submissions"
        ],
        "title": "ParticipantAdminOut"
      },
      "ParticipantUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email"
        ],
        "title": "ParticipantUserOut"
      },
      "PersonRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name"
        ],
        "title": "PersonRef"
      },
      "PitchAttemptOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "attempt": {
            "type": "integer",
            "title": "Attempt"
          },
          "status": {
            "$ref": "#/components/schemas/PitchStatus"
          },
          "duration_sec": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Sec"
          },
          "file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Id"
          },
          "transcript": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Transcript"
          },
          "transcript_source": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ai",
                  "stt"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Transcript Source",
            "description": "Who wrote the transcript: ai (the grading provider, from the recording) or stt (speech recognition in the worker)"
          },
          "language_detected": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language Detected"
          },
          "analysis": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Analysis"
          },
          "ai_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Score"
          },
          "final_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Final Score"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "counted": {
            "type": "boolean",
            "title": "Counted",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "attempt",
          "status",
          "created_at"
        ],
        "title": "PitchAttemptOut"
      },
      "PitchConfig": {
        "properties": {
          "media": {
            "type": "string",
            "enum": [
              "audio",
              "video"
            ],
            "title": "Media",
            "default": "audio"
          },
          "max_seconds": {
            "type": "integer",
            "maximum": 600.0,
            "minimum": 30.0,
            "title": "Max Seconds",
            "default": 180
          },
          "max_attempts": {
            "type": "integer",
            "maximum": 5.0,
            "minimum": 1.0,
            "title": "Max Attempts",
            "default": 3
          }
        },
        "type": "object",
        "title": "PitchConfig"
      },
      "PitchIn": {
        "properties": {
          "file_id": {
            "type": "string",
            "format": "uuid",
            "title": "File Id"
          },
          "duration_sec": {
            "type": "integer",
            "maximum": 3600.0,
            "minimum": 1.0,
            "title": "Duration Sec"
          },
          "session_question_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Question Id"
          }
        },
        "type": "object",
        "required": [
          "file_id",
          "duration_sec"
        ],
        "title": "PitchIn"
      },
      "PitchOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "session_question_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Question Id"
          },
          "attempt": {
            "type": "integer",
            "title": "Attempt"
          },
          "attempts_left": {
            "type": "integer",
            "title": "Attempts Left"
          },
          "status": {
            "$ref": "#/components/schemas/PitchStatus"
          },
          "duration_sec": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Sec"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Id",
            "description": "The recording (GET /files/{id}/url)"
          }
        },
        "type": "object",
        "required": [
          "id",
          "session_question_id",
          "attempt",
          "attempts_left",
          "status",
          "duration_sec",
          "created_at"
        ],
        "title": "PitchOut"
      },
      "PitchStatus": {
        "type": "string",
        "enum": [
          "uploaded",
          "transcribing",
          "analyzing",
          "done",
          "failed"
        ],
        "title": "PitchStatus"
      },
      "PitchSummaryOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "attempt": {
            "type": "integer",
            "title": "Attempt"
          },
          "status": {
            "$ref": "#/components/schemas/PitchStatus"
          },
          "duration_sec": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Sec"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Id",
            "description": "Recording, playable via GET /files/{id}/url (signed, short-lived)"
          }
        },
        "type": "object",
        "required": [
          "id",
          "attempt",
          "status",
          "duration_sec",
          "created_at"
        ],
        "title": "PitchSummaryOut"
      },
      "PlagiarismListOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProctoringPlagiarismPairOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "threshold": {
            "type": "number",
            "title": "Threshold",
            "description": "Integrity flag threshold (pairs are stored from 0.6)"
          },
          "store_threshold": {
            "type": "number",
            "title": "Store Threshold"
          },
          "sessions_total": {
            "type": "integer",
            "title": "Sessions Total"
          },
          "sessions_pending": {
            "type": "integer",
            "title": "Sessions Pending",
            "description": "Submitted sessions not compared yet"
          },
          "running": {
            "type": "boolean",
            "title": "Running"
          },
          "last_run_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Run At"
          }
        },
        "type": "object",
        "required": [
          "items",
          "threshold",
          "store_threshold",
          "sessions_total",
          "sessions_pending",
          "running"
        ],
        "title": "PlagiarismListOut"
      },
      "PlagiarismPairDetailOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "question": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PlagiarismQuestionOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "similarity": {
            "type": "number",
            "title": "Similarity"
          },
          "flagged": {
            "type": "boolean",
            "title": "Flagged"
          },
          "a": {
            "$ref": "#/components/schemas/PlagiarismSideOut"
          },
          "b": {
            "$ref": "#/components/schemas/PlagiarismSideOut"
          },
          "computed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Computed At"
          },
          "language": {
            "type": "string",
            "enum": [
              "python",
              "sql"
            ],
            "title": "Language"
          },
          "code_a": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code A"
          },
          "code_b": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code B"
          }
        },
        "type": "object",
        "required": [
          "id",
          "question",
          "similarity",
          "flagged",
          "a",
          "b",
          "computed_at",
          "language",
          "code_a",
          "code_b"
        ],
        "title": "PlagiarismPairDetailOut"
      },
      "PlagiarismPeerOut": {
        "properties": {
          "match_id": {
            "type": "string",
            "format": "uuid",
            "title": "Match Id"
          },
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "question_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Title"
          },
          "similarity": {
            "type": "number",
            "title": "Similarity"
          },
          "flagged": {
            "type": "boolean",
            "title": "Flagged"
          },
          "other_session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Other Session Id",
            "description": "Only for users who may read every application"
          },
          "other_candidate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProctoringPersonOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "match_id",
          "question_id",
          "question_title",
          "similarity",
          "flagged"
        ],
        "title": "PlagiarismPeerOut"
      },
      "PlagiarismQuestionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "type"
        ],
        "title": "PlagiarismQuestionOut"
      },
      "PlagiarismRunOut": {
        "properties": {
          "queued": {
            "type": "boolean",
            "title": "Queued"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Assessment Id"
          }
        },
        "type": "object",
        "required": [
          "queued",
          "assessment_id"
        ],
        "title": "PlagiarismRunOut"
      },
      "PlagiarismSideOut": {
        "properties": {
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "application_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Id"
          },
          "submission_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submission Id"
          },
          "candidate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProctoringPersonOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "application_id",
          "submission_id",
          "candidate"
        ],
        "title": "PlagiarismSideOut"
      },
      "PlagiarismSubmissionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "user": {
            "$ref": "#/components/schemas/ParticipantUserOut"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "user",
          "code",
          "verdict",
          "created_at"
        ],
        "title": "PlagiarismSubmissionOut"
      },
      "PlagiarismWeight": {
        "properties": {
          "threshold": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.5,
            "title": "Threshold"
          },
          "points": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Points"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "threshold",
          "points"
        ],
        "title": "PlagiarismWeight"
      },
      "PoolStatsOut": {
        "properties": {
          "ok": {
            "type": "boolean",
            "title": "Ok",
            "description": "Every required section can be filled"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SectionPoolStats"
            },
            "type": "array",
            "title": "Sections"
          },
          "questions_total": {
            "type": "integer",
            "title": "Questions Total",
            "description": "Distinct questions the sections can draw from",
            "default": 0
          },
          "languages": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Languages",
            "description": "Language → how many of those questions can be read in it"
          },
          "common_languages": {
            "items": {
              "type": "string",
              "enum": [
                "uz",
                "en"
              ]
            },
            "type": "array",
            "title": "Common Languages",
            "description": "Languages every one of those questions can be read in"
          },
          "mixed_languages": {
            "type": "boolean",
            "title": "Mixed Languages",
            "description": "No language is shared by every question a candidate may get (a warning, not a blocker)",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "ok",
          "sections"
        ],
        "title": "PoolStatsOut"
      },
      "PoolWarning": {
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "pool_too_small",
              "difficulty_short",
              "difficulty_fallback",
              "optional_short"
            ],
            "title": "Code"
          },
          "section_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Id"
          },
          "difficulty": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Difficulty"
              },
              {
                "type": "null"
              }
            ]
          },
          "wanted": {
            "type": "integer",
            "title": "Wanted"
          },
          "available": {
            "type": "integer",
            "title": "Available"
          },
          "filled_with": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filled With"
          }
        },
        "type": "object",
        "required": [
          "code",
          "wanted",
          "available"
        ],
        "title": "PoolWarning"
      },
      "PortalAdminOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "host": {
            "type": "string",
            "title": "Host"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "tagline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline"
          },
          "tagline_en": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline En"
          },
          "logo_file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo File Id"
          },
          "primary_color": {
            "type": "string",
            "title": "Primary Color"
          },
          "default_locale": {
            "$ref": "#/components/schemas/Locale"
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "settings": {
            "additionalProperties": true,
            "type": "object",
            "title": "Settings"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "host",
          "name",
          "tagline",
          "tagline_en",
          "logo_file_id",
          "primary_color",
          "default_locale",
          "contact_email",
          "is_active",
          "settings",
          "created_at"
        ],
        "title": "PortalAdminOut"
      },
      "PortalPublicOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "host": {
            "type": "string",
            "title": "Host"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "tagline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline",
            "description": "Tagline for Uzbek pages: the Uzbek one, else the English one (null: none)."
          },
          "tagline_en": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline En",
            "description": "Tagline for English pages: the English one, else the Uzbek one (null: none)."
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo Url"
          },
          "primary_color": {
            "type": "string",
            "title": "Primary Color"
          },
          "default_locale": {
            "$ref": "#/components/schemas/Locale"
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "features": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Features"
          },
          "ai_provider": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "anthropic",
                  "openai",
                  "gemini"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Provider",
            "description": "The AI provider the portal's grading calls go to (the assessment rules name it, a pitch recording's sound goes only to `gemini`); null when the portal does not use AI (`features.ai` false): pitches are transcribed on the server only."
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "host",
          "name",
          "tagline",
          "logo_url",
          "primary_color",
          "default_locale",
          "contact_email",
          "features"
        ],
        "title": "PortalPublicOut"
      },
      "PortalUpdateIn": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "tagline": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline",
            "description": "In Uzbek"
          },
          "tagline_en": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline En",
            "description": "In English"
          },
          "logo_file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logo File Id"
          },
          "primary_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Color"
          },
          "default_locale": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Locale"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          }
        },
        "type": "object",
        "title": "PortalUpdateIn"
      },
      "PracticeProblemItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "language": {
            "type": "string",
            "enum": [
              "uz",
              "en"
            ],
            "title": "Language",
            "description": "Base language of `title`; `title_translations` hold the others",
            "default": "uz"
          },
          "title_translations": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Title Translations",
            "default": {}
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "stats": {
            "$ref": "#/components/schemas/ProblemStatsOut"
          },
          "my_status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "solved",
                  "attempted"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "My Status"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "type",
          "difficulty",
          "tags",
          "topic",
          "points",
          "stats"
        ],
        "title": "PracticeProblemItem"
      },
      "PracticeStatsOut": {
        "properties": {
          "solved": {
            "type": "integer",
            "title": "Solved"
          },
          "attempted": {
            "type": "integer",
            "title": "Attempted"
          },
          "total_problems": {
            "type": "integer",
            "title": "Total Problems"
          },
          "by_difficulty": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Difficulty"
          },
          "by_type": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Type"
          },
          "streak": {
            "$ref": "#/components/schemas/StreakOut"
          },
          "last_solved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Solved At"
          },
          "activity": {
            "items": {
              "$ref": "#/components/schemas/DayCountOut"
            },
            "type": "array",
            "title": "Activity"
          }
        },
        "type": "object",
        "required": [
          "solved",
          "attempted",
          "total_problems",
          "by_difficulty",
          "by_type",
          "streak",
          "activity"
        ],
        "title": "PracticeStatsOut"
      },
      "PracticeSubmissionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "memory_kb": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Memory Kb"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "verdict",
          "score",
          "max_score",
          "tests_passed",
          "tests_total",
          "time_ms",
          "memory_kb",
          "message",
          "code",
          "created_at"
        ],
        "title": "PracticeSubmissionOut"
      },
      "PracticeSubmitOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "compile_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compile Error"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "SQL: the query's DuckDB error as the solver may see it — class and message, at most three lines and 500 characters; from a hidden test only its DuckDB class (e.g. \"Conversion Error\"), never the message body. Null for Python and when no test failed with an error."
          },
          "visible": {
            "items": {
              "$ref": "#/components/schemas/TestResultOut"
            },
            "type": "array",
            "title": "Visible"
          },
          "hidden": {
            "$ref": "#/components/schemas/HiddenSummaryOut"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "solved": {
            "type": "boolean",
            "title": "Solved"
          },
          "first_solve": {
            "type": "boolean",
            "title": "First Solve"
          },
          "streak": {
            "$ref": "#/components/schemas/StreakOut"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "verdict",
          "tests_passed",
          "tests_total",
          "visible",
          "hidden",
          "created_at",
          "solved",
          "first_solve",
          "streak"
        ],
        "title": "PracticeSubmitOut"
      },
      "PracticeTagOut": {
        "properties": {
          "tag": {
            "type": "string",
            "title": "Tag"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "tag",
          "count"
        ],
        "title": "PracticeTagOut"
      },
      "PrepAccess": {
        "type": "string",
        "enum": [
          "admin",
          "mentor",
          "intern",
          "applicant"
        ],
        "title": "PrepAccess",
        "description": "Why the caller may study the prep courses."
      },
      "PrepCoursesOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CourseProgressOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          },
          "access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PrepAccess"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "items",
          "access"
        ],
        "title": "PrepCoursesOut",
        "description": "Prep courses with the caller's lesson progress (oldest first). `access` is null for a\nsigned-in user without a non-draft application: nothing is listed and the UI invites them to\napply. An intern's prep course that is linked to the program of their cohort is a cohort\ncourse for them and is listed by `/academy/courses` instead."
      },
      "PrepHomeworkOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "module_id": {
            "type": "string",
            "format": "uuid",
            "title": "Module Id"
          },
          "module_title": {
            "type": "string",
            "title": "Module Title"
          },
          "course_id": {
            "type": "string",
            "format": "uuid",
            "title": "Course Id"
          },
          "course_slug": {
            "type": "string",
            "title": "Course Slug"
          },
          "course_title": {
            "type": "string",
            "title": "Course Title"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "max_score": {
            "type": "number",
            "title": "Max Score"
          },
          "submission_type": {
            "$ref": "#/components/schemas/HomeworkSubmissionType"
          },
          "rubric": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Rubric"
          },
          "submittable": {
            "type": "boolean",
            "title": "Submittable"
          }
        },
        "type": "object",
        "required": [
          "id",
          "module_id",
          "module_title",
          "course_id",
          "course_slug",
          "course_title",
          "title",
          "description_md",
          "max_score",
          "submission_type",
          "rubric",
          "submittable"
        ],
        "title": "PrepHomeworkOut",
        "description": "A prep task for self-study: the task text with its acceptance criteria and the rubric.\nPrep homework takes no submission here; `submittable` means the caller is an intern of a\ncohort whose program this course is linked to and submits it through `/academy/homeworks/{id}`\n(the cohort homework flow)."
      },
      "PresignUploadIn": {
        "properties": {
          "purpose": {
            "$ref": "#/components/schemas/FilePurpose"
          },
          "filename": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Filename"
          },
          "mime_type": {
            "type": "string",
            "maxLength": 100,
            "minLength": 3,
            "title": "Mime Type"
          },
          "size_bytes": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Size Bytes"
          }
        },
        "type": "object",
        "required": [
          "purpose",
          "filename",
          "mime_type",
          "size_bytes"
        ],
        "title": "PresignUploadIn"
      },
      "PresignUploadOut": {
        "properties": {
          "file_id": {
            "type": "string",
            "format": "uuid",
            "title": "File Id"
          },
          "upload_url": {
            "type": "string",
            "title": "Upload Url"
          },
          "method": {
            "type": "string",
            "title": "Method",
            "default": "PUT"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Headers"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          }
        },
        "type": "object",
        "required": [
          "file_id",
          "upload_url",
          "headers",
          "expires_in"
        ],
        "title": "PresignUploadOut"
      },
      "PreviewSessionOut": {
        "properties": {
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "deadline_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deadline At"
          },
          "warnings": {
            "items": {
              "$ref": "#/components/schemas/PoolWarning"
            },
            "type": "array",
            "title": "Warnings"
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "deadline_at",
          "warnings"
        ],
        "title": "PreviewSessionOut"
      },
      "PrivacyUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "deleted": {
            "type": "boolean",
            "title": "Deleted"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "full_name",
          "deleted"
        ],
        "title": "PrivacyUserOut"
      },
      "ProblemStatsOut": {
        "properties": {
          "solvers": {
            "type": "integer",
            "title": "Solvers",
            "default": 0
          },
          "attempters": {
            "type": "integer",
            "title": "Attempters",
            "default": 0
          },
          "solve_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Solve Rate"
          }
        },
        "type": "object",
        "title": "ProblemStatsOut"
      },
      "ProctorEventType": {
        "type": "string",
        "enum": [
          "focus",
          "blur",
          "visibility_hidden",
          "visibility_visible",
          "fullscreen_exit",
          "fullscreen_enter",
          "paste_blocked",
          "paste",
          "copy",
          "cut",
          "context_menu",
          "large_insert",
          "resize",
          "devtools_suspected",
          "multi_monitor",
          "ip_change",
          "network_offline",
          "network_online",
          "run",
          "submit",
          "question_open",
          "keystroke_stats",
          "telemetry_gap",
          "screen_share_started",
          "screen_share_stopped",
          "screen_share_invalid",
          "camera_started",
          "camera_stopped",
          "camera_virtual",
          "camera_frozen",
          "camera_dark"
        ],
        "title": "ProctorEventType"
      },
      "ProfileOut": {
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone"
          },
          "birth_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Birth Date"
          },
          "gender": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gender"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "country": {
            "type": "string",
            "title": "Country",
            "default": "UZ"
          },
          "education_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EducationLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "university": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "University"
          },
          "graduation_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graduation Year"
          },
          "current_position": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Position"
          },
          "company": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company"
          },
          "english_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EnglishLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "english_certificate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "English Certificate"
          },
          "about_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "About Md"
          },
          "portfolio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Portfolio Url"
          },
          "cv": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CvOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "skills": {
            "items": {
              "$ref": "#/components/schemas/UserSkillOut"
            },
            "type": "array",
            "title": "Skills",
            "default": []
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/UserLinkOut"
            },
            "type": "array",
            "title": "Links",
            "default": []
          },
          "completed": {
            "type": "boolean",
            "title": "Completed",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "email",
          "full_name",
          "avatar_url"
        ],
        "title": "ProfileOut"
      },
      "ProfileSignalOut": {
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          },
          "components": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Components"
          },
          "weights": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Weights"
          }
        },
        "type": "object",
        "title": "ProfileSignalOut"
      },
      "ProfileUpdateIn": {
        "properties": {
          "full_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone"
          },
          "birth_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Birth Date"
          },
          "gender": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(male|female|other|)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gender"
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "education_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EducationLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "university": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "University"
          },
          "graduation_year": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 2040.0,
                "minimum": 1970.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Graduation Year"
          },
          "current_position": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Position"
          },
          "company": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Company"
          },
          "english_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EnglishLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "english_certificate": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "English Certificate"
          },
          "about_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 5000
              },
              {
                "type": "null"
              }
            ],
            "title": "About Md"
          },
          "portfolio_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "pattern": "^(https?://\\S+)?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Portfolio Url"
          },
          "cv_file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cv File Id"
          }
        },
        "type": "object",
        "title": "ProfileUpdateIn"
      },
      "ProgramAdminOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "format": {
            "$ref": "#/components/schemas/ProgramFormat"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "is_paid": {
            "type": "boolean",
            "title": "Is Paid"
          },
          "stipend_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stipend Text"
          },
          "status": {
            "$ref": "#/components/schemas/ProgramStatus"
          },
          "apply_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Opens At"
          },
          "apply_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Closes At"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "capacity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Capacity"
          },
          "cover_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Url"
          },
          "accepting_applications": {
            "type": "boolean",
            "title": "Accepting Applications"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "requirements_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requirements Md"
          },
          "responsibilities_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Responsibilities Md"
          },
          "benefits_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Benefits Md"
          },
          "stages": {
            "items": {
              "$ref": "#/components/schemas/StageOut"
            },
            "type": "array",
            "title": "Stages"
          },
          "has_assessment": {
            "type": "boolean",
            "title": "Has Assessment"
          },
          "assessment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assessment Id"
          },
          "cohort_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cohort Id"
          },
          "cover_file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover File Id"
          },
          "settings": {
            "additionalProperties": true,
            "type": "object",
            "title": "Settings"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "application_counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Application Counts",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "summary",
          "format",
          "location",
          "is_paid",
          "stipend_text",
          "status",
          "apply_opens_at",
          "apply_closes_at",
          "starts_at",
          "ends_at",
          "capacity",
          "accepting_applications",
          "description_md",
          "requirements_md",
          "responsibilities_md",
          "benefits_md",
          "stages",
          "has_assessment",
          "assessment_id",
          "cohort_id",
          "cover_file_id",
          "settings",
          "archived_at",
          "created_at"
        ],
        "title": "ProgramAdminOut"
      },
      "ProgramBriefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/ProgramStatus"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "apply_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Closes At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "status",
          "starts_at",
          "apply_closes_at"
        ],
        "title": "ProgramBriefOut"
      },
      "ProgramFormOut": {
        "properties": {
          "fields": {
            "items": {
              "$ref": "#/components/schemas/FormFieldOut"
            },
            "type": "array",
            "title": "Fields"
          },
          "system_steps": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "System Steps"
          },
          "required_link_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required Link Types"
          },
          "required_skill_codes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required Skill Codes"
          }
        },
        "type": "object",
        "required": [
          "fields",
          "system_steps",
          "required_link_types",
          "required_skill_codes"
        ],
        "title": "ProgramFormOut"
      },
      "ProgramFormat": {
        "type": "string",
        "enum": [
          "offline",
          "online",
          "hybrid"
        ],
        "title": "ProgramFormat"
      },
      "ProgramIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "requirements_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requirements Md"
          },
          "responsibilities_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Responsibilities Md"
          },
          "benefits_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Benefits Md"
          },
          "format": {
            "$ref": "#/components/schemas/ProgramFormat",
            "default": "offline"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "is_paid": {
            "type": "boolean",
            "title": "Is Paid",
            "default": false
          },
          "stipend_text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Stipend Text"
          },
          "status": {
            "$ref": "#/components/schemas/ProgramStatus",
            "default": "draft"
          },
          "apply_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Opens At"
          },
          "apply_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Closes At"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "capacity": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Capacity"
          },
          "assessment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assessment Id"
          },
          "cohort_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cohort Id"
          },
          "cover_file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover File Id"
          },
          "settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProgramSettingsIn"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "ProgramIn"
      },
      "ProgramListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "format": {
            "$ref": "#/components/schemas/ProgramFormat"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "is_paid": {
            "type": "boolean",
            "title": "Is Paid"
          },
          "stipend_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stipend Text"
          },
          "status": {
            "$ref": "#/components/schemas/ProgramStatus"
          },
          "apply_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Opens At"
          },
          "apply_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Closes At"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "capacity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Capacity"
          },
          "cover_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Url"
          },
          "accepting_applications": {
            "type": "boolean",
            "title": "Accepting Applications"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "summary",
          "format",
          "location",
          "is_paid",
          "stipend_text",
          "status",
          "apply_opens_at",
          "apply_closes_at",
          "starts_at",
          "ends_at",
          "capacity",
          "accepting_applications"
        ],
        "title": "ProgramListItem"
      },
      "ProgramOptionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "status"
        ],
        "title": "ProgramOptionOut"
      },
      "ProgramOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "format": {
            "$ref": "#/components/schemas/ProgramFormat"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "is_paid": {
            "type": "boolean",
            "title": "Is Paid"
          },
          "stipend_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stipend Text"
          },
          "status": {
            "$ref": "#/components/schemas/ProgramStatus"
          },
          "apply_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Opens At"
          },
          "apply_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Closes At"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "capacity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Capacity"
          },
          "cover_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Url"
          },
          "accepting_applications": {
            "type": "boolean",
            "title": "Accepting Applications"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "requirements_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requirements Md"
          },
          "responsibilities_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Responsibilities Md"
          },
          "benefits_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Benefits Md"
          },
          "stages": {
            "items": {
              "$ref": "#/components/schemas/StageOut"
            },
            "type": "array",
            "title": "Stages"
          },
          "has_assessment": {
            "type": "boolean",
            "title": "Has Assessment"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "summary",
          "format",
          "location",
          "is_paid",
          "stipend_text",
          "status",
          "apply_opens_at",
          "apply_closes_at",
          "starts_at",
          "ends_at",
          "capacity",
          "accepting_applications",
          "description_md",
          "requirements_md",
          "responsibilities_md",
          "benefits_md",
          "stages",
          "has_assessment"
        ],
        "title": "ProgramOut"
      },
      "ProgramPatchIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "requirements_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requirements Md"
          },
          "responsibilities_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Responsibilities Md"
          },
          "benefits_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Benefits Md"
          },
          "format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProgramFormat"
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "is_paid": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Paid"
          },
          "stipend_text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Stipend Text"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProgramStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "apply_opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Opens At"
          },
          "apply_closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apply Closes At"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "capacity": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Capacity"
          },
          "assessment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assessment Id"
          },
          "cohort_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cohort Id"
          },
          "cover_file_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover File Id"
          },
          "settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProgramSettingsIn"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "ProgramPatchIn"
      },
      "ProgramRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "slug"
        ],
        "title": "ProgramRef"
      },
      "ProgramSettingsIn": {
        "properties": {
          "manual_invite": {
            "type": "boolean",
            "title": "Manual Invite",
            "default": false
          },
          "required_link_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required Link Types",
            "default": [
              "github"
            ]
          },
          "required_skill_codes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required Skill Codes",
            "default": [
              "sql",
              "python"
            ]
          }
        },
        "type": "object",
        "title": "ProgramSettingsIn"
      },
      "ProgramStatus": {
        "type": "string",
        "enum": [
          "draft",
          "open",
          "closed",
          "running",
          "finished"
        ],
        "title": "ProgramStatus"
      },
      "PromptConfig": {
        "properties": {
          "scenario_md": {
            "type": "string",
            "maxLength": 50000,
            "title": "Scenario Md",
            "default": ""
          },
          "deliverable_md": {
            "type": "string",
            "maxLength": 20000,
            "title": "Deliverable Md",
            "default": ""
          },
          "rubric": {
            "items": {
              "$ref": "#/components/schemas/RubricItem-Output"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Rubric"
          },
          "sample_answer_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50000
              },
              {
                "type": "null"
              }
            ],
            "title": "Sample Answer Md"
          },
          "min_words": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 5000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Words"
          },
          "max_words": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Words"
          }
        },
        "type": "object",
        "title": "PromptConfig"
      },
      "ProviderInfo": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "configured": {
            "type": "boolean",
            "title": "Configured"
          },
          "default_model": {
            "type": "string",
            "title": "Default Model"
          },
          "default_grading_model": {
            "type": "string",
            "title": "Default Grading Model",
            "description": "Grading model used without a portal override"
          }
        },
        "type": "object",
        "required": [
          "name",
          "configured",
          "default_model",
          "default_grading_model"
        ],
        "title": "ProviderInfo"
      },
      "PublicContestsOut": {
        "properties": {
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating"
          },
          "max_rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Rating"
          },
          "contests_count": {
            "type": "integer",
            "title": "Contests Count"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/RatingPointOut"
            },
            "type": "array",
            "title": "History"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/ContestResultOut"
            },
            "type": "array",
            "title": "Results"
          }
        },
        "type": "object",
        "required": [
          "rating",
          "max_rating",
          "contests_count",
          "history",
          "results"
        ],
        "title": "PublicContestsOut"
      },
      "PublicPracticeOut": {
        "properties": {
          "solved": {
            "type": "integer",
            "title": "Solved"
          },
          "by_difficulty": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Difficulty"
          },
          "by_type": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Type"
          },
          "current_streak": {
            "type": "integer",
            "title": "Current Streak"
          },
          "longest_streak": {
            "type": "integer",
            "title": "Longest Streak"
          },
          "activity": {
            "items": {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "type": "object"
            },
            "type": "array",
            "title": "Activity"
          }
        },
        "type": "object",
        "required": [
          "solved",
          "by_difficulty",
          "by_type",
          "current_streak",
          "longest_streak",
          "activity"
        ],
        "title": "PublicPracticeOut"
      },
      "PublicProfileLinkOut": {
        "properties": {
          "handle": {
            "type": "string",
            "title": "Handle"
          },
          "updated_on": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated On",
            "description": "The day (UTC) the profile's public content last changed: the latest accepted practice submit, public contest result or public-profile settings saved in this portal. A day, never a time, and never a sign-in or another account change."
          }
        },
        "type": "object",
        "required": [
          "handle"
        ],
        "title": "PublicProfileLinkOut",
        "description": "A public profile of this portal as the sitemap lists it (`GET /users`)."
      },
      "PublicProfileOut": {
        "properties": {
          "handle": {
            "type": "string",
            "title": "Handle"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "headline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Headline"
          },
          "member_since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Member Since"
          },
          "skills": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PublicSkillOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Skills"
          },
          "practice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicPracticeOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "contests": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicContestsOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "badges": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/BadgeOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Badges"
          },
          "indexable": {
            "type": "boolean",
            "title": "Indexable",
            "description": "Listed in the sitemap (`GET /users`): the person already appears on a public list of this portal — the practice leaderboard or a public contest's standings. The web marks every other profile `noindex`.",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "handle"
        ],
        "title": "PublicProfileOut"
      },
      "PublicProfileSettingsIn": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "headline": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ],
            "title": "Headline"
          },
          "show_name": {
            "type": "boolean",
            "title": "Show Name",
            "default": true
          },
          "show_avatar": {
            "type": "boolean",
            "title": "Show Avatar",
            "default": false
          },
          "show_skills": {
            "type": "boolean",
            "title": "Show Skills",
            "default": true
          },
          "show_practice": {
            "type": "boolean",
            "title": "Show Practice",
            "default": true
          },
          "show_contests": {
            "type": "boolean",
            "title": "Show Contests",
            "default": true
          },
          "show_badges": {
            "type": "boolean",
            "title": "Show Badges",
            "default": true
          },
          "handle": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          }
        },
        "type": "object",
        "title": "PublicProfileSettingsIn"
      },
      "PublicProfileSettingsOut": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "headline": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ],
            "title": "Headline"
          },
          "show_name": {
            "type": "boolean",
            "title": "Show Name",
            "default": true
          },
          "show_avatar": {
            "type": "boolean",
            "title": "Show Avatar",
            "default": false
          },
          "show_skills": {
            "type": "boolean",
            "title": "Show Skills",
            "default": true
          },
          "show_practice": {
            "type": "boolean",
            "title": "Show Practice",
            "default": true
          },
          "show_contests": {
            "type": "boolean",
            "title": "Show Contests",
            "default": true
          },
          "show_badges": {
            "type": "boolean",
            "title": "Show Badges",
            "default": true
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "visible": {
            "type": "boolean",
            "title": "Visible"
          },
          "hidden_globally": {
            "type": "boolean",
            "title": "Hidden Globally",
            "default": false
          },
          "url_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url Path"
          }
        },
        "type": "object",
        "required": [
          "handle",
          "visible",
          "url_path"
        ],
        "title": "PublicProfileSettingsOut"
      },
      "PublicSkillOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "category": {
            "$ref": "#/components/schemas/SkillCategory"
          },
          "level": {
            "type": "integer",
            "title": "Level"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "category",
          "level"
        ],
        "title": "PublicSkillOut"
      },
      "PublicUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "PublicUserOut",
        "description": "How a person appears on public pages: the handle and avatar only while the profile is\npublic (the default); a hidden one shows \"First L.\" under a per-portal pseudonymous id."
      },
      "PythonConfig": {
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/PythonMode",
            "default": "stdin_stdout"
          },
          "function_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Function Name"
          },
          "function_signature": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Function Signature"
          },
          "starter_code": {
            "type": "string",
            "maxLength": 100000,
            "title": "Starter Code",
            "default": ""
          },
          "reference_solution": {
            "type": "string",
            "maxLength": 100000,
            "title": "Reference Solution",
            "default": ""
          },
          "checker": {
            "$ref": "#/components/schemas/Checker",
            "default": "tokens"
          },
          "float_tolerance": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Float Tolerance"
          },
          "custom_checker_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Checker Code"
          },
          "input_generator_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ],
            "title": "Input Generator Code"
          }
        },
        "type": "object",
        "title": "PythonConfig"
      },
      "PythonMode": {
        "type": "string",
        "enum": [
          "stdin_stdout",
          "function"
        ],
        "title": "PythonMode"
      },
      "QuestionBriefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "difficulty": {
            "type": "string",
            "title": "Difficulty"
          },
          "usage": {
            "type": "string",
            "title": "Usage"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "slug",
          "type",
          "difficulty",
          "usage",
          "status"
        ],
        "title": "QuestionBriefOut"
      },
      "QuestionIn": {
        "properties": {
          "language": {
            "type": "string",
            "enum": [
              "uz",
              "en"
            ],
            "title": "Language",
            "description": "Base language of `title` and `statement_md` (uz or en); `translations` hold the other language and never this one",
            "default": "uz"
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "statement_md": {
            "type": "string",
            "maxLength": 100000,
            "title": "Statement Md",
            "default": ""
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty",
            "default": "easy"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Tags"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "usage": {
            "$ref": "#/components/schemas/QuestionUsage",
            "default": "assessment"
          },
          "default_points": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Default Points",
            "default": "10"
          },
          "time_limit_ms": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 100.0,
            "title": "Time Limit Ms",
            "default": 2000
          },
          "memory_limit_mb": {
            "type": "integer",
            "maximum": 512.0,
            "minimum": 32.0,
            "title": "Memory Limit Mb",
            "default": 256
          },
          "translations": {
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TranslationIn"
                },
                {
                  "type": "null"
                }
              ]
            },
            "propertyNames": {
              "enum": [
                "uz",
                "en"
              ]
            },
            "type": "object",
            "title": "Translations",
            "description": "The version in the other language: {\"en\": {\"title\": \"…\", \"statement_md\": \"…\"}}. On PATCH it is merged per language: an entry replaces that translation (new text is stamped `source` manual unless sent as 'ai'), `null` removes it and a language that is left out keeps what is stored"
          },
          "python": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PythonConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "sql": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SqlConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "mcq": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/McqConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenTextConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "pitch": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PitchConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestCaseIn"
                },
                "type": "array",
                "maxItems": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          }
        },
        "type": "object",
        "required": [
          "title",
          "type"
        ],
        "title": "QuestionIn"
      },
      "QuestionListItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "usage": {
            "$ref": "#/components/schemas/QuestionUsage"
          },
          "status": {
            "$ref": "#/components/schemas/QuestionStatus"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "default_points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Default Points"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "stats": {
            "$ref": "#/components/schemas/QuestionStats"
          },
          "language": {
            "type": "string",
            "enum": [
              "uz",
              "en"
            ],
            "title": "Language"
          },
          "languages": {
            "items": {
              "type": "string",
              "enum": [
                "uz",
                "en"
              ]
            },
            "type": "array",
            "title": "Languages",
            "description": "Base language first, then the languages with a translated statement"
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "title",
          "slug",
          "difficulty",
          "tags",
          "topic",
          "usage",
          "status",
          "version",
          "default_points",
          "updated_at",
          "archived_at",
          "stats",
          "language",
          "languages"
        ],
        "title": "QuestionListItem"
      },
      "QuestionOptionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "default_points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Default Points"
          },
          "used_in": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Used In",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "slug",
          "type",
          "difficulty",
          "tags",
          "default_points"
        ],
        "title": "QuestionOptionOut"
      },
      "QuestionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "difficulty": {
            "$ref": "#/components/schemas/Difficulty"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "usage": {
            "$ref": "#/components/schemas/QuestionUsage"
          },
          "status": {
            "$ref": "#/components/schemas/QuestionStatus"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "default_points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Default Points"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "stats": {
            "$ref": "#/components/schemas/QuestionStats"
          },
          "language": {
            "type": "string",
            "enum": [
              "uz",
              "en"
            ],
            "title": "Language"
          },
          "languages": {
            "items": {
              "type": "string",
              "enum": [
                "uz",
                "en"
              ]
            },
            "type": "array",
            "title": "Languages",
            "description": "Base language first, then the languages with a translated statement"
          },
          "statement_md": {
            "type": "string",
            "title": "Statement Md"
          },
          "time_limit_ms": {
            "type": "integer",
            "title": "Time Limit Ms"
          },
          "memory_limit_mb": {
            "type": "integer",
            "title": "Memory Limit Mb"
          },
          "translations": {
            "additionalProperties": true,
            "type": "object",
            "title": "Translations",
            "description": "{\"en\": {\"title\", \"statement_md\", \"source\": \"ai\" | \"manual\", \"source_hash\", \"translated_at\"}}"
          },
          "base_hash": {
            "type": "string",
            "title": "Base Hash",
            "description": "Hash of the current title + statement; a translation whose `source_hash` differs was made from an older base text"
          },
          "translation_states": {
            "additionalProperties": {
              "type": "string",
              "enum": [
                "missing",
                "ai",
                "manual",
                "outdated",
                "queued",
                "needed"
              ]
            },
            "propertyNames": {
              "enum": [
                "uz",
                "en"
              ]
            },
            "type": "object",
            "title": "Translation States",
            "description": "Per language other than the base one: missing, ai, manual, outdated (made from an older base text), queued (a background AI translation is on its way) or needed (none, and the background translation will not make one: the statement is longer than 20,000 characters, or its last try failed recently)"
          },
          "settings": {
            "additionalProperties": true,
            "type": "object",
            "title": "Settings"
          },
          "author_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "python": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PythonConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "sql": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SqlConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "sql_hints": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SqlHintsOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "SQL only: the DuckDB hints of the saved reference query"
          },
          "mcq": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/McqConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "mcq_options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/McqOptionOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mcq Options"
          },
          "prompt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenTextConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "pitch": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PitchConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestCaseOut"
            },
            "type": "array",
            "title": "Tests",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "title",
          "slug",
          "difficulty",
          "tags",
          "topic",
          "usage",
          "status",
          "version",
          "default_points",
          "updated_at",
          "archived_at",
          "stats",
          "language",
          "languages",
          "statement_md",
          "time_limit_ms",
          "memory_limit_mb",
          "translations",
          "base_hash",
          "settings",
          "author_id",
          "created_at"
        ],
        "title": "QuestionOut"
      },
      "QuestionPatch": {
        "properties": {
          "language": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "uz",
                  "en"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug"
          },
          "statement_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100000
              },
              {
                "type": "null"
              }
            ],
            "title": "Statement Md"
          },
          "difficulty": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Difficulty"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "usage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuestionUsage"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_points": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Points"
          },
          "time_limit_ms": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "minimum": 100.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Limit Ms"
          },
          "memory_limit_mb": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 512.0,
                "minimum": 32.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Memory Limit Mb"
          },
          "translations": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TranslationIn"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "propertyNames": {
                  "enum": [
                    "uz",
                    "en"
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Translations"
          },
          "python": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PythonConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "sql": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SqlConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "mcq": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/McqConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenTextConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "pitch": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PitchConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestCaseIn"
                },
                "type": "array",
                "maxItems": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests"
          }
        },
        "type": "object",
        "title": "QuestionPatch"
      },
      "QuestionReviewOut": {
        "properties": {
          "session_question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Question Id"
          },
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "section_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Id"
          },
          "section_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Title"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "statement_md": {
            "type": "string",
            "title": "Statement Md",
            "default": ""
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "description": "Final score (override wins)"
          },
          "auto_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Score",
            "description": "Automatic / AI score"
          },
          "state": {
            "type": "string",
            "enum": [
              "graded",
              "pending",
              "overridden"
            ],
            "title": "State"
          },
          "pending_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pending Reason"
          },
          "override": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScoreOverrideOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "overrides": {
            "items": {
              "$ref": "#/components/schemas/ScoreOverrideOut"
            },
            "type": "array",
            "title": "Overrides"
          },
          "mcq": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/McqReviewOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CodeReviewOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextReviewOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "pitch": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PitchAttemptOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pitch"
          }
        },
        "type": "object",
        "required": [
          "session_question_id",
          "question_id",
          "position",
          "type",
          "title",
          "points",
          "state"
        ],
        "title": "QuestionReviewOut"
      },
      "QuestionStats": {
        "properties": {
          "used_in_sessions": {
            "type": "integer",
            "title": "Used In Sessions",
            "default": 0
          },
          "submissions": {
            "type": "integer",
            "title": "Submissions",
            "default": 0
          },
          "solve_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Solve Rate"
          },
          "avg_score_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Score Pct"
          },
          "avg_time_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Time Ms"
          }
        },
        "type": "object",
        "title": "QuestionStats"
      },
      "QuestionStatus": {
        "type": "string",
        "enum": [
          "draft",
          "ready",
          "archived"
        ],
        "title": "QuestionStatus"
      },
      "QuestionSwitchOut": {
        "properties": {
          "t_ms": {
            "type": "integer",
            "title": "T Ms"
          },
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id",
            "description": "Session question opened at this time"
          }
        },
        "type": "object",
        "required": [
          "t_ms",
          "question_id"
        ],
        "title": "QuestionSwitchOut"
      },
      "QuestionTagOut": {
        "properties": {
          "tag": {
            "type": "string",
            "title": "Tag"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "tag",
          "count"
        ],
        "title": "QuestionTagOut",
        "description": "A tag of the portal's question bank and how many questions carry it (the bank's tag\nfilter lists these)."
      },
      "QuestionType": {
        "type": "string",
        "enum": [
          "python",
          "sql",
          "mcq",
          "prompt",
          "open_text",
          "pitch"
        ],
        "title": "QuestionType"
      },
      "QuestionUsage": {
        "type": "string",
        "enum": [
          "assessment",
          "practice",
          "contest",
          "homework"
        ],
        "title": "QuestionUsage"
      },
      "QueuedOut": {
        "properties": {
          "queued": {
            "type": "boolean",
            "title": "Queued",
            "default": true
          }
        },
        "type": "object",
        "title": "QueuedOut"
      },
      "RatingIn": {
        "properties": {
          "week_start": {
            "type": "string",
            "format": "date",
            "title": "Week Start"
          },
          "rating": {
            "type": "integer",
            "maximum": 5.0,
            "minimum": 1.0,
            "title": "Rating"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          },
          "cohort_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cohort Id"
          }
        },
        "type": "object",
        "required": [
          "week_start",
          "rating"
        ],
        "title": "RatingIn"
      },
      "RatingOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "week_start": {
            "type": "string",
            "format": "date",
            "title": "Week Start"
          },
          "rating": {
            "type": "integer",
            "title": "Rating"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          },
          "mentor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "week_start",
          "rating",
          "comment",
          "mentor",
          "updated_at"
        ],
        "title": "RatingOut"
      },
      "RatingPointOut": {
        "properties": {
          "contest_slug": {
            "type": "string",
            "title": "Contest Slug"
          },
          "contest_title": {
            "type": "string",
            "title": "Contest Title"
          },
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "participants": {
            "type": "integer",
            "title": "Participants"
          },
          "old_rating": {
            "type": "integer",
            "title": "Old Rating"
          },
          "new_rating": {
            "type": "integer",
            "title": "New Rating"
          }
        },
        "type": "object",
        "required": [
          "contest_slug",
          "contest_title",
          "date",
          "rank",
          "participants",
          "old_rating",
          "new_rating"
        ],
        "title": "RatingPointOut"
      },
      "ReasonIn": {
        "properties": {
          "reason": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 3,
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "reason"
        ],
        "title": "ReasonIn"
      },
      "RecipientIn": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id",
            "description": "Your own id of the person, returned with the status"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name",
            "description": "Used in the greeting"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "RecipientIn"
      },
      "RecomputeIn": {
        "properties": {
          "cohort_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cohort Id"
          }
        },
        "type": "object",
        "title": "RecomputeIn"
      },
      "RecomputeOut": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date"
          },
          "cohorts": {
            "type": "integer",
            "title": "Cohorts"
          },
          "members": {
            "type": "integer",
            "title": "Members"
          }
        },
        "type": "object",
        "required": [
          "date",
          "cohorts",
          "members"
        ],
        "title": "RecomputeOut"
      },
      "RecurringSlotsIn": {
        "properties": {
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id",
            "description": "Program whose candidates may book; null = any program"
          },
          "interviewer_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interviewer Id",
            "description": "Admin or mentor of the portal; defaults to the caller"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "mode": {
            "type": "string",
            "const": "recurring",
            "title": "Mode"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "duration_min": {
            "type": "integer",
            "maximum": 480.0,
            "minimum": 5.0,
            "title": "Duration Min"
          },
          "weekly_count": {
            "type": "integer",
            "maximum": 52.0,
            "minimum": 1.0,
            "title": "Weekly Count"
          },
          "timezone": {
            "type": "string",
            "maxLength": 64,
            "title": "Timezone",
            "default": "Asia/Tashkent"
          }
        },
        "type": "object",
        "required": [
          "mode",
          "starts_at",
          "duration_min",
          "weekly_count"
        ],
        "title": "RecurringSlotsIn"
      },
      "RejudgeChangeOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "user_id": {
            "type": "string",
            "format": "uuid",
            "title": "User Id"
          },
          "user_name": {
            "type": "string",
            "title": "User Name",
            "description": "Read when listed, never stored: the name, else \"@handle\" or \"—\" (never the email); \"Deleted user\" after an erasure"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "old_verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "new_verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "old_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Old Score"
          },
          "new_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Score"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "user_id",
          "user_name",
          "label",
          "old_verdict",
          "new_verdict",
          "old_score",
          "new_score"
        ],
        "title": "RejudgeChangeOut"
      },
      "RejudgeIn": {
        "properties": {
          "submission_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submission Id"
          },
          "label": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4,
                "pattern": "^[A-Z][0-9]?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          }
        },
        "type": "object",
        "title": "RejudgeIn",
        "description": "Scope of a rejudge: one submission, one problem (label) or — when both are empty — the\nwhole contest."
      },
      "RejudgeOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "scope": {
            "$ref": "#/components/schemas/RejudgeScope"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "submission_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submission Id"
          },
          "status": {
            "$ref": "#/components/schemas/RejudgeStatus"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "judged": {
            "type": "integer",
            "title": "Judged"
          },
          "changed": {
            "type": "integer",
            "title": "Changed"
          },
          "failed": {
            "type": "integer",
            "title": "Failed",
            "description": "Runner system errors (the previous result was kept)"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "changes": {
            "items": {
              "$ref": "#/components/schemas/RejudgeChangeOut"
            },
            "type": "array",
            "title": "Changes",
            "description": "Submissions whose verdict or score changed"
          },
          "created": {
            "type": "boolean",
            "title": "Created",
            "description": "False when an identical rejudge was already queued or running (a different one is refused while it works: 409 `contests.rejudge_running`)",
            "default": false
          },
          "requested_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested By Name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "scope",
          "label",
          "submission_id",
          "status",
          "total",
          "judged",
          "changed",
          "failed",
          "error",
          "created_at",
          "started_at",
          "finished_at"
        ],
        "title": "RejudgeOut"
      },
      "RejudgeScope": {
        "type": "string",
        "enum": [
          "submission",
          "problem",
          "contest"
        ],
        "title": "RejudgeScope"
      },
      "RejudgeStatus": {
        "type": "string",
        "enum": [
          "queued",
          "running",
          "done",
          "failed"
        ],
        "title": "RejudgeStatus"
      },
      "ReplayEventOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "t_ms": {
            "type": "integer",
            "title": "T Ms"
          },
          "type": {
            "$ref": "#/components/schemas/ProctorEventType"
          },
          "question_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Id"
          },
          "payload": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payload"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "Run / submit of a SQL question: the error the candidate saw (the submission's message; a hidden-only error is its DuckDB class alone)"
          }
        },
        "type": "object",
        "required": [
          "id",
          "t_ms",
          "type",
          "question_id",
          "payload"
        ],
        "title": "ReplayEventOut"
      },
      "ReplayOut": {
        "properties": {
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Assessment Id"
          },
          "assessment_title": {
            "type": "string",
            "title": "Assessment Title"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "is_preview": {
            "type": "boolean",
            "title": "Is Preview"
          },
          "candidate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProctoringPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "deadline_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deadline At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "duration_ms": {
            "type": "integer",
            "title": "Duration Ms"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/ReplayQuestionOut"
            },
            "type": "array",
            "title": "Questions"
          },
          "question_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Id",
            "description": "Question whose snapshots are included"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/ReplayEventOut"
            },
            "type": "array",
            "title": "Events"
          },
          "snapshots": {
            "items": {
              "$ref": "#/components/schemas/ReplaySnapshotOut"
            },
            "type": "array",
            "title": "Snapshots"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "default": false
          },
          "typing": {
            "items": {
              "$ref": "#/components/schemas/TypingPointOut"
            },
            "type": "array",
            "title": "Typing"
          },
          "away": {
            "items": {
              "$ref": "#/components/schemas/AwayIntervalOut"
            },
            "type": "array",
            "title": "Away"
          },
          "last_seq": {
            "type": "integer",
            "title": "Last Seq"
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "assessment_id",
          "assessment_title",
          "status",
          "is_preview",
          "candidate",
          "started_at",
          "deadline_at",
          "submitted_at",
          "duration_ms",
          "questions",
          "events",
          "snapshots",
          "typing",
          "away",
          "last_seq"
        ],
        "title": "ReplayOut"
      },
      "ReplayQuestionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id",
            "description": "Session question id"
          },
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/SessionQuestionStatus"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "snapshots": {
            "type": "integer",
            "title": "Snapshots"
          }
        },
        "type": "object",
        "required": [
          "id",
          "question_id",
          "position",
          "type",
          "title",
          "status",
          "points",
          "score",
          "snapshots"
        ],
        "title": "ReplayQuestionOut"
      },
      "ReplaySnapshotOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "seq": {
            "type": "integer",
            "title": "Seq"
          },
          "t_ms": {
            "type": "integer",
            "title": "T Ms"
          },
          "patch": {
            "type": "string",
            "title": "Patch"
          },
          "full_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Text"
          },
          "char_count": {
            "type": "integer",
            "title": "Char Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "seq",
          "t_ms",
          "patch",
          "full_text",
          "char_count"
        ],
        "title": "ReplaySnapshotOut"
      },
      "ResendCodeIn": {
        "properties": {
          "challenge_id": {
            "type": "string",
            "format": "uuid",
            "title": "Challenge Id"
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Next",
            "description": "The page the sign-in started from (a same-site path, else ignored); the links of the account emails this request sends (sign-in, reset) carry it"
          }
        },
        "type": "object",
        "required": [
          "challenge_id"
        ],
        "title": "ResendCodeIn"
      },
      "ResetPasswordIn": {
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 200,
            "minLength": 20,
            "title": "Token"
          },
          "password": {
            "type": "string",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Password"
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Next",
            "description": "The page the sign-in started from (a same-site path, else ignored); the links of the account emails this request sends (sign-in, reset) carry it"
          }
        },
        "type": "object",
        "required": [
          "token",
          "password"
        ],
        "title": "ResetPasswordIn"
      },
      "ResultsPublishedOut": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "ratings_applied": {
            "type": "boolean",
            "title": "Ratings Applied"
          },
          "notified": {
            "type": "integer",
            "title": "Notified"
          },
          "changes": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Changes",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "status",
          "ratings_applied",
          "notified"
        ],
        "title": "ResultsPublishedOut"
      },
      "RiskOut": {
        "properties": {
          "at_risk": {
            "type": "boolean",
            "title": "At Risk"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons"
          }
        },
        "type": "object",
        "required": [
          "at_risk",
          "reasons"
        ],
        "title": "RiskOut"
      },
      "Role": {
        "type": "string",
        "enum": [
          "admin",
          "mentor",
          "intern",
          "guest"
        ],
        "title": "Role"
      },
      "RosterEntryOut": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/AcademyPersonOut"
          },
          "member_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CohortMemberStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttendanceStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "marked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Marked At"
          }
        },
        "type": "object",
        "required": [
          "user",
          "member_status",
          "status",
          "note",
          "marked_at"
        ],
        "title": "RosterEntryOut"
      },
      "RubricItem-Output": {
        "properties": {
          "criterion": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Criterion"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "weight": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Weight"
          },
          "levels": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Levels"
          }
        },
        "type": "object",
        "required": [
          "criterion",
          "weight"
        ],
        "title": "RubricItem"
      },
      "RubricItemOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "criterion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Criterion"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "max": {
            "type": "number",
            "title": "Max"
          }
        },
        "type": "object",
        "required": [
          "key",
          "max"
        ],
        "title": "RubricItemOut"
      },
      "RulesOut": {
        "properties": {
          "paste_allowed": {
            "type": "boolean",
            "title": "Paste Allowed"
          },
          "fullscreen_required": {
            "type": "boolean",
            "title": "Fullscreen Required"
          },
          "webcam_mode": {
            "type": "string",
            "enum": [
              "off",
              "optional",
              "required"
            ],
            "title": "Webcam Mode"
          },
          "screen_mode": {
            "type": "string",
            "enum": [
              "off",
              "optional",
              "required"
            ],
            "title": "Screen Mode"
          },
          "snapshot_interval_sec": {
            "type": "integer",
            "title": "Snapshot Interval Sec"
          },
          "allow_mobile": {
            "type": "boolean",
            "title": "Allow Mobile"
          },
          "max_runs_per_question": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Runs Per Question"
          },
          "show_score_after_submit": {
            "type": "boolean",
            "title": "Show Score After Submit"
          },
          "code_score_policy": {
            "type": "string",
            "title": "Code Score Policy",
            "default": "last"
          }
        },
        "type": "object",
        "required": [
          "paste_allowed",
          "fullscreen_required",
          "webcam_mode",
          "screen_mode",
          "snapshot_interval_sec",
          "allow_mobile",
          "max_runs_per_question",
          "show_score_after_submit"
        ],
        "title": "RulesOut",
        "description": "What the candidate must know before starting (recording, paste policy, fullscreen...)."
      },
      "RunOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "compile_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compile Error"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "SQL: the query's DuckDB error as the solver may see it — class and message, at most three lines and 500 characters; from a hidden test only its DuckDB class (e.g. \"Conversion Error\"), never the message body. Null for Python and when no test failed with an error."
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestResultOut"
            },
            "type": "array",
            "title": "Tests"
          },
          "runs_count": {
            "type": "integer",
            "title": "Runs Count"
          },
          "runs_left": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Runs Left"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "verdict",
          "tests_passed",
          "tests_total",
          "tests",
          "runs_count",
          "runs_left"
        ],
        "title": "RunOut"
      },
      "RunResultOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "compile_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compile Error"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "SQL: the query's DuckDB error as the solver may see it — class and message, at most three lines and 500 characters; from a hidden test only its DuckDB class (e.g. \"Conversion Error\"), never the message body. Null for Python and when no test failed with an error."
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestResultOut"
            },
            "type": "array",
            "title": "Tests"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "verdict",
          "tests_passed",
          "tests_total",
          "tests"
        ],
        "title": "RunResultOut",
        "description": "Visible tests only; never scored."
      },
      "SavedViewIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Config",
            "description": "Frontend-defined filters, sort and visible columns"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "SavedViewIn"
      },
      "SavedViewOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Config"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "config",
          "created_at",
          "updated_at"
        ],
        "title": "SavedViewOut"
      },
      "SavedViewPatch": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          }
        },
        "type": "object",
        "title": "SavedViewPatch"
      },
      "SchemaTableOut": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "columns": {
            "items": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": "array",
            "title": "Columns"
          },
          "sample_rows": {
            "items": {
              "items": {},
              "type": "array"
            },
            "type": "array",
            "title": "Sample Rows"
          }
        },
        "type": "object",
        "required": [
          "name",
          "columns",
          "sample_rows"
        ],
        "title": "SchemaTableOut"
      },
      "ScoreOverrideOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "old_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Old Score"
          },
          "new_score": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "New Score"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "actor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "old_score",
          "new_score",
          "reason",
          "created_at"
        ],
        "title": "ScoreOverrideOut"
      },
      "ScorecardIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "criteria": {
            "items": {
              "$ref": "#/components/schemas/CriterionIn"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Criteria"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "title",
          "criteria"
        ],
        "title": "ScorecardIn"
      },
      "ScorecardOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "criteria": {
            "items": {
              "$ref": "#/components/schemas/CriterionOut"
            },
            "type": "array",
            "title": "Criteria"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          },
          "interviews_count": {
            "type": "integer",
            "title": "Interviews Count",
            "default": 0
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "criteria",
          "is_default",
          "created_at",
          "updated_at"
        ],
        "title": "ScorecardOut"
      },
      "ScorecardPatchIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "criteria": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CriterionIn"
                },
                "type": "array",
                "maxItems": 20,
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Criteria"
          },
          "is_default": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Default"
          }
        },
        "type": "object",
        "title": "ScorecardPatchIn"
      },
      "SectionIn": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id",
            "description": "Existing section to keep/update"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Title",
            "description": "Defaults to the type name"
          },
          "pick_count": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Pick Count",
            "default": 1
          },
          "difficulty_mix": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "propertyNames": {
                  "$ref": "#/components/schemas/Difficulty"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Difficulty Mix",
            "description": "e.g. {\"easy\": 1, \"medium\": 2, \"hard\": 1}; must sum to pick_count"
          },
          "tag_filter": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Tag Filter"
          },
          "weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weight",
            "description": "Defaults per type"
          },
          "time_limit_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 600.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Limit Minutes"
          },
          "is_optional": {
            "type": "boolean",
            "title": "Is Optional",
            "default": false
          },
          "pool_question_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 500,
            "title": "Pool Question Ids"
          }
        },
        "type": "object",
        "required": [
          "type"
        ],
        "title": "SectionIn",
        "description": "One section of `PUT /assessments/{id}/sections` (the list order is the order)."
      },
      "SectionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "pick_count": {
            "type": "integer",
            "title": "Pick Count"
          },
          "difficulty_mix": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Difficulty Mix"
          },
          "tag_filter": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tag Filter"
          },
          "weight": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Weight"
          },
          "time_limit_minutes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Limit Minutes"
          },
          "is_optional": {
            "type": "boolean",
            "title": "Is Optional"
          },
          "pool_question_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Pool Question Ids"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "type",
          "title",
          "pick_count",
          "difficulty_mix",
          "tag_filter",
          "weight",
          "time_limit_minutes",
          "is_optional",
          "pool_question_ids"
        ],
        "title": "SectionOut"
      },
      "SectionPoolStats": {
        "properties": {
          "section_id": {
            "type": "string",
            "format": "uuid",
            "title": "Section Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "pick_count": {
            "type": "integer",
            "title": "Pick Count"
          },
          "is_optional": {
            "type": "boolean",
            "title": "Is Optional"
          },
          "difficulty_mix": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Difficulty Mix"
          },
          "pool": {
            "type": "string",
            "enum": [
              "explicit",
              "filter"
            ],
            "title": "Pool"
          },
          "available": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Available"
          },
          "available_total": {
            "type": "integer",
            "title": "Available Total"
          },
          "languages": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Languages",
            "description": "Language → how many of the section's questions can be read in it (base language or a translated statement)"
          },
          "warnings": {
            "items": {
              "$ref": "#/components/schemas/PoolWarning"
            },
            "type": "array",
            "title": "Warnings"
          }
        },
        "type": "object",
        "required": [
          "section_id",
          "position",
          "type",
          "title",
          "pick_count",
          "is_optional",
          "difficulty_mix",
          "pool",
          "available",
          "available_total",
          "warnings"
        ],
        "title": "SectionPoolStats"
      },
      "SectionScoreOut": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "section_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Id"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "position": {
            "type": "integer",
            "title": "Position",
            "default": 0
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max"
          },
          "percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percent"
          },
          "auto_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Percent"
          },
          "weight": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weight"
          },
          "counted": {
            "type": "boolean",
            "title": "Counted",
            "default": false
          },
          "pending": {
            "type": "integer",
            "title": "Pending",
            "default": 0
          },
          "questions": {
            "type": "integer",
            "title": "Questions",
            "default": 0
          },
          "optional": {
            "type": "boolean",
            "title": "Optional",
            "default": false
          },
          "skipped": {
            "type": "boolean",
            "title": "Skipped",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "key",
          "title"
        ],
        "title": "SectionScoreOut"
      },
      "SessionAssessmentOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "instructions_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instructions Md"
          },
          "duration_minutes": {
            "type": "integer",
            "title": "Duration Minutes"
          },
          "rules": {
            "$ref": "#/components/schemas/RulesOut"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "instructions_md",
          "duration_minutes",
          "rules"
        ],
        "title": "SessionAssessmentOut"
      },
      "SessionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "is_preview": {
            "type": "boolean",
            "title": "Is Preview"
          },
          "assessment": {
            "$ref": "#/components/schemas/SessionAssessmentOut"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "deadline_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deadline At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          },
          "remaining_ms": {
            "type": "integer",
            "title": "Remaining Ms"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SessionSectionOut"
            },
            "type": "array",
            "title": "Sections"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/SessionQuestionOut"
            },
            "type": "array",
            "title": "Questions"
          },
          "telemetry_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Telemetry Token",
            "description": "Per-session token for POST /sessions/{id}/telemetry (owner only)"
          },
          "auto_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Score",
            "description": "Only after submit and when show_score_after_submit is on"
          },
          "timed_sections": {
            "type": "boolean",
            "title": "Timed Sections",
            "description": "Sections are taken in order with their own clocks (see `sections`)",
            "default": false
          },
          "current_section_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Section Id",
            "description": "Timed sessions: the open section (the only one accepting answers)"
          },
          "set_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Set Code",
            "description": "Owner only: the assessment link (`/s/<code>`) this attempt belongs to; its result page is `/s/<code>/result`"
          },
          "set_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Set Title",
            "description": "Owner only, with `set_code`: the assessment link's title, which the participant knows the attempt by (the done page names it instead of the assessment)"
          },
          "set_show_result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SetResultPolicy"
              },
              {
                "type": "null"
              }
            ],
            "description": "Owner only, with `set_code`: the link's result policy (`never`, `immediate`, `after_review`), which replaces `show_score_after_submit` in the rules"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "is_preview",
          "assessment",
          "started_at",
          "deadline_at",
          "submitted_at",
          "server_now",
          "remaining_ms",
          "sections",
          "questions"
        ],
        "title": "SessionOut"
      },
      "SessionQuestionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id",
            "description": "Session question id (use it in answer/run/submit URLs)"
          },
          "section_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "status": {
            "$ref": "#/components/schemas/SessionQuestionStatus"
          },
          "runs_count": {
            "type": "integer",
            "title": "Runs Count"
          },
          "runs_left": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Runs Left"
          },
          "question": {
            "$ref": "#/components/schemas/CandidateQuestionOut"
          },
          "answer": {
            "$ref": "#/components/schemas/AnswerStateOut"
          },
          "submissions": {
            "items": {
              "$ref": "#/components/schemas/SubmissionSummaryOut"
            },
            "type": "array",
            "title": "Submissions",
            "default": []
          },
          "pitches": {
            "items": {
              "$ref": "#/components/schemas/PitchSummaryOut"
            },
            "type": "array",
            "title": "Pitches",
            "default": []
          },
          "pitch_attempts_left": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pitch Attempts Left"
          }
        },
        "type": "object",
        "required": [
          "id",
          "section_id",
          "position",
          "points",
          "status",
          "runs_count",
          "runs_left",
          "question",
          "answer"
        ],
        "title": "SessionQuestionOut"
      },
      "SessionQuestionStatus": {
        "type": "string",
        "enum": [
          "not_started",
          "answered",
          "submitted"
        ],
        "title": "SessionQuestionStatus"
      },
      "SessionSectionOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "weight": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Weight"
          },
          "time_limit_minutes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Limit Minutes"
          },
          "is_optional": {
            "type": "boolean",
            "title": "Is Optional"
          },
          "question_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Question Ids",
            "description": "Session question ids in order"
          },
          "question_count": {
            "type": "integer",
            "title": "Question Count",
            "default": 0
          },
          "state": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "locked",
                  "open",
                  "closed"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "State",
            "description": "locked (not started; its questions are not sent yet) / open (the only section that accepts answers) / closed"
          },
          "opened_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opened At"
          },
          "deadline_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deadline At",
            "description": "Open timed section: when it closes"
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closed At"
          },
          "closed_by": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "time",
                  "candidate",
                  "session"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Closed By"
          },
          "remaining_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remaining Ms",
            "description": "Open timed section: time left"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "type",
          "title",
          "weight",
          "time_limit_minutes",
          "is_optional",
          "question_ids"
        ],
        "title": "SessionSectionOut"
      },
      "SessionStatus": {
        "type": "string",
        "enum": [
          "ready",
          "in_progress",
          "submitted",
          "expired",
          "voided"
        ],
        "title": "SessionStatus"
      },
      "SessionSummaryOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "show_score": {
            "type": "boolean",
            "title": "Show Score"
          },
          "auto_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Score"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "submitted_at",
          "show_score",
          "auto_score"
        ],
        "title": "SessionSummaryOut"
      },
      "SessionTimeOut": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          },
          "deadline_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deadline At"
          },
          "remaining_ms": {
            "type": "integer",
            "title": "Remaining Ms"
          },
          "section_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Id",
            "description": "Timed sessions: the open section"
          },
          "section_deadline_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Deadline At"
          },
          "section_remaining_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Section Remaining Ms",
            "description": "Time left in the open section when it is timed"
          }
        },
        "type": "object",
        "required": [
          "status",
          "server_now",
          "deadline_at",
          "remaining_ms"
        ],
        "title": "SessionTimeOut"
      },
      "SessionsRevokedOut": {
        "properties": {
          "revoked": {
            "type": "integer",
            "title": "Revoked"
          }
        },
        "type": "object",
        "required": [
          "revoked"
        ],
        "title": "SessionsRevokedOut"
      },
      "SetFeedbackSectionOut": {
        "properties": {
          "section_title": {
            "type": "string",
            "title": "Section Title"
          },
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Items",
            "description": "The candidate-facing feedback of each AI-graded answer of the section (prompt, open text, pitch) in question order, at most 600 characters each"
          }
        },
        "type": "object",
        "required": [
          "section_title",
          "items"
        ],
        "title": "SetFeedbackSectionOut"
      },
      "SetIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Assessment Id",
            "description": "An active assessment of this portal"
          },
          "form_fields": {
            "items": {
              "$ref": "#/components/schemas/FormFieldIn"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Form Fields",
            "description": "Same items as a program's application form fields (order = list order)"
          },
          "show_result": {
            "$ref": "#/components/schemas/SetResultPolicy",
            "default": "never"
          },
          "show_feedback": {
            "type": "boolean",
            "title": "Show Feedback",
            "description": "Participants whose result was released also see the AI feedback written for them (grouped by section). Only with `show_result` `after_review`, so an admin reads it first: 422 `sets.feedback_needs_review` otherwise",
            "default": false
          },
          "opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opens At"
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          }
        },
        "type": "object",
        "required": [
          "title",
          "assessment_id"
        ],
        "title": "SetIn"
      },
      "SetLinkAssessmentOut": {
        "properties": {
          "duration_minutes": {
            "type": "integer",
            "title": "Duration Minutes"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SetLinkSectionOut"
            },
            "type": "array",
            "title": "Sections"
          }
        },
        "type": "object",
        "required": [
          "duration_minutes",
          "sections"
        ],
        "title": "SetLinkAssessmentOut"
      },
      "SetLinkOut": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "form_fields": {
            "items": {
              "$ref": "#/components/schemas/FormFieldOut"
            },
            "type": "array",
            "title": "Form Fields"
          },
          "assessment": {
            "$ref": "#/components/schemas/SetLinkAssessmentOut"
          },
          "opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opens At"
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "open",
              "closed",
              "archived"
            ],
            "title": "Status"
          },
          "show_result": {
            "$ref": "#/components/schemas/SetResultPolicy"
          },
          "me": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SetMeOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "null for visitors who are not signed in"
          }
        },
        "type": "object",
        "required": [
          "title",
          "description_md",
          "form_fields",
          "assessment",
          "opens_at",
          "closes_at",
          "status",
          "show_result",
          "me"
        ],
        "title": "SetLinkOut"
      },
      "SetLinkSectionOut": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "title",
          "type",
          "count"
        ],
        "title": "SetLinkSectionOut"
      },
      "SetMeOut": {
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "none",
              "started",
              "submitted",
              "scored"
            ],
            "title": "State"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          }
        },
        "type": "object",
        "required": [
          "state",
          "session_id"
        ],
        "title": "SetMeOut"
      },
      "SetMyResultOut": {
        "properties": {
          "visible": {
            "type": "boolean",
            "title": "Visible"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "hidden",
                  "pending_review",
                  "scoring",
                  "preparing",
                  "not_submitted"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "sections": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SetSectionScoreOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sections"
          },
          "feedback": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SetFeedbackSectionOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Feedback",
            "description": "Only on `after_review` sets that show feedback (`show_feedback`), once an admin released the result; null otherwise and when no answer has feedback"
          }
        },
        "type": "object",
        "required": [
          "visible"
        ],
        "title": "SetMyResultOut"
      },
      "SetOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "url": {
            "type": "string",
            "title": "Url",
            "description": "Absolute link to share: https://<portal host>/s/<code>"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "assessment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assessment Id"
          },
          "form_fields": {
            "items": {
              "$ref": "#/components/schemas/FormFieldOut"
            },
            "type": "array",
            "title": "Form Fields"
          },
          "show_result": {
            "$ref": "#/components/schemas/SetResultPolicy"
          },
          "show_feedback": {
            "type": "boolean",
            "title": "Show Feedback"
          },
          "opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opens At"
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "open",
              "closed",
              "archived"
            ],
            "title": "Status",
            "description": "Computed: archived, draft (opens later), closed, open"
          },
          "participants_count": {
            "type": "integer",
            "title": "Participants Count"
          },
          "completed_count": {
            "type": "integer",
            "title": "Completed Count",
            "description": "Participants whose attempt was submitted"
          },
          "program_id": {
            "type": "string",
            "format": "uuid",
            "title": "Program Id",
            "description": "The set's hidden program: filter `/applications?program_id=` with it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "code",
          "url",
          "title",
          "description_md",
          "assessment_id",
          "form_fields",
          "show_result",
          "show_feedback",
          "opens_at",
          "closes_at",
          "status",
          "participants_count",
          "completed_count",
          "program_id",
          "created_at",
          "updated_at"
        ],
        "title": "SetOut"
      },
      "SetPatchIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "description_md": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Md"
          },
          "assessment_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assessment Id"
          },
          "form_fields": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FormFieldIn"
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Form Fields"
          },
          "show_result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SetResultPolicy"
              },
              {
                "type": "null"
              }
            ],
            "description": "Leaving `after_review` while `show_feedback` is on: 422 `sets.feedback_needs_review` (turn the feedback off in the same request)"
          },
          "show_feedback": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Show Feedback",
            "description": "Only with `show_result` `after_review` (the stored or the patched value): 422 `sets.feedback_needs_review` otherwise"
          },
          "opens_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opens At"
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          }
        },
        "type": "object",
        "title": "SetPatchIn",
        "description": "Every field optional; `opens_at` / `closes_at` may be set to null to remove the date."
      },
      "SetRef": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title"
        ],
        "title": "SetRef",
        "description": "The assessment link of a participant's application (its title is the hidden program's)."
      },
      "SetResultOut": {
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "user": {
            "$ref": "#/components/schemas/SetUserOut"
          },
          "state": {
            "type": "string",
            "enum": [
              "started",
              "submitted",
              "scored",
              "reviewed"
            ],
            "title": "State"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "description": "Weighted total in percent (provisional until scored)"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SetSectionScoreOut"
            },
            "type": "array",
            "title": "Sections"
          },
          "ai_feedback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Feedback",
            "description": "Staff only: the grader's summaries of the AI-graded answers"
          },
          "candidate_feedback": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SetFeedbackSectionOut"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Candidate Feedback",
            "description": "What the participant sees once their result is released when the set shows feedback (listed here whatever the switch says, so it can be read before releasing); null when there is none"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "title": "Started At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "result_released": {
            "type": "boolean",
            "title": "Result Released"
          },
          "feedback_after_release": {
            "type": "boolean",
            "title": "Feedback After Release",
            "description": "A released result whose candidate feedback a retry or a regrade wrote after the release: the participant sees the feedback as it was at the release until the result is released again (sets that show feedback only)",
            "default": false
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id",
            "description": "Latest assessment session (answers: `/sessions/{id}`)"
          },
          "integrity_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integrity Score",
            "description": "Shown next to the score, never subtracted from it"
          },
          "ai_retry": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "Ai Retry",
            "description": "Session questions whose AI grading failed or stalled (submitted attempts that are not scored yet): staff send them again with `POST /grading/{id}/retry-ai`"
          }
        },
        "type": "object",
        "required": [
          "application_id",
          "user",
          "state",
          "score",
          "max_score",
          "sections",
          "ai_feedback",
          "started_at",
          "submitted_at",
          "result_released"
        ],
        "title": "SetResultOut"
      },
      "SetResultPolicy": {
        "type": "string",
        "enum": [
          "never",
          "immediate",
          "after_review"
        ],
        "title": "SetResultPolicy",
        "description": "Whether participants see their own result: never, as soon as automatic and AI scoring\nfinish, or once an admin releases it."
      },
      "SetSectionScoreOut": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          }
        },
        "type": "object",
        "required": [
          "title",
          "score",
          "max_score"
        ],
        "title": "SetSectionScoreOut"
      },
      "SetStartIn": {
        "properties": {
          "answers": {
            "additionalProperties": true,
            "type": "object",
            "title": "Answers",
            "description": "Form answers by field key"
          },
          "personal_data_consent": {
            "type": "boolean",
            "title": "Personal Data Consent",
            "description": "Consent to the processing of personal data (the answers and the result); required: 422 `sets.consent_required` without it. Recorded with its version",
            "default": false
          },
          "consents": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StartConsentsIn"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional: with the assessment consents (as on the invite landing) the timer starts at once and `session_url` is the workspace; without them the session is prepared and `session_url` is the rules-and-consent landing that starts it"
          },
          "device_check": {
            "$ref": "#/components/schemas/DeviceCheckIn"
          },
          "invite_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Invite Token",
            "description": "Optional: the token of a personal e-mail invite (`/s/<code>?invite=<token>`) — binds the attempt to that invite. An unknown token is ignored"
          }
        },
        "type": "object",
        "title": "SetStartIn"
      },
      "SetStartOut": {
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id",
            "description": "The session once its timer runs; null while it is only prepared"
          },
          "session_url": {
            "type": "string",
            "title": "Session Url",
            "description": "Where to go next (absolute)"
          },
          "started": {
            "type": "boolean",
            "title": "Started",
            "description": "The timer runs (`session_url` is the workspace)"
          }
        },
        "type": "object",
        "required": [
          "application_id",
          "session_id",
          "session_url",
          "started"
        ],
        "title": "SetStartOut"
      },
      "SetUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "email"
        ],
        "title": "SetUserOut"
      },
      "ShortlistOut": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "name",
          "count"
        ],
        "title": "ShortlistOut"
      },
      "ShortlistRenameIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ShortlistRenameIn"
      },
      "SignInIn": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Password"
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Next",
            "description": "The page the sign-in started from (a same-site path, else ignored); the links of the account emails this request sends (sign-in, reset) carry it"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "SignInIn"
      },
      "SignUpIn": {
        "properties": {
          "full_name": {
            "type": "string",
            "maxLength": 200,
            "minLength": 2,
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "maxLength": 1024,
            "minLength": 1,
            "title": "Password"
          },
          "locale": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Locale"
              },
              {
                "type": "null"
              }
            ]
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Next",
            "description": "The page the sign-in started from (a same-site path, else ignored); the links of the account emails this request sends (sign-in, reset) carry it"
          }
        },
        "type": "object",
        "required": [
          "full_name",
          "email",
          "password"
        ],
        "title": "SignUpIn"
      },
      "SingleSlotsIn": {
        "properties": {
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id",
            "description": "Program whose candidates may book; null = any program"
          },
          "interviewer_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interviewer Id",
            "description": "Admin or mentor of the portal; defaults to the caller"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "mode": {
            "type": "string",
            "const": "single",
            "title": "Mode"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          }
        },
        "type": "object",
        "required": [
          "mode",
          "starts_at",
          "ends_at"
        ],
        "title": "SingleSlotsIn"
      },
      "SkillCategory": {
        "type": "string",
        "enum": [
          "language",
          "database",
          "warehouse",
          "orchestration",
          "processing",
          "streaming",
          "bi",
          "cloud",
          "devops",
          "ml",
          "other"
        ],
        "title": "SkillCategory"
      },
      "SkillCountOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "avg_level": {
            "type": "number",
            "title": "Avg Level"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "count",
          "avg_level"
        ],
        "title": "SkillCountOut"
      },
      "SkillIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 60,
            "minLength": 1,
            "pattern": "^[a-z0-9_]+$",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "category": {
            "$ref": "#/components/schemas/SkillCategory"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "category"
        ],
        "title": "SkillIn"
      },
      "SkippedSlotOut": {
        "properties": {
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "reason": {
            "type": "string",
            "enum": [
              "past",
              "overlap"
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "starts_at",
          "ends_at",
          "reason"
        ],
        "title": "SkippedSlotOut"
      },
      "SlotCancelOut": {
        "properties": {
          "slot": {
            "$ref": "#/components/schemas/SlotOut"
          },
          "rebook_invite_sent": {
            "type": "boolean",
            "title": "Rebook Invite Sent",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "slot"
        ],
        "title": "SlotCancelOut"
      },
      "SlotInterviewOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/InterviewStatus"
          },
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "candidate_name": {
            "type": "string",
            "title": "Candidate Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "application_id",
          "candidate_name"
        ],
        "title": "SlotInterviewOut"
      },
      "SlotOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "program": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewProgramRefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "interviewer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InterviewPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "status": {
            "$ref": "#/components/schemas/SlotStatus"
          },
          "interview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SlotInterviewOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "program",
          "interviewer",
          "starts_at",
          "ends_at",
          "meeting_url",
          "location",
          "status",
          "created_at"
        ],
        "title": "SlotOut"
      },
      "SlotPatchIn": {
        "properties": {
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ends At"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "interviewer_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interviewer Id"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          }
        },
        "type": "object",
        "title": "SlotPatchIn"
      },
      "SlotStatus": {
        "type": "string",
        "enum": [
          "open",
          "booked",
          "cancelled"
        ],
        "title": "SlotStatus"
      },
      "SlotsCreatedOut": {
        "properties": {
          "created": {
            "items": {
              "$ref": "#/components/schemas/SlotOut"
            },
            "type": "array",
            "title": "Created"
          },
          "skipped": {
            "items": {
              "$ref": "#/components/schemas/SkippedSlotOut"
            },
            "type": "array",
            "title": "Skipped"
          }
        },
        "type": "object",
        "required": [
          "created",
          "skipped"
        ],
        "title": "SlotsCreatedOut"
      },
      "SolutionIn": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 100000,
            "minLength": 1,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "SolutionIn"
      },
      "SqlConfig": {
        "properties": {
          "schema_sql": {
            "type": "string",
            "maxLength": 2000000,
            "title": "Schema Sql",
            "default": ""
          },
          "seed_sql": {
            "type": "string",
            "maxLength": 8000000,
            "title": "Seed Sql",
            "default": ""
          },
          "reference_query": {
            "type": "string",
            "maxLength": 100000,
            "title": "Reference Query",
            "default": ""
          },
          "order_matters": {
            "type": "boolean",
            "title": "Order Matters",
            "default": false
          },
          "float_tolerance": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Float Tolerance"
          },
          "starter_query": {
            "type": "string",
            "maxLength": 100000,
            "title": "Starter Query",
            "default": ""
          },
          "datasets": {
            "additionalProperties": true,
            "type": "object",
            "title": "Datasets"
          },
          "hints": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SqlHintsOverride"
              },
              {
                "type": "null"
              }
            ],
            "description": "The mentor's override of the DuckDB hints; null: the hints detected in `reference_query`. On a save, a config without the key keeps the stored override; null or empty lists go back to the detected hints"
          }
        },
        "type": "object",
        "title": "SqlConfig"
      },
      "SqlHintsIn": {
        "properties": {
          "reference_query": {
            "type": "string",
            "maxLength": 100000,
            "title": "Reference Query",
            "default": ""
          },
          "hints": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SqlHintsOverride"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "SqlHintsIn"
      },
      "SqlHintsOut": {
        "properties": {
          "auto": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Auto"
          },
          "effective": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Effective"
          }
        },
        "type": "object",
        "required": [
          "auto",
          "effective"
        ],
        "title": "SqlHintsOut",
        "description": "The DuckDB hints of a reference query: detected (`auto`) and what candidates see with the\nmentor's override applied (`effective`), both in catalog order."
      },
      "SqlHintsOverride": {
        "properties": {
          "hidden": {
            "items": {
              "type": "string",
              "enum": [
                "strftime",
                "date_trunc",
                "date_part",
                "date_diff",
                "interval",
                "concat",
                "limit",
                "offset",
                "string_agg",
                "regexp_matches",
                "regexp_replace",
                "regexp_extract",
                "coalesce",
                "cast",
                "strpos",
                "ilike",
                "qualify",
                "integer_division",
                "filter",
                "strptime",
                "make_date",
                "last_day",
                "dayname",
                "monthname",
                "dayofweek",
                "isodow",
                "week",
                "split_part",
                "lpad",
                "format",
                "median",
                "json",
                "quoted_identifier",
                "nulls_order",
                "generate_series",
                "if"
              ]
            },
            "type": "array",
            "maxItems": 64,
            "title": "Hidden",
            "description": "Detected entries candidates do not see"
          },
          "added": {
            "items": {
              "type": "string",
              "enum": [
                "strftime",
                "date_trunc",
                "date_part",
                "date_diff",
                "interval",
                "concat",
                "limit",
                "offset",
                "string_agg",
                "regexp_matches",
                "regexp_replace",
                "regexp_extract",
                "coalesce",
                "cast",
                "strpos",
                "ilike",
                "qualify",
                "integer_division",
                "filter",
                "strptime",
                "make_date",
                "last_day",
                "dayname",
                "monthname",
                "dayofweek",
                "isodow",
                "week",
                "split_part",
                "lpad",
                "format",
                "median",
                "json",
                "quoted_identifier",
                "nulls_order",
                "generate_series",
                "if"
              ]
            },
            "type": "array",
            "maxItems": 64,
            "title": "Added",
            "description": "Catalog entries candidates see although the reference query does not use them"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "SqlHintsOverride",
        "description": "A mentor's changes to the DuckDB hints detected in the reference query."
      },
      "SqlVariantIn": {
        "properties": {
          "mutations": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "shuffle",
                    "extra_rows",
                    "duplicates",
                    "nulls",
                    "drop_rows"
                  ]
                },
                "type": "array",
                "maxItems": 5
              },
              {
                "type": "null"
              }
            ],
            "title": "Mutations"
          }
        },
        "type": "object",
        "title": "SqlVariantIn",
        "description": "Mutations of an \"Add hidden variant\" (default: shuffle, extra rows, NULLs)."
      },
      "SqlVariantOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "input": {
            "type": "string",
            "title": "Input"
          },
          "expected_output": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Output"
          },
          "is_hidden": {
            "type": "boolean",
            "title": "Is Hidden"
          },
          "weight": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Weight"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "mutations": {
            "items": {
              "type": "string",
              "enum": [
                "shuffle",
                "extra_rows",
                "duplicates",
                "nulls",
                "drop_rows"
              ]
            },
            "type": "array",
            "title": "Mutations"
          },
          "differs_from_main": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Differs From Main",
            "description": "False: the reference result equals the main dataset's even after retries (a hard-coded answer would pass); None when the main result is unknown"
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts",
            "default": 1
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "input",
          "expected_output",
          "is_hidden",
          "weight",
          "note",
          "mutations"
        ],
        "title": "SqlVariantOut"
      },
      "StaffOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "role": {
            "type": "string",
            "title": "Role"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email",
          "role"
        ],
        "title": "StaffOut"
      },
      "StageIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "date_text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Date Text"
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "StageIn"
      },
      "StageOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "date_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date Text"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "title",
          "description",
          "date_text"
        ],
        "title": "StageOut"
      },
      "StandingsCellOut": {
        "properties": {
          "solved": {
            "type": "boolean",
            "title": "Solved",
            "default": false
          },
          "attempts": {
            "type": "integer",
            "title": "Attempts",
            "default": 0
          },
          "minute": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minute"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "pending": {
            "type": "integer",
            "title": "Pending",
            "default": 0
          },
          "first_solve": {
            "type": "boolean",
            "title": "First Solve",
            "default": false
          }
        },
        "type": "object",
        "title": "StandingsCellOut"
      },
      "StandingsOut": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "format": {
            "$ref": "#/components/schemas/ContestFormat"
          },
          "phase": {
            "$ref": "#/components/schemas/ContestStatus"
          },
          "frozen": {
            "type": "boolean",
            "title": "Frozen"
          },
          "live": {
            "type": "boolean",
            "title": "Live"
          },
          "freeze_starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Freeze Starts At"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/StandingsProblemOut"
            },
            "type": "array",
            "title": "Problems"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/StandingsRowOut"
            },
            "type": "array",
            "title": "Rows"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "description": "Rows on the whole board (every page)",
            "default": 0
          },
          "me": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StandingsRowOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The caller's row, on any page"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          },
          "version": {
            "type": "string",
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "title",
          "format",
          "phase",
          "frozen",
          "live",
          "freeze_starts_at",
          "ends_at",
          "problems",
          "rows",
          "updated_at",
          "server_now",
          "version"
        ],
        "title": "StandingsOut"
      },
      "StandingsProblemOut": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "solved_count": {
            "type": "integer",
            "title": "Solved Count"
          },
          "attempted_count": {
            "type": "integer",
            "title": "Attempted Count"
          }
        },
        "type": "object",
        "required": [
          "label",
          "points",
          "solved_count",
          "attempted_count"
        ],
        "title": "StandingsProblemOut"
      },
      "StandingsRowOut": {
        "properties": {
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "user": {
            "$ref": "#/components/schemas/PublicUserOut"
          },
          "score": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Score"
          },
          "penalty": {
            "type": "integer",
            "title": "Penalty"
          },
          "solved": {
            "type": "integer",
            "title": "Solved"
          },
          "cells": {
            "additionalProperties": {
              "$ref": "#/components/schemas/StandingsCellOut"
            },
            "type": "object",
            "title": "Cells"
          },
          "is_virtual": {
            "type": "boolean",
            "title": "Is Virtual",
            "default": false
          },
          "is_me": {
            "type": "boolean",
            "title": "Is Me",
            "default": false
          },
          "disqualified": {
            "type": "boolean",
            "title": "Disqualified",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "rank",
          "user",
          "score",
          "penalty",
          "solved",
          "cells"
        ],
        "title": "StandingsRowOut"
      },
      "StartConsentsIn": {
        "properties": {
          "assessment_recording": {
            "type": "boolean",
            "title": "Assessment Recording",
            "default": false
          },
          "webcam": {
            "type": "boolean",
            "title": "Webcam",
            "default": false
          },
          "screen": {
            "type": "boolean",
            "title": "Screen",
            "default": false
          }
        },
        "type": "object",
        "title": "StartConsentsIn"
      },
      "StartIn": {
        "properties": {
          "device_check": {
            "$ref": "#/components/schemas/DeviceCheckIn"
          },
          "consents": {
            "$ref": "#/components/schemas/StartConsentsIn"
          }
        },
        "type": "object",
        "title": "StartIn"
      },
      "StatusHistoryItem": {
        "properties": {
          "from_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "to_status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "changed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "from_status",
          "to_status",
          "created_at"
        ],
        "title": "StatusHistoryItem"
      },
      "StatusHistoryOut": {
        "properties": {
          "from_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "to_status": {
            "$ref": "#/components/schemas/ApplicationStatus"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "from_status",
          "to_status",
          "created_at"
        ],
        "title": "StatusHistoryOut"
      },
      "StatusIn": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/QuestionStatus"
          },
          "confirm_usage_change": {
            "type": "boolean",
            "title": "Confirm Usage Change",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "StatusIn"
      },
      "StreakOut": {
        "properties": {
          "current": {
            "type": "integer",
            "title": "Current",
            "default": 0
          },
          "longest": {
            "type": "integer",
            "title": "Longest",
            "default": 0
          },
          "solved_today": {
            "type": "boolean",
            "title": "Solved Today",
            "default": false
          }
        },
        "type": "object",
        "title": "StreakOut"
      },
      "SubmissionContext": {
        "type": "string",
        "enum": [
          "assessment",
          "practice",
          "contest",
          "homework"
        ],
        "title": "SubmissionContext"
      },
      "SubmissionDetailOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "homework": {
            "$ref": "#/components/schemas/HomeworkRefOut"
          },
          "intern": {
            "$ref": "#/components/schemas/AcademyPersonOut"
          },
          "cohort": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CohortBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "current": {
            "$ref": "#/components/schemas/AcademyAttemptOut"
          },
          "previous": {
            "items": {
              "$ref": "#/components/schemas/AcademyAttemptOut"
            },
            "type": "array",
            "title": "Previous"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "homework",
          "intern",
          "cohort",
          "current",
          "previous"
        ],
        "title": "SubmissionDetailOut"
      },
      "SubmissionKind": {
        "type": "string",
        "enum": [
          "run",
          "submit"
        ],
        "title": "SubmissionKind"
      },
      "SubmissionReviewOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "counted": {
            "type": "boolean",
            "title": "Counted",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "verdict",
          "score",
          "max_score",
          "tests_passed",
          "tests_total",
          "created_at"
        ],
        "title": "SubmissionReviewOut"
      },
      "SubmissionSummaryOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "kind": {
            "$ref": "#/components/schemas/SubmissionKind"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "verdict",
          "tests_passed",
          "tests_total",
          "created_at"
        ],
        "title": "SubmissionSummaryOut"
      },
      "SubmitOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "compile_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compile Error"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "SQL: the query's DuckDB error as the solver may see it — class and message, at most three lines and 500 characters; from a hidden test only its DuckDB class (e.g. \"Conversion Error\"), never the message body. Null for Python and when no test failed with an error."
          },
          "visible": {
            "items": {
              "$ref": "#/components/schemas/TestResultOut"
            },
            "type": "array",
            "title": "Visible"
          },
          "hidden": {
            "$ref": "#/components/schemas/HiddenSummaryOut"
          },
          "status": {
            "$ref": "#/components/schemas/SessionQuestionStatus"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "verdict",
          "tests_passed",
          "tests_total",
          "visible",
          "hidden",
          "status"
        ],
        "title": "SubmitOut"
      },
      "SuggestedQuestionsOut": {
        "properties": {
          "area": {
            "type": "string",
            "title": "Area"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "params": {
            "additionalProperties": true,
            "type": "object",
            "title": "Params"
          },
          "questions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Questions"
          }
        },
        "type": "object",
        "required": [
          "area",
          "reason",
          "questions"
        ],
        "title": "SuggestedQuestionsOut",
        "description": "Rule-based suggestion; `area`, `reason` and `questions` are i18n codes."
      },
      "SummaryRecommendation": {
        "type": "string",
        "enum": [
          "strong_yes",
          "yes",
          "maybe",
          "no"
        ],
        "title": "SummaryRecommendation"
      },
      "TalentBulkIn": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "User Ids"
          },
          "action": {
            "type": "string",
            "enum": [
              "add_to_shortlist",
              "remove_from_shortlist",
              "set_status"
            ],
            "title": "Action"
          },
          "shortlist": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Shortlist"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TalentStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "user_ids",
          "action"
        ],
        "title": "TalentBulkIn"
      },
      "TalentBulkOut": {
        "properties": {
          "affected": {
            "type": "integer",
            "title": "Affected"
          },
          "created": {
            "type": "integer",
            "title": "Created"
          }
        },
        "type": "object",
        "required": [
          "affected",
          "created"
        ],
        "title": "TalentBulkOut"
      },
      "TalentEntriesIn": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "User Ids"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Tags"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "user_ids"
        ],
        "title": "TalentEntriesIn"
      },
      "TalentEntriesOut": {
        "properties": {
          "added": {
            "type": "integer",
            "title": "Added"
          },
          "updated": {
            "type": "integer",
            "title": "Updated"
          }
        },
        "type": "object",
        "required": [
          "added",
          "updated"
        ],
        "title": "TalentEntriesOut"
      },
      "TalentEntryOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "user": {
            "$ref": "#/components/schemas/TalentUserOut"
          },
          "source": {
            "$ref": "#/components/schemas/TalentSource"
          },
          "source_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Id"
          },
          "source_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Label"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "status": {
            "$ref": "#/components/schemas/TalentStatus"
          },
          "invited_program": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TalentProgramRefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating"
          },
          "practice_solved": {
            "type": "integer",
            "title": "Practice Solved",
            "default": 0
          },
          "best_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Best Score"
          },
          "skills": {
            "items": {
              "$ref": "#/components/schemas/TalentSkillOut"
            },
            "type": "array",
            "title": "Skills",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "user",
          "source",
          "source_id",
          "tags",
          "note",
          "status",
          "created_at",
          "updated_at"
        ],
        "title": "TalentEntryOut"
      },
      "TalentEntryPatch": {
        "properties": {
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TalentStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "title": "TalentEntryPatch"
      },
      "TalentInviteIn": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "User Ids"
          },
          "program_id": {
            "type": "string",
            "format": "uuid",
            "title": "Program Id"
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "user_ids",
          "program_id"
        ],
        "title": "TalentInviteIn"
      },
      "TalentInviteOut": {
        "properties": {
          "invited": {
            "type": "integer",
            "title": "Invited"
          },
          "skipped": {
            "type": "integer",
            "title": "Skipped"
          },
          "drafts": {
            "type": "integer",
            "title": "Drafts",
            "description": "Draft applications pre-filled from the profile (the invite links to them)",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "invited",
          "skipped"
        ],
        "title": "TalentInviteOut"
      },
      "TalentPoolRefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/TalentStatus"
          },
          "source": {
            "$ref": "#/components/schemas/TalentSource"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "source",
          "tags",
          "note"
        ],
        "title": "TalentPoolRefOut"
      },
      "TalentSearchItem": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/TalentUserOut"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "skills": {
            "items": {
              "$ref": "#/components/schemas/TalentSkillOut"
            },
            "type": "array",
            "title": "Skills"
          },
          "best_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Best Score"
          },
          "application_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Status"
          },
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating"
          },
          "max_rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Rating"
          },
          "contests_count": {
            "type": "integer",
            "title": "Contests Count",
            "default": 0
          },
          "practice_solved": {
            "type": "integer",
            "title": "Practice Solved",
            "default": 0
          },
          "last_practice_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Practice At"
          },
          "availability": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Availability"
          },
          "pool": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TalentPoolRefOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "user",
          "role",
          "skills"
        ],
        "title": "TalentSearchItem"
      },
      "TalentSkillOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "level": {
            "type": "integer",
            "title": "Level"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "level"
        ],
        "title": "TalentSkillOut"
      },
      "TalentSource": {
        "type": "string",
        "enum": [
          "contest",
          "application",
          "practice",
          "manual"
        ],
        "title": "TalentSource"
      },
      "TalentStatus": {
        "type": "string",
        "enum": [
          "new",
          "contacted",
          "invited",
          "not_interested"
        ],
        "title": "TalentStatus"
      },
      "TalentUserOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email"
        ],
        "title": "TalentUserOut"
      },
      "TelegramLinkOut": {
        "properties": {
          "deep_link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deep Link"
          },
          "linked": {
            "type": "boolean",
            "title": "Linked"
          }
        },
        "type": "object",
        "required": [
          "deep_link",
          "linked"
        ],
        "title": "TelegramLinkOut"
      },
      "TelemetryAckOut": {
        "properties": {
          "accepted": {
            "type": "integer",
            "title": "Accepted",
            "description": "New items stored (events + snapshots)"
          },
          "duplicates": {
            "type": "integer",
            "title": "Duplicates",
            "description": "Items at or below the previous seq (ignored)"
          },
          "dropped": {
            "type": "integer",
            "title": "Dropped",
            "description": "Items skipped: snapshots with an empty or malformed patch, media check events of a capture that is not enabled and consented"
          },
          "clamped": {
            "type": "integer",
            "title": "Clamped",
            "description": "Items whose time was moved into the allowed window (server clock)",
            "default": 0
          },
          "gap": {
            "type": "integer",
            "title": "Gap",
            "description": "Item numbers missing before/within this batch"
          },
          "previous_seq": {
            "type": "integer",
            "title": "Previous Seq",
            "description": "Highest accepted seq before this batch"
          },
          "last_seq": {
            "type": "integer",
            "title": "Last Seq",
            "description": "Highest accepted seq after this batch"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          }
        },
        "type": "object",
        "required": [
          "accepted",
          "duplicates",
          "dropped",
          "gap",
          "previous_seq",
          "last_seq",
          "server_now"
        ],
        "title": "TelemetryAckOut"
      },
      "TelemetryStateOut": {
        "properties": {
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "accepting": {
            "type": "boolean",
            "title": "Accepting"
          },
          "last_seq": {
            "type": "integer",
            "title": "Last Seq"
          },
          "t_ms": {
            "type": "integer",
            "title": "T Ms",
            "description": "Server-side ms since the session started"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "title": "Server Now"
          },
          "webcam": {
            "type": "boolean",
            "title": "Webcam",
            "description": "Webcam snapshots enabled and consented"
          },
          "screen": {
            "type": "boolean",
            "title": "Screen",
            "description": "Screen snapshots enabled and consented"
          },
          "snapshot_interval_sec": {
            "type": "integer",
            "title": "Snapshot Interval Sec"
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "status",
          "accepting",
          "last_seq",
          "t_ms",
          "server_now",
          "webcam",
          "screen",
          "snapshot_interval_sec"
        ],
        "title": "TelemetryStateOut"
      },
      "TestCaseIn": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "input": {
            "type": "string",
            "maxLength": 8000000,
            "title": "Input",
            "default": ""
          },
          "expected_output": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 8000000
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Output"
          },
          "is_hidden": {
            "type": "boolean",
            "title": "Is Hidden",
            "default": false
          },
          "weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Weight",
            "default": "1"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "title": "TestCaseIn"
      },
      "TestCaseOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "input": {
            "type": "string",
            "title": "Input"
          },
          "expected_output": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Output"
          },
          "is_hidden": {
            "type": "boolean",
            "title": "Is Hidden"
          },
          "weight": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Weight"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position",
          "input",
          "expected_output",
          "is_hidden",
          "weight",
          "note"
        ],
        "title": "TestCaseOut"
      },
      "TestGraderIn": {
        "properties": {
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "answer": {
            "type": "string",
            "maxLength": 50000,
            "minLength": 1,
            "title": "Answer"
          }
        },
        "type": "object",
        "required": [
          "question_id",
          "answer"
        ],
        "title": "TestGraderIn"
      },
      "TestResultOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "number": {
            "type": "integer",
            "title": "Number"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "memory_kb": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Memory Kb"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input"
          },
          "expected": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected"
          },
          "stdout": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stdout",
            "description": "What was compared: the output, or the returned value (function mode)"
          },
          "stderr": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stderr"
          },
          "console": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Console",
            "description": "Function mode: what the code printed (not compared)"
          },
          "console_truncated": {
            "type": "boolean",
            "title": "Console Truncated",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "number",
          "verdict"
        ],
        "title": "TestResultOut",
        "description": "Visible test only: hidden tests never appear here."
      },
      "TextReviewOut": {
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "word_count": {
            "type": "integer",
            "title": "Word Count",
            "default": 0
          },
          "min_words": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Words"
          },
          "max_words": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Words"
          },
          "scenario_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scenario Md"
          },
          "deliverable_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deliverable Md"
          },
          "rubric": {
            "items": {
              "$ref": "#/components/schemas/RubricItemOut"
            },
            "type": "array",
            "title": "Rubric"
          },
          "sample_answer_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sample Answer Md",
            "description": "Admins only"
          },
          "ai": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiGradeOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "TextReviewOut"
      },
      "TimeAwayWeight": {
        "properties": {
          "over_2_min": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Over 2 Min"
          },
          "over_5_min": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Over 5 Min"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "over_2_min",
          "over_5_min"
        ],
        "title": "TimeAwayWeight"
      },
      "TimelineEventOut": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "status",
              "override",
              "note",
              "audit"
            ],
            "title": "Kind"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "title": "At"
          },
          "actor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "from_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "to_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApplicationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "action": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Action"
          },
          "data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Data"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "at"
        ],
        "title": "TimelineEventOut"
      },
      "ToTalentPoolIn": {
        "properties": {
          "top_n": {
            "type": "integer",
            "maximum": 200.0,
            "minimum": 1.0,
            "title": "Top N",
            "default": 10
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 10,
            "title": "Tags"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "title": "ToTalentPoolIn"
      },
      "ToTalentPoolOut": {
        "properties": {
          "added": {
            "type": "integer",
            "title": "Added"
          },
          "updated": {
            "type": "integer",
            "title": "Updated"
          },
          "user_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "title": "User Ids"
          }
        },
        "type": "object",
        "required": [
          "added",
          "updated",
          "user_ids"
        ],
        "title": "ToTalentPoolOut"
      },
      "TranslationIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "title": "Title"
          },
          "statement_md": {
            "type": "string",
            "maxLength": 100000,
            "title": "Statement Md"
          },
          "source": {
            "type": "string",
            "enum": [
              "ai",
              "manual"
            ],
            "title": "Source"
          },
          "source_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{16}$",
            "title": "Source Hash"
          },
          "translated_at": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Translated At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TranslationIn",
        "description": "One translation of a question: `title` and `statement_md` (the limits of the base\ntexts) and its metadata — `source` ('ai' when the author keeps the AI's version unchanged,\notherwise 'manual', the default), `source_hash` (with 'ai': the hash of the base text the\nAI read, from the AI tool's result) and `translated_at` (read-only: ignored, the server\nsets it). Any other key is refused. A plain dict after validation."
      },
      "TypingPointOut": {
        "properties": {
          "t_ms": {
            "type": "integer",
            "title": "T Ms"
          },
          "question_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question Id"
          },
          "keys": {
            "type": "integer",
            "title": "Keys"
          },
          "deletions": {
            "type": "integer",
            "title": "Deletions"
          },
          "cpm": {
            "type": "number",
            "title": "Cpm"
          }
        },
        "type": "object",
        "required": [
          "t_ms",
          "question_id",
          "keys",
          "deletions",
          "cpm"
        ],
        "title": "TypingPointOut"
      },
      "TypingWeight": {
        "properties": {
          "factor": {
            "type": "number",
            "maximum": 20.0,
            "minimum": 1.5,
            "title": "Factor"
          },
          "points": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Points"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "factor",
          "points"
        ],
        "title": "TypingWeight"
      },
      "UnreadCountOut": {
        "properties": {
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "count"
        ],
        "title": "UnreadCountOut"
      },
      "UserLinkIn": {
        "properties": {
          "link_type_id": {
            "type": "string",
            "format": "uuid",
            "title": "Link Type Id"
          },
          "url": {
            "type": "string",
            "maxLength": 500,
            "minLength": 8,
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "link_type_id",
          "url"
        ],
        "title": "UserLinkIn"
      },
      "UserLinkOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "link_type_id": {
            "type": "string",
            "format": "uuid",
            "title": "Link Type Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "enriched": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enriched"
          },
          "enriched_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enriched At"
          },
          "enrich_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enrich Error"
          }
        },
        "type": "object",
        "required": [
          "id",
          "link_type_id",
          "code",
          "name",
          "icon",
          "url",
          "handle",
          "enriched",
          "enriched_at",
          "enrich_error"
        ],
        "title": "UserLinkOut"
      },
      "UserSkillIn": {
        "properties": {
          "skill_id": {
            "type": "string",
            "format": "uuid",
            "title": "Skill Id"
          },
          "level": {
            "type": "integer",
            "maximum": 5.0,
            "minimum": 1.0,
            "title": "Level"
          },
          "years": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 50.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Years"
          }
        },
        "type": "object",
        "required": [
          "skill_id",
          "level"
        ],
        "title": "UserSkillIn"
      },
      "UserSkillOut": {
        "properties": {
          "skill_id": {
            "type": "string",
            "format": "uuid",
            "title": "Skill Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "category": {
            "$ref": "#/components/schemas/SkillCategory"
          },
          "level": {
            "type": "integer",
            "title": "Level"
          },
          "years": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Years"
          }
        },
        "type": "object",
        "required": [
          "skill_id",
          "code",
          "name",
          "category",
          "level",
          "years"
        ],
        "title": "UserSkillOut"
      },
      "ValidationItem": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Field"
          },
          "message_uz": {
            "type": "string",
            "title": "Message Uz"
          },
          "message_en": {
            "type": "string",
            "title": "Message En"
          },
          "severity": {
            "type": "string",
            "enum": [
              "error",
              "warning",
              "info"
            ],
            "title": "Severity",
            "default": "error"
          }
        },
        "type": "object",
        "required": [
          "key",
          "ok",
          "message_uz",
          "message_en"
        ],
        "title": "ValidationItem"
      },
      "ValidationOut": {
        "properties": {
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ValidationItem"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "ok",
          "items"
        ],
        "title": "ValidationOut"
      },
      "Verdict": {
        "type": "string",
        "enum": [
          "AC",
          "WA",
          "PARTIAL",
          "TLE",
          "MLE",
          "RE",
          "CE",
          "OLE",
          "SE"
        ],
        "title": "Verdict"
      },
      "VerifyCodeIn": {
        "properties": {
          "challenge_id": {
            "type": "string",
            "format": "uuid",
            "title": "Challenge Id"
          },
          "code": {
            "type": "string",
            "maxLength": 20,
            "minLength": 6,
            "title": "Code"
          },
          "next": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Next",
            "description": "The page the sign-in started from (a same-site path, else ignored); the links of the account emails this request sends (sign-in, reset) carry it"
          }
        },
        "type": "object",
        "required": [
          "challenge_id",
          "code"
        ],
        "title": "VerifyCodeIn"
      },
      "VisibleTestOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "input": {
            "type": "string",
            "title": "Input"
          },
          "expected_output": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Output"
          }
        },
        "type": "object",
        "required": [
          "id",
          "input",
          "expected_output"
        ],
        "title": "VisibleTestOut"
      },
      "WeightsIn": {
        "properties": {
          "attendance": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Attendance",
            "default": "20"
          },
          "homework": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Homework",
            "default": "35"
          },
          "on_time": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "On Time",
            "default": "10"
          },
          "practice": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Practice",
            "default": "10"
          },
          "lessons": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Lessons",
            "default": "10"
          },
          "mentor": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Mentor",
            "default": "10"
          },
          "contest": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Contest",
            "default": "5"
          },
          "practice_target": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Practice Target",
            "default": 30
          }
        },
        "type": "object",
        "title": "WeightsIn"
      },
      "WeightsOut": {
        "properties": {
          "program_id": {
            "type": "string",
            "format": "uuid",
            "title": "Program Id"
          },
          "attendance": {
            "type": "number",
            "title": "Attendance"
          },
          "homework": {
            "type": "number",
            "title": "Homework"
          },
          "on_time": {
            "type": "number",
            "title": "On Time"
          },
          "practice": {
            "type": "number",
            "title": "Practice"
          },
          "lessons": {
            "type": "number",
            "title": "Lessons"
          },
          "mentor": {
            "type": "number",
            "title": "Mentor"
          },
          "contest": {
            "type": "number",
            "title": "Contest"
          },
          "practice_target": {
            "type": "integer",
            "title": "Practice Target"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          }
        },
        "type": "object",
        "required": [
          "program_id",
          "attendance",
          "homework",
          "on_time",
          "practice",
          "lessons",
          "mentor",
          "contest",
          "practice_target",
          "is_default"
        ],
        "title": "WeightsOut"
      },
      "AcademyAttemptOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "attempt": {
            "type": "integer",
            "title": "Attempt"
          },
          "status": {
            "$ref": "#/components/schemas/HomeworkSubmissionStatus"
          },
          "text_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text Md"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "file": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FileBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Score"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "effective_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Score"
          },
          "rubric_scores": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rubric Scores"
          },
          "feedback_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Feedback Md"
          },
          "is_late": {
            "type": "boolean",
            "title": "Is Late"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Submitted At"
          },
          "graded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graded At"
          },
          "graded_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "code_results": {
            "items": {
              "$ref": "#/components/schemas/CodeResultOut"
            },
            "type": "array",
            "title": "Code Results",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "attempt",
          "status",
          "text_md",
          "url",
          "file",
          "auto_score",
          "score",
          "effective_score",
          "rubric_scores",
          "feedback_md",
          "is_late",
          "submitted_at",
          "graded_at"
        ],
        "title": "AttemptOut"
      },
      "AcademyDashboardOut": {
        "properties": {
          "cohort": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CohortBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_class": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ClassBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "upcoming_classes": {
            "items": {
              "$ref": "#/components/schemas/ClassBriefOut"
            },
            "type": "array",
            "title": "Upcoming Classes"
          },
          "due_homeworks": {
            "items": {
              "$ref": "#/components/schemas/DueHomeworkOut"
            },
            "type": "array",
            "title": "Due Homeworks"
          },
          "progress_percent": {
            "type": "number",
            "title": "Progress Percent"
          },
          "lessons_done": {
            "type": "integer",
            "title": "Lessons Done"
          },
          "lessons_total": {
            "type": "integer",
            "title": "Lessons Total"
          },
          "activity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivitySummaryOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "trend": {
            "items": {
              "$ref": "#/components/schemas/ActivityPointOut"
            },
            "type": "array",
            "title": "Trend"
          },
          "mentor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MentorCardOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "courses": {
            "items": {
              "$ref": "#/components/schemas/CourseProgressOut"
            },
            "type": "array",
            "title": "Courses"
          }
        },
        "type": "object",
        "required": [
          "cohort",
          "next_class",
          "upcoming_classes",
          "due_homeworks",
          "progress_percent",
          "lessons_done",
          "lessons_total",
          "activity",
          "trend",
          "mentor",
          "courses"
        ],
        "title": "DashboardOut"
      },
      "AcademyPersonOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name",
          "email"
        ],
        "title": "PersonOut"
      },
      "AcademyPracticeProblemOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "difficulty": {
            "type": "string",
            "title": "Difficulty"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "difficulty"
        ],
        "title": "PracticeProblemOut"
      },
      "AcademyRubricItem": {
        "properties": {
          "key": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Key"
          },
          "criterion": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Criterion"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "max_points": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              }
            ],
            "title": "Max Points"
          }
        },
        "type": "object",
        "required": [
          "criterion",
          "max_points"
        ],
        "title": "RubricItem"
      },
      "AiUsageOut": {
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "today",
              "7d",
              "30d",
              "month",
              "custom"
            ],
            "title": "Period"
          },
          "date_from": {
            "type": "string",
            "format": "date",
            "title": "Date From"
          },
          "date_to": {
            "type": "string",
            "format": "date",
            "title": "Date To"
          },
          "timezone": {
            "type": "string",
            "title": "Timezone"
          },
          "currency": {
            "type": "string",
            "const": "USD",
            "title": "Currency",
            "default": "USD"
          },
          "prices_checked_on": {
            "type": "string",
            "format": "date",
            "title": "Prices Checked On"
          },
          "totals": {
            "$ref": "#/components/schemas/AiUsageTotalsOut"
          },
          "daily": {
            "items": {
              "$ref": "#/components/schemas/AiUsageDayOut"
            },
            "type": "array",
            "title": "Daily"
          },
          "by_model": {
            "items": {
              "$ref": "#/components/schemas/AiUsageModelOut"
            },
            "type": "array",
            "title": "By Model"
          },
          "by_kind": {
            "items": {
              "$ref": "#/components/schemas/AiUsageKindOut"
            },
            "type": "array",
            "title": "By Kind"
          },
          "current": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiCurrentModelOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null when no AI provider has an API key"
          }
        },
        "type": "object",
        "required": [
          "period",
          "date_from",
          "date_to",
          "timezone",
          "prices_checked_on",
          "totals",
          "daily",
          "by_model",
          "by_kind",
          "current"
        ],
        "title": "AiUsageOut"
      },
      "ApplicationInterviewBriefOut": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          },
          "meeting_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Meeting Url"
          },
          "location": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          }
        },
        "type": "object",
        "required": [
          "status",
          "starts_at",
          "meeting_url",
          "location"
        ],
        "title": "InterviewBriefOut"
      },
      "AuditAttemptOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "user": {
            "$ref": "#/components/schemas/AttemptUserOut"
          },
          "question": {
            "$ref": "#/components/schemas/AttemptQuestionOut"
          },
          "context": {
            "$ref": "#/components/schemas/SubmissionContext"
          },
          "context_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Context Id"
          },
          "kind": {
            "$ref": "#/components/schemas/SubmissionKind"
          },
          "language": {
            "$ref": "#/components/schemas/Language"
          },
          "verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Verdict"
              },
              {
                "type": "null"
              }
            ]
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "tests_passed": {
            "type": "integer",
            "title": "Tests Passed"
          },
          "tests_total": {
            "type": "integer",
            "title": "Tests Total"
          },
          "time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Ms"
          },
          "memory_kb": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Memory Kb"
          }
        },
        "type": "object",
        "required": [
          "id",
          "created_at",
          "user",
          "question",
          "context",
          "kind",
          "language",
          "tests_passed",
          "tests_total"
        ],
        "title": "AttemptOut",
        "description": "One code run or submit (`submissions`) in practice, a contest, an assessment or homework:\nwho, which problem, run or submit, language, verdict and how long the Runner took. Never the\ncode itself."
      },
      "ContestPlagiarismPairOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "question_title": {
            "type": "string",
            "title": "Question Title"
          },
          "similarity": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Similarity"
          },
          "a": {
            "$ref": "#/components/schemas/PlagiarismSubmissionOut"
          },
          "b": {
            "$ref": "#/components/schemas/PlagiarismSubmissionOut"
          },
          "computed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Computed At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "label",
          "question_title",
          "similarity",
          "a",
          "b",
          "computed_at"
        ],
        "title": "PlagiarismPairOut"
      },
      "IntegrationInviteOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "set_id": {
            "type": "string",
            "format": "uuid",
            "title": "Set Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          },
          "status": {
            "type": "string",
            "enum": [
              "invited",
              "opened",
              "started",
              "submitted",
              "scored",
              "expired",
              "voided"
            ],
            "title": "Status",
            "description": "invited → opened → started → submitted → scored; expired (never started and the set is closed or archived; an attempt whose start window lapsed while the set is open stays opened); voided is not used today"
          },
          "invited_at": {
            "type": "string",
            "format": "date-time",
            "title": "Invited At"
          },
          "email_sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email Sent At",
            "description": "When the last invite e-mail was queued"
          },
          "resend_count": {
            "type": "integer",
            "title": "Resend Count"
          },
          "opened_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opened At"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "description": "0-100 once scored"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SetSectionScoreOut"
            },
            "type": "array",
            "title": "Sections"
          },
          "integrity_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integrity Score",
            "description": "0-100 proctoring integrity, shown next to the score, never subtracted"
          },
          "result_released": {
            "type": "boolean",
            "title": "Result Released"
          },
          "application_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Id"
          },
          "taken_by_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Taken By Email",
            "description": "E-mail of the account that took the attempt (the link works from any account)"
          },
          "email_matches": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email Matches",
            "description": "Whether that account's e-mail is the invited one; null before the attempt"
          },
          "review_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Review Url",
            "description": "The admin's results page of the set"
          }
        },
        "type": "object",
        "required": [
          "id",
          "set_id",
          "email",
          "external_id",
          "full_name",
          "status",
          "invited_at",
          "email_sent_at",
          "resend_count",
          "opened_at",
          "started_at",
          "submitted_at",
          "score",
          "max_score",
          "sections",
          "integrity_score",
          "result_released",
          "application_id",
          "taken_by_email",
          "email_matches",
          "review_url"
        ],
        "title": "InviteOut"
      },
      "IntegrationInviteResultOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "set_id": {
            "type": "string",
            "format": "uuid",
            "title": "Set Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name"
          },
          "status": {
            "type": "string",
            "enum": [
              "invited",
              "opened",
              "started",
              "submitted",
              "scored",
              "expired",
              "voided"
            ],
            "title": "Status",
            "description": "invited → opened → started → submitted → scored; expired (never started and the set is closed or archived; an attempt whose start window lapsed while the set is open stays opened); voided is not used today"
          },
          "invited_at": {
            "type": "string",
            "format": "date-time",
            "title": "Invited At"
          },
          "email_sent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email Sent At",
            "description": "When the last invite e-mail was queued"
          },
          "resend_count": {
            "type": "integer",
            "title": "Resend Count"
          },
          "opened_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Opened At"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "description": "0-100 once scored"
          },
          "max_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Score"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/SetSectionScoreOut"
            },
            "type": "array",
            "title": "Sections"
          },
          "integrity_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integrity Score",
            "description": "0-100 proctoring integrity, shown next to the score, never subtracted"
          },
          "result_released": {
            "type": "boolean",
            "title": "Result Released"
          },
          "application_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Id"
          },
          "taken_by_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Taken By Email",
            "description": "E-mail of the account that took the attempt (the link works from any account)"
          },
          "email_matches": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email Matches",
            "description": "Whether that account's e-mail is the invited one; null before the attempt"
          },
          "review_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Review Url",
            "description": "The admin's results page of the set"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "created",
              "existing",
              "resent"
            ],
            "title": "Outcome"
          }
        },
        "type": "object",
        "required": [
          "id",
          "set_id",
          "email",
          "external_id",
          "full_name",
          "status",
          "invited_at",
          "email_sent_at",
          "resend_count",
          "opened_at",
          "started_at",
          "submitted_at",
          "score",
          "max_score",
          "sections",
          "integrity_score",
          "result_released",
          "application_id",
          "taken_by_email",
          "email_matches",
          "review_url",
          "outcome"
        ],
        "title": "InviteResultOut"
      },
      "InterviewBriefOut": {
        "properties": {
          "interview": {
            "$ref": "#/components/schemas/InterviewListItem"
          },
          "profile": {
            "$ref": "#/components/schemas/BriefProfileOut"
          },
          "skills": {
            "items": {
              "$ref": "#/components/schemas/BriefSkillOut"
            },
            "type": "array",
            "title": "Skills"
          },
          "scores": {
            "$ref": "#/components/schemas/BriefScoresOut"
          },
          "summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BriefSummaryOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "flags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Flags"
          },
          "suggested": {
            "items": {
              "$ref": "#/components/schemas/SuggestedQuestionsOut"
            },
            "type": "array",
            "title": "Suggested"
          },
          "answers": {
            "items": {
              "$ref": "#/components/schemas/BriefAnswerOut"
            },
            "type": "array",
            "title": "Answers"
          },
          "scorecard": {
            "$ref": "#/components/schemas/ScorecardOut"
          },
          "my_feedback": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FeedbackOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "feedback": {
            "items": {
              "$ref": "#/components/schemas/FeedbackOut"
            },
            "type": "array",
            "title": "Feedback"
          }
        },
        "type": "object",
        "required": [
          "interview",
          "profile",
          "skills",
          "scores",
          "summary",
          "flags",
          "suggested",
          "answers",
          "scorecard",
          "my_feedback",
          "feedback"
        ],
        "title": "InterviewBriefOut"
      },
      "InterviewInviteOut": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/InterviewInviteResultOut"
            },
            "type": "array",
            "title": "Results"
          },
          "invited": {
            "type": "integer",
            "title": "Invited"
          }
        },
        "type": "object",
        "required": [
          "results",
          "invited"
        ],
        "title": "InviteOut"
      },
      "InterviewInviteResultOut": {
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "interview_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interview Id"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "application_id",
          "ok"
        ],
        "title": "InviteResultOut"
      },
      "InterviewPersonOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name"
        ],
        "title": "PersonOut"
      },
      "InterviewProgramRefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title"
        ],
        "title": "ProgramRefOut"
      },
      "MentoringGradingItemOut": {
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "title": "Submission Id"
          },
          "homework": {
            "$ref": "#/components/schemas/HomeworkRefOut"
          },
          "intern": {
            "$ref": "#/components/schemas/AcademyPersonOut"
          },
          "cohort": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CohortBriefOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "attempt": {
            "type": "integer",
            "title": "Attempt"
          },
          "status": {
            "$ref": "#/components/schemas/HomeworkSubmissionStatus"
          },
          "is_late": {
            "type": "boolean",
            "title": "Is Late"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Submitted At"
          },
          "auto_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Score"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "homework",
          "intern",
          "cohort",
          "attempt",
          "status",
          "is_late",
          "submitted_at",
          "auto_score",
          "score"
        ],
        "title": "GradingItemOut"
      },
      "MentoringLeaderboardOut": {
        "properties": {
          "cohort": {
            "$ref": "#/components/schemas/CohortBriefOut"
          },
          "date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date"
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/LeaderboardEntryOut"
            },
            "type": "array",
            "title": "Entries"
          }
        },
        "type": "object",
        "required": [
          "cohort",
          "date",
          "entries"
        ],
        "title": "LeaderboardOut"
      },
      "MentoringNoteIn": {
        "properties": {
          "body_md": {
            "type": "string",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Body Md"
          },
          "cohort_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cohort Id"
          }
        },
        "type": "object",
        "required": [
          "body_md"
        ],
        "title": "NoteIn"
      },
      "MentoringNoteOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "body_md": {
            "type": "string",
            "title": "Body Md"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AcademyPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "can_delete": {
            "type": "boolean",
            "title": "Can Delete",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "body_md",
          "author",
          "created_at"
        ],
        "title": "NoteOut"
      },
      "PracticeLeaderboardOut": {
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "week",
              "month",
              "all"
            ],
            "title": "Period"
          },
          "since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/LeaderboardRowOut"
            },
            "type": "array",
            "title": "Items"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          },
          "me": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LeaderboardRowOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/LeaderboardRowOut"
            },
            "type": "array",
            "title": "Rows",
            "description": "Deprecated alias of `items`, kept for one release for the /practice widget",
            "deprecated": true,
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "period",
          "items",
          "rows"
        ],
        "title": "LeaderboardOut",
        "description": "One page of the full ranking (`items`, `next_cursor`), the number of ranked people\n(`total`) and the caller's own row (`me`, also when it is on another page)."
      },
      "PracticeProblemOut": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "stats": {
            "$ref": "#/components/schemas/ProblemStatsOut"
          },
          "my_status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "solved",
                  "attempted"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "My Status"
          },
          "last_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Code"
          },
          "question": {
            "$ref": "#/components/schemas/CandidateQuestionOut"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "points",
          "tags",
          "topic",
          "stats",
          "question"
        ],
        "title": "PracticeProblemOut"
      },
      "ProctoringIntegrityOut": {
        "properties": {
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "title": "Assessment Id"
          },
          "session_status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "computed": {
            "type": "boolean",
            "title": "Computed"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IntegrityLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "adjusted_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Adjusted Score",
            "description": "Score without the points of dismissed flags (display only)"
          },
          "computed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Computed At"
          },
          "weights_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weights Version"
          },
          "coverage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoverageOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "flags": {
            "items": {
              "$ref": "#/components/schemas/IntegrityFlagOut"
            },
            "type": "array",
            "title": "Flags"
          },
          "signals": {
            "additionalProperties": true,
            "type": "object",
            "title": "Signals"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "reviewed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProctoringPersonOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewed At"
          },
          "plagiarism": {
            "items": {
              "$ref": "#/components/schemas/PlagiarismPeerOut"
            },
            "type": "array",
            "title": "Plagiarism"
          },
          "can_review": {
            "type": "boolean",
            "title": "Can Review",
            "default": false
          },
          "can_compare": {
            "type": "boolean",
            "title": "Can Compare",
            "description": "May open plagiarism pairs (assessments.manage)",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "assessment_id",
          "session_status",
          "computed"
        ],
        "title": "IntegrityOut"
      },
      "ProctoringPersonOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "full_name": {
            "type": "string",
            "title": "Full Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "id",
          "full_name"
        ],
        "title": "PersonOut"
      },
      "ProctoringPlagiarismPairOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "question": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PlagiarismQuestionOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "similarity": {
            "type": "number",
            "title": "Similarity"
          },
          "flagged": {
            "type": "boolean",
            "title": "Flagged"
          },
          "a": {
            "$ref": "#/components/schemas/PlagiarismSideOut"
          },
          "b": {
            "$ref": "#/components/schemas/PlagiarismSideOut"
          },
          "computed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Computed At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "question",
          "similarity",
          "flagged",
          "a",
          "b",
          "computed_at"
        ],
        "title": "PlagiarismPairOut"
      },
      "ProfileSkillOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "category": {
            "$ref": "#/components/schemas/SkillCategory"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          }
        },
        "type": "object",
        "required": [
          "id",
          "code",
          "name",
          "category",
          "is_active"
        ],
        "title": "SkillOut"
      },
      "QuestionRubricItem": {
        "properties": {
          "criterion": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Criterion"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "weight": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Weight"
          },
          "levels": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Levels"
          }
        },
        "type": "object",
        "required": [
          "criterion",
          "weight"
        ],
        "title": "RubricItem"
      },
      "ReviewAiUsageOut": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "calls": {
            "type": "integer",
            "title": "Calls"
          },
          "done": {
            "type": "integer",
            "title": "Done"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "input_tokens": {
            "type": "integer",
            "title": "Input Tokens"
          },
          "output_tokens": {
            "type": "integer",
            "title": "Output Tokens"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "calls",
          "done",
          "failed",
          "input_tokens",
          "output_tokens"
        ],
        "title": "AiUsageOut"
      },
      "ReviewDashboardOut": {
        "properties": {
          "days": {
            "type": "integer",
            "title": "Days"
          },
          "program_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program Id"
          },
          "programs": {
            "items": {
              "$ref": "#/components/schemas/ProgramRef"
            },
            "type": "array",
            "title": "Programs"
          },
          "totals": {
            "$ref": "#/components/schemas/DashboardTotalsOut"
          },
          "funnels": {
            "items": {
              "$ref": "#/components/schemas/FunnelOut"
            },
            "type": "array",
            "title": "Funnels"
          },
          "score_histogram": {
            "items": {
              "$ref": "#/components/schemas/HistogramBinOut"
            },
            "type": "array",
            "title": "Score Histogram"
          },
          "integrity": {
            "$ref": "#/components/schemas/IntegrityDistributionOut"
          },
          "daily": {
            "items": {
              "$ref": "#/components/schemas/DailyPointOut"
            },
            "type": "array",
            "title": "Daily"
          },
          "ai_usage": {
            "items": {
              "$ref": "#/components/schemas/ReviewAiUsageOut"
            },
            "type": "array",
            "title": "Ai Usage"
          },
          "recent": {
            "items": {
              "$ref": "#/components/schemas/ActivityOut"
            },
            "type": "array",
            "title": "Recent"
          },
          "top_skills": {
            "items": {
              "$ref": "#/components/schemas/SkillCountOut"
            },
            "type": "array",
            "title": "Top Skills"
          }
        },
        "type": "object",
        "required": [
          "days",
          "programs",
          "totals",
          "funnels",
          "score_histogram",
          "integrity",
          "daily",
          "ai_usage",
          "recent",
          "top_skills"
        ],
        "title": "DashboardOut"
      },
      "ReviewGradingItemOut": {
        "properties": {
          "session_question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Question Id"
          },
          "session_id": {
            "type": "string",
            "format": "uuid",
            "title": "Session Id"
          },
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "candidate": {
            "$ref": "#/components/schemas/PersonRef"
          },
          "program": {
            "$ref": "#/components/schemas/ProgramRef"
          },
          "question_id": {
            "type": "string",
            "format": "uuid",
            "title": "Question Id"
          },
          "question_title": {
            "type": "string",
            "title": "Question Title"
          },
          "type": {
            "$ref": "#/components/schemas/QuestionType"
          },
          "points": {
            "type": "string",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Points"
          },
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "ai_score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Score"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          }
        },
        "type": "object",
        "required": [
          "session_question_id",
          "session_id",
          "application_id",
          "candidate",
          "program",
          "question_id",
          "question_title",
          "type",
          "points"
        ],
        "title": "GradingItemOut"
      },
      "ReviewIntegrityOut": {
        "properties": {
          "score": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "level": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Level"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          }
        },
        "type": "object",
        "title": "IntegrityOut",
        "description": "Integrity is shown next to scores and never subtracted from them."
      },
      "ReviewNoteIn": {
        "properties": {
          "body_md": {
            "type": "string",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Body Md"
          },
          "is_pinned": {
            "type": "boolean",
            "title": "Is Pinned",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "body_md"
        ],
        "title": "NoteIn"
      },
      "ReviewNoteOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "application_id": {
            "type": "string",
            "format": "uuid",
            "title": "Application Id"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "body_md": {
            "type": "string",
            "title": "Body Md"
          },
          "is_pinned": {
            "type": "boolean",
            "title": "Is Pinned"
          },
          "mentions": {
            "items": {
              "$ref": "#/components/schemas/PersonRef"
            },
            "type": "array",
            "title": "Mentions"
          },
          "can_edit": {
            "type": "boolean",
            "title": "Can Edit",
            "default": false
          },
          "can_delete": {
            "type": "boolean",
            "title": "Can Delete",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "application_id",
          "author",
          "body_md",
          "is_pinned",
          "created_at",
          "updated_at"
        ],
        "title": "NoteOut"
      },
      "ReviewSkillOut": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "category": {
            "type": "string",
            "title": "Category"
          },
          "level": {
            "type": "integer",
            "title": "Level"
          },
          "years": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Years"
          }
        },
        "type": "object",
        "required": [
          "code",
          "name",
          "category",
          "level"
        ],
        "title": "SkillOut"
      },
      "TalentProgramRefOut": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "slug"
        ],
        "title": "ProgramRefOut"
      },
      "Error": {
        "title": "Error",
        "type": "object",
        "description": "Every error: `code` is an i18n key, `message` an English fallback; extra keys where stated.",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "description": "Request validation: every invalid input.",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          },
          "retry_after": {
            "type": "number",
            "description": "Seconds to wait (429, some 409 and 503)."
          }
        },
        "example": {
          "code": "validation.invalid",
          "message": "Field required",
          "field": "email",
          "errors": [
            {
              "field": "body.email",
              "message": "Field required"
            }
          ]
        }
      }
    },
    "securitySchemes": {
      "accessCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "access_token",
        "description": "httpOnly JWT (15 min) set by the sign-in endpoints; renewed by POST /api/v1/auth/refresh."
      },
      "refreshCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "refresh_token",
        "description": "httpOnly, path /api/v1/auth: the session's rotating refresh token, set at sign-in and by POST /api/v1/auth/refresh."
      },
      "csrfCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "csrf_token",
        "description": "Readable by JavaScript; sent with the first /api/ response and at sign-in."
      },
      "csrfHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-CSRF-Token",
        "description": "Equal to the csrf_token cookie on POST, PUT, PATCH and DELETE that carry an auth cookie."
      },
      "integrationKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "The portal's integration API key (`dbk_…`), valid on its own portal's host only; a write that also carries an auth cookie needs the CSRF header too."
      }
    },
    "responses": {
      "AuthRequired": {
        "description": "Not signed in, or the session has ended (`auth.required`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "auth.required",
              "message": "Login required"
            }
          }
        }
      },
      "CsrfFailed": {
        "description": "Forbidden: `auth.csrf_failed` (CSRF token missing or invalid).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "auth.csrf_failed",
              "message": "CSRF token missing or invalid"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden: `auth.forbidden` (the caller's role lacks the permission).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "auth.forbidden",
              "message": "Missing permission <name>"
            }
          }
        }
      },
      "ForbiddenOrCsrfFailed": {
        "description": "Forbidden: `auth.forbidden` (the caller's role lacks the permission) or `auth.csrf_failed` (CSRF token missing or invalid).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "auth.forbidden",
              "message": "Missing permission <name>"
            }
          }
        }
      },
      "IntegrationRateLimited": {
        "description": "Too many calls with this key, or too many wrong keys from this address (`rate_limited`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "rate_limited",
              "message": "Too many requests"
            }
          }
        }
      },
      "IntegrationUnauthorized": {
        "description": "Missing or invalid integration key (`integration.unauthorized`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "integration.unauthorized",
              "message": "Missing or invalid integration key"
            }
          }
        }
      },
      "PortalNotFound": {
        "description": "No active portal for this host (`portal.not_found`); a missing object answers its own code (for example `sets.not_found`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "portal.not_found",
              "message": "No portal for host 'example.databek.com'"
            }
          }
        }
      },
      "RefreshFailed": {
        "description": "No refresh cookie (`auth.refresh_missing`), or it is invalid, reused or expired, or its session ended (`auth.refresh_invalid`, `auth.refresh_reused`, `auth.refresh_expired`, `auth.session_ended`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "auth.refresh_missing",
              "message": "No refresh token"
            }
          }
        }
      },
      "ValidationFailed": {
        "description": "Validation Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "code": "validation.invalid",
              "message": "Field required",
              "field": "email",
              "errors": [
                {
                  "field": "body.email",
                  "message": "Field required"
                }
              ]
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://talent.databek.com",
      "description": "Production (every portal host serves it)"
    }
  ]
}
