{
  "openapi": "3.1.0",
  "info": {
    "title": "TutorFlow Content API",
    "version": "1.0.0",
    "description": "Create and manage the courses, videos, slides, tests, games, simulations and interactive modules educators author in TutorFlow, from your own systems. Authenticate with a `tf_content_` key as a bearer token. Every key-authenticated response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds); a 429 adds `Retry-After` (seconds) and `error.retryAfterSeconds`. Every response carries `Request-Id`, echoing a safe `X-Request-Id` you send or a new UUID; error bodies repeat it as `error.requestId`. Id path parameters must be UUIDs (422 `content_invalid_request` otherwise). A response that still carries the deprecated list or delete aliases adds `Deprecation`, `Sunset` and a `Link` to the versioning guide. Key and webhook management routes under `/v1/content/organizations/{organizationId}` use the signed-in admin session instead. Test mode: a `tf_content_test_` key works only in the organization's sandbox classroom (listed by `GET /v1/content/classrooms`; any other classroom is 404). Generation, builds, renders and narration return canned results at once and charge nothing, events go only to test webhook endpoints with `livemode: false`, uploads count against a small separate daily allowance, and the learner API answers 403 `content_sandbox_unsupported`."
  },
  "servers": [
    {
      "url": "https://api.tutorflow.io",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Content / API Keys"
    },
    {
      "name": "Content / Assets",
      "description": "Upload files (scene visuals, overlays, thumbnails, music, test audio, slide files, lesson PDFs) straight to storage with a presigned URL, then reference the returned key in content fields. In test mode uploads go to the sandbox classroom and count against their own allowance of 50 uploads and 500 MiB in any 24 hours, separate from the organization's live allowance."
    },
    {
      "name": "Content / Classrooms",
      "description": "The classrooms a key may use. A test key lists only the organization's sandbox (`isSandbox: true`); a live key never sees it."
    },
    {
      "name": "Content / Course curriculum"
    },
    {
      "name": "Content / Courses"
    },
    {
      "name": "Content / Credits"
    },
    {
      "name": "Content / Evaluations",
      "description": "Grade learners' answers and read the learner model their concept tags build: concepts and each learner's mastery. Replaces the Agent Platform's evaluation and learner routes."
    },
    {
      "name": "Content / Audit Log",
      "description": "Every change made through the Content API, and key and webhook changes admins make in the app, newest first."
    },
    {
      "name": "Content / Generation",
      "description": "Test, module and course generation runs. With a test key a run validates and reports `estimatedCredits` like a live one, then saves canned content in one step, completes within seconds and charges nothing (`creditsCharged: 0`)."
    },
    {
      "name": "Content / Games"
    },
    {
      "name": "Content / Learners",
      "description": "The learners of a classroom, their course enrollments and progress, and their test results. Every route needs an opt-in scope that a key without a scope list does not hold: `learners:read` to read, `learners:write` to change. Learners are identified by their TutorFlow user id. Live keys only: a test key gets 403 `content_sandbox_unsupported` on every learner route, and no `learner.*` event is ever sent for the sandbox."
    },
    {
      "name": "Content / Integrations"
    },
    {
      "name": "Content / Modules"
    },
    {
      "name": "Content / Organizations"
    },
    {
      "name": "Content / Simulations"
    },
    {
      "name": "Content / Slides"
    },
    {
      "name": "Content / Whiteboards",
      "description": "Classroom whiteboard drafts, revisions, and published snapshots."
    },
    {
      "name": "Content / Tests"
    },
    {
      "name": "Content / Videos"
    },
    {
      "name": "Content / Webhooks",
      "description": "Webhook endpoints. Each has a `mode`: live endpoints get events about real content, test endpoints only sandbox events (`livemode: false`). A key sees and creates only endpoints of its own mode."
    },
    {
      "name": "v1/content/classrooms/:classroomId/integrations/exports"
    },
    {
      "name": "Content / Webhook events"
    }
  ],
  "security": [
    {
      "contentApiKey": []
    }
  ],
  "paths": {
    "/v1/content/organizations/{organizationId}/api-keys": {
      "get": {
        "operationId": "ContentIntegrationApiKeyController_listApiKeys",
        "summary": "List Content Integration API keys",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / API Keys"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentIntegrationApiKeyDto"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationApiKeyDtoArray"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      },
      "post": {
        "operationId": "ContentIntegrationApiKeyController_createApiKey",
        "summary": "Create a Content Integration API key",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / API Keys"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentApiKeyReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentApiKeyCreatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentApiKeyCreatedResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/api-keys/labels": {
      "get": {
        "operationId": "ContentOrganizationActivityController_apiKeyLabels",
        "summary": "List every API key, deleted ones included, by name",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key. Every key of the organization, newest first, including deleted keys that the key list hides, with only the fields a filter needs. Use it to offer keys in the credit history and audit log filters: rows of a deleted key keep its `apiKeyId`, and `apiKeyId` filters by it.",
        "tags": [
          "Content / API Keys"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentApiKeyFilterLabel"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentApiKeyFilterLabelArray"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/api-keys/{keyId}": {
      "patch": {
        "operationId": "ContentIntegrationApiKeyController_updateApiKey",
        "summary": "Change a Content Integration API key",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key. Changes the name, scopes, classrooms, rate limit or expiry of an active key in place, so the integration keeps its secret. Omitted fields keep their value. `scopes` and `classroomIds` must not be empty; `classroomIds: null` lets the key use every classroom; `expiresAt` must be in the future, or null for no expiry. A key cannot hold `webhooks:manage` while limited to classrooms. A revoked or expired key cannot be changed (409 `content_api_key_not_active`). Recorded in the audit log.",
        "tags": [
          "Content / API Keys"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentApiKeyReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentIntegrationApiKeyDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationApiKeyDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "409": {
            "$ref": "#/components/responses/SessionError409"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentIntegrationApiKeyController_deleteApiKey",
        "summary": "Delete a revoked or expired Content Integration API key",
        "description": "Removes a key that no longer works from the key list. A key that still works answers `409` `content_api_key_active`: revoke it first. Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / API Keys"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted",
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "deleted"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationApiKeyControllerDeleteApiKey200"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "409": {
            "$ref": "#/components/responses/SessionError409"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/api-keys/{keyId}/revoke": {
      "post": {
        "operationId": "ContentIntegrationApiKeyController_revokeApiKey",
        "summary": "Revoke a Content Integration API key",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / API Keys"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Done. The body is empty",
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/api-keys/{keyId}/rotate": {
      "post": {
        "operationId": "ContentIntegrationApiKeyController_rotateApiKey",
        "summary": "Rotate a Content Integration API key",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / API Keys"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateContentApiKeyReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentApiKeyCreatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentApiKeyCreatedResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/assets": {
      "post": {
        "operationId": "ContentAssetUploadController_create",
        "summary": "Create an upload URL for a classroom asset",
        "description": "Requires the `content:write` scope. Returns a presigned `PUT` URL that works for 15 minutes. Send the file body to `uploadUrl` with exactly the `headers` returned (the content type and size are part of the signature), then use `assetKey` in the field its purpose is for: `scene-visual` in a scene `visualKey`, `overlay` in an overlay or frame `assetKey`, `bgm` in a video `bgmAudioKey`, `thumbnail` in a video `thumbnailKey` or a course, slide, test or game `thumbnail`, `test-audio` in a test item `questionAudioKey`, `lesson-pdf` in a module `pdfKey`. Another field answers 400 `content_invalid_request`. `slide-file` has no field yet. The key is `orgs/{organizationId}/classrooms/{classroomId}/content-api/{purpose}/{yyyy}/{mm}/{id}{ext}`, with `storage/` before `{purpose}` for `lesson-pdf`, `test-audio` and `slide-file`: those files are private, so the URLs TutorFlow returns for them are signed and expire, like files uploaded in the editor. Thumbnails, scene visuals, overlays and music are public. The file name is never part of the key. Limits per purpose: `scene-visual` PNG, JPEG, WebP or GIF up to 20 MB, or MP4 or WebM up to 500 MB; `overlay` and `thumbnail` PNG, JPEG, WebP or GIF up to 20 MB; `bgm` and `test-audio` MPEG, WAV, Ogg or MP4 audio up to 50 MB; `slide-file` PNG, JPEG, WebP or PDF up to 50 MB; `lesson-pdf` PDF up to 100 MB. An organization may create 1000 uploads totalling 20 GiB in any 24 hours (429 `content_asset_daily_limit_reached` with `retryAfterSeconds`). Send `Idempotency-Key` so a retried request replays the first answer (`Idempotent-Replayed: true`): same `id`, `assetKey` and `headers`, with a freshly signed `uploadUrl` and `expiresAt` while the upload is still `pending`. Once it is `ready` (or settled after its URL expired), the replay carries that `status` with `uploadUrl` and `expiresAt` null.",
        "tags": [
          "Content / Assets"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentAssetUploadReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentAssetUploadTicket"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentAssetUploadTicket"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/assets/{id}/complete": {
      "post": {
        "operationId": "ContentAssetUploadController_complete",
        "summary": "Confirm an uploaded classroom asset",
        "description": "Requires the `content:write` scope. Optional: checks that the object exists with the declared size and content type and marks the upload `ready`. Calling it again returns the same answer. 409 `content_asset_not_uploaded` when nothing was uploaded yet; 422 `content_asset_mismatch` when the stored object differs from the declaration (the object is deleted and the upload cannot be completed); 404 `content_asset_not_found` for an unknown id.",
        "tags": [
          "Content / Assets"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The upload id returned when the URL was created.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentAssetUpload"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentAssetUpload"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms": {
      "get": {
        "operationId": "ContentIntegrationClassroomController_listClassrooms",
        "summary": "List classrooms available to this Content API key",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Classrooms"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentClassroomResDto"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentClassroomResDtoArray"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/chapters": {
      "get": {
        "operationId": "ContentResourceCourseCurriculumController_listChapters",
        "summary": "List the chapters of a course with their lessons",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCurriculum"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCurriculum"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "post": {
        "operationId": "ContentResourceCourseCurriculumController_createChapter",
        "summary": "Add a chapter to a course",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentChapterReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentChapter"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentChapter"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/chapters/reorder": {
      "patch": {
        "operationId": "ContentResourceCourseCurriculumController_reorderChapters",
        "summary": "Reorder the chapters of a course",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderContentChaptersReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCurriculum"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCurriculum"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/chapters/{chapterId}": {
      "patch": {
        "operationId": "ContentResourceCourseCurriculumController_updateChapter",
        "summary": "Rename or move a chapter",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "chapterId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentChapterReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentChapter"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentChapter"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceCourseCurriculumController_deleteChapter",
        "summary": "Delete a chapter and its lessons",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "chapterId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/chapters/{chapterId}/lessons": {
      "post": {
        "operationId": "ContentResourceCourseCurriculumController_createLesson",
        "summary": "Add a text lesson to a chapter",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "chapterId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentLessonReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLessonDetail"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLessonDetail"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/chapters/{chapterId}/lessons/reorder": {
      "patch": {
        "operationId": "ContentResourceCourseCurriculumController_reorderLessons",
        "summary": "Reorder the lessons of a chapter",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "chapterId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderContentLessonsReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentChapter"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentChapter"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/lessons/{lessonId}": {
      "get": {
        "operationId": "ContentResourceCourseCurriculumController_getLesson",
        "summary": "Get a course lesson with its body",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lessonId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLessonDetail"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLessonDetail"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceCourseCurriculumController_updateLesson",
        "summary": "Edit, move or reposition a course lesson",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lessonId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentLessonReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLessonDetail"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLessonDetail"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceCourseCurriculumController_deleteLesson",
        "summary": "Delete a course lesson",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Course curriculum"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "lessonId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses": {
      "post": {
        "operationId": "ContentResourceCourseController_create",
        "summary": "Create a classroom course",
        "description": "Requires the `content:write` scope. The new course starts unpublished: only its enrolled learners and organisation admins can open it, and the classroom site does not list it. Publish it with a PATCH that sends `isPublic: true`. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Courses"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClassroomCourseReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCourse"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCourse"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceCourseController_list",
        "summary": "List classroom courses",
        "description": "Requires the `content:read` scope. Newest first (`createdAt DESC`) unless `field` or `order` is set. For incremental sync, send `updatedSince` with `field=updatedAt&order=ASC`.",
        "tags": [
          "Content / Courses"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListPage"
          },
          {
            "$ref": "#/components/parameters/ContentListLimit"
          },
          {
            "$ref": "#/components/parameters/ContentListTake"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column, `createdAt` by default. Anything else answers 422 naming the allowed columns.",
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "updatedAt",
                "title",
                "slug"
              ],
              "default": "createdAt"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListOrder"
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "$ref": "#/components/parameters/ContentListUpdatedSince"
          },
          {
            "name": "isIncludeStats",
            "required": false,
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCourseList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCourseList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{id}": {
      "get": {
        "operationId": "ContentResourceCourseController_get",
        "summary": "Get a classroom course",
        "description": "Requires the `content:read` scope. Learner-level stats fields (`topLearners`, `mostBehindLearner`) need `learners:read`; without it they are left out and the counts stay.",
        "tags": [
          "Content / Courses"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "isIncludeStats",
            "required": false,
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Adds `stats`, `lessons` and `chapters`. Learner names and ids in `stats` need `learners:read`."
          },
          {
            "name": "days",
            "required": false,
            "in": "query",
            "description": "Days of `stats.dailyLearningTime`: 7 (default) or 30. Buckets are UTC calendar days ending today (UTC). Any other value answers 422 `content_invalid_request` naming the allowed values.",
            "schema": {
              "type": "integer",
              "enum": [
                7,
                30
              ],
              "default": 7
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCourse"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCourse"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceCourseController_update",
        "summary": "Update a classroom course",
        "description": "Requires the `content:write` scope. Only the fields sent change; a PATCH without `visibility` keeps it. `isPublic: true` publishes the course to whoever `visibility` allows; a course starts unpublished.",
        "tags": [
          "Content / Courses"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentCourseReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCourse"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCourse"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceCourseController_delete",
        "summary": "Delete a classroom course",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Courses"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCourseDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCourseDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/credits": {
      "get": {
        "operationId": "ContentIntegrationCreditController_getBalance",
        "summary": "Get the TutorFlow AI Credit balance for this Content API key",
        "description": "Requires the `content:read` scope. A live key reads the organization balance. A test key reads a fixed sandbox balance instead: 1000000 credits that never change, no overdraft, `isPaymentFailed` false and `livemode` false, because nothing in test mode spends credits.",
        "tags": [
          "Content / Credits"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentIntegrationCreditBalanceResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationCreditBalanceResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/credits/history": {
      "get": {
        "operationId": "ContentIntegrationCreditController_getHistory",
        "summary": "List AI Credit charges, refunds and adjustments",
        "description": "Requires the `content:read` scope. Newest first, paged with `cursor`. Charges and refunds made through a key carry its `apiKeyId`; rows from before per-key attribution do not. A key that may use every classroom and holds `content:read`, `content:write`, `content:generate` and `webhooks:manage` (or has no scope list) sees every row of its organization, including rows from the TutorFlow app and other keys, and may filter by `apiKeyId`. Any other key sees only its own rows; naming another key's `apiKeyId` answers 403 `content_forbidden`. `source=app` or `source=api` keeps only rows made without or with a key; a key that reads only its own rows gets an empty page for `source=app`.",
        "tags": [
          "Content / Credits"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          },
          {
            "$ref": "#/components/parameters/ContentActivityFrom"
          },
          {
            "$ref": "#/components/parameters/ContentActivityTo"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only rows of this type, e.g. `CREATE_GAME_BUILD` or `REFUND`. An unknown type answers 422.",
            "schema": {
              "type": "string",
              "enum": [
                "CREATE_COURSE",
                "UPDATE_COURSE",
                "CREATE_LESSON",
                "UPDATE_LESSON",
                "TRANSLATE_LESSON",
                "OCR_SCAN",
                "CREATE_IMAGE",
                "CREATE_QUIZZES",
                "CREATE_PROBLEMS",
                "CREATE_AUDIO",
                "CREATE_TEST",
                "CREATE_CURRICULUM",
                "CREATE_SLIDE",
                "TOOL_COMPARE_AI",
                "TOOL_VIDEO_GENERATION",
                "DETECT_AI_GENERATED",
                "TOOL_ASSIGNMENT_FEEDBACK",
                "LESSON_SUBMISSION_FEEDBACK",
                "CLASSROOM_INSIGHTS",
                "CREATE_VIDEO_SCRIPT",
                "CREATE_VIDEO_SCRIPT_SPLIT",
                "CREATE_VIDEO_TTS",
                "CREATE_VIDEO_CLIP",
                "CREATE_VIDEO_RENDER",
                "CREATE_SLIDE_OUTLINE",
                "CREATE_GAME_BRIEF",
                "CREATE_GAME_BUILD",
                "CREATE_GAME_REVISION",
                "CREATE_SIMULATION_BRIEF",
                "CREATE_SIMULATION_BUILD",
                "CREATE_SIMULATION_REVISION",
                "CREATE_SIMULATION_BUILD_3D",
                "CREATE_SIMULATION_REVISION_3D",
                "PROMO_CODE",
                "PROMO_CODE_REVOCATION",
                "PURCHASE",
                "MONTHLY_RECHARGE",
                "YEARLY_RECHARGE_BY_MONTH",
                "REFUND",
                "CANCELLATION",
                "FAILED_OVERDRAFT_COLLECTION",
                "EMAIL_VERIFICATION",
                "AGENT_TRIAL",
                "AGENT_PURCHASE",
                "AGENT_METER_SETTLEMENT",
                "CREATE_EVALUATION",
                "CREATE_SLIDE_IMAGE",
                "AI_TUTOR"
              ]
            }
          },
          {
            "name": "apiKeyId",
            "in": "query",
            "required": false,
            "description": "Only rows of this key, a deleted key included.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivitySource"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCreditHistoryPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCreditHistoryPage"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/credits/history": {
      "get": {
        "operationId": "ContentOrganizationActivityController_creditHistory",
        "summary": "List the organization AI Credit history",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key. Newest first, paged with `cursor`. Charges and refunds made through a key carry its `apiKeyId`; rows from before per-key attribution do not. Every row of the organization; narrow it to one key with `apiKeyId`. Narrow to rows made without a key with `source=app`, or to rows made with any key with `source=api`.",
        "tags": [
          "Content / Credits"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          },
          {
            "$ref": "#/components/parameters/ContentActivityFrom"
          },
          {
            "$ref": "#/components/parameters/ContentActivityTo"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only rows of this type, e.g. `CREATE_GAME_BUILD` or `REFUND`. An unknown type answers 422.",
            "schema": {
              "type": "string",
              "enum": [
                "CREATE_COURSE",
                "UPDATE_COURSE",
                "CREATE_LESSON",
                "UPDATE_LESSON",
                "TRANSLATE_LESSON",
                "OCR_SCAN",
                "CREATE_IMAGE",
                "CREATE_QUIZZES",
                "CREATE_PROBLEMS",
                "CREATE_AUDIO",
                "CREATE_TEST",
                "CREATE_CURRICULUM",
                "CREATE_SLIDE",
                "TOOL_COMPARE_AI",
                "TOOL_VIDEO_GENERATION",
                "DETECT_AI_GENERATED",
                "TOOL_ASSIGNMENT_FEEDBACK",
                "LESSON_SUBMISSION_FEEDBACK",
                "CLASSROOM_INSIGHTS",
                "CREATE_VIDEO_SCRIPT",
                "CREATE_VIDEO_SCRIPT_SPLIT",
                "CREATE_VIDEO_TTS",
                "CREATE_VIDEO_CLIP",
                "CREATE_VIDEO_RENDER",
                "CREATE_SLIDE_OUTLINE",
                "CREATE_GAME_BRIEF",
                "CREATE_GAME_BUILD",
                "CREATE_GAME_REVISION",
                "CREATE_SIMULATION_BRIEF",
                "CREATE_SIMULATION_BUILD",
                "CREATE_SIMULATION_REVISION",
                "CREATE_SIMULATION_BUILD_3D",
                "CREATE_SIMULATION_REVISION_3D",
                "PROMO_CODE",
                "PROMO_CODE_REVOCATION",
                "PURCHASE",
                "MONTHLY_RECHARGE",
                "YEARLY_RECHARGE_BY_MONTH",
                "REFUND",
                "CANCELLATION",
                "FAILED_OVERDRAFT_COLLECTION",
                "EMAIL_VERIFICATION",
                "AGENT_TRIAL",
                "AGENT_PURCHASE",
                "AGENT_METER_SETTLEMENT",
                "CREATE_EVALUATION",
                "CREATE_SLIDE_IMAGE",
                "AI_TUTOR"
              ]
            }
          },
          {
            "name": "apiKeyId",
            "in": "query",
            "required": false,
            "description": "Only rows of this key, a deleted key included.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivitySource"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentCreditHistoryPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentCreditHistoryPage"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/evaluations": {
      "post": {
        "operationId": "ContentEvaluationController_create",
        "summary": "Grade an answer. Charges 1 credit.",
        "description": "Requires the `content:generate` scope. Grades a learner's answer: `exact` compares it with `referenceAnswer`, `rubric_short_answer` scores it against `rubric` (or rubric files), `open_ended` against the question. Send JSON, or `multipart/form-data` with the same fields plus up to 10 `rubricFiles` and 10 `answerFiles`. Charges 1 AI Credit once the grade is stored; a test key gets a fixed sandbox grade and spends nothing. With `mode: async` the answer is 201 with `status: PENDING` and `pollAfterMs`; the grade arrives as the `evaluation.completed` webhook, or poll the evaluation. `submitter.learnerId` and `conceptTags` feed the organization's learner model (see `concepts` and `mastery`). Send `Idempotency-Key` so a retried request replays the first answer instead of grading and charging again.",
        "tags": [
          "Content / Evaluations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentEvaluationCreate"
              }
            },
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ContentEvaluationCreate"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "rubricFiles": {
                        "type": "array",
                        "maxItems": 10,
                        "items": {
                          "type": "string",
                          "format": "binary"
                        }
                      },
                      "answerFiles": {
                        "type": "array",
                        "maxItems": 10,
                        "items": {
                          "type": "string",
                          "format": "binary"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentEvaluation"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentEvaluation"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentEvaluationController_list",
        "summary": "List a classroom's evaluations, newest first",
        "description": "Requires the `content:read` scope. Rows carry the scores without the feedback and files; read one evaluation for those. Evaluations sent to the Agent Platform before the move are listed under the account's default classroom.",
        "tags": [
          "Content / Evaluations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "PROCESSING",
                "COMPLETED",
                "FAILED"
              ]
            }
          },
          {
            "name": "evaluationType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "exact",
                "rubric_short_answer",
                "open_ended"
              ]
            }
          },
          {
            "name": "learner",
            "in": "query",
            "required": false,
            "description": "Only this learner's evaluations: the learner id they were sent with.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentEvaluationPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentEvaluationPage"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/evaluations/{id}": {
      "get": {
        "operationId": "ContentEvaluationController_get",
        "summary": "Get an evaluation",
        "description": "Requires the `content:read` scope. Poll an async evaluation here until `isTerminal`, waiting `pollAfterMs` between calls.",
        "tags": [
          "Content / Evaluations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The evaluation id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentEvaluation"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentEvaluation"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/evaluations/{id}/files/{field}/{index}": {
      "get": {
        "operationId": "ContentEvaluationController_downloadFile",
        "summary": "Download a rubric or answer file of an evaluation",
        "description": "Requires the `content:read` scope. The `url` of each entry in `rubricFiles` and `answerFiles` points here.",
        "tags": [
          "Content / Evaluations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The evaluation id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "field",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "rubricFiles",
                "answerFiles"
              ]
            }
          },
          {
            "name": "index",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file, as uploaded",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/concepts": {
      "get": {
        "operationId": "ContentLearningController_listConcepts",
        "summary": "The organization's concepts, from evaluations' concept tags, with their prerequisites",
        "description": "Requires the `content:read` scope. The learner model is kept per organization, so every classroom of the organization answers the same. A test key gets an empty list: the sandbox has no learner model.",
        "tags": [
          "Content / Evaluations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentConceptList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentConceptList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/mastery/{learner}": {
      "get": {
        "operationId": "ContentLearningController_getMastery",
        "summary": "A learner's mastery of each concept, from their evaluations",
        "description": "Requires the `learners:read` scope, which is opt-in. `learner` is the learner id evaluations were sent with (`submitter.learnerId`), not a classroom learner. Not available to test keys.",
        "tags": [
          "Content / Evaluations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "learner",
            "in": "path",
            "required": true,
            "description": "The learner id evaluations were sent with.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLearnerMastery"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLearnerMastery"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/audit-log": {
      "get": {
        "operationId": "ContentApiAuditLogController_list",
        "summary": "List Content API changes recorded in the audit log",
        "description": "Requires the `content:read` scope. Newest first, paged with `cursor`. Records every change made with a key (successful or not), key and webhook changes admins make in the app, and sampled reads that received a deprecated field. Rows are kept for 90 days. A key that may use every classroom and holds `content:read`, `content:write`, `content:generate` and `webhooks:manage` (or has no scope list) sees every row of its organization, including rows from the TutorFlow app and other keys, and may filter by `apiKeyId`. Any other key sees only its own rows; naming another key's `apiKeyId` answers 403 `content_forbidden`. `source=app` or `source=api` keeps only rows made without or with a key; a key that reads only its own rows gets an empty page for `source=app`.",
        "tags": [
          "Content / Audit Log"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          },
          {
            "$ref": "#/components/parameters/ContentActivityFrom"
          },
          {
            "$ref": "#/components/parameters/ContentActivityTo"
          },
          {
            "name": "apiKeyId",
            "in": "query",
            "required": false,
            "description": "Only rows of this key, a deleted key included.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivitySource"
          },
          {
            "name": "resourceType",
            "in": "query",
            "required": false,
            "description": "Only rows about this kind of resource: course, test, module, slide, video, game, simulation, learner, webhook or api_key.",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "classroomId",
            "in": "query",
            "required": false,
            "description": "Only rows for this classroom.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentAuditLogPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentAuditLogPage"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/audit-log": {
      "get": {
        "operationId": "ContentOrganizationActivityController_auditLog",
        "summary": "List the organization Content API audit log",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key. Newest first, paged with `cursor`. Records every change made with a key (successful or not), key and webhook changes admins make in the app, and sampled reads that received a deprecated field. Rows are kept for 90 days. Every row of the organization; narrow it to one key with `apiKeyId`. Narrow to rows made without a key with `source=app`, or to rows made with any key with `source=api`.",
        "tags": [
          "Content / Audit Log"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          },
          {
            "$ref": "#/components/parameters/ContentActivityFrom"
          },
          {
            "$ref": "#/components/parameters/ContentActivityTo"
          },
          {
            "name": "apiKeyId",
            "in": "query",
            "required": false,
            "description": "Only rows of this key, a deleted key included.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivitySource"
          },
          {
            "name": "resourceType",
            "in": "query",
            "required": false,
            "description": "Only rows about this kind of resource: course, test, module, slide, video, game, simulation, learner, webhook or api_key.",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "classroomId",
            "in": "query",
            "required": false,
            "description": "Only rows for this classroom.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentAuditLogAdminPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentAuditLogAdminPage"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/tests/generate": {
      "post": {
        "operationId": "ContentGenerationController_generateTest",
        "summary": "Generate a test. Answers 202 with a run. Charges 3 credits.",
        "description": "Requires the `content:generate` scope. Always answers 202 with a queued run and a `Location` header naming `GET /v1/content/classrooms/{classroomId}/runs/{runId}`; the work continues on the server whether or not the caller stays connected, and ends with a `test.generation.completed` or `test.generation.failed` webhook. The request is refused with 402 before any work when `estimatedCredits` is more than the organization's balance or the key's monthly credit limit allows. With `Idempotency-Key` a retry returns the first 202; a run that fails releases the key so a retry starts a new run. Writes the questions and saves the test the way the test editor does, charging 3 credits (`CREATE_TEST`) once when the test is saved. The output language is decided once, when the run is accepted: `language` if sent; otherwise the language the prompt is written in; otherwise English. A Chinese result always names its form: `zh-TW` or `zh-CN` as sent, else the form the text is written in (Simplified when it does not tell).",
        "tags": [
          "Content / Generation"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerateTestRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The run is queued. Poll `statusUrl` or wait for the webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/modules/generate": {
      "post": {
        "operationId": "ContentGenerationController_generateModule",
        "summary": "Generate an interactive module. Answers 202 with a run. Charges 6 credits.",
        "description": "Requires the `content:generate` scope. Always answers 202 with a queued run and a `Location` header naming `GET /v1/content/classrooms/{classroomId}/runs/{runId}`; the work continues on the server whether or not the caller stays connected, and ends with a `module.generation.completed` or `module.generation.failed` webhook. The request is refused with 402 before any work when `estimatedCredits` is more than the organization's balance or the key's monthly credit limit allows. With `Idempotency-Key` a retry returns the first 202; a run that fails releases the key so a retry starts a new run. Creates the module and writes its lesson the way the module editor does, charging 6 credits (`CREATE_LESSON`) once when the lesson is saved. In test mode nothing is charged and the run saves a canned module of the requested type (any type the module editor offers) with a short lecture and a minimal practice body; with no `type`, or `exam`, it saves a `markdown` module. The output language is decided once, when the run is accepted: `language` if sent; otherwise the language the prompt is written in; otherwise English. A Chinese result always names its form: `zh-TW` or `zh-CN` as sent, else the form the text is written in (Simplified when it does not tell).",
        "tags": [
          "Content / Generation"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerateModuleRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The run is queued. Poll `statusUrl` or wait for the webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/generate": {
      "post": {
        "operationId": "ContentGenerationController_generateCourse",
        "summary": "Generate a course with every lesson. Answers 202 with a run. Charges 3 credits for the outline and 6 per lesson.",
        "description": "Requires the `content:generate` scope. Always answers 202 with a queued run and a `Location` header naming `GET /v1/content/classrooms/{classroomId}/runs/{runId}`; the work continues on the server whether or not the caller stays connected, and ends with a `course.generation.completed` or `course.generation.failed` webhook. The request is refused with 402 before any work when `estimatedCredits` is more than the organization's balance or the key's monthly credit limit allows. With `Idempotency-Key` a retry returns the first 202; a run that fails releases the key so a retry starts a new run. Writes the outline (3 credits, `CREATE_CURRICULUM`), creates the course with its chapters and lessons, then writes every lesson in order (6 credits each, `CREATE_LESSON`), as the course editor does. `resourceId` is the course id as soon as the course exists, so it can be opened while lessons are still being written. `estimatedCredits` assumes `lessonCount` lessons, or 12 without it; the outline decides the real count and each lesson is charged as it is written. The output language is decided once, when the run is accepted: `language` if sent; otherwise the language the prompt is written in; otherwise English. A Chinese result always names its form: `zh-TW` or `zh-CN` as sent, else the form the text is written in (Simplified when it does not tell).",
        "tags": [
          "Content / Generation"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerateCourseRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The run is queued. Poll `statusUrl` or wait for the webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/slides/generate": {
      "post": {
        "operationId": "ContentGenerationController_generateSlides",
        "summary": "Generate a slide deck with every page. Answers 202 with a run. Charges what the slide editor charges for the same pages.",
        "description": "Requires the `content:generate` scope. Always answers 202 with a queued run and a `Location` header naming `GET /v1/content/classrooms/{classroomId}/runs/{runId}`; the work continues on the server whether or not the caller stays connected, and ends with a `slide.generation.completed` or `slide.generation.failed` webhook. The request is refused with 402 before any work when `estimatedCredits` is more than the organization's balance or the key's monthly credit limit allows. With `Idempotency-Key` a retry returns the first 202; a run that fails releases the key so a retry starts a new run. Writes the outline the slide editor writes (free), creates the deck, then writes its pages four at a time with the editor's page prompt, pictures included, and saves each batch into the deck. A deck is charged what the slide editor charges for it (`CREATE_SLIDE`): 1 credit per text page and 3 per image page, every fourth page from the first being an image page, so 16 credits for 10 pages. Each batch of four pages is one image page and three text pages and is charged 6 credits when it is written (a shorter last batch is charged the same way), which adds up to the editor's price. `estimatedCredits` is that price for `slideCount` pages; an outline with fewer sections makes a smaller deck that costs less. `resourceId` is the deck id as soon as the deck exists. The saved deck is the slide editor's document, so it opens in the editor and the classroom like a deck made there. The output language is decided once, when the run is accepted: `language` if sent; otherwise the language the topic is written in; otherwise English. A Chinese result always names its form: `zh-TW` or `zh-CN` as sent, else the form the text is written in (Simplified when it does not tell).",
        "tags": [
          "Content / Generation"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerateSlidesRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The run is queued. Poll `statusUrl` or wait for the webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/runs": {
      "get": {
        "operationId": "ContentGenerationController_listRuns",
        "summary": "List the generation runs of a classroom",
        "description": "Requires the `content:read` scope. Test, module, course and slide deck generations started through the Content API in this classroom, newest first, paged with `cursor`.",
        "tags": [
          "Content / Generation"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "Only runs of this kind.",
            "schema": {
              "type": "string",
              "enum": [
                "test",
                "module",
                "course",
                "slide"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only runs in this status.",
            "schema": {
              "type": "string",
              "enum": [
                "queued",
                "running",
                "completed",
                "failed"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunPage"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/runs/{runId}": {
      "get": {
        "operationId": "ContentGenerationController_getRun",
        "summary": "Get a generation run",
        "description": "Requires the `content:read` scope. A run of another organization or classroom answers 404.",
        "tags": [
          "Content / Generation"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRun"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRun"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/runs/{runId}/resume": {
      "post": {
        "operationId": "ContentGenerationController_resumeRun",
        "summary": "Resume a failed course run. Answers 202 with a new run that writes only the lessons the failed run did not finish.",
        "description": "Requires the `content:generate` scope. Continues a failed course run on the same course: a new run starts from the failed run's checkpoint, keeps the outline, the course and every lesson the failed run wrote, and writes only the lessons it did not finish, in order. Only those lessons are charged (6 credits each, `CREATE_LESSON`); the outline and the lessons already written stay charged to the failed run, and a lesson the failed run saved without finishing its bookkeeping is kept, not written or charged again. Answers 202 with the new run (`estimatedCredits` is 6 per lesson left) and a `Location` header naming `GET /v1/content/classrooms/{classroomId}/runs/{runId}` for it; the new run reports the course as `resourceId` at once, names the failed run in `resumedFromRunId`, and ends with a `course.generation.completed` or `course.generation.failed` webhook of its own. Refused with 402 before any work when the lessons left cost more than the organization's balance or the key's monthly credit limit allows. A failed run is resumed at most once: a second resume answers 409 `content_run_already_resumed` with `resumedByRunId`, the run that continues it, which can itself be resumed if it fails. 409 `content_run_not_resumable` when the run is not failed, is not a course run, stopped before its course was created (start a new generation instead), or was started with a key of the other mode (test or live). With `Idempotency-Key` a retry returns the first 202; the new run failing releases the key.",
        "tags": [
          "Content / Generation"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "202": {
            "description": "The run is queued. Poll `statusUrl` or wait for the webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/games": {
      "post": {
        "operationId": "ContentResourceGameController_create",
        "summary": "Create a classroom game",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClassroomGameDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGame"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGame"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceGameController_list",
        "summary": "List classroom games",
        "description": "Requires the `content:read` scope. Newest first (`createdAt DESC`) unless `field` or `order` is set. For incremental sync, send `updatedSince` with `field=updatedAt&order=ASC`.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListPage"
          },
          {
            "$ref": "#/components/parameters/ContentListLimit"
          },
          {
            "$ref": "#/components/parameters/ContentListTake"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column, `createdAt` by default. Anything else answers 422 naming the allowed columns.",
            "schema": {
              "type": "string",
              "enum": [
                "title",
                "createdAt",
                "updatedAt"
              ],
              "default": "createdAt"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListOrder"
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "$ref": "#/components/parameters/ContentListUpdatedSince"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGameList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGameList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/games/{id}": {
      "get": {
        "operationId": "ContentResourceGameController_get",
        "summary": "Get a classroom game",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGame"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGame"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceGameController_update",
        "summary": "Update a classroom game",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClassroomGameDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGame"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGame"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceGameController_delete",
        "summary": "Delete a classroom game",
        "description": "Requires the `content:write` scope. In test mode the placeholder pages that sandbox builds saved for this game are removed from storage as well.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/games/{id}/brief": {
      "post": {
        "operationId": "ContentResourceGameController_generateBrief",
        "summary": "Generate a game plan. Streams SSE, or answers 202 with Prefer: respond-async. Charges 1 credit.",
        "description": "Requires the `content:generate` scope. In test mode this saves a canned result and charges nothing; the frames, run tracking and webhooks are the same.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "$ref": "#/components/parameters/PreferRespondAsync"
          },
          {
            "$ref": "#/components/parameters/AsyncQuery"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateGameBriefDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Streaming mode (default): Server-Sent Events until the work ends",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "202": {
            "description": "Async mode (`Prefer: respond-async` or `?async=true`): the work started. Poll `statusUrl` or wait for the completion webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Preference-Applied": {
                "$ref": "#/components/headers/Preference-Applied"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/games/{id}/build": {
      "post": {
        "operationId": "ContentResourceGameController_buildGame",
        "summary": "Build the game from its plan. Streams SSE, or answers 202 with Prefer: respond-async. Charges 40 credits.",
        "description": "Requires the `content:generate` scope. In test mode this saves a canned result and charges nothing; the frames, run tracking and webhooks are the same.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "$ref": "#/components/parameters/PreferRespondAsync"
          },
          {
            "$ref": "#/components/parameters/AsyncQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Streaming mode (default): Server-Sent Events until the work ends",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "202": {
            "description": "Async mode (`Prefer: respond-async` or `?async=true`): the work started. Poll `statusUrl` or wait for the completion webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Preference-Applied": {
                "$ref": "#/components/headers/Preference-Applied"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/games/{id}/revise": {
      "post": {
        "operationId": "ContentResourceGameController_reviseGame",
        "summary": "Revise the game from feedback. Streams SSE, or answers 202 with Prefer: respond-async. Charges 40 credits.",
        "description": "Requires the `content:generate` scope. In test mode this saves a canned result and charges nothing; the frames, run tracking and webhooks are the same.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "$ref": "#/components/parameters/PreferRespondAsync"
          },
          {
            "$ref": "#/components/parameters/AsyncQuery"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviseGameDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Streaming mode (default): Server-Sent Events until the work ends",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "202": {
            "description": "Async mode (`Prefer: respond-async` or `?async=true`): the work started. Poll `statusUrl` or wait for the completion webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Preference-Applied": {
                "$ref": "#/components/headers/Preference-Applied"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/games/{id}/run": {
      "get": {
        "operationId": "ContentResourceGameController_getRunStatus",
        "summary": "Get the run status of a classroom game",
        "description": "Requires the `content:read` scope. Reports builds, revisions and briefs (`phase: brief`).",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunStatus"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunStatus"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/games/{id}/versions/{version}/restore": {
      "post": {
        "operationId": "ContentResourceGameController_restoreVersion",
        "summary": "Restore an earlier version of a classroom game",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Games"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "description": "The build version to restore, from the buildHistory entries",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGame"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGame"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/learners": {
      "get": {
        "operationId": "ContentLearnerController_list",
        "summary": "List the learners of a classroom",
        "description": "Requires the `learners:read` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log, and the answer carries `Cache-Control: no-store`. Learners are the classroom's members, newest first, paged with `cursor`. Without `status`, active and inactive learners are listed; removed ones only with `status=removed`. `q` matches part of the name, username or email address, in any case.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only learners with this status.",
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "inactive",
                "removed"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Part of the name, username or email address, any case.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLearnerPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLearnerPage"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/learners/invitations": {
      "post": {
        "operationId": "ContentLearnerController_invite",
        "summary": "Add a learner to a classroom by email",
        "description": "Requires the `learners:write` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log. Works like inviting a member in TutorFlow Settings. When the email belongs to a member of the organization, they join the classroom at once (`status: added`) and are enrolled in `courseIds` and assigned `testIds`; `name` fills their name only if they have none. Anyone else receives the organization's invitation email in `locale` (English when TutorFlow has no email in that language) and joins as a learner with those courses and tests when they accept it (`status: invited`); the invitation expires after 24 hours, and a new call for the same email replaces it. On a plan with a learner limit, adding a learner past the limit answers 402 `content_learner_limit_reached`; an invited learner is counted when they accept. Send `Idempotency-Key` so a retried request does not send a second email.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteContentLearnerRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLearnerInvitationResult"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLearnerInvitationResult"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/learners/{learnerId}": {
      "get": {
        "operationId": "ContentLearnerController_get",
        "summary": "Get a learner of a classroom",
        "description": "Requires the `learners:read` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log, and the answer carries `Cache-Control: no-store`. Answers a removed learner too, with `status: removed`.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "learnerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The learner's TutorFlow user id."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLearner"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLearner"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentLearnerController_remove",
        "summary": "Remove a learner from a classroom",
        "description": "Requires the `learners:write` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log. Also ends the learner's course enrollments and test assignments in this classroom, as removing a member on the Members page does. Their progress and results are kept.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "learnerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The learner's TutorFlow user id."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLearnerRemoved"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLearnerRemoved"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/learners/{learnerId}/progress": {
      "get": {
        "operationId": "ContentLearnerController_progress",
        "summary": "Get a learner's course progress",
        "description": "Requires the `learners:read` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log, and the answer carries `Cache-Control: no-store`. Every course of this classroom the learner is enrolled in, newest enrollment first. With `courseId`, only that course, with each lesson; 404 when the learner is not enrolled in it. A lesson counts as completed once the learner finished it; only lessons still in the course count.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "learnerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The learner's TutorFlow user id."
          },
          {
            "name": "courseId",
            "in": "query",
            "required": false,
            "description": "One course, with its lessons.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentLearnerProgress"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentLearnerProgress"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/enrollments": {
      "get": {
        "operationId": "ContentLearnerEnrollmentController_list",
        "summary": "List the learners enrolled in a course",
        "description": "Requires the `learners:read` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log, and the answer carries `Cache-Control: no-store`. Newest enrollment first, paged with `cursor`.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentEnrollmentPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentEnrollmentPage"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "post": {
        "operationId": "ContentLearnerEnrollmentController_enroll",
        "summary": "Enroll classroom learners in a course",
        "description": "Requires the `learners:write` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log. Every learner must be a member of the classroom (422 otherwise; add them with the invitations route first). Learners already enrolled are left as they are, and the answer lists every enrollment asked for. Each new enrollment sends `learner.enrolled`.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrollContentLearnersRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentEnrollmentChange"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentEnrollmentChange"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/courses/{courseId}/enrollments/{learnerId}": {
      "delete": {
        "operationId": "ContentLearnerEnrollmentController_unenroll",
        "summary": "Remove a learner from a course",
        "description": "Requires the `learners:write` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log. The learner stays in the classroom and keeps their progress; enrolling them again starts a new enrollment.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "learnerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The learner's TutorFlow user id."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentUnenrolled"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentUnenrolled"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/tests/{testId}/results": {
      "get": {
        "operationId": "ContentTestResultController_list",
        "summary": "List learners' results of a test",
        "description": "Requires the `learners:read` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log, and the answer carries `Cache-Control: no-store`. One result per attempt, newest first, paged with `cursor`. What learners answered is never listed here. Includes anonymous attempts at a PUBLIC test (`isAnonymous: true`, with the `taker` they typed and no `learnerId`); filtering by `learnerId` leaves them out.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "testId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentActivityCursor"
          },
          {
            "$ref": "#/components/parameters/ContentActivityLimit"
          },
          {
            "name": "learnerId",
            "in": "query",
            "required": false,
            "description": "Only this learner's results.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTestResultPage"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentTestResultPage"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/tests/{testId}/results/{resultId}": {
      "get": {
        "operationId": "ContentTestResultController_get",
        "summary": "Get one learner's result of a test",
        "description": "Requires the `learners:read` scope, which is opt-in: a key without a scope list does not hold it, so the key's scope list must name it. Every call is written to the audit log, and the answer carries `Cache-Control: no-store`. Each item's status and score. What the learner answered is left out unless you send `include=answers`.",
        "tags": [
          "Content / Learners"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "learners:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "testId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "resultId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "A result id from the results list or the `learner.test.submitted` webhook."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "`answers` adds what the learner answered to each item.",
            "schema": {
              "type": "string",
              "enum": [
                "answers"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTestResultDetail"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentTestResultDetail"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Cache-Control": {
                "description": "Always `no-store`: learner data must not be cached.",
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/integrations/expansions": {
      "post": {
        "operationId": "ContentIntegrationController_createExpansion",
        "summary": "Expand customer-owned content JSON",
        "description": "Creates a Content Integration job that turns existing source JSON into editable TutorFlow drafts (a module, a video, a test). No model is called and no AI Credits are charged. Requires the `content:generate` scope. Send `Idempotency-Key` (or the body `idempotencyKey`, which wins when both are sent) so a retried request answers with the first job, in its current state, with `Idempotent-Replayed: true`, and queues nothing. The same key with a different body is refused with 409. A key used before 2026-09-30 still returns the job it created.",
        "tags": [
          "Content / Integrations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentExpansionReqDto"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentIntegrationJobResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationJobResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/integrations/expansions/{id}": {
      "get": {
        "operationId": "ContentIntegrationController_getExpansion",
        "summary": "Get Content Integration job status",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Integrations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentIntegrationJobResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationJobResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/integrations/expansions/{id}/result": {
      "get": {
        "operationId": "ContentIntegrationController_getExpansionResult",
        "summary": "Get Content Integration result manifest",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Integrations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentIntegrationResultResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationResultResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/modules": {
      "post": {
        "operationId": "ContentResourceModuleController_create",
        "summary": "Create an interactive module",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Modules"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentModuleReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentModule"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentModule"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceModuleController_list",
        "summary": "List interactive modules",
        "description": "Requires the `content:read` scope. Newest first (`createdAt DESC`) unless `field` or `order` is set. For incremental sync, send `updatedSince` with `field=updatedAt&order=ASC`.",
        "tags": [
          "Content / Modules"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListPage"
          },
          {
            "$ref": "#/components/parameters/ContentListLimit"
          },
          {
            "$ref": "#/components/parameters/ContentListTake"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column, `createdAt` by default. Anything else answers 422 naming the allowed columns.",
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "updatedAt",
                "title"
              ],
              "default": "createdAt"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListOrder"
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "$ref": "#/components/parameters/ContentListUpdatedSince"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentModuleList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentModuleList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/modules/{id}": {
      "get": {
        "operationId": "ContentResourceModuleController_get",
        "summary": "Get an interactive module",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Modules"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentModule"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentModule"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceModuleController_update",
        "summary": "Update an interactive module",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Modules"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStandaloneLessonDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated resource, as GET returns it, plus the deprecated `success`",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ContentModule"
                    },
                    {
                      "$ref": "#/components/schemas/ContentDeprecatedSuccess"
                    }
                  ]
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentResourceModuleControllerUpdate200"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceModuleController_delete",
        "summary": "Delete an interactive module",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Modules"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/modules/{id}/copy-to-course": {
      "post": {
        "operationId": "ContentResourceModuleController_copyToCourse",
        "summary": "Copy an interactive module into a course",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Modules"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyStandaloneLessonToCourseReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentModuleCopyResult"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentModuleCopyResult"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/organizations": {
      "get": {
        "operationId": "ContentIntegrationOrganizationController_listOrganizations",
        "summary": "List organizations available for Content Integration",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Organizations"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentIntegrationOrganizationResDto"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationOrganizationResDtoArray"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/simulations": {
      "post": {
        "operationId": "ContentResourceSimulationController_create",
        "summary": "Create a classroom simulation",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClassroomSimulationDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSimulation"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSimulation"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceSimulationController_list",
        "summary": "List classroom simulations",
        "description": "Requires the `content:read` scope. Newest first (`createdAt DESC`) unless `field` or `order` is set. For incremental sync, send `updatedSince` with `field=updatedAt&order=ASC`.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListPage"
          },
          {
            "$ref": "#/components/parameters/ContentListLimit"
          },
          {
            "$ref": "#/components/parameters/ContentListTake"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column, `createdAt` by default. Anything else answers 422 naming the allowed columns.",
            "schema": {
              "type": "string",
              "enum": [
                "title",
                "createdAt",
                "updatedAt",
                "subject"
              ],
              "default": "createdAt"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListOrder"
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "$ref": "#/components/parameters/ContentListUpdatedSince"
          },
          {
            "name": "subject",
            "required": false,
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SIMULATION_SUBJECTS"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSimulationList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSimulationList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/simulations/{id}": {
      "get": {
        "operationId": "ContentResourceSimulationController_get",
        "summary": "Get a classroom simulation",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSimulation"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSimulation"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceSimulationController_update",
        "summary": "Update a classroom simulation",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClassroomSimulationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSimulation"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSimulation"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceSimulationController_delete",
        "summary": "Delete a classroom simulation",
        "description": "Requires the `content:write` scope. In test mode the placeholder pages that sandbox builds saved for this simulation are removed from storage as well.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/simulations/{id}/brief": {
      "post": {
        "operationId": "ContentResourceSimulationController_generateBrief",
        "summary": "Plan a simulation. Streams SSE, or answers 202 with Prefer: respond-async. Charges 1 credit.",
        "description": "Requires the `content:generate` scope. In test mode this saves a canned result and charges nothing; the frames, run tracking and webhooks are the same.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "$ref": "#/components/parameters/PreferRespondAsync"
          },
          {
            "$ref": "#/components/parameters/AsyncQuery"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateSimulationBriefDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Streaming mode (default): Server-Sent Events until the work ends",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "202": {
            "description": "Async mode (`Prefer: respond-async` or `?async=true`): the work started. Poll `statusUrl` or wait for the completion webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Preference-Applied": {
                "$ref": "#/components/headers/Preference-Applied"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/simulations/{id}/build": {
      "post": {
        "operationId": "ContentResourceSimulationController_buildSimulation",
        "summary": "Build the simulation from its plan. Streams SSE, or answers 202 with Prefer: respond-async. Charges 20 credits for a 2D plan, 30 for 3D.",
        "description": "Requires the `content:generate` scope. In test mode this saves a canned result and charges nothing; the frames, run tracking and webhooks are the same.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "$ref": "#/components/parameters/PreferRespondAsync"
          },
          {
            "$ref": "#/components/parameters/AsyncQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Streaming mode (default): Server-Sent Events until the work ends",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "202": {
            "description": "Async mode (`Prefer: respond-async` or `?async=true`): the work started. Poll `statusUrl` or wait for the completion webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Preference-Applied": {
                "$ref": "#/components/headers/Preference-Applied"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/simulations/{id}/revise": {
      "post": {
        "operationId": "ContentResourceSimulationController_reviseSimulation",
        "summary": "Revise the simulation from feedback. Streams SSE, or answers 202 with Prefer: respond-async. Charges 20 credits for a 2D build, 30 for 3D.",
        "description": "Requires the `content:generate` scope. In test mode this saves a canned result and charges nothing; the frames, run tracking and webhooks are the same.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "$ref": "#/components/parameters/PreferRespondAsync"
          },
          {
            "$ref": "#/components/parameters/AsyncQuery"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviseSimulationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Streaming mode (default): Server-Sent Events until the work ends",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "202": {
            "description": "Async mode (`Prefer: respond-async` or `?async=true`): the work started. Poll `statusUrl` or wait for the completion webhook",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Preference-Applied": {
                "$ref": "#/components/headers/Preference-Applied"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationAccepted"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/simulations/{id}/run": {
      "get": {
        "operationId": "ContentResourceSimulationController_getRunStatus",
        "summary": "Get the run status of a classroom simulation",
        "description": "Requires the `content:read` scope. Reports builds, revisions and briefs (`phase: brief`).",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentGenerationRunStatus"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentGenerationRunStatus"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/simulations/{id}/versions/{version}/restore": {
      "post": {
        "operationId": "ContentResourceSimulationController_restoreVersion",
        "summary": "Restore an earlier version of a classroom simulation",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Simulations"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "description": "The build version to restore, from the buildHistory entries",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSimulation"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSimulation"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/slides": {
      "post": {
        "operationId": "ContentResourceSlideController_create",
        "summary": "Create classroom slides",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Slides"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClassroomSlideDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSlide"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSlide"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceSlideController_list",
        "summary": "List classroom slides",
        "description": "Requires the `content:read` scope. Newest first (`createdAt DESC`) unless `field` or `order` is set. For incremental sync, send `updatedSince` with `field=updatedAt&order=ASC`.",
        "tags": [
          "Content / Slides"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListPage"
          },
          {
            "$ref": "#/components/parameters/ContentListLimit"
          },
          {
            "$ref": "#/components/parameters/ContentListTake"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column, `createdAt` by default. Anything else answers 422 naming the allowed columns.",
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "updatedAt",
                "title"
              ],
              "default": "createdAt"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListOrder"
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "$ref": "#/components/parameters/ContentListUpdatedSince"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSlideList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSlideList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/slides/{id}": {
      "get": {
        "operationId": "ContentResourceSlideController_get",
        "summary": "Get classroom slides",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Slides"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSlide"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentSlide"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceSlideController_update",
        "summary": "Update classroom slide content",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Slides"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClassroomSlideDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated resource, as GET returns it, plus the deprecated `success`",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ContentSlide"
                    },
                    {
                      "$ref": "#/components/schemas/ContentDeprecatedSuccess"
                    }
                  ]
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentResourceSlideControllerUpdate200"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceSlideController_delete",
        "summary": "Delete classroom slides",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Slides"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/whiteboards": {
      "get": {
        "description": "Returns draft titles and lightweight previews, newest first. With `publishedOnly=true`, includes only boards with a published snapshot.",
        "operationId": "ContentWhiteboardController_list",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Values above 100 are clamped to 100.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 50
            }
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "name": "publishedOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWhiteboardList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWhiteboardList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        },
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "summary": "List classroom whiteboards",
        "tags": [
          "Content / Whiteboards"
        ],
        "x-required-scope": "content:read"
      },
      "post": {
        "description": "Provide a new client-generated UUID. Reusing it returns the current board from this classroom.",
        "operationId": "ContentWhiteboardController_create",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWhiteboardDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Draft created or existing board returned",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWhiteboard"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWhiteboard"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "413": {
            "description": "The JSON body exceeds 12 MiB.",
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        },
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "summary": "Create a classroom whiteboard draft",
        "tags": [
          "Content / Whiteboards"
        ],
        "x-required-scope": "content:write"
      }
    },
    "/v1/content/classrooms/{classroomId}/whiteboards/{id}": {
      "get": {
        "description": "Returns the full current draft and its revision, including changes made since publication.",
        "operationId": "ContentWhiteboardController_get",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWhiteboard"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWhiteboard"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        },
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "summary": "Read a classroom whiteboard draft",
        "tags": [
          "Content / Whiteboards"
        ],
        "x-required-scope": "content:read"
      },
      "patch": {
        "description": "Replaces the draft title and all cards. Set `publish` to true to also replace the snapshot used by linked lessons. A stale revision returns 409.",
        "operationId": "ContentWhiteboardController_save",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveWhiteboardDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ContentWhiteboard"
                    }
                  ]
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWhiteboardControllerSave200"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "413": {
            "description": "The JSON body exceeds 12 MiB.",
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        },
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "summary": "Save or publish a classroom whiteboard",
        "tags": [
          "Content / Whiteboards"
        ],
        "x-required-scope": "content:write"
      }
    },
    "/v1/content/classrooms/{classroomId}/tests": {
      "post": {
        "operationId": "ContentResourceTestController_create",
        "summary": "Create a classroom test",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Tests"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClassroomTestDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTest"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentTest"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceTestController_list",
        "summary": "List classroom tests",
        "description": "Requires the `content:read` scope. Newest first (`createdAt DESC`) unless `field` or `order` is set. For incremental sync, send `updatedSince` with `field=updatedAt&order=ASC`.",
        "tags": [
          "Content / Tests"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListPage"
          },
          {
            "$ref": "#/components/parameters/ContentListLimit"
          },
          {
            "$ref": "#/components/parameters/ContentListTake"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column, `createdAt` by default. Anything else answers 422 naming the allowed columns. `title` is an alias of `name`.",
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "updatedAt",
                "name",
                "slug",
                "title"
              ],
              "default": "createdAt"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListOrder"
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "$ref": "#/components/parameters/ContentListUpdatedSince"
          },
          {
            "name": "isIncludeStats",
            "required": false,
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTestList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentTestList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/tests/{id}": {
      "get": {
        "operationId": "ContentResourceTestController_get",
        "summary": "Get a classroom test",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Tests"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "isIncludeStats",
            "required": false,
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTest"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentTest"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceTestController_update",
        "summary": "Update a classroom test and items",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Tests"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUpdateClassroomTestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated resource, as GET returns it, plus the deprecated `success`",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ContentTest"
                    },
                    {
                      "$ref": "#/components/schemas/ContentDeprecatedSuccess"
                    }
                  ]
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentResourceTestControllerUpdate200"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceTestController_delete",
        "summary": "Delete a classroom test",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Tests"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos": {
      "post": {
        "operationId": "ContentResourceVideoController_create",
        "summary": "Create a classroom video",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change. The video starts with no scenes, a 16:9 frame and PRIVATE visibility. Add scenes with the scenes route: the TutorFlow workspace lists a video only once it has a scene.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClassroomVideoDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideo"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideo"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceVideoController_list",
        "summary": "List classroom videos",
        "description": "Requires the `content:read` scope. Newest first (`createdAt DESC`) unless `field` or `order` is set. For incremental sync, send `updatedSince` with `field=updatedAt&order=ASC`.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListPage"
          },
          {
            "$ref": "#/components/parameters/ContentListLimit"
          },
          {
            "$ref": "#/components/parameters/ContentListTake"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column, `createdAt` by default. Anything else answers 422 naming the allowed columns.",
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "updatedAt",
                "title"
              ],
              "default": "createdAt"
            }
          },
          {
            "$ref": "#/components/parameters/ContentListOrder"
          },
          {
            "$ref": "#/components/parameters/ContentListSearch"
          },
          {
            "$ref": "#/components/parameters/ContentListUpdatedSince"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideoList"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideoList"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}": {
      "get": {
        "operationId": "ContentResourceVideoController_get",
        "summary": "Get a classroom video",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfNoneMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideo"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideo"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/KeyNotModified304"
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentResourceVideoController_update",
        "summary": "Update a classroom video",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClassroomVideoDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideo"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideo"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceVideoController_delete",
        "summary": "Delete a classroom video",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}/render": {
      "post": {
        "operationId": "ContentResourceVideoRenderController_trigger",
        "summary": "Render a classroom video to mp4",
        "description": "Charges 5 AI Credits. Send an Idempotency-Key so a retried request replays instead of rendering and charging again. Completion arrives as a video.render.completed or video.render.failed webhook, or poll the status route. Requires the `content:generate` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change. Every scene needs narration audio; send generateMissingNarration: true to create what is missing first, or call the narration route. In test mode the render completes before this answer is sent, with a shared sample mp4: the 202 keeps `renderStatus: RENDERING` and `estimatedSeconds: 0` with `livemode: false`, `GET .../render` already answers COMPLETED with a `videoUrl`, `video.render.completed` goes to test endpoints, and nothing is charged.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": false,
          "description": "Optional. Hashed with the Idempotency-Key so a reused key with another body is refused.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "generateMissingNarration": {
                    "type": "boolean",
                    "description": "Generate narration (1 AI Credit per scene) for scenes that have none before rendering. Without it, a video with such scenes is refused with 400 content_video_narration_missing and the scene ids."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideoRenderAccepted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideoRenderAccepted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "get": {
        "operationId": "ContentResourceVideoRenderController_getStatus",
        "summary": "Get the render status of a classroom video",
        "description": "Requires the `content:read` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:read",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideoRenderStatus"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideoRenderStatus"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}/render/cancel": {
      "post": {
        "operationId": "ContentResourceVideoRenderController_cancel",
        "summary": "Cancel a running classroom video render",
        "description": "Requires the `content:generate` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideoRenderCancelled"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideoRenderCancelled"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}/scenes": {
      "post": {
        "operationId": "ContentResourceVideoController_addScene",
        "summary": "Add a scene to a classroom video",
        "description": "Requires the `content:write` scope. Send `Idempotency-Key` so a retried request replays the first answer instead of repeating the change.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSceneDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideo"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideo"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}/scenes/reorder": {
      "patch": {
        "operationId": "ContentResourceVideoController_reorderScenes",
        "summary": "Reorder classroom video scenes",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderScenesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideo"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideo"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}/scenes/{sceneId}": {
      "patch": {
        "operationId": "ContentResourceVideoController_updateScene",
        "summary": "Update a classroom video scene",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sceneId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoSceneDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideo"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideo"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "ETag": {
                "$ref": "#/components/headers/ETag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentResourceVideoController_deleteScene",
        "summary": "Delete a classroom video scene",
        "description": "Requires the `content:write` scope.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:write",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sceneId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideo"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentVideo"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "412": {
            "$ref": "#/components/responses/KeyError412"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}/narration": {
      "post": {
        "operationId": "ContentResourceVideoNarrationController_narrateMissing",
        "summary": "Generate narration for every scene that has none",
        "description": "Charges 1 AI Credit per narrated scene, from each scene script. Scenes that already have narration are kept. The balance for all of them is checked first; a scene without a script is refused with 400 content_video_scene_script_missing and its id. Requires content:generate. In test mode every scene gets a shared sample narration clip and `creditsCharged` is 0.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "200": {
            "description": "The narrated scene ids and the credits charged",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "videoId",
                    "narratedSceneIds",
                    "creditsCharged"
                  ],
                  "properties": {
                    "videoId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "narratedSceneIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "creditsCharged": {
                      "type": "integer",
                      "minimum": 0
                    }
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentResourceVideoNarrationControllerNarrateMissing200"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/videos/{id}/scenes/{sceneId}/narration": {
      "post": {
        "operationId": "ContentResourceVideoNarrationController_narrateScene",
        "summary": "Generate narration for one scene from its script",
        "description": "Charges 1 AI Credit and replaces any narration the scene has. Requires content:generate. In test mode the scene gets a shared sample narration clip and `creditsCharged` is 0.",
        "tags": [
          "Content / Videos"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "content:generate",
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sceneId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "200": {
            "description": "The narrated scene ids and the credits charged",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "videoId",
                    "narratedSceneIds",
                    "creditsCharged"
                  ],
                  "properties": {
                    "videoId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "narratedSceneIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "creditsCharged": {
                      "type": "integer",
                      "minimum": 0
                    }
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentResourceVideoNarrationControllerNarrateScene200"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "402": {
            "$ref": "#/components/responses/KeyError402"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "409": {
            "$ref": "#/components/responses/KeyError409"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/webhooks": {
      "get": {
        "operationId": "ContentIntegrationWebhookController_listWebhooks",
        "summary": "List Content Integration webhook endpoints",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentWebhookResDto"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookResDtoArray"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      },
      "post": {
        "operationId": "ContentIntegrationWebhookController_createWebhook",
        "summary": "Create a Content Integration webhook endpoint",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentWebhookReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookCreatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookCreatedResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/webhooks/{webhookId}": {
      "patch": {
        "operationId": "ContentIntegrationWebhookController_updateWebhook",
        "summary": "Change a webhook url, events or status, or turn it back on",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.\n\nSetting status ACTIVE on a DISABLED endpoint turns it back on and resets its health (consecutiveFailures, failingSince, disabledReason, disabledAt). Add replayFailedSince (at most 7 days ago) to requeue the events that failed since then, as new deliveries with the same event id; replayedDeliveries in the answer says how many. TutorFlow turns an endpoint off by itself, with disabledReason repeated_failures, after at least 20 failed attempts in a row over at least 3 days, fails its waiting deliveries and emails the organization's admins.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentWebhookReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookUpdatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookUpdatedResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      },
      "get": {
        "operationId": "ContentIntegrationWebhookController_getWebhook",
        "summary": "Get a Content Integration webhook endpoint",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentIntegrationWebhookController_deleteWebhook",
        "summary": "Delete a Content Integration webhook endpoint",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeleted"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/webhooks/{webhookId}/deliveries": {
      "get": {
        "operationId": "ContentIntegrationWebhookController_listDeliveries",
        "summary": "List recent deliveries, newest first",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ContentIntegrationWebhookDeliveryStatus"
            }
          },
          {
            "name": "eventType",
            "required": false,
            "in": "query",
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "name": "before",
            "required": false,
            "in": "query",
            "description": "Only deliveries created before this time. Pass the createdAt of the last delivery on a page to get the next page.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "minimum": 1,
            "maximum": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentWebhookDeliveryResDto"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeliveryResDtoArray"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver": {
      "post": {
        "operationId": "ContentIntegrationWebhookController_redeliver",
        "summary": "Send a past delivery again",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookDeliveryResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeliveryResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/webhooks/{webhookId}/rotate-secret": {
      "post": {
        "operationId": "ContentIntegrationWebhookController_rotateSecret",
        "summary": "Replace a webhook signing secret",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key. Replaces the signing secret and returns the new one once. With `gracePeriodHours` above 0 the replaced secret keeps signing deliveries next to the new one until `previousSecretExpiresAt`: `X-Content-Integration-Signature-V2` then carries `t=<ts>,v1=<new>,v1=<old>` (new first), while the legacy `X-Content-Integration-Signature` is signed with the new secret only. Without a grace period the replaced secret stops working at once. Rotating again during a grace period drops the older secret.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateContentWebhookSecretReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookCreatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookCreatedResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/organizations/{organizationId}/webhooks/{webhookId}/test": {
      "post": {
        "operationId": "ContentIntegrationWebhookController_sendTestEvent",
        "summary": "Send a webhook.ping event to the endpoint now",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookDeliveryResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeliveryResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    },
    "/v1/content/webhooks": {
      "get": {
        "operationId": "ContentWebhookKeyController_list",
        "summary": "List webhook endpoints",
        "description": "Requires the `webhooks:manage` scope.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentWebhookResDto"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookResDtoArray"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "post": {
        "operationId": "ContentWebhookKeyController_create",
        "summary": "Create a webhook endpoint",
        "description": "Requires the `webhooks:manage` scope.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContentWebhookReqDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookCreatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookCreatedResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/webhooks/{webhookId}": {
      "get": {
        "operationId": "ContentWebhookKeyController_get",
        "summary": "Get a webhook endpoint",
        "description": "Requires the `webhooks:manage` scope.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "patch": {
        "operationId": "ContentWebhookKeyController_update",
        "summary": "Change a webhook url, events or status, or turn it back on",
        "description": "Requires the `webhooks:manage` scope.\n\nSetting status ACTIVE on a DISABLED endpoint turns it back on and resets its health (consecutiveFailures, failingSince, disabledReason, disabledAt). Add replayFailedSince (at most 7 days ago) to requeue the events that failed since then, as new deliveries with the same event id; replayedDeliveries in the answer says how many. TutorFlow turns an endpoint off by itself, with disabledReason repeated_failures, after at least 20 failed attempts in a row over at least 3 days, fails its waiting deliveries and emails the organization's admins.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentWebhookReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookUpdatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookUpdatedResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      },
      "delete": {
        "operationId": "ContentWebhookKeyController_delete",
        "summary": "Delete a webhook endpoint",
        "description": "Requires the `webhooks:manage` scope.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookDeleted"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeleted"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/webhooks/{webhookId}/deliveries": {
      "get": {
        "operationId": "ContentWebhookKeyController_listDeliveries",
        "summary": "List recent deliveries, newest first",
        "description": "Requires the `webhooks:manage` scope.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ContentIntegrationWebhookDeliveryStatus"
            }
          },
          {
            "name": "eventType",
            "required": false,
            "in": "query",
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "name": "before",
            "required": false,
            "in": "query",
            "description": "Only deliveries created before this time. Pass the createdAt of the last delivery on a page to get the next page.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer"
            },
            "minimum": 1,
            "maximum": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentWebhookDeliveryResDto"
                  }
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeliveryResDtoArray"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver": {
      "post": {
        "operationId": "ContentWebhookKeyController_redeliver",
        "summary": "Send a past delivery again",
        "description": "Requires the `webhooks:manage` scope.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookDeliveryResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeliveryResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/webhooks/{webhookId}/rotate-secret": {
      "post": {
        "operationId": "ContentWebhookKeyController_rotateSecret",
        "summary": "Replace a webhook signing secret",
        "description": "Requires the `webhooks:manage` scope. Replaces the signing secret and returns the new one once. With `gracePeriodHours` above 0 the replaced secret keeps signing deliveries next to the new one until `previousSecretExpiresAt`: `X-Content-Integration-Signature-V2` then carries `t=<ts>,v1=<new>,v1=<old>` (new first), while the legacy `X-Content-Integration-Signature` is signed with the new secret only. Without a grace period the replaced secret stops working at once. Rotating again during a grace period drops the older secret.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateContentWebhookSecretReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookCreatedResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookCreatedResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/webhooks/{webhookId}/test": {
      "post": {
        "operationId": "ContentWebhookKeyController_sendTestEvent",
        "summary": "Send a webhook.ping event to the endpoint now",
        "description": "Requires the `webhooks:manage` scope.",
        "tags": [
          "Content / Webhooks"
        ],
        "security": [
          {
            "contentApiKey": []
          }
        ],
        "x-required-scope": "webhooks:manage",
        "parameters": [
          {
            "name": "webhookId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentWebhookDeliveryResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentWebhookDeliveryResDto"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/KeyError400"
          },
          "401": {
            "$ref": "#/components/responses/KeyError401"
          },
          "403": {
            "$ref": "#/components/responses/KeyError403"
          },
          "404": {
            "$ref": "#/components/responses/KeyError404"
          },
          "422": {
            "$ref": "#/components/responses/KeyError422"
          },
          "429": {
            "$ref": "#/components/responses/KeyError429"
          },
          "500": {
            "$ref": "#/components/responses/KeyError500"
          }
        }
      }
    },
    "/v1/content/classrooms/{classroomId}/integrations/exports": {
      "post": {
        "operationId": "ContentIntegrationExportController_exportStandaloneLesson",
        "summary": "Export classroom-authored content through Content Integration",
        "description": "Signed-in TutorFlow session of an organization admin; not callable with a `tf_content_` key.",
        "tags": [
          "v1/content/classrooms/:classroomId/integrations/exports"
        ],
        "security": [
          {
            "adminSession": []
          },
          {
            "adminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "classroomId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportClassroomContentReqDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentIntegrationResultResDto"
                },
                "examples": {
                  "default": {
                    "$ref": "#/components/examples/ContentIntegrationResultResDto"
                  }
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/SessionError400"
          },
          "401": {
            "$ref": "#/components/responses/SessionError401"
          },
          "403": {
            "$ref": "#/components/responses/SessionError403"
          },
          "404": {
            "$ref": "#/components/responses/SessionError404"
          },
          "422": {
            "$ref": "#/components/responses/SessionError422"
          },
          "500": {
            "$ref": "#/components/responses/SessionError500"
          }
        }
      }
    }
  },
  "webhooks": {
    "api_key.expiring": {
      "post": {
        "operationId": "webhook_api_key_expiring",
        "summary": "An active API key expires within seven days. Sent once per expiry, with an email to the admin who issued it (or every active admin when the issuer is gone); rotate the key or change its expiry",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentApiKeyExpiringEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "content.completed": {
      "post": {
        "operationId": "webhook_content_completed",
        "summary": "An expansion job finished",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentJobEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "content.failed": {
      "post": {
        "operationId": "webhook_content_failed",
        "summary": "An expansion job failed",
        "description": "Sent once, after the job's final attempt fails. An attempt that is retried sends nothing, and a job whose worker stopped responding is retried or, on its final attempt, failed with this event.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentJobEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "course.generation.completed": {
      "post": {
        "operationId": "webhook_course_generation_completed",
        "summary": "A course generation finished",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run, whichever server instance finished it."
      }
    },
    "course.generation.failed": {
      "post": {
        "operationId": "webhook_course_generation_failed",
        "summary": "A course generation failed",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run. Also sent when the run is out of attempts after server restarts, or past its time limit. The Idempotency-Key of the request that started it is released before this is sent."
      }
    },
    "evaluation.completed": {
      "post": {
        "operationId": "webhook_evaluation_completed",
        "summary": "An evaluation sent through the Content API was graded",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentEvaluationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "evaluation.failed": {
      "post": {
        "operationId": "webhook_evaluation_failed",
        "summary": "An evaluation sent through the Content API could not be graded",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentEvaluationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "game.brief.completed": {
      "post": {
        "operationId": "webhook_game_brief_completed",
        "summary": "A game plan finished",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "game.brief.failed": {
      "post": {
        "operationId": "webhook_game_brief_failed",
        "summary": "A game plan failed",
        "description": "Also sent when the server running the plan stops before it finishes (a restart or a crash): `error` then says so, and the run is failed within about three minutes. For an async request, the Idempotency-Key is released before this event is sent, so a retry with the same key starts a new run. Each run sends one outcome event.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "game.build.completed": {
      "post": {
        "operationId": "webhook_game_build_completed",
        "summary": "A game build or revision finished",
        "description": "Sent once per run. A build that saved its new version just before its server stopped is still reported here, without a stream to report it on.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "game.build.failed": {
      "post": {
        "operationId": "webhook_game_build_failed",
        "summary": "A game build or revision failed",
        "description": "Also sent when the server running the build or revision stops before it finishes (a restart or a crash): `error` then says so, and the run is failed within about three minutes. For an async request, the Idempotency-Key is released before this event is sent, so a retry with the same key starts a new run. Each run sends one outcome event.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "learner.enrolled": {
      "post": {
        "operationId": "webhook_learner_enrolled",
        "summary": "A learner was enrolled in a course, whoever enrolled them: an admin in TutorFlow, an accepted invitation, a purchase, an LMS launch or this API. Sent once per new enrollment. The payload carries ids only, never a name or email address; read the learner with the learner routes. Subscribing with an API key needs `learners:read`.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentLearnerEnrolledEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "learner.course.completed": {
      "post": {
        "operationId": "webhook_learner_course_completed",
        "summary": "A learner finished every lesson of a course for the first time. Sent once per enrollment. The payload carries ids only, never a name or email address; read the learner with the learner routes. Subscribing with an API key needs `learners:read`.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentLearnerCourseCompletedEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "learner.test.submitted": {
      "post": {
        "operationId": "webhook_learner_test_submitted",
        "summary": "A learner submitted a test attempt. Sent once per attempt; items a teacher grades later do not send it again. The payload carries ids only, never a name or email address; read the learner with the learner routes. Subscribing with an API key needs `learners:read`.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentLearnerTestSubmittedEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "module.generation.completed": {
      "post": {
        "operationId": "webhook_module_generation_completed",
        "summary": "A module generation finished",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run, whichever server instance finished it."
      }
    },
    "module.generation.failed": {
      "post": {
        "operationId": "webhook_module_generation_failed",
        "summary": "A module generation failed",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run. Also sent when the run is out of attempts after server restarts, or past its time limit. The Idempotency-Key of the request that started it is released before this is sent."
      }
    },
    "resource.created": {
      "post": {
        "operationId": "webhook_resource_created",
        "summary": "A resource was created through the Content API",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentResourceEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "resource.updated": {
      "post": {
        "operationId": "webhook_resource_updated",
        "summary": "A resource was updated through the Content API",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentResourceEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "resource.deleted": {
      "post": {
        "operationId": "webhook_resource_deleted",
        "summary": "A resource was deleted through the Content API",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentResourceEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "simulation.brief.completed": {
      "post": {
        "operationId": "webhook_simulation_brief_completed",
        "summary": "A simulation plan finished",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "simulation.brief.failed": {
      "post": {
        "operationId": "webhook_simulation_brief_failed",
        "summary": "A simulation plan failed",
        "description": "Also sent when the server running the plan stops before it finishes (a restart or a crash): `error` then says so, and the run is failed within about three minutes. For an async request, the Idempotency-Key is released before this event is sent, so a retry with the same key starts a new run. Each run sends one outcome event.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "simulation.build.completed": {
      "post": {
        "operationId": "webhook_simulation_build_completed",
        "summary": "A simulation build or revision finished",
        "description": "Sent once per run. A build that saved its new version just before its server stopped is still reported here, without a stream to report it on.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "simulation.build.failed": {
      "post": {
        "operationId": "webhook_simulation_build_failed",
        "summary": "A simulation build or revision failed",
        "description": "Also sent when the server running the build or revision stops before it finishes (a restart or a crash): `error` then says so, and the run is failed within about three minutes. For an async request, the Idempotency-Key is released before this event is sent, so a retry with the same key starts a new run. Each run sends one outcome event.",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "slide.generation.completed": {
      "post": {
        "operationId": "webhook_slide_generation_completed",
        "summary": "A slide deck generation finished",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run, whichever server instance finished it."
      }
    },
    "slide.generation.failed": {
      "post": {
        "operationId": "webhook_slide_generation_failed",
        "summary": "A slide deck generation failed",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run. Also sent when the run is out of attempts after server restarts, or past its time limit. The Idempotency-Key of the request that started it is released before this is sent."
      }
    },
    "test.generation.completed": {
      "post": {
        "operationId": "webhook_test_generation_completed",
        "summary": "A test generation finished",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run, whichever server instance finished it."
      }
    },
    "test.generation.failed": {
      "post": {
        "operationId": "webhook_test_generation_failed",
        "summary": "A test generation failed",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentGenerationRunEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        },
        "description": "Sent once per run. Also sent when the run is out of attempts after server restarts, or past its time limit. The Idempotency-Key of the request that started it is released before this is sent."
      }
    },
    "video.render.completed": {
      "post": {
        "operationId": "webhook_video_render_completed",
        "summary": "A video render finished, whoever started it",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentVideoRenderEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "video.render.failed": {
      "post": {
        "operationId": "webhook_video_render_failed",
        "summary": "A video render failed, whoever started it",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentVideoRenderEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    },
    "webhook.ping": {
      "post": {
        "operationId": "webhook_webhook_ping",
        "summary": "Sent only by the test route, to that one endpoint. Not subscribable",
        "tags": [
          "Content / Webhook events"
        ],
        "parameters": [
          {
            "name": "X-Content-Integration-Event",
            "in": "header",
            "required": true,
            "description": "The event type",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Event-Id",
            "in": "header",
            "required": false,
            "description": "The event id, shared by every delivery of the event",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Id",
            "in": "header",
            "required": true,
            "description": "This delivery",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Delivery-Attempt",
            "in": "header",
            "required": true,
            "description": "1 for the first attempt",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Timestamp",
            "in": "header",
            "required": true,
            "description": "Unix seconds the request was signed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature",
            "in": "header",
            "required": true,
            "description": "Legacy: hex HMAC-SHA256 of the raw body with the current secret",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Content-Integration-Signature-V2",
            "in": "header",
            "required": true,
            "description": "`t=<timestamp>,v1=<hex HMAC-SHA256 of '<timestamp>.<body>'>`. During a secret rotation grace period a second `v1=` follows, made with the previous secret (new first). Accept the request if any `v1` matches and the timestamp is recent",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentWebhookPingEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Anything else, or no answer within 10 seconds, is retried for about 23 hours"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "adminBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "The same admin session access token, sent as a bearer token"
      },
      "adminSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "jwt",
        "description": "The TutorFlow admin session cookie (`jwt-staging` on staging)"
      },
      "contentApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "tf_content_...",
        "description": "A Content API key, sent as `Authorization: Bearer tf_content_...`"
      }
    },
    "parameters": {
      "AsyncQuery": {
        "name": "async",
        "in": "query",
        "required": false,
        "description": "Same as `Prefer: respond-async`",
        "schema": {
          "type": "boolean"
        }
      },
      "ContentActivityCursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "description": "`meta.nextCursor` from the previous page, with the same filters. Omit for the newest page. A cursor from another list or other filters answers 422.",
        "schema": {
          "type": "string",
          "maxLength": 200
        }
      },
      "ContentActivityFrom": {
        "name": "from",
        "in": "query",
        "required": false,
        "description": "ISO 8601 date-time. Only rows created at or after it.",
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "example": "2026-09-01T00:00:00Z"
      },
      "ContentActivityLimit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Rows per page. A value above 100 is clamped to 100 rather than refused; `meta.limit` reports the size used. Below 1 answers 422.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 20
        }
      },
      "ContentActivitySource": {
        "name": "source",
        "in": "query",
        "required": false,
        "description": "`app` keeps only rows made without a key in the signed-in TutorFlow app (in the audit log, the key and webhook changes admins made there); `api` keeps only rows made with a key. Applied together with `apiKeyId`, so `source=app` with a key filter, or from a key that reads only its own rows, returns an empty page. Omit for both. Credit rows from before per-key attribution have no key and count as `app`.",
        "schema": {
          "type": "string",
          "enum": [
            "app",
            "api"
          ]
        }
      },
      "ContentActivityTo": {
        "name": "to",
        "in": "query",
        "required": false,
        "description": "ISO 8601 date-time. Only rows created before it.",
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "example": "2026-10-01T00:00:00Z"
      },
      "ContentListLimit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Items per page. A value above 100 is clamped to 100 rather than refused; `meta.take` reports the size used. Below 1 answers 422.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 20
        }
      },
      "ContentListOrder": {
        "name": "order",
        "in": "query",
        "required": false,
        "description": "Sort direction, `DESC` by default. Ties are broken by `id` in the same direction.",
        "schema": {
          "$ref": "#/components/schemas/Order"
        }
      },
      "ContentListPage": {
        "name": "page",
        "in": "query",
        "required": false,
        "description": "Page number, from 1.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        }
      },
      "ContentListSearch": {
        "name": "search",
        "in": "query",
        "required": false,
        "description": "Case-insensitive substring of the title (`name` for tests). `%` and `_` match themselves.",
        "schema": {
          "type": "string",
          "maxLength": 200
        }
      },
      "ContentListTake": {
        "name": "take",
        "in": "query",
        "required": false,
        "deprecated": true,
        "description": "Deprecated alias of `limit`; `limit` wins when both are sent. Same clamp. Sunset 2027-04-30.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "ContentListUpdatedSince": {
        "name": "updatedSince",
        "in": "query",
        "required": false,
        "description": "ISO 8601 date-time. Only rows updated at or after it, for incremental sync. Deleted rows are not listed; track them with `resource.deleted` webhooks. Anything else answers 422.",
        "schema": {
          "type": "string",
          "format": "date-time"
        },
        "example": "2026-09-30T00:00:00Z"
      },
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "A retry with the same key and body within 24 hours returns the first answer, marked `Idempotent-Replayed: true`, and changes nothing; the same key with a different body is refused with 409, and a retry while the first request is still running with 409 too. Keys are scoped to the API key sending them, the classroom and the route, so two integrations can choose the same string. Longer than 255 characters is refused with 400. On generation routes it applies in async mode only",
        "schema": {
          "type": "string",
          "maxLength": 255
        }
      },
      "IfMatch": {
        "name": "If-Match",
        "in": "header",
        "required": false,
        "description": "Make the change only if the resource's current `ETag` is one of these tags (strong comparison; `*` matches any existing resource). Otherwise nothing changes and the answer is 412 `content_precondition_failed` with `currentETag`. On a chapter, lesson or scene route, send the tag of the course or video. Without this header the change is made as before",
        "schema": {
          "type": "string",
          "examples": [
            "\"v12\""
          ]
        }
      },
      "IfNoneMatch": {
        "name": "If-None-Match",
        "in": "header",
        "required": false,
        "description": "Answer 304 Not Modified with no body when the resource's current `ETag` is one of these tags (weak comparison)",
        "schema": {
          "type": "string",
          "examples": [
            "\"v12\""
          ]
        }
      },
      "PreferRespondAsync": {
        "name": "Prefer",
        "in": "header",
        "required": false,
        "description": "`respond-async` answers 202 with a run id instead of streaming SSE; the work continues if the caller disconnects",
        "schema": {
          "type": "string",
          "examples": [
            "respond-async"
          ]
        }
      }
    },
    "headers": {
      "Deprecation": {
        "description": "Sent when the body still carries deprecated aliases (`items`, `totalCount`, `total` on lists, `success` on deletes): `@1790726400`, the RFC 9745 date 2026-09-30T00:00:00Z",
        "schema": {
          "type": "string",
          "examples": [
            "@1790726400"
          ]
        }
      },
      "ETag": {
        "description": "The resource's version, a strong entity tag: `\"v<version>\"`, or `\"u<milliseconds>\"` for a resource nothing has changed since versions started being kept. A course's tag covers its chapters and lessons, a video's its scenes and a test's its items, so chapter, lesson and scene routes answer with the parent's tag. Send it back in `If-Match` to change the resource only if nobody changed it since, or in `If-None-Match` to skip downloading an unchanged resource",
        "schema": {
          "type": "string",
          "examples": [
            "\"v12\"",
            "\"u1790726400000\""
          ]
        }
      },
      "Idempotent-Replayed": {
        "description": "`true` when this is the stored answer to an earlier request with the same `Idempotency-Key`; nothing was changed again. Absent on a first answer",
        "schema": {
          "type": "string",
          "enum": [
            "true"
          ]
        }
      },
      "Link": {
        "description": "With `Deprecation`: the migration guide, `rel=\"deprecation\"`",
        "schema": {
          "type": "string",
          "examples": [
            "<https://tutorflow.io/resources/integrations/content-api-versioning>; rel=\"deprecation\""
          ]
        }
      },
      "Location": {
        "description": "The run status route to poll",
        "schema": {
          "type": "string"
        }
      },
      "Preference-Applied": {
        "description": "`respond-async` when the request ran asynchronously",
        "schema": {
          "type": "string"
        }
      },
      "Request-Id": {
        "description": "Identifies this request. A safe `X-Request-Id` or `Request-Id` you sent (up to 128 letters, digits, `.`, `_` or `-`) is echoed; otherwise a new UUID. Error bodies repeat it as `error.requestId`; quote it when you contact support",
        "schema": {
          "type": "string",
          "maxLength": 128
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before calling again",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "Sunset": {
        "description": "With `Deprecation`: when the aliases stop being sent (RFC 8594)",
        "schema": {
          "type": "string",
          "examples": [
            "Fri, 30 Apr 2027 00:00:00 GMT"
          ]
        }
      },
      "X-RateLimit-Limit": {
        "description": "Requests this key may make per 60 second window",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Remaining": {
        "description": "Requests left in the current window",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Reset": {
        "description": "Seconds until the current window resets",
        "schema": {
          "type": "integer"
        }
      }
    },
    "responses": {
      "KeyError400": {
        "description": "The request is invalid (`content_invalid_request`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError401": {
        "description": "The credential is missing or invalid (`content_invalid_api_key`). Every 401 counts against the calling address; see 429",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError402": {
        "description": "Not enough AI Credits, a failed payment, or the API key reached its monthly credit limit (`content_payment_required`, `content_payment_failed`, `content_key_budget_exceeded`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError403": {
        "description": "The credential lacks the scope or classroom this route needs (`content_forbidden`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError404": {
        "description": "Not found (`content_not_found`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError409": {
        "description": "Conflict: already running, or an Idempotency-Key reused with a different request (`content_conflict`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError412": {
        "description": "Precondition failed (`content_precondition_failed`): the resource changed since the `If-Match` tag, or it does not exist or this key cannot see it. Nothing was changed. `error.currentETag` is the current tag, or null when the resource is not visible",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError422": {
        "description": "Validation failed (`content_invalid_request`) with field `details`, including an id path parameter that is not a UUID",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyError429": {
        "description": "The key used its per-minute budget, or the calling address failed authentication more than 300 times this minute and is refused before its key is checked (`content_rate_limit_exceeded`)",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        }
      },
      "KeyError500": {
        "description": "Unexpected error (`content_internal_error`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "KeyNotModified304": {
        "description": "Not modified: the `ETag` sent in `If-None-Match` is still current. No body",
        "headers": {
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError400": {
        "description": "The request is invalid (`content_invalid_request`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError401": {
        "description": "The admin session is missing or expired (`content_session_required`). Sign in again; an API key does not work on this route",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError402": {
        "description": "Not enough AI Credits, or a failed payment (`content_payment_required`, `content_payment_failed`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError403": {
        "description": "The credential lacks the scope or classroom this route needs (`content_forbidden`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError404": {
        "description": "Not found (`content_not_found`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError409": {
        "description": "Conflict: already running, or an Idempotency-Key reused with a different request (`content_conflict`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError422": {
        "description": "Validation failed (`content_invalid_request`) with field `details`, including an id path parameter that is not a UUID",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      },
      "SessionError500": {
        "description": "Unexpected error (`content_internal_error`)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentApiError"
            }
          }
        },
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        }
      }
    },
    "schemas": {
      "AddSceneDto": {
        "type": "object",
        "properties": {
          "insertAfterSceneId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Insert after this scene; omit to append"
          }
        }
      },
      "ChatCourseQuizDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "question": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/QuizType"
          },
          "sequence": {
            "type": "number"
          },
          "options": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "correctAnswers": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "explanation": {
            "type": [
              "string",
              "null"
            ]
          },
          "showFeedback": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "sequence"
        ]
      },
      "ClassroomTestLevelType": {
        "type": "string",
        "enum": [
          "EASY",
          "MEDIUM",
          "HARD"
        ]
      },
      "ClassroomTestVisibilityType": {
        "type": "string",
        "enum": [
          "PUBLIC",
          "PRIVATE",
          "UNLISTED"
        ]
      },
      "ContentApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable code",
                "examples": [
                  "content_invalid_request",
                  "content_invalid_api_key",
                  "content_forbidden",
                  "content_not_found",
                  "content_conflict",
                  "content_payment_required",
                  "content_payment_failed",
                  "content_rate_limit_exceeded",
                  "content_internal_error",
                  "content_insufficient_scope",
                  "content_classroom_not_allowed",
                  "content_api_key_not_active",
                  "content_session_required",
                  "content_payload_too_large",
                  "content_api_key_active",
                  "content_key_budget_exceeded",
                  "content_precondition_failed",
                  "content_sandbox_unsupported",
                  "content_sandbox_spend_blocked"
                ]
              },
              "message": {
                "type": "string"
              },
              "status": {
                "type": "integer",
                "description": "The HTTP status, repeated"
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "description": "Field-level problems of a validation failure"
              },
              "requiredScope": {
                "type": "string",
                "description": "On a 403 for a missing scope"
              },
              "retryAfterSeconds": {
                "type": "integer",
                "description": "On a 429: seconds until the key, or the address after repeated failed authentication, may call again"
              },
              "limit": {
                "type": "integer",
                "description": "On `content_key_budget_exceeded`: the key's monthly AI Credit limit"
              },
              "spent": {
                "type": "integer",
                "description": "On `content_key_budget_exceeded`: credits the key spent this UTC month, net of refunds"
              },
              "requested": {
                "type": "integer",
                "description": "On `content_key_budget_exceeded`: credits the refused action would have cost"
              },
              "resetsAt": {
                "type": "string",
                "format": "date-time",
                "description": "On `content_key_budget_exceeded`: 00:00 UTC on the first of next month, when the key's budget starts again"
              },
              "currentETag": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "On `content_precondition_failed`: the resource's current `ETag`, or null when it does not exist or this key cannot see it"
              },
              "requestId": {
                "type": "string",
                "description": "The `Request-Id` of the response"
              }
            },
            "required": [
              "code",
              "message",
              "status",
              "requestId"
            ]
          }
        },
        "required": [
          "error"
        ],
        "description": "Every Content API error has this shape."
      },
      "ContentApiKeyCreatedResDto": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string"
          },
          "keyId": {
            "type": "string",
            "format": "uuid"
          },
          "keyPrefix": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rateLimitPerMinute": {
            "type": "integer"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "description": "`live` acts on real content and spends AI Credits. `test` works only in the organization's sandbox classroom, spends nothing and reaches only test webhook endpoints. Test keys read `tf_content_test_...`."
          },
          "scopes": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "classroomIds": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "expiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "previousKeyExpiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "Set on rotation: when the replaced key stops working"
          },
          "monthlyCreditLimit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "AI Credits per UTC month; null means no limit of its own. A rotated key keeps the limit and starts with nothing spent"
          }
        },
        "required": [
          "apiKey",
          "keyId",
          "keyPrefix",
          "name",
          "rateLimitPerMinute",
          "scopes",
          "classroomIds",
          "monthlyCreditLimit",
          "mode"
        ]
      },
      "ContentApiKeyExpiringEvent": {
        "type": "object",
        "properties": {
          "keyId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "keyPrefix": {
            "type": "string",
            "description": "The first characters of the key, as the key list shows them"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "keyId",
          "name",
          "keyPrefix",
          "expiresAt",
          "event"
        ]
      },
      "ContentApiKeyFilterLabel": {
        "type": "object",
        "description": "A key as the credit history and audit log filters name it. Deleted keys are listed too, since their rows outlive them.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "keyPrefix": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "description": "`test` keys act on the API sandbox only."
          },
          "isDeleted": {
            "type": "boolean",
            "description": "True once an admin deleted the key; it no longer appears in the key list."
          }
        },
        "required": [
          "id",
          "name",
          "keyPrefix",
          "mode",
          "isDeleted"
        ]
      },
      "ContentApiKeyLabel": {
        "type": [
          "object",
          "null"
        ],
        "description": "The key a row belongs to, named even after the key was deleted. Null for rows from the TutorFlow app",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "keyPrefix": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "description": "`test` keys act on the API sandbox only."
          }
        },
        "required": [
          "id",
          "name",
          "keyPrefix",
          "mode"
        ]
      },
      "ContentApiScope": {
        "type": "string",
        "description": "Omit for a key that holds every scope except the opt-in learner scopes. `learners:read` and `learners:write` are opt-in: a key holds them only when its list names them. `learners:read` reads the learner routes and, on a key with a list, adds learner names and ids to course stats (a key without a list keeps them there, as it always has). `learners:write` invites learners, removes them and changes course enrollments.",
        "enum": [
          "content:read",
          "content:write",
          "content:generate",
          "webhooks:manage",
          "learners:read",
          "learners:write"
        ]
      },
      "ContentAssetUpload": {
        "type": "object",
        "required": [
          "id",
          "purpose",
          "status",
          "assetKey",
          "contentType",
          "contentLength",
          "completedAt",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "scene-visual",
              "overlay",
              "thumbnail",
              "bgm",
              "test-audio",
              "slide-file",
              "lesson-pdf"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "unconfirmed",
              "abandoned",
              "rejected"
            ]
          },
          "assetKey": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "contentLength": {
            "type": "integer"
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ContentAssetUploadTicket": {
        "type": "object",
        "required": [
          "id",
          "purpose",
          "status",
          "assetKey",
          "uploadUrl",
          "method",
          "headers",
          "expiresAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "scene-visual",
              "overlay",
              "thumbnail",
              "bgm",
              "test-audio",
              "slide-file",
              "lesson-pdf"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "unconfirmed",
              "abandoned",
              "rejected"
            ],
            "description": "`pending` on a new upload. A replay of an older one reports its current state."
          },
          "assetKey": {
            "type": "string",
            "description": "Store this in the field that takes a key."
          },
          "uploadUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Presigned S3 URL. Treat it as a secret until it expires. Null on a replay once the upload is no longer pending."
          },
          "method": {
            "type": "string",
            "enum": [
              "PUT"
            ]
          },
          "headers": {
            "type": "object",
            "required": [
              "Content-Type",
              "Content-Length"
            ],
            "properties": {
              "Content-Type": {
                "type": "string"
              },
              "Content-Length": {
                "type": "string"
              }
            },
            "description": "Send exactly these headers with the PUT."
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "ContentAuditLogAdminItem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ContentAuditLogItem"
          },
          {
            "type": "object",
            "properties": {
              "actorName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The admin's display name (full name, else username) when the row is an admin's change in TutorFlow. Only on the admin session route."
              }
            }
          }
        ]
      },
      "ContentAuditLogAdminPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentAuditLogAdminItem"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentAuditLogItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "apiKeyId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The key that made the request; null on a key or webhook change an admin made in the app"
          },
          "apiKey": {
            "$ref": "#/components/schemas/ContentApiKeyLabel"
          },
          "actorUserId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The signed-in admin, on key and webhook changes made in the app"
          },
          "classroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "method": {
            "type": "string",
            "examples": [
              "POST",
              "PATCH",
              "DELETE"
            ]
          },
          "route": {
            "type": "string",
            "description": "The route template, e.g. `/v1/content/classrooms/:classroomId/courses/:courseId`"
          },
          "resourceType": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "course",
              "test",
              "module",
              "slide",
              "video",
              "game",
              "simulation",
              "webhook",
              "api_key"
            ]
          },
          "resourceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "statusCode": {
            "type": "integer",
            "description": "The HTTP status the request was answered with; failed changes are recorded too"
          },
          "idempotencyKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "requestId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `Request-Id` the response carried"
          },
          "deprecatedFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Deprecated response fields a read received. Such reads are recorded at most once an hour per key and route"
          }
        },
        "required": [
          "id",
          "createdAt",
          "apiKeyId",
          "apiKey",
          "actorUserId",
          "classroomId",
          "method",
          "route",
          "resourceType",
          "resourceId",
          "statusCode",
          "idempotencyKey",
          "requestId",
          "deprecatedFields"
        ]
      },
      "ContentAuditLogPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentAuditLogItem"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentBuildHistoryEntry": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer"
          },
          "contentKey": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "restoredFromVersion": {
            "type": "integer"
          }
        },
        "required": [
          "version",
          "contentKey",
          "createdAt",
          "source"
        ]
      },
      "ContentChapter": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer",
            "description": "1-based position within the course"
          },
          "lessons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentLessonSummary"
            }
          }
        },
        "required": [
          "id",
          "courseId",
          "title",
          "slug",
          "position",
          "lessons"
        ]
      },
      "ContentClassroomResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "isSandbox": {
            "type": "boolean",
            "description": "True for the organization's sandbox, the one classroom a test key lists and uses. A live key never sees it."
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "locale",
          "isSandbox"
        ]
      },
      "ContentConcept": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "prerequisiteKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "key",
          "title",
          "description",
          "prerequisiteKeys",
          "createdAt"
        ]
      },
      "ContentConceptList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentConcept"
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "ContentCourse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "contentType": {
            "type": "string",
            "description": "Absent on a single read"
          },
          "level": {
            "type": [
              "string",
              "null"
            ]
          },
          "isPublic": {
            "type": "boolean",
            "description": "Whether the course is published. It starts false: only enrolled learners and organisation admins can open it, and the classroom site does not list it. Sent on every answer."
          },
          "visibility": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "totalLearnerCount": {
            "type": "integer",
            "description": "Only on a list"
          },
          "lessons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentCourseLesson"
            },
            "description": "Only when the request asked for stats"
          },
          "chapters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentCourseChapter"
            },
            "description": "Only on a single read with stats"
          },
          "stats": {
            "$ref": "#/components/schemas/ContentCourseStats",
            "description": "Only on a single read with stats"
          },
          "editorUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The classroom editor for this resource. Opening it takes a TutorFlow sign-in as an admin of the organization; for an agent account, at first only the person who verified its email. Null in the sandbox classroom, and for a course with no course-editor session (courses created through the API before 2026-10-01). Sent on create, read, update and list answers."
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The course's page on the classroom site, while the course is PUBLIC (the default) and isPublic is true. A course starts with isPublic false; publish it with a PATCH that sends isPublic true. Lessons created through the API stay hidden there until they are sent with isPublic true. Null otherwise and in the sandbox classroom. Replaces the Agent Platform share pages. Sent on create, read, update and list answers."
          }
        },
        "required": [
          "id",
          "classroomId",
          "title",
          "description",
          "thumbnail",
          "slug",
          "level",
          "visibility",
          "createdAt",
          "updatedAt"
        ]
      },
      "ContentCourseChapter": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "sequence": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "courseId",
          "title",
          "slug",
          "sequence",
          "createdAt",
          "updatedAt"
        ]
      },
      "ContentCourseDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deleted": {
            "const": true
          },
          "success": {
            "const": true,
            "deprecated": true,
            "description": "Read `deleted` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          },
          "chatSessionId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "id",
          "deleted",
          "success"
        ]
      },
      "ContentCourseLesson": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "isPublic": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "isPdfDownloadEnabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ]
          },
          "chapterId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "sequence": {
            "type": [
              "integer",
              "null"
            ]
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "stats": {
            "type": "object",
            "properties": {
              "totalDoneLessonCount": {
                "type": "integer"
              },
              "totalLearningTime": {
                "type": "number"
              }
            },
            "required": [
              "totalDoneLessonCount",
              "totalLearningTime"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "type",
          "isPublic",
          "videoUrl",
          "isPdfDownloadEnabled",
          "content",
          "status",
          "sourceLanguage",
          "chapterId",
          "sequence",
          "slug"
        ]
      },
      "ContentCourseList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentCourse"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentPageMeta"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentCourse"
            },
            "deprecated": true,
            "description": "Read `data` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          },
          "totalCount": {
            "type": "integer",
            "deprecated": true,
            "description": "Read `meta.itemCount` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "data",
          "meta",
          "items",
          "totalCount"
        ]
      },
      "ContentCourseProgress": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ContentEnrollment"
          },
          {
            "type": "object",
            "properties": {
              "lessons": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ContentLessonProgress"
                },
                "description": "Only with `courseId`, in course order."
              }
            }
          }
        ]
      },
      "ContentCourseStats": {
        "type": "object",
        "properties": {
          "totalLearners": {
            "type": "integer"
          },
          "totalLearningTime": {
            "type": "number"
          },
          "averageLearnerLearningTime": {
            "type": "number"
          },
          "totalCompletedLessonCount": {
            "type": "integer"
          },
          "averageCompletedLessonCount": {
            "type": "number"
          },
          "totalDoneLessonCount": {
            "type": "integer"
          },
          "behindLearnerCount": {
            "type": "integer"
          },
          "mostBehindLearner": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "username": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "fullName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "doneCount": {
                "type": "integer"
              }
            },
            "required": [
              "username",
              "fullName",
              "doneCount"
            ],
            "description": "Only for a key with `learners:read` (or a key without scopes). Left out otherwise."
          },
          "topLearners": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "format": "uuid"
                },
                "username": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "fullName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "doneCount": {
                  "type": "integer"
                }
              },
              "required": [
                "userId",
                "username",
                "fullName",
                "doneCount"
              ]
            },
            "description": "Only for a key with `learners:read` (or a key without scopes). Left out otherwise."
          },
          "dailyLearningTime": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string"
                },
                "totalTime": {
                  "type": "number"
                }
              },
              "required": [
                "date",
                "totalTime"
              ]
            },
            "description": "One bucket per UTC calendar day, oldest first, ending today (UTC). `date` is `YYYY-MM-DD`."
          }
        },
        "required": [
          "totalLearners",
          "totalLearningTime",
          "averageLearnerLearningTime",
          "totalCompletedLessonCount",
          "averageCompletedLessonCount",
          "totalDoneLessonCount",
          "behindLearnerCount",
          "dailyLearningTime"
        ],
        "description": "Aggregate counts for every key. The learner-level fields need `learners:read`; without it they are omitted rather than answered with 403, so a dashboard of totals keeps working on a read-only key."
      },
      "ContentCreditHistoryItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "type": "string",
            "description": "The action or balance change, e.g. `CREATE_GAME_BUILD`, `REFUND`, `PURCHASE`"
          },
          "kind": {
            "type": "string",
            "enum": [
              "charge",
              "refund",
              "adjustment"
            ],
            "description": "`charge` spent credits on an AI action. `refund` gave back a charge for work that failed. `adjustment` is any other balance change: purchases, grants, recharges and corrections"
          },
          "amount": {
            "type": "integer",
            "minimum": 0,
            "description": "Always positive; `kind` says which way it moved the balance"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "classroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "apiKeyId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The key that spent or got back the credits; null for the app and for adjustments. Rows written before per-key attribution existed are null too"
          },
          "apiKey": {
            "$ref": "#/components/schemas/ContentApiKeyLabel"
          }
        },
        "required": [
          "id",
          "createdAt",
          "type",
          "kind",
          "amount",
          "note",
          "classroomId",
          "apiKeyId",
          "apiKey"
        ]
      },
      "ContentCreditHistoryPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentCreditHistoryItem"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentCurriculum": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentChapter"
            }
          },
          "unassignedLessons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentLessonSummary"
            },
            "description": "Lessons in no chapter"
          }
        },
        "required": [
          "data",
          "unassignedLessons"
        ]
      },
      "ContentCursorPageMeta": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "description": "The page size used, after clamping"
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Send as `cursor` for the next page; null on the last page"
          }
        },
        "required": [
          "limit",
          "hasNextPage",
          "nextCursor"
        ]
      },
      "ContentDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deleted": {
            "const": true
          },
          "success": {
            "const": true,
            "deprecated": true,
            "description": "Read `deleted` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "id",
          "deleted",
          "success"
        ]
      },
      "ContentDeprecatedSuccess": {
        "type": "object",
        "properties": {
          "success": {
            "const": true,
            "deprecated": true,
            "description": "Deprecated: read the resource fields. Kept for clients of the old `{ success: true }` answer. Sunset 2027-04-30."
          }
        },
        "required": [
          "success"
        ]
      },
      "ContentEnrollment": {
        "type": "object",
        "properties": {
          "learnerId": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "enrolledAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedLessons": {
            "type": "integer",
            "minimum": 0
          },
          "totalLessons": {
            "type": "integer",
            "minimum": 0
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the learner first finished every lesson. Null until then, and for courses finished before TutorFlow recorded it."
          },
          "lastActivityAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The learner's latest lesson activity in the course."
          }
        },
        "required": [
          "learnerId",
          "courseId",
          "enrolledAt",
          "completedLessons",
          "totalLessons",
          "completedAt",
          "lastActivityAt"
        ]
      },
      "ContentEnrollmentChange": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentEnrollment"
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "ContentEnrollmentPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentEnrollment"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentEvaluation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "PROCESSING",
              "COMPLETED",
              "FAILED"
            ]
          },
          "evaluationType": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "sync",
              "async"
            ]
          },
          "isTerminal": {
            "type": "boolean"
          },
          "pollAfterMs": {
            "type": [
              "integer",
              "null"
            ],
            "description": "While an async evaluation runs, when to ask again."
          },
          "learner": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "externalId": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "externalId",
              "name"
            ]
          },
          "conceptTags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "score": {
            "type": [
              "number",
              "null"
            ]
          },
          "maxScore": {
            "type": [
              "number",
              "null"
            ]
          },
          "normalizedScore": {
            "type": [
              "number",
              "null"
            ],
            "description": "0 to 100."
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ]
          },
          "rubricBreakdown": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "criterion": {
                  "type": "string"
                },
                "score": {
                  "type": "number"
                },
                "maxScore": {
                  "type": "number"
                },
                "feedback": {
                  "type": "string"
                }
              }
            },
            "description": "Not in list rows."
          },
          "strengths": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "mistakes": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "suggestions": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "feedbackSummary": {
            "type": [
              "string",
              "null"
            ],
            "description": "Not in list rows."
          },
          "nextStep": {
            "type": [
              "string",
              "null"
            ]
          },
          "rubricFiles": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentEvaluationFile"
            },
            "description": "Not in list rows."
          },
          "answerFiles": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentEvaluationFile"
            },
            "description": "Not in list rows."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "classroomId",
          "status",
          "evaluationType",
          "mode",
          "isTerminal",
          "pollAfterMs",
          "learner",
          "conceptTags",
          "score",
          "maxScore",
          "normalizedScore",
          "confidence",
          "createdAt",
          "completedAt"
        ]
      },
      "ContentEvaluationCreate": {
        "type": "object",
        "properties": {
          "evaluationType": {
            "type": "string",
            "enum": [
              "exact",
              "rubric_short_answer",
              "open_ended"
            ]
          },
          "questionText": {
            "type": "string"
          },
          "learnerAnswer": {
            "type": "string"
          },
          "referenceAnswer": {
            "type": "string",
            "description": "Required for `exact`."
          },
          "maxScore": {
            "type": "number"
          },
          "rubric": {
            "type": "object",
            "description": "Required for `rubric_short_answer` unless rubric files are sent.",
            "properties": {
              "criteria": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "maxScore": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "name",
                    "description",
                    "maxScore"
                  ]
                }
              }
            },
            "required": [
              "criteria"
            ]
          },
          "feedbackOptions": {
            "type": "object",
            "properties": {
              "tone": {
                "type": "string"
              },
              "detailLevel": {
                "type": "string"
              },
              "includeSuggestions": {
                "type": "boolean"
              },
              "includeNextStep": {
                "type": "boolean"
              }
            }
          },
          "language": {
            "type": "string",
            "default": "en"
          },
          "subject": {
            "type": "string"
          },
          "gradeLevel": {
            "type": "string"
          },
          "difficulty": {
            "type": "string"
          },
          "submitter": {
            "type": "object",
            "properties": {
              "learnerId": {
                "type": "string",
                "description": "Your id for the learner; feeds the learner model."
              },
              "learnerName": {
                "type": "string"
              }
            }
          },
          "conceptTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The concepts the answer shows; each becomes a concept of the learner model."
          },
          "mode": {
            "type": "string",
            "enum": [
              "sync",
              "async"
            ],
            "default": "sync"
          }
        },
        "required": [
          "evaluationType",
          "questionText",
          "learnerAnswer"
        ]
      },
      "ContentEvaluationEvent": {
        "type": "object",
        "properties": {
          "resourceType": {
            "const": "evaluation"
          },
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "evaluationType": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED",
              "FAILED"
            ]
          },
          "learnerExternalId": {
            "type": [
              "string",
              "null"
            ]
          },
          "score": {
            "type": [
              "number",
              "null"
            ],
            "description": "On completion"
          },
          "maxScore": {
            "type": [
              "number",
              "null"
            ],
            "description": "On completion"
          },
          "normalizedScore": {
            "type": [
              "number",
              "null"
            ],
            "description": "On completion, 0 to 100"
          },
          "error": {
            "type": "string",
            "description": "On failure"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an evaluation in the sandbox (sent only to test endpoints), true otherwise."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "resourceType",
          "resourceId",
          "classroomId",
          "evaluationType",
          "status",
          "event"
        ]
      },
      "ContentEvaluationFile": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          }
        },
        "required": [
          "url",
          "fileName",
          "mimeType",
          "size"
        ]
      },
      "ContentEvaluationPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentEvaluation"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentGame": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "brief": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The plan the build follows"
          },
          "contentKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "contentVersion": {
            "type": "integer"
          },
          "buildHistory": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentBuildHistoryEntry"
            }
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "content": {
            "type": [
              "string",
              "null"
            ],
            "description": "The built HTML page. Only on a single read"
          },
          "editorUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The classroom editor for this resource. Opening it takes a TutorFlow sign-in as an admin of the organization; for an agent account, at first only the person who verified its email. Null in the sandbox classroom. Sent on create, read, update, restore and list answers."
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The public play page, once the game is PUBLIC and its first build has stored a page (contentKey is set). Anyone with the link can open it; the page is not indexed by search engines. Null otherwise and in the sandbox classroom. Sent on create, read, update, restore and list answers."
          }
        },
        "required": [
          "id",
          "classroomId",
          "title",
          "description",
          "visibility",
          "slug",
          "metadata",
          "brief",
          "contentKey",
          "contentVersion",
          "buildHistory",
          "thumbnail",
          "createdAt",
          "updatedAt"
        ],
        "description": "A classroom game"
      },
      "ContentGameList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentGame"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentPageMeta"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentGame"
            },
            "deprecated": true,
            "description": "Read `data` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          },
          "totalCount": {
            "type": "integer",
            "deprecated": true,
            "description": "Read `meta.itemCount` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "data",
          "meta",
          "items",
          "totalCount"
        ]
      },
      "ContentGenerateCourseRequest": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000,
            "description": "The learning goal the course is built around. Required unless the deprecated `prompt` is sent."
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000,
            "description": "Deprecated: use `topic`. Read only when `topic` is absent.",
            "deprecated": true
          },
          "title": {
            "type": "string",
            "maxLength": 255,
            "description": "Course title; the outline writes one when absent."
          },
          "description": {
            "type": "string",
            "maxLength": 4000,
            "description": "Course description; the outline writes one when absent."
          },
          "level": {
            "type": "string",
            "enum": [
              "beginner",
              "intermediate",
              "advanced"
            ]
          },
          "lessonCount": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "Lessons in the whole course. Without it the outline plans 12 (3 chapters of 4)."
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "Output language as a BCP 47 tag. Without it the course follows the language of `topic`, then `title`."
          }
        }
      },
      "ContentGenerateModuleRequest": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000,
            "description": "What the module teaches."
          },
          "type": {
            "type": "string",
            "enum": [
              "markdown",
              "ai-tutor",
              "chat-ai",
              "coding-lesson",
              "coding-test",
              "notebook",
              "web",
              "flashcard",
              "dictation",
              "reading-comprehension",
              "translation",
              "shadowing",
              "roleplay"
            ],
            "description": "The lesson type, one the module editor offers. `exam` is not one: exams are made inside a course, and asking for one answers 422. Without it the type is chosen from the topic, as the editor does."
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "Output language as a BCP 47 tag, e.g. `ko`, `pt-BR`, `zh-TW`. Without it the output follows the language of the prompt."
          },
          "referenceText": {
            "type": "string",
            "maxLength": 100000,
            "description": "Reference material as plain text or Markdown, used the way the editor uses an attached file."
          }
        },
        "required": [
          "topic"
        ]
      },
      "ContentGenerateSlidesRequest": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000,
            "description": "What the deck teaches."
          },
          "instructions": {
            "type": "string",
            "maxLength": 4000,
            "description": "Who the deck is for and what to stress. Shapes the outline and is kept on the deck as its context."
          },
          "slideCount": {
            "type": "integer",
            "minimum": 5,
            "maximum": 20,
            "default": 10,
            "description": "Pages in the deck, 5 to 20, including the title, table of contents and summary pages."
          },
          "textLength": {
            "type": "string",
            "enum": [
              "concise",
              "detailed"
            ],
            "default": "detailed",
            "description": "How much text each page carries."
          },
          "themeId": {
            "type": "string",
            "enum": [
              "default",
              "breeze",
              "sunset",
              "forest",
              "rose",
              "alien",
              "aurora",
              "velvet-tides",
              "midnight"
            ],
            "default": "default",
            "description": "The deck theme, one of the slide editor themes."
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "Output language as a BCP 47 tag. Without it the deck follows the language of `topic`."
          }
        },
        "required": [
          "topic"
        ]
      },
      "ContentGenerateTestRequest": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000,
            "description": "What the test covers."
          },
          "instructions": {
            "type": "string",
            "maxLength": 4000,
            "description": "Who takes the test and what it should stress."
          },
          "level": {
            "type": "string",
            "enum": [
              "EASY",
              "MEDIUM",
              "HARD"
            ],
            "default": "MEDIUM"
          },
          "itemCount": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "default": 20
          },
          "itemTypes": {
            "type": "array",
            "minItems": 1,
            "maxItems": 30,
            "items": {
              "type": "string",
              "enum": [
                "select",
                "blank",
                "open-ended",
                "true-false",
                "submission"
              ]
            },
            "description": "One type per question, in order; must have `itemCount` entries (422 otherwise). By default the editor's mix: three true/false first, open-ended last, fill-in-the-blank before them, multiple choice between."
          },
          "totalScore": {
            "type": "integer",
            "minimum": 1,
            "default": 100
          },
          "passingValueType": {
            "type": "string",
            "enum": [
              "SCORE",
              "PERCENTAGE"
            ],
            "default": "SCORE"
          },
          "passingValue": {
            "type": "number",
            "minimum": 0,
            "default": 80
          },
          "language": {
            "type": "string",
            "maxLength": 35,
            "description": "Output language as a BCP 47 tag, e.g. `ko`, `pt-BR`, `zh-TW`. Without it the output follows the language of the prompt."
          }
        },
        "required": [
          "topic"
        ]
      },
      "ContentGenerationAccepted": {
        "type": "object",
        "properties": {
          "runId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The run to follow at `statusUrl`; the completion webhook carries the same id. Briefs have one too."
          },
          "status": {
            "const": "running"
          },
          "kind": {
            "type": "string",
            "enum": [
              "game",
              "simulation"
            ]
          },
          "phase": {
            "type": "string",
            "enum": [
              "brief",
              "build",
              "revise"
            ]
          },
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "statusUrl": {
            "type": "string",
            "description": "The run status route of the resource"
          }
        },
        "required": [
          "runId",
          "status",
          "kind",
          "phase",
          "resourceId",
          "classroomId",
          "statusUrl"
        ]
      },
      "ContentGenerationEvent": {
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "enum": [
              "game",
              "simulation"
            ]
          },
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "runId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The run id from the 202 answer or the stream. Set for briefs as well."
          },
          "phase": {
            "type": "string",
            "enum": [
              "brief",
              "build",
              "revise"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "failed"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "violations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contentVersion": {
            "type": [
              "integer",
              "null"
            ]
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "resourceType",
          "resourceId",
          "classroomId",
          "runId",
          "phase",
          "status",
          "error",
          "contentVersion",
          "event"
        ]
      },
      "ContentGenerationRun": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "test",
              "module",
              "course",
              "slide"
            ]
          },
          "classroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/ContentGenerationRunState"
          },
          "stage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The step running or last run: `generating` (test); `creating`, `generating` (module); `outlining`, `creating_course`, `generating_lessons` (course); `outlining`, `creating_deck`, `generating_pages` (slide deck)."
          },
          "progress": {
            "$ref": "#/components/schemas/ContentGenerationRunProgress"
          },
          "resourceId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The test, module, course or slide deck id, once it exists."
          },
          "creditsCharged": {
            "type": "integer",
            "description": "Credits the run has been charged so far, read from the organization credit history (charges minus refunds that name the run). Work an interrupted attempt saved but never charged counts nothing."
          },
          "estimatedCredits": {
            "type": "integer"
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the run failed; null otherwise. A step is tried at most 3 times, across errors and server restarts."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "resumedFromRunId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The failed run this run continues (`POST /v1/content/classrooms/{classroomId}/runs/{runId}/resume`); null for a run started by a generate route."
          }
        },
        "required": [
          "runId",
          "kind",
          "classroomId",
          "status",
          "stage",
          "progress",
          "resourceId",
          "creditsCharged",
          "estimatedCredits",
          "error",
          "createdAt",
          "finishedAt",
          "resumedFromRunId"
        ]
      },
      "ContentGenerationRunAccepted": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "test",
              "module",
              "course",
              "slide"
            ]
          },
          "estimatedCredits": {
            "type": "integer",
            "description": "What the whole run should charge: test 3, module 6, course 3 + 6 per planned lesson, slide deck 1 per text page + 3 per image page (every fourth page from the first)."
          },
          "statusUrl": {
            "type": "string",
            "description": "The run status route, also sent as `Location`."
          }
        },
        "required": [
          "runId",
          "status",
          "kind",
          "estimatedCredits",
          "statusUrl"
        ]
      },
      "ContentGenerationRunEvent": {
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "enum": [
              "test",
              "module",
              "course",
              "slide"
            ]
          },
          "resourceId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The test, module, course or slide deck; null when the run failed before creating it. A failed course run keeps the course and the lessons already written; a failed slide run keeps the deck and the pages already written."
          },
          "classroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "failed"
            ]
          },
          "stage": {
            "type": [
              "string",
              "null"
            ]
          },
          "progress": {
            "$ref": "#/components/schemas/ContentGenerationRunProgress"
          },
          "creditsCharged": {
            "type": "integer"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "resourceType",
          "resourceId",
          "classroomId",
          "runId",
          "status",
          "stage",
          "progress",
          "creditsCharged",
          "error",
          "event"
        ]
      },
      "ContentGenerationRunPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentGenerationRun"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentGenerationRunProgress": {
        "type": "object",
        "properties": {
          "completed": {
            "type": "integer"
          },
          "total": {
            "type": "integer",
            "description": "For a course or a slide deck, 0 until the outline is written."
          },
          "unit": {
            "type": "string",
            "description": "`test` for a test, `step` for a module (create, then write), `lesson` for a course, `page` for a slide deck."
          }
        },
        "required": [
          "completed",
          "total",
          "unit"
        ]
      },
      "ContentGenerationRunState": {
        "type": "string",
        "enum": [
          "queued",
          "running",
          "completed",
          "failed"
        ],
        "description": "Where a generation run is: `queued` and `running` until it settles as `completed` or `failed`."
      },
      "ContentGenerationRunStatus": {
        "type": "object",
        "properties": {
          "active": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "runId": {
                "type": "string"
              },
              "phase": {
                "type": "string",
                "enum": [
                  "brief",
                  "build",
                  "revise"
                ]
              },
              "stage": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "startedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "runId",
              "phase",
              "stage",
              "startedAt"
            ]
          },
          "last": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "runId": {
                "type": "string"
              },
              "phase": {
                "type": "string",
                "enum": [
                  "brief",
                  "build",
                  "revise"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "done",
                  "failed"
                ]
              },
              "message": {
                "type": "string"
              },
              "violations": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "startedAt": {
                "type": "string",
                "format": "date-time"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "runId",
              "phase",
              "status",
              "startedAt",
              "finishedAt"
            ]
          }
        },
        "required": [
          "active",
          "last"
        ],
        "description": "Whether a build, revision or brief is running and how the last one ended. A running build or revision is reported ahead of a running brief. A finished run stays readable for an hour. Only runs on this server since its last deploy are known."
      },
      "ContentIntegrationApiKeyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "keyPrefix": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "organizationId": {
            "type": "string",
            "format": "uuid"
          },
          "rateLimitPerMinute": {
            "type": "number"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "description": "`live` acts on real content and spends AI Credits. `test` works only in the organization's sandbox classroom, spends nothing and reaches only test webhook endpoints. Test keys read `tf_content_test_...`."
          },
          "lastUsedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "scopes": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Null means every scope"
          },
          "classroomIds": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Null means every classroom in the organization"
          },
          "isLegacyFullAccess": {
            "type": "boolean",
            "description": "True for a key without a scope list (`scopes: null`), which holds every scope, including ones added later, except the opt-in `learners:read` and `learners:write`. Narrow it with PATCH"
          },
          "issuerStatus": {
            "type": "string",
            "enum": [
              "active",
              "not_admin",
              "unknown"
            ],
            "description": "`active`: the issuing admin still is one. `not_admin`: they left or lost the admin role, so what the key creates is owned by another admin; consider rotating. `unknown`: the key predates issuer tracking"
          },
          "monthlyCreditLimit": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "description": "AI Credits the key may spend per UTC calendar month, net of refunds. Null means no limit of its own: the key spends from the organization balance only"
          },
          "spentThisMonth": {
            "type": "integer",
            "minimum": 0,
            "description": "AI Credits the key spent since 00:00 UTC on the first of this month: its charges minus its refunds, never below 0. Requests are refused with `content_key_budget_exceeded` when this plus the cost of the next action would pass `monthlyCreditLimit`"
          },
          "sandboxClassroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For a test key, the organization's sandbox classroom, the only one it may use. Null for live keys"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "name",
          "keyPrefix",
          "status",
          "organizationId",
          "rateLimitPerMinute",
          "isLegacyFullAccess",
          "issuerStatus",
          "monthlyCreditLimit",
          "spentThisMonth",
          "mode"
        ]
      },
      "ContentIntegrationCreditBalanceResDto": {
        "type": "object",
        "properties": {
          "credit": {
            "type": "number"
          },
          "overdraftCredit": {
            "type": "number"
          },
          "overdraftLimit": {
            "type": "number"
          },
          "availableCredit": {
            "type": "number"
          },
          "isPaymentFailed": {
            "type": "boolean"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for a test key, which sees a fixed sandbox balance (1000000 credits, never changing) instead of the organization balance. True otherwise."
          }
        },
        "required": [
          "credit",
          "overdraftCredit",
          "overdraftLimit",
          "availableCredit",
          "isPaymentFailed",
          "livemode"
        ]
      },
      "ContentIntegrationJobResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sourceType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "sourceTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "requestedOutputs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "classroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "sourceResourceId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "sourceResourceType": {
            "type": [
              "string",
              "null"
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ]
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "outputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentIntegrationOutputResDto"
            }
          }
        },
        "required": [
          "id",
          "sourceType",
          "status",
          "requestedOutputs",
          "createdAt",
          "updatedAt",
          "outputs"
        ]
      },
      "ContentIntegrationOrganizationResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "SUPER_ADMIN",
              "ADMIN",
              "USER"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "role"
        ]
      },
      "ContentIntegrationOutputResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "outputType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "resourceType": {
            "type": [
              "string",
              "null"
            ]
          },
          "resourceId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "manifest": {
            "type": [
              "object",
              "null"
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ]
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "creditAmount": {
            "type": "number",
            "description": "Always 0 / null: expansion outputs are drafts and are not charged. Kept for compatibility."
          },
          "creditChargedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Always 0 / null: expansion outputs are drafts and are not charged. Kept for compatibility."
          }
        },
        "required": [
          "id",
          "outputType",
          "status",
          "creditAmount"
        ]
      },
      "ContentIntegrationOutputType": {
        "type": "string",
        "description": "Outputs to generate. Defaults to interactive_module, summary_video, expanded_quiz.",
        "enum": [
          "interactive_module",
          "summary_video",
          "expanded_quiz"
        ]
      },
      "ContentIntegrationResultResDto": {
        "type": "object",
        "properties": {
          "job": {
            "$ref": "#/components/schemas/ContentIntegrationJobResDto"
          },
          "outputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentIntegrationOutputResDto"
            }
          },
          "manifest": {
            "type": "object"
          }
        },
        "required": [
          "job",
          "outputs",
          "manifest"
        ]
      },
      "ContentIntegrationSourceType": {
        "type": "string",
        "default": "source_json",
        "enum": [
          "source_json",
          "classroom"
        ]
      },
      "ContentIntegrationWebhookDeliveryStatus": {
        "type": "string",
        "enum": [
          "PENDING",
          "SENT",
          "RETRYING",
          "FAILED"
        ]
      },
      "ContentIntegrationWebhookEventType": {
        "type": "string",
        "enum": [
          "content.completed",
          "content.failed",
          "resource.created",
          "resource.updated",
          "resource.deleted",
          "game.brief.completed",
          "game.brief.failed",
          "game.build.completed",
          "game.build.failed",
          "simulation.brief.completed",
          "simulation.brief.failed",
          "simulation.build.completed",
          "simulation.build.failed",
          "test.generation.completed",
          "test.generation.failed",
          "module.generation.completed",
          "module.generation.failed",
          "course.generation.completed",
          "course.generation.failed",
          "slide.generation.completed",
          "slide.generation.failed",
          "video.render.completed",
          "video.render.failed",
          "learner.enrolled",
          "learner.course.completed",
          "learner.test.submitted",
          "evaluation.completed",
          "evaluation.failed",
          "api_key.expiring"
        ]
      },
      "ContentIntegrationWebhookStatus": {
        "type": "string",
        "description": "DISABLED pauses deliveries without deleting the endpoint. ACTIVE turns it back on and resets its health",
        "enum": [
          "ACTIVE",
          "DISABLED"
        ]
      },
      "ContentJobEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sourceType": {
            "type": "string"
          },
          "sourceTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "requestedOutputs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "id",
          "sourceType",
          "sourceTitle",
          "status",
          "requestedOutputs",
          "completedAt",
          "event"
        ]
      },
      "ContentLearner": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The learner's TutorFlow user id."
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "The learner's name, or their username when they have not set one."
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "inactive",
              "removed"
            ]
          },
          "joinedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the learner was added to the classroom."
          }
        },
        "required": [
          "id",
          "classroomId",
          "name",
          "email",
          "status",
          "joinedAt"
        ]
      },
      "ContentLearnerCourseCompletedEvent": {
        "type": "object",
        "properties": {
          "learnerId": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "learnerId",
          "courseId",
          "classroomId",
          "completedAt",
          "event"
        ]
      },
      "ContentLearnerEnrolledEvent": {
        "type": "object",
        "properties": {
          "learnerId": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "learnerId",
          "courseId",
          "classroomId",
          "event"
        ]
      },
      "ContentLearnerInvitationResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "added",
              "invited"
            ],
            "description": "`added`: an organization member joined the classroom now. `invited`: an invitation email went out."
          },
          "learnerId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The learner's id when added; null until an invitation is accepted."
          },
          "invitation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "status": {
                    "const": "pending"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "id",
                  "status",
                  "expiresAt"
                ]
              }
            ]
          }
        },
        "required": [
          "status",
          "learnerId",
          "invitation"
        ]
      },
      "ContentLearnerMastery": {
        "type": "object",
        "properties": {
          "learner": {
            "type": "object",
            "properties": {
              "externalId": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "externalId",
              "name"
            ]
          },
          "totalEvaluations": {
            "type": "integer"
          },
          "avgNormalizedScore": {
            "type": [
              "number",
              "null"
            ]
          },
          "concepts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "masteryScore": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "signalCount": {
                  "type": "integer"
                },
                "lastEvaluatedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              },
              "required": [
                "key",
                "title",
                "status",
                "masteryScore",
                "signalCount",
                "lastEvaluatedAt"
              ]
            }
          }
        },
        "required": [
          "learner",
          "totalEvaluations",
          "avgNormalizedScore",
          "concepts"
        ]
      },
      "ContentLearnerPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentLearner"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentLearnerProgress": {
        "type": "object",
        "properties": {
          "learnerId": {
            "type": "string",
            "format": "uuid"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentCourseProgress"
            }
          }
        },
        "required": [
          "learnerId",
          "data"
        ]
      },
      "ContentLearnerRemoved": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deleted": {
            "const": true
          }
        },
        "required": [
          "id",
          "deleted"
        ]
      },
      "ContentLearnerTestSubmittedEvent": {
        "type": "object",
        "properties": {
          "learnerId": {
            "type": "string",
            "format": "uuid"
          },
          "testId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "resultId": {
            "type": "string",
            "format": "uuid",
            "description": "Read it with GET .../tests/{testId}/results/{resultId}."
          },
          "submittedAt": {
            "type": "string",
            "format": "date-time"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "learnerId",
          "testId",
          "classroomId",
          "resultId",
          "submittedAt",
          "event"
        ]
      },
      "ContentLessonDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "chapterId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer",
            "description": "1-based position within its chapter"
          },
          "isPublic": {
            "type": "boolean"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "lecture": {
            "type": [
              "string",
              "null"
            ]
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "submission": {
            "type": "object",
            "description": "Lesson submission settings matching the editor: enabled, type (code, file, text, ai, form), allowResubmit, instructions, questions, rubricText, rubric. Form questions have unique id, prompt and type (choice, code, file, text, ai); at most 20, all required. Code questions may include starterCode with language (up to 64 characters) and code (up to 100000 characters), provided to learners and snapshotted with their answers. Choice questions require 2-10 options with id and text, plus one correctOptionId hidden from learners. Replaces only metadata.submission.",
            "additionalProperties": true
          }
        },
        "required": [
          "id",
          "chapterId",
          "title",
          "description",
          "type",
          "slug",
          "position",
          "isPublic",
          "status",
          "updatedAt",
          "lecture",
          "content"
        ],
        "description": "A course lesson with its body"
      },
      "ContentLessonProgress": {
        "type": "object",
        "properties": {
          "lessonId": {
            "type": "string",
            "format": "uuid"
          },
          "chapterId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "isCompleted": {
            "type": "boolean"
          },
          "completedCount": {
            "type": "integer",
            "minimum": 0,
            "description": "How many times the learner finished the lesson."
          },
          "lastActivityAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "lessonId",
          "chapterId",
          "isCompleted",
          "completedCount",
          "lastActivityAt"
        ]
      },
      "ContentLessonSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "chapterId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer",
            "description": "1-based position within its chapter"
          },
          "isPublic": {
            "type": "boolean"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "chapterId",
          "title",
          "description",
          "type",
          "slug",
          "position",
          "isPublic",
          "status",
          "updatedAt"
        ]
      },
      "ContentModule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "isPublic": {
            "type": "boolean"
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "pdfKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "isPdfDownloadEnabled": {
            "type": "boolean"
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "lectureKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "lectureVersion": {
            "type": "integer"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "lectureImagePrompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "slug": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "pdfUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a single read"
          },
          "lecture": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only on a single read"
          },
          "quizzes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentModuleQuiz"
            },
            "description": "Only on a single read"
          },
          "editorUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The classroom editor for this resource. Opening it takes a TutorFlow sign-in as an admin of the organization; for an agent account, at first only the person who verified its email. Null in the sandbox classroom. Sent on create, read, update and list answers."
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The module's page on the classroom site, while the module has isPublic true. Null otherwise and in the sandbox classroom. Replaces the Agent Platform share pages. Sent on create, read, update and list answers."
          }
        },
        "required": [
          "id",
          "classroomId",
          "title",
          "description",
          "type",
          "isPublic",
          "videoUrl",
          "pdfKey",
          "isPdfDownloadEnabled",
          "content",
          "lectureKey",
          "lectureVersion",
          "status",
          "lectureImagePrompt",
          "metadata",
          "slug",
          "createdAt",
          "updatedAt"
        ],
        "description": "An interactive module"
      },
      "ContentModuleCopyResult": {
        "type": "object",
        "properties": {
          "lessonId": {
            "type": "string",
            "format": "uuid"
          },
          "courseLessonId": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "lessonId",
          "courseLessonId",
          "message"
        ]
      },
      "ContentModuleList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentModule"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentPageMeta"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentModule"
            },
            "deprecated": true,
            "description": "Read `data` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          },
          "totalCount": {
            "type": "integer",
            "deprecated": true,
            "description": "Read `meta.itemCount` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "data",
          "meta",
          "items",
          "totalCount"
        ]
      },
      "ContentModuleQuiz": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "question": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "options": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "correctAnswers": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "hint": {
            "type": [
              "string",
              "null"
            ]
          },
          "explanation": {
            "type": [
              "string",
              "null"
            ]
          },
          "showFeedback": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "sequence",
          "title",
          "question",
          "type",
          "options",
          "correctAnswers",
          "hint",
          "explanation",
          "showFeedback",
          "createdAt",
          "updatedAt"
        ]
      },
      "ContentPageMeta": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer"
          },
          "take": {
            "type": "integer"
          },
          "itemCount": {
            "type": "integer"
          },
          "pageCount": {
            "type": "integer"
          },
          "hasPreviousPage": {
            "type": "boolean"
          },
          "hasNextPage": {
            "type": "boolean"
          }
        },
        "required": [
          "page",
          "take",
          "itemCount",
          "pageCount",
          "hasPreviousPage",
          "hasNextPage"
        ]
      },
      "ContentResourceEvent": {
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "enum": [
              "course",
              "game",
              "module",
              "simulation",
              "slide",
              "test",
              "video"
            ]
          },
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "apiKeyId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The key that made the latest change; null when the change was made in the TutorFlow app"
          },
          "request": {
            "type": [
              "string",
              "null"
            ],
            "description": "Method and route template, e.g. `PATCH /v1/content/classrooms/:classroomId/videos/:id`; null when the change was made in the TutorFlow app"
          },
          "source": {
            "type": "string",
            "enum": [
              "api",
              "app"
            ],
            "description": "Where the latest change in this event came from: a Content API key (`api`) or the TutorFlow app (`app`)"
          },
          "resourceUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the latest change in this event was committed"
          },
          "sequence": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The resource's version after this event. It grows with every committed change to the resource; use it to drop an event older than one already applied"
          },
          "changeCount": {
            "type": "integer",
            "minimum": 1,
            "description": "How many row changes this event groups. Changes to one resource within about two seconds (at most 30) become one event"
          },
          "subresource": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "chapter",
                  "lesson",
                  "scene",
                  "item",
                  "quiz"
                ],
                "description": "`chapter` and `lesson` belong to a course, `quiz` to a module, `scene` to a video, `item` to a test"
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "For a course lesson, the lesson id the curriculum routes use; for a module quiz, the quiz `id` the module read returns"
              },
              "op": {
                "type": "string",
                "enum": [
                  "created",
                  "updated",
                  "deleted"
                ]
              }
            },
            "required": [
              "type",
              "id",
              "op"
            ],
            "description": "The one chapter, lesson, module quiz, scene or test item that changed, when exactly one did"
          },
          "subresources": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "chapter",
                    "lesson",
                    "scene",
                    "item",
                    "quiz"
                  ],
                  "description": "`chapter` and `lesson` belong to a course, `quiz` to a module, `scene` to a video, `item` to a test"
                },
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "For a course lesson, the lesson id the curriculum routes use; for a module quiz, the quiz `id` the module read returns"
                },
                "op": {
                  "type": "string",
                  "enum": [
                    "created",
                    "updated",
                    "deleted"
                  ]
                }
              },
              "required": [
                "type",
                "id",
                "op"
              ]
            },
            "description": "The chapters, lessons, module quizzes, scenes or test items that changed, when more than one did, in the order they first changed. At most 50"
          },
          "subresourcesTruncated": {
            "type": "boolean",
            "description": "Whether more than 50 subresources changed, so `subresources` is cut short"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "resourceType",
          "resourceId",
          "classroomId",
          "apiKeyId",
          "request",
          "event"
        ]
      },
      "ContentSceneSubtitle": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "offset": {
            "type": "number"
          },
          "duration": {
            "type": "number"
          }
        },
        "required": [
          "text",
          "offset",
          "duration"
        ]
      },
      "ContentSimulation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "type": "string"
          },
          "subject": {
            "type": "string",
            "description": "The field the plan places the simulation in. Set from the brief, whether generated or written with PATCH; `other` until a brief names one."
          },
          "representation": {
            "type": "string",
            "description": "`2d-canvas` or `3d-three`. Set from the brief, whether generated or written with PATCH; it decides the build and revision price."
          },
          "slug": {
            "type": "string"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "brief": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The plan the build follows"
          },
          "contentKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "contentVersion": {
            "type": "integer"
          },
          "buildHistory": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentBuildHistoryEntry"
            }
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "content": {
            "type": [
              "string",
              "null"
            ],
            "description": "The built HTML page. Only on a single read"
          },
          "editorUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The classroom editor for this resource. Opening it takes a TutorFlow sign-in as an admin of the organization; for an agent account, at first only the person who verified its email. Null in the sandbox classroom. Sent on create, read, update, restore and list answers."
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The public play page, once the simulation is PUBLIC and its first build has stored a page (contentKey is set). Anyone with the link can open it; the page is not indexed by search engines. Null otherwise and in the sandbox classroom. Sent on create, read, update, restore and list answers."
          }
        },
        "required": [
          "id",
          "classroomId",
          "title",
          "description",
          "visibility",
          "subject",
          "representation",
          "slug",
          "metadata",
          "brief",
          "contentKey",
          "contentVersion",
          "buildHistory",
          "thumbnail",
          "createdAt",
          "updatedAt"
        ],
        "description": "A classroom simulation"
      },
      "ContentSimulationList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentSimulation"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentPageMeta"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentSimulation"
            },
            "deprecated": true,
            "description": "Read `data` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          },
          "totalCount": {
            "type": "integer",
            "deprecated": true,
            "description": "Read `meta.itemCount` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "data",
          "meta",
          "items",
          "totalCount"
        ]
      },
      "ContentSlide": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "outline": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "type": "string"
          },
          "contentVersion": {
            "type": "integer"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "content": {
            "type": [
              "string",
              "null"
            ],
            "description": "The deck body. On create and on a single read"
          },
          "editorUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The classroom editor for this resource. Opening it takes a TutorFlow sign-in as an admin of the organization; for an agent account, at first only the person who verified its email. Null in the sandbox classroom. Sent on create, read, update and list answers."
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The public slide viewer, while the deck is PUBLIC. Generated decks start PUBLIC. Null otherwise and in the sandbox classroom. Replaces the Agent Platform share pages. Sent on create, read, update and list answers."
          }
        },
        "required": [
          "id",
          "classroomId",
          "title",
          "description",
          "outline",
          "visibility",
          "contentVersion",
          "metadata",
          "thumbnail",
          "slug",
          "createdAt",
          "updatedAt"
        ],
        "description": "A slide deck"
      },
      "ContentSlideList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentSlide"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentPageMeta"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentSlide"
            },
            "deprecated": true,
            "description": "Read `data` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          },
          "totalCount": {
            "type": "integer",
            "deprecated": true,
            "description": "Read `meta.itemCount` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "data",
          "meta",
          "items",
          "totalCount"
        ]
      },
      "ContentSuccess": {
        "type": "object",
        "properties": {
          "success": {
            "const": true
          }
        },
        "required": [
          "success"
        ]
      },
      "ContentTest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "visibility": {
            "type": "string"
          },
          "timeLimit": {
            "type": "number"
          },
          "passingValue": {
            "type": "number"
          },
          "passingValueType": {
            "type": "string"
          },
          "periodType": {
            "type": "string"
          },
          "periodStartDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "periodEndDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "layoutType": {
            "type": "string"
          },
          "topicPrompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "targetPrompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTestItem"
            },
            "description": "On create, on a single read, and on a list with stats"
          },
          "totalTestUserCount": {
            "type": "integer",
            "description": "Only on a list with stats"
          },
          "editorUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The classroom editor for this resource. Opening it takes a TutorFlow sign-in as an admin of the organization; for an agent account, at first only the person who verified its email. Null in the sandbox classroom. Sent on create, read, update and list answers."
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The test's page on the classroom site while the test is PUBLIC or UNLISTED. It shows the test's cover; answering needs a sign-in as a learner of the test. A PUBLIC test is also listed on the classroom site. New tests start PUBLIC. Null otherwise and in the sandbox classroom. Replaces the Agent Platform share pages. Sent on create, read, update and list answers."
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "thumbnail",
          "slug",
          "level",
          "visibility",
          "timeLimit",
          "passingValue",
          "passingValueType",
          "periodType",
          "periodStartDate",
          "periodEndDate",
          "layoutType",
          "topicPrompt",
          "targetPrompt",
          "metadata",
          "createdAt",
          "updatedAt"
        ]
      },
      "ContentTestItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "classroomTestId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "question": {
            "type": "string"
          },
          "questionAudioUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "options": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "correctAnswers": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "explanation": {
            "type": [
              "string",
              "null"
            ]
          },
          "sequence": {
            "type": "integer"
          },
          "score": {
            "type": "number"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "stats": {
            "type": "object",
            "properties": {
              "totalCorrectCount": {
                "type": "integer"
              },
              "totalSubmittedCount": {
                "type": "integer"
              },
              "correctProgress": {
                "type": "number"
              }
            },
            "required": [
              "totalCorrectCount",
              "totalSubmittedCount",
              "correctProgress"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "question",
          "questionAudioUrl",
          "type",
          "options",
          "correctAnswers",
          "explanation",
          "sequence",
          "score",
          "createdAt",
          "updatedAt"
        ]
      },
      "ContentTestList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTest"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentPageMeta"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTest"
            },
            "deprecated": true,
            "description": "Read `data` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          },
          "totalCount": {
            "type": "integer",
            "deprecated": true,
            "description": "Read `meta.itemCount` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "data",
          "meta",
          "items",
          "totalCount"
        ]
      },
      "ContentTestResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The result id."
          },
          "testId": {
            "type": "string",
            "format": "uuid"
          },
          "learnerId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Null for an anonymous attempt."
          },
          "isAnonymous": {
            "type": "boolean",
            "description": "An attempt at a PUBLIC test by someone who is not a learner of the classroom, taken on the test's public page without signing in."
          },
          "taker": {
            "type": [
              "object",
              "null"
            ],
            "description": "Only on an anonymous attempt: the name and email the taker typed.",
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "email"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "in_progress",
              "submitted"
            ]
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "As the learner's browser reported it."
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "As the learner's browser reported it."
          },
          "score": {
            "type": "integer"
          },
          "maxScore": {
            "type": "integer",
            "description": "The sum of the test's item scores today."
          },
          "isGraded": {
            "type": "boolean",
            "description": "False while an item waits for a teacher to grade it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "testId",
          "learnerId",
          "isAnonymous",
          "taker",
          "status",
          "startedAt",
          "finishedAt",
          "score",
          "maxScore",
          "isGraded",
          "createdAt",
          "updatedAt"
        ]
      },
      "ContentTestResultDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ContentTestResult"
          },
          {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ContentTestResultItem"
                }
              }
            },
            "required": [
              "items"
            ]
          }
        ]
      },
      "ContentTestResultItem": {
        "type": "object",
        "properties": {
          "testItemId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "CORRECT",
              "INCORRECT",
              "PENDING",
              "GRADED"
            ]
          },
          "score": {
            "type": "integer"
          },
          "answers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `include=answers`."
          }
        },
        "required": [
          "testItemId",
          "status",
          "score"
        ]
      },
      "ContentTestResultPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTestResult"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentCursorPageMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "ContentUnenrolled": {
        "type": "object",
        "properties": {
          "learnerId": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "deleted": {
            "const": true
          }
        },
        "required": [
          "learnerId",
          "courseId",
          "deleted"
        ]
      },
      "ContentVideo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "type": "string"
          },
          "renderStatus": {
            "$ref": "#/components/schemas/ContentVideoRenderState"
          },
          "renderProgress": {
            "type": [
              "number",
              "null"
            ]
          },
          "renderPhase": {
            "type": [
              "string",
              "null"
            ]
          },
          "thumbnailKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "bgmAudioKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "bgmVolume": {
            "type": [
              "number",
              "null"
            ]
          },
          "bgmOffset": {
            "type": [
              "number",
              "null"
            ]
          },
          "bgmFadeInDuration": {
            "type": [
              "number",
              "null"
            ]
          },
          "bgmFadeOutDuration": {
            "type": [
              "number",
              "null"
            ]
          },
          "userNarrationScript": {
            "type": [
              "string",
              "null"
            ]
          },
          "aspectRatio": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatarId": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "slug": {
            "type": "string"
          },
          "scenes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentVideoScene"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "editorUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The classroom editor for this resource. Opening it takes a TutorFlow sign-in as an admin of the organization; for an agent account, at first only the person who verified its email. Null in the sandbox classroom. Sent on create, read, update and list answers."
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The public watch page, once the video is rendered, has a title, and is PUBLIC or UNLISTED. Null otherwise and in the sandbox classroom. Replaces the Agent Platform share pages. Sent on create, read, update and list answers."
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "visibility",
          "renderStatus",
          "renderProgress",
          "renderPhase",
          "thumbnailKey",
          "bgmAudioKey",
          "bgmVolume",
          "bgmOffset",
          "bgmFadeInDuration",
          "bgmFadeOutDuration",
          "userNarrationScript",
          "aspectRatio",
          "avatarId",
          "metadata",
          "slug",
          "scenes",
          "createdAt",
          "updatedAt"
        ],
        "description": "An editable classroom video plan"
      },
      "ContentVideoList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentVideo"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ContentPageMeta"
          },
          "total": {
            "type": "integer",
            "deprecated": true,
            "description": "Read `meta.itemCount` Deprecated; no longer sent from 2027-04-30.",
            "x-sunset": "2027-04-30"
          }
        },
        "required": [
          "data",
          "meta",
          "total"
        ]
      },
      "ContentVideoRenderAccepted": {
        "type": "object",
        "properties": {
          "status": {
            "const": "accepted"
          },
          "renderStatus": {
            "const": "RENDERING"
          },
          "estimatedSeconds": {
            "type": "number"
          },
          "totalDurationSeconds": {
            "type": "number"
          },
          "narratedSceneIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Scenes narrated first because generateMissingNarration was set"
          },
          "narrationCreditsCharged": {
            "type": "integer",
            "minimum": 0,
            "description": "AI Credits charged for that narration"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for a test key. A test-mode render has already completed when this answer is sent (renderStatus still reads RENDERING here), so GET .../render answers COMPLETED with a videoUrl straight away."
          }
        },
        "required": [
          "estimatedSeconds",
          "livemode",
          "narratedSceneIds",
          "narrationCreditsCharged",
          "renderStatus",
          "status",
          "totalDurationSeconds"
        ]
      },
      "ContentVideoRenderCancelled": {
        "type": "object",
        "properties": {
          "status": {
            "const": "ok"
          }
        },
        "required": [
          "status"
        ]
      },
      "ContentVideoRenderEvent": {
        "type": "object",
        "properties": {
          "resourceType": {
            "const": "video"
          },
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "renderStatus": {
            "type": "string",
            "enum": [
              "COMPLETED",
              "FAILED"
            ]
          },
          "videoUrl": {
            "type": "string",
            "description": "On completion. Signed again just before every attempt, redeliveries included, so it is valid for 6 hours from the attempt that carried it."
          },
          "videoUrlExpiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "On completion, when the link is signed: 6 hours after this attempt was sent."
          },
          "error": {
            "type": "string",
            "description": "On failure"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "resourceType",
          "resourceId",
          "classroomId",
          "renderStatus",
          "event"
        ]
      },
      "ContentVideoRenderState": {
        "type": "string",
        "enum": [
          "IDLE",
          "RENDERING",
          "COMPLETED",
          "FAILED"
        ]
      },
      "ContentVideoRenderStatus": {
        "type": "object",
        "properties": {
          "renderStatus": {
            "$ref": "#/components/schemas/ContentVideoRenderState"
          },
          "renderError": {
            "type": [
              "string",
              "null"
            ]
          },
          "progress": {
            "type": [
              "number",
              "null"
            ],
            "description": "0 to 99 while rendering when reported, 100 when done"
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "videoUrlExpiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "renderStatus",
          "renderError",
          "progress",
          "videoUrl",
          "videoUrlExpiresAt",
          "thumbnailUrl",
          "updatedAt"
        ]
      },
      "ContentVideoScene": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order": {
            "type": "integer"
          },
          "script": {
            "type": [
              "string",
              "null"
            ]
          },
          "displayText": {
            "type": [
              "string",
              "null"
            ]
          },
          "narrationSource": {
            "type": [
              "string",
              "null"
            ]
          },
          "videoClipSource": {
            "type": [
              "string",
              "null"
            ]
          },
          "visualType": {
            "type": [
              "string",
              "null"
            ]
          },
          "visualKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "visualSource": {
            "type": [
              "string",
              "null"
            ]
          },
          "remotionTemplate": {
            "type": [
              "string",
              "null"
            ]
          },
          "keywords": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "duration": {
            "type": [
              "number",
              "null"
            ]
          },
          "audioOffset": {
            "type": [
              "number",
              "null"
            ]
          },
          "audioDuration": {
            "type": [
              "number",
              "null"
            ]
          },
          "videoOffset": {
            "type": [
              "number",
              "null"
            ]
          },
          "videoDuration": {
            "type": [
              "number",
              "null"
            ]
          },
          "visualOffset": {
            "type": [
              "number",
              "null"
            ]
          },
          "visualDuration": {
            "type": [
              "number",
              "null"
            ]
          },
          "visualFit": {
            "type": [
              "string",
              "null"
            ]
          },
          "subtitleOffset": {
            "type": [
              "number",
              "null"
            ]
          },
          "subtitleDuration": {
            "type": [
              "number",
              "null"
            ]
          },
          "subtitles": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentSceneSubtitle"
            }
          },
          "transitionOut": {
            "type": [
              "string",
              "null"
            ]
          },
          "transitionDuration": {
            "type": [
              "number",
              "null"
            ]
          },
          "videoEffect": {
            "type": [
              "string",
              "null"
            ]
          },
          "visualEffect": {
            "type": [
              "string",
              "null"
            ]
          },
          "visualMetadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "visualAdjustments": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentVisualAdjustments"
              },
              {
                "type": "null"
              }
            ]
          },
          "visualOverlays": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentVisualOverlay"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "hasNarration": {
            "type": "boolean",
            "description": "Whether the scene has narration audio. Rendering needs it on every scene."
          }
        },
        "required": [
          "audioDuration",
          "audioOffset",
          "createdAt",
          "displayText",
          "duration",
          "hasNarration",
          "id",
          "keywords",
          "narrationSource",
          "order",
          "remotionTemplate",
          "script",
          "subtitleDuration",
          "subtitleOffset",
          "subtitles",
          "transitionDuration",
          "transitionOut",
          "updatedAt",
          "videoClipSource",
          "videoDuration",
          "videoEffect",
          "videoOffset",
          "visualAdjustments",
          "visualDuration",
          "visualEffect",
          "visualFit",
          "visualKey",
          "visualMetadata",
          "visualOffset",
          "visualOverlays",
          "visualSource",
          "visualType"
        ]
      },
      "ContentVisualAdjustments": {
        "type": "object",
        "properties": {
          "brightness": {
            "type": "number"
          },
          "contrast": {
            "type": "number"
          },
          "saturation": {
            "type": "number"
          },
          "temperature": {
            "type": "number"
          },
          "blur": {
            "type": "number"
          },
          "vignette": {
            "type": "number"
          },
          "effectOpacity": {
            "type": "number"
          },
          "motion": {
            "type": "string"
          },
          "motionScale": {
            "type": "number"
          },
          "motionSpeed": {
            "type": "number"
          },
          "preset": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ContentVisualOverlay": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "assetKey": {
            "type": "string"
          },
          "assetPath": {
            "type": "string"
          },
          "frames": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assetKey": {
                  "type": "string"
                },
                "assetPath": {
                  "type": "string"
                }
              }
            }
          },
          "text": {
            "type": "string"
          },
          "shape": {
            "type": "string"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "width": {
            "type": "number"
          },
          "height": {
            "type": "number"
          },
          "rotation": {
            "type": "number"
          },
          "opacity": {
            "type": "number"
          },
          "zIndex": {
            "type": "integer"
          },
          "start": {
            "type": "number"
          },
          "duration": {
            "type": [
              "number",
              "null"
            ]
          },
          "animation": {
            "type": "object",
            "properties": {
              "in": {
                "type": "string"
              },
              "out": {
                "type": "string"
              },
              "delay": {
                "type": "number"
              },
              "duration": {
                "type": "number"
              }
            }
          },
          "frameAnimation": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string"
              },
              "frameDuration": {
                "type": "number"
              }
            }
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "id",
          "type",
          "x",
          "y",
          "width",
          "height",
          "rotation",
          "opacity",
          "zIndex",
          "start",
          "duration"
        ]
      },
      "ContentWebhookCreatedResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organizationId": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "description": "`live` endpoints get events about real content; `test` endpoints get only sandbox events. Every payload says which in `livemode`. An endpoint created with an API key takes the key's mode, and a key sees only endpoints of its own mode."
          },
          "previousSecretExpiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "Until when deliveries are also signed with the secret replaced by the last rotation. Null when no previous secret is in use"
          },
          "consecutiveFailures": {
            "type": "integer",
            "description": "Failed event delivery attempts in a row since the last success. Test pings and manual redeliveries do not count"
          },
          "failingSince": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "When the current run of failures began. Null while deliveries succeed"
          },
          "lastSuccessAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "The last successful event delivery"
          },
          "disabledReason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "manual",
              "repeated_failures",
              null
            ],
            "description": "Why the endpoint is DISABLED: manual (turned off with PATCH) or repeated_failures (turned off by TutorFlow after at least 20 failed attempts in a row over at least 3 days). Null while ACTIVE"
          },
          "disabledAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "When the endpoint was turned off. Null while ACTIVE"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "secret": {
            "type": "string",
            "description": "The signing secret. Returned only here; store it"
          }
        },
        "required": [
          "id",
          "organizationId",
          "url",
          "events",
          "status",
          "previousSecretExpiresAt",
          "consecutiveFailures",
          "failingSince",
          "lastSuccessAt",
          "disabledReason",
          "disabledAt",
          "createdAt",
          "updatedAt",
          "secret",
          "mode"
        ]
      },
      "ContentWebhookDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deleted": {
            "const": true
          }
        },
        "required": [
          "id",
          "deleted"
        ]
      },
      "ContentWebhookDeliveryResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "eventId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "eventType": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "attempts": {
            "type": "integer"
          },
          "responseStatus": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastAttemptAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "nextRetryAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "sentAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "payload": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The exact JSON body sent. Null for a key without content:read"
          }
        },
        "required": [
          "id",
          "eventId",
          "eventType",
          "status",
          "attempts",
          "createdAt"
        ]
      },
      "ContentWebhookEventEnvelope": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "type",
          "createdAt"
        ],
        "description": "Shared by every delivery of one event; use `id` to drop duplicates"
      },
      "ContentWebhookPingEvent": {
        "type": "object",
        "properties": {
          "endpointId": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string"
          },
          "livemode": {
            "type": "boolean",
            "description": "False for an event about the sandbox (sent only to test endpoints), true otherwise. Missing only on deliveries queued before livemode existed, which were all live."
          },
          "event": {
            "$ref": "#/components/schemas/ContentWebhookEventEnvelope"
          }
        },
        "required": [
          "endpointId",
          "message",
          "event"
        ]
      },
      "ContentWebhookResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organizationId": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "description": "`live` endpoints get events about real content; `test` endpoints get only sandbox events. Every payload says which in `livemode`. An endpoint created with an API key takes the key's mode, and a key sees only endpoints of its own mode."
          },
          "previousSecretExpiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "Until when deliveries are also signed with the secret replaced by the last rotation. Null when no previous secret is in use"
          },
          "consecutiveFailures": {
            "type": "integer",
            "description": "Failed event delivery attempts in a row since the last success. Test pings and manual redeliveries do not count"
          },
          "failingSince": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "When the current run of failures began. Null while deliveries succeed"
          },
          "lastSuccessAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "The last successful event delivery"
          },
          "disabledReason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "manual",
              "repeated_failures",
              null
            ],
            "description": "Why the endpoint is DISABLED: manual (turned off with PATCH) or repeated_failures (turned off by TutorFlow after at least 20 failed attempts in a row over at least 3 days). Null while ACTIVE"
          },
          "disabledAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "When the endpoint was turned off. Null while ACTIVE"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "organizationId",
          "url",
          "events",
          "status",
          "previousSecretExpiresAt",
          "consecutiveFailures",
          "failingSince",
          "lastSuccessAt",
          "disabledReason",
          "disabledAt",
          "createdAt",
          "updatedAt",
          "mode"
        ]
      },
      "ContentWebhookUpdatedResDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organizationId": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "description": "`live` endpoints get events about real content; `test` endpoints get only sandbox events. Every payload says which in `livemode`. An endpoint created with an API key takes the key's mode, and a key sees only endpoints of its own mode."
          },
          "previousSecretExpiresAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "Until when deliveries are also signed with the secret replaced by the last rotation. Null when no previous secret is in use"
          },
          "consecutiveFailures": {
            "type": "integer",
            "description": "Failed event delivery attempts in a row since the last success. Test pings and manual redeliveries do not count"
          },
          "failingSince": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "When the current run of failures began. Null while deliveries succeed"
          },
          "lastSuccessAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "The last successful event delivery"
          },
          "disabledReason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "manual",
              "repeated_failures",
              null
            ],
            "description": "Why the endpoint is DISABLED: manual (turned off with PATCH) or repeated_failures (turned off by TutorFlow after at least 20 failed attempts in a row over at least 3 days). Null while ACTIVE"
          },
          "disabledAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ],
            "description": "When the endpoint was turned off. Null while ACTIVE"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "replayedDeliveries": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Deliveries requeued because the request had replayFailedSince. Null without it"
          }
        },
        "required": [
          "id",
          "organizationId",
          "url",
          "events",
          "status",
          "previousSecretExpiresAt",
          "consecutiveFailures",
          "failingSince",
          "lastSuccessAt",
          "disabledReason",
          "disabledAt",
          "createdAt",
          "updatedAt",
          "replayedDeliveries",
          "mode"
        ]
      },
      "CopyStandaloneLessonToCourseReqDto": {
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "chapterId": {
            "type": "string",
            "format": "uuid",
            "description": "A chapter of `courseId`. A chapter of another course answers 404."
          },
          "sequence": {
            "type": "number",
            "description": "1-based position of the new lesson in the course. Lessons from that position on move down one."
          },
          "slug": {
            "type": "string",
            "description": "The new lesson's slug. Without it the slug is `sequence`; when a lesson of the course already has that slug, a fresh one is chosen."
          }
        },
        "required": [
          "courseId",
          "sequence"
        ]
      },
      "CourseCelebrationTrigger": {
        "type": "string",
        "enum": [
          "LESSON",
          "COURSE",
          "NONE"
        ]
      },
      "CourseContentType": {
        "type": "string",
        "enum": [
          "default",
          "exam"
        ]
      },
      "CreateClassroomCourseReqDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "contentType": {
            "$ref": "#/components/schemas/CourseContentType"
          },
          "level": {
            "type": [
              "string",
              "null"
            ]
          },
          "thumbnail": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "visibility": {
            "type": "string"
          },
          "classroomId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateClassroomGameDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/GameVisibility"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Keys that shape the plan, plus any of your own. A `language` you send sets the language of on-screen text and is stored with `isLanguageChosen: true`; send `isLanguageChosen: false` to let the language of `topic` win instead."
          }
        },
        "required": [
          "title",
          "visibility"
        ]
      },
      "CreateClassroomSimulationDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/SimulationVisibility"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Keys that shape the plan, plus any of your own. A `language` you send sets the language of on-screen text and is stored with `isLanguageChosen: true`; send `isLanguageChosen: false` to let the language of `topic` win instead."
          }
        },
        "required": [
          "title",
          "visibility"
        ]
      },
      "CreateClassroomSlideDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "outline": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/SlideVisibility"
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "title",
          "visibility"
        ]
      },
      "CreateClassroomTestDto": {
        "type": "object",
        "properties": {
          "topicPrompt": {
            "type": "string"
          },
          "targetPrompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "level": {
            "$ref": "#/components/schemas/ClassroomTestLevelType"
          },
          "totalScore": {
            "type": "number",
            "description": "Accepted and not stored: a new test has no questions. Set each question's points with `items[].score` on PATCH."
          },
          "passingValueType": {
            "$ref": "#/components/schemas/PassingValueType"
          },
          "passingValue": {
            "type": "number"
          },
          "referenceMarkdown": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "topicPrompt",
          "level",
          "passingValueType",
          "passingValue"
        ]
      },
      "CreateClassroomVideoDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "visibility": {
            "$ref": "#/components/schemas/VideoVisibility"
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateContentApiKeyReqDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "rateLimitPerMinute": {
            "type": "integer",
            "minimum": 1,
            "maximum": 600
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentApiScope"
            }
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "default": "live",
            "description": "`live` (default) or `test`. A test key works only in the organization's sandbox classroom, which is made for it if the organization has none, and spends no credits. Cannot be changed later; rotation keeps it. A test key cannot take `classroomIds` (400)."
          },
          "classroomIds": {
            "description": "Omit for a key that may use every classroom",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string",
            "description": "Omit for a key that never expires"
          },
          "monthlyCreditLimit": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 10000000,
            "description": "AI Credits the key may spend per UTC calendar month, net of refunds. Omit or send null for no limit of its own"
          }
        },
        "required": [
          "name"
        ]
      },
      "CreateContentAssetUploadReqDto": {
        "type": "object",
        "required": [
          "purpose",
          "contentType",
          "contentLength"
        ],
        "properties": {
          "purpose": {
            "type": "string",
            "enum": [
              "scene-visual",
              "overlay",
              "thumbnail",
              "bgm",
              "test-audio",
              "slide-file",
              "lesson-pdf"
            ],
            "description": "What the file is for; decides the allowed types and sizes."
          },
          "contentType": {
            "type": "string",
            "minLength": 3,
            "maxLength": 100,
            "description": "The file's media type, without parameters, e.g. `image/png`. The PUT must send exactly this `Content-Type`.",
            "examples": [
              "image/png"
            ]
          },
          "contentLength": {
            "type": "integer",
            "minimum": 1,
            "description": "The exact file size in bytes. The PUT must send exactly this `Content-Length`."
          },
          "filename": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255,
            "description": "Optional, recorded for your audit only and never used in the key. When it has an extension, the extension must match `contentType` (400 `content_asset_extension_mismatch`)."
          }
        }
      },
      "CreateContentChapterReqDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "position": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateContentExpansionReqDto": {
        "type": "object",
        "properties": {
          "classroomId": {
            "type": "string",
            "format": "uuid"
          },
          "sourceType": {
            "$ref": "#/components/schemas/ContentIntegrationSourceType"
          },
          "requestedOutputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentIntegrationOutputType"
            }
          },
          "payload": {
            "type": "object",
            "description": "Customer-owned source JSON to expand."
          },
          "idempotencyKey": {
            "type": "string",
            "maxLength": 255,
            "description": "Optional idempotency key. The Idempotency-Key header also works; when both are sent, this one wins."
          }
        },
        "required": [
          "classroomId",
          "payload"
        ]
      },
      "CreateContentLessonReqDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "markdown",
              "writing",
              "whiteboard"
            ],
            "default": "markdown"
          },
          "content": {
            "type": "string",
            "maxLength": 100000,
            "description": "Structured lesson content as a string. For a whiteboard lesson this is required and must encode an object with the assetId of a published whiteboard in the same classroom."
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          },
          "lecture": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "isPublic": {
            "type": "boolean",
            "description": "Whether learners see the lesson. Defaults to false, as a lesson added in the editor starts hidden; send true to publish it with the create."
          },
          "position": {
            "type": "integer",
            "minimum": 1
          },
          "submission": {
            "type": "object",
            "description": "Lesson submission settings matching the editor: enabled, type (code, file, text, ai, form), allowResubmit, instructions, questions, rubricText, rubric. Form questions have unique id, prompt and type (choice, code, file, text, ai); at most 20, all required. Code questions may include starterCode with language (up to 64 characters) and code (up to 100000 characters), provided to learners and snapshotted with their answers. Choice questions require 2-10 options with id and text, plus one correctOptionId hidden from learners. Replaces only metadata.submission.",
            "additionalProperties": true
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateContentModuleReqDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "markdown",
              "coding-lesson",
              "coding-test",
              "web",
              "notebook",
              "chat-ai",
              "ai-tutor",
              "flashcard",
              "dictation",
              "shadowing",
              "roleplay",
              "reading-comprehension",
              "translation"
            ],
            "description": "One of the types the module editor offers; `markdown` when omitted. Any other value, `exam` included, answers 422."
          },
          "isPublic": {
            "type": "boolean"
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "pdfKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "isPdfDownloadEnabled": {
            "type": "boolean"
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "lectureImagePrompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateContentWebhookReqDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentIntegrationWebhookEventType"
            }
          },
          "secret": {
            "type": "string",
            "minLength": 16,
            "maxLength": 256
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ],
            "default": "live",
            "description": "Admin session: `live` (default) or `test`. With an API key the endpoint always takes the key's mode; naming the other one is refused (400). A test endpoint cannot subscribe to `learner.*` events (403 `content_sandbox_unsupported`)."
          }
        },
        "required": [
          "url",
          "events"
        ]
      },
      "CreateUpdateClassroomTestDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string",
            "description": "The test's segment in the learner share link. Not checked for format or uniqueness, so use letters, digits and hyphens and keep it unique within the classroom, as the editor does."
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "level": {
            "$ref": "#/components/schemas/ClassroomTestLevelType"
          },
          "visibility": {
            "$ref": "#/components/schemas/ClassroomTestVisibilityType"
          },
          "timeLimit": {
            "type": "number"
          },
          "passingValue": {
            "type": "number"
          },
          "passingValueType": {
            "$ref": "#/components/schemas/PassingValueType"
          },
          "periodType": {
            "$ref": "#/components/schemas/TestPeriodType"
          },
          "periodStartDate": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "periodEndDate": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "layoutType": {
            "$ref": "#/components/schemas/TestLayoutType"
          },
          "topicPrompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "targetPrompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "minItems": 0,
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/CreateUpdateClassroomTestItemDto"
            },
            "description": "The complete question list. A question left out is deleted, one with `id` is updated in place, one without is created; the array order sets `sequence`. A question sent without `score` keeps its stored score, or 0 when new."
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Replaces the stored metadata whole; leave it out to keep it."
          }
        }
      },
      "CreateUpdateClassroomTestItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "question": {
            "type": "string"
          },
          "questionAudioKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/ProblemType"
          },
          "explanation": {
            "type": [
              "string",
              "null"
            ]
          },
          "score": {
            "type": "number"
          },
          "options": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "correctAnswers": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "question",
          "type"
        ]
      },
      "EnrollContentLearnersRequest": {
        "type": "object",
        "properties": {
          "learnerIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "required": [
          "learnerIds"
        ]
      },
      "ExportClassroomContentReqDto": {
        "type": "object",
        "properties": {
          "lessonId": {
            "type": "string",
            "format": "uuid"
          },
          "idempotencyKey": {
            "type": "string",
            "description": "Optional idempotency key. Reusing the key returns the existing export manifest."
          }
        },
        "required": [
          "lessonId"
        ]
      },
      "GAME_SORT_FIELDS": {
        "type": "string",
        "enum": [
          "title",
          "createdAt",
          "updatedAt"
        ]
      },
      "GameVisibility": {
        "type": "string",
        "enum": [
          "PUBLIC",
          "PRIVATE"
        ]
      },
      "GenerateGameBriefDto": {
        "type": "object",
        "properties": {
          "referenceMarkdown": {
            "type": "string"
          }
        }
      },
      "GenerateSimulationBriefDto": {
        "type": "object",
        "properties": {
          "referenceMarkdown": {
            "type": "string"
          }
        }
      },
      "InviteContentLearnerRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": "string",
            "maxLength": 100,
            "description": "Fills the learner's name only if they have none yet."
          },
          "locale": {
            "type": "string",
            "maxLength": 35,
            "description": "BCP 47 tag of the invitation email language, e.g. `ko` or `pt-BR`."
          },
          "courseIds": {
            "type": "array",
            "maxItems": 100,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Courses of this classroom to enroll the learner in."
          },
          "testIds": {
            "type": "array",
            "maxItems": 100,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Tests of this classroom to assign."
          }
        },
        "required": [
          "email",
          "locale"
        ]
      },
      "Order": {
        "type": "string",
        "enum": [
          "ASC",
          "DESC"
        ]
      },
      "PassingValueType": {
        "type": "string",
        "enum": [
          "SCORE",
          "PERCENTAGE"
        ]
      },
      "ProblemType": {
        "type": "string",
        "enum": [
          "select",
          "blank",
          "open-ended",
          "true-false",
          "submission"
        ]
      },
      "QuizType": {
        "type": "string",
        "enum": [
          "select",
          "blank",
          "true-false",
          "submission"
        ]
      },
      "RemotionTemplateType": {
        "type": "string",
        "enum": [
          "keyword",
          "title",
          "quote",
          "sketch",
          "twoD",
          "animation",
          "none"
        ]
      },
      "ReorderContentChaptersReqDto": {
        "type": "object",
        "properties": {
          "chapterIds": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array"
          }
        },
        "required": [
          "chapterIds"
        ]
      },
      "ReorderContentLessonsReqDto": {
        "type": "object",
        "properties": {
          "lessonIds": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array"
          }
        },
        "required": [
          "lessonIds"
        ]
      },
      "ReorderScenesDto": {
        "type": "object",
        "properties": {
          "sceneIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "description": "Every scene id of the video in the new order"
          }
        },
        "required": [
          "sceneIds"
        ]
      },
      "ReviseGameDto": {
        "type": "object",
        "properties": {
          "feedback": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        },
        "required": [
          "feedback"
        ]
      },
      "ReviseSimulationDto": {
        "type": "object",
        "properties": {
          "feedback": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        },
        "required": [
          "feedback"
        ]
      },
      "RotateContentApiKeyReqDto": {
        "type": "object",
        "properties": {
          "gracePeriodHours": {
            "type": "integer",
            "description": "Hours the old key keeps working after rotation, so deployments can switch over without downtime. 0 or omitted revokes it immediately.",
            "minimum": 0,
            "maximum": 168
          }
        }
      },
      "RotateContentWebhookSecretReqDto": {
        "type": "object",
        "properties": {
          "secret": {
            "type": "string",
            "minLength": 16,
            "maxLength": 256,
            "description": "Omit to have TutorFlow generate one"
          },
          "gracePeriodHours": {
            "type": "integer",
            "description": "Hours the previous secret keeps signing deliveries alongside the new one (0 to 168). Omit or send 0 to stop using the previous secret at once",
            "example": 24,
            "minimum": 0,
            "maximum": 168
          }
        }
      },
      "SIMULATION_SORT_FIELDS": {
        "type": "string",
        "enum": [
          "title",
          "createdAt",
          "updatedAt",
          "subject"
        ]
      },
      "SIMULATION_SUBJECTS": {
        "type": "string",
        "enum": [
          "computer-science",
          "ai-ml",
          "finance",
          "business",
          "math",
          "science",
          "other"
        ]
      },
      "SimulationVisibility": {
        "type": "string",
        "enum": [
          "PUBLIC",
          "PRIVATE"
        ]
      },
      "SlideVisibility": {
        "type": "string",
        "enum": [
          "PUBLIC",
          "PRIVATE"
        ]
      },
      "TestLayoutType": {
        "type": "string",
        "enum": [
          "SCROLL",
          "ONE_BY_ONE"
        ]
      },
      "TestPeriodType": {
        "type": "string",
        "enum": [
          "ALWAYS",
          "DATE_RANGE"
        ]
      },
      "UpdateClassroomCourseSettingsDto": {
        "type": "object",
        "properties": {
          "aiTutorDefaults": {
            "type": "object"
          },
          "celebrationTrigger": {
            "$ref": "#/components/schemas/CourseCelebrationTrigger"
          }
        }
      },
      "UpdateClassroomGameDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "visibility": {
            "$ref": "#/components/schemas/GameVisibility"
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "brief": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Keys that shape the plan, plus any of your own. A `language` you send sets the language of on-screen text and is stored with `isLanguageChosen: true`; send `isLanguageChosen: false` to let the language of `topic` win instead."
          }
        }
      },
      "UpdateClassroomSimulationDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "$ref": "#/components/schemas/SimulationVisibility"
          },
          "brief": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Keys that shape the plan, plus any of your own. A `language` you send sets the language of on-screen text and is stored with `isLanguageChosen: true`; send `isLanguageChosen: false` to let the language of `topic` win instead."
          }
        }
      },
      "UpdateClassroomSlideDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "outline": {
            "type": "string"
          },
          "visibility": {
            "$ref": "#/components/schemas/SlideVisibility"
          },
          "content": {
            "type": "string"
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ],
            "description": "The deck card image: the first page's rendered markup, as the slide editor saves it, or a storage key under this classroom. A key outside the classroom is refused with 400."
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Merged into the stored metadata key by key. null leaves the stored metadata unchanged."
          }
        }
      },
      "UpdateClassroomVideoDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "visibility": {
            "$ref": "#/components/schemas/VideoVisibility"
          },
          "thumbnailKey": {
            "type": "string"
          },
          "bgmAudioKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "bgmVolume": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "bgmOffset": {
            "type": "number",
            "minimum": 0
          },
          "bgmFadeInDuration": {
            "type": "number",
            "minimum": 0,
            "maximum": 2
          },
          "bgmFadeOutDuration": {
            "type": "number",
            "minimum": 0,
            "maximum": 2
          },
          "avatarId": {
            "type": [
              "string",
              "null"
            ],
            "description": "A preset id (preset-*) or a UUID, or null to remove the avatar"
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "null clears the client-editable keys; server-owned keys are kept"
          }
        }
      },
      "UpdateContentApiKeyReqDto": {
        "type": "object",
        "description": "Omitted fields keep their value",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "scopes": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ContentApiScope"
            },
            "description": "Replaces the scopes. Must not be empty"
          },
          "classroomIds": {
            "type": [
              "array",
              "null"
            ],
            "minItems": 1,
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Replaces the classroom list. Null lets the key use every classroom; must not be empty"
          },
          "rateLimitPerMinute": {
            "type": "integer",
            "minimum": 1,
            "maximum": 600
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "A future time, or null for a key that never expires"
          },
          "monthlyCreditLimit": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "maximum": 10000000,
            "description": "Replaces the monthly credit limit, or null removes it. The new limit applies at once to what the key already spent this month"
          }
        }
      },
      "UpdateContentChapterReqDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "position": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "UpdateContentCourseReqDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "level": {
            "type": [
              "string",
              "null"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "isPublic": {
            "type": "boolean",
            "description": "Whether the course is published. A course starts unpublished: only its enrolled learners and organisation admins can open it, and the classroom site does not list it. Send true to publish it to whoever `visibility` allows."
          },
          "visibility": {
            "type": "string",
            "enum": [
              "PUBLIC",
              "PRIVATE",
              "ORGANIZATION",
              "CLASSROOM",
              "COURSE"
            ],
            "description": "Left as it is when omitted. Any other value answers 422."
          },
          "settings": {
            "$ref": "#/components/schemas/UpdateClassroomCourseSettingsDto",
            "description": "Saved on the course settings; only the keys sent change."
          }
        },
        "description": "Only the fields sent change. An omitted field keeps its value; `null` clears `level` or `thumbnail`. The classroom comes from the URL."
      },
      "UpdateContentLessonReqDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          },
          "lecture": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "content": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100000
          },
          "isPublic": {
            "type": "boolean"
          },
          "chapterId": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer",
            "minimum": 1
          },
          "submission": {
            "type": "object",
            "description": "Lesson submission settings matching the editor: enabled, type (code, file, text, ai, form), allowResubmit, instructions, questions, rubricText, rubric. Form questions have unique id, prompt and type (choice, code, file, text, ai); at most 20, all required. Code questions may include starterCode with language (up to 64 characters) and code (up to 100000 characters), provided to learners and snapshotted with their answers. Choice questions require 2-10 options with id and text, plus one correctOptionId hidden from learners. Replaces only metadata.submission.",
            "additionalProperties": true
          }
        }
      },
      "UpdateContentWebhookReqDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentIntegrationWebhookEventType"
            }
          },
          "status": {
            "$ref": "#/components/schemas/ContentIntegrationWebhookStatus"
          },
          "replayFailedSince": {
            "format": "date-time",
            "type": "string",
            "description": "Only with the endpoint ACTIVE (usually together with status ACTIVE): requeue every event whose delivery to this endpoint failed since this time, as new deliveries with the same event id. At most 7 days ago",
            "example": "2026-09-28T00:00:00.000Z"
          }
        }
      },
      "UpdateStandaloneLessonDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "markdown",
              "coding-lesson",
              "coding-test",
              "web",
              "notebook",
              "chat-ai",
              "ai-tutor",
              "flashcard",
              "dictation",
              "shadowing",
              "roleplay",
              "reading-comprehension",
              "translation"
            ],
            "description": "One of the types the module editor offers. Any other value, `exam` included, answers 422; leave it out to keep the stored type."
          },
          "isPublic": {
            "type": "boolean"
          },
          "videoUrl": {
            "type": "string"
          },
          "pdfKey": {
            "type": "string"
          },
          "isPdfDownloadEnabled": {
            "type": "boolean"
          },
          "content": {
            "type": "string"
          },
          "lectureKey": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "lectureImagePrompt": {
            "type": "string"
          },
          "lecture": {
            "type": "string"
          },
          "quizzes": {
            "minItems": 0,
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ChatCourseQuizDto"
            }
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          }
        }
      },
      "UpdateVideoSceneDto": {
        "type": "object",
        "properties": {
          "script": {
            "type": "string"
          },
          "videoClipSource": {
            "$ref": "#/components/schemas/VideoClipSource"
          },
          "remotionTemplate": {
            "$ref": "#/components/schemas/RemotionTemplateType"
          },
          "duration": {
            "type": "number",
            "minimum": 0.5
          },
          "audioOffset": {
            "type": "number",
            "minimum": 0
          },
          "audioDuration": {
            "type": "number",
            "minimum": 0
          },
          "videoOffset": {
            "type": "number",
            "minimum": 0
          },
          "videoDuration": {
            "type": "number",
            "minimum": 0
          },
          "visualOffset": {
            "type": "number",
            "minimum": 0
          },
          "visualDuration": {
            "type": "number",
            "minimum": 0
          },
          "subtitleOffset": {
            "type": "number",
            "minimum": 0
          },
          "subtitleDuration": {
            "type": "number",
            "minimum": 0
          },
          "transitionDuration": {
            "type": "number",
            "minimum": 0
          },
          "displayText": {
            "type": [
              "string",
              "null"
            ]
          },
          "visualType": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "video",
              "image",
              "slide",
              null
            ]
          },
          "visualKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "visualSource": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "stock",
              "upload",
              "generated",
              "slide",
              null
            ]
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "visualFit": {
            "type": "string",
            "enum": [
              "cover",
              "contain"
            ]
          },
          "subtitles": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentSceneSubtitle"
            }
          },
          "transitionOut": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "fade",
              "slide",
              "wipe",
              "flip",
              "clockWipe",
              "iris",
              null
            ],
            "description": "null is a hard cut"
          },
          "videoEffect": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "none",
              "overlay-dark",
              "overlay-blue",
              "overlay-purple",
              "overlay-warm",
              "vignette",
              "blur",
              "grayscale",
              null
            ],
            "description": "null resets to the default overlay"
          },
          "visualEffect": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "none",
              "overlay-dark",
              "overlay-blue",
              "overlay-purple",
              "overlay-warm",
              "vignette",
              "blur",
              "grayscale",
              null
            ]
          },
          "visualMetadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "visualAdjustments": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentVisualAdjustments"
              },
              {
                "type": "null"
              }
            ]
          },
          "visualOverlays": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentVisualOverlay"
            }
          }
        }
      },
      "VideoClipSource": {
        "type": "string",
        "enum": [
          "stock",
          "upload"
        ]
      },
      "VideoVisibility": {
        "type": "string",
        "enum": [
          "PUBLIC",
          "PRIVATE",
          "UNLISTED"
        ],
        "description": "PUBLIC: listed in the public video gallery and the sitemap. UNLISTED: opened by anyone with the link (watch page, stream, embed) but never listed. PRIVATE: only the classroom."
      },
      "ContentWhiteboard": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "pattern": "\\S"
          },
          "cards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentWhiteboardCard"
            },
            "maxItems": 150,
            "description": "Complete card array in canvas stacking order. Each card id must be unique."
          },
          "revision": {
            "type": "integer",
            "minimum": 1
          },
          "isPublished": {
            "type": "boolean"
          },
          "isCurrentPublished": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "title",
          "cards",
          "revision",
          "isPublished",
          "isCurrentPublished"
        ]
      },
      "ContentWhiteboardCard": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "note",
              "source",
              "heading",
              "ink",
              "rectangle",
              "ellipse",
              "coordinatePlane",
              "numberLine",
              "graphPaper",
              "ruledPaper",
              "scene",
              "equation"
            ]
          },
          "x": {
            "type": "integer",
            "minimum": -100000,
            "maximum": 100000
          },
          "y": {
            "type": "integer",
            "minimum": -100000,
            "maximum": 100000
          },
          "w": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "h": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "text": {
            "type": "string",
            "maxLength": 2000
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "yellow",
                  "mint",
                  "blue",
                  "pink"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "inkStyle": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "marker"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "strokeWidth": {
            "anyOf": [
              {
                "type": "integer",
                "enum": [
                  1,
                  3,
                  6,
                  10,
                  18,
                  30
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "pinned": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "preview": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 65000,
            "pattern": "^data:image/webp;base64,[0-9+/A-Za-z]+={0,2}$"
          },
          "points": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "maxItems": 1024,
            "description": "Alternating local x and y coordinates for ink."
          },
          "connections": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ContentWhiteboardConnection"
            },
            "maxItems": 32,
            "description": "Outgoing connections with distinct destination ids."
          }
        },
        "required": [
          "id",
          "kind",
          "x",
          "y",
          "w",
          "h",
          "text"
        ]
      },
      "ContentWhiteboardConnection": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "format": "uuid"
          },
          "style": {
            "type": "string",
            "enum": [
              "straight",
              "elbow",
              "curve"
            ]
          },
          "heads": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "end",
                  "both",
                  "none"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "label": {
            "type": "string",
            "maxLength": 80
          }
        },
        "required": [
          "to",
          "style",
          "label"
        ]
      },
      "ContentWhiteboardList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentWhiteboardListItem"
            },
            "maxItems": 100
          },
          "totalCount": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "items",
          "totalCount"
        ]
      },
      "ContentWhiteboardListItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "pattern": "\\S"
          },
          "isPublished": {
            "type": "boolean"
          },
          "previewCards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentWhiteboardPreviewCard"
            },
            "maxItems": 20
          }
        },
        "required": [
          "id",
          "title",
          "isPublished",
          "previewCards"
        ]
      },
      "ContentWhiteboardPreviewCard": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "note",
              "source",
              "heading",
              "ink",
              "rectangle",
              "ellipse",
              "coordinatePlane",
              "numberLine",
              "graphPaper",
              "ruledPaper",
              "scene",
              "equation"
            ]
          },
          "x": {
            "type": "integer",
            "minimum": -100000,
            "maximum": 100000
          },
          "y": {
            "type": "integer",
            "minimum": -100000,
            "maximum": 100000
          },
          "w": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "h": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "yellow",
                  "mint",
                  "blue",
                  "pink"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "caption": {
            "type": "string",
            "maxLength": 64
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 32
          }
        },
        "required": [
          "id",
          "kind",
          "x",
          "y",
          "w",
          "h",
          "color",
          "caption",
          "targets"
        ]
      },
      "CreateWhiteboardDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID generated by the client. Reuse it to retry without creating another board."
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "pattern": "\\S"
          },
          "cards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentWhiteboardCard"
            },
            "maxItems": 150,
            "description": "Complete card array in canvas stacking order. Each card id must be unique."
          }
        },
        "required": [
          "id",
          "title",
          "cards"
        ]
      },
      "SaveWhiteboardDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "pattern": "\\S"
          },
          "cards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentWhiteboardCard"
            },
            "maxItems": 150,
            "description": "Complete card array in canvas stacking order. Each card id must be unique."
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "description": "The revision from the latest read. A stale value returns 409."
          },
          "publish": {
            "type": "boolean",
            "description": "True to replace the snapshot linked lessons display. False to save only the draft."
          }
        },
        "required": [
          "title",
          "cards",
          "revision",
          "publish"
        ]
      }
    },
    "examples": {
      "ContentApiKeyCreatedResDto": {
        "summary": "The new key; apiKey is shown only once",
        "value": {
          "apiKey": "tf_content_8Kq2Xr7vLw3mPz9hTq4nBc6yDf1s",
          "keyId": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
          "keyPrefix": "tf_content_8Kq2",
          "name": "LMS sync",
          "rateLimitPerMinute": 120,
          "mode": "live",
          "scopes": [
            "content:read",
            "content:write",
            "content:generate"
          ],
          "classroomIds": null,
          "expiresAt": "2027-09-01T00:00:00.000Z",
          "monthlyCreditLimit": 500
        }
      },
      "ContentApiKeyFilterLabelArray": {
        "summary": "A live key and a deleted test key",
        "value": [
          {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
            "name": "LMS sync",
            "keyPrefix": "tf_content_8Kq2",
            "mode": "live",
            "isDeleted": false
          },
          {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0002",
            "name": "Sandbox trial",
            "keyPrefix": "tf_content_test_4Rm9",
            "mode": "test",
            "isDeleted": true
          }
        ]
      },
      "ContentAssetUpload": {
        "summary": "The upload is ready to use",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000180001",
          "purpose": "scene-visual",
          "status": "ready",
          "assetKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/content-api/scene-visual/3f6c2a1e-7b4d-4c8e-9a10-000000180001.png",
          "contentType": "image/png",
          "contentLength": 482133,
          "completedAt": "2026-09-02T14:30:00.000Z",
          "createdAt": "2026-09-01T09:00:00.000Z"
        }
      },
      "ContentAssetUploadTicket": {
        "summary": "Where to PUT the file",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000180001",
          "purpose": "scene-visual",
          "status": "pending",
          "assetKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/content-api/scene-visual/3f6c2a1e-7b4d-4c8e-9a10-000000180001.png",
          "uploadUrl": "https://tutorflow-assets.s3.amazonaws.com/classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/content-api/scene-visual/3f6c2a1e-7b4d-4c8e-9a10-000000180001.png?X-Amz-Signature=example",
          "method": "PUT",
          "headers": {
            "Content-Type": "image/png",
            "Content-Length": "482133"
          },
          "expiresAt": "2026-09-02T15:30:00.000Z"
        }
      },
      "ContentAuditLogAdminPage": {
        "summary": "A page of the audit log, as an admin sees it",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000001b0001",
              "createdAt": "2026-09-02T14:30:00.000Z",
              "apiKeyId": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
              "apiKey": {
                "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
                "name": "LMS sync",
                "keyPrefix": "tf_content_8Kq2",
                "mode": "live"
              },
              "actorUserId": null,
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "method": "PATCH",
              "route": "/v1/content/classrooms/:classroomId/courses/:id",
              "resourceType": "course",
              "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "statusCode": 200,
              "idempotencyKey": null,
              "requestId": "3f6c2a1e-7b4d-4c8e-9a10-0000001c0001",
              "deprecatedFields": [],
              "actorName": null
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjNmNmMyYTFlLTdiNGQtNGM4ZS05YTEwLTAwMDAwMDFiMDAwMSJ9"
          }
        }
      },
      "ContentAuditLogPage": {
        "summary": "A page of the audit log, newest first",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000001b0001",
              "createdAt": "2026-09-02T14:30:00.000Z",
              "apiKeyId": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
              "apiKey": {
                "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
                "name": "LMS sync",
                "keyPrefix": "tf_content_8Kq2",
                "mode": "live"
              },
              "actorUserId": null,
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "method": "PATCH",
              "route": "/v1/content/classrooms/:classroomId/courses/:id",
              "resourceType": "course",
              "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "statusCode": 200,
              "idempotencyKey": null,
              "requestId": "3f6c2a1e-7b4d-4c8e-9a10-0000001c0001",
              "deprecatedFields": []
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjNmNmMyYTFlLTdiNGQtNGM4ZS05YTEwLTAwMDAwMDFiMDAwMSJ9"
          }
        }
      },
      "ContentChapter": {
        "summary": "A chapter with its lessons",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
          "courseId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
          "title": "What a fraction means",
          "slug": "what-a-fraction-means",
          "position": 1,
          "lessons": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0201",
              "chapterId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
              "title": "Parts of a whole",
              "description": "Name the numerator and the denominator.",
              "type": "markdown",
              "slug": "parts-of-a-whole",
              "position": 1,
              "isPublic": true,
              "status": "COMPLETED",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            },
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0202",
              "chapterId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
              "title": "Equivalent fractions",
              "description": "Use a fraction wall to find equal fractions.",
              "type": "markdown",
              "slug": "equivalent-fractions",
              "position": 2,
              "isPublic": true,
              "status": "COMPLETED",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ]
        }
      },
      "ContentClassroomResDtoArray": {
        "summary": "The classrooms the key may use",
        "value": [
          {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
            "name": "Grade 5 maths",
            "slug": "grade-5-maths",
            "locale": "en",
            "isSandbox": false
          }
        ]
      },
      "ContentConceptList": {
        "summary": "The organization's concepts",
        "value": {
          "data": [
            {
              "key": "density",
              "title": "density",
              "description": null,
              "prerequisiteKeys": [],
              "createdAt": "2026-09-01T09:00:00.000Z"
            },
            {
              "key": "hydrogen-bonding",
              "title": "hydrogen-bonding",
              "description": null,
              "prerequisiteKeys": [
                "density"
              ],
              "createdAt": "2026-09-01T09:00:00.000Z"
            }
          ]
        }
      },
      "ContentCourse": {
        "summary": "A course",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "title": "Fractions for Grade 5",
          "description": "Equivalent fractions, comparing and adding with unlike denominators.",
          "thumbnail": "https://cdn.tutorflow.io/classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/courses/fractions.png",
          "slug": "fractions-for-grade-5",
          "contentType": "default",
          "level": "Beginner",
          "isPublic": true,
          "visibility": "PRIVATE",
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z"
        }
      },
      "ContentCourseDeleted": {
        "summary": "The course was deleted",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
          "deleted": true,
          "success": true
        }
      },
      "ContentCourseList": {
        "summary": "A page of courses",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Fractions for Grade 5",
              "description": "Equivalent fractions, comparing and adding with unlike denominators.",
              "thumbnail": "https://cdn.tutorflow.io/classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/courses/fractions.png",
              "slug": "fractions-for-grade-5",
              "contentType": "default",
              "level": "Beginner",
              "isPublic": true,
              "visibility": "PRIVATE",
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z",
              "totalLearnerCount": 24
            }
          ],
          "meta": {
            "page": 1,
            "take": 20,
            "itemCount": 1,
            "pageCount": 1,
            "hasPreviousPage": false,
            "hasNextPage": false
          },
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Fractions for Grade 5",
              "description": "Equivalent fractions, comparing and adding with unlike denominators.",
              "thumbnail": "https://cdn.tutorflow.io/classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/courses/fractions.png",
              "slug": "fractions-for-grade-5",
              "contentType": "default",
              "level": "Beginner",
              "isPublic": true,
              "visibility": "PRIVATE",
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z",
              "totalLearnerCount": 24
            }
          ],
          "totalCount": 1
        }
      },
      "ContentCreditHistoryPage": {
        "summary": "A page of credit history, newest first",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000001a0001",
              "createdAt": "2026-09-02T14:30:00.000Z",
              "type": "CREATE_GAME_BUILD",
              "kind": "charge",
              "amount": 40,
              "note": null,
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "apiKeyId": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
              "apiKey": {
                "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
                "name": "LMS sync",
                "keyPrefix": "tf_content_8Kq2",
                "mode": "live"
              }
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjNmNmMyYTFlLTdiNGQtNGM4ZS05YTEwLTAwMDAwMDFhMDAwMSJ9"
          }
        }
      },
      "ContentCurriculum": {
        "summary": "Chapters in order, each with its lessons",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
              "courseId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "title": "What a fraction means",
              "slug": "what-a-fraction-means",
              "position": 1,
              "lessons": [
                {
                  "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0201",
                  "chapterId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
                  "title": "Parts of a whole",
                  "description": "Name the numerator and the denominator.",
                  "type": "markdown",
                  "slug": "parts-of-a-whole",
                  "position": 1,
                  "isPublic": true,
                  "status": "COMPLETED",
                  "updatedAt": "2026-09-02T14:30:00.000Z"
                },
                {
                  "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0202",
                  "chapterId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
                  "title": "Equivalent fractions",
                  "description": "Use a fraction wall to find equal fractions.",
                  "type": "markdown",
                  "slug": "equivalent-fractions",
                  "position": 2,
                  "isPublic": true,
                  "status": "COMPLETED",
                  "updatedAt": "2026-09-02T14:30:00.000Z"
                }
              ]
            }
          ],
          "unassignedLessons": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0203",
              "chapterId": null,
              "title": "Warm-up quiz",
              "description": "A short check before the first chapter.",
              "type": "markdown",
              "slug": null,
              "position": 1,
              "isPublic": true,
              "status": "COMPLETED",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ]
        }
      },
      "ContentDeleted": {
        "summary": "The resource was deleted",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
          "deleted": true,
          "success": true
        }
      },
      "ContentEnrollmentChange": {
        "summary": "The learners now enrolled",
        "value": {
          "data": [
            {
              "learnerId": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
              "courseId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "enrolledAt": "2026-09-01T09:00:00.000Z",
              "completedLessons": 0,
              "totalLessons": 12,
              "completedAt": null,
              "lastActivityAt": null
            }
          ]
        }
      },
      "ContentEnrollmentPage": {
        "summary": "A page of course enrollments",
        "value": {
          "data": [
            {
              "learnerId": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
              "courseId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "enrolledAt": "2026-09-01T09:00:00.000Z",
              "completedLessons": 5,
              "totalLessons": 12,
              "completedAt": null,
              "lastActivityAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjNmNmMyYTFlLTdiNGQtNGM4ZS05YTEwLTAwMDAwMDBlMDAwMiJ9"
          }
        }
      },
      "ContentEvaluation": {
        "summary": "A graded open-ended answer",
        "value": {
          "id": "00000000-0000-4000-8000-0000000f0001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "status": "COMPLETED",
          "evaluationType": "open_ended",
          "mode": "sync",
          "isTerminal": true,
          "pollAfterMs": null,
          "learner": {
            "externalId": "student-42",
            "name": "Mina Park"
          },
          "conceptTags": [
            "density",
            "hydrogen-bonding"
          ],
          "score": 8,
          "maxScore": 10,
          "normalizedScore": 80,
          "confidence": 0.86,
          "rubricBreakdown": null,
          "strengths": [
            "Names hydrogen bonding as the cause"
          ],
          "mistakes": [
            "Does not say why the lattice is open"
          ],
          "suggestions": [
            "Describe the hexagonal lattice of ice"
          ],
          "feedbackSummary": "Correct idea; explain the structure behind the lower density.",
          "nextStep": "Compare the density of ice and water at 0 °C.",
          "rubricFiles": null,
          "answerFiles": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "completedAt": "2026-09-02T14:34:12.000Z"
        }
      },
      "ContentEvaluationPage": {
        "summary": "A page of evaluations",
        "value": {
          "data": [
            {
              "id": "00000000-0000-4000-8000-0000000f0001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "status": "COMPLETED",
              "evaluationType": "open_ended",
              "mode": "sync",
              "isTerminal": true,
              "pollAfterMs": null,
              "learner": {
                "externalId": "student-42",
                "name": "Mina Park"
              },
              "conceptTags": [
                "density",
                "hydrogen-bonding"
              ],
              "score": 8,
              "maxScore": 10,
              "normalizedScore": 80,
              "confidence": 0.86,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "completedAt": "2026-09-02T14:34:12.000Z"
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDBmMDAwMSJ9"
          }
        }
      },
      "ContentGame": {
        "summary": "A game with its built page",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000130001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "title": "Fraction sprint",
          "description": "Race to match equivalent fractions before the timer runs out.",
          "visibility": "PRIVATE",
          "slug": "k3m9q2xa",
          "metadata": {
            "gradeLevel": 5
          },
          "brief": {
            "title": "Fraction sprint",
            "goal": "Match equivalent fractions"
          },
          "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/2.html",
          "contentVersion": 2,
          "buildHistory": [
            {
              "version": 1,
              "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/1.html",
              "createdAt": "2026-09-01T09:00:00.000Z",
              "source": "build"
            },
            {
              "version": 2,
              "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/2.html",
              "createdAt": "2026-09-02T14:30:00.000Z",
              "source": "revision",
              "note": "Add a second level with mixed numbers"
            }
          ],
          "thumbnail": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "content": "<!doctype html><html><body>Fraction sprint</body></html>"
        }
      },
      "ContentGameList": {
        "summary": "A page of games",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000130001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Fraction sprint",
              "description": "Race to match equivalent fractions before the timer runs out.",
              "visibility": "PRIVATE",
              "slug": "k3m9q2xa",
              "metadata": {
                "gradeLevel": 5
              },
              "brief": {
                "title": "Fraction sprint",
                "goal": "Match equivalent fractions"
              },
              "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/2.html",
              "contentVersion": 2,
              "buildHistory": [
                {
                  "version": 1,
                  "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/1.html",
                  "createdAt": "2026-09-01T09:00:00.000Z",
                  "source": "build"
                },
                {
                  "version": 2,
                  "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/2.html",
                  "createdAt": "2026-09-02T14:30:00.000Z",
                  "source": "revision",
                  "note": "Add a second level with mixed numbers"
                }
              ],
              "thumbnail": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "meta": {
            "page": 1,
            "take": 20,
            "itemCount": 1,
            "pageCount": 1,
            "hasPreviousPage": false,
            "hasNextPage": false
          },
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000130001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Fraction sprint",
              "description": "Race to match equivalent fractions before the timer runs out.",
              "visibility": "PRIVATE",
              "slug": "k3m9q2xa",
              "metadata": {
                "gradeLevel": 5
              },
              "brief": {
                "title": "Fraction sprint",
                "goal": "Match equivalent fractions"
              },
              "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/2.html",
              "contentVersion": 2,
              "buildHistory": [
                {
                  "version": 1,
                  "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/1.html",
                  "createdAt": "2026-09-01T09:00:00.000Z",
                  "source": "build"
                },
                {
                  "version": 2,
                  "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/content/2.html",
                  "createdAt": "2026-09-02T14:30:00.000Z",
                  "source": "revision",
                  "note": "Add a second level with mixed numbers"
                }
              ],
              "thumbnail": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "totalCount": 1
        }
      },
      "ContentGenerationAccepted": {
        "summary": "The build started; follow statusUrl",
        "value": {
          "runId": "3f6c2a1e-7b4d-4c8e-9a10-000000150002",
          "status": "running",
          "kind": "game",
          "phase": "build",
          "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-000000130001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "statusUrl": "/v1/content/classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/games/3f6c2a1e-7b4d-4c8e-9a10-000000130001/run"
        }
      },
      "ContentGenerationRun": {
        "summary": "A course run writing its lessons",
        "value": {
          "runId": "3f6c2a1e-7b4d-4c8e-9a10-000000150001",
          "kind": "course",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "status": "running",
          "stage": "generating_lessons",
          "progress": {
            "completed": 4,
            "total": 12,
            "unit": "lesson"
          },
          "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
          "creditsCharged": 27,
          "estimatedCredits": 75,
          "error": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "finishedAt": null,
          "resumedFromRunId": null
        }
      },
      "ContentGenerationRunAccepted": {
        "summary": "The run was accepted; poll statusUrl or wait for the webhook",
        "value": {
          "runId": "3f6c2a1e-7b4d-4c8e-9a10-000000150001",
          "status": "queued",
          "kind": "course",
          "estimatedCredits": 75,
          "statusUrl": "/v1/content/classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/runs/3f6c2a1e-7b4d-4c8e-9a10-000000150001"
        }
      },
      "ContentGenerationRunPage": {
        "summary": "A page of runs, newest first",
        "value": {
          "data": [
            {
              "runId": "3f6c2a1e-7b4d-4c8e-9a10-000000150001",
              "kind": "course",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "status": "running",
              "stage": "generating_lessons",
              "progress": {
                "completed": 4,
                "total": 12,
                "unit": "lesson"
              },
              "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "creditsCharged": 27,
              "estimatedCredits": 75,
              "error": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "finishedAt": null,
              "resumedFromRunId": null
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjNmNmMyYTFlLTdiNGQtNGM4ZS05YTEwLTAwMDAwMDE1MDAwMSJ9"
          }
        }
      },
      "ContentGenerationRunStatus": {
        "summary": "No run in progress; the last build finished",
        "value": {
          "active": null,
          "last": {
            "runId": "3f6c2a1e-7b4d-4c8e-9a10-000000150002",
            "phase": "build",
            "status": "done",
            "startedAt": "2026-09-02T14:30:00.000Z",
            "finishedAt": "2026-09-02T14:34:12.000Z"
          }
        }
      },
      "ContentIntegrationApiKeyControllerDeleteApiKey200": {
        "summary": "The key was deleted",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
          "deleted": true
        }
      },
      "ContentIntegrationApiKeyDto": {
        "summary": "A live key limited to one classroom",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "name": "LMS sync",
          "keyPrefix": "tf_content_8Kq2",
          "status": "ACTIVE",
          "organizationId": "3f6c2a1e-7b4d-4c8e-9a10-0000000a0001",
          "rateLimitPerMinute": 120,
          "mode": "live",
          "lastUsedAt": "2026-09-29T08:15:00.000Z",
          "expiresAt": "2027-09-01T00:00:00.000Z",
          "scopes": [
            "content:read",
            "content:write",
            "content:generate"
          ],
          "classroomIds": [
            "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001"
          ],
          "isLegacyFullAccess": false,
          "issuerStatus": "active",
          "monthlyCreditLimit": 500,
          "spentThisMonth": 212,
          "sandboxClassroomId": null
        }
      },
      "ContentIntegrationApiKeyDtoArray": {
        "summary": "The organization keys",
        "value": [
          {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000b0001",
            "createdAt": "2026-09-01T09:00:00.000Z",
            "updatedAt": "2026-09-02T14:30:00.000Z",
            "name": "LMS sync",
            "keyPrefix": "tf_content_8Kq2",
            "status": "ACTIVE",
            "organizationId": "3f6c2a1e-7b4d-4c8e-9a10-0000000a0001",
            "rateLimitPerMinute": 120,
            "mode": "live",
            "lastUsedAt": "2026-09-29T08:15:00.000Z",
            "expiresAt": "2027-09-01T00:00:00.000Z",
            "scopes": [
              "content:read",
              "content:write",
              "content:generate"
            ],
            "classroomIds": [
              "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001"
            ],
            "isLegacyFullAccess": false,
            "issuerStatus": "active",
            "monthlyCreditLimit": 500,
            "spentThisMonth": 212,
            "sandboxClassroomId": null
          }
        ]
      },
      "ContentIntegrationCreditBalanceResDto": {
        "summary": "The organization balance",
        "value": {
          "credit": 1840,
          "overdraftCredit": 0,
          "overdraftLimit": 0,
          "availableCredit": 1840,
          "isPaymentFailed": false,
          "livemode": true
        }
      },
      "ContentIntegrationJobResDto": {
        "summary": "A finished expansion job",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000170001",
          "sourceType": "classroom",
          "status": "completed",
          "sourceTitle": "Adding fractions with unlike denominators",
          "requestedOutputs": [
            "expanded_quiz"
          ],
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "sourceResourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
          "sourceResourceType": "module",
          "error": null,
          "completedAt": "2026-09-02T14:30:00.000Z",
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "outputs": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000170101",
              "outputType": "expanded_quiz",
              "status": "completed",
              "resourceType": "test",
              "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
              "manifest": {
                "type": "test",
                "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
                "title": "Fractions check"
              },
              "error": null,
              "completedAt": "2026-09-02T14:30:00.000Z",
              "creditAmount": 0,
              "creditChargedAt": null
            }
          ]
        }
      },
      "ContentIntegrationOrganizationResDtoArray": {
        "summary": "The organizations the signed-in user administers",
        "value": [
          {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000a0001",
            "name": "Riverside Primary",
            "slug": "riverside",
            "role": "ADMIN"
          }
        ]
      },
      "ContentIntegrationResultResDto": {
        "summary": "What the job made",
        "value": {
          "job": {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-000000170001",
            "sourceType": "classroom",
            "status": "completed",
            "sourceTitle": "Adding fractions with unlike denominators",
            "requestedOutputs": [
              "expanded_quiz"
            ],
            "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
            "sourceResourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
            "sourceResourceType": "module",
            "error": null,
            "completedAt": "2026-09-02T14:30:00.000Z",
            "createdAt": "2026-09-01T09:00:00.000Z",
            "updatedAt": "2026-09-02T14:30:00.000Z",
            "outputs": [
              {
                "id": "3f6c2a1e-7b4d-4c8e-9a10-000000170101",
                "outputType": "expanded_quiz",
                "status": "completed",
                "resourceType": "test",
                "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
                "manifest": {
                  "type": "test",
                  "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
                  "title": "Fractions check"
                },
                "error": null,
                "completedAt": "2026-09-02T14:30:00.000Z",
                "creditAmount": 0,
                "creditChargedAt": null
              }
            ]
          },
          "outputs": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000170101",
              "outputType": "expanded_quiz",
              "status": "completed",
              "resourceType": "test",
              "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
              "manifest": {
                "type": "test",
                "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
                "title": "Fractions check"
              },
              "error": null,
              "completedAt": "2026-09-02T14:30:00.000Z",
              "creditAmount": 0,
              "creditChargedAt": null
            }
          ],
          "manifest": {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-000000170001",
            "status": "completed",
            "sourceType": "classroom",
            "sourceTitle": "Adding fractions with unlike denominators",
            "outputs": [
              {
                "type": "test",
                "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
                "title": "Fractions check"
              }
            ]
          }
        }
      },
      "ContentLearner": {
        "summary": "A learner",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "name": "Mina Park",
          "email": "mina.park@example.edu",
          "status": "active",
          "joinedAt": "2026-09-01T09:00:00.000Z"
        }
      },
      "ContentLearnerInvitationResult": {
        "summary": "An invitation email went out",
        "value": {
          "status": "invited",
          "learnerId": null,
          "invitation": {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-000000190001",
            "status": "pending",
            "expiresAt": "2027-09-01T00:00:00.000Z"
          }
        }
      },
      "ContentLearnerMastery": {
        "summary": "A learner's mastery of each concept",
        "value": {
          "learner": {
            "externalId": "student-42",
            "name": "Mina Park"
          },
          "totalEvaluations": 3,
          "avgNormalizedScore": 76.7,
          "concepts": [
            {
              "key": "density",
              "title": "density",
              "status": "DEVELOPING",
              "masteryScore": 80,
              "signalCount": 3,
              "lastEvaluatedAt": "2026-09-02T14:34:12.000Z"
            }
          ]
        }
      },
      "ContentLearnerPage": {
        "summary": "A page of learners",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "name": "Mina Park",
              "email": "mina.park@example.edu",
              "status": "active",
              "joinedAt": "2026-09-01T09:00:00.000Z"
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjNmNmMyYTFlLTdiNGQtNGM4ZS05YTEwLTAwMDAwMDBlMDAwMiJ9"
          }
        }
      },
      "ContentLearnerProgress": {
        "summary": "Progress in one course, lesson by lesson",
        "value": {
          "learnerId": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
          "data": [
            {
              "learnerId": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
              "courseId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "enrolledAt": "2026-09-01T09:00:00.000Z",
              "completedLessons": 5,
              "totalLessons": 12,
              "completedAt": null,
              "lastActivityAt": "2026-09-02T14:30:00.000Z",
              "lessons": [
                {
                  "lessonId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0201",
                  "chapterId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
                  "isCompleted": true,
                  "completedCount": 1,
                  "lastActivityAt": "2026-09-02T14:30:00.000Z"
                }
              ]
            }
          ]
        }
      },
      "ContentLearnerRemoved": {
        "summary": "The learner left the classroom",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
          "deleted": true
        }
      },
      "ContentLessonDetail": {
        "summary": "A course lesson with its body",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0201",
          "chapterId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0101",
          "title": "Parts of a whole",
          "description": "Name the numerator and the denominator.",
          "type": "markdown",
          "slug": "parts-of-a-whole",
          "position": 1,
          "isPublic": true,
          "status": "COMPLETED",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "lecture": null,
          "content": "## Parts of a whole\n\nThe denominator says how many equal parts the whole has."
        }
      },
      "ContentModule": {
        "summary": "An interactive module",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "title": "Adding fractions with unlike denominators",
          "description": "Find a common denominator, then add.",
          "type": "markdown",
          "isPublic": true,
          "videoUrl": null,
          "pdfKey": null,
          "isPdfDownloadEnabled": false,
          "content": "## Find a common denominator\n\nTo add 1/3 and 1/4, rewrite both as twelfths.",
          "lectureKey": null,
          "lectureVersion": 1,
          "status": "COMPLETED",
          "lectureImagePrompt": null,
          "metadata": {
            "source": "lms-sync"
          },
          "slug": "adding-fractions",
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "pdfUrl": null,
          "lecture": null,
          "quizzes": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0101",
              "sequence": 1,
              "title": "Check your understanding",
              "question": "What is 1/3 + 1/4?",
              "type": "select",
              "options": [
                "7/12",
                "2/7",
                "1/12"
              ],
              "correctAnswers": [
                "7/12"
              ],
              "hint": "Rewrite both fractions as twelfths.",
              "explanation": "4/12 + 3/12 = 7/12.",
              "showFeedback": true,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ]
        }
      },
      "ContentModuleCopyResult": {
        "summary": "The module was copied into the course",
        "value": {
          "lessonId": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
          "courseLessonId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0201",
          "message": "Module copied to course"
        }
      },
      "ContentModuleList": {
        "summary": "A page of modules",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Adding fractions with unlike denominators",
              "description": "Find a common denominator, then add.",
              "type": "markdown",
              "isPublic": true,
              "videoUrl": null,
              "pdfKey": null,
              "isPdfDownloadEnabled": false,
              "content": "## Find a common denominator\n\nTo add 1/3 and 1/4, rewrite both as twelfths.",
              "lectureKey": null,
              "lectureVersion": 1,
              "status": "COMPLETED",
              "lectureImagePrompt": null,
              "metadata": {
                "source": "lms-sync"
              },
              "slug": "adding-fractions",
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "meta": {
            "page": 1,
            "take": 20,
            "itemCount": 1,
            "pageCount": 1,
            "hasPreviousPage": false,
            "hasNextPage": false
          },
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Adding fractions with unlike denominators",
              "description": "Find a common denominator, then add.",
              "type": "markdown",
              "isPublic": true,
              "videoUrl": null,
              "pdfKey": null,
              "isPdfDownloadEnabled": false,
              "content": "## Find a common denominator\n\nTo add 1/3 and 1/4, rewrite both as twelfths.",
              "lectureKey": null,
              "lectureVersion": 1,
              "status": "COMPLETED",
              "lectureImagePrompt": null,
              "metadata": {
                "source": "lms-sync"
              },
              "slug": "adding-fractions",
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "totalCount": 1
        }
      },
      "ContentResourceModuleControllerUpdate200": {
        "summary": "The updated module",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "title": "Adding fractions with unlike denominators",
          "description": "Find a common denominator, then add.",
          "type": "markdown",
          "isPublic": true,
          "videoUrl": null,
          "pdfKey": null,
          "isPdfDownloadEnabled": false,
          "content": "## Find a common denominator\n\nTo add 1/3 and 1/4, rewrite both as twelfths.",
          "lectureKey": null,
          "lectureVersion": 1,
          "status": "COMPLETED",
          "lectureImagePrompt": null,
          "metadata": {
            "source": "lms-sync"
          },
          "slug": "adding-fractions",
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "pdfUrl": null,
          "lecture": null,
          "quizzes": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-0000000f0101",
              "sequence": 1,
              "title": "Check your understanding",
              "question": "What is 1/3 + 1/4?",
              "type": "select",
              "options": [
                "7/12",
                "2/7",
                "1/12"
              ],
              "correctAnswers": [
                "7/12"
              ],
              "hint": "Rewrite both fractions as twelfths.",
              "explanation": "4/12 + 3/12 = 7/12.",
              "showFeedback": true,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "success": true
        }
      },
      "ContentResourceSlideControllerUpdate200": {
        "summary": "The updated slide deck",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000120001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "title": "Fractions on a number line",
          "description": "A ten-page deck for the second lesson.",
          "outline": "1. Title\n2. Contents\n3. Halves and quarters\n4. Summary",
          "visibility": "PUBLIC",
          "contentVersion": 3,
          "metadata": {
            "target": "Grade 5, mixed ability"
          },
          "thumbnail": null,
          "slug": "fractions-number-line",
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "content": "{\"type\":\"doc\",\"content\":[]}",
          "success": true
        }
      },
      "ContentResourceTestControllerUpdate200": {
        "summary": "The updated test",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "name": "Fractions check",
          "description": "Ten minutes on equivalent fractions.",
          "thumbnail": null,
          "slug": "fractions-check",
          "level": "MEDIUM",
          "visibility": "PRIVATE",
          "timeLimit": 10,
          "passingValue": 80,
          "passingValueType": "SCORE",
          "periodType": "ALWAYS",
          "periodStartDate": null,
          "periodEndDate": null,
          "layoutType": "DEFAULT",
          "topicPrompt": "Equivalent fractions for Grade 5",
          "targetPrompt": null,
          "metadata": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100101",
              "classroomTestId": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
              "title": null,
              "question": "Which fraction is equal to 1/2?",
              "questionAudioUrl": null,
              "type": "select",
              "options": [
                "2/4",
                "1/3",
                "3/5"
              ],
              "correctAnswers": [
                "2/4"
              ],
              "explanation": "Multiplying the top and the bottom by 2 gives 2/4.",
              "sequence": 1,
              "score": 10,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "success": true
        }
      },
      "ContentResourceVideoNarrationControllerNarrateMissing200": {
        "summary": "Narration was made for the scenes that had none",
        "value": {
          "videoId": "3f6c2a1e-7b4d-4c8e-9a10-000000110001",
          "narratedSceneIds": [
            "3f6c2a1e-7b4d-4c8e-9a10-000000110101",
            "3f6c2a1e-7b4d-4c8e-9a10-000000110102"
          ],
          "creditsCharged": 2
        }
      },
      "ContentResourceVideoNarrationControllerNarrateScene200": {
        "summary": "The scene was narrated",
        "value": {
          "videoId": "3f6c2a1e-7b4d-4c8e-9a10-000000110001",
          "narratedSceneIds": [
            "3f6c2a1e-7b4d-4c8e-9a10-000000110101"
          ],
          "creditsCharged": 1
        }
      },
      "ContentSimulation": {
        "summary": "A simulation with its built page",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000140001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "title": "Pendulum lab",
          "description": "Change the length and watch the period change.",
          "visibility": "PRIVATE",
          "subject": "physics",
          "representation": "2d",
          "slug": "p7d2w8rt",
          "metadata": null,
          "brief": {
            "title": "Pendulum lab",
            "controls": [
              "length",
              "gravity"
            ]
          },
          "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/simulations/3f6c2a1e-7b4d-4c8e-9a10-000000140001/content/1.html",
          "contentVersion": 1,
          "buildHistory": [
            {
              "version": 1,
              "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/simulations/3f6c2a1e-7b4d-4c8e-9a10-000000140001/content/1.html",
              "createdAt": "2026-09-02T14:30:00.000Z",
              "source": "build"
            }
          ],
          "thumbnail": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "content": "<!doctype html><html><body>Pendulum lab</body></html>"
        }
      },
      "ContentSimulationList": {
        "summary": "A page of simulations",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000140001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Pendulum lab",
              "description": "Change the length and watch the period change.",
              "visibility": "PRIVATE",
              "subject": "physics",
              "representation": "2d",
              "slug": "p7d2w8rt",
              "metadata": null,
              "brief": {
                "title": "Pendulum lab",
                "controls": [
                  "length",
                  "gravity"
                ]
              },
              "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/simulations/3f6c2a1e-7b4d-4c8e-9a10-000000140001/content/1.html",
              "contentVersion": 1,
              "buildHistory": [
                {
                  "version": 1,
                  "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/simulations/3f6c2a1e-7b4d-4c8e-9a10-000000140001/content/1.html",
                  "createdAt": "2026-09-02T14:30:00.000Z",
                  "source": "build"
                }
              ],
              "thumbnail": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "meta": {
            "page": 1,
            "take": 20,
            "itemCount": 1,
            "pageCount": 1,
            "hasPreviousPage": false,
            "hasNextPage": false
          },
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000140001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Pendulum lab",
              "description": "Change the length and watch the period change.",
              "visibility": "PRIVATE",
              "subject": "physics",
              "representation": "2d",
              "slug": "p7d2w8rt",
              "metadata": null,
              "brief": {
                "title": "Pendulum lab",
                "controls": [
                  "length",
                  "gravity"
                ]
              },
              "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/simulations/3f6c2a1e-7b4d-4c8e-9a10-000000140001/content/1.html",
              "contentVersion": 1,
              "buildHistory": [
                {
                  "version": 1,
                  "contentKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/simulations/3f6c2a1e-7b4d-4c8e-9a10-000000140001/content/1.html",
                  "createdAt": "2026-09-02T14:30:00.000Z",
                  "source": "build"
                }
              ],
              "thumbnail": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "totalCount": 1
        }
      },
      "ContentSlide": {
        "summary": "A slide deck",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000120001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "title": "Fractions on a number line",
          "description": "A ten-page deck for the second lesson.",
          "outline": "1. Title\n2. Contents\n3. Halves and quarters\n4. Summary",
          "visibility": "PUBLIC",
          "contentVersion": 3,
          "metadata": {
            "target": "Grade 5, mixed ability"
          },
          "thumbnail": null,
          "slug": "fractions-number-line",
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "content": "{\"type\":\"doc\",\"content\":[]}"
        }
      },
      "ContentSlideList": {
        "summary": "A page of slide decks",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000120001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Fractions on a number line",
              "description": "A ten-page deck for the second lesson.",
              "outline": "1. Title\n2. Contents\n3. Halves and quarters\n4. Summary",
              "visibility": "PUBLIC",
              "contentVersion": 3,
              "metadata": {
                "target": "Grade 5, mixed ability"
              },
              "thumbnail": null,
              "slug": "fractions-number-line",
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "meta": {
            "page": 1,
            "take": 20,
            "itemCount": 1,
            "pageCount": 1,
            "hasPreviousPage": false,
            "hasNextPage": false
          },
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000120001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "title": "Fractions on a number line",
              "description": "A ten-page deck for the second lesson.",
              "outline": "1. Title\n2. Contents\n3. Halves and quarters\n4. Summary",
              "visibility": "PUBLIC",
              "contentVersion": 3,
              "metadata": {
                "target": "Grade 5, mixed ability"
              },
              "thumbnail": null,
              "slug": "fractions-number-line",
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "totalCount": 1
        }
      },
      "ContentTest": {
        "summary": "A test with its questions",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
          "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
          "name": "Fractions check",
          "description": "Ten minutes on equivalent fractions.",
          "thumbnail": null,
          "slug": "fractions-check",
          "level": "MEDIUM",
          "visibility": "PRIVATE",
          "timeLimit": 10,
          "passingValue": 80,
          "passingValueType": "SCORE",
          "periodType": "ALWAYS",
          "periodStartDate": null,
          "periodEndDate": null,
          "layoutType": "DEFAULT",
          "topicPrompt": "Equivalent fractions for Grade 5",
          "targetPrompt": null,
          "metadata": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100101",
              "classroomTestId": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
              "title": null,
              "question": "Which fraction is equal to 1/2?",
              "questionAudioUrl": null,
              "type": "select",
              "options": [
                "2/4",
                "1/3",
                "3/5"
              ],
              "correctAnswers": [
                "2/4"
              ],
              "explanation": "Multiplying the top and the bottom by 2 gives 2/4.",
              "sequence": 1,
              "score": 10,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ]
        }
      },
      "ContentTestList": {
        "summary": "A page of tests",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "name": "Fractions check",
              "description": "Ten minutes on equivalent fractions.",
              "thumbnail": null,
              "slug": "fractions-check",
              "level": "MEDIUM",
              "visibility": "PRIVATE",
              "timeLimit": 10,
              "passingValue": 80,
              "passingValueType": "SCORE",
              "periodType": "ALWAYS",
              "periodStartDate": null,
              "periodEndDate": null,
              "layoutType": "DEFAULT",
              "topicPrompt": "Equivalent fractions for Grade 5",
              "targetPrompt": null,
              "metadata": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z",
              "totalTestUserCount": 18
            }
          ],
          "meta": {
            "page": 1,
            "take": 20,
            "itemCount": 1,
            "pageCount": 1,
            "hasPreviousPage": false,
            "hasNextPage": false
          },
          "items": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "name": "Fractions check",
              "description": "Ten minutes on equivalent fractions.",
              "thumbnail": null,
              "slug": "fractions-check",
              "level": "MEDIUM",
              "visibility": "PRIVATE",
              "timeLimit": 10,
              "passingValue": 80,
              "passingValueType": "SCORE",
              "periodType": "ALWAYS",
              "periodStartDate": null,
              "periodEndDate": null,
              "layoutType": "DEFAULT",
              "topicPrompt": "Equivalent fractions for Grade 5",
              "targetPrompt": null,
              "metadata": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z",
              "totalTestUserCount": 18
            }
          ],
          "totalCount": 1
        }
      },
      "ContentTestResultDetail": {
        "summary": "One result with its answers",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100201",
          "testId": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
          "learnerId": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
          "isAnonymous": false,
          "taker": null,
          "status": "submitted",
          "startedAt": "2026-09-02T14:30:00.000Z",
          "finishedAt": "2026-09-02T14:34:12.000Z",
          "score": 90,
          "maxScore": 100,
          "isGraded": true,
          "createdAt": "2026-09-02T14:30:00.000Z",
          "updatedAt": "2026-09-02T14:34:12.000Z",
          "items": [
            {
              "testItemId": "3f6c2a1e-7b4d-4c8e-9a10-000000100101",
              "status": "CORRECT",
              "score": 10,
              "answers": [
                "2/4"
              ]
            }
          ]
        }
      },
      "ContentTestResultPage": {
        "summary": "A page of test results",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000100201",
              "testId": "3f6c2a1e-7b4d-4c8e-9a10-000000100001",
              "learnerId": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
              "isAnonymous": false,
              "taker": null,
              "status": "submitted",
              "startedAt": "2026-09-02T14:30:00.000Z",
              "finishedAt": "2026-09-02T14:34:12.000Z",
              "score": 90,
              "maxScore": 100,
              "isGraded": true,
              "createdAt": "2026-09-02T14:30:00.000Z",
              "updatedAt": "2026-09-02T14:34:12.000Z"
            }
          ],
          "meta": {
            "limit": 20,
            "hasNextPage": true,
            "nextCursor": "eyJpZCI6IjNmNmMyYTFlLTdiNGQtNGM4ZS05YTEwLTAwMDAwMDEwMDIwMSJ9"
          }
        }
      },
      "ContentUnenrolled": {
        "summary": "The learner left the course",
        "value": {
          "learnerId": "3f6c2a1e-7b4d-4c8e-9a10-0000000e0002",
          "courseId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
          "deleted": true
        }
      },
      "ContentVideo": {
        "summary": "A video with its scenes",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000110001",
          "title": "Why 2/4 equals 1/2",
          "description": "A two-scene explainer for the equivalent fractions lesson.",
          "visibility": "PRIVATE",
          "renderStatus": "IDLE",
          "renderProgress": null,
          "renderPhase": null,
          "thumbnailKey": null,
          "bgmAudioKey": null,
          "bgmVolume": 0.2,
          "bgmOffset": 0,
          "bgmFadeInDuration": 0,
          "bgmFadeOutDuration": 0,
          "userNarrationScript": null,
          "aspectRatio": "16:9",
          "avatarId": null,
          "metadata": {
            "prompt": "Explain equivalent fractions to Grade 5"
          },
          "slug": "why-two-quarters",
          "scenes": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000110101",
              "order": 0,
              "script": "Cut a pizza into two equal slices and take one. That is one half.",
              "displayText": "One half",
              "narrationSource": null,
              "hasNarration": false,
              "remotionTemplate": null,
              "keywords": [
                "pizza",
                "half"
              ],
              "subtitles": [
                {
                  "text": "Cut a pizza into two equal slices.",
                  "offset": 0,
                  "duration": 2.8
                },
                {
                  "text": "Take one. That is one half.",
                  "offset": 2.8,
                  "duration": 3.2
                }
              ],
              "transitionOut": "fade",
              "duration": 6,
              "audioOffset": null,
              "audioDuration": null,
              "videoOffset": null,
              "videoDuration": null,
              "visualOffset": null,
              "visualDuration": null,
              "subtitleOffset": null,
              "subtitleDuration": null,
              "transitionDuration": 0.5,
              "videoClipSource": null,
              "visualType": "image",
              "visualKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/videos/3f6c2a1e-7b4d-4c8e-9a10-000000110001/scenes/pizza-half.png",
              "visualSource": null,
              "visualFit": null,
              "videoEffect": null,
              "visualEffect": null,
              "visualMetadata": null,
              "visualAdjustments": null,
              "visualOverlays": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            },
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000110102",
              "order": 1,
              "script": "Now cut the same pizza into four slices and take two. It is the same amount.",
              "displayText": "Two quarters",
              "narrationSource": null,
              "hasNarration": false,
              "remotionTemplate": null,
              "keywords": [
                "pizza",
                "quarters"
              ],
              "subtitles": null,
              "transitionOut": null,
              "duration": 7,
              "audioOffset": null,
              "audioDuration": null,
              "videoOffset": null,
              "videoDuration": null,
              "visualOffset": null,
              "visualDuration": null,
              "subtitleOffset": null,
              "subtitleDuration": null,
              "transitionDuration": null,
              "videoClipSource": null,
              "visualType": "image",
              "visualKey": "classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/videos/3f6c2a1e-7b4d-4c8e-9a10-000000110001/scenes/pizza-quarters.png",
              "visualSource": null,
              "visualFit": null,
              "videoEffect": null,
              "visualEffect": null,
              "visualMetadata": null,
              "visualAdjustments": null,
              "visualOverlays": null,
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z"
        }
      },
      "ContentVideoList": {
        "summary": "A page of videos",
        "value": {
          "data": [
            {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000110001",
              "title": "Why 2/4 equals 1/2",
              "description": "A two-scene explainer for the equivalent fractions lesson.",
              "visibility": "PRIVATE",
              "renderStatus": "IDLE",
              "renderProgress": null,
              "renderPhase": null,
              "thumbnailKey": null,
              "bgmAudioKey": null,
              "bgmVolume": 0.2,
              "bgmOffset": 0,
              "bgmFadeInDuration": 0,
              "bgmFadeOutDuration": 0,
              "userNarrationScript": null,
              "aspectRatio": "16:9",
              "avatarId": null,
              "metadata": {
                "prompt": "Explain equivalent fractions to Grade 5"
              },
              "slug": "why-two-quarters",
              "scenes": [],
              "createdAt": "2026-09-01T09:00:00.000Z",
              "updatedAt": "2026-09-02T14:30:00.000Z"
            }
          ],
          "meta": {
            "page": 1,
            "take": 20,
            "itemCount": 1,
            "pageCount": 1,
            "hasPreviousPage": false,
            "hasNextPage": false
          },
          "total": 1
        }
      },
      "ContentVideoRenderAccepted": {
        "summary": "The render started",
        "value": {
          "status": "accepted",
          "renderStatus": "RENDERING",
          "estimatedSeconds": 90,
          "totalDurationSeconds": 42,
          "narratedSceneIds": [
            "3f6c2a1e-7b4d-4c8e-9a10-000000110102"
          ],
          "narrationCreditsCharged": 1,
          "livemode": true
        }
      },
      "ContentVideoRenderCancelled": {
        "summary": "The render was cancelled",
        "value": {
          "status": "ok"
        }
      },
      "ContentVideoRenderStatus": {
        "summary": "A finished render with its video URL",
        "value": {
          "renderStatus": "COMPLETED",
          "renderError": null,
          "progress": 100,
          "videoUrl": "https://cdn.tutorflow.io/classrooms/3f6c2a1e-7b4d-4c8e-9a10-0000000c0001/videos/3f6c2a1e-7b4d-4c8e-9a10-000000110001/output.mp4",
          "videoUrlExpiresAt": null,
          "thumbnailUrl": null,
          "updatedAt": "2026-09-02T14:34:12.000Z"
        }
      },
      "ContentWebhookCreatedResDto": {
        "summary": "The endpoint with its signing secret, shown only now",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160001",
          "organizationId": "3f6c2a1e-7b4d-4c8e-9a10-0000000a0001",
          "url": "https://lms.example.edu/hooks/tutorflow",
          "events": [
            "course.generation.completed",
            "course.generation.failed",
            "video.render.completed"
          ],
          "status": "ACTIVE",
          "mode": "live",
          "previousSecretExpiresAt": null,
          "consecutiveFailures": 0,
          "failingSince": null,
          "lastSuccessAt": "2026-09-02T14:34:12.000Z",
          "disabledReason": null,
          "disabledAt": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "secret": "9f2c4e7a1b3d5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8"
        }
      },
      "ContentWebhookDeleted": {
        "summary": "The endpoint was deleted",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160001",
          "deleted": true
        }
      },
      "ContentWebhookDeliveryResDto": {
        "summary": "A delivered event with the exact body sent",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160101",
          "eventId": "3f6c2a1e-7b4d-4c8e-9a10-000000160201",
          "eventType": "course.generation.completed",
          "status": "SENT",
          "attempts": 1,
          "responseStatus": 200,
          "lastError": null,
          "lastAttemptAt": "2026-09-02T14:34:12.000Z",
          "nextRetryAt": null,
          "sentAt": "2026-09-02T14:34:12.000Z",
          "createdAt": "2026-09-02T14:34:12.000Z",
          "payload": {
            "resourceType": "course",
            "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
            "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
            "runId": "3f6c2a1e-7b4d-4c8e-9a10-000000150001",
            "status": "completed",
            "stage": "generating_lessons",
            "progress": {
              "completed": 12,
              "total": 12,
              "unit": "lesson"
            },
            "creditsCharged": 39,
            "error": null,
            "livemode": true,
            "event": {
              "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160201",
              "type": "course.generation.completed",
              "createdAt": "2026-09-02T14:34:12.000Z"
            }
          }
        }
      },
      "ContentWebhookDeliveryResDtoArray": {
        "summary": "Recent deliveries, newest first",
        "value": [
          {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160101",
            "eventId": "3f6c2a1e-7b4d-4c8e-9a10-000000160201",
            "eventType": "course.generation.completed",
            "status": "SENT",
            "attempts": 1,
            "responseStatus": 200,
            "lastError": null,
            "lastAttemptAt": "2026-09-02T14:34:12.000Z",
            "nextRetryAt": null,
            "sentAt": "2026-09-02T14:34:12.000Z",
            "createdAt": "2026-09-02T14:34:12.000Z",
            "payload": {
              "resourceType": "course",
              "resourceId": "3f6c2a1e-7b4d-4c8e-9a10-0000000d0001",
              "classroomId": "3f6c2a1e-7b4d-4c8e-9a10-0000000c0001",
              "runId": "3f6c2a1e-7b4d-4c8e-9a10-000000150001",
              "status": "completed",
              "stage": "generating_lessons",
              "progress": {
                "completed": 12,
                "total": 12,
                "unit": "lesson"
              },
              "creditsCharged": 39,
              "error": null,
              "livemode": true,
              "event": {
                "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160201",
                "type": "course.generation.completed",
                "createdAt": "2026-09-02T14:34:12.000Z"
              }
            }
          }
        ]
      },
      "ContentWebhookResDto": {
        "summary": "A healthy live endpoint",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160001",
          "organizationId": "3f6c2a1e-7b4d-4c8e-9a10-0000000a0001",
          "url": "https://lms.example.edu/hooks/tutorflow",
          "events": [
            "course.generation.completed",
            "course.generation.failed",
            "video.render.completed"
          ],
          "status": "ACTIVE",
          "mode": "live",
          "previousSecretExpiresAt": null,
          "consecutiveFailures": 0,
          "failingSince": null,
          "lastSuccessAt": "2026-09-02T14:34:12.000Z",
          "disabledReason": null,
          "disabledAt": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z"
        }
      },
      "ContentWebhookResDtoArray": {
        "summary": "The endpoints",
        "value": [
          {
            "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160001",
            "organizationId": "3f6c2a1e-7b4d-4c8e-9a10-0000000a0001",
            "url": "https://lms.example.edu/hooks/tutorflow",
            "events": [
              "course.generation.completed",
              "course.generation.failed",
              "video.render.completed"
            ],
            "status": "ACTIVE",
            "mode": "live",
            "previousSecretExpiresAt": null,
            "consecutiveFailures": 0,
            "failingSince": null,
            "lastSuccessAt": "2026-09-02T14:34:12.000Z",
            "disabledReason": null,
            "disabledAt": null,
            "createdAt": "2026-09-01T09:00:00.000Z",
            "updatedAt": "2026-09-02T14:30:00.000Z"
          }
        ]
      },
      "ContentWebhookUpdatedResDto": {
        "summary": "The endpoint after PATCH",
        "value": {
          "id": "3f6c2a1e-7b4d-4c8e-9a10-000000160001",
          "organizationId": "3f6c2a1e-7b4d-4c8e-9a10-0000000a0001",
          "url": "https://lms.example.edu/hooks/tutorflow",
          "events": [
            "course.generation.completed",
            "course.generation.failed",
            "video.render.completed"
          ],
          "status": "ACTIVE",
          "mode": "live",
          "previousSecretExpiresAt": null,
          "consecutiveFailures": 0,
          "failingSince": null,
          "lastSuccessAt": "2026-09-02T14:34:12.000Z",
          "disabledReason": null,
          "disabledAt": null,
          "createdAt": "2026-09-01T09:00:00.000Z",
          "updatedAt": "2026-09-02T14:30:00.000Z",
          "replayedDeliveries": null
        }
      },
      "ContentWhiteboard": {
        "summary": "A whiteboard draft",
        "value": {
          "id": "6b7dc281-b57e-4bc8-939d-a55281885267",
          "title": "Team retrospective",
          "cards": [
            {
              "id": "677b3538-868f-4490-bbd8-e249bc44b446",
              "kind": "note",
              "color": "mint",
              "x": 40,
              "y": 40,
              "w": 320,
              "h": 200,
              "text": "What should we keep doing?"
            }
          ],
          "revision": 1,
          "isPublished": false,
          "isCurrentPublished": false
        }
      },
      "ContentWhiteboardControllerSave200": {
        "summary": "A whiteboard with the latest revision published",
        "value": {
          "id": "6b7dc281-b57e-4bc8-939d-a55281885267",
          "title": "Team retrospective",
          "cards": [
            {
              "id": "677b3538-868f-4490-bbd8-e249bc44b446",
              "kind": "note",
              "color": "mint",
              "x": 40,
              "y": 40,
              "w": 320,
              "h": 200,
              "text": "What should we keep doing?"
            }
          ],
          "revision": 2,
          "isPublished": true,
          "isCurrentPublished": true
        }
      },
      "ContentWhiteboardList": {
        "summary": "A page of whiteboard previews",
        "value": {
          "items": [
            {
              "id": "6b7dc281-b57e-4bc8-939d-a55281885267",
              "title": "Team retrospective",
              "isPublished": false,
              "previewCards": [
                {
                  "id": "677b3538-868f-4490-bbd8-e249bc44b446",
                  "kind": "note",
                  "color": "mint",
                  "x": 40,
                  "y": 40,
                  "w": 320,
                  "h": 200,
                  "caption": "What should we keep doing?",
                  "targets": []
                }
              ]
            }
          ],
          "totalCount": 1
        }
      }
    }
  }
}
