Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

feat(contracts): export frontend REST and turn schemas

Bingxi Zhao (Frank)3403f97b2a4d
diff --git a/deeptutor/api/contracts/__init__.py b/deeptutor/api/contracts/__init__.py
new file mode 100644
index 000000000..29edb2d27
--- /dev/null
+++ b/deeptutor/api/contracts/__init__.py
@@ -0,0 +1,21 @@
+"""Public API and WebSocket contract models."""
+
+from .turn_protocol import (
+ ErrorEnvelope,
+ RuntimeStatus,
+ StreamEvent,
+ StreamEventType,
+ TurnFailureCode,
+ TurnProtocolDocument,
+ TurnStatus,
+)
+
+__all__ = [
+ "ErrorEnvelope",
+ "RuntimeStatus",
+ "StreamEvent",
+ "StreamEventType",
+ "TurnFailureCode",
+ "TurnProtocolDocument",
+ "TurnStatus",
+]
diff --git a/deeptutor/api/contracts/export.py b/deeptutor/api/contracts/export.py
new file mode 100644
index 000000000..14d750177
--- /dev/null
+++ b/deeptutor/api/contracts/export.py
@@ -0,0 +1,86 @@
+"""Deterministically export backend-owned browser contracts."""
+
+from __future__ import annotations
+
+import argparse
+from copy import deepcopy
+import json
+from pathlib import Path
+from typing import Any
+
+from pydantic import BaseModel
+
+from deeptutor.app.contracts import TurnRequest
+
+from .turn_protocol import (
+ ErrorEnvelope,
+ RuntimeStatus,
+ SessionDetail,
+ SessionSummary,
+ TurnProtocolDocument,
+)
+
+
+PROJECT_ROOT = Path(__file__).resolve().parents[3]
+DEFAULT_OUTPUT_DIR = PROJECT_ROOT / "web" / "contracts" / "schema"
+
+
+def _json_text(payload: dict[str, Any]) -> str:
+ return json.dumps(payload, ensure_ascii=False, indent=2, sort_keys=True) + "\n"
+
+
+def _merge_model_schema(components: dict[str, Any], model: type[BaseModel]) -> None:
+ schema = model.model_json_schema(ref_template="#/components/schemas/{model}")
+ definitions = schema.pop("$defs", {})
+ components.update(definitions)
+ components[model.__name__] = schema
+
+
+def render_contracts() -> dict[str, str]:
+ from deeptutor.api.main import app
+
+ openapi = deepcopy(app.openapi())
+ schemas = openapi.setdefault("components", {}).setdefault("schemas", {})
+ for model in (TurnRequest, RuntimeStatus, SessionSummary, SessionDetail, ErrorEnvelope):
+ _merge_model_schema(schemas, model)
+ openapi["x-deeptutor-web-protocol-version"] = "2.0"
+
+ protocol = TurnProtocolDocument.model_json_schema()
+ return {
+ "openapi.json": _json_text(openapi),
+ "turn-protocol.json": _json_text(protocol),
+ }
+
+
+def write_contracts(output_dir: Path, *, check: bool = False) -> list[str]:
+ rendered = render_contracts()
+ changed: list[str] = []
+ for filename, content in rendered.items():
+ target = output_dir / filename
+ current = target.read_text(encoding="utf-8") if target.exists() else None
+ if current == content:
+ continue
+ changed.append(filename)
+ if not check:
+ output_dir.mkdir(parents=True, exist_ok=True)
+ target.write_text(content, encoding="utf-8")
+ return changed
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("--check", action="store_true", help="fail when artifacts drift")
+ parser.add_argument("--output-dir", type=Path, default=DEFAULT_OUTPUT_DIR)
+ args = parser.parse_args(argv)
+
+ changed = write_contracts(args.output_dir, check=args.check)
+ if args.check and changed:
+ print("Frontend contract drift: " + ", ".join(changed))
+ return 1
+ if changed:
+ print("Updated frontend contracts: " + ", ".join(changed))
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/deeptutor/api/contracts/turn_protocol.py b/deeptutor/api/contracts/turn_protocol.py
new file mode 100644
index 000000000..95876df4c
--- /dev/null
+++ b/deeptutor/api/contracts/turn_protocol.py
@@ -0,0 +1,277 @@
+"""Canonical v2 wire models for the browser turn protocol."""
+
+from __future__ import annotations
+
+from enum import Enum
+from typing import Annotated, Any, Literal
+
+from pydantic import BaseModel, ConfigDict, Field, model_validator
+
+from deeptutor.app.contracts import TurnRequest
+
+
+PROTOCOL_VERSION = "2.0"
+MINIMUM_WEB_PROTOCOL_VERSION = "2.0"
+
+
+class TurnStatus(str, Enum):
+ QUEUED = "queued"
+ RUNNING = "running"
+ WAITING_INPUT = "waiting_input"
+ COMPLETED = "completed"
+ FAILED = "failed"
+ CANCELLED = "cancelled"
+
+
+class TurnQueryState(str, Enum):
+ """Client observation state, including server-side recovery windows."""
+
+ QUEUED = "queued"
+ RUNNING = "running"
+ WAITING_INPUT = "waiting_input"
+ RECOVERING = "recovering"
+ COMPLETED = "completed"
+ FAILED = "failed"
+ CANCELLED = "cancelled"
+
+
+class TurnFailureCode(str, Enum):
+ WORKER_LOST = "worker_lost"
+ LEASE_LOST = "lease_lost"
+ COORDINATION_UNAVAILABLE = "coordination_unavailable"
+ PROVIDER_ERROR = "provider_error"
+ INTERNAL_ERROR = "internal_error"
+ REJECTED = "rejected"
+ SERVER_SHUTDOWN = "server_shutdown"
+
+
+class StreamEventType(str, Enum):
+ STAGE_START = "stage_start"
+ STAGE_END = "stage_end"
+ THINKING = "thinking"
+ OBSERVATION = "observation"
+ CONTENT = "content"
+ TOOL_CALL = "tool_call"
+ TOOL_RESULT = "tool_result"
+ PROGRESS = "progress"
+ SOURCES = "sources"
+ RESULT = "result"
+ ERROR = "error"
+ SESSION = "session"
+ SESSION_META = "session_meta"
+ WAIT_FOR_INPUT = "wait_for_input"
+ DONE = "done"
+
+
+class WireModel(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+
+class StartTurnCommand(TurnRequest):
+ type: Literal["message", "start_turn"] = "start_turn"
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class SubscribeTurnCommand(WireModel):
+ type: Literal["subscribe_turn"] = "subscribe_turn"
+ turn_id: str = Field(min_length=1)
+ after_seq: int = Field(default=0, ge=0)
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class SubscribeSessionCommand(WireModel):
+ type: Literal["subscribe_session"] = "subscribe_session"
+ session_id: str = Field(min_length=1)
+ after_seq: int = Field(default=0, ge=0)
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class ResumeTurnCommand(WireModel):
+ type: Literal["resume_from"] = "resume_from"
+ turn_id: str = Field(min_length=1)
+ seq: int = Field(default=0, ge=0)
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class UnsubscribeCommand(WireModel):
+ type: Literal["unsubscribe"] = "unsubscribe"
+ turn_id: str | None = None
+ session_id: str | None = None
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+ @model_validator(mode="after")
+ def _has_target(self) -> "UnsubscribeCommand":
+ if not self.turn_id and not self.session_id:
+ raise ValueError("unsubscribe requires turn_id or session_id")
+ return self
+
+
+class CancelTurnCommand(WireModel):
+ type: Literal["cancel_turn"] = "cancel_turn"
+ turn_id: str = Field(min_length=1)
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class RegenerateCommand(WireModel):
+ type: Literal["regenerate"] = "regenerate"
+ session_id: str = Field(min_length=1)
+ overrides: dict[str, Any] = Field(default_factory=dict)
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class UserAnswer(WireModel):
+ questionId: str = Field(min_length=1)
+ text: str = ""
+
+
+class SubmitUserReplyCommand(WireModel):
+ type: Literal["submit_user_reply"] = "submit_user_reply"
+ turn_id: str = Field(min_length=1)
+ text: str | None = None
+ answers: list[UserAnswer] | None = None
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class UserInputCommand(WireModel):
+ type: Literal["user_input"] = "user_input"
+ turn_id: str = Field(min_length=1)
+ content: str
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class CheckActiveTurnCommand(WireModel):
+ type: Literal["check_active_turn"] = "check_active_turn"
+ session_id: str = Field(min_length=1)
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class PingCommand(WireModel):
+ type: Literal["ping"] = "ping"
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+ClientCommand = Annotated[
+ StartTurnCommand
+ | SubscribeTurnCommand
+ | SubscribeSessionCommand
+ | ResumeTurnCommand
+ | UnsubscribeCommand
+ | CancelTurnCommand
+ | RegenerateCommand
+ | SubmitUserReplyCommand
+ | UserInputCommand
+ | CheckActiveTurnCommand
+ | PingCommand,
+ Field(discriminator="type"),
+]
+
+
+class StreamEvent(WireModel):
+ type: StreamEventType
+ source: str = ""
+ stage: str = ""
+ content: str = ""
+ metadata: dict[str, Any] = Field(default_factory=dict)
+ session_id: str = ""
+ turn_id: str = ""
+ seq: int = Field(default=0, ge=0)
+ timestamp: float
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class ActiveTurnInfo(WireModel):
+ type: Literal["active_turn_info"] = "active_turn_info"
+ turn_id: str = ""
+ status: TurnStatus | Literal["none"] = "none"
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+class PongEvent(WireModel):
+ type: Literal["pong"] = "pong"
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+
+
+ServerEvent = StreamEvent | ActiveTurnInfo | PongEvent
+
+
+class TurnSummary(WireModel):
+ id: str
+ session_id: str
+ status: TurnStatus
+ query_state: TurnQueryState | None = None
+ capability: str = ""
+ owner_id: str = ""
+ last_seq: int = Field(default=0, ge=0)
+ error: str = ""
+ error_code: TurnFailureCode | None = None
+ retryable: bool = False
+ created_at: float | None = None
+ updated_at: float | None = None
+
+
+class SessionSummary(WireModel):
+ id: str
+ title: str
+ created_at: float | None = None
+ updated_at: float | None = None
+ active_turn: TurnSummary | None = None
+
+
+class SessionDetail(SessionSummary):
+ messages: list[dict[str, Any]] = Field(default_factory=list)
+ preferences: dict[str, Any] = Field(default_factory=dict)
+
+
+class RuntimeStatus(WireModel):
+ worker_id: str
+ worker_count: int = Field(ge=1)
+ coordination_mode: Literal["memory", "redis"]
+ redis_configured: bool
+ redis_status: Literal["ok", "unavailable", "not_configured"]
+ leader_id: str | None = None
+ leader_healthy: bool | None = None
+ owner_turn_count: int = Field(default=0, ge=0)
+ recovery_backlog: int = Field(default=0, ge=0)
+ lease_ttl_seconds: int = Field(ge=1)
+ renew_interval_seconds: int = Field(ge=1)
+ recovery_interval_seconds: int = Field(ge=1)
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+ minimum_web_protocol_version: Literal["2.0"] = MINIMUM_WEB_PROTOCOL_VERSION
+
+
+class ErrorEnvelope(WireModel):
+ error_code: str
+ message: str
+ retryable: bool = False
+ correlation_id: str | None = None
+
+
+class TurnProtocolDocument(WireModel):
+ protocol_version: Literal["2.0"] = PROTOCOL_VERSION
+ minimum_web_protocol_version: Literal["2.0"] = MINIMUM_WEB_PROTOCOL_VERSION
+ client_command: ClientCommand
+ server_event: ServerEvent
+ runtime_status: RuntimeStatus
+ session_summary: SessionSummary
+ session_detail: SessionDetail
+ error: ErrorEnvelope
+
+
+__all__ = [
+ "ActiveTurnInfo",
+ "ClientCommand",
+ "ErrorEnvelope",
+ "MINIMUM_WEB_PROTOCOL_VERSION",
+ "PROTOCOL_VERSION",
+ "RuntimeStatus",
+ "ServerEvent",
+ "SessionDetail",
+ "SessionSummary",
+ "StreamEvent",
+ "StreamEventType",
+ "TurnFailureCode",
+ "TurnProtocolDocument",
+ "TurnQueryState",
+ "TurnStatus",
+ "TurnSummary",
+]
diff --git a/deeptutor/app/contracts.py b/deeptutor/app/contracts.py
new file mode 100644
index 000000000..6657213bb
--- /dev/null
+++ b/deeptutor/app/contracts.py
@@ -0,0 +1,163 @@
+"""Typed public contracts shared by every DeepTutor entry-point adapter."""
+
+from __future__ import annotations
+
+from typing import Any
+import warnings
+
+from pydantic import BaseModel, ConfigDict, Field, model_validator
+
+
+_LEGACY_RUNTIME_CONFIG_KEYS: dict[str, str] = {
+ "_persist_user_message": "persist_user_message",
+ "_regenerate": "regenerate",
+ "_regenerated_from_message_id": "regenerated_from_message_id",
+ "_superseded_turn_id": "superseded_turn_id",
+ "followup_question_context": "followup_question_context",
+ "selection_tutor_context": "selection_tutor_context",
+ "_course_id": "course_id",
+ "subagent_consult_budget": "subagent_consult_budget",
+ "auto_route": "auto_route",
+}
+
+
+class LLMSelection(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+ profile_id: str
+ model_id: str
+
+
+class OutgoingAttachment(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+ type: str
+ url: str | None = None
+ base64: str | None = None
+ filename: str | None = None
+ mime_type: str | None = None
+
+
+class NotebookReference(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+ notebook_id: str
+ record_ids: list[str] = Field(default_factory=list)
+
+
+class BookReference(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+ book_id: str
+ page_ids: list[str] = Field(default_factory=list)
+
+
+class ReadingReference(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+ material_id: str
+ revision: int = Field(ge=1)
+ locators: list[int] = Field(default_factory=list)
+
+
+class ReadingViewport(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+ locator: int | None = Field(default=None, ge=0)
+ selection: str | None = None
+
+
+class TimedMediaViewport(BaseModel):
+ model_config = ConfigDict(extra="forbid")
+
+ time_seconds: float = Field(ge=0)
+
+
+class TurnRequest(BaseModel):
+ """Validated turn input; ``config`` contains capability options only."""
+
+ model_config = ConfigDict(extra="forbid")
+
+ content: str
+ capability: str | None = "chat"
+ session_id: str | None = None
+ tools: list[str] | None = None
+ knowledge_bases: list[str] = Field(default_factory=list)
+ language: str | None = None
+ config: dict[str, Any] = Field(default_factory=dict)
+
+ notebook_references: list[NotebookReference] = Field(default_factory=list)
+ history_references: list[str] = Field(default_factory=list)
+ partner_group_references: list[dict[str, Any]] = Field(default_factory=list)
+ question_notebook_references: list[int] = Field(default_factory=list)
+ book_references: list[BookReference] = Field(default_factory=list)
+ reading_references: list[ReadingReference] = Field(default_factory=list)
+ memory_references: list[dict[str, Any]] = Field(default_factory=list)
+ attachments: list[OutgoingAttachment] = Field(default_factory=list)
+ skills: list[str] = Field(default_factory=list)
+
+ persona: str | None = None
+ llm_selection: LLMSelection | None = None
+ workspace_mode: str | None = None
+ mastery_path_id: str | None = None
+ mastery_path_lease_managed: bool = False
+ reading_material_id: str | None = None
+ reading_material_revision: int | None = Field(default=None, ge=1)
+ reading_workspace_id: str | None = None
+ reading_viewport: ReadingViewport | None = None
+ timed_media_id: str | None = None
+ timed_media_viewport: TimedMediaViewport | None = None
+ parent_message_id: int | None = None
+
+ course_id: str | None = None
+ persist_user_message: bool = True
+ regenerate: bool = False
+ regenerated_from_message_id: int | None = None
+ superseded_turn_id: str | None = None
+ followup_question_context: dict[str, Any] | None = None
+ selection_tutor_context: dict[str, Any] | None = None
+ subagent_consult_budget: int | None = Field(default=None, ge=0)
+ auto_route: bool | None = None
+
+ @model_validator(mode="before")
+ @classmethod
+ def _translate_legacy_runtime_config(cls, value: Any) -> Any:
+ if not isinstance(value, dict):
+ return value
+ result = dict(value)
+ config = result.get("config")
+ if not isinstance(config, dict):
+ return result
+ public_config = dict(config)
+ translated: list[str] = []
+ for legacy_key, field_name in _LEGACY_RUNTIME_CONFIG_KEYS.items():
+ if legacy_key not in public_config:
+ continue
+ legacy_value = public_config.pop(legacy_key)
+ if field_name not in result:
+ result[field_name] = legacy_value
+ translated.append(legacy_key)
+ result["config"] = public_config
+ if translated:
+ warnings.warn(
+ "Runtime turn options in config are deprecated; use explicit TurnRequest "
+ f"fields instead ({', '.join(sorted(translated))})",
+ DeprecationWarning,
+ stacklevel=3,
+ )
+ return result
+
+ def to_payload(self) -> dict[str, Any]:
+ return self.model_dump(mode="python", exclude_unset=True)
+
+
+__all__ = [
+ "BookReference",
+ "LLMSelection",
+ "NotebookReference",
+ "OutgoingAttachment",
+ "ReadingReference",
+ "ReadingViewport",
+ "TimedMediaViewport",
+ "TurnRequest",
+]
diff --git a/pyproject.toml b/pyproject.toml
index 8093c9821..f3ca8e3f5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -83,6 +83,7 @@ dependencies = [
[project.scripts]
deeptutor = "deeptutor_cli.main:main"
+deeptutor-export-frontend-contracts = "deeptutor.api.contracts.export:main"
[project.entry-points."deeptutor.reading_extensions"]
read_aloud = "deeptutor.reading.read_aloud:ReadAloudExtension"
diff --git a/scripts/export_frontend_contracts.py b/scripts/export_frontend_contracts.py
new file mode 100644
index 000000000..ae0ce23a1
--- /dev/null
+++ b/scripts/export_frontend_contracts.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+"""CLI wrapper for the backend-owned frontend contract exporter."""
+
+from pathlib import Path
+import sys
+
+
+PROJECT_ROOT = Path(__file__).resolve().parents[1]
+if str(PROJECT_ROOT) not in sys.path:
+ sys.path.insert(0, str(PROJECT_ROOT))
+
+from deeptutor.api.contracts.export import main # noqa: E402
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/tests/api/test_frontend_contract_export.py b/tests/api/test_frontend_contract_export.py
new file mode 100644
index 000000000..1304517e1
--- /dev/null
+++ b/tests/api/test_frontend_contract_export.py
@@ -0,0 +1,68 @@
+from __future__ import annotations
+
+import json
+
+from deeptutor.api.contracts.export import render_contracts, write_contracts
+
+
+def _enum_values(schema: dict, name: str) -> set[str]:
+ definition = schema["$defs"][name]
+ return set(definition["enum"])
+
+
+def test_frontend_contract_export_is_deterministic(tmp_path) -> None:
+ first = render_contracts()
+ second = render_contracts()
+
+ assert first == second
+ write_contracts(tmp_path)
+ written = {
+ path.name: path.read_text(encoding="utf-8")
+ for path in sorted(tmp_path.glob("*.json"))
+ }
+ assert written == first
+ for content in written.values():
+ assert content.endswith("\n")
+ assert (
+ json.dumps(json.loads(content), ensure_ascii=False, indent=2, sort_keys=True) + "\n"
+ == content
+ )
+
+
+def test_turn_schema_contains_the_complete_v2_lifecycle() -> None:
+ protocol = json.loads(render_contracts()["turn-protocol.json"])
+
+ assert _enum_values(protocol, "TurnStatus") == {
+ "queued",
+ "running",
+ "waiting_input",
+ "completed",
+ "failed",
+ "cancelled",
+ }
+ assert "wait_for_input" in _enum_values(protocol, "StreamEventType")
+ assert "worker_lost" in _enum_values(protocol, "TurnFailureCode")
+ assert protocol["properties"]["protocol_version"]["default"] == "2.0"
+
+
+def test_exported_runtime_contract_contains_no_secret_defaults() -> None:
+ rendered = render_contracts()
+ combined = "\n".join(rendered.values()).lower()
+
+ assert "redis://" not in combined
+ protocol = json.loads(rendered["turn-protocol.json"])
+ runtime = protocol["$defs"]["RuntimeStatus"]
+ assert "redis_url" not in runtime["properties"]
+ assert "password" not in runtime["properties"]
+ assert "token" not in runtime["properties"]
+
+
+def test_check_mode_reports_drift_without_writing(tmp_path) -> None:
+ write_contracts(tmp_path)
+ target = tmp_path / "turn-protocol.json"
+ target.write_text("{}\n", encoding="utf-8")
+
+ changed = write_contracts(tmp_path, check=True)
+
+ assert changed == ["turn-protocol.json"]
+ assert target.read_text(encoding="utf-8") == "{}\n"
diff --git a/web/contracts/schema/openapi.json b/web/contracts/schema/openapi.json
new file mode 100644
index 000000000..b87f64b37
--- /dev/null
+++ b/web/contracts/schema/openapi.json
@@ -0,0 +1,49467 @@
+{
+ "components": {
+ "schemas": {
+ "ActionPayload": {
+ "properties": {
+ "locale": {
+ "default": "en",
+ "maxLength": 32,
+ "title": "Locale",
+ "type": "string"
+ },
+ "locator": {
+ "minimum": 1.0,
+ "title": "Locator",
+ "type": "integer"
+ },
+ "selection": {
+ "default": "",
+ "maxLength": 10000,
+ "title": "Selection",
+ "type": "string"
+ }
+ },
+ "required": [
+ "locator"
+ ],
+ "title": "ActionPayload",
+ "type": "object"
+ },
+ "ActiveModelUpdate": {
+ "description": "Switch the globally-active model for a kind (llm / embedding).",
+ "properties": {
+ "kind": {
+ "title": "Kind",
+ "type": "string"
+ },
+ "model_id": {
+ "title": "Model Id",
+ "type": "string"
+ },
+ "profile_id": {
+ "title": "Profile Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "profile_id",
+ "model_id"
+ ],
+ "title": "ActiveModelUpdate",
+ "type": "object"
+ },
+ "AddGitHubSourceRequest": {
+ "properties": {
+ "branch": {
+ "default": "main",
+ "title": "Branch",
+ "type": "string"
+ },
+ "glob": {
+ "default": "*.md",
+ "title": "Glob",
+ "type": "string"
+ },
+ "path": {
+ "default": "",
+ "title": "Path",
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repo",
+ "type": "string"
+ }
+ },
+ "required": [
+ "repo"
+ ],
+ "title": "AddGitHubSourceRequest",
+ "type": "object"
+ },
+ "AddRecordRequest": {
+ "description": "Add record request",
+ "properties": {
+ "kb_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Kb Name"
+ },
+ "metadata": {
+ "additionalProperties": true,
+ "default": {},
+ "title": "Metadata",
+ "type": "object"
+ },
+ "notebook_ids": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Notebook Ids",
+ "type": "array"
+ },
+ "output": {
+ "title": "Output",
+ "type": "string"
+ },
+ "record_type": {
+ "enum": [
+ "solve",
+ "question",
+ "research",
+ "chat",
+ "co_writer",
+ "tutorbot",
+ "reading",
+ "video_learning"
+ ],
+ "title": "Record Type",
+ "type": "string"
+ },
+ "summary": {
+ "default": "",
+ "title": "Summary",
+ "type": "string"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "user_query": {
+ "title": "User Query",
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook_ids",
+ "record_type",
+ "title",
+ "user_query",
+ "output"
+ ],
+ "title": "AddRecordRequest",
+ "type": "object"
+ },
+ "AddWebSourceRequest": {
+ "properties": {
+ "max_depth": {
+ "default": 3,
+ "maximum": 5.0,
+ "minimum": 1.0,
+ "title": "Max Depth",
+ "type": "integer"
+ },
+ "max_pages": {
+ "default": 200,
+ "maximum": 200.0,
+ "minimum": 1.0,
+ "title": "Max Pages",
+ "type": "integer"
+ },
+ "url": {
+ "maxLength": 2048,
+ "minLength": 1,
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "title": "AddWebSourceRequest",
+ "type": "object"
+ },
+ "AdminCreateUserRequest": {
+ "description": "Admin user-creation payload.\n\nA preset configures an ordinary account; it never becomes a third role.",
+ "properties": {
+ "password": {
+ "title": "Password",
+ "type": "string"
+ },
+ "preset": {
+ "default": "standard",
+ "enum": [
+ "standard",
+ "learner",
+ "custom"
+ ],
+ "title": "Preset",
+ "type": "string"
+ },
+ "username": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ "required": [
+ "username",
+ "password"
+ ],
+ "title": "AdminCreateUserRequest",
+ "type": "object"
+ },
+ "AnnotationInfo": {
+ "properties": {
+ "annotation_id": {
+ "title": "Annotation Id",
+ "type": "string"
+ },
+ "author": {
+ "title": "Author",
+ "type": "string"
+ },
+ "color": {
+ "title": "Color",
+ "type": "string"
+ },
+ "created_at": {
+ "title": "Created At",
+ "type": "number"
+ },
+ "kind": {
+ "title": "Kind",
+ "type": "string"
+ },
+ "locator": {
+ "title": "Locator",
+ "type": "integer"
+ },
+ "material_revision": {
+ "default": 1,
+ "title": "Material Revision",
+ "type": "integer"
+ },
+ "note": {
+ "title": "Note",
+ "type": "string"
+ },
+ "quote": {
+ "title": "Quote",
+ "type": "string"
+ },
+ "rects": {
+ "items": {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "title": "Rects",
+ "type": "array"
+ },
+ "selectors": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Selectors",
+ "type": "array"
+ },
+ "source_anchor": {
+ "default": "",
+ "title": "Source Anchor",
+ "type": "string"
+ },
+ "updated_at": {
+ "title": "Updated At",
+ "type": "number"
+ }
+ },
+ "required": [
+ "annotation_id",
+ "locator",
+ "kind",
+ "color",
+ "quote",
+ "note",
+ "rects",
+ "author",
+ "created_at",
+ "updated_at"
+ ],
+ "title": "AnnotationInfo",
+ "type": "object"
+ },
+ "AnnotationPayload": {
+ "description": "An annotation as the reader sends it.\n\n``rects`` are normalised to the unit box (0..1, origin top-left) by the\nclient, because only the client knows the rendered geometry. They are still\nre-validated server-side — an inverted or out-of-range rectangle is ordered\nand clipped rather than trusted.",
+ "properties": {
+ "annotation_id": {
+ "default": "",
+ "title": "Annotation Id",
+ "type": "string"
+ },
+ "color": {
+ "default": "yellow",
+ "title": "Color",
+ "type": "string"
+ },
+ "kind": {
+ "default": "highlight",
+ "enum": [
+ "highlight",
+ "underline",
+ "note",
+ "citation"
+ ],
+ "title": "Kind",
+ "type": "string"
+ },
+ "locator": {
+ "minimum": 1.0,
+ "title": "Locator",
+ "type": "integer"
+ },
+ "note": {
+ "default": "",
+ "title": "Note",
+ "type": "string"
+ },
+ "quote": {
+ "default": "",
+ "maxLength": 2000,
+ "title": "Quote",
+ "type": "string"
+ },
+ "rects": {
+ "items": {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "title": "Rects",
+ "type": "array"
+ },
+ "selectors": {
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/TextQuoteSelectorPayload"
+ },
+ {
+ "$ref": "#/components/schemas/TextPositionSelectorPayload"
+ }
+ ]
+ },
+ "maxItems": 2,
+ "title": "Selectors",
+ "type": "array"
+ },
+ "source_anchor": {
+ "default": "",
+ "maxLength": 4096,
+ "title": "Source Anchor",
+ "type": "string"
+ }
+ },
+ "required": [
+ "locator"
+ ],
+ "title": "AnnotationPayload",
+ "type": "object"
+ },
+ "AnswerImageItem": {
+ "description": "Persisted reference to one image attached to a learner's answer.\n\nThe bytes live in the AttachmentStore at ``url``; we never round-trip\nbase64 back to the client so notebook lookups stay cheap.",
+ "properties": {
+ "filename": {
+ "default": "",
+ "title": "Filename",
+ "type": "string"
+ },
+ "id": {
+ "default": "",
+ "title": "Id",
+ "type": "string"
+ },
+ "mime_type": {
+ "default": "",
+ "title": "Mime Type",
+ "type": "string"
+ },
+ "url": {
+ "default": "",
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "title": "AnswerImageItem",
+ "type": "object"
+ },
+ "AnswerImageUpload": {
+ "description": "One image attached to the learner's answer.\n\nEither ``base64`` (new upload) or ``url`` (re-submit of an already\npersisted image) must be set. ``id`` is preserved when the client\nsends one so the same logical image keeps a stable AttachmentStore\nrecord across resubmissions.",
+ "properties": {
+ "base64": {
+ "default": "",
+ "title": "Base64",
+ "type": "string"
+ },
+ "filename": {
+ "default": "answer.png",
+ "title": "Filename",
+ "type": "string"
+ },
+ "id": {
+ "default": "",
+ "title": "Id",
+ "type": "string"
+ },
+ "mime_type": {
+ "default": "image/png",
+ "title": "Mime Type",
+ "type": "string"
+ },
+ "url": {
+ "default": "",
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "title": "AnswerImageUpload",
+ "type": "object"
+ },
+ "ApplyOpsRequest": {
+ "properties": {
+ "ops": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Ops",
+ "type": "array"
+ }
+ },
+ "required": [
+ "ops"
+ ],
+ "title": "ApplyOpsRequest",
+ "type": "object"
+ },
+ "AssetAddRequest": {
+ "properties": {
+ "knowledge_bases": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Knowledge Bases",
+ "type": "array"
+ },
+ "notebooks": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Notebooks",
+ "type": "array"
+ },
+ "skills": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Skills",
+ "type": "array"
+ }
+ },
+ "title": "AssetAddRequest",
+ "type": "object"
+ },
+ "AssetSpec": {
+ "properties": {
+ "knowledge_bases": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Knowledge Bases",
+ "type": "array"
+ },
+ "notebooks": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Notebooks",
+ "type": "array"
+ },
+ "skills": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Skills",
+ "type": "array"
+ }
+ },
+ "title": "AssetSpec",
+ "type": "object"
+ },
+ "AttachCourseResourceRequest": {
+ "properties": {
+ "kind": {
+ "title": "Kind",
+ "type": "string"
+ },
+ "label": {
+ "default": "",
+ "title": "Label",
+ "type": "string"
+ },
+ "ref_id": {
+ "title": "Ref Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "ref_id"
+ ],
+ "title": "AttachCourseResourceRequest",
+ "type": "object"
+ },
+ "AuditRequest": {
+ "properties": {
+ "budget": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Budget"
+ },
+ "language": {
+ "default": "en",
+ "title": "Language",
+ "type": "string"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LLMSelectionPayload"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "title": "AuditRequest",
+ "type": "object"
+ },
+ "AuthStatusResponse": {
+ "description": "Response body for the GET /status endpoint.",
+ "properties": {
+ "authenticated": {
+ "title": "Authenticated",
+ "type": "boolean"
+ },
+ "avatar": {
+ "default": "",
+ "title": "Avatar",
+ "type": "string"
+ },
+ "enabled": {
+ "title": "Enabled",
+ "type": "boolean"
+ },
+ "is_admin": {
+ "default": false,
+ "title": "Is Admin",
+ "type": "boolean"
+ },
+ "learning_policy": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Learning Policy"
+ },
+ "preset": {
+ "anyOf": [
+ {
+ "enum": [
+ "standard",
+ "learner",
+ "custom"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Preset"
+ },
+ "role": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Role"
+ },
+ "user_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User Id"
+ },
+ "username": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Username"
+ }
+ },
+ "required": [
+ "enabled",
+ "authenticated"
+ ],
+ "title": "AuthStatusResponse",
+ "type": "object"
+ },
+ "AutoMarkRequest": {
+ "properties": {
+ "text": {
+ "maxLength": 600000,
+ "title": "Text",
+ "type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "title": "AutoMarkRequest",
+ "type": "object"
+ },
+ "AutoMarkResponse": {
+ "properties": {
+ "marked_text": {
+ "title": "Marked Text",
+ "type": "string"
+ },
+ "operation_id": {
+ "title": "Operation Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "marked_text",
+ "operation_id"
+ ],
+ "title": "AutoMarkResponse",
+ "type": "object"
+ },
+ "Body_create_knowledge_base_api_v1_knowledge_create_post": {
+ "properties": {
+ "files": {
+ "default": [],
+ "items": {
+ "contentMediaType": "application/octet-stream",
+ "type": "string"
+ },
+ "title": "Files",
+ "type": "array"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "pageindex_mode": {
+ "default": "",
+ "title": "Pageindex Mode",
+ "type": "string"
+ },
+ "rag_provider": {
+ "default": "llamaindex",
+ "title": "Rag Provider",
+ "type": "string"
+ },
+ "rel_paths": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Rel Paths",
+ "type": "array"
+ },
+ "search_mode": {
+ "default": "",
+ "title": "Search Mode",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "Body_create_knowledge_base_api_v1_knowledge_create_post",
+ "type": "object"
+ },
+ "Body_import_docx_api_v1_co_writer_documents_import_docx_post": {
+ "properties": {
+ "file": {
+ "contentMediaType": "application/octet-stream",
+ "title": "File",
+ "type": "string"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "title": "Body_import_docx_api_v1_co_writer_documents_import_docx_post",
+ "type": "object"
+ },
+ "Body_import_visualizer_api_v1_visualizers_import_post": {
+ "properties": {
+ "file": {
+ "contentMediaType": "application/octet-stream",
+ "title": "File",
+ "type": "string"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "title": "Body_import_visualizer_api_v1_visualizers_import_post",
+ "type": "object"
+ },
+ "Body_speech_to_text_api_v1_voice_stt_post": {
+ "properties": {
+ "file": {
+ "contentMediaType": "application/octet-stream",
+ "title": "File",
+ "type": "string"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "title": "Body_speech_to_text_api_v1_voice_stt_post",
+ "type": "object"
+ },
+ "Body_upload_avatar_api_v1_auth_profile_avatar_put": {
+ "properties": {
+ "file": {
+ "contentMediaType": "application/octet-stream",
+ "title": "File",
+ "type": "string"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "title": "Body_upload_avatar_api_v1_auth_profile_avatar_put",
+ "type": "object"
+ },
+ "Body_upload_files_api_v1_knowledge__kb_name__upload_post": {
+ "properties": {
+ "dest_subdir": {
+ "title": "Dest Subdir",
+ "type": "string"
+ },
+ "files": {
+ "items": {
+ "contentMediaType": "application/octet-stream",
+ "type": "string"
+ },
+ "title": "Files",
+ "type": "array"
+ },
+ "rag_provider": {
+ "title": "Rag Provider",
+ "type": "string"
+ },
+ "rel_paths": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Rel Paths",
+ "type": "array"
+ }
+ },
+ "required": [
+ "files"
+ ],
+ "title": "Body_upload_files_api_v1_knowledge__kb_name__upload_post",
+ "type": "object"
+ },
+ "Body_upload_material_api_v1_reading_materials_post": {
+ "properties": {
+ "file": {
+ "contentMediaType": "application/octet-stream",
+ "title": "File",
+ "type": "string"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "title": "Body_upload_material_api_v1_reading_materials_post",
+ "type": "object"
+ },
+ "BookPermissionPayload": {
+ "properties": {
+ "books": {
+ "additionalProperties": {
+ "enum": [
+ "none",
+ "read",
+ "edit"
+ ],
+ "type": "string"
+ },
+ "title": "Books",
+ "type": "object"
+ },
+ "create": {
+ "default": true,
+ "title": "Create",
+ "type": "boolean"
+ },
+ "default": {
+ "default": "none",
+ "enum": [
+ "none",
+ "read"
+ ],
+ "title": "Default",
+ "type": "string"
+ }
+ },
+ "title": "BookPermissionPayload",
+ "type": "object"
+ },
+ "BookReference": {
+ "additionalProperties": false,
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "page_ids": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Page Ids",
+ "type": "array"
+ }
+ },
+ "required": [
+ "book_id"
+ ],
+ "title": "BookReference",
+ "type": "object"
+ },
+ "BranchSelectionRequest": {
+ "description": "Edit-branch picker state: `{parent_message_id: chosen_child_id}`.\n\nStored inside the session preferences blob so it survives reloads\nwithout a dedicated column.",
+ "properties": {
+ "selected_branches": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "title": "Selected Branches",
+ "type": "object"
+ }
+ },
+ "title": "BranchSelectionRequest",
+ "type": "object"
+ },
+ "BuiltinToolPayload": {
+ "properties": {
+ "aliases": {
+ "default": [],
+ "items": {
+ "type": "string"
+ },
+ "title": "Aliases",
+ "type": "array"
+ },
+ "available": {
+ "default": true,
+ "title": "Available",
+ "type": "boolean"
+ },
+ "capability": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Capability"
+ },
+ "coming_soon": {
+ "default": false,
+ "title": "Coming Soon",
+ "type": "boolean"
+ },
+ "description": {
+ "title": "Description",
+ "type": "string"
+ },
+ "description_i18n": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "default": {},
+ "propertyNames": {
+ "enum": [
+ "en",
+ "zh"
+ ]
+ },
+ "title": "Description I18N",
+ "type": "object"
+ },
+ "enabled": {
+ "default": true,
+ "title": "Enabled",
+ "type": "boolean"
+ },
+ "hints": {
+ "additionalProperties": {
+ "$ref": "#/components/schemas/ToolHintsPayload"
+ },
+ "propertyNames": {
+ "enum": [
+ "en",
+ "zh"
+ ]
+ },
+ "title": "Hints",
+ "type": "object"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "parameters": {
+ "items": {
+ "$ref": "#/components/schemas/ToolParameterPayload"
+ },
+ "title": "Parameters",
+ "type": "array"
+ },
+ "toggleable": {
+ "default": false,
+ "title": "Toggleable",
+ "type": "boolean"
+ },
+ "unavailable_reason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Unavailable Reason"
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "parameters",
+ "hints"
+ ],
+ "title": "BuiltinToolPayload",
+ "type": "object"
+ },
+ "BulkCategoryRequest": {
+ "description": "File (or unfile) many entries at once.\n\nOne round-trip per bulk action keeps the list view consistent: the\nclient re-reads once instead of racing N per-entry writes.",
+ "properties": {
+ "category_id": {
+ "title": "Category Id",
+ "type": "integer"
+ },
+ "entry_ids": {
+ "items": {
+ "type": "integer"
+ },
+ "maxItems": 500,
+ "minItems": 1,
+ "title": "Entry Ids",
+ "type": "array"
+ },
+ "link": {
+ "default": true,
+ "title": "Link",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "entry_ids",
+ "category_id"
+ ],
+ "title": "BulkCategoryRequest",
+ "type": "object"
+ },
+ "CatalogPayload": {
+ "properties": {
+ "catalog": {
+ "additionalProperties": true,
+ "title": "Catalog",
+ "type": "object"
+ }
+ },
+ "required": [
+ "catalog"
+ ],
+ "title": "CatalogPayload",
+ "type": "object"
+ },
+ "CategoryAddRequest": {
+ "properties": {
+ "category_id": {
+ "title": "Category Id",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "category_id"
+ ],
+ "title": "CategoryAddRequest",
+ "type": "object"
+ },
+ "CategoryCreateRequest": {
+ "properties": {
+ "name": {
+ "maxLength": 100,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CategoryCreateRequest",
+ "type": "object"
+ },
+ "CategoryItem": {
+ "properties": {
+ "created_at": {
+ "default": 0,
+ "title": "Created At",
+ "type": "number"
+ },
+ "entry_count": {
+ "default": 0,
+ "title": "Entry Count",
+ "type": "integer"
+ },
+ "id": {
+ "title": "Id",
+ "type": "integer"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "title": "CategoryItem",
+ "type": "object"
+ },
+ "CategoryRenameRequest": {
+ "properties": {
+ "name": {
+ "maxLength": 100,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CategoryRenameRequest",
+ "type": "object"
+ },
+ "ChangeBlockTypeRequest": {
+ "properties": {
+ "block_id": {
+ "title": "Block Id",
+ "type": "string"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "new_type": {
+ "title": "New Type",
+ "type": "string"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "params_override": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Params Override"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "block_id",
+ "new_type"
+ ],
+ "title": "ChangeBlockTypeRequest",
+ "type": "object"
+ },
+ "ChannelOnboardingStartRequest": {
+ "properties": {
+ "channel": {
+ "enum": [
+ "feishu",
+ "wecom"
+ ],
+ "title": "Channel",
+ "type": "string"
+ }
+ },
+ "required": [
+ "channel"
+ ],
+ "title": "ChannelOnboardingStartRequest",
+ "type": "object"
+ },
+ "ChapterImport": {
+ "properties": {
+ "knowledge_points": {
+ "default": [],
+ "items": {
+ "type": "string"
+ },
+ "title": "Knowledge Points",
+ "type": "array"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ }
+ },
+ "required": [
+ "title"
+ ],
+ "title": "ChapterImport",
+ "type": "object"
+ },
+ "ChatAttachmentRequest": {
+ "properties": {
+ "base64": {
+ "default": "",
+ "title": "Base64",
+ "type": "string"
+ },
+ "filename": {
+ "default": "",
+ "title": "Filename",
+ "type": "string"
+ },
+ "mime_type": {
+ "default": "",
+ "title": "Mime Type",
+ "type": "string"
+ },
+ "type": {
+ "default": "file",
+ "title": "Type",
+ "type": "string"
+ },
+ "url": {
+ "default": "",
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "title": "ChatAttachmentRequest",
+ "type": "object"
+ },
+ "ChatAttachmentSettingsUpdate": {
+ "description": "Chat attachment policy (size caps + extraction budgets).\n\nBounds mirror the normalization clamps in\n``runtime_settings.CHAT_ATTACHMENT_*_RANGE`` so the API rejects loudly\nwhat the file layer would silently clamp.",
+ "properties": {
+ "max_chars_per_doc": {
+ "maximum": 5000000.0,
+ "minimum": 10000.0,
+ "title": "Max Chars Per Doc",
+ "type": "integer"
+ },
+ "max_chars_total": {
+ "maximum": 5000000.0,
+ "minimum": 10000.0,
+ "title": "Max Chars Total",
+ "type": "integer"
+ },
+ "max_file_mb": {
+ "maximum": 1024.0,
+ "minimum": 1.0,
+ "title": "Max File Mb",
+ "type": "integer"
+ },
+ "max_total_mb": {
+ "maximum": 2048.0,
+ "minimum": 1.0,
+ "title": "Max Total Mb",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "max_file_mb",
+ "max_total_mb",
+ "max_chars_per_doc",
+ "max_chars_total"
+ ],
+ "title": "ChatAttachmentSettingsUpdate",
+ "type": "object"
+ },
+ "ChatHistoryImportRequest": {
+ "properties": {
+ "agent_id": {
+ "default": "",
+ "maxLength": 256,
+ "title": "Agent Id",
+ "type": "string"
+ },
+ "agent_name": {
+ "default": "",
+ "maxLength": 256,
+ "title": "Agent Name",
+ "type": "string"
+ },
+ "sessions": {
+ "items": {
+ "$ref": "#/components/schemas/ImportedSession"
+ },
+ "title": "Sessions",
+ "type": "array"
+ },
+ "source": {
+ "minLength": 1,
+ "title": "Source",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source"
+ ],
+ "title": "ChatHistoryImportRequest",
+ "type": "object"
+ },
+ "ChatMessageRequest": {
+ "properties": {
+ "attachments": {
+ "items": {
+ "$ref": "#/components/schemas/ChatAttachmentRequest"
+ },
+ "title": "Attachments",
+ "type": "array"
+ },
+ "chat_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Chat Id"
+ },
+ "content": {
+ "default": "",
+ "title": "Content",
+ "type": "string"
+ },
+ "llmSelection": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Llmselection"
+ },
+ "session_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Session Id"
+ },
+ "session_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Session Key"
+ }
+ },
+ "title": "ChatMessageRequest",
+ "type": "object"
+ },
+ "ChatResponseTimeoutUpdate": {
+ "properties": {
+ "chat_response_timeout": {
+ "maximum": 1800.0,
+ "minimum": 30.0,
+ "title": "Chat Response Timeout",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "chat_response_timeout"
+ ],
+ "title": "ChatResponseTimeoutUpdate",
+ "type": "object"
+ },
+ "ChatStarterSettingsUpdate": {
+ "description": "How much recent activity shapes the home screen's starting points.\n\nBounds mirror ``starter_settings.TRACE_COUNT_RANGE`` so the API rejects\nloudly what the file layer would silently clamp.",
+ "properties": {
+ "trace_count": {
+ "maximum": 100.0,
+ "minimum": 3.0,
+ "title": "Trace Count",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "trace_count"
+ ],
+ "title": "ChatStarterSettingsUpdate",
+ "type": "object"
+ },
+ "CodexReasoningEffortUpdate": {
+ "properties": {
+ "model": {
+ "minLength": 1,
+ "title": "Model",
+ "type": "string"
+ },
+ "reasoning_effort": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Reasoning Effort"
+ }
+ },
+ "required": [
+ "model"
+ ],
+ "title": "CodexReasoningEffortUpdate",
+ "type": "object"
+ },
+ "CompilePageRequest": {
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "force": {
+ "default": false,
+ "title": "Force",
+ "type": "boolean"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id"
+ ],
+ "title": "CompilePageRequest",
+ "type": "object"
+ },
+ "ConfirmPartnerDraftRequest": {
+ "description": "Editable fields accepted by the explicit draft-confirmation step.",
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "emoji": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Emoji"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ },
+ "soul": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Soul"
+ },
+ "start": {
+ "default": true,
+ "title": "Start",
+ "type": "boolean"
+ }
+ },
+ "title": "ConfirmPartnerDraftRequest",
+ "type": "object"
+ },
+ "ConfirmProposalRequest": {
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "proposal": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Proposal"
+ }
+ },
+ "required": [
+ "book_id"
+ ],
+ "title": "ConfirmProposalRequest",
+ "type": "object"
+ },
+ "ConfirmSpineRequest": {
+ "properties": {
+ "auto_compile": {
+ "default": true,
+ "title": "Auto Compile",
+ "type": "boolean"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "spine": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Spine"
+ }
+ },
+ "required": [
+ "book_id"
+ ],
+ "title": "ConfirmSpineRequest",
+ "type": "object"
+ },
+ "ConfirmTopicRequest": {
+ "properties": {
+ "description": {
+ "default": "",
+ "maxLength": 500,
+ "title": "Description",
+ "type": "string"
+ },
+ "emoji": {
+ "default": "🧭",
+ "maxLength": 16,
+ "title": "Emoji",
+ "type": "string"
+ },
+ "goal": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "title": "Goal",
+ "type": "string"
+ },
+ "modules": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "maxItems": 8,
+ "minItems": 1,
+ "title": "Modules",
+ "type": "array"
+ },
+ "name": {
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ },
+ "sources": {
+ "items": {
+ "$ref": "#/components/schemas/TopicSourceRequest"
+ },
+ "maxItems": 16,
+ "title": "Sources",
+ "type": "array"
+ }
+ },
+ "required": [
+ "name",
+ "goal",
+ "modules"
+ ],
+ "title": "ConfirmTopicRequest",
+ "type": "object"
+ },
+ "ConnectFolderRequest": {
+ "properties": {
+ "folder_path": {
+ "title": "Folder Path",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "rag_provider": {
+ "default": "llamaindex",
+ "title": "Rag Provider",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "folder_path"
+ ],
+ "title": "ConnectFolderRequest",
+ "type": "object"
+ },
+ "ConnectImaRequest": {
+ "properties": {
+ "api_key": {
+ "default": "",
+ "title": "Api Key",
+ "type": "string"
+ },
+ "client_id": {
+ "default": "",
+ "title": "Client Id",
+ "type": "string"
+ },
+ "knowledge_base_id": {
+ "title": "Knowledge Base Id",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "knowledge_base_id"
+ ],
+ "title": "ConnectImaRequest",
+ "type": "object"
+ },
+ "ConnectLightRagServerRequest": {
+ "properties": {
+ "api_key": {
+ "default": "",
+ "title": "Api Key",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "search_mode": {
+ "default": "",
+ "title": "Search Mode",
+ "type": "string"
+ },
+ "server_url": {
+ "title": "Server Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "server_url"
+ ],
+ "title": "ConnectLightRagServerRequest",
+ "type": "object"
+ },
+ "ConnectMarginNote4Request": {
+ "properties": {
+ "db_path": {
+ "default": "",
+ "title": "Db Path",
+ "type": "string"
+ },
+ "description": {
+ "default": "",
+ "title": "Description",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "ConnectMarginNote4Request",
+ "type": "object"
+ },
+ "ConnectObsidianRequest": {
+ "properties": {
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "vault_path": {
+ "title": "Vault Path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "vault_path"
+ ],
+ "title": "ConnectObsidianRequest",
+ "type": "object"
+ },
+ "ConnectSubagentRequest": {
+ "properties": {
+ "agent_kind": {
+ "title": "Agent Kind",
+ "type": "string"
+ },
+ "cwd": {
+ "default": "",
+ "title": "Cwd",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "partner_id": {
+ "default": "",
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "agent_kind"
+ ],
+ "title": "ConnectSubagentRequest",
+ "type": "object"
+ },
+ "ConnectWeKnoraRequest": {
+ "properties": {
+ "api_key": {
+ "title": "Api Key",
+ "type": "string"
+ },
+ "knowledge_base_id": {
+ "title": "Knowledge Base Id",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "server_url": {
+ "title": "Server Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "server_url",
+ "api_key",
+ "knowledge_base_id"
+ ],
+ "title": "ConnectWeKnoraRequest",
+ "type": "object"
+ },
+ "CreateBookRequest": {
+ "properties": {
+ "chat_selections": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Chat Selections",
+ "type": "array"
+ },
+ "chat_session_id": {
+ "default": "",
+ "title": "Chat Session Id",
+ "type": "string"
+ },
+ "depth": {
+ "default": "standard",
+ "title": "Depth",
+ "type": "string"
+ },
+ "fallback_language": {
+ "default": "en",
+ "title": "Fallback Language",
+ "type": "string"
+ },
+ "knowledge_bases": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Knowledge Bases",
+ "type": "array"
+ },
+ "language": {
+ "default": "en",
+ "title": "Language",
+ "type": "string"
+ },
+ "notebook_refs": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Notebook Refs",
+ "type": "array"
+ },
+ "question_categories": {
+ "items": {
+ "type": "integer"
+ },
+ "title": "Question Categories",
+ "type": "array"
+ },
+ "question_entries": {
+ "items": {
+ "type": "integer"
+ },
+ "title": "Question Entries",
+ "type": "array"
+ },
+ "user_intent": {
+ "default": "",
+ "title": "User Intent",
+ "type": "string"
+ }
+ },
+ "title": "CreateBookRequest",
+ "type": "object"
+ },
+ "CreateCourseRequest": {
+ "properties": {
+ "color": {
+ "default": "",
+ "title": "Color",
+ "type": "string"
+ },
+ "default_capability": {
+ "default": "",
+ "maxLength": 64,
+ "title": "Default Capability",
+ "type": "string"
+ },
+ "default_persona": {
+ "default": "",
+ "maxLength": 80,
+ "title": "Default Persona",
+ "type": "string"
+ },
+ "description": {
+ "default": "",
+ "maxLength": 300,
+ "title": "Description",
+ "type": "string"
+ },
+ "instructions": {
+ "default": "",
+ "maxLength": 4000,
+ "title": "Instructions",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 60,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CreateCourseRequest",
+ "type": "object"
+ },
+ "CreateDocumentRequest": {
+ "properties": {
+ "content": {
+ "default": "",
+ "title": "Content",
+ "type": "string"
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Title"
+ }
+ },
+ "title": "CreateDocumentRequest",
+ "type": "object"
+ },
+ "CreateFolderPayload": {
+ "properties": {
+ "path": {
+ "title": "Path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "title": "CreateFolderPayload",
+ "type": "object"
+ },
+ "CreateNotebookRequest": {
+ "description": "Create notebook request",
+ "properties": {
+ "color": {
+ "default": "#3B82F6",
+ "title": "Color",
+ "type": "string"
+ },
+ "description": {
+ "default": "",
+ "title": "Description",
+ "type": "string"
+ },
+ "icon": {
+ "default": "book",
+ "title": "Icon",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CreateNotebookRequest",
+ "type": "object"
+ },
+ "CreatePartnerGroupRequest": {
+ "properties": {
+ "color": {
+ "default": "#6366f1",
+ "title": "Color",
+ "type": "string"
+ },
+ "description": {
+ "default": "",
+ "maxLength": 500,
+ "title": "Description",
+ "type": "string"
+ },
+ "discussion_mode": {
+ "default": "panel_parallel",
+ "title": "Discussion Mode",
+ "type": "string"
+ },
+ "emoji": {
+ "default": "👥",
+ "title": "Emoji",
+ "type": "string"
+ },
+ "member_ids": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 2,
+ "title": "Member Ids",
+ "type": "array"
+ },
+ "name": {
+ "maxLength": 80,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ },
+ "shared_memory": {
+ "default": "whiteboard",
+ "title": "Shared Memory",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "member_ids"
+ ],
+ "title": "CreatePartnerGroupRequest",
+ "type": "object"
+ },
+ "CreatePartnerInvocationRequest": {
+ "properties": {
+ "question": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "title": "Question",
+ "type": "string"
+ },
+ "requester_partner_id": {
+ "maxLength": 80,
+ "minLength": 1,
+ "title": "Requester Partner Id",
+ "type": "string"
+ },
+ "session_key": {
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ },
+ "target_partner_id": {
+ "maxLength": 80,
+ "minLength": 1,
+ "title": "Target Partner Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "session_key",
+ "requester_partner_id",
+ "target_partner_id",
+ "question"
+ ],
+ "title": "CreatePartnerInvocationRequest",
+ "type": "object"
+ },
+ "CreatePartnerRequest": {
+ "properties": {
+ "assets": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/AssetSpec"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "avatar": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Avatar"
+ },
+ "backup_llm_selection": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Backup Llm Selection"
+ },
+ "builtin_tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Builtin Tools"
+ },
+ "channels": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Channels"
+ },
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "emoji": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Emoji"
+ },
+ "enabled_tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Enabled Tools"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Llm Selection"
+ },
+ "mcp_tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": [],
+ "title": "Mcp Tools"
+ },
+ "name": {
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ },
+ "partner_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Partner Id"
+ },
+ "soul": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/SoulSpec"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "start": {
+ "default": true,
+ "title": "Start",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CreatePartnerRequest",
+ "type": "object"
+ },
+ "CreatePersonaRequest": {
+ "properties": {
+ "content": {
+ "default": "",
+ "title": "Content",
+ "type": "string"
+ },
+ "description": {
+ "default": "",
+ "title": "Description",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 64,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CreatePersonaRequest",
+ "type": "object"
+ },
+ "CreateSkillRequest": {
+ "properties": {
+ "content": {
+ "default": "",
+ "title": "Content",
+ "type": "string"
+ },
+ "description": {
+ "default": "",
+ "title": "Description",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 64,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ },
+ "tags": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Tags",
+ "type": "array"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CreateSkillRequest",
+ "type": "object"
+ },
+ "CreateTagRequest": {
+ "properties": {
+ "name": {
+ "maxLength": 32,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "CreateTagRequest",
+ "type": "object"
+ },
+ "CreateVideoNoteRequest": {
+ "properties": {
+ "body": {
+ "maxLength": 20000,
+ "minLength": 1,
+ "title": "Body",
+ "type": "string"
+ },
+ "time_seconds": {
+ "maximum": 86400.0,
+ "minimum": 0.0,
+ "title": "Time Seconds",
+ "type": "number"
+ }
+ },
+ "required": [
+ "body",
+ "time_seconds"
+ ],
+ "title": "CreateVideoNoteRequest",
+ "type": "object"
+ },
+ "DedupRequest": {
+ "properties": {
+ "iterations": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Iterations"
+ },
+ "language": {
+ "default": "en",
+ "title": "Language",
+ "type": "string"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LLMSelectionPayload"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "title": "DedupRequest",
+ "type": "object"
+ },
+ "DeepDiveRequest": {
+ "properties": {
+ "block_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Block Id"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "content_type": {
+ "default": "concept",
+ "title": "Content Type",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "parent_page_id": {
+ "title": "Parent Page Id",
+ "type": "string"
+ },
+ "topic": {
+ "title": "Topic",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "parent_page_id",
+ "topic"
+ ],
+ "title": "DeepDiveRequest",
+ "type": "object"
+ },
+ "DeleteBlockRequest": {
+ "properties": {
+ "block_id": {
+ "title": "Block Id",
+ "type": "string"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "block_id"
+ ],
+ "title": "DeleteBlockRequest",
+ "type": "object"
+ },
+ "DeviceCredentialCreateRequest": {
+ "description": "Admin payload for issuing a local ordinary-user device credential.",
+ "properties": {
+ "daily_limit_minutes": {
+ "maximum": 1440.0,
+ "minimum": 5.0,
+ "title": "Daily Limit Minutes",
+ "type": "integer"
+ },
+ "device_name": {
+ "maxLength": 80,
+ "minLength": 1,
+ "title": "Device Name",
+ "type": "string"
+ },
+ "expires_in_days": {
+ "maximum": 365.0,
+ "minimum": 1.0,
+ "title": "Expires In Days",
+ "type": "integer"
+ },
+ "user_id": {
+ "maxLength": 64,
+ "minLength": 1,
+ "title": "User Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "user_id",
+ "device_name",
+ "expires_in_days",
+ "daily_limit_minutes"
+ ],
+ "title": "DeviceCredentialCreateRequest",
+ "type": "object"
+ },
+ "DeviceInfo": {
+ "properties": {
+ "active": {
+ "title": "Active",
+ "type": "boolean"
+ },
+ "device_id": {
+ "title": "Device Id",
+ "type": "string"
+ },
+ "device_kind": {
+ "title": "Device Kind",
+ "type": "string"
+ },
+ "device_name": {
+ "title": "Device Name",
+ "type": "string"
+ },
+ "last_seen": {
+ "title": "Last Seen",
+ "type": "string"
+ },
+ "paired_at": {
+ "title": "Paired At",
+ "type": "string"
+ }
+ },
+ "required": [
+ "device_id",
+ "device_name",
+ "device_kind",
+ "paired_at",
+ "last_seen",
+ "active"
+ ],
+ "title": "DeviceInfo",
+ "type": "object"
+ },
+ "DeviceLoginRequest": {
+ "description": "Payload for the built-in device-credential login endpoint.",
+ "properties": {
+ "pairing_code": {
+ "maxLength": 128,
+ "minLength": 8,
+ "title": "Pairing Code",
+ "type": "string"
+ },
+ "pin": {
+ "maxLength": 6,
+ "minLength": 6,
+ "title": "Pin",
+ "type": "string"
+ }
+ },
+ "required": [
+ "pairing_code",
+ "pin"
+ ],
+ "title": "DeviceLoginRequest",
+ "type": "object"
+ },
+ "DocWriteRequest": {
+ "properties": {
+ "content": {
+ "title": "Content",
+ "type": "string"
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "title": "DocWriteRequest",
+ "type": "object"
+ },
+ "DoclingRemoteTest": {
+ "description": "Draft Docling remote-server test. ``api_token`` is tri-state: ``None``\nfalls back to the stored key, ``\"\"`` clears it, a string supplies it (so\nthe user can verify an unsaved key before saving).",
+ "properties": {
+ "api_base_url": {
+ "default": "http://localhost:5001",
+ "title": "Api Base Url",
+ "type": "string"
+ },
+ "api_token": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Api Token"
+ }
+ },
+ "title": "DoclingRemoteTest",
+ "type": "object"
+ },
+ "DocumentParsingInstall": {
+ "description": "One-click pip install of an optional parser engine's package(s).",
+ "properties": {
+ "engine": {
+ "title": "Engine",
+ "type": "string"
+ }
+ },
+ "required": [
+ "engine"
+ ],
+ "title": "DocumentParsingInstall",
+ "type": "object"
+ },
+ "DocumentParsingTest": {
+ "description": "Readiness test for one engine (defaults to the active engine).",
+ "properties": {
+ "engine": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Engine"
+ }
+ },
+ "title": "DocumentParsingTest",
+ "type": "object"
+ },
+ "DocumentParsingUpdate": {
+ "description": "Document-parsing settings update (the multi-engine control panel).\n\n``engine`` (when provided) switches the active parse engine. ``engines``\ncarries partial per-engine updates merged over the stored slices. For the\nMinerU engine, ``api_token`` stays tri-state: omit it (or send ``None``) to\nkeep the stored token, ``\"\"`` clears it, a non-empty string replaces it.\nThe MinerU engine's own knobs can also be edited via the legacy\n``/mineru`` endpoints; both preserve the other engines' settings.",
+ "properties": {
+ "engine": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Engine"
+ },
+ "engines": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Engines"
+ }
+ },
+ "title": "DocumentParsingUpdate",
+ "type": "object"
+ },
+ "DocumentResponse": {
+ "properties": {
+ "content": {
+ "title": "Content",
+ "type": "string"
+ },
+ "created_at": {
+ "title": "Created At",
+ "type": "number"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "title": "Updated At",
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "content",
+ "created_at",
+ "updated_at"
+ ],
+ "title": "DocumentResponse",
+ "type": "object"
+ },
+ "DocumentSummaryResponse": {
+ "properties": {
+ "created_at": {
+ "title": "Created At",
+ "type": "number"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "preview": {
+ "default": "",
+ "title": "Preview",
+ "type": "string"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "title": "Updated At",
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "created_at",
+ "updated_at"
+ ],
+ "title": "DocumentSummaryResponse",
+ "type": "object"
+ },
+ "DuplicateCheckRequest": {
+ "properties": {
+ "files": {
+ "items": {
+ "$ref": "#/components/schemas/DuplicateFileQuery"
+ },
+ "maxItems": 50,
+ "title": "Files",
+ "type": "array"
+ },
+ "urls": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 50,
+ "title": "Urls",
+ "type": "array"
+ }
+ },
+ "title": "DuplicateCheckRequest",
+ "type": "object"
+ },
+ "DuplicateFileQuery": {
+ "properties": {
+ "content_id": {
+ "default": "",
+ "maxLength": 64,
+ "title": "Content Id",
+ "type": "string"
+ },
+ "filename": {
+ "default": "",
+ "maxLength": 512,
+ "title": "Filename",
+ "type": "string"
+ },
+ "mime": {
+ "default": "",
+ "maxLength": 128,
+ "title": "Mime",
+ "type": "string"
+ },
+ "size_bytes": {
+ "default": 0,
+ "title": "Size Bytes",
+ "type": "integer"
+ }
+ },
+ "title": "DuplicateFileQuery",
+ "type": "object"
+ },
+ "EditRequest": {
+ "properties": {
+ "action": {
+ "default": "rewrite",
+ "enum": [
+ "rewrite",
+ "shorten",
+ "expand"
+ ],
+ "title": "Action",
+ "type": "string"
+ },
+ "instruction": {
+ "maxLength": 10000,
+ "title": "Instruction",
+ "type": "string"
+ },
+ "kb_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Kb Name"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "enum": [
+ "rag",
+ "web"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Source"
+ },
+ "text": {
+ "maxLength": 600000,
+ "title": "Text",
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "instruction"
+ ],
+ "title": "EditRequest",
+ "type": "object"
+ },
+ "EditResponse": {
+ "properties": {
+ "edited_text": {
+ "title": "Edited Text",
+ "type": "string"
+ },
+ "operation_id": {
+ "title": "Operation Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "edited_text",
+ "operation_id"
+ ],
+ "title": "EditResponse",
+ "type": "object"
+ },
+ "EditTopicMapRequest": {
+ "properties": {
+ "modules": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "maxItems": 8,
+ "minItems": 1,
+ "title": "Modules",
+ "type": "array"
+ }
+ },
+ "required": [
+ "modules"
+ ],
+ "title": "EditTopicMapRequest",
+ "type": "object"
+ },
+ "EnabledPayload": {
+ "properties": {
+ "enabled": {
+ "title": "Enabled",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "title": "EnabledPayload",
+ "type": "object"
+ },
+ "EnabledToolsUpdate": {
+ "properties": {
+ "enabled_tools": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Enabled Tools",
+ "type": "array"
+ }
+ },
+ "required": [
+ "enabled_tools"
+ ],
+ "title": "EnabledToolsUpdate",
+ "type": "object"
+ },
+ "EntryUpdateRequest": {
+ "properties": {
+ "ai_judgment": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Ai Judgment"
+ },
+ "bookmarked": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Bookmarked"
+ },
+ "followup_session_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Followup Session Id"
+ },
+ "resolved": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Resolved"
+ }
+ },
+ "title": "EntryUpdateRequest",
+ "type": "object"
+ },
+ "EpubPairingRequest": {
+ "properties": {
+ "chinese_material_id": {
+ "title": "Chinese Material Id",
+ "type": "string"
+ },
+ "english_material_id": {
+ "title": "English Material Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "english_material_id",
+ "chinese_material_id"
+ ],
+ "title": "EpubPairingRequest",
+ "type": "object"
+ },
+ "ErrorEnvelope": {
+ "additionalProperties": false,
+ "properties": {
+ "correlation_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Correlation Id"
+ },
+ "error_code": {
+ "title": "Error Code",
+ "type": "string"
+ },
+ "message": {
+ "title": "Message",
+ "type": "string"
+ },
+ "retryable": {
+ "default": false,
+ "title": "Retryable",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "error_code",
+ "message"
+ ],
+ "title": "ErrorEnvelope",
+ "type": "object"
+ },
+ "ExportDocxRequest": {
+ "properties": {
+ "content": {
+ "default": "",
+ "maxLength": 600000,
+ "title": "Content",
+ "type": "string"
+ },
+ "title": {
+ "default": "",
+ "title": "Title",
+ "type": "string"
+ }
+ },
+ "title": "ExportDocxRequest",
+ "type": "object"
+ },
+ "FetchModelsPayload": {
+ "properties": {
+ "api_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Api Key"
+ },
+ "base_url": {
+ "default": "",
+ "title": "Base Url",
+ "type": "string"
+ },
+ "binding": {
+ "default": "",
+ "title": "Binding",
+ "type": "string"
+ },
+ "profile_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Profile Id"
+ }
+ },
+ "title": "FetchModelsPayload",
+ "type": "object"
+ },
+ "GenerateFromNotebookRequest": {
+ "properties": {
+ "notebook_id": {
+ "title": "Notebook Id",
+ "type": "string"
+ },
+ "records": {
+ "items": {
+ "$ref": "#/components/schemas/NotebookRecordInput"
+ },
+ "title": "Records",
+ "type": "array"
+ }
+ },
+ "required": [
+ "notebook_id",
+ "records"
+ ],
+ "title": "GenerateFromNotebookRequest",
+ "type": "object"
+ },
+ "GenerateFromReadingRequest": {
+ "properties": {
+ "material_ids": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 20,
+ "title": "Material Ids",
+ "type": "array"
+ },
+ "workspace_id": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "workspace_id"
+ ],
+ "title": "GenerateFromReadingRequest",
+ "type": "object"
+ },
+ "GenerateTopicDraftRequest": {
+ "properties": {
+ "goal": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "title": "Goal",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ },
+ "sources": {
+ "items": {
+ "$ref": "#/components/schemas/TopicSourceRequest"
+ },
+ "maxItems": 16,
+ "title": "Sources",
+ "type": "array"
+ }
+ },
+ "required": [
+ "name",
+ "goal"
+ ],
+ "title": "GenerateTopicDraftRequest",
+ "type": "object"
+ },
+ "GitHubSourceInfo": {
+ "properties": {
+ "added_at": {
+ "default": "",
+ "title": "Added At",
+ "type": "string"
+ },
+ "branch": {
+ "title": "Branch",
+ "type": "string"
+ },
+ "enabled": {
+ "default": true,
+ "title": "Enabled",
+ "type": "boolean"
+ },
+ "files_synced": {
+ "default": 0,
+ "title": "Files Synced",
+ "type": "integer"
+ },
+ "glob": {
+ "title": "Glob",
+ "type": "string"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "last_sync_error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Last Sync Error"
+ },
+ "last_sync_status": {
+ "default": "pending",
+ "title": "Last Sync Status",
+ "type": "string"
+ },
+ "last_synced_at": {
+ "default": "",
+ "title": "Last Synced At",
+ "type": "string"
+ },
+ "last_synced_sha": {
+ "default": "",
+ "title": "Last Synced Sha",
+ "type": "string"
+ },
+ "path": {
+ "title": "Path",
+ "type": "string"
+ },
+ "repo": {
+ "title": "Repo",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "repo",
+ "branch",
+ "path",
+ "glob"
+ ],
+ "title": "GitHubSourceInfo",
+ "type": "object"
+ },
+ "GrantPayload": {
+ "properties": {
+ "grant": {
+ "additionalProperties": true,
+ "title": "Grant",
+ "type": "object"
+ }
+ },
+ "required": [
+ "grant"
+ ],
+ "title": "GrantPayload",
+ "type": "object"
+ },
+ "GraphRagConfigUpdate": {
+ "description": "Partial update for GraphRAG query knobs (omitted fields kept).",
+ "properties": {
+ "community_level": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Community Level"
+ },
+ "dynamic_community_selection": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dynamic Community Selection"
+ },
+ "response_type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Response Type"
+ }
+ },
+ "title": "GraphRagConfigUpdate",
+ "type": "object"
+ },
+ "GraphRagModelCompatibilityRequest": {
+ "description": "Configured chat-model candidate to test without activating it.",
+ "properties": {
+ "model_id": {
+ "title": "Model Id",
+ "type": "string"
+ },
+ "profile_id": {
+ "title": "Profile Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "profile_id",
+ "model_id"
+ ],
+ "title": "GraphRagModelCompatibilityRequest",
+ "type": "object"
+ },
+ "GuardianAuthorizationPayload": {
+ "properties": {
+ "guardian_user_id": {
+ "maxLength": 64,
+ "minLength": 1,
+ "title": "Guardian User Id",
+ "type": "string"
+ },
+ "learner_user_id": {
+ "maxLength": 64,
+ "minLength": 1,
+ "title": "Learner User Id",
+ "type": "string"
+ },
+ "permissions": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Permissions",
+ "type": "array"
+ }
+ },
+ "required": [
+ "guardian_user_id",
+ "learner_user_id"
+ ],
+ "title": "GuardianAuthorizationPayload",
+ "type": "object"
+ },
+ "GuardianCredentialResetPayload": {
+ "properties": {
+ "new_password": {
+ "maxLength": 128,
+ "minLength": 8,
+ "title": "New Password",
+ "type": "string"
+ }
+ },
+ "required": [
+ "new_password"
+ ],
+ "title": "GuardianCredentialResetPayload",
+ "type": "object"
+ },
+ "GuardianMaterialsPayload": {
+ "properties": {
+ "book_ids": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Book Ids",
+ "type": "array"
+ }
+ },
+ "required": [
+ "book_ids"
+ ],
+ "title": "GuardianMaterialsPayload",
+ "type": "object"
+ },
+ "GuardianRestrictionsPayload": {
+ "properties": {
+ "age_band": {
+ "title": "Age Band",
+ "type": "string"
+ },
+ "allow_upload": {
+ "title": "Allow Upload",
+ "type": "boolean"
+ },
+ "allowed_surfaces": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Allowed Surfaces",
+ "type": "array"
+ },
+ "extensions": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Extensions",
+ "type": "array"
+ }
+ },
+ "required": [
+ "age_band",
+ "allow_upload",
+ "allowed_surfaces",
+ "extensions"
+ ],
+ "title": "GuardianRestrictionsPayload",
+ "type": "object"
+ },
+ "HTTPValidationError": {
+ "properties": {
+ "detail": {
+ "items": {
+ "$ref": "#/components/schemas/ValidationError"
+ },
+ "title": "Detail",
+ "type": "array"
+ }
+ },
+ "title": "HTTPValidationError",
+ "type": "object"
+ },
+ "ImaConfigUpdate": {
+ "properties": {
+ "api_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Api Key"
+ },
+ "client_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Client Id"
+ }
+ },
+ "title": "ImaConfigUpdate",
+ "type": "object"
+ },
+ "ImaKnowledgeBaseSummary": {
+ "properties": {
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "title": "ImaKnowledgeBaseSummary",
+ "type": "object"
+ },
+ "ImportFromBookRequest": {
+ "properties": {
+ "chapters": {
+ "items": {
+ "$ref": "#/components/schemas/ChapterImport"
+ },
+ "title": "Chapters",
+ "type": "array"
+ }
+ },
+ "required": [
+ "chapters"
+ ],
+ "title": "ImportFromBookRequest",
+ "type": "object"
+ },
+ "ImportedMessage": {
+ "properties": {
+ "content": {
+ "default": "",
+ "title": "Content",
+ "type": "string"
+ },
+ "created_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Created At"
+ },
+ "metadata": {
+ "additionalProperties": true,
+ "title": "Metadata",
+ "type": "object"
+ },
+ "role": {
+ "pattern": "^(user|assistant)$",
+ "title": "Role",
+ "type": "string"
+ }
+ },
+ "required": [
+ "role"
+ ],
+ "title": "ImportedMessage",
+ "type": "object"
+ },
+ "ImportedSession": {
+ "properties": {
+ "created_at": {
+ "title": "Created At",
+ "type": "number"
+ },
+ "external_id": {
+ "maxLength": 256,
+ "minLength": 1,
+ "title": "External Id",
+ "type": "string"
+ },
+ "messages": {
+ "items": {
+ "$ref": "#/components/schemas/ImportedMessage"
+ },
+ "title": "Messages",
+ "type": "array"
+ },
+ "source_cwd": {
+ "default": "",
+ "title": "Source Cwd",
+ "type": "string"
+ },
+ "title": {
+ "default": "",
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "title": "Updated At",
+ "type": "number"
+ }
+ },
+ "required": [
+ "external_id",
+ "created_at",
+ "updated_at"
+ ],
+ "title": "ImportedSession",
+ "type": "object"
+ },
+ "InitModulesRequest": {
+ "properties": {
+ "modules": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Modules",
+ "type": "array"
+ }
+ },
+ "required": [
+ "modules"
+ ],
+ "title": "InitModulesRequest",
+ "type": "object"
+ },
+ "InsertBlockRequest": {
+ "properties": {
+ "block_type": {
+ "title": "Block Type",
+ "type": "string"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "compile_now": {
+ "default": true,
+ "title": "Compile Now",
+ "type": "boolean"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "params": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Params"
+ },
+ "position": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Position"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "block_type"
+ ],
+ "title": "InsertBlockRequest",
+ "type": "object"
+ },
+ "InstallPayload": {
+ "description": "Install a catalog entry, optionally under a different local name.",
+ "properties": {
+ "name": {
+ "default": "",
+ "title": "Name",
+ "type": "string"
+ },
+ "secrets": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Secrets",
+ "type": "object"
+ }
+ },
+ "title": "InstallPayload",
+ "type": "object"
+ },
+ "InstallSkillRequest": {
+ "description": "Install a hub skill into the caller's own skill layer.\n\n``ref`` is a ``<hub>:<slug>[@version]`` reference (the bare hub prefix\ndefaults to ``eduhub``). The web \"import from EduHub\" flow always builds an\n``eduhub:`` ref so a spoofed bridge message can't redirect the install to an\narbitrary registry.",
+ "properties": {
+ "allow_unverified": {
+ "default": false,
+ "title": "Allow Unverified",
+ "type": "boolean"
+ },
+ "force": {
+ "default": false,
+ "title": "Force",
+ "type": "boolean"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ },
+ "ref": {
+ "maxLength": 256,
+ "minLength": 1,
+ "title": "Ref",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "title": "InstallSkillRequest",
+ "type": "object"
+ },
+ "InvidiousSettings": {
+ "properties": {
+ "api_base_url": {
+ "default": "",
+ "maxLength": 2048,
+ "title": "Api Base Url",
+ "type": "string"
+ },
+ "public_base_url": {
+ "default": "",
+ "maxLength": 2048,
+ "title": "Public Base Url",
+ "type": "string"
+ }
+ },
+ "title": "InvidiousSettings",
+ "type": "object"
+ },
+ "KnowledgeBaseInfo": {
+ "properties": {
+ "assigned": {
+ "default": false,
+ "title": "Assigned",
+ "type": "boolean"
+ },
+ "available": {
+ "default": true,
+ "title": "Available",
+ "type": "boolean"
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Id"
+ },
+ "is_default": {
+ "title": "Is Default",
+ "type": "boolean"
+ },
+ "metadata": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Metadata"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Path"
+ },
+ "progress": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Progress"
+ },
+ "provenance_label": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Provenance Label"
+ },
+ "read_only": {
+ "default": false,
+ "title": "Read Only",
+ "type": "boolean"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Source"
+ },
+ "statistics": {
+ "additionalProperties": true,
+ "title": "Statistics",
+ "type": "object"
+ },
+ "status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Status"
+ }
+ },
+ "required": [
+ "name",
+ "is_default",
+ "statistics"
+ ],
+ "title": "KnowledgeBaseInfo",
+ "type": "object"
+ },
+ "LLMSelection": {
+ "additionalProperties": false,
+ "properties": {
+ "model_id": {
+ "title": "Model Id",
+ "type": "string"
+ },
+ "profile_id": {
+ "title": "Profile Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "profile_id",
+ "model_id"
+ ],
+ "title": "LLMSelection",
+ "type": "object"
+ },
+ "LLMSelectionPayload": {
+ "properties": {
+ "model_id": {
+ "title": "Model Id",
+ "type": "string"
+ },
+ "profile_id": {
+ "title": "Profile Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "profile_id",
+ "model_id"
+ ],
+ "title": "LLMSelectionPayload",
+ "type": "object"
+ },
+ "LanguageUpdate": {
+ "properties": {
+ "language": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "title": "Language",
+ "type": "string"
+ }
+ },
+ "required": [
+ "language"
+ ],
+ "title": "LanguageUpdate",
+ "type": "object"
+ },
+ "LearnerOverrideRequest": {
+ "properties": {
+ "mastered": {
+ "title": "Mastered",
+ "type": "boolean"
+ },
+ "note": {
+ "default": "",
+ "maxLength": 500,
+ "title": "Note",
+ "type": "string"
+ }
+ },
+ "required": [
+ "mastered"
+ ],
+ "title": "LearnerOverrideRequest",
+ "type": "object"
+ },
+ "LearnerProfileRequest": {
+ "properties": {
+ "age": {
+ "anyOf": [
+ {
+ "maximum": 120.0,
+ "minimum": 3.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Age"
+ },
+ "curriculum": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Curriculum"
+ },
+ "explanation_style": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Explanation Style"
+ },
+ "grade_level": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Grade Level"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ },
+ "reading_level": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Reading Level"
+ }
+ },
+ "title": "LearnerProfileRequest",
+ "type": "object"
+ },
+ "LearningCaptureCreateRequest": {
+ "properties": {
+ "block_id": {
+ "default": "",
+ "title": "Block Id",
+ "type": "string"
+ },
+ "book_title": {
+ "default": "",
+ "title": "Book Title",
+ "type": "string"
+ },
+ "chapter_title": {
+ "default": "",
+ "title": "Chapter Title",
+ "type": "string"
+ },
+ "context_after": {
+ "default": "",
+ "title": "Context After",
+ "type": "string"
+ },
+ "context_before": {
+ "default": "",
+ "title": "Context Before",
+ "type": "string"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "source_locator": {
+ "default": "",
+ "title": "Source Locator",
+ "type": "string"
+ },
+ "source_text": {
+ "title": "Source Text",
+ "type": "string"
+ },
+ "status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Status"
+ },
+ "user_note": {
+ "default": "",
+ "title": "User Note",
+ "type": "string"
+ }
+ },
+ "required": [
+ "page_id",
+ "source_text"
+ ],
+ "title": "LearningCaptureCreateRequest",
+ "type": "object"
+ },
+ "LearningCaptureUpdateRequest": {
+ "properties": {
+ "rejected_reason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Rejected Reason"
+ },
+ "status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Status"
+ },
+ "user_note": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User Note"
+ }
+ },
+ "title": "LearningCaptureUpdateRequest",
+ "type": "object"
+ },
+ "LightRagConfigUpdate": {
+ "description": "Partial update for LightRAG query + indexing knobs (omitted fields kept).",
+ "properties": {
+ "entity_extract_max_gleaning": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Entity Extract Max Gleaning"
+ },
+ "llm_model_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Llm Model Id"
+ },
+ "llm_model_max_async": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Llm Model Max Async"
+ },
+ "llm_profile_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Llm Profile Id"
+ },
+ "max_concurrent_files": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Max Concurrent Files"
+ },
+ "response_type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Response Type"
+ },
+ "top_k": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Top K"
+ }
+ },
+ "title": "LightRagConfigUpdate",
+ "type": "object"
+ },
+ "LightRagServerConfigUpdate": {
+ "description": "Reusable LightRAG Server defaults (individual KBs may override them).",
+ "properties": {
+ "api_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Api Key"
+ },
+ "server_url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Server Url"
+ }
+ },
+ "title": "LightRagServerConfigUpdate",
+ "type": "object"
+ },
+ "LinkFolderRequest": {
+ "description": "Request model for linking a local folder to a KB.",
+ "properties": {
+ "folder_path": {
+ "title": "Folder Path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "folder_path"
+ ],
+ "title": "LinkFolderRequest",
+ "type": "object"
+ },
+ "LinkedFolderInfo": {
+ "description": "Response model for linked folder information.",
+ "properties": {
+ "added_at": {
+ "title": "Added At",
+ "type": "string"
+ },
+ "file_count": {
+ "title": "File Count",
+ "type": "integer"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "path": {
+ "title": "Path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "path",
+ "added_at",
+ "file_count"
+ ],
+ "title": "LinkedFolderInfo",
+ "type": "object"
+ },
+ "ListImaRequest": {
+ "properties": {
+ "api_key": {
+ "default": "",
+ "title": "Api Key",
+ "type": "string"
+ },
+ "client_id": {
+ "default": "",
+ "title": "Client Id",
+ "type": "string"
+ },
+ "cursor": {
+ "default": "",
+ "title": "Cursor",
+ "type": "string"
+ },
+ "limit": {
+ "default": 20,
+ "maximum": 50.0,
+ "minimum": 1.0,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ "title": "ListImaRequest",
+ "type": "object"
+ },
+ "ListImaResponse": {
+ "properties": {
+ "is_end": {
+ "title": "Is End",
+ "type": "boolean"
+ },
+ "knowledge_bases": {
+ "items": {
+ "$ref": "#/components/schemas/ImaKnowledgeBaseSummary"
+ },
+ "title": "Knowledge Bases",
+ "type": "array"
+ },
+ "next_cursor": {
+ "title": "Next Cursor",
+ "type": "string"
+ }
+ },
+ "required": [
+ "knowledge_bases",
+ "next_cursor",
+ "is_end"
+ ],
+ "title": "ListImaResponse",
+ "type": "object"
+ },
+ "LlamaIndexConfigUpdate": {
+ "description": "Partial update for the LlamaIndex engine knobs (omitted fields kept).",
+ "properties": {
+ "bm25_top_k_multiplier": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Bm25 Top K Multiplier"
+ },
+ "chunk_overlap": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Chunk Overlap"
+ },
+ "chunk_size": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Chunk Size"
+ },
+ "hnsw_ef_construction": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Hnsw Ef Construction"
+ },
+ "hnsw_ef_search": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Hnsw Ef Search"
+ },
+ "hnsw_m": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Hnsw M"
+ },
+ "image_description_concurrency": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Image Description Concurrency"
+ },
+ "image_description_timeout_seconds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Image Description Timeout Seconds"
+ },
+ "rerank_top_k": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Rerank Top K"
+ },
+ "reranker_model": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Reranker Model"
+ },
+ "retrieval_profile": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Retrieval Profile"
+ },
+ "top_k": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Top K"
+ },
+ "vector_index_type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Vector Index Type"
+ },
+ "vector_top_k_multiplier": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Vector Top K Multiplier"
+ }
+ },
+ "title": "LlamaIndexConfigUpdate",
+ "type": "object"
+ },
+ "LoginRequest": {
+ "description": "Payload for the POST /login endpoint.",
+ "properties": {
+ "password": {
+ "title": "Password",
+ "type": "string"
+ },
+ "username": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ "required": [
+ "username",
+ "password"
+ ],
+ "title": "LoginRequest",
+ "type": "object"
+ },
+ "MCPServerConfig": {
+ "description": "One MCP server entry.\n\n``type`` is auto-detected when omitted: ``command`` ⇒ stdio; a ``url``\nending in ``/sse`` ⇒ sse; any other ``url`` ⇒ streamableHttp.",
+ "properties": {
+ "args": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Args",
+ "type": "array"
+ },
+ "auth": {
+ "default": "",
+ "enum": [
+ "",
+ "oauth"
+ ],
+ "title": "Auth",
+ "type": "string"
+ },
+ "catalog_entry": {
+ "default": "",
+ "title": "Catalog Entry",
+ "type": "string"
+ },
+ "command": {
+ "default": "",
+ "title": "Command",
+ "type": "string"
+ },
+ "cwd": {
+ "default": "",
+ "title": "Cwd",
+ "type": "string"
+ },
+ "disabled_tools": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Disabled Tools",
+ "type": "array"
+ },
+ "enabled": {
+ "default": true,
+ "title": "Enabled",
+ "type": "boolean"
+ },
+ "enabled_tools": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Enabled Tools",
+ "type": "array"
+ },
+ "env": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Env",
+ "type": "object"
+ },
+ "headers": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Headers",
+ "type": "object"
+ },
+ "tool_timeout": {
+ "default": 30,
+ "maximum": 600.0,
+ "minimum": 1.0,
+ "title": "Tool Timeout",
+ "type": "integer"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "enum": [
+ "stdio",
+ "sse",
+ "streamableHttp"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Type"
+ },
+ "url": {
+ "default": "",
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "title": "MCPServerConfig",
+ "type": "object"
+ },
+ "MCPSettingsPayload": {
+ "properties": {
+ "servers": {
+ "additionalProperties": {
+ "$ref": "#/components/schemas/MCPServerConfig"
+ },
+ "title": "Servers",
+ "type": "object"
+ }
+ },
+ "title": "MCPSettingsPayload",
+ "type": "object"
+ },
+ "ManagedUpdateRequest": {
+ "properties": {
+ "confirmation": {
+ "const": "update-and-restart",
+ "title": "Confirmation",
+ "type": "string"
+ }
+ },
+ "required": [
+ "confirmation"
+ ],
+ "title": "ManagedUpdateRequest",
+ "type": "object"
+ },
+ "MaterialDetail": {
+ "properties": {
+ "annotation_count": {
+ "default": 0,
+ "title": "Annotation Count",
+ "type": "integer"
+ },
+ "byte_size": {
+ "default": 0,
+ "title": "Byte Size",
+ "type": "integer"
+ },
+ "char_count": {
+ "default": 0,
+ "title": "Char Count",
+ "type": "integer"
+ },
+ "content_format": {
+ "default": "plain_text",
+ "enum": [
+ "plain_text",
+ "web_markdown"
+ ],
+ "title": "Content Format",
+ "type": "string"
+ },
+ "created_at": {
+ "default": 0.0,
+ "title": "Created At",
+ "type": "number"
+ },
+ "extractor": {
+ "default": "",
+ "title": "Extractor",
+ "type": "string"
+ },
+ "filename": {
+ "title": "Filename",
+ "type": "string"
+ },
+ "has_raw_view": {
+ "default": false,
+ "title": "Has Raw View",
+ "type": "boolean"
+ },
+ "material_id": {
+ "title": "Material Id",
+ "type": "string"
+ },
+ "mime": {
+ "default": "",
+ "title": "Mime",
+ "type": "string"
+ },
+ "outline": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Outline",
+ "type": "array"
+ },
+ "outline_text": {
+ "default": "",
+ "title": "Outline Text",
+ "type": "string"
+ },
+ "render_mode": {
+ "default": "text",
+ "enum": [
+ "text",
+ "pdf",
+ "epub",
+ "video",
+ "audio"
+ ],
+ "title": "Render Mode",
+ "type": "string"
+ },
+ "revision": {
+ "default": 1,
+ "title": "Revision",
+ "type": "integer"
+ },
+ "source_type": {
+ "default": "upload",
+ "title": "Source Type",
+ "type": "string"
+ },
+ "source_url": {
+ "default": "",
+ "title": "Source Url",
+ "type": "string"
+ },
+ "title": {
+ "default": "",
+ "title": "Title",
+ "type": "string"
+ },
+ "unit": {
+ "title": "Unit",
+ "type": "string"
+ },
+ "unit_count": {
+ "title": "Unit Count",
+ "type": "integer"
+ },
+ "unit_refs": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Unit Refs",
+ "type": "array"
+ }
+ },
+ "required": [
+ "material_id",
+ "filename",
+ "unit",
+ "unit_count"
+ ],
+ "title": "MaterialDetail",
+ "type": "object"
+ },
+ "MaterialInfo": {
+ "properties": {
+ "annotation_count": {
+ "default": 0,
+ "title": "Annotation Count",
+ "type": "integer"
+ },
+ "byte_size": {
+ "default": 0,
+ "title": "Byte Size",
+ "type": "integer"
+ },
+ "char_count": {
+ "default": 0,
+ "title": "Char Count",
+ "type": "integer"
+ },
+ "content_format": {
+ "default": "plain_text",
+ "enum": [
+ "plain_text",
+ "web_markdown"
+ ],
+ "title": "Content Format",
+ "type": "string"
+ },
+ "created_at": {
+ "default": 0.0,
+ "title": "Created At",
+ "type": "number"
+ },
+ "extractor": {
+ "default": "",
+ "title": "Extractor",
+ "type": "string"
+ },
+ "filename": {
+ "title": "Filename",
+ "type": "string"
+ },
+ "has_raw_view": {
+ "default": false,
+ "title": "Has Raw View",
+ "type": "boolean"
+ },
+ "material_id": {
+ "title": "Material Id",
+ "type": "string"
+ },
+ "mime": {
+ "default": "",
+ "title": "Mime",
+ "type": "string"
+ },
+ "render_mode": {
+ "default": "text",
+ "enum": [
+ "text",
+ "pdf",
+ "epub",
+ "video",
+ "audio"
+ ],
+ "title": "Render Mode",
+ "type": "string"
+ },
+ "revision": {
+ "default": 1,
+ "title": "Revision",
+ "type": "integer"
+ },
+ "source_type": {
+ "default": "upload",
+ "title": "Source Type",
+ "type": "string"
+ },
+ "source_url": {
+ "default": "",
+ "title": "Source Url",
+ "type": "string"
+ },
+ "title": {
+ "default": "",
+ "title": "Title",
+ "type": "string"
+ },
+ "unit": {
+ "title": "Unit",
+ "type": "string"
+ },
+ "unit_count": {
+ "title": "Unit Count",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "material_id",
+ "filename",
+ "unit",
+ "unit_count"
+ ],
+ "title": "MaterialInfo",
+ "type": "object"
+ },
+ "MinerUModelDownloadPayload": {
+ "description": "One-click model download request (draft form values, like /test).",
+ "properties": {
+ "endpoint": {
+ "default": "",
+ "title": "Endpoint",
+ "type": "string"
+ },
+ "local_cli_path": {
+ "default": "",
+ "title": "Local Cli Path",
+ "type": "string"
+ },
+ "model_type": {
+ "default": "pipeline",
+ "enum": [
+ "pipeline",
+ "vlm",
+ "all"
+ ],
+ "title": "Model Type",
+ "type": "string"
+ },
+ "source": {
+ "default": "huggingface",
+ "enum": [
+ "huggingface",
+ "modelscope"
+ ],
+ "title": "Source",
+ "type": "string"
+ }
+ },
+ "title": "MinerUModelDownloadPayload",
+ "type": "object"
+ },
+ "MinerUSettingsUpdate": {
+ "description": "MinerU document-parsing backend settings.\n\n``api_token`` is tri-state: ``None`` keeps the stored token (the UI sends\nNone when the user didn't edit the secret field), ``\"\"`` clears it, and a\nnon-empty string or string array replaces it. The GET payload never echoes\nthe raw token.",
+ "properties": {
+ "allow_local_model_download": {
+ "default": false,
+ "title": "Allow Local Model Download",
+ "type": "boolean"
+ },
+ "api_base_url": {
+ "default": "https://mineru.net",
+ "title": "Api Base Url",
+ "type": "string"
+ },
+ "api_token": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Api Token"
+ },
+ "enable_formula": {
+ "default": true,
+ "title": "Enable Formula",
+ "type": "boolean"
+ },
+ "enable_table": {
+ "default": true,
+ "title": "Enable Table",
+ "type": "boolean"
+ },
+ "is_ocr": {
+ "default": false,
+ "title": "Is Ocr",
+ "type": "boolean"
+ },
+ "language": {
+ "default": "auto",
+ "title": "Language",
+ "type": "string"
+ },
+ "local_cli_path": {
+ "default": "",
+ "title": "Local Cli Path",
+ "type": "string"
+ },
+ "mode": {
+ "default": "local",
+ "enum": [
+ "local",
+ "cloud"
+ ],
+ "title": "Mode",
+ "type": "string"
+ },
+ "model_download_endpoint": {
+ "default": "",
+ "title": "Model Download Endpoint",
+ "type": "string"
+ },
+ "model_download_source": {
+ "default": "huggingface",
+ "enum": [
+ "huggingface",
+ "modelscope"
+ ],
+ "title": "Model Download Source",
+ "type": "string"
+ },
+ "model_version": {
+ "default": "pipeline",
+ "enum": [
+ "pipeline",
+ "vlm"
+ ],
+ "title": "Model Version",
+ "type": "string"
+ }
+ },
+ "title": "MinerUSettingsUpdate",
+ "type": "object"
+ },
+ "MoveBlockRequest": {
+ "properties": {
+ "block_id": {
+ "title": "Block Id",
+ "type": "string"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "new_position": {
+ "title": "New Position",
+ "type": "integer"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "block_id",
+ "new_position"
+ ],
+ "title": "MoveBlockRequest",
+ "type": "object"
+ },
+ "MoveFilePayload": {
+ "properties": {
+ "dest_folder": {
+ "default": "",
+ "title": "Dest Folder",
+ "type": "string"
+ },
+ "source": {
+ "title": "Source",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source"
+ ],
+ "title": "MoveFilePayload",
+ "type": "object"
+ },
+ "MoveRecordRequest": {
+ "description": "Move or copy a record into another notebook.",
+ "properties": {
+ "target_notebook_id": {
+ "title": "Target Notebook Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target_notebook_id"
+ ],
+ "title": "MoveRecordRequest",
+ "type": "object"
+ },
+ "NetworkSettingsUpdate": {
+ "properties": {
+ "backend_port": {
+ "maximum": 65535.0,
+ "minimum": 1.0,
+ "title": "Backend Port",
+ "type": "integer"
+ },
+ "cors_origins": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Cors Origins",
+ "type": "array"
+ },
+ "frontend_port": {
+ "maximum": 65535.0,
+ "minimum": 1.0,
+ "title": "Frontend Port",
+ "type": "integer"
+ },
+ "public_api_base": {
+ "default": "",
+ "title": "Public Api Base",
+ "type": "string"
+ }
+ },
+ "required": [
+ "backend_port",
+ "frontend_port"
+ ],
+ "title": "NetworkSettingsUpdate",
+ "type": "object"
+ },
+ "NotebookCaptureRequest": {
+ "properties": {
+ "material_ids": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 100,
+ "title": "Material Ids",
+ "type": "array"
+ },
+ "notebook_ids": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "title": "Notebook Ids",
+ "type": "array"
+ },
+ "summary": {
+ "default": "",
+ "maxLength": 1000,
+ "title": "Summary",
+ "type": "string"
+ },
+ "title": {
+ "default": "",
+ "maxLength": 300,
+ "title": "Title",
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook_ids"
+ ],
+ "title": "NotebookCaptureRequest",
+ "type": "object"
+ },
+ "NotebookEntryItem": {
+ "properties": {
+ "ai_judgment": {
+ "default": "",
+ "title": "Ai Judgment",
+ "type": "string"
+ },
+ "bookmarked": {
+ "default": false,
+ "title": "Bookmarked",
+ "type": "boolean"
+ },
+ "categories": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/components/schemas/CategoryItem"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Categories"
+ },
+ "correct_answer": {
+ "default": "",
+ "title": "Correct Answer",
+ "type": "string"
+ },
+ "created_at": {
+ "title": "Created At",
+ "type": "number"
+ },
+ "difficulty": {
+ "default": "",
+ "title": "Difficulty",
+ "type": "string"
+ },
+ "explanation": {
+ "default": "",
+ "title": "Explanation",
+ "type": "string"
+ },
+ "followup_session_id": {
+ "default": "",
+ "title": "Followup Session Id",
+ "type": "string"
+ },
+ "id": {
+ "title": "Id",
+ "type": "integer"
+ },
+ "is_correct": {
+ "default": false,
+ "title": "Is Correct",
+ "type": "boolean"
+ },
+ "material_id": {
+ "default": "",
+ "title": "Material Id",
+ "type": "string"
+ },
+ "material_title": {
+ "default": "",
+ "title": "Material Title",
+ "type": "string"
+ },
+ "options": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "default": {},
+ "title": "Options",
+ "type": "object"
+ },
+ "question": {
+ "title": "Question",
+ "type": "string"
+ },
+ "question_id": {
+ "default": "",
+ "title": "Question Id",
+ "type": "string"
+ },
+ "question_type": {
+ "default": "",
+ "title": "Question Type",
+ "type": "string"
+ },
+ "resolved": {
+ "default": false,
+ "title": "Resolved",
+ "type": "boolean"
+ },
+ "score_trend": {
+ "default": "new",
+ "enum": [
+ "new",
+ "improved",
+ "declined",
+ "unchanged"
+ ],
+ "title": "Score Trend",
+ "type": "string"
+ },
+ "section_id": {
+ "default": "",
+ "title": "Section Id",
+ "type": "string"
+ },
+ "section_title": {
+ "default": "",
+ "title": "Section Title",
+ "type": "string"
+ },
+ "session_id": {
+ "title": "Session Id",
+ "type": "string"
+ },
+ "session_title": {
+ "default": "",
+ "title": "Session Title",
+ "type": "string"
+ },
+ "source": {
+ "default": "deep_question",
+ "enum": [
+ "deep_question",
+ "mastery_path",
+ "immersive_reading",
+ "book"
+ ],
+ "title": "Source",
+ "type": "string"
+ },
+ "turn_id": {
+ "default": "",
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "updated_at": {
+ "title": "Updated At",
+ "type": "number"
+ },
+ "user_answer": {
+ "default": "",
+ "title": "User Answer",
+ "type": "string"
+ },
+ "user_answer_images": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/AnswerImageItem"
+ },
+ "title": "User Answer Images",
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "session_id",
+ "question",
+ "created_at",
+ "updated_at"
+ ],
+ "title": "NotebookEntryItem",
+ "type": "object"
+ },
+ "NotebookEntryListResponse": {
+ "properties": {
+ "items": {
+ "items": {
+ "$ref": "#/components/schemas/NotebookEntryItem"
+ },
+ "title": "Items",
+ "type": "array"
+ },
+ "total": {
+ "title": "Total",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "items",
+ "total"
+ ],
+ "title": "NotebookEntryListResponse",
+ "type": "object"
+ },
+ "NotebookRecordInput": {
+ "properties": {
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "output": {
+ "default": "",
+ "title": "Output",
+ "type": "string"
+ },
+ "title": {
+ "default": "",
+ "title": "Title",
+ "type": "string"
+ },
+ "type": {
+ "default": "note",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "title": "NotebookRecordInput",
+ "type": "object"
+ },
+ "NotebookReference": {
+ "additionalProperties": false,
+ "properties": {
+ "notebook_id": {
+ "title": "Notebook Id",
+ "type": "string"
+ },
+ "record_ids": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Record Ids",
+ "type": "array"
+ }
+ },
+ "required": [
+ "notebook_id"
+ ],
+ "title": "NotebookReference",
+ "type": "object"
+ },
+ "OrganizeNotesRequest": {
+ "properties": {
+ "material_ids": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 100,
+ "title": "Material Ids",
+ "type": "array"
+ }
+ },
+ "title": "OrganizeNotesRequest",
+ "type": "object"
+ },
+ "OutgoingAttachment": {
+ "additionalProperties": false,
+ "properties": {
+ "base64": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Base64"
+ },
+ "filename": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Filename"
+ },
+ "mime_type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Mime Type"
+ },
+ "type": {
+ "title": "Type",
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Url"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "title": "OutgoingAttachment",
+ "type": "object"
+ },
+ "PageChatSessionRequest": {
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "session_id": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "session_id"
+ ],
+ "title": "PageChatSessionRequest",
+ "type": "object"
+ },
+ "PageIndexConfigUpdate": {
+ "properties": {
+ "api_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Api Key"
+ }
+ },
+ "title": "PageIndexConfigUpdate",
+ "type": "object"
+ },
+ "PairRequest": {
+ "properties": {
+ "device_kind": {
+ "default": "macos",
+ "maxLength": 32,
+ "title": "Device Kind",
+ "type": "string"
+ },
+ "device_name": {
+ "default": "",
+ "maxLength": 128,
+ "title": "Device Name",
+ "type": "string"
+ }
+ },
+ "title": "PairRequest",
+ "type": "object"
+ },
+ "PairResponse": {
+ "properties": {
+ "device_id": {
+ "title": "Device Id",
+ "type": "string"
+ },
+ "device_kind": {
+ "title": "Device Kind",
+ "type": "string"
+ },
+ "device_name": {
+ "title": "Device Name",
+ "type": "string"
+ },
+ "token": {
+ "title": "Token",
+ "type": "string"
+ }
+ },
+ "required": [
+ "device_id",
+ "token",
+ "device_name",
+ "device_kind"
+ ],
+ "title": "PairResponse",
+ "type": "object"
+ },
+ "PartnerGroupMessageRequest": {
+ "properties": {
+ "content": {
+ "minLength": 1,
+ "title": "Content",
+ "type": "string"
+ },
+ "mentions": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Mentions"
+ },
+ "session_key": {
+ "default": "default",
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "title": "PartnerGroupMessageRequest",
+ "type": "object"
+ },
+ "PartnerInvocationActionRequest": {
+ "properties": {
+ "session_key": {
+ "default": "default",
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ "title": "PartnerInvocationActionRequest",
+ "type": "object"
+ },
+ "PartnerSeatRetryRequest": {
+ "properties": {
+ "session_key": {
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ "required": [
+ "session_key"
+ ],
+ "title": "PartnerSeatRetryRequest",
+ "type": "object"
+ },
+ "PositionInfo": {
+ "properties": {
+ "locator": {
+ "minimum": 1.0,
+ "title": "Locator",
+ "type": "integer"
+ },
+ "percentage": {
+ "default": 0.0,
+ "maximum": 1.0,
+ "minimum": 0.0,
+ "title": "Percentage",
+ "type": "number"
+ },
+ "source_anchor": {
+ "default": "",
+ "maxLength": 4096,
+ "title": "Source Anchor",
+ "type": "string"
+ },
+ "updated_at": {
+ "default": 0.0,
+ "title": "Updated At",
+ "type": "number"
+ }
+ },
+ "required": [
+ "locator"
+ ],
+ "title": "PositionInfo",
+ "type": "object"
+ },
+ "PositionPayload": {
+ "properties": {
+ "locator": {
+ "minimum": 1.0,
+ "title": "Locator",
+ "type": "integer"
+ },
+ "percentage": {
+ "default": 0.0,
+ "maximum": 1.0,
+ "minimum": 0.0,
+ "title": "Percentage",
+ "type": "number"
+ },
+ "source_anchor": {
+ "default": "",
+ "maxLength": 4096,
+ "title": "Source Anchor",
+ "type": "string"
+ }
+ },
+ "required": [
+ "locator"
+ ],
+ "title": "PositionPayload",
+ "type": "object"
+ },
+ "ProbeFolderRequest": {
+ "properties": {
+ "folder_path": {
+ "title": "Folder Path",
+ "type": "string"
+ },
+ "rag_provider": {
+ "default": "llamaindex",
+ "title": "Rag Provider",
+ "type": "string"
+ }
+ },
+ "required": [
+ "folder_path"
+ ],
+ "title": "ProbeFolderRequest",
+ "type": "object"
+ },
+ "ProbeImaRequest": {
+ "properties": {
+ "api_key": {
+ "default": "",
+ "title": "Api Key",
+ "type": "string"
+ },
+ "client_id": {
+ "default": "",
+ "title": "Client Id",
+ "type": "string"
+ },
+ "knowledge_base_id": {
+ "title": "Knowledge Base Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "knowledge_base_id"
+ ],
+ "title": "ProbeImaRequest",
+ "type": "object"
+ },
+ "ProbeLightRagServerRequest": {
+ "properties": {
+ "api_key": {
+ "default": "",
+ "title": "Api Key",
+ "type": "string"
+ },
+ "server_url": {
+ "title": "Server Url",
+ "type": "string"
+ },
+ "use_saved_api_key": {
+ "default": false,
+ "title": "Use Saved Api Key",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "server_url"
+ ],
+ "title": "ProbeLightRagServerRequest",
+ "type": "object"
+ },
+ "ProbeWeKnoraRequest": {
+ "properties": {
+ "api_key": {
+ "title": "Api Key",
+ "type": "string"
+ },
+ "knowledge_base_id": {
+ "title": "Knowledge Base Id",
+ "type": "string"
+ },
+ "server_url": {
+ "title": "Server Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "server_url",
+ "api_key",
+ "knowledge_base_id"
+ ],
+ "title": "ProbeWeKnoraRequest",
+ "type": "object"
+ },
+ "ProviderModeUpdate": {
+ "description": "Set an engine's global default retrieval mode (from its engine card).",
+ "properties": {
+ "mode": {
+ "title": "Mode",
+ "type": "string"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "title": "ProviderModeUpdate",
+ "type": "object"
+ },
+ "QuestionBankMaterial": {
+ "properties": {
+ "entry_count": {
+ "title": "Entry Count",
+ "type": "integer"
+ },
+ "material_id": {
+ "title": "Material Id",
+ "type": "string"
+ },
+ "material_title": {
+ "title": "Material Title",
+ "type": "string"
+ },
+ "source": {
+ "title": "Source",
+ "type": "string"
+ },
+ "unresolved_count": {
+ "title": "Unresolved Count",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "source",
+ "material_id",
+ "material_title",
+ "entry_count",
+ "unresolved_count"
+ ],
+ "title": "QuestionBankMaterial",
+ "type": "object"
+ },
+ "QuestionBankStats": {
+ "properties": {
+ "bookmarked": {
+ "default": 0,
+ "title": "Bookmarked",
+ "type": "integer"
+ },
+ "total": {
+ "default": 0,
+ "title": "Total",
+ "type": "integer"
+ },
+ "uncategorized": {
+ "default": 0,
+ "title": "Uncategorized",
+ "type": "integer"
+ },
+ "unresolved": {
+ "default": 0,
+ "title": "Unresolved",
+ "type": "integer"
+ },
+ "wrong": {
+ "default": 0,
+ "title": "Wrong",
+ "type": "integer"
+ }
+ },
+ "title": "QuestionBankStats",
+ "type": "object"
+ },
+ "QuizAttemptRequest": {
+ "properties": {
+ "block_id": {
+ "title": "Block Id",
+ "type": "string"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "is_correct": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Is Correct"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "question_id": {
+ "default": "",
+ "title": "Question Id",
+ "type": "string"
+ },
+ "user_answer": {
+ "default": "",
+ "title": "User Answer",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "block_id"
+ ],
+ "title": "QuizAttemptRequest",
+ "type": "object"
+ },
+ "QuizResultItem": {
+ "properties": {
+ "correct_answer": {
+ "default": "",
+ "title": "Correct Answer",
+ "type": "string"
+ },
+ "difficulty": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "",
+ "title": "Difficulty"
+ },
+ "explanation": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "",
+ "title": "Explanation"
+ },
+ "is_correct": {
+ "title": "Is Correct",
+ "type": "boolean"
+ },
+ "options": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Options"
+ },
+ "question": {
+ "minLength": 1,
+ "title": "Question",
+ "type": "string"
+ },
+ "question_id": {
+ "default": "",
+ "title": "Question Id",
+ "type": "string"
+ },
+ "question_type": {
+ "default": "",
+ "title": "Question Type",
+ "type": "string"
+ },
+ "user_answer": {
+ "default": "",
+ "title": "User Answer",
+ "type": "string"
+ }
+ },
+ "required": [
+ "question",
+ "is_correct"
+ ],
+ "title": "QuizResultItem",
+ "type": "object"
+ },
+ "QuizResultsRequest": {
+ "properties": {
+ "answers": {
+ "items": {
+ "$ref": "#/components/schemas/QuizResultItem"
+ },
+ "title": "Answers",
+ "type": "array"
+ },
+ "turn_id": {
+ "default": "",
+ "title": "Turn Id",
+ "type": "string"
+ }
+ },
+ "title": "QuizResultsRequest",
+ "type": "object"
+ },
+ "ReactEditRequest": {
+ "properties": {
+ "instruction": {
+ "default": "",
+ "maxLength": 10000,
+ "title": "Instruction",
+ "type": "string"
+ },
+ "kb_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Kb Name"
+ },
+ "mode": {
+ "default": "rewrite",
+ "enum": [
+ "rewrite",
+ "shorten",
+ "expand",
+ "none"
+ ],
+ "title": "Mode",
+ "type": "string"
+ },
+ "selected_text": {
+ "maxLength": 120000,
+ "title": "Selected Text",
+ "type": "string"
+ },
+ "tools": {
+ "default": [],
+ "items": {
+ "enum": [
+ "rag",
+ "web"
+ ],
+ "type": "string"
+ },
+ "title": "Tools",
+ "type": "array"
+ }
+ },
+ "required": [
+ "selected_text"
+ ],
+ "title": "ReactEditRequest",
+ "type": "object"
+ },
+ "ReactEditResponse": {
+ "properties": {
+ "edited_text": {
+ "title": "Edited Text",
+ "type": "string"
+ },
+ "operation_id": {
+ "title": "Operation Id",
+ "type": "string"
+ },
+ "tools_used": {
+ "default": [],
+ "items": {
+ "type": "string"
+ },
+ "title": "Tools Used",
+ "type": "array"
+ }
+ },
+ "required": [
+ "edited_text",
+ "operation_id"
+ ],
+ "title": "ReactEditResponse",
+ "type": "object"
+ },
+ "ReadingReference": {
+ "additionalProperties": false,
+ "properties": {
+ "locators": {
+ "items": {
+ "type": "integer"
+ },
+ "title": "Locators",
+ "type": "array"
+ },
+ "material_id": {
+ "title": "Material Id",
+ "type": "string"
+ },
+ "revision": {
+ "minimum": 1,
+ "title": "Revision",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "material_id",
+ "revision"
+ ],
+ "title": "ReadingReference",
+ "type": "object"
+ },
+ "ReadingSessionCreateRequest": {
+ "properties": {
+ "active_material_id": {
+ "default": "",
+ "title": "Active Material Id",
+ "type": "string"
+ },
+ "title": {
+ "default": "New reading conversation",
+ "maxLength": 100,
+ "title": "Title",
+ "type": "string"
+ }
+ },
+ "title": "ReadingSessionCreateRequest",
+ "type": "object"
+ },
+ "ReadingSessionLinkRequest": {
+ "properties": {
+ "target_session_id": {
+ "title": "Target Session Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target_session_id"
+ ],
+ "title": "ReadingSessionLinkRequest",
+ "type": "object"
+ },
+ "ReadingSessionRenameRequest": {
+ "properties": {
+ "title": {
+ "maxLength": 100,
+ "minLength": 1,
+ "title": "Title",
+ "type": "string"
+ }
+ },
+ "required": [
+ "title"
+ ],
+ "title": "ReadingSessionRenameRequest",
+ "type": "object"
+ },
+ "ReadingViewport": {
+ "additionalProperties": false,
+ "properties": {
+ "locator": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Locator"
+ },
+ "selection": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Selection"
+ }
+ },
+ "title": "ReadingViewport",
+ "type": "object"
+ },
+ "RebuildBookRequest": {
+ "properties": {
+ "auto_compile": {
+ "default": true,
+ "title": "Auto Compile",
+ "type": "boolean"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ }
+ },
+ "required": [
+ "book_id"
+ ],
+ "title": "RebuildBookRequest",
+ "type": "object"
+ },
+ "RegenerateBlockRequest": {
+ "properties": {
+ "block_id": {
+ "title": "Block Id",
+ "type": "string"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "params_override": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Params Override"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "block_id"
+ ],
+ "title": "RegenerateBlockRequest",
+ "type": "object"
+ },
+ "RegisterRequest": {
+ "description": "Payload for the POST /register endpoint.",
+ "properties": {
+ "password": {
+ "title": "Password",
+ "type": "string"
+ },
+ "username": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ "required": [
+ "username",
+ "password"
+ ],
+ "title": "RegisterRequest",
+ "type": "object"
+ },
+ "RenamePathRequest": {
+ "description": "An empty name is a valid request: it restores the derived display name.",
+ "properties": {
+ "name": {
+ "default": "",
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "title": "RenamePathRequest",
+ "type": "object"
+ },
+ "RenameTagRequest": {
+ "properties": {
+ "rename_to": {
+ "maxLength": 32,
+ "minLength": 1,
+ "title": "Rename To",
+ "type": "string"
+ }
+ },
+ "required": [
+ "rename_to"
+ ],
+ "title": "RenameTagRequest",
+ "type": "object"
+ },
+ "ResolveRequest": {
+ "properties": {
+ "language": {
+ "default": "",
+ "maxLength": 32,
+ "title": "Language",
+ "type": "string"
+ },
+ "provider_override": {
+ "anyOf": [
+ {
+ "maxLength": 32,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Provider Override"
+ },
+ "url": {
+ "maxLength": 2048,
+ "minLength": 1,
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "title": "ResolveRequest",
+ "type": "object"
+ },
+ "ResumeBookRequest": {
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ }
+ },
+ "required": [
+ "book_id"
+ ],
+ "title": "ResumeBookRequest",
+ "type": "object"
+ },
+ "RoundSummaryRequest": {
+ "properties": {
+ "partner_id": {
+ "maxLength": 80,
+ "minLength": 1,
+ "title": "Partner Id",
+ "type": "string"
+ },
+ "session_key": {
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ "required": [
+ "session_key",
+ "partner_id"
+ ],
+ "title": "RoundSummaryRequest",
+ "type": "object"
+ },
+ "RunStartRequest": {
+ "properties": {
+ "budget": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Budget"
+ },
+ "iterations": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Iterations"
+ },
+ "key": {
+ "title": "Key",
+ "type": "string"
+ },
+ "language": {
+ "default": "en",
+ "title": "Language",
+ "type": "string"
+ },
+ "layer": {
+ "title": "Layer",
+ "type": "string"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LLMSelectionPayload"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mode": {
+ "enum": [
+ "update",
+ "audit",
+ "dedup",
+ "merge"
+ ],
+ "title": "Mode",
+ "type": "string"
+ }
+ },
+ "required": [
+ "layer",
+ "key",
+ "mode"
+ ],
+ "title": "RunStartRequest",
+ "type": "object"
+ },
+ "RuntimeStatus": {
+ "additionalProperties": false,
+ "properties": {
+ "coordination_mode": {
+ "enum": [
+ "memory",
+ "redis"
+ ],
+ "title": "Coordination Mode",
+ "type": "string"
+ },
+ "leader_healthy": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Leader Healthy"
+ },
+ "leader_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Leader Id"
+ },
+ "lease_ttl_seconds": {
+ "minimum": 1,
+ "title": "Lease Ttl Seconds",
+ "type": "integer"
+ },
+ "minimum_web_protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Minimum Web Protocol Version",
+ "type": "string"
+ },
+ "owner_turn_count": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Owner Turn Count",
+ "type": "integer"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "recovery_backlog": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Recovery Backlog",
+ "type": "integer"
+ },
+ "recovery_interval_seconds": {
+ "minimum": 1,
+ "title": "Recovery Interval Seconds",
+ "type": "integer"
+ },
+ "redis_configured": {
+ "title": "Redis Configured",
+ "type": "boolean"
+ },
+ "redis_status": {
+ "enum": [
+ "ok",
+ "unavailable",
+ "not_configured"
+ ],
+ "title": "Redis Status",
+ "type": "string"
+ },
+ "renew_interval_seconds": {
+ "minimum": 1,
+ "title": "Renew Interval Seconds",
+ "type": "integer"
+ },
+ "worker_count": {
+ "minimum": 1,
+ "title": "Worker Count",
+ "type": "integer"
+ },
+ "worker_id": {
+ "title": "Worker Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "worker_id",
+ "worker_count",
+ "coordination_mode",
+ "redis_configured",
+ "redis_status",
+ "lease_ttl_seconds",
+ "renew_interval_seconds",
+ "recovery_interval_seconds"
+ ],
+ "title": "RuntimeStatus",
+ "type": "object"
+ },
+ "ServerPayload": {
+ "description": "A server definition plus the credential values to store beside it.",
+ "properties": {
+ "config": {
+ "$ref": "#/components/schemas/MCPServerConfig"
+ },
+ "secrets": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Secrets",
+ "type": "object"
+ }
+ },
+ "required": [
+ "config"
+ ],
+ "title": "ServerPayload",
+ "type": "object"
+ },
+ "SessionBranchBody": {
+ "properties": {
+ "new_key": {
+ "minLength": 1,
+ "title": "New Key",
+ "type": "string"
+ },
+ "source_key": {
+ "minLength": 1,
+ "title": "Source Key",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_key",
+ "new_key"
+ ],
+ "title": "SessionBranchBody",
+ "type": "object"
+ },
+ "SessionDetail": {
+ "additionalProperties": false,
+ "properties": {
+ "active_turn": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/TurnSummary"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "created_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Created At"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "messages": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Messages",
+ "type": "array"
+ },
+ "preferences": {
+ "additionalProperties": true,
+ "title": "Preferences",
+ "type": "object"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Updated At"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "title": "SessionDetail",
+ "type": "object"
+ },
+ "SessionKeyBody": {
+ "properties": {
+ "session_key": {
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ "required": [
+ "session_key"
+ ],
+ "title": "SessionKeyBody",
+ "type": "object"
+ },
+ "SessionOrganizationRequest": {
+ "description": "User-controlled organization metadata stored with the conversation.",
+ "properties": {
+ "archived": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Archived"
+ },
+ "course_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Course Id"
+ },
+ "parent_session_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Parent Session Id"
+ },
+ "pinned": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Pinned"
+ },
+ "session_kind": {
+ "anyOf": [
+ {
+ "enum": [
+ "chat",
+ "selection_tutor",
+ "immersive_reading"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Session Kind"
+ }
+ },
+ "title": "SessionOrganizationRequest",
+ "type": "object"
+ },
+ "SessionRenameRequest": {
+ "properties": {
+ "title": {
+ "maxLength": 100,
+ "minLength": 1,
+ "title": "Title",
+ "type": "string"
+ }
+ },
+ "required": [
+ "title"
+ ],
+ "title": "SessionRenameRequest",
+ "type": "object"
+ },
+ "SessionSummary": {
+ "additionalProperties": false,
+ "properties": {
+ "active_turn": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/TurnSummary"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "created_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Created At"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Updated At"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "title": "SessionSummary",
+ "type": "object"
+ },
+ "SetRoleRequest": {
+ "description": "Payload for the PUT /users/{username}/role endpoint.",
+ "properties": {
+ "role": {
+ "title": "Role",
+ "type": "string"
+ }
+ },
+ "required": [
+ "role"
+ ],
+ "title": "SetRoleRequest",
+ "type": "object"
+ },
+ "SetSyllabusRequest": {
+ "properties": {
+ "units": {
+ "items": {
+ "$ref": "#/components/schemas/SyllabusUnitRequest"
+ },
+ "title": "Units",
+ "type": "array"
+ }
+ },
+ "required": [
+ "units"
+ ],
+ "title": "SetSyllabusRequest",
+ "type": "object"
+ },
+ "SettingsDraftPayload": {
+ "description": "The unapplied settings envelope, as the settings UI holds it.",
+ "properties": {
+ "catalog": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Catalog"
+ },
+ "extensions": {
+ "additionalProperties": true,
+ "title": "Extensions",
+ "type": "object"
+ }
+ },
+ "title": "SettingsDraftPayload",
+ "type": "object"
+ },
+ "SidebarDescriptionUpdate": {
+ "properties": {
+ "description": {
+ "title": "Description",
+ "type": "string"
+ }
+ },
+ "required": [
+ "description"
+ ],
+ "title": "SidebarDescriptionUpdate",
+ "type": "object"
+ },
+ "SidebarNavOrder": {
+ "properties": {
+ "learnResearch": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Learnresearch",
+ "type": "array"
+ },
+ "start": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Start",
+ "type": "array"
+ }
+ },
+ "required": [
+ "start",
+ "learnResearch"
+ ],
+ "title": "SidebarNavOrder",
+ "type": "object"
+ },
+ "SidebarNavOrderUpdate": {
+ "properties": {
+ "nav_order": {
+ "$ref": "#/components/schemas/SidebarNavOrder"
+ }
+ },
+ "required": [
+ "nav_order"
+ ],
+ "title": "SidebarNavOrderUpdate",
+ "type": "object"
+ },
+ "SkillInstallPayload": {
+ "properties": {
+ "allow_unverified": {
+ "default": false,
+ "title": "Allow Unverified",
+ "type": "boolean"
+ },
+ "force": {
+ "default": false,
+ "title": "Force",
+ "type": "boolean"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ },
+ "ref": {
+ "title": "Ref",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "title": "SkillInstallPayload",
+ "type": "object"
+ },
+ "SoulCreateRequest": {
+ "properties": {
+ "content": {
+ "title": "Content",
+ "type": "string"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "content"
+ ],
+ "title": "SoulCreateRequest",
+ "type": "object"
+ },
+ "SoulSpec": {
+ "description": "Where a new partner's soul comes from.",
+ "properties": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Content"
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Id"
+ },
+ "source": {
+ "default": "default",
+ "enum": [
+ "default",
+ "library",
+ "persona",
+ "custom"
+ ],
+ "title": "Source",
+ "type": "string"
+ }
+ },
+ "title": "SoulSpec",
+ "type": "object"
+ },
+ "SoulTemplateUpdateRequest": {
+ "properties": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Content"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ }
+ },
+ "title": "SoulTemplateUpdateRequest",
+ "type": "object"
+ },
+ "SoulUpdateBody": {
+ "properties": {
+ "content": {
+ "title": "Content",
+ "type": "string"
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "title": "SoulUpdateBody",
+ "type": "object"
+ },
+ "SubagentMessageRequest": {
+ "properties": {
+ "chat_session_id": {
+ "default": "",
+ "title": "Chat Session Id",
+ "type": "string"
+ },
+ "message": {
+ "title": "Message",
+ "type": "string"
+ }
+ },
+ "required": [
+ "message"
+ ],
+ "title": "SubagentMessageRequest",
+ "type": "object"
+ },
+ "SubagentSettingsPayload": {
+ "properties": {
+ "backends": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Backends"
+ },
+ "consult_budget": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Consult Budget"
+ }
+ },
+ "title": "SubagentSettingsPayload",
+ "type": "object"
+ },
+ "SupplementRequest": {
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "topic": {
+ "title": "Topic",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "topic"
+ ],
+ "title": "SupplementRequest",
+ "type": "object"
+ },
+ "SupportedFileTypesInfo": {
+ "description": "Upload constraints exposed to the web client.",
+ "properties": {
+ "accept": {
+ "title": "Accept",
+ "type": "string"
+ },
+ "extensions": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Extensions",
+ "type": "array"
+ },
+ "max_file_size_bytes": {
+ "title": "Max File Size Bytes",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "extensions",
+ "accept",
+ "max_file_size_bytes"
+ ],
+ "title": "SupportedFileTypesInfo",
+ "type": "object"
+ },
+ "SupportedFormats": {
+ "properties": {
+ "extensions": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Extensions",
+ "type": "array"
+ },
+ "max_bytes": {
+ "title": "Max Bytes",
+ "type": "integer"
+ },
+ "raw_view_extensions": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Raw View Extensions",
+ "type": "array"
+ }
+ },
+ "required": [
+ "extensions",
+ "max_bytes",
+ "raw_view_extensions"
+ ],
+ "title": "SupportedFormats",
+ "type": "object"
+ },
+ "SyllabusUnitRequest": {
+ "properties": {
+ "covered": {
+ "default": false,
+ "title": "Covered",
+ "type": "boolean"
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Id"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "topics": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Topics",
+ "type": "array"
+ }
+ },
+ "required": [
+ "title"
+ ],
+ "title": "SyllabusUnitRequest",
+ "type": "object"
+ },
+ "SyncObjectIn": {
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
+ "content": {
+ "default": "",
+ "title": "Content",
+ "type": "string"
+ },
+ "created_at": {
+ "default": "",
+ "title": "Created At",
+ "type": "string"
+ },
+ "document_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Document Id"
+ },
+ "document_title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Document Title"
+ },
+ "excerpt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Excerpt"
+ },
+ "links": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Links",
+ "type": "array"
+ },
+ "object_id": {
+ "title": "Object Id",
+ "type": "string"
+ },
+ "object_type": {
+ "title": "Object Type",
+ "type": "string"
+ },
+ "page": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Page"
+ },
+ "raw": {
+ "additionalProperties": true,
+ "title": "Raw",
+ "type": "object"
+ },
+ "tags": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Tags",
+ "type": "array"
+ },
+ "title": {
+ "default": "",
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "default": "",
+ "title": "Updated At",
+ "type": "string"
+ }
+ },
+ "required": [
+ "object_id",
+ "object_type"
+ ],
+ "title": "SyncObjectIn",
+ "type": "object"
+ },
+ "SyncRequest": {
+ "properties": {
+ "cursor": {
+ "default": "",
+ "maxLength": 256,
+ "title": "Cursor",
+ "type": "string"
+ },
+ "deleted_ids": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 2000,
+ "title": "Deleted Ids",
+ "type": "array"
+ },
+ "objects": {
+ "items": {
+ "$ref": "#/components/schemas/SyncObjectIn"
+ },
+ "maxItems": 2000,
+ "title": "Objects",
+ "type": "array"
+ }
+ },
+ "title": "SyncRequest",
+ "type": "object"
+ },
+ "SyncResponse": {
+ "properties": {
+ "deleted": {
+ "title": "Deleted",
+ "type": "integer"
+ },
+ "new_cursor": {
+ "title": "New Cursor",
+ "type": "string"
+ },
+ "stored": {
+ "title": "Stored",
+ "type": "integer"
+ },
+ "updated": {
+ "title": "Updated",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "stored",
+ "updated",
+ "deleted",
+ "new_cursor"
+ ],
+ "title": "SyncResponse",
+ "type": "object"
+ },
+ "TTSRequest": {
+ "description": "Text-to-speech request body.",
+ "properties": {
+ "format": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Format"
+ },
+ "text": {
+ "minLength": 1,
+ "title": "Text",
+ "type": "string"
+ },
+ "voice": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Voice"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "title": "TTSRequest",
+ "type": "object"
+ },
+ "TestResponse": {
+ "properties": {
+ "error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Error"
+ },
+ "message": {
+ "title": "Message",
+ "type": "string"
+ },
+ "model": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Model"
+ },
+ "response_time_ms": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Response Time Ms"
+ },
+ "success": {
+ "title": "Success",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "success",
+ "message"
+ ],
+ "title": "TestResponse",
+ "type": "object"
+ },
+ "TextPositionSelectorPayload": {
+ "properties": {
+ "end": {
+ "exclusiveMinimum": 0.0,
+ "title": "End",
+ "type": "integer"
+ },
+ "start": {
+ "minimum": 0.0,
+ "title": "Start",
+ "type": "integer"
+ },
+ "type": {
+ "const": "TextPositionSelector",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "start",
+ "end"
+ ],
+ "title": "TextPositionSelectorPayload",
+ "type": "object"
+ },
+ "TextQuoteSelectorPayload": {
+ "properties": {
+ "exact": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "title": "Exact",
+ "type": "string"
+ },
+ "prefix": {
+ "default": "",
+ "maxLength": 128,
+ "title": "Prefix",
+ "type": "string"
+ },
+ "suffix": {
+ "default": "",
+ "maxLength": 128,
+ "title": "Suffix",
+ "type": "string"
+ },
+ "type": {
+ "const": "TextQuoteSelector",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "exact"
+ ],
+ "title": "TextQuoteSelectorPayload",
+ "type": "object"
+ },
+ "ThemeUpdate": {
+ "properties": {
+ "theme": {
+ "enum": [
+ "light",
+ "dark",
+ "glass",
+ "snow"
+ ],
+ "title": "Theme",
+ "type": "string"
+ }
+ },
+ "required": [
+ "theme"
+ ],
+ "title": "ThemeUpdate",
+ "type": "object"
+ },
+ "TikaRemoteTest": {
+ "description": "Draft Tika server test. Tests the unsaved URL so the user can verify\nbefore saving.",
+ "properties": {
+ "server_url": {
+ "default": "http://localhost:9998",
+ "title": "Server Url",
+ "type": "string"
+ }
+ },
+ "title": "TikaRemoteTest",
+ "type": "object"
+ },
+ "TimedMediaViewport": {
+ "additionalProperties": false,
+ "properties": {
+ "time_seconds": {
+ "minimum": 0,
+ "title": "Time Seconds",
+ "type": "number"
+ }
+ },
+ "required": [
+ "time_seconds"
+ ],
+ "title": "TimedMediaViewport",
+ "type": "object"
+ },
+ "ToolAliasPayload": {
+ "properties": {
+ "description": {
+ "default": "",
+ "title": "Description",
+ "type": "string"
+ },
+ "input_format": {
+ "default": "",
+ "title": "Input Format",
+ "type": "string"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "phase": {
+ "default": "",
+ "title": "Phase",
+ "type": "string"
+ },
+ "when_to_use": {
+ "default": "",
+ "title": "When To Use",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "ToolAliasPayload",
+ "type": "object"
+ },
+ "ToolHintsPayload": {
+ "properties": {
+ "aliases": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/ToolAliasPayload"
+ },
+ "title": "Aliases",
+ "type": "array"
+ },
+ "guideline": {
+ "default": "",
+ "title": "Guideline",
+ "type": "string"
+ },
+ "input_format": {
+ "default": "",
+ "title": "Input Format",
+ "type": "string"
+ },
+ "note": {
+ "default": "",
+ "title": "Note",
+ "type": "string"
+ },
+ "phase": {
+ "default": "",
+ "title": "Phase",
+ "type": "string"
+ },
+ "short_description": {
+ "default": "",
+ "title": "Short Description",
+ "type": "string"
+ },
+ "when_to_use": {
+ "default": "",
+ "title": "When To Use",
+ "type": "string"
+ }
+ },
+ "title": "ToolHintsPayload",
+ "type": "object"
+ },
+ "ToolParameterPayload": {
+ "properties": {
+ "default": {
+ "title": "Default"
+ },
+ "description": {
+ "default": "",
+ "title": "Description",
+ "type": "string"
+ },
+ "enum": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Enum"
+ },
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "required": {
+ "default": true,
+ "title": "Required",
+ "type": "boolean"
+ },
+ "type": {
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "type"
+ ],
+ "title": "ToolParameterPayload",
+ "type": "object"
+ },
+ "ToolsListResponse": {
+ "properties": {
+ "enabled_optional_tools": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Enabled Optional Tools",
+ "type": "array"
+ },
+ "tools": {
+ "items": {
+ "$ref": "#/components/schemas/BuiltinToolPayload"
+ },
+ "title": "Tools",
+ "type": "array"
+ }
+ },
+ "required": [
+ "tools",
+ "enabled_optional_tools"
+ ],
+ "title": "ToolsListResponse",
+ "type": "object"
+ },
+ "TopicSourceKind": {
+ "enum": [
+ "goal",
+ "book",
+ "notebook",
+ "knowledge_base",
+ "file",
+ "chat"
+ ],
+ "title": "TopicSourceKind",
+ "type": "string"
+ },
+ "TopicSourceRequest": {
+ "properties": {
+ "available": {
+ "default": true,
+ "title": "Available",
+ "type": "boolean"
+ },
+ "excerpt": {
+ "default": "",
+ "maxLength": 8000,
+ "title": "Excerpt",
+ "type": "string"
+ },
+ "id": {
+ "default": "",
+ "title": "Id",
+ "type": "string"
+ },
+ "kind": {
+ "$ref": "#/components/schemas/TopicSourceKind"
+ },
+ "label": {
+ "maxLength": 200,
+ "minLength": 1,
+ "title": "Label",
+ "type": "string"
+ },
+ "metadata": {
+ "additionalProperties": true,
+ "title": "Metadata",
+ "type": "object"
+ },
+ "source_id": {
+ "default": "",
+ "title": "Source Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "label"
+ ],
+ "title": "TopicSourceRequest",
+ "type": "object"
+ },
+ "TourCompletePayload": {
+ "properties": {
+ "catalog": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Catalog"
+ },
+ "test_results": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Test Results"
+ }
+ },
+ "title": "TourCompletePayload",
+ "type": "object"
+ },
+ "TurnFailureCode": {
+ "enum": [
+ "worker_lost",
+ "lease_lost",
+ "coordination_unavailable",
+ "provider_error",
+ "internal_error",
+ "rejected",
+ "server_shutdown"
+ ],
+ "title": "TurnFailureCode",
+ "type": "string"
+ },
+ "TurnQueryState": {
+ "description": "Client observation state, including server-side recovery windows.",
+ "enum": [
+ "queued",
+ "running",
+ "waiting_input",
+ "recovering",
+ "completed",
+ "failed",
+ "cancelled"
+ ],
+ "title": "TurnQueryState",
+ "type": "string"
+ },
+ "TurnRequest": {
+ "additionalProperties": false,
+ "description": "Validated turn input; ``config`` contains capability options only.",
+ "properties": {
+ "attachments": {
+ "items": {
+ "$ref": "#/components/schemas/OutgoingAttachment"
+ },
+ "title": "Attachments",
+ "type": "array"
+ },
+ "auto_route": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Auto Route"
+ },
+ "book_references": {
+ "items": {
+ "$ref": "#/components/schemas/BookReference"
+ },
+ "title": "Book References",
+ "type": "array"
+ },
+ "capability": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "chat",
+ "title": "Capability"
+ },
+ "config": {
+ "additionalProperties": true,
+ "title": "Config",
+ "type": "object"
+ },
+ "content": {
+ "title": "Content",
+ "type": "string"
+ },
+ "course_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Course Id"
+ },
+ "followup_question_context": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Followup Question Context"
+ },
+ "history_references": {
+ "items": {
+ "type": "string"
+ },
+ "title": "History References",
+ "type": "array"
+ },
+ "knowledge_bases": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Knowledge Bases",
+ "type": "array"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Language"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LLMSelection"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "mastery_path_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Mastery Path Id"
+ },
+ "mastery_path_lease_managed": {
+ "default": false,
+ "title": "Mastery Path Lease Managed",
+ "type": "boolean"
+ },
+ "memory_references": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Memory References",
+ "type": "array"
+ },
+ "notebook_references": {
+ "items": {
+ "$ref": "#/components/schemas/NotebookReference"
+ },
+ "title": "Notebook References",
+ "type": "array"
+ },
+ "parent_message_id": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Parent Message Id"
+ },
+ "partner_group_references": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Partner Group References",
+ "type": "array"
+ },
+ "persist_user_message": {
+ "default": true,
+ "title": "Persist User Message",
+ "type": "boolean"
+ },
+ "persona": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Persona"
+ },
+ "question_notebook_references": {
+ "items": {
+ "type": "integer"
+ },
+ "title": "Question Notebook References",
+ "type": "array"
+ },
+ "reading_material_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Reading Material Id"
+ },
+ "reading_material_revision": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Reading Material Revision"
+ },
+ "reading_references": {
+ "items": {
+ "$ref": "#/components/schemas/ReadingReference"
+ },
+ "title": "Reading References",
+ "type": "array"
+ },
+ "reading_viewport": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ReadingViewport"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "reading_workspace_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Reading Workspace Id"
+ },
+ "regenerate": {
+ "default": false,
+ "title": "Regenerate",
+ "type": "boolean"
+ },
+ "regenerated_from_message_id": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Regenerated From Message Id"
+ },
+ "selection_tutor_context": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Selection Tutor Context"
+ },
+ "session_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Session Id"
+ },
+ "skills": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Skills",
+ "type": "array"
+ },
+ "subagent_consult_budget": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Subagent Consult Budget"
+ },
+ "superseded_turn_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Superseded Turn Id"
+ },
+ "timed_media_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Timed Media Id"
+ },
+ "timed_media_viewport": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/TimedMediaViewport"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Tools"
+ },
+ "workspace_mode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Workspace Mode"
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "title": "TurnRequest",
+ "type": "object"
+ },
+ "TurnStatus": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_input",
+ "completed",
+ "failed",
+ "cancelled"
+ ],
+ "title": "TurnStatus",
+ "type": "string"
+ },
+ "TurnSummary": {
+ "additionalProperties": false,
+ "properties": {
+ "capability": {
+ "default": "",
+ "title": "Capability",
+ "type": "string"
+ },
+ "created_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Created At"
+ },
+ "error": {
+ "default": "",
+ "title": "Error",
+ "type": "string"
+ },
+ "error_code": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/TurnFailureCode"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "last_seq": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Last Seq",
+ "type": "integer"
+ },
+ "owner_id": {
+ "default": "",
+ "title": "Owner Id",
+ "type": "string"
+ },
+ "query_state": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/TurnQueryState"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "retryable": {
+ "default": false,
+ "title": "Retryable",
+ "type": "boolean"
+ },
+ "session_id": {
+ "title": "Session Id",
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/components/schemas/TurnStatus"
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Updated At"
+ }
+ },
+ "required": [
+ "id",
+ "session_id",
+ "status"
+ ],
+ "title": "TurnSummary",
+ "type": "object"
+ },
+ "UISettingsUpdate": {
+ "description": "Partial UI settings for user-initiated PATCH/PUT updates via /api/v1/settings/ui.\n\nAll fields have None defaults so `model_dump(exclude_unset=True)` naturally\nexcludes fields not provided in the frontend payload, while explicitly provided\ndefaults (e.g., `theme: \"snow\"`) still update the backend. This separates\nthe semantic contract: `/ui` endpoint only merges whatever explicitly arrives\nfrom the frontend.",
+ "properties": {
+ "code_block_show_line_numbers": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Code Block Show Line Numbers"
+ },
+ "code_block_theme": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Code Block Theme"
+ },
+ "code_block_wrap_long_lines": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Code Block Wrap Long Lines"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ },
+ "response_language": {
+ "anyOf": [
+ {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Response Language"
+ },
+ "sidebar_description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Sidebar Description"
+ },
+ "sidebar_nav_order": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/SidebarNavOrder"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "theme": {
+ "anyOf": [
+ {
+ "enum": [
+ "light",
+ "dark",
+ "glass",
+ "snow"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Theme"
+ }
+ },
+ "title": "UISettingsUpdate",
+ "type": "object"
+ },
+ "UnitText": {
+ "properties": {
+ "locator": {
+ "title": "Locator",
+ "type": "integer"
+ },
+ "text": {
+ "title": "Text",
+ "type": "string"
+ },
+ "unit": {
+ "title": "Unit",
+ "type": "string"
+ }
+ },
+ "required": [
+ "locator",
+ "unit",
+ "text"
+ ],
+ "title": "UnitText",
+ "type": "object"
+ },
+ "UpdateBlockRequest": {
+ "properties": {
+ "block_id": {
+ "title": "Block Id",
+ "type": "string"
+ },
+ "body": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Body"
+ },
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "expected_revision": {
+ "anyOf": [
+ {
+ "minimum": 1.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Title"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id",
+ "block_id"
+ ],
+ "title": "UpdateBlockRequest",
+ "type": "object"
+ },
+ "UpdateCourseRequest": {
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
+ "default_capability": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Default Capability"
+ },
+ "default_persona": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Default Persona"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "maxLength": 300,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "instructions": {
+ "anyOf": [
+ {
+ "maxLength": 4000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Instructions"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ },
+ "status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Status"
+ }
+ },
+ "title": "UpdateCourseRequest",
+ "type": "object"
+ },
+ "UpdateDocumentRequest": {
+ "properties": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Content"
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Title"
+ }
+ },
+ "title": "UpdateDocumentRequest",
+ "type": "object"
+ },
+ "UpdateNotebookRequest": {
+ "description": "Update notebook request",
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "icon": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Icon"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ }
+ },
+ "title": "UpdateNotebookRequest",
+ "type": "object"
+ },
+ "UpdatePartnerGroupRequest": {
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "discussion_mode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Discussion Mode"
+ },
+ "emoji": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Emoji"
+ },
+ "member_ids": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Member Ids"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ },
+ "shared_memory": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Shared Memory"
+ }
+ },
+ "title": "UpdatePartnerGroupRequest",
+ "type": "object"
+ },
+ "UpdatePartnerRequest": {
+ "properties": {
+ "avatar": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Avatar"
+ },
+ "backup_llm_selection": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Backup Llm Selection"
+ },
+ "builtin_tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Builtin Tools"
+ },
+ "channels": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Channels"
+ },
+ "color": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "emoji": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Emoji"
+ },
+ "enabled_tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Enabled Tools"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Llm Selection"
+ },
+ "mcp_tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Mcp Tools"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name"
+ }
+ },
+ "title": "UpdatePartnerRequest",
+ "type": "object"
+ },
+ "UpdatePersonaRequest": {
+ "properties": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Content"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "rename_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Rename To"
+ }
+ },
+ "title": "UpdatePersonaRequest",
+ "type": "object"
+ },
+ "UpdateProfileRequest": {
+ "description": "Payload for the PUT /profile endpoint.",
+ "properties": {
+ "avatar": {
+ "title": "Avatar",
+ "type": "string"
+ }
+ },
+ "required": [
+ "avatar"
+ ],
+ "title": "UpdateProfileRequest",
+ "type": "object"
+ },
+ "UpdateRecordRequest": {
+ "description": "Update an existing notebook record.\n\nOnly the fields the client actually sends are forwarded (see\n``exclude_unset`` at the call site), which is what keeps ``kb_name``\nfrom being wiped by a request that merely renames the record.",
+ "properties": {
+ "kb_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Kb Name"
+ },
+ "metadata": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Metadata"
+ },
+ "output": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Output"
+ },
+ "summary": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Summary"
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Title"
+ },
+ "user_query": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User Query"
+ }
+ },
+ "title": "UpdateRecordRequest",
+ "type": "object"
+ },
+ "UpdateRequest": {
+ "properties": {
+ "budget": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Budget"
+ },
+ "language": {
+ "default": "en",
+ "title": "Language",
+ "type": "string"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LLMSelectionPayload"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "title": "UpdateRequest",
+ "type": "object"
+ },
+ "UpdateSettingsRequest": {
+ "properties": {
+ "enabled": {
+ "title": "Enabled",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "title": "UpdateSettingsRequest",
+ "type": "object"
+ },
+ "UpdateSkillRequest": {
+ "properties": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Content"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "rename_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Rename To"
+ },
+ "tags": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Tags"
+ }
+ },
+ "title": "UpdateSkillRequest",
+ "type": "object"
+ },
+ "UpdateSyllabusUnitRequest": {
+ "properties": {
+ "covered": {
+ "title": "Covered",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "covered"
+ ],
+ "title": "UpdateSyllabusUnitRequest",
+ "type": "object"
+ },
+ "UpdateVideoNoteRequest": {
+ "properties": {
+ "body": {
+ "maxLength": 20000,
+ "minLength": 1,
+ "title": "Body",
+ "type": "string"
+ }
+ },
+ "required": [
+ "body"
+ ],
+ "title": "UpdateVideoNoteRequest",
+ "type": "object"
+ },
+ "UpsertEntryRequest": {
+ "properties": {
+ "correct_answer": {
+ "default": "",
+ "title": "Correct Answer",
+ "type": "string"
+ },
+ "difficulty": {
+ "default": "",
+ "title": "Difficulty",
+ "type": "string"
+ },
+ "explanation": {
+ "default": "",
+ "title": "Explanation",
+ "type": "string"
+ },
+ "is_correct": {
+ "default": false,
+ "title": "Is Correct",
+ "type": "boolean"
+ },
+ "material_id": {
+ "default": "",
+ "title": "Material Id",
+ "type": "string"
+ },
+ "material_title": {
+ "default": "",
+ "title": "Material Title",
+ "type": "string"
+ },
+ "options": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Options"
+ },
+ "question": {
+ "title": "Question",
+ "type": "string"
+ },
+ "question_id": {
+ "title": "Question Id",
+ "type": "string"
+ },
+ "question_type": {
+ "default": "",
+ "title": "Question Type",
+ "type": "string"
+ },
+ "section_id": {
+ "default": "",
+ "title": "Section Id",
+ "type": "string"
+ },
+ "section_title": {
+ "default": "",
+ "title": "Section Title",
+ "type": "string"
+ },
+ "session_id": {
+ "title": "Session Id",
+ "type": "string"
+ },
+ "source": {
+ "default": "deep_question",
+ "enum": [
+ "deep_question",
+ "mastery_path",
+ "immersive_reading",
+ "book"
+ ],
+ "title": "Source",
+ "type": "string"
+ },
+ "turn_id": {
+ "default": "",
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "user_answer": {
+ "default": "",
+ "title": "User Answer",
+ "type": "string"
+ },
+ "user_answer_images": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/components/schemas/AnswerImageUpload"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User Answer Images"
+ }
+ },
+ "required": [
+ "session_id",
+ "question_id",
+ "question"
+ ],
+ "title": "UpsertEntryRequest",
+ "type": "object"
+ },
+ "UrlImportRequest": {
+ "properties": {
+ "urls": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "title": "Urls",
+ "type": "array"
+ },
+ "workspace_id": {
+ "default": "",
+ "title": "Workspace Id",
+ "type": "string"
+ },
+ "workspace_title": {
+ "default": "",
+ "title": "Workspace Title",
+ "type": "string"
+ }
+ },
+ "required": [
+ "urls"
+ ],
+ "title": "UrlImportRequest",
+ "type": "object"
+ },
+ "UserInfo": {
+ "description": "Single user record returned by the GET /users and /profile endpoints.",
+ "properties": {
+ "avatar": {
+ "default": "",
+ "title": "Avatar",
+ "type": "string"
+ },
+ "created_at": {
+ "title": "Created At",
+ "type": "string"
+ },
+ "disabled": {
+ "default": false,
+ "title": "Disabled",
+ "type": "boolean"
+ },
+ "id": {
+ "default": "",
+ "title": "Id",
+ "type": "string"
+ },
+ "preset": {
+ "default": "standard",
+ "enum": [
+ "standard",
+ "learner",
+ "custom"
+ ],
+ "title": "Preset",
+ "type": "string"
+ },
+ "role": {
+ "title": "Role",
+ "type": "string"
+ },
+ "username": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ "required": [
+ "username",
+ "role",
+ "created_at"
+ ],
+ "title": "UserInfo",
+ "type": "object"
+ },
+ "ValidationError": {
+ "properties": {
+ "ctx": {
+ "title": "Context",
+ "type": "object"
+ },
+ "input": {
+ "title": "Input"
+ },
+ "loc": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ }
+ ]
+ },
+ "title": "Location",
+ "type": "array"
+ },
+ "msg": {
+ "title": "Message",
+ "type": "string"
+ },
+ "type": {
+ "title": "Error Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "loc",
+ "msg",
+ "type"
+ ],
+ "title": "ValidationError",
+ "type": "object"
+ },
+ "VideoLearningSettingsRequest": {
+ "properties": {
+ "default_provider": {
+ "default": "youtube",
+ "maxLength": 32,
+ "title": "Default Provider",
+ "type": "string"
+ },
+ "invidious": {
+ "$ref": "#/components/schemas/InvidiousSettings"
+ },
+ "version": {
+ "default": 1,
+ "title": "Version",
+ "type": "integer"
+ },
+ "youtube": {
+ "$ref": "#/components/schemas/YouTubeSettings"
+ }
+ },
+ "title": "VideoLearningSettingsRequest",
+ "type": "object"
+ },
+ "VoiceAutoplayUpdate": {
+ "properties": {
+ "voice_autoplay": {
+ "title": "Voice Autoplay",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "voice_autoplay"
+ ],
+ "title": "VoiceAutoplayUpdate",
+ "type": "object"
+ },
+ "WebSourceInfo": {
+ "properties": {
+ "added_at": {
+ "default": "",
+ "title": "Added At",
+ "type": "string"
+ },
+ "enabled": {
+ "default": true,
+ "title": "Enabled",
+ "type": "boolean"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "last_sync_error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Last Sync Error"
+ },
+ "last_sync_status": {
+ "default": "pending",
+ "title": "Last Sync Status",
+ "type": "string"
+ },
+ "last_synced_at": {
+ "default": "",
+ "title": "Last Synced At",
+ "type": "string"
+ },
+ "max_depth": {
+ "default": 3,
+ "title": "Max Depth",
+ "type": "integer"
+ },
+ "max_pages": {
+ "default": 200,
+ "title": "Max Pages",
+ "type": "integer"
+ },
+ "navigation": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Navigation"
+ },
+ "page_count": {
+ "default": 0,
+ "title": "Page Count",
+ "type": "integer"
+ },
+ "url": {
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "url"
+ ],
+ "title": "WebSourceInfo",
+ "type": "object"
+ },
+ "WhiteboardPinRequest": {
+ "properties": {
+ "event_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "title": "Event Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "event_id"
+ ],
+ "title": "WhiteboardPinRequest",
+ "type": "object"
+ },
+ "WorkspaceCreateRequest": {
+ "properties": {
+ "description": {
+ "default": "",
+ "maxLength": 2000,
+ "title": "Description",
+ "type": "string"
+ },
+ "material_ids": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 100,
+ "title": "Material Ids",
+ "type": "array"
+ },
+ "title": {
+ "default": "Untitled collection",
+ "maxLength": 300,
+ "title": "Title",
+ "type": "string"
+ }
+ },
+ "title": "WorkspaceCreateRequest",
+ "type": "object"
+ },
+ "WorkspaceMaterialRequest": {
+ "properties": {
+ "make_active": {
+ "default": false,
+ "title": "Make Active",
+ "type": "boolean"
+ },
+ "material_id": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "material_id"
+ ],
+ "title": "WorkspaceMaterialRequest",
+ "type": "object"
+ },
+ "WorkspaceReorderRequest": {
+ "properties": {
+ "material_ids": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "title": "Material Ids",
+ "type": "array"
+ }
+ },
+ "required": [
+ "material_ids"
+ ],
+ "title": "WorkspaceReorderRequest",
+ "type": "object"
+ },
+ "WorkspaceUpdateRequest": {
+ "properties": {
+ "description": {
+ "anyOf": [
+ {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description"
+ },
+ "title": {
+ "anyOf": [
+ {
+ "maxLength": 300,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Title"
+ }
+ },
+ "title": "WorkspaceUpdateRequest",
+ "type": "object"
+ },
+ "YouTubeSettings": {
+ "properties": {
+ "transcript_provider": {
+ "default": "youtube_transcript_api",
+ "maxLength": 64,
+ "title": "Transcript Provider",
+ "type": "string"
+ }
+ },
+ "title": "YouTubeSettings",
+ "type": "object"
+ },
+ "deeptutor__api__routers__book__ProgressRequest": {
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "page_id": {
+ "title": "Page Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "book_id",
+ "page_id"
+ ],
+ "title": "ProgressRequest",
+ "type": "object"
+ },
+ "deeptutor__api__routers__video_learning__ProgressRequest": {
+ "properties": {
+ "duration_seconds": {
+ "default": 0,
+ "maximum": 86400.0,
+ "minimum": 0.0,
+ "title": "Duration Seconds",
+ "type": "number"
+ },
+ "time_seconds": {
+ "maximum": 86400.0,
+ "minimum": 0.0,
+ "title": "Time Seconds",
+ "type": "number"
+ }
+ },
+ "required": [
+ "time_seconds"
+ ],
+ "title": "ProgressRequest",
+ "type": "object"
+ }
+ }
+ },
+ "info": {
+ "title": "DeepTutor API",
+ "version": "1.0.0"
+ },
+ "openapi": "3.1.0",
+ "paths": {
+ "/": {
+ "get": {
+ "operationId": "root__get",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "summary": "Root"
+ }
+ },
+ "/api/attachments/{session_id}/{attachment_id}/{filename}": {
+ "get": {
+ "description": "Serve a previously uploaded chat attachment.\n\nResponds with ``Content-Disposition: inline`` so browsers preview PDFs\nand images directly in an ``<iframe>`` / ``<img>``. For unknown types\nthe browser still falls back to download, which is fine for the\ndrawer's \"Download\" button path.",
+ "operationId": "get_attachment_api_attachments__session_id___attachment_id___filename__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "attachment_id",
+ "required": true,
+ "schema": {
+ "title": "Attachment Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "filename",
+ "required": true,
+ "schema": {
+ "title": "Filename",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Attachment",
+ "tags": [
+ "attachments"
+ ]
+ }
+ },
+ "/api/outputs/{output_path}": {
+ "get": {
+ "description": "Serve one allowlisted artifact from the authenticated user's reach.",
+ "operationId": "read_output_api_outputs__output_path__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "output_path",
+ "required": true,
+ "schema": {
+ "title": "Output Path",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Read Output",
+ "tags": [
+ "outputs"
+ ]
+ },
+ "head": {
+ "description": "Serve one allowlisted artifact from the authenticated user's reach.",
+ "operationId": "read_output_api_outputs__output_path__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "output_path",
+ "required": true,
+ "schema": {
+ "title": "Output Path",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Read Output",
+ "tags": [
+ "outputs"
+ ]
+ }
+ },
+ "/api/v1/agent-config/agents": {
+ "get": {
+ "description": "Get agent UI configuration.\n\nReturns:\n Dict mapping agent type to UI metadata (icon, color, label_key)",
+ "operationId": "get_agent_config_api_v1_agent_config_agents_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Agent Config",
+ "tags": [
+ "agent-config"
+ ]
+ }
+ },
+ "/api/v1/agent-config/agents/{agent_type}": {
+ "get": {
+ "description": "Get UI configuration for a specific agent.\n\nArgs:\n agent_type: Agent type (solve, question, research, etc.)\n\nReturns:\n Agent UI metadata or 404 if not found",
+ "operationId": "get_single_agent_config_api_v1_agent_config_agents__agent_type__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "agent_type",
+ "required": true,
+ "schema": {
+ "title": "Agent Type",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Single Agent Config",
+ "tags": [
+ "agent-config"
+ ]
+ }
+ },
+ "/api/v1/auth/avatar/{user_id}": {
+ "get": {
+ "description": "Serve a stored avatar image. Any authenticated user may view avatars\n(they appear in the admin table and next to the viewer's own profile).",
+ "operationId": "get_avatar_image_api_v1_auth_avatar__user_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "user_id",
+ "required": true,
+ "schema": {
+ "title": "User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Avatar Image",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/device-login": {
+ "post": {
+ "description": "Exchange a device pairing code and PIN for the account's normal cookie.",
+ "operationId": "device_login_api_v1_auth_device_login_post",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeviceLoginRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Device Login Api V1 Auth Device Login Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Device Login",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/device/heartbeat": {
+ "post": {
+ "description": "Refresh a device lease and account bounded daily usage.",
+ "operationId": "device_heartbeat_api_v1_auth_device_heartbeat_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Device Heartbeat Api V1 Auth Device Heartbeat Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Device Heartbeat",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/devices": {
+ "get": {
+ "description": "List local device credential metadata without credential secrets.",
+ "operationId": "list_devices_api_v1_auth_devices_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "user_id",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User Id"
+ }
+ },
+ {
+ "in": "query",
+ "name": "include_revoked",
+ "required": false,
+ "schema": {
+ "default": false,
+ "title": "Include Revoked",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Devices Api V1 Auth Devices Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Devices",
+ "tags": [
+ "auth"
+ ]
+ },
+ "post": {
+ "description": "Issue a revocable device credential for an ordinary local account.",
+ "operationId": "issue_device_api_v1_auth_devices_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeviceCredentialCreateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Issue Device Api V1 Auth Devices Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Issue Device",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/devices/{device_credential_id}": {
+ "delete": {
+ "operationId": "revoke_device_api_v1_auth_devices__device_credential_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "device_credential_id",
+ "required": true,
+ "schema": {
+ "title": "Device Credential Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Revoke Device Api V1 Auth Devices Device Credential Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Revoke Device",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/is_first_user": {
+ "get": {
+ "description": "Return whether the user store is empty (used by the register UI).",
+ "operationId": "check_is_first_user_api_v1_auth_is_first_user_get",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Check Is First User Api V1 Auth Is First User Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "summary": "Check Is First User",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/login": {
+ "post": {
+ "description": "Validate credentials and set a JWT cookie.",
+ "operationId": "login_api_v1_auth_login_post",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LoginRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Login Api V1 Auth Login Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Login",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/logout": {
+ "post": {
+ "description": "Clear the JWT cookie.\n\nDeletion attributes mirror ``login`` structurally via ``_cookie_attrs()``\n(see the rationale there and #623).",
+ "operationId": "logout_api_v1_auth_logout_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Logout Api V1 Auth Logout Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "summary": "Logout",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/openai-codex/callback": {
+ "get": {
+ "operationId": "receive_codex_oauth_callback_api_v1_auth_openai_codex_callback_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "code",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Code"
+ }
+ },
+ {
+ "in": "query",
+ "name": "state",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "State"
+ }
+ },
+ {
+ "in": "query",
+ "name": "error",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Error"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Receive Codex Oauth Callback",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/profile": {
+ "get": {
+ "description": "Return the current user's own account info.",
+ "operationId": "get_profile_api_v1_auth_profile_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Profile",
+ "tags": [
+ "auth"
+ ]
+ },
+ "put": {
+ "description": "Update the current user's own avatar marker (icon choice or reset).\n\nOnly the validated ``icon:<name>:<color>`` form (or empty string) is\naccepted here; ``img:`` markers are owned by the upload endpoint.",
+ "operationId": "update_profile_api_v1_auth_profile_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateProfileRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Profile Api V1 Auth Profile Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Profile",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/profile/avatar": {
+ "delete": {
+ "description": "Remove the current user's uploaded avatar image and reset the marker.",
+ "operationId": "remove_avatar_api_v1_auth_profile_avatar_delete",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Remove Avatar Api V1 Auth Profile Avatar Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Avatar",
+ "tags": [
+ "auth"
+ ]
+ },
+ "put": {
+ "description": "Upload an avatar image for the current user.\n\nThe client is expected to crop/resize before uploading; the server only\nenforces a size cap and validates the format by magic bytes. Not available\nin PocketBase mode (those identities have no local user record).",
+ "operationId": "upload_avatar_api_v1_auth_profile_avatar_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_upload_avatar_api_v1_auth_profile_avatar_put"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Upload Avatar Api V1 Auth Profile Avatar Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Upload Avatar",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/profile/learner-profile": {
+ "get": {
+ "description": "Return the authenticated learner's own profile.",
+ "operationId": "get_current_learner_profile_api_v1_auth_profile_learner_profile_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Current Learner Profile Api V1 Auth Profile Learner Profile Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Current Learner Profile",
+ "tags": [
+ "auth"
+ ]
+ },
+ "put": {
+ "description": "Update only the authenticated learner's own profile.",
+ "operationId": "put_current_learner_profile_api_v1_auth_profile_learner_profile_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LearnerProfileRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Put Current Learner Profile Api V1 Auth Profile Learner Profile Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put Current Learner Profile",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/register": {
+ "post": {
+ "description": "Bootstrap-only registration.\n\nPublic endpoint that creates the *first* admin account when the user store\nis empty. Once an admin exists, this endpoint is closed; further accounts\nmust be created by an admin via ``POST /api/v1/auth/users``.\n\nOnly available when AUTH_ENABLED=true.",
+ "operationId": "register_api_v1_auth_register_post",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RegisterRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Register Api V1 Auth Register Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Register",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/status": {
+ "get": {
+ "description": "Return whether auth is enabled and whether the current request is authenticated.",
+ "operationId": "auth_status_api_v1_auth_status_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthStatusResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Auth Status",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/users": {
+ "get": {
+ "description": "List all registered users. Requires admin role.",
+ "operationId": "get_users_api_v1_auth_users_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/UserInfo"
+ },
+ "title": "Response Get Users Api V1 Auth Users Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Users",
+ "tags": [
+ "auth"
+ ]
+ },
+ "post": {
+ "description": "Admin-only: create a new user account.\n\nReplaces the public ``/register`` flow once the first admin exists. The\nnew account is always created with role=``user``; admins can promote\nlater via ``PUT /users/{username}/role``.",
+ "operationId": "admin_create_user_api_v1_auth_users_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AdminCreateUserRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Admin Create User Api V1 Auth Users Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Admin Create User",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/users/{username}": {
+ "delete": {
+ "description": "Delete a user. Admins cannot delete their own account.",
+ "operationId": "remove_user_api_v1_auth_users__username__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "username",
+ "required": true,
+ "schema": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Remove User Api V1 Auth Users Username Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove User",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/users/{username}/learner-profile": {
+ "get": {
+ "description": "Return the structured profile managed for an ordinary learner.",
+ "operationId": "get_learner_profile_api_v1_auth_users__username__learner_profile_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "username",
+ "required": true,
+ "schema": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Learner Profile Api V1 Auth Users Username Learner Profile Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Learner Profile",
+ "tags": [
+ "auth"
+ ]
+ },
+ "put": {
+ "operationId": "put_learner_profile_api_v1_auth_users__username__learner_profile_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "username",
+ "required": true,
+ "schema": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LearnerProfileRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Put Learner Profile Api V1 Auth Users Username Learner Profile Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put Learner Profile",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/auth/users/{username}/role": {
+ "put": {
+ "description": "Change a user's role. Admins cannot change their own role.",
+ "operationId": "update_user_role_api_v1_auth_users__username__role_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "username",
+ "required": true,
+ "schema": {
+ "title": "Username",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SetRoleRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update User Role Api V1 Auth Users Username Role Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update User Role",
+ "tags": [
+ "auth"
+ ]
+ }
+ },
+ "/api/v1/book/books": {
+ "get": {
+ "operationId": "list_books_api_v1_book_books_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Books Api V1 Book Books Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Books",
+ "tags": [
+ "book"
+ ]
+ },
+ "post": {
+ "description": "Stage 1: capture inputs + run IdeationAgent.",
+ "operationId": "create_book_api_v1_book_books_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateBookRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Book Api V1 Book Books Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Book",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/change-block-type": {
+ "post": {
+ "operationId": "change_block_type_api_v1_book_books_change_block_type_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChangeBlockTypeRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Change Block Type Api V1 Book Books Change Block Type Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Change Block Type",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/compile-page": {
+ "post": {
+ "description": "Drive the compiler for the page the user just opened (current-page priority).",
+ "operationId": "compile_page_api_v1_book_books_compile_page_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CompilePageRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Compile Page Api V1 Book Books Compile Page Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Compile Page",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/confirm-proposal": {
+ "post": {
+ "description": "Stage 2: user confirms (and possibly edits) the proposal → SpineAgent.",
+ "operationId": "confirm_proposal_api_v1_book_books_confirm_proposal_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConfirmProposalRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Confirm Proposal Api V1 Book Books Confirm Proposal Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Confirm Proposal",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/confirm-spine": {
+ "post": {
+ "description": "Stage 3: user confirms the spine → create pending page shells.",
+ "operationId": "confirm_spine_api_v1_book_books_confirm_spine_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConfirmSpineRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Confirm Spine Api V1 Book Books Confirm Spine Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Confirm Spine",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/deep-dive": {
+ "post": {
+ "operationId": "deep_dive_api_v1_book_books_deep_dive_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeepDiveRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Deep Dive Api V1 Book Books Deep Dive Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Deep Dive",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/delete-block": {
+ "post": {
+ "operationId": "delete_block_api_v1_book_books_delete_block_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeleteBlockRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Block Api V1 Book Books Delete Block Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Block",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/insert-block": {
+ "post": {
+ "operationId": "insert_block_api_v1_book_books_insert_block_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InsertBlockRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Insert Block Api V1 Book Books Insert Block Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Insert Block",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/move-block": {
+ "post": {
+ "operationId": "move_block_api_v1_book_books_move_block_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MoveBlockRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Move Block Api V1 Book Books Move Block Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Move Block",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/page-chat-session": {
+ "post": {
+ "operationId": "set_page_chat_session_api_v1_book_books_page_chat_session_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PageChatSessionRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Set Page Chat Session Api V1 Book Books Page Chat Session Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Set Page Chat Session",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/progress/bookmark": {
+ "post": {
+ "operationId": "toggle_bookmark_api_v1_book_books_progress_bookmark_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/deeptutor__api__routers__book__ProgressRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Toggle Bookmark Api V1 Book Books Progress Bookmark Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Toggle Bookmark",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/progress/visit": {
+ "post": {
+ "description": "Remember the reader's position so the book can be resumed later.",
+ "operationId": "mark_visited_api_v1_book_books_progress_visit_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/deeptutor__api__routers__book__ProgressRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Mark Visited Api V1 Book Books Progress Visit Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Mark Visited",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/quiz-attempt": {
+ "post": {
+ "operationId": "quiz_attempt_api_v1_book_books_quiz_attempt_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/QuizAttemptRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Quiz Attempt Api V1 Book Books Quiz Attempt Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Quiz Attempt",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/rebuild": {
+ "post": {
+ "operationId": "rebuild_book_api_v1_book_books_rebuild_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RebuildBookRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Rebuild Book Api V1 Book Books Rebuild Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Rebuild Book",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/regenerate-block": {
+ "post": {
+ "operationId": "regenerate_block_api_v1_book_books_regenerate_block_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RegenerateBlockRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Regenerate Block Api V1 Book Books Regenerate Block Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Regenerate Block",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/resume": {
+ "post": {
+ "description": "Re-queue unfinished pages without discarding what already compiled.",
+ "operationId": "resume_book_api_v1_book_books_resume_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ResumeBookRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Resume Book Api V1 Book Books Resume Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Resume Book",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/supplement": {
+ "post": {
+ "operationId": "supplement_api_v1_book_books_supplement_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SupplementRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Supplement Api V1 Book Books Supplement Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Supplement",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/update-block": {
+ "post": {
+ "description": "Edit a block's prose in place.\n\nScoped deliberately narrow — title and body only. Fixing a typo shouldn't\nrequire regenerating a whole block and hoping for a better roll, but a book\nis not a document editor either; substantial rewrites belong in Co-Writer.",
+ "operationId": "update_block_api_v1_book_books_update_block_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateBlockRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Block Api V1 Book Books Update Block Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Block",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}": {
+ "delete": {
+ "operationId": "delete_book_api_v1_book_books__book_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Book Api V1 Book Books Book Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Book",
+ "tags": [
+ "book"
+ ]
+ },
+ "get": {
+ "operationId": "get_book_api_v1_book_books__book_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "include_blocks",
+ "required": false,
+ "schema": {
+ "default": true,
+ "title": "Include Blocks",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Book Api V1 Book Books Book Id Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Book",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}/export": {
+ "get": {
+ "description": "Download the whole book as a single Markdown file.",
+ "operationId": "export_book_api_v1_book_books__book_id__export_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Export Book",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}/health": {
+ "get": {
+ "operationId": "book_health_api_v1_book_books__book_id__health_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Book Health Api V1 Book Books Book Id Health Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Book Health",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}/learning-captures": {
+ "get": {
+ "operationId": "list_learning_captures_api_v1_book_books__book_id__learning_captures_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "status",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Status"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Learning Captures Api V1 Book Books Book Id Learning Captures Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Learning Captures",
+ "tags": [
+ "book"
+ ]
+ },
+ "post": {
+ "operationId": "create_learning_capture_api_v1_book_books__book_id__learning_captures_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LearningCaptureCreateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Learning Capture Api V1 Book Books Book Id Learning Captures Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Learning Capture",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}/learning-captures/{capture_id}": {
+ "patch": {
+ "operationId": "update_learning_capture_api_v1_book_books__book_id__learning_captures__capture_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "capture_id",
+ "required": true,
+ "schema": {
+ "title": "Capture Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LearningCaptureUpdateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Learning Capture Api V1 Book Books Book Id Learning Captures Capture Id Patch",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Learning Capture",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}/pages/{page_id}": {
+ "get": {
+ "operationId": "get_page_api_v1_book_books__book_id__pages__page_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "page_id",
+ "required": true,
+ "schema": {
+ "title": "Page Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Page Api V1 Book Books Book Id Pages Page Id Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Page",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}/refresh-fingerprints": {
+ "post": {
+ "description": "Mark the current KB state as seen.\n\n409s while pages the last drift flagged are still awaiting recompilation.\n``force=true`` dismisses them anyway — stale detection over-marks on\npurpose when an anchor cannot be resolved, so the user needs a way out.",
+ "operationId": "refresh_fingerprints_api_v1_book_books__book_id__refresh_fingerprints_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "force",
+ "required": false,
+ "schema": {
+ "default": false,
+ "title": "Force",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "query",
+ "name": "expected_revision",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expected Revision"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Refresh Fingerprints Api V1 Book Books Book Id Refresh Fingerprints Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Refresh Fingerprints",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/books/{book_id}/spine": {
+ "get": {
+ "operationId": "get_spine_api_v1_book_books__book_id__spine_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Spine Api V1 Book Books Book Id Spine Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Spine",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/estimate-basis": {
+ "get": {
+ "description": "Per-chapter generation cost, keyed by content type.\n\nThe spine editor sums this over whatever chapters currently exist, so the\nestimate stays live while the user edits without a request per keystroke —\nand stays honest, because the numbers come from the same templates the\narchitect plans from.",
+ "operationId": "estimate_basis_api_v1_book_estimate_basis_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "depth",
+ "required": false,
+ "schema": {
+ "default": "standard",
+ "title": "Depth",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Estimate Basis Api V1 Book Estimate Basis Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Estimate Basis",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/book/health": {
+ "get": {
+ "operationId": "health_check_api_v1_book_health_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Health Check Api V1 Book Health Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Health Check",
+ "tags": [
+ "book"
+ ]
+ }
+ },
+ "/api/v1/capabilities/registered": {
+ "get": {
+ "description": "Every capability name a turn can be started with, sorted.",
+ "operationId": "list_registered_capabilities_api_v1_capabilities_registered_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "title": "Response List Registered Capabilities Api V1 Capabilities Registered Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Registered Capabilities",
+ "tags": [
+ "capabilities"
+ ]
+ }
+ },
+ "/api/v1/capabilities/settings": {
+ "get": {
+ "operationId": "get_capabilities_settings_endpoint_api_v1_capabilities_settings_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Capabilities Settings Endpoint Api V1 Capabilities Settings Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Capabilities Settings Endpoint",
+ "tags": [
+ "capabilities"
+ ]
+ },
+ "put": {
+ "operationId": "put_capabilities_settings_api_v1_capabilities_settings_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Payload",
+ "type": "object"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Put Capabilities Settings Api V1 Capabilities Settings Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put Capabilities Settings",
+ "tags": [
+ "capabilities"
+ ]
+ }
+ },
+ "/api/v1/chat/sessions": {
+ "get": {
+ "operationId": "list_sessions_api_v1_chat_sessions_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 20,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Sessions",
+ "tags": [
+ "chat"
+ ]
+ }
+ },
+ "/api/v1/chat/sessions/{session_id}": {
+ "delete": {
+ "operationId": "delete_session_api_v1_chat_sessions__session_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Session",
+ "tags": [
+ "chat"
+ ]
+ },
+ "get": {
+ "operationId": "get_session_api_v1_chat_sessions__session_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Session",
+ "tags": [
+ "chat"
+ ]
+ }
+ },
+ "/api/v1/co_writer/automark": {
+ "post": {
+ "description": "AI auto-mark text",
+ "operationId": "auto_mark_text_api_v1_co_writer_automark_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AutoMarkRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AutoMarkResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Auto Mark Text",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/documents": {
+ "get": {
+ "description": "List all Co-Writer documents (summary view, sorted by recency).",
+ "operationId": "list_documents_api_v1_co_writer_documents_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "items": {
+ "$ref": "#/components/schemas/DocumentSummaryResponse"
+ },
+ "type": "array"
+ },
+ "title": "Response List Documents Api V1 Co Writer Documents Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Documents",
+ "tags": [
+ "co_writer"
+ ]
+ },
+ "post": {
+ "description": "Create a new Co-Writer document.",
+ "operationId": "create_document_api_v1_co_writer_documents_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateDocumentRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Document",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/documents/export/docx": {
+ "post": {
+ "operationId": "export_docx_api_v1_co_writer_documents_export_docx_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExportDocxRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Export Docx",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/documents/import/docx": {
+ "post": {
+ "operationId": "import_docx_api_v1_co_writer_documents_import_docx_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_import_docx_api_v1_co_writer_documents_import_docx_post"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Import Docx",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/documents/{doc_id}": {
+ "delete": {
+ "description": "Delete a Co-Writer document.",
+ "operationId": "delete_document_api_v1_co_writer_documents__doc_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "doc_id",
+ "required": true,
+ "schema": {
+ "title": "Doc Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "boolean"
+ },
+ "title": "Response Delete Document Api V1 Co Writer Documents Doc Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Document",
+ "tags": [
+ "co_writer"
+ ]
+ },
+ "get": {
+ "description": "Get a single Co-Writer document by id.",
+ "operationId": "get_document_api_v1_co_writer_documents__doc_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "doc_id",
+ "required": true,
+ "schema": {
+ "title": "Doc Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Document",
+ "tags": [
+ "co_writer"
+ ]
+ },
+ "put": {
+ "description": "Update a Co-Writer document (title and/or content).",
+ "operationId": "update_document_api_v1_co_writer_documents__doc_id__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "doc_id",
+ "required": true,
+ "schema": {
+ "title": "Doc Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateDocumentRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Document",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/edit": {
+ "post": {
+ "operationId": "edit_text_api_v1_co_writer_edit_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EditRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EditResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Edit Text",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/edit_react": {
+ "post": {
+ "operationId": "edit_text_react_api_v1_co_writer_edit_react_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReactEditRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReactEditResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Edit Text React",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/edit_react/stream": {
+ "post": {
+ "operationId": "edit_text_react_stream_api_v1_co_writer_edit_react_stream_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReactEditRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Edit Text React Stream",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/history": {
+ "get": {
+ "description": "Get all operation history",
+ "operationId": "get_history_api_v1_co_writer_history_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get History",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/history/{operation_id}": {
+ "get": {
+ "description": "Get single operation details",
+ "operationId": "get_operation_api_v1_co_writer_history__operation_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "operation_id",
+ "required": true,
+ "schema": {
+ "title": "Operation Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Operation",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/co_writer/tool_calls/{operation_id}": {
+ "get": {
+ "description": "Get tool call details",
+ "operationId": "get_tool_call_api_v1_co_writer_tool_calls__operation_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "operation_id",
+ "required": true,
+ "schema": {
+ "title": "Operation Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Tool Call",
+ "tags": [
+ "co_writer"
+ ]
+ }
+ },
+ "/api/v1/courses": {
+ "get": {
+ "operationId": "list_courses_api_v1_courses_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Courses Api V1 Courses Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Courses",
+ "tags": [
+ "courses"
+ ]
+ },
+ "post": {
+ "operationId": "create_course_api_v1_courses_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateCourseRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Course Api V1 Courses Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Course",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/courses/resource-candidates": {
+ "get": {
+ "operationId": "list_resource_candidates_api_v1_courses_resource_candidates_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Resource Candidates Api V1 Courses Resource Candidates Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Resource Candidates",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/courses/{course_id}": {
+ "delete": {
+ "operationId": "delete_course_api_v1_courses__course_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "course_id",
+ "required": true,
+ "schema": {
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Course Api V1 Courses Course Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Course",
+ "tags": [
+ "courses"
+ ]
+ },
+ "patch": {
+ "operationId": "update_course_api_v1_courses__course_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "course_id",
+ "required": true,
+ "schema": {
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateCourseRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Course Api V1 Courses Course Id Patch",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Course",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/courses/{course_id}/resources": {
+ "post": {
+ "operationId": "attach_course_resource_api_v1_courses__course_id__resources_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "course_id",
+ "required": true,
+ "schema": {
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AttachCourseResourceRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Attach Course Resource Api V1 Courses Course Id Resources Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Attach Course Resource",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/courses/{course_id}/resources/{resource_id}": {
+ "delete": {
+ "operationId": "detach_course_resource_api_v1_courses__course_id__resources__resource_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "course_id",
+ "required": true,
+ "schema": {
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "resource_id",
+ "required": true,
+ "schema": {
+ "title": "Resource Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Detach Course Resource Api V1 Courses Course Id Resources Resource Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Detach Course Resource",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/courses/{course_id}/state": {
+ "get": {
+ "operationId": "get_course_state_api_v1_courses__course_id__state_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "course_id",
+ "required": true,
+ "schema": {
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Course State Api V1 Courses Course Id State Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Course State",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/courses/{course_id}/syllabus": {
+ "put": {
+ "operationId": "set_course_syllabus_api_v1_courses__course_id__syllabus_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "course_id",
+ "required": true,
+ "schema": {
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SetSyllabusRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Set Course Syllabus Api V1 Courses Course Id Syllabus Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Set Course Syllabus",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/courses/{course_id}/syllabus/{unit_id}": {
+ "patch": {
+ "operationId": "update_syllabus_unit_api_v1_courses__course_id__syllabus__unit_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "course_id",
+ "required": true,
+ "schema": {
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "unit_id",
+ "required": true,
+ "schema": {
+ "title": "Unit Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateSyllabusUnitRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Syllabus Unit Api V1 Courses Course Id Syllabus Unit Id Patch",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Syllabus Unit",
+ "tags": [
+ "courses"
+ ]
+ }
+ },
+ "/api/v1/dashboard/recent": {
+ "get": {
+ "operationId": "get_recent_activities_api_v1_dashboard_recent_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 50,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "type",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Type"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Recent Activities",
+ "tags": [
+ "dashboard"
+ ]
+ }
+ },
+ "/api/v1/dashboard/suggestions": {
+ "get": {
+ "description": "The three starting points for the home composer.\n\nReturns immediately, even when the set is stale — regeneration happens\nbehind the response. An empty ``suggestions`` list means there is nothing\nin memory to ground a suggestion in, and the client renders nothing.\n\nNo language parameter: the output language is the learner's own\nmodel-output setting, resolved server-side. See\n:mod:`deeptutor.services.suggestions`.",
+ "operationId": "get_starter_suggestions_api_v1_dashboard_suggestions_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Starter Suggestions",
+ "tags": [
+ "dashboard"
+ ]
+ }
+ },
+ "/api/v1/dashboard/suggestions/refresh": {
+ "post": {
+ "description": "Generate a new set now. Backs the reroll control.\n\nSynchronous, unlike the read: a human clicked and is waiting for a\ndifferent set.",
+ "operationId": "refresh_starter_suggestions_api_v1_dashboard_suggestions_refresh_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Refresh Starter Suggestions",
+ "tags": [
+ "dashboard"
+ ]
+ }
+ },
+ "/api/v1/dashboard/{entry_id}": {
+ "get": {
+ "operationId": "get_activity_entry_api_v1_dashboard__entry_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Activity Entry",
+ "tags": [
+ "dashboard"
+ ]
+ }
+ },
+ "/api/v1/imports/chat-history": {
+ "get": {
+ "operationId": "list_imported_chat_history_api_v1_imports_chat_history_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 50,
+ "maximum": 200,
+ "minimum": 1,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "offset",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Offset",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Imported Chat History Api V1 Imports Chat History Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Imported Chat History",
+ "tags": [
+ "imports"
+ ]
+ },
+ "post": {
+ "operationId": "import_chat_history_api_v1_imports_chat_history_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChatHistoryImportRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Import Chat History Api V1 Imports Chat History Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Import Chat History",
+ "tags": [
+ "imports"
+ ]
+ }
+ },
+ "/api/v1/knowledge/configs": {
+ "get": {
+ "description": "Get all knowledge base configurations from centralized config file.",
+ "operationId": "get_all_kb_configs_api_v1_knowledge_configs_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get All Kb Configs",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/configs/sync": {
+ "post": {
+ "description": "Sync all KB configurations from their metadata.json files to centralized config.",
+ "operationId": "sync_configs_from_metadata_api_v1_knowledge_configs_sync_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Sync Configs From Metadata",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/connect-folder": {
+ "post": {
+ "description": "Mount an existing engine index as a read-only ``linked`` knowledge base.\n\nRe-probes server-side (never trusts the client's verdict), then registers a\npointer to the folder. Retrieval reads the index in place — no copy, no\nre-index. Embedding-mismatch warnings do not block the link (the user may\nswitch embedding models later); a missing/invalid index does.",
+ "operationId": "connect_linked_folder_route_api_v1_knowledge_connect_folder_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConnectFolderRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Connect Linked Folder Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/connect-ima": {
+ "post": {
+ "description": "Connect a Tencent IMA knowledge base as a retrieval-only knowledge base.\n\nRe-probes server-side (never trusts the client's verdict), then registers a\npointer (``type: ima``). Retrieval is offloaded to IMA's ``search_knowledge``\nOpenAPI — no copy, no local index.\n\nCredentials the request omits come from the account-level settings and are\n*not* copied onto the KB, so rotating them there keeps this KB working.",
+ "operationId": "connect_ima_route_api_v1_knowledge_connect_ima_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConnectImaRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Connect Ima Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/connect-lightrag-server": {
+ "post": {
+ "description": "Connect an external LightRAG server as a retrieval-only knowledge base.\n\nRe-probes server-side (never trusts the client's verdict), then registers a\npointer (``type: lightrag_server``). Retrieval is offloaded to the server's\n``/query`` endpoint — no copy, no local index.",
+ "operationId": "connect_lightrag_server_route_api_v1_knowledge_connect_lightrag_server_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConnectLightRagServerRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Connect Lightrag Server Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/connect-marginnote4": {
+ "post": {
+ "description": "Register a connected MarginNote 4 library as a knowledge base.\n\nCreates a ``type: marginnote4`` pointer so the MarginNote capability can\nbind to it on turns where the user selects this KB. When ``db_path`` is\nomitted the capability derives a default SQLite path from the KB name.",
+ "operationId": "connect_marginnote4_api_v1_knowledge_connect_marginnote4_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConnectMarginNote4Request"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Connect Marginnote4",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/connect-obsidian": {
+ "post": {
+ "description": "Connect an existing Obsidian vault as a knowledge base.\n\nRegisters a pointer to the user's vault directory (``type: obsidian``) — no\nupload, no index. The vault must be a directory the server can reach (i.e. a\nlocal/self-hosted deployment); the Obsidian capability reads it live.",
+ "operationId": "connect_obsidian_vault_api_v1_knowledge_connect_obsidian_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConnectObsidianRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Connect Obsidian Vault",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/connect-weknora": {
+ "post": {
+ "description": "Connect a self-hosted WeKnora knowledge base for retrieval only.",
+ "operationId": "connect_weknora_route_api_v1_knowledge_connect_weknora_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConnectWeKnoraRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Connect Weknora Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/create": {
+ "post": {
+ "description": "Create a new knowledge base and initialize it with files.",
+ "operationId": "create_knowledge_base_api_v1_knowledge_create_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_create_knowledge_base_api_v1_knowledge_create_post"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Knowledge Base",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/default": {
+ "get": {
+ "description": "Get the default knowledge base.",
+ "operationId": "get_default_kb_api_v1_knowledge_default_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Default Kb",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/default/{kb_name}": {
+ "put": {
+ "description": "Set the default knowledge base.",
+ "operationId": "set_default_kb_api_v1_knowledge_default__kb_name__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Set Default Kb",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/health": {
+ "get": {
+ "description": "Health check endpoint",
+ "operationId": "health_check_api_v1_knowledge_health_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Health Check",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/list": {
+ "get": {
+ "description": "List all available knowledge bases with their details.",
+ "operationId": "list_knowledge_bases_api_v1_knowledge_list_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/KnowledgeBaseInfo"
+ },
+ "title": "Response List Knowledge Bases Api V1 Knowledge List Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Knowledge Bases",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/list-ima": {
+ "post": {
+ "description": "List IMA knowledge bases without storing or echoing credentials.",
+ "operationId": "list_ima_route_api_v1_knowledge_list_ima_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ListImaRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ListImaResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Ima Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/probe-folder": {
+ "post": {
+ "description": "Inspect a local folder for a ready engine index before linking it.\n\nReturns the probe verdict (ready index? embedding compatible? warnings?) so\nthe UI can present and confirm before any registration happens. Does not\ncreate a knowledge base.",
+ "operationId": "probe_linked_folder_route_api_v1_knowledge_probe_folder_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ProbeFolderRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Probe Linked Folder Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/probe-ima": {
+ "post": {
+ "description": "Test-connect to a Tencent IMA knowledge base before binding a KB to it.\n\nReturns the verdict (credentials accepted? does the library id resolve, and\nwhat is it called?) so the UI can confirm before any registration happens.\nCreates nothing.",
+ "operationId": "probe_ima_route_api_v1_knowledge_probe_ima_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ProbeImaRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Probe Ima Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/probe-lightrag-server": {
+ "post": {
+ "description": "Test-connect to an external LightRAG server before binding a KB to it.\n\nReturns the verdict (reachable? is it a LightRAG server? API key accepted?)\nso the UI can confirm before any registration happens. Creates nothing.",
+ "operationId": "probe_lightrag_server_route_api_v1_knowledge_probe_lightrag_server_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ProbeLightRagServerRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Probe Lightrag Server Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/probe-weknora": {
+ "post": {
+ "description": "Validate a WeKnora server and knowledge-base binding without registering.",
+ "operationId": "probe_weknora_route_api_v1_knowledge_probe_weknora_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ProbeWeKnoraRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Probe Weknora Route",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/active-model": {
+ "put": {
+ "description": "Set the active model for an engine's required kind, applied immediately.\n\nThis is the same active selection the model catalog manages; switching it\nhere affects every engine that uses that kind (the active model is global).",
+ "operationId": "set_rag_active_model_api_v1_knowledge_rag_pipelines_active_model_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ActiveModelUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Set Rag Active Model",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/graphrag/config": {
+ "get": {
+ "description": "Read GraphRAG's query knobs (response style, community granularity).",
+ "operationId": "get_graphrag_pipeline_config_api_v1_knowledge_rag_pipelines_graphrag_config_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Graphrag Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "put": {
+ "description": "Persist GraphRAG's query knobs. Takes effect on the next query.",
+ "operationId": "update_graphrag_pipeline_config_api_v1_knowledge_rag_pipelines_graphrag_config_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GraphRagConfigUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Graphrag Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/graphrag/model-compatibility": {
+ "post": {
+ "description": "Test GraphRAG structured output without changing the active chat model.",
+ "operationId": "test_graphrag_model_compatibility_api_v1_knowledge_rag_pipelines_graphrag_model_compatibility_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GraphRagModelCompatibilityRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Graphrag Model Compatibility",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/ima/config": {
+ "get": {
+ "description": "Read the account-level IMA credentials (key redacted to a boolean).",
+ "operationId": "get_ima_pipeline_config_api_v1_knowledge_rag_pipelines_ima_config_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Ima Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "put": {
+ "description": "Persist the account-level IMA Client ID / API key.",
+ "operationId": "update_ima_pipeline_config_api_v1_knowledge_rag_pipelines_ima_config_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ImaConfigUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Ima Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/lightrag-server/config": {
+ "get": {
+ "description": "Read reusable server defaults with the API key redacted.",
+ "operationId": "get_lightrag_server_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_server_config_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Lightrag Server Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "put": {
+ "description": "Persist reusable defaults without changing existing KB bindings.",
+ "operationId": "update_lightrag_server_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_server_config_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LightRagServerConfigUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Lightrag Server Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/lightrag/config": {
+ "get": {
+ "description": "Read LightRAG's query knobs plus its indexing concurrency/extraction knobs.",
+ "operationId": "get_lightrag_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_config_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Lightrag Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "put": {
+ "description": "Persist LightRAG's knobs.\n\nQuery knobs (``top_k``, ``response_type``) take effect on the next query;\nthe indexing knobs shape how a KB is built, so they apply to the next\nbuild or rebuild.",
+ "operationId": "update_lightrag_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_config_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LightRagConfigUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Lightrag Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/llamaindex/config": {
+ "get": {
+ "description": "Read the LlamaIndex engine's retrieval + chunking knobs.",
+ "operationId": "get_llamaindex_pipeline_config_api_v1_knowledge_rag_pipelines_llamaindex_config_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Llamaindex Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "put": {
+ "description": "Persist the LlamaIndex engine knobs.\n\nRetrieval knobs take effect on the next query; indexing knobs only affect\ndocuments processed after the save.",
+ "operationId": "update_llamaindex_pipeline_config_api_v1_knowledge_rag_pipelines_llamaindex_config_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LlamaIndexConfigUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Llamaindex Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/model-options": {
+ "get": {
+ "description": "List configured models (secret-free) for the requested model kinds.",
+ "operationId": "get_rag_model_options_api_v1_knowledge_rag_pipelines_model_options_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "kinds",
+ "required": false,
+ "schema": {
+ "default": "llm,embedding",
+ "title": "Kinds",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Rag Model Options",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/pageindex/config": {
+ "get": {
+ "description": "Read the PageIndex credential state (key redacted to a boolean).",
+ "operationId": "get_pageindex_pipeline_config_api_v1_knowledge_rag_pipelines_pageindex_config_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Pageindex Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "put": {
+ "description": "Persist the deployment-level PageIndex Cloud credential.",
+ "operationId": "update_pageindex_pipeline_config_api_v1_knowledge_rag_pipelines_pageindex_config_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PageIndexConfigUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Pageindex Pipeline Config",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-pipelines/{provider}/preflight": {
+ "get": {
+ "description": "Check whether ``provider`` can run in the current environment.\n\nReturns ``{ok, checks:[{key,label,ok,detail,optional}]}`` — package\ninstall, API key, and active model requirements per engine.",
+ "operationId": "get_rag_pipeline_preflight_api_v1_knowledge_rag_pipelines__provider__preflight_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "provider",
+ "required": true,
+ "schema": {
+ "title": "Provider",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Rag Pipeline Preflight",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-providers": {
+ "get": {
+ "description": "Get list of available RAG providers (with the active per-engine mode).",
+ "operationId": "get_rag_providers_api_v1_knowledge_rag_providers_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Rag Providers",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/rag-providers/{provider}/mode": {
+ "put": {
+ "description": "Persist the default retrieval mode for a mode-aware engine.\n\nThe mode must be one the engine supports; a KB's own ``search_mode`` still\noverrides this per-KB default.",
+ "operationId": "set_rag_provider_mode_api_v1_knowledge_rag_providers__provider__mode_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "provider",
+ "required": true,
+ "schema": {
+ "title": "Provider",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ProviderModeUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Set Rag Provider Mode",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/supported-file-types": {
+ "get": {
+ "description": "Return the current upload policy so the web client stays in sync.",
+ "operationId": "get_supported_file_types_api_v1_knowledge_supported_file_types_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SupportedFileTypesInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Supported File Types",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/tasks/{task_id}/stream": {
+ "get": {
+ "description": "Stream task-specific logs for knowledge-base operations.",
+ "operationId": "stream_task_logs_api_v1_knowledge_tasks__task_id__stream_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "task_id",
+ "required": true,
+ "schema": {
+ "title": "Task Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Stream Task Logs",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}": {
+ "delete": {
+ "description": "Delete a knowledge base.",
+ "operationId": "delete_knowledge_base_api_v1_knowledge__kb_name__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Knowledge Base",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "get": {
+ "description": "Get detailed info for a specific KB.",
+ "operationId": "get_knowledge_base_details_api_v1_knowledge__kb_name__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Knowledge Base Details",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/config": {
+ "get": {
+ "description": "Get configuration for a specific knowledge base.",
+ "operationId": "get_kb_config_api_v1_knowledge__kb_name__config_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Kb Config",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "put": {
+ "description": "Update configuration for a specific knowledge base.",
+ "operationId": "update_kb_config_api_v1_knowledge__kb_name__config_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Config",
+ "type": "object"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Kb Config",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/file-preview-text/{filename}": {
+ "get": {
+ "description": "Serve extracted plain text for a raw KB document preview.",
+ "operationId": "serve_kb_raw_file_text_preview_api_v1_knowledge__kb_name__file_preview_text__filename__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "filename",
+ "required": true,
+ "schema": {
+ "title": "Filename",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Serve Kb Raw File Text Preview",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/files": {
+ "get": {
+ "description": "List raw documents under <kb>/raw/, recursing into folders.\n\n``name`` is the POSIX path relative to ``raw/`` so the web client can\nrebuild the folder tree. Folders (including empty ones) are returned as\n``type: \"folder\"`` entries so user-created/uploaded structure shows even\nbefore it holds any files. Folders are purely organizational and have no\neffect on indexing or retrieval.",
+ "operationId": "list_kb_raw_files_api_v1_knowledge__kb_name__files_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Kb Raw Files",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/files/move": {
+ "post": {
+ "description": "Move a file/folder between organizational folders (display only).\n\nMoving never re-indexes: folders don't affect retrieval, so this is a pure\nfilesystem relocation under ``raw/``.",
+ "operationId": "move_kb_file_api_v1_knowledge__kb_name__files_move_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MoveFilePayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Move Kb File",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/files/{filename}": {
+ "delete": {
+ "description": "Remove a single raw document from a knowledge base.\n\nUnlike deleting the whole KB, this works while the KB is in an *error*\nstate — that is the point: a file that failed to parse (e.g. one that\nexceeds the cloud parser's page limit) can be dropped without deleting and\nrebuilding everything. Connected (read-only) and legacy KBs are still\nrejected. Vectors are not pruned here; ``was_indexed`` tells the caller\nwhether a re-index is needed to purge the file from retrieval.",
+ "operationId": "delete_kb_file_api_v1_knowledge__kb_name__files__filename__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "filename",
+ "required": true,
+ "schema": {
+ "title": "Filename",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Kb File",
+ "tags": [
+ "knowledge"
+ ]
+ },
+ "get": {
+ "description": "Serve a single raw document for inline preview / download.\n\nResolution is sandboxed to the KB's raw/ directory; any path that\nescapes via traversal yields 403.",
+ "operationId": "serve_kb_raw_file_api_v1_knowledge__kb_name__files__filename__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "filename",
+ "required": true,
+ "schema": {
+ "title": "Filename",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Serve Kb Raw File",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/folders": {
+ "post": {
+ "description": "Create an (organizational) folder under <kb>/raw/. No retrieval effect.",
+ "operationId": "create_kb_folder_api_v1_knowledge__kb_name__folders_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateFolderPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Kb Folder",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/github-source": {
+ "post": {
+ "operationId": "add_github_source_api_v1_knowledge__kb_name__github_source_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddGitHubSourceRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GitHubSourceInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Add Github Source",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/github-source/{source_id}": {
+ "delete": {
+ "operationId": "remove_github_source_api_v1_knowledge__kb_name__github_source__source_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "source_id",
+ "required": true,
+ "schema": {
+ "title": "Source Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Github Source",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/github-sources": {
+ "get": {
+ "operationId": "get_github_sources_api_v1_knowledge__kb_name__github_sources_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/GitHubSourceInfo"
+ },
+ "title": "Response Get Github Sources Api V1 Knowledge Kb Name Github Sources Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Github Sources",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/link-folder": {
+ "post": {
+ "description": "Link a local folder to a knowledge base.\n\nThis allows syncing documents from a local folder (which can be\nsynced with SharePoint, Google Drive, OneLake, etc.) to the KB.\n\nThe folder path supports:\n- Absolute paths: /Users/name/Documents or C:\\Users\\name\\Documents\n- Home directory: ~/Documents\n- Relative paths (resolved from server working directory)",
+ "operationId": "link_folder_api_v1_knowledge__kb_name__link_folder_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LinkFolderRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LinkedFolderInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Link Folder",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/linked-folders": {
+ "get": {
+ "description": "Get list of linked folders for a knowledge base.",
+ "operationId": "get_linked_folders_api_v1_knowledge__kb_name__linked_folders_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/LinkedFolderInfo"
+ },
+ "title": "Response Get Linked Folders Api V1 Knowledge Kb Name Linked Folders Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Linked Folders",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/linked-folders/{folder_id}": {
+ "delete": {
+ "description": "Unlink a folder from a knowledge base.",
+ "operationId": "unlink_folder_api_v1_knowledge__kb_name__linked_folders__folder_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "folder_id",
+ "required": true,
+ "schema": {
+ "title": "Folder Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Unlink Folder",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/progress": {
+ "get": {
+ "description": "Get initialization progress for a knowledge base",
+ "operationId": "get_progress_api_v1_knowledge__kb_name__progress_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Progress",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/progress/clear": {
+ "post": {
+ "description": "Clear progress file for a knowledge base (useful for stuck states)",
+ "operationId": "clear_progress_api_v1_knowledge__kb_name__progress_clear_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Clear Progress",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/reindex": {
+ "post": {
+ "description": "Re-index ``kb_name`` through its bound RAG provider.\n\nLlamaIndex still keys versions by the active embedding model. The other\nproviders keep synthetic provider-keyed versions, so they should rebuild\nwithout requiring an embedding-signature precheck.",
+ "operationId": "reindex_knowledge_base_api_v1_knowledge__kb_name__reindex_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reindex Knowledge Base",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/retry": {
+ "post": {
+ "description": "Retry a failed KB initialization/indexing run from its stored raw files.",
+ "operationId": "retry_knowledge_base_api_v1_knowledge__kb_name__retry_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Retry Knowledge Base",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/sync-folder/{folder_id}": {
+ "post": {
+ "description": "Sync files from a linked folder to the knowledge base.\n\nThis scans the linked folder for supported documents and processes\nany new files that haven't been added yet.",
+ "operationId": "sync_folder_api_v1_knowledge__kb_name__sync_folder__folder_id__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "folder_id",
+ "required": true,
+ "schema": {
+ "title": "Folder Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Sync Folder",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/sync-github": {
+ "post": {
+ "operationId": "sync_github_sources_api_v1_knowledge__kb_name__sync_github_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Sync Github Sources",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/sync-web": {
+ "post": {
+ "description": "Run one bounded crawl-and-sync pass for every enabled web source.",
+ "operationId": "sync_web_sources_api_v1_knowledge__kb_name__sync_web_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Sync Web Sources",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/upload": {
+ "post": {
+ "description": "Upload files to a knowledge base and process them in background.\n\n``dest_subdir`` places the whole batch under that folder inside the KB.\nA browser folder pick reports each file's path relative to the chosen\ndirectory, so the directory's own ancestors never reach the server; this\nis how a caller adding one subtree at a time re-attaches it where it\nbelongs instead of piling every batch at the root (#866).",
+ "operationId": "upload_files_api_v1_knowledge__kb_name__upload_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_upload_files_api_v1_knowledge__kb_name__upload_post"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Upload Files",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/web-source": {
+ "post": {
+ "operationId": "add_web_source_api_v1_knowledge__kb_name__web_source_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddWebSourceRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WebSourceInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Add Web Source",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/web-source/{source_id}": {
+ "delete": {
+ "operationId": "remove_web_source_api_v1_knowledge__kb_name__web_source__source_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "source_id",
+ "required": true,
+ "schema": {
+ "title": "Source Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Web Source",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/knowledge/{kb_name}/web-sources": {
+ "get": {
+ "operationId": "get_web_sources_api_v1_knowledge__kb_name__web_sources_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kb_name",
+ "required": true,
+ "schema": {
+ "title": "Kb Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/WebSourceInfo"
+ },
+ "title": "Response Get Web Sources Api V1 Knowledge Kb Name Web Sources Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Web Sources",
+ "tags": [
+ "knowledge"
+ ]
+ }
+ },
+ "/api/v1/learning/progress": {
+ "get": {
+ "operationId": "list_all_progress_api_v1_learning_progress_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List All Progress",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}": {
+ "delete": {
+ "operationId": "delete_progress_api_v1_learning_progress__book_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Progress",
+ "tags": [
+ "mastery-path"
+ ]
+ },
+ "get": {
+ "operationId": "get_progress_api_v1_learning_progress__book_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Progress",
+ "tags": [
+ "mastery-path"
+ ]
+ },
+ "patch": {
+ "description": "Rename a path — the only edit that is the learner's rather than the tutor's.\n\nGuarded like every other path mutation so a rename cannot interleave with a\ntutoring turn's own commit, and emitted as an event so the activity feed\nrecords who called it what.",
+ "operationId": "rename_progress_api_v1_learning_progress__book_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RenamePathRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Rename Progress",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/events": {
+ "get": {
+ "description": "Ordered, redacted domain events for reconnect and incremental UI sync.",
+ "operationId": "get_progress_events_api_v1_learning_progress__book_id__events_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "after_revision",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "title": "After Revision",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Progress Events",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/generate-from-notebook": {
+ "post": {
+ "operationId": "generate_from_notebook_api_v1_learning_progress__book_id__generate_from_notebook_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GenerateFromNotebookRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Generate From Notebook",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/generate-from-reading": {
+ "post": {
+ "description": "Create a mastery curriculum from a private reading workspace.",
+ "operationId": "generate_from_reading_api_v1_learning_progress__book_id__generate_from_reading_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GenerateFromReadingRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Generate From Reading",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/import-from-book": {
+ "post": {
+ "operationId": "import_from_book_api_v1_learning_progress__book_id__import_from_book_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ImportFromBookRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Import From Book",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/init-modules": {
+ "post": {
+ "operationId": "init_modules_api_v1_learning_progress__book_id__init_modules_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InitModulesRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Init Modules",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/map": {
+ "get": {
+ "description": "The dashboard view of a path: the gate-decided next step plus a map of\nevery objective's status (new / learning / mastered). The per-type gate\nlives in ``learning.policy`` so the dashboard and the tutor agree.",
+ "operationId": "get_progress_map_api_v1_learning_progress__book_id__map_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Progress Map",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/objectives/{kp_id}": {
+ "get": {
+ "description": "The evidence behind one objective: attempts, schedule, errors, prompts.\n\n``policy.objective_report`` is pure over the aggregate, so the questions\nthemselves — which live in the durable interaction log, not the aggregate —\nare joined on here, redacted of their answer keys.",
+ "operationId": "get_objective_report_api_v1_learning_progress__book_id__objectives__kp_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "kp_id",
+ "required": true,
+ "schema": {
+ "title": "Kp Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Objective Report",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/redo": {
+ "post": {
+ "operationId": "redo_progress_api_v1_learning_progress__book_id__redo_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Redo Progress",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/sessions": {
+ "get": {
+ "description": "Expose the explicit conversation associations for this path.",
+ "operationId": "get_progress_sessions_api_v1_learning_progress__book_id__sessions_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Progress Sessions",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/progress/{book_id}/skip-question": {
+ "post": {
+ "description": "Drop an outstanding question the learner can no longer answer.\n\nThe narrow escape hatch for a path stalled on ``answer_pending``; unlike\n``redo`` it keeps every mastery level and review the learner has earned.",
+ "operationId": "skip_pending_question_api_v1_learning_progress__book_id__skip_question_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "book_id",
+ "required": true,
+ "schema": {
+ "title": "Book Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Skip Pending Question",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics": {
+ "get": {
+ "operationId": "list_topics_api_v1_learning_topics_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Topics",
+ "tags": [
+ "mastery-path"
+ ]
+ },
+ "post": {
+ "operationId": "create_topic_api_v1_learning_topics_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConfirmTopicRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Topic",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics/draft": {
+ "post": {
+ "operationId": "generate_topic_route_api_v1_learning_topics_draft_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GenerateTopicDraftRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Generate Topic Route",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics/index": {
+ "get": {
+ "description": "Just enough to *name* a topic: id, title, emoji.\n\nThe sidebar groups study conversations under their topic, and it refreshes\non every stream end. ``/topics`` answers with each path's whole knowledge\nmap, review queue and source excerpts — kilobytes per topic, none of which\na group header renders. This is the same walk with the payload cut to what\na label needs.\n\nDeclared above ``/topics/{path_id}``: that route matches any single\nsegment, so a literal path below it would never be reached.",
+ "operationId": "list_topic_index_api_v1_learning_topics_index_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Topic Index",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics/{path_id}": {
+ "get": {
+ "operationId": "get_topic_api_v1_learning_topics__path_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "path_id",
+ "required": true,
+ "schema": {
+ "title": "Path Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Topic",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics/{path_id}/ask-hint": {
+ "get": {
+ "description": "One question the learner could ask here, for the composer placeholder.\n\nWritten by the task model, never blocking: an empty ``hint`` means the\ncomposer keeps the static placeholder it has always had.",
+ "operationId": "get_topic_ask_hint_api_v1_learning_topics__path_id__ask_hint_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "path_id",
+ "required": true,
+ "schema": {
+ "title": "Path Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Topic Ask Hint",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics/{path_id}/map": {
+ "put": {
+ "operationId": "edit_topic_map_api_v1_learning_topics__path_id__map_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "path_id",
+ "required": true,
+ "schema": {
+ "title": "Path Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EditTopicMapRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Edit Topic Map",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics/{path_id}/objectives/{kp_id}/override": {
+ "post": {
+ "operationId": "set_learner_override_api_v1_learning_topics__path_id__objectives__kp_id__override_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "path_id",
+ "required": true,
+ "schema": {
+ "title": "Path Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "kp_id",
+ "required": true,
+ "schema": {
+ "title": "Kp Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LearnerOverrideRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Set Learner Override",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/learning/topics/{path_id}/sessions": {
+ "get": {
+ "operationId": "list_topic_sessions_api_v1_learning_topics__path_id__sessions_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "path_id",
+ "required": true,
+ "schema": {
+ "title": "Path Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Topic Sessions",
+ "tags": [
+ "mastery-path"
+ ]
+ }
+ },
+ "/api/v1/marginnote4/devices": {
+ "get": {
+ "description": "List all paired devices.",
+ "operationId": "list_devices_api_v1_marginnote4_devices_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/DeviceInfo"
+ },
+ "title": "Response List Devices Api V1 Marginnote4 Devices Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Devices",
+ "tags": [
+ "marginnote4"
+ ]
+ }
+ },
+ "/api/v1/marginnote4/devices/{device_id}": {
+ "delete": {
+ "description": "Revoke a paired device.",
+ "operationId": "revoke_device_api_v1_marginnote4_devices__device_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "device_id",
+ "required": true,
+ "schema": {
+ "title": "Device Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Revoke Device Api V1 Marginnote4 Devices Device Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Revoke Device",
+ "tags": [
+ "marginnote4"
+ ]
+ }
+ },
+ "/api/v1/marginnote4/heartbeat": {
+ "post": {
+ "description": "Lightweight liveness check. Updates last_seen for the device.",
+ "operationId": "heartbeat_api_v1_marginnote4_heartbeat_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Heartbeat Api V1 Marginnote4 Heartbeat Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Heartbeat",
+ "tags": [
+ "marginnote4"
+ ]
+ }
+ },
+ "/api/v1/marginnote4/pair": {
+ "post": {
+ "description": "Pair a new MN4 device. Requires a DeepTutor session.\n\nReturns a one-time token the Add-on stores and presents on every sync.",
+ "operationId": "pair_device_api_v1_marginnote4_pair_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PairRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PairResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Pair Device",
+ "tags": [
+ "marginnote4"
+ ]
+ }
+ },
+ "/api/v1/marginnote4/status": {
+ "get": {
+ "description": "Health check and summary stats.",
+ "operationId": "status_api_v1_marginnote4_status_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Status Api V1 Marginnote4 Status Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Status",
+ "tags": [
+ "marginnote4"
+ ]
+ }
+ },
+ "/api/v1/marginnote4/sync": {
+ "post": {
+ "description": "Receive an incremental sync batch from a paired MN4 device.",
+ "operationId": "sync_objects_api_v1_marginnote4_sync_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SyncRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SyncResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Sync Objects",
+ "tags": [
+ "marginnote4"
+ ]
+ }
+ },
+ "/api/v1/memory/backup": {
+ "get": {
+ "operationId": "list_backups_api_v1_memory_backup_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Backups",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}": {
+ "get": {
+ "operationId": "get_doc_api_v1_memory_doc__layer___key__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Doc",
+ "tags": [
+ "memory"
+ ]
+ },
+ "put": {
+ "operationId": "put_doc_api_v1_memory_doc__layer___key__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocWriteRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put Doc",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}/apply": {
+ "post": {
+ "description": "Commit a list of previously-previewed ops to a doc atomically.",
+ "operationId": "apply_doc_ops_api_v1_memory_doc__layer___key__apply_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ApplyOpsRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Apply Doc Ops",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}/audit": {
+ "post": {
+ "operationId": "audit_doc_api_v1_memory_doc__layer___key__audit_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/AuditRequest"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Payload"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Audit Doc",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}/dedup": {
+ "post": {
+ "operationId": "dedup_doc_api_v1_memory_doc__layer___key__dedup_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/DedupRequest"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Payload"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Dedup Doc",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}/entry/{entry_id}": {
+ "delete": {
+ "operationId": "delete_entry_api_v1_memory_doc__layer___key__entry__entry_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Entry",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}/lines": {
+ "get": {
+ "description": "Return the line-numbered, footnote-stripped view of a doc.\n\nUsed by the workbench's \"show line numbers\" toggle so the same line\nindices the audit/dedup LLMs see are visible to the user. Footnote\nblock is omitted because edit ops never reference it directly.",
+ "operationId": "get_doc_lines_api_v1_memory_doc__layer___key__lines_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Doc Lines",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}/reset": {
+ "post": {
+ "description": "Wipe the doc + its meta sidecar so the next update starts fresh.\n\nDestructive — the caller has confirmed. After this returns the .md\nfile is gone *and* the ``seen_entity_refs`` set is cleared, so a\nsubsequent ``run_update`` re-ingests every L1 entity instead of\ntreating them as already-seen.\n\nRefuses while a consolidator run is active on this doc; the caller\ncan cancel first.",
+ "operationId": "reset_doc_api_v1_memory_doc__layer___key__reset_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reset Doc",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/doc/{layer}/{key}/update": {
+ "post": {
+ "operationId": "update_doc_api_v1_memory_doc__layer___key__update_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "layer",
+ "required": true,
+ "schema": {
+ "title": "Layer",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/UpdateRequest"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Payload"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Doc",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/overview": {
+ "get": {
+ "operationId": "get_overview_api_v1_memory_overview_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Overview",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/resolve_entry/{entry_id}": {
+ "get": {
+ "description": "Find which L2 doc owns this entry id.\n\nL3 docs cite L2 entries by their ``m_<ULID>`` entry id; the workbench\nUI uses this resolver to turn an L3 footnote click into a navigation\nto the right L2 surface + scroll-to anchor.\n\nScans the seven L2 mds in order; first hit wins. 404 if no L2 doc\ncontains the id (e.g. the entry was deleted or the id is stale).",
+ "operationId": "resolve_entry_api_v1_memory_resolve_entry__entry_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Resolve Entry",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/runs": {
+ "get": {
+ "operationId": "list_runs_api_v1_memory_runs_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "layer",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Layer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "key",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Key"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Runs",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/runs/start": {
+ "post": {
+ "description": "Start one consolidator mode and return a run handle.\n\nThe run survives client disconnects; reconnect via\n``GET /runs/{id}/events?since=N``.",
+ "operationId": "start_run_api_v1_memory_runs_start_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RunStartRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Run",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/runs/{run_id}": {
+ "get": {
+ "operationId": "get_run_api_v1_memory_runs__run_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "run_id",
+ "required": true,
+ "schema": {
+ "title": "Run Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Run",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/runs/{run_id}/cancel": {
+ "post": {
+ "operationId": "cancel_run_api_v1_memory_runs__run_id__cancel_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "run_id",
+ "required": true,
+ "schema": {
+ "title": "Run Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Run",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/runs/{run_id}/events": {
+ "get": {
+ "description": "SSE-replay events from ``since`` (exclusive) until the run ends.\n\nReconnecting after a refresh: pass the largest ``seq`` previously\nobserved. The manager replays the buffered tail, then blocks on\nnew events until the run reaches a terminal state.",
+ "operationId": "stream_run_events_api_v1_memory_runs__run_id__events_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "run_id",
+ "required": true,
+ "schema": {
+ "title": "Run Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "since",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "title": "Since",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Stream Run Events",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/runs/{run_id}/undo": {
+ "post": {
+ "operationId": "undo_run_edit_api_v1_memory_runs__run_id__undo_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "run_id",
+ "required": true,
+ "schema": {
+ "title": "Run Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Undo Run Edit",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/settings": {
+ "get": {
+ "description": "Return the current ``memory:`` subtree (defaults merged in).",
+ "operationId": "get_memory_settings_endpoint_api_v1_memory_settings_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Memory Settings Endpoint",
+ "tags": [
+ "memory"
+ ]
+ },
+ "put": {
+ "description": "Merge the payload into the ``memory:`` subtree and persist.",
+ "operationId": "put_memory_settings_api_v1_memory_settings_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Payload",
+ "type": "object"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put Memory Settings",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/snapshot/{surface}": {
+ "get": {
+ "description": "Return the current entity list for ``surface`` from workspace.\n\nSnapshot is always derived live from workspace at call time. The response\nalso includes ``pending_changes`` — the diff vs the last persisted state.\nRefresh commits these pending changes into ``changes.jsonl``.",
+ "operationId": "get_snapshot_api_v1_memory_snapshot__surface__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "surface",
+ "required": true,
+ "schema": {
+ "title": "Surface",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Snapshot",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/snapshot/{surface}/changes": {
+ "delete": {
+ "operationId": "clear_snapshot_changes_api_v1_memory_snapshot__surface__changes_delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "surface",
+ "required": true,
+ "schema": {
+ "title": "Surface",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Clear Snapshot Changes",
+ "tags": [
+ "memory"
+ ]
+ },
+ "get": {
+ "operationId": "get_changes_api_v1_memory_snapshot__surface__changes_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "surface",
+ "required": true,
+ "schema": {
+ "title": "Surface",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 200,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "offset",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "title": "Offset",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Changes",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/snapshot/{surface}/refresh": {
+ "post": {
+ "description": "Reconcile persisted state with current workspace; record diffs.",
+ "operationId": "refresh_snapshot_api_v1_memory_snapshot__surface__refresh_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "surface",
+ "required": true,
+ "schema": {
+ "title": "Surface",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Refresh Snapshot",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/trace/{surface}": {
+ "delete": {
+ "operationId": "clear_trace_api_v1_memory_trace__surface__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "surface",
+ "required": true,
+ "schema": {
+ "title": "Surface",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Clear Trace",
+ "tags": [
+ "memory"
+ ]
+ },
+ "get": {
+ "operationId": "get_trace_api_v1_memory_trace__surface__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "surface",
+ "required": true,
+ "schema": {
+ "title": "Surface",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 200,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "offset",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "title": "Offset",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Trace",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/memory/trace/{surface}/day/{day}": {
+ "delete": {
+ "operationId": "clear_trace_day_api_v1_memory_trace__surface__day__day__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "surface",
+ "required": true,
+ "schema": {
+ "title": "Surface",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "day",
+ "required": true,
+ "schema": {
+ "title": "Day",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Clear Trace Day",
+ "tags": [
+ "memory"
+ ]
+ }
+ },
+ "/api/v1/multi-user/admin/books": {
+ "get": {
+ "operationId": "admin_books_api_v1_multi_user_admin_books_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Admin Books Api V1 Multi User Admin Books Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Admin Books",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/admin/resources": {
+ "get": {
+ "description": "Everything an admin can assign to a user: models, KBs, skills, and\nthe tool surface (system tools + MCP tools, same pool partners use).",
+ "operationId": "admin_resources_api_v1_multi_user_admin_resources_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Admin Resources Api V1 Multi User Admin Resources Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Admin Resources",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/admin/skills/install": {
+ "post": {
+ "description": "Install a hub skill into the admin catalog (``<hub>:<slug>[@version]``).\n\nThe skill lands in the admin workspace — the same pool ``/admin/resources``\nlists — so it stays invisible to non-admin users until a grant assigns it.\nThe install pipeline (verdict gate, safe extraction, ``always`` stripping)\nlives in :func:`deeptutor.services.skill.hub.install_from_hub`; this\nendpoint only chooses the target root and audits the action.",
+ "operationId": "admin_install_skill_api_v1_multi_user_admin_skills_install_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SkillInstallPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Admin Install Skill Api V1 Multi User Admin Skills Install Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Admin Install Skill",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/guardians": {
+ "get": {
+ "operationId": "list_guardian_relationships_api_v1_multi_user_guardians_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "include_revoked",
+ "required": false,
+ "schema": {
+ "default": false,
+ "title": "Include Revoked",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Guardian Relationships Api V1 Multi User Guardians Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Guardian Relationships",
+ "tags": [
+ "multi-user"
+ ]
+ },
+ "post": {
+ "operationId": "authorize_guardian_relationship_api_v1_multi_user_guardians_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GuardianAuthorizationPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Authorize Guardian Relationship Api V1 Multi User Guardians Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Authorize Guardian Relationship",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/guardians/{relationship_id}": {
+ "delete": {
+ "operationId": "revoke_guardian_relationship_api_v1_multi_user_guardians__relationship_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "relationship_id",
+ "required": true,
+ "schema": {
+ "title": "Relationship Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Revoke Guardian Relationship Api V1 Multi User Guardians Relationship Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Revoke Guardian Relationship",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/learners/{learner_user_id}/credentials/reset": {
+ "post": {
+ "operationId": "reset_learner_credentials_api_v1_multi_user_learners__learner_user_id__credentials_reset_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "learner_user_id",
+ "required": true,
+ "schema": {
+ "title": "Learner User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GuardianCredentialResetPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Reset Learner Credentials Api V1 Multi User Learners Learner User Id Credentials Reset Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reset Learner Credentials",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/learners/{learner_user_id}/guardian-report": {
+ "get": {
+ "operationId": "guardian_report_api_v1_multi_user_learners__learner_user_id__guardian_report_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "learner_user_id",
+ "required": true,
+ "schema": {
+ "title": "Learner User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Guardian Report Api V1 Multi User Learners Learner User Id Guardian Report Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Guardian Report",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/learners/{learner_user_id}/materials": {
+ "get": {
+ "operationId": "guardian_material_catalog_api_v1_multi_user_learners__learner_user_id__materials_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "learner_user_id",
+ "required": true,
+ "schema": {
+ "title": "Learner User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Guardian Material Catalog Api V1 Multi User Learners Learner User Id Materials Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Guardian Material Catalog",
+ "tags": [
+ "multi-user"
+ ]
+ },
+ "put": {
+ "operationId": "assign_guardian_materials_api_v1_multi_user_learners__learner_user_id__materials_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "learner_user_id",
+ "required": true,
+ "schema": {
+ "title": "Learner User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GuardianMaterialsPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Assign Guardian Materials Api V1 Multi User Learners Learner User Id Materials Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Assign Guardian Materials",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/learners/{learner_user_id}/restrictions": {
+ "get": {
+ "operationId": "get_guardian_restrictions_api_v1_multi_user_learners__learner_user_id__restrictions_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "learner_user_id",
+ "required": true,
+ "schema": {
+ "title": "Learner User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Guardian Restrictions Api V1 Multi User Learners Learner User Id Restrictions Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Guardian Restrictions",
+ "tags": [
+ "multi-user"
+ ]
+ },
+ "put": {
+ "operationId": "put_guardian_restrictions_api_v1_multi_user_learners__learner_user_id__restrictions_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "learner_user_id",
+ "required": true,
+ "schema": {
+ "title": "Learner User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GuardianRestrictionsPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Put Guardian Restrictions Api V1 Multi User Learners Learner User Id Restrictions Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put Guardian Restrictions",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/me/guardianships": {
+ "get": {
+ "operationId": "my_guardianships_api_v1_multi_user_me_guardianships_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response My Guardianships Api V1 Multi User Me Guardianships Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "My Guardianships",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/me/guardianships/{relationship_id}": {
+ "delete": {
+ "operationId": "revoke_my_guardianship_api_v1_multi_user_me_guardianships__relationship_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "relationship_id",
+ "required": true,
+ "schema": {
+ "title": "Relationship Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Revoke My Guardianship Api V1 Multi User Me Guardianships Relationship Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Revoke My Guardianship",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/users": {
+ "get": {
+ "operationId": "multi_user_list_users_api_v1_multi_user_users_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Multi User List Users Api V1 Multi User Users Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Multi User List Users",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/users/{user_id}/book-permission": {
+ "get": {
+ "operationId": "get_user_book_permission_api_v1_multi_user_users__user_id__book_permission_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "user_id",
+ "required": true,
+ "schema": {
+ "title": "User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get User Book Permission Api V1 Multi User Users User Id Book Permission Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get User Book Permission",
+ "tags": [
+ "multi-user"
+ ]
+ },
+ "put": {
+ "operationId": "put_user_book_permission_api_v1_multi_user_users__user_id__book_permission_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "user_id",
+ "required": true,
+ "schema": {
+ "title": "User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BookPermissionPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Put User Book Permission Api V1 Multi User Users User Id Book Permission Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put User Book Permission",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/multi-user/users/{user_id}/grants": {
+ "get": {
+ "operationId": "get_user_grants_api_v1_multi_user_users__user_id__grants_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "user_id",
+ "required": true,
+ "schema": {
+ "title": "User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get User Grants Api V1 Multi User Users User Id Grants Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get User Grants",
+ "tags": [
+ "multi-user"
+ ]
+ },
+ "put": {
+ "operationId": "put_user_grants_api_v1_multi_user_users__user_id__grants_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "user_id",
+ "required": true,
+ "schema": {
+ "title": "User Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GrantPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Put User Grants Api V1 Multi User Users User Id Grants Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put User Grants",
+ "tags": [
+ "multi-user"
+ ]
+ }
+ },
+ "/api/v1/notebook/add_record": {
+ "post": {
+ "description": "Add record to notebook\n\nArgs:\n request: Add record request\n\nReturns:\n Addition result",
+ "operationId": "add_record_api_v1_notebook_add_record_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddRecordRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Add Record",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/add_record_with_summary": {
+ "post": {
+ "description": "Add record to notebook and stream generated summary.",
+ "operationId": "add_record_with_summary_api_v1_notebook_add_record_with_summary_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddRecordRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Add Record With Summary",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/create": {
+ "post": {
+ "description": "Create new notebook\n\nArgs:\n request: Create request\n\nReturns:\n Created notebook information",
+ "operationId": "create_notebook_api_v1_notebook_create_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateNotebookRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Notebook",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/health": {
+ "get": {
+ "description": "Health check",
+ "operationId": "health_check_api_v1_notebook_health_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Health Check",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/list": {
+ "get": {
+ "description": "Get all notebook list\n\nReturns:\n Notebook list (includes summary information)",
+ "operationId": "list_notebooks_api_v1_notebook_list_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Notebooks",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/statistics": {
+ "get": {
+ "description": "Get notebook statistics\n\nReturns:\n Statistics information",
+ "operationId": "get_statistics_api_v1_notebook_statistics_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Statistics",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/{notebook_id}": {
+ "delete": {
+ "description": "Delete notebook\n\nArgs:\n notebook_id: Notebook ID\n\nReturns:\n Deletion result",
+ "operationId": "delete_notebook_api_v1_notebook__notebook_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Notebook",
+ "tags": [
+ "notebook"
+ ]
+ },
+ "get": {
+ "description": "Get notebook details\n\nArgs:\n notebook_id: Notebook ID\n\nReturns:\n Notebook details (includes all records)",
+ "operationId": "get_notebook_api_v1_notebook__notebook_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Notebook",
+ "tags": [
+ "notebook"
+ ]
+ },
+ "put": {
+ "description": "Update notebook information\n\nArgs:\n notebook_id: Notebook ID\n request: Update request\n\nReturns:\n Updated notebook information",
+ "operationId": "update_notebook_api_v1_notebook__notebook_id__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateNotebookRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Notebook",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/{notebook_id}/export": {
+ "get": {
+ "description": "Render the whole notebook as a single Markdown document.",
+ "operationId": "export_notebook_api_v1_notebook__notebook_id__export_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Export Notebook",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/{notebook_id}/records/{record_id}": {
+ "delete": {
+ "description": "Remove record from notebook\n\nArgs:\n notebook_id: Notebook ID\n record_id: Record ID\n\nReturns:\n Deletion result",
+ "operationId": "remove_record_api_v1_notebook__notebook_id__records__record_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "record_id",
+ "required": true,
+ "schema": {
+ "title": "Record Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Record",
+ "tags": [
+ "notebook"
+ ]
+ },
+ "put": {
+ "description": "Update an existing notebook record in place.",
+ "operationId": "update_record_api_v1_notebook__notebook_id__records__record_id__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "record_id",
+ "required": true,
+ "schema": {
+ "title": "Record Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateRecordRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Record",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/{notebook_id}/records/{record_id}/copy": {
+ "post": {
+ "description": "Duplicate a record into another notebook under a fresh id.",
+ "operationId": "copy_record_api_v1_notebook__notebook_id__records__record_id__copy_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "record_id",
+ "required": true,
+ "schema": {
+ "title": "Record Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MoveRecordRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Copy Record",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/notebook/{notebook_id}/records/{record_id}/move": {
+ "post": {
+ "description": "Move a record from this notebook into another one.",
+ "operationId": "move_record_api_v1_notebook__notebook_id__records__record_id__move_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "notebook_id",
+ "required": true,
+ "schema": {
+ "title": "Notebook Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "record_id",
+ "required": true,
+ "schema": {
+ "title": "Record Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MoveRecordRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Move Record",
+ "tags": [
+ "notebook"
+ ]
+ }
+ },
+ "/api/v1/partner-groups": {
+ "get": {
+ "operationId": "list_partner_groups_api_v1_partner_groups_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Partner Groups",
+ "tags": [
+ "partner-groups"
+ ]
+ },
+ "post": {
+ "operationId": "create_partner_group_api_v1_partner_groups_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreatePartnerGroupRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Partner Group",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/discussion-modes": {
+ "get": {
+ "operationId": "list_discussion_modes_api_v1_partner_groups_discussion_modes_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Discussion Modes",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/shared-memory-types": {
+ "get": {
+ "operationId": "list_shared_memory_types_api_v1_partner_groups_shared_memory_types_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Shared Memory Types",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}": {
+ "delete": {
+ "operationId": "delete_partner_group_api_v1_partner_groups__group_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Partner Group",
+ "tags": [
+ "partner-groups"
+ ]
+ },
+ "get": {
+ "operationId": "get_partner_group_api_v1_partner_groups__group_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Group",
+ "tags": [
+ "partner-groups"
+ ]
+ },
+ "patch": {
+ "operationId": "update_partner_group_api_v1_partner_groups__group_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdatePartnerGroupRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Partner Group",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/history": {
+ "get": {
+ "operationId": "partner_group_history_api_v1_partner_groups__group_id__history_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_key",
+ "required": false,
+ "schema": {
+ "default": "default",
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 200,
+ "maximum": 500,
+ "minimum": 1,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Partner Group History",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/invocations": {
+ "get": {
+ "operationId": "partner_group_invocations_api_v1_partner_groups__group_id__invocations_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_key",
+ "required": false,
+ "schema": {
+ "default": "default",
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 200,
+ "maximum": 500,
+ "minimum": 1,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Partner Group Invocations",
+ "tags": [
+ "partner-groups"
+ ]
+ },
+ "post": {
+ "operationId": "create_partner_invocation_api_v1_partner_groups__group_id__invocations_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreatePartnerInvocationRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Partner Invocation",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/invocations/{invocation_id}/approve": {
+ "post": {
+ "operationId": "approve_partner_invocation_api_v1_partner_groups__group_id__invocations__invocation_id__approve_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "invocation_id",
+ "required": true,
+ "schema": {
+ "title": "Invocation Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PartnerInvocationActionRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Approve Partner Invocation",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/invocations/{invocation_id}/reject": {
+ "post": {
+ "operationId": "reject_partner_invocation_api_v1_partner_groups__group_id__invocations__invocation_id__reject_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "invocation_id",
+ "required": true,
+ "schema": {
+ "title": "Invocation Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PartnerInvocationActionRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reject Partner Invocation",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/messages": {
+ "post": {
+ "operationId": "send_partner_group_message_api_v1_partner_groups__group_id__messages_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PartnerGroupMessageRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Send Partner Group Message",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/rounds/{turn_id}/summary": {
+ "post": {
+ "operationId": "summarize_partner_group_round_api_v1_partner_groups__group_id__rounds__turn_id__summary_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "turn_id",
+ "required": true,
+ "schema": {
+ "title": "Turn Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RoundSummaryRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Summarize Partner Group Round",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/sessions": {
+ "get": {
+ "operationId": "list_partner_group_sessions_api_v1_partner_groups__group_id__sessions_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Partner Group Sessions",
+ "tags": [
+ "partner-groups"
+ ]
+ },
+ "post": {
+ "operationId": "create_partner_group_session_api_v1_partner_groups__group_id__sessions_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Partner Group Session",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/sessions/{session_key}": {
+ "delete": {
+ "operationId": "delete_partner_group_session_api_v1_partner_groups__group_id__sessions__session_key__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_key",
+ "required": true,
+ "schema": {
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Partner Group Session",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/turns/{turn_id}/partners/{partner_id}/retry": {
+ "post": {
+ "operationId": "retry_partner_group_seat_api_v1_partner_groups__group_id__turns__turn_id__partners__partner_id__retry_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "turn_id",
+ "required": true,
+ "schema": {
+ "title": "Turn Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PartnerSeatRetryRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Retry Partner Group Seat",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/whiteboard": {
+ "get": {
+ "operationId": "partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 200,
+ "maximum": 500,
+ "minimum": 1,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Partner Group Whiteboard",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/whiteboard/pins": {
+ "post": {
+ "operationId": "pin_partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_pins_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WhiteboardPinRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Pin Partner Group Whiteboard",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partner-groups/{group_id}/whiteboard/pins/{event_id}": {
+ "delete": {
+ "operationId": "unpin_partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_pins__event_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "group_id",
+ "required": true,
+ "schema": {
+ "title": "Group Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "event_id",
+ "required": true,
+ "schema": {
+ "title": "Event Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Unpin Partner Group Whiteboard",
+ "tags": [
+ "partner-groups"
+ ]
+ }
+ },
+ "/api/v1/partners": {
+ "get": {
+ "description": "Partners the caller may talk to — theirs in full, assigned ones as cards.",
+ "operationId": "list_partners_api_v1_partners_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Partners",
+ "tags": [
+ "partners"
+ ]
+ },
+ "post": {
+ "description": "Create a partner owned by the caller.\n\nAnyone may build their own companion; the assets it is provisioned with are\nresolved against the creator's own permissions (see ``provision_assets``),\nso this hands nobody access they did not already have.",
+ "operationId": "create_partner_api_v1_partners_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreatePartnerRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Partner",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/channels/schema": {
+ "get": {
+ "description": "JSON-Schema metadata for every available channel (schema-driven UI).",
+ "operationId": "list_channel_schemas_api_v1_partners_channels_schema_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Channel Schemas",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/commands/palette": {
+ "get": {
+ "operationId": "partner_command_palette_api_v1_partners_commands_palette_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Partner Command Palette",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/drafts/{draft_id}": {
+ "get": {
+ "description": "Reload one pending/created draft for the authenticated user.",
+ "operationId": "get_partner_draft_api_v1_partners_drafts__draft_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "draft_id",
+ "required": true,
+ "schema": {
+ "title": "Draft Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Draft",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/drafts/{draft_id}/confirm": {
+ "post": {
+ "description": "Promote a reviewable Chat draft into a real Partner exactly once.",
+ "operationId": "confirm_partner_draft_api_v1_partners_drafts__draft_id__confirm_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "draft_id",
+ "required": true,
+ "schema": {
+ "title": "Draft Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConfirmPartnerDraftRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Confirm Partner Draft",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/recent": {
+ "get": {
+ "operationId": "recent_partners_api_v1_partners_recent_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 3,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Recent Partners",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/soul-sources": {
+ "get": {
+ "description": "Everything the create-wizard's soul step can start from.",
+ "operationId": "soul_sources_api_v1_partners_soul_sources_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Soul Sources",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/souls": {
+ "get": {
+ "operationId": "list_souls_api_v1_partners_souls_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Souls",
+ "tags": [
+ "partners"
+ ]
+ },
+ "post": {
+ "operationId": "create_soul_api_v1_partners_souls_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SoulCreateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Soul",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/souls/{soul_id}": {
+ "delete": {
+ "operationId": "delete_soul_api_v1_partners_souls__soul_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "soul_id",
+ "required": true,
+ "schema": {
+ "title": "Soul Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Soul",
+ "tags": [
+ "partners"
+ ]
+ },
+ "get": {
+ "operationId": "get_soul_api_v1_partners_souls__soul_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "soul_id",
+ "required": true,
+ "schema": {
+ "title": "Soul Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Soul",
+ "tags": [
+ "partners"
+ ]
+ },
+ "put": {
+ "operationId": "update_soul_api_v1_partners_souls__soul_id__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "soul_id",
+ "required": true,
+ "schema": {
+ "title": "Soul Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SoulTemplateUpdateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Soul",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/tool-options": {
+ "get": {
+ "description": "The configurable tool surface for a partner.\n\n``tools`` mirrors the user-toggleable system tools (the same pool the\nchat composer / settings expose); ``builtin_tools`` lists the auto-mounted\nbuilt-in tools (rag / web_fetch / …) the owner can allow or deny;\n``mcp_tools`` lists every configured MCP tool the partner could be allowed\nto load. ``read_memory`` / ``write_memory`` are excluded: partners use the\nmandatory ``partner_read`` / ``partner_memorize`` / ``partner_search`` tools\ninstead, which are always on and not owner-configurable.",
+ "operationId": "tool_options_api_v1_partners_tool_options_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Tool Options",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}": {
+ "delete": {
+ "operationId": "destroy_partner_api_v1_partners__partner_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Destroy Partner",
+ "tags": [
+ "partners"
+ ]
+ },
+ "get": {
+ "description": "One partner, projected by what the caller may do with it.\n\nSomeone who merely *uses* the partner gets its identity card — enough to\nrender a conversation header — while its owner gets the configuration.",
+ "operationId": "get_partner_api_v1_partners__partner_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "description": "Return raw channel secrets (tokens, passwords). Required by the edit form; default response masks all secret-looking fields.",
+ "in": "query",
+ "name": "include_secrets",
+ "required": false,
+ "schema": {
+ "default": false,
+ "description": "Return raw channel secrets (tokens, passwords). Required by the edit form; default response masks all secret-looking fields.",
+ "title": "Include Secrets",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner",
+ "tags": [
+ "partners"
+ ]
+ },
+ "patch": {
+ "operationId": "update_partner_api_v1_partners__partner_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdatePartnerRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Partner",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/assets": {
+ "get": {
+ "operationId": "get_partner_assets_api_v1_partners__partner_id__assets_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Assets",
+ "tags": [
+ "partners"
+ ]
+ },
+ "post": {
+ "operationId": "add_partner_assets_api_v1_partners__partner_id__assets_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AssetAddRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Add Partner Assets",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/assets/{asset_type}/{name}": {
+ "delete": {
+ "operationId": "delete_partner_asset_api_v1_partners__partner_id__assets__asset_type___name__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "asset_type",
+ "required": true,
+ "schema": {
+ "title": "Asset Type",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Partner Asset",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/channel-onboarding/start": {
+ "post": {
+ "operationId": "start_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding_start_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChannelOnboardingStartRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Partner Channel Onboarding",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/channel-onboarding/{session_id}": {
+ "delete": {
+ "operationId": "cancel_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Partner Channel Onboarding",
+ "tags": [
+ "partners"
+ ]
+ },
+ "get": {
+ "operationId": "get_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Channel Onboarding",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/channel-onboarding/{session_id}/apply": {
+ "post": {
+ "operationId": "apply_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__apply_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Apply Partner Channel Onboarding",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/channels/reload": {
+ "post": {
+ "operationId": "reload_partner_channels_api_v1_partners__partner_id__channels_reload_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reload Partner Channels",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/channels/status": {
+ "get": {
+ "description": "User-facing listener/setup state, including QR output when available.",
+ "operationId": "get_partner_channel_status_api_v1_partners__partner_id__channels_status_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Channel Status",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/channels/weixin/qr": {
+ "post": {
+ "description": "Issue a QR code for this partner and return what to render.",
+ "operationId": "start_weixin_qr_api_v1_partners__partner_id__channels_weixin_qr_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Weixin Qr",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/channels/weixin/qr/{session_id}": {
+ "get": {
+ "description": "Advance the scan and report its state (never the token).",
+ "operationId": "poll_weixin_qr_api_v1_partners__partner_id__channels_weixin_qr__session_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Poll Weixin Qr",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/chat": {
+ "post": {
+ "description": "Send one HTTP message to a partner with persistent session context.",
+ "operationId": "partner_chat_http_api_v1_partners__partner_id__chat_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChatMessageRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Partner Chat Http Api V1 Partners Partner Id Chat Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Partner Chat Http",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/chat/execute-stream": {
+ "post": {
+ "description": "Stream one HTTP message to a partner as server-sent events.",
+ "operationId": "partner_chat_http_stream_api_v1_partners__partner_id__chat_execute_stream_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChatMessageRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Partner Chat Http Stream",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/history": {
+ "get": {
+ "description": "Conversation history. Pass ``session_key`` for an exact key, or\n``session_id`` for a web session (mapped through ``web_session_key``);\nwith neither, all non-archived sessions are merged.",
+ "operationId": "get_partner_history_api_v1_partners__partner_id__history_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_key",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Session Key"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_id",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Session Id"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 100,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner History",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/links": {
+ "get": {
+ "description": "Your own linked chat accounts for this partner — never anyone else's.",
+ "operationId": "list_partner_links_api_v1_partners__partner_id__links_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Partner Links",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/links/code": {
+ "post": {
+ "description": "Mint a code for connecting one of your chat accounts to this partner.\n\nSend ``/link <code>`` to the partner as a direct message from the chat\naccount you want connected; that account then speaks as you.",
+ "operationId": "create_partner_link_code_api_v1_partners__partner_id__links_code_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Partner Link Code",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/links/{key}": {
+ "delete": {
+ "description": "Disconnect one of your chat accounts; its past messages stay yours.",
+ "operationId": "delete_partner_link_api_v1_partners__partner_id__links__key__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "key",
+ "required": true,
+ "schema": {
+ "title": "Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Partner Link",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/sessions": {
+ "get": {
+ "operationId": "get_partner_sessions_api_v1_partners__partner_id__sessions_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Sessions",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/sessions/archive": {
+ "post": {
+ "description": "Soft-archive a session (web /new) — it stays resumable, file untouched.",
+ "operationId": "archive_partner_session_api_v1_partners__partner_id__sessions_archive_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SessionKeyBody"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Archive Partner Session",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/sessions/branch": {
+ "post": {
+ "description": "Copy a session's full history into a new key and archive the source.",
+ "operationId": "branch_partner_session_api_v1_partners__partner_id__sessions_branch_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SessionBranchBody"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Branch Partner Session",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/sessions/delete": {
+ "post": {
+ "operationId": "delete_partner_session_api_v1_partners__partner_id__sessions_delete_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SessionKeyBody"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Partner Session",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/sessions/resume": {
+ "post": {
+ "description": "Clear a session's archived flag so the web app can continue it.",
+ "operationId": "resume_partner_session_api_v1_partners__partner_id__sessions_resume_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SessionKeyBody"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Resume Partner Session",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/soul": {
+ "get": {
+ "operationId": "get_partner_soul_api_v1_partners__partner_id__soul_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Soul",
+ "tags": [
+ "partners"
+ ]
+ },
+ "put": {
+ "operationId": "put_partner_soul_api_v1_partners__partner_id__soul_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SoulUpdateBody"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Put Partner Soul",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/start": {
+ "post": {
+ "operationId": "start_partner_api_v1_partners__partner_id__start_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Partner",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/partners/{partner_id}/stop": {
+ "post": {
+ "operationId": "stop_partner_api_v1_partners__partner_id__stop_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Stop Partner",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/v1/personas/create": {
+ "post": {
+ "operationId": "create_persona_api_v1_personas_create_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreatePersonaRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Persona Api V1 Personas Create Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Persona",
+ "tags": [
+ "personas"
+ ]
+ }
+ },
+ "/api/v1/personas/list": {
+ "get": {
+ "operationId": "list_personas_api_v1_personas_list_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "title": "Response List Personas Api V1 Personas List Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Personas",
+ "tags": [
+ "personas"
+ ]
+ }
+ },
+ "/api/v1/personas/{name}": {
+ "delete": {
+ "operationId": "delete_persona_api_v1_personas__name__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Delete Persona Api V1 Personas Name Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Persona",
+ "tags": [
+ "personas"
+ ]
+ },
+ "get": {
+ "operationId": "get_persona_api_v1_personas__name__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Persona Api V1 Personas Name Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Persona",
+ "tags": [
+ "personas"
+ ]
+ },
+ "put": {
+ "operationId": "update_persona_api_v1_personas__name__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdatePersonaRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Persona Api V1 Personas Name Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Persona",
+ "tags": [
+ "personas"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/categories": {
+ "get": {
+ "description": "Categories, with their counts scoped the same way the listing is.\n\nWithout the scope the rail would offer \"Address translation 3\" inside a\ncourse holding none of those three.",
+ "operationId": "list_categories_api_v1_question_notebook_categories_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "course_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/CategoryItem"
+ },
+ "title": "Response List Categories Api V1 Question Notebook Categories Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Categories",
+ "tags": [
+ "question-notebook"
+ ]
+ },
+ "post": {
+ "operationId": "create_category_api_v1_question_notebook_categories_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CategoryCreateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CategoryItem"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Category",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/categories/{category_id}": {
+ "delete": {
+ "operationId": "delete_category_api_v1_question_notebook_categories__category_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "category_id",
+ "required": true,
+ "schema": {
+ "title": "Category Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Category",
+ "tags": [
+ "question-notebook"
+ ]
+ },
+ "patch": {
+ "operationId": "rename_category_api_v1_question_notebook_categories__category_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "category_id",
+ "required": true,
+ "schema": {
+ "title": "Category Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CategoryRenameRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Rename Category",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/entries": {
+ "get": {
+ "operationId": "list_entries_api_v1_question_notebook_entries_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "category_id",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Category Id"
+ }
+ },
+ {
+ "description": "Only entries filed under no category — the triage inbox. Ignored when category_id is set.",
+ "in": "query",
+ "name": "uncategorized",
+ "required": false,
+ "schema": {
+ "default": false,
+ "description": "Only entries filed under no category — the triage inbox. Ignored when category_id is set.",
+ "title": "Uncategorized",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "query",
+ "name": "bookmarked",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Bookmarked"
+ }
+ },
+ {
+ "in": "query",
+ "name": "is_correct",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Is Correct"
+ }
+ },
+ {
+ "in": "query",
+ "name": "course_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "source",
+ "required": false,
+ "schema": {
+ "default": "",
+ "pattern": "^(deep_question|mastery_path|immersive_reading|book)?$",
+ "title": "Source",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "material_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "maxLength": 500,
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "section_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "maxLength": 500,
+ "title": "Section Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "resolved",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Resolved"
+ }
+ },
+ {
+ "in": "query",
+ "name": "score_trend",
+ "required": false,
+ "schema": {
+ "default": "",
+ "pattern": "^(new|improved|declined|unchanged)?$",
+ "title": "Score Trend",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "search",
+ "required": false,
+ "schema": {
+ "default": "",
+ "maxLength": 200,
+ "title": "Search",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "sort",
+ "required": false,
+ "schema": {
+ "default": "recent",
+ "pattern": "^(recent|oldest)$",
+ "title": "Sort",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 50,
+ "maximum": 200,
+ "minimum": 1,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "offset",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Offset",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NotebookEntryListResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Entries",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/entries/categories/bulk": {
+ "post": {
+ "operationId": "bulk_link_entries_api_v1_question_notebook_entries_categories_bulk_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BulkCategoryRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Bulk Link Entries",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/entries/lookup/by-question": {
+ "get": {
+ "operationId": "lookup_entry_api_v1_question_notebook_entries_lookup_by_question_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "question_id",
+ "required": true,
+ "schema": {
+ "title": "Question Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "turn_id",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Turn Id"
+ }
+ },
+ {
+ "description": "Return 204 No Content instead of 404 when the entry is absent — used by the quiz viewer to probe not-yet-saved questions without logging noisy 404s.",
+ "in": "query",
+ "name": "missing_ok",
+ "required": false,
+ "schema": {
+ "default": false,
+ "description": "Return 204 No Content instead of 404 when the entry is absent — used by the quiz viewer to probe not-yet-saved questions without logging noisy 404s.",
+ "title": "Missing Ok",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Lookup Entry",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/entries/upsert": {
+ "post": {
+ "operationId": "upsert_single_entry_api_v1_question_notebook_entries_upsert_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpsertEntryRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Upsert Single Entry",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/entries/{entry_id}": {
+ "delete": {
+ "operationId": "delete_entry_api_v1_question_notebook_entries__entry_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Entry",
+ "tags": [
+ "question-notebook"
+ ]
+ },
+ "get": {
+ "operationId": "get_entry_api_v1_question_notebook_entries__entry_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NotebookEntryItem"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Entry",
+ "tags": [
+ "question-notebook"
+ ]
+ },
+ "patch": {
+ "operationId": "update_entry_api_v1_question_notebook_entries__entry_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EntryUpdateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Entry",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/entries/{entry_id}/categories": {
+ "post": {
+ "operationId": "add_entry_to_category_api_v1_question_notebook_entries__entry_id__categories_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CategoryAddRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Add Entry To Category",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/entries/{entry_id}/categories/{category_id}": {
+ "delete": {
+ "operationId": "remove_entry_from_category_api_v1_question_notebook_entries__entry_id__categories__category_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "path",
+ "name": "category_id",
+ "required": true,
+ "schema": {
+ "title": "Category Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Entry From Category",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/materials": {
+ "get": {
+ "description": "Materials represented in the unified review history.",
+ "operationId": "list_question_bank_materials_api_v1_question_notebook_materials_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "course_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/QuestionBankMaterial"
+ },
+ "title": "Response List Question Bank Materials Api V1 Question Notebook Materials Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Question Bank Materials",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/question-notebook/stats": {
+ "get": {
+ "description": "Counts behind the filter chips; also the agent's one-call overview.\n\nTakes the same course scope as the listing: showing one course's questions\nnext to whole-library counts would make the rail lie about how much is there.",
+ "operationId": "question_bank_stats_api_v1_question_notebook_stats_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "course_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Course Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/QuestionBankStats"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Question Bank Stats",
+ "tags": [
+ "question-notebook"
+ ]
+ }
+ },
+ "/api/v1/reading/epub-pairings": {
+ "get": {
+ "operationId": "epub_pairings_api_v1_reading_epub_pairings_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Response Epub Pairings Api V1 Reading Epub Pairings Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Epub Pairings",
+ "tags": [
+ "reading"
+ ]
+ },
+ "post": {
+ "operationId": "create_epub_pairing_api_v1_reading_epub_pairings_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EpubPairingRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Epub Pairing Api V1 Reading Epub Pairings Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Epub Pairing",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/epub-pairings/{pairing_id}": {
+ "delete": {
+ "operationId": "remove_epub_pairing_api_v1_reading_epub_pairings__pairing_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "pairing_id",
+ "required": true,
+ "schema": {
+ "title": "Pairing Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Remove Epub Pairing Api V1 Reading Epub Pairings Pairing Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Epub Pairing",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/extensions": {
+ "get": {
+ "operationId": "list_extensions_api_v1_reading_extensions_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Response List Extensions Api V1 Reading Extensions Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Extensions",
+ "tags": [
+ "reading-extensions"
+ ]
+ }
+ },
+ "/api/v1/reading/library/duplicate-check": {
+ "post": {
+ "description": "Say what the library already holds, before anything is uploaded.\n\nIdentical bytes are answered from the content id the browser computed;\na same-name-different-content upload is the genuinely ambiguous case and\nis reported separately so the client can ask instead of guessing.",
+ "operationId": "duplicate_check_api_v1_reading_library_duplicate_check_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DuplicateCheckRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Duplicate Check Api V1 Reading Library Duplicate Check Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Duplicate Check",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/library/import-urls": {
+ "post": {
+ "description": "Queue safe webpage, YouTube, or Bilibili imports into a workspace.",
+ "operationId": "import_urls_api_v1_reading_library_import_urls_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UrlImportRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Import Urls Api V1 Reading Library Import Urls Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Import Urls",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/library/materials": {
+ "get": {
+ "description": "Every material the owner has, with the collections holding each one.\n\nMembership travels with the row because the library view exists to answer\n\"where is this used, and what did I upload that is used nowhere\" — a\nquestion the client cannot ask one material at a time.",
+ "operationId": "list_library_materials_api_v1_reading_library_materials_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "search",
+ "required": false,
+ "schema": {
+ "default": "",
+ "maxLength": 200,
+ "title": "Search",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "status",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "enum": [
+ "queued",
+ "processing",
+ "ready",
+ "failed"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Status"
+ }
+ },
+ {
+ "in": "query",
+ "name": "filter",
+ "required": false,
+ "schema": {
+ "default": "all",
+ "enum": [
+ "all",
+ "unassigned",
+ "processing",
+ "failed"
+ ],
+ "title": "Filter",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Library Materials Api V1 Reading Library Materials Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Library Materials",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials": {
+ "get": {
+ "operationId": "list_materials_api_v1_reading_materials_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/MaterialInfo"
+ },
+ "title": "Response List Materials Api V1 Reading Materials Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Materials",
+ "tags": [
+ "reading"
+ ]
+ },
+ "post": {
+ "description": "Ingest an uploaded document and return it ready to read.\n\nThe upload is streamed to a temp file with a running size check, so an\noversized file is rejected before it is fully buffered rather than after.",
+ "operationId": "upload_material_api_v1_reading_materials_post",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "reuse",
+ "required": false,
+ "schema": {
+ "default": true,
+ "title": "Reuse",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_upload_material_api_v1_reading_materials_post"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MaterialDetail"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Upload Material",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}": {
+ "delete": {
+ "operationId": "delete_material_api_v1_reading_materials__material_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Material Api V1 Reading Materials Material Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Material",
+ "tags": [
+ "reading"
+ ]
+ },
+ "get": {
+ "operationId": "get_material_api_v1_reading_materials__material_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MaterialDetail"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Material",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/annotations": {
+ "get": {
+ "operationId": "list_annotations_api_v1_reading_materials__material_id__annotations_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/AnnotationInfo"
+ },
+ "title": "Response List Annotations Api V1 Reading Materials Material Id Annotations Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Annotations",
+ "tags": [
+ "reading"
+ ]
+ },
+ "put": {
+ "description": "Create or update one annotation (id absent = create).",
+ "operationId": "save_annotation_api_v1_reading_materials__material_id__annotations_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AnnotationPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AnnotationInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Save Annotation",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/annotations/{annotation_id}": {
+ "delete": {
+ "operationId": "delete_annotation_api_v1_reading_materials__material_id__annotations__annotation_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "annotation_id",
+ "required": true,
+ "schema": {
+ "title": "Annotation Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Annotation Api V1 Reading Materials Material Id Annotations Annotation Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Annotation",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/assets/{asset_name}": {
+ "get": {
+ "description": "Serve one authenticated, MIME-sniffed image captured with a web page.",
+ "operationId": "get_snapshot_asset_api_v1_reading_materials__material_id__assets__asset_name__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "asset_name",
+ "required": true,
+ "schema": {
+ "title": "Asset Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Snapshot Asset",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/epub-pairing-candidates": {
+ "get": {
+ "operationId": "epub_pairing_candidates_api_v1_reading_materials__material_id__epub_pairing_candidates_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Response Epub Pairing Candidates Api V1 Reading Materials Material Id Epub Pairing Candidates Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Epub Pairing Candidates",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/export": {
+ "get": {
+ "description": "Download the material with its annotations applied.\n\n``pdf`` writes real PDF annotations into a copy of the original, so the\nexport keeps working outside DeepTutor; ``markdown`` returns the marks as\ntext, which is what every non-PDF format gets.",
+ "operationId": "export_api_v1_reading_materials__material_id__export_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "fmt",
+ "required": false,
+ "schema": {
+ "default": "auto",
+ "enum": [
+ "auto",
+ "pdf",
+ "markdown"
+ ],
+ "title": "Fmt",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Export",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/extensions/{extension_id}/actions/{action}": {
+ "post": {
+ "operationId": "run_extension_action_api_v1_reading_materials__material_id__extensions__extension_id__actions__action__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "extension_id",
+ "required": true,
+ "schema": {
+ "title": "Extension Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "action",
+ "required": true,
+ "schema": {
+ "title": "Action",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ActionPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Run Extension Action Api V1 Reading Materials Material Id Extensions Extension Id Actions Action Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Run Extension Action",
+ "tags": [
+ "reading-extensions"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/position": {
+ "get": {
+ "description": "Return the user's last durable viewport for this material.",
+ "operationId": "get_position_api_v1_reading_materials__material_id__position_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PositionInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Position",
+ "tags": [
+ "reading"
+ ]
+ },
+ "put": {
+ "description": "Persist a validated numeric locator plus an optional renderer anchor.",
+ "operationId": "save_position_api_v1_reading_materials__material_id__position_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PositionPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PositionInfo"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Save Position",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/raw": {
+ "get": {
+ "description": "The original bytes, for the faithful viewer. Serves Range requests.",
+ "operationId": "get_raw_api_v1_reading_materials__material_id__raw_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Raw",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/retry": {
+ "post": {
+ "operationId": "retry_import_api_v1_reading_materials__material_id__retry_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Retry Import Api V1 Reading Materials Material Id Retry Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Retry Import",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/revisions": {
+ "get": {
+ "description": "Prior immutable snapshots retained when a URL is cleaned/refetched.",
+ "operationId": "list_material_revisions_api_v1_reading_materials__material_id__revisions_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Response List Material Revisions Api V1 Reading Materials Material Id Revisions Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Material Revisions",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/revisions/{revision}/units/{locator}": {
+ "get": {
+ "operationId": "get_revision_unit_api_v1_reading_materials__material_id__revisions__revision__units__locator__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "revision",
+ "required": true,
+ "schema": {
+ "title": "Revision",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "path",
+ "name": "locator",
+ "required": true,
+ "schema": {
+ "title": "Locator",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UnitText"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Revision Unit",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/materials/{material_id}/units/{locator}": {
+ "get": {
+ "description": "One unit's text — the reader's text view, and the only view for non-PDFs.",
+ "operationId": "get_unit_api_v1_reading_materials__material_id__units__locator__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "locator",
+ "required": true,
+ "schema": {
+ "title": "Locator",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UnitText"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Unit",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/supported-formats": {
+ "get": {
+ "description": "What the reader accepts — the single source of truth for the file picker.",
+ "operationId": "supported_formats_api_v1_reading_supported_formats_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SupportedFormats"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Supported Formats",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces": {
+ "get": {
+ "operationId": "list_workspaces_api_v1_reading_workspaces_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "search",
+ "required": false,
+ "schema": {
+ "default": "",
+ "maxLength": 200,
+ "title": "Search",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Workspaces Api V1 Reading Workspaces Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Workspaces",
+ "tags": [
+ "reading"
+ ]
+ },
+ "post": {
+ "operationId": "create_workspace_api_v1_reading_workspaces_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WorkspaceCreateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Workspace Api V1 Reading Workspaces Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Workspace",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/index": {
+ "get": {
+ "description": "Just enough to *name* a collection: id and title.\n\nThe sidebar groups reading conversations under their collection and\nrefreshes on every stream end. ``/workspaces`` answers with each\ncollection's whole tab list — every material, its cover, its unit\ncount — none of which a group heading renders.\n\nDeclared above ``/workspaces/{workspace_id}``: that route matches any\nsingle segment, so a literal path below it would never be reached.",
+ "operationId": "list_workspace_index_api_v1_reading_workspaces_index_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Workspace Index Api V1 Reading Workspaces Index Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Workspace Index",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}": {
+ "delete": {
+ "operationId": "delete_workspace_api_v1_reading_workspaces__workspace_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Workspace Api V1 Reading Workspaces Workspace Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Workspace",
+ "tags": [
+ "reading"
+ ]
+ },
+ "get": {
+ "operationId": "get_workspace_api_v1_reading_workspaces__workspace_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Workspace Api V1 Reading Workspaces Workspace Id Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Workspace",
+ "tags": [
+ "reading"
+ ]
+ },
+ "patch": {
+ "operationId": "update_workspace_api_v1_reading_workspaces__workspace_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WorkspaceUpdateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Workspace Api V1 Reading Workspaces Workspace Id Patch",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Workspace",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/ask-hint": {
+ "get": {
+ "description": "One question the learner could ask about their current reading context.",
+ "operationId": "get_workspace_ask_hint_api_v1_reading_workspaces__workspace_id__ask_hint_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_id",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "locator",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Locator"
+ }
+ },
+ {
+ "in": "query",
+ "name": "selection",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Selection",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Workspace Ask Hint Api V1 Reading Workspaces Workspace Id Ask Hint Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Workspace Ask Hint",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/materials": {
+ "post": {
+ "operationId": "add_workspace_material_api_v1_reading_workspaces__workspace_id__materials_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WorkspaceMaterialRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Add Workspace Material Api V1 Reading Workspaces Workspace Id Materials Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Add Workspace Material",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/materials/order": {
+ "put": {
+ "operationId": "reorder_workspace_materials_api_v1_reading_workspaces__workspace_id__materials_order_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WorkspaceReorderRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Reorder Workspace Materials Api V1 Reading Workspaces Workspace Id Materials Order Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reorder Workspace Materials",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/materials/{material_id}": {
+ "delete": {
+ "operationId": "remove_workspace_material_api_v1_reading_workspaces__workspace_id__materials__material_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Remove Workspace Material Api V1 Reading Workspaces Workspace Id Materials Material Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Workspace Material",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/materials/{material_id}/active": {
+ "put": {
+ "operationId": "activate_workspace_material_api_v1_reading_workspaces__workspace_id__materials__material_id__active_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Activate Workspace Material Api V1 Reading Workspaces Workspace Id Materials Material Id Active Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Activate Workspace Material",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/notebook": {
+ "post": {
+ "operationId": "capture_reading_to_notebook_api_v1_reading_workspaces__workspace_id__notebook_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NotebookCaptureRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Capture Reading To Notebook Api V1 Reading Workspaces Workspace Id Notebook Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Capture Reading To Notebook",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/notes/organize": {
+ "post": {
+ "operationId": "organize_reading_notes_api_v1_reading_workspaces__workspace_id__notes_organize_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OrganizeNotesRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Organize Reading Notes Api V1 Reading Workspaces Workspace Id Notes Organize Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Organize Reading Notes",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/openers": {
+ "get": {
+ "description": "Three things a learner could open this material with.\n\nAn empty list means the panel keeps its own generic suggestions — this is\na nicety, never a dependency.",
+ "operationId": "get_workspace_openers_api_v1_reading_workspaces__workspace_id__openers_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "locator",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Locator"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Workspace Openers Api V1 Reading Workspaces Workspace Id Openers Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Workspace Openers",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/sessions": {
+ "get": {
+ "operationId": "list_reading_sessions_api_v1_reading_workspaces__workspace_id__sessions_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Reading Sessions Api V1 Reading Workspaces Workspace Id Sessions Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Reading Sessions",
+ "tags": [
+ "reading"
+ ]
+ },
+ "post": {
+ "operationId": "create_reading_session_api_v1_reading_workspaces__workspace_id__sessions_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReadingSessionCreateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Reading Session Api V1 Reading Workspaces Workspace Id Sessions Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Reading Session",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/sessions/{session_id}": {
+ "delete": {
+ "operationId": "delete_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Reading Session Api V1 Reading Workspaces Workspace Id Sessions Session Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Reading Session",
+ "tags": [
+ "reading"
+ ]
+ },
+ "patch": {
+ "operationId": "rename_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReadingSessionRenameRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Rename Reading Session Api V1 Reading Workspaces Workspace Id Sessions Session Id Patch",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Rename Reading Session",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/sessions/{session_id}/links": {
+ "post": {
+ "operationId": "link_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__links_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReadingSessionLinkRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Link Reading Session Api V1 Reading Workspaces Workspace Id Sessions Session Id Links Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Link Reading Session",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/reading/workspaces/{workspace_id}/sessions/{session_id}/links/{target_session_id}": {
+ "delete": {
+ "operationId": "unlink_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__links__target_session_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "workspace_id",
+ "required": true,
+ "schema": {
+ "title": "Workspace Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "target_session_id",
+ "required": true,
+ "schema": {
+ "title": "Target Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Unlink Reading Session Api V1 Reading Workspaces Workspace Id Sessions Session Id Links Target Session Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Unlink Reading Session",
+ "tags": [
+ "reading"
+ ]
+ }
+ },
+ "/api/v1/sessions": {
+ "get": {
+ "operationId": "list_sessions_api_v1_sessions_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 50,
+ "maximum": 200,
+ "minimum": 1,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "offset",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Offset",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Sessions",
+ "tags": [
+ "sessions"
+ ]
+ }
+ },
+ "/api/v1/sessions/{session_id}": {
+ "delete": {
+ "operationId": "delete_session_api_v1_sessions__session_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Session",
+ "tags": [
+ "sessions"
+ ]
+ },
+ "get": {
+ "operationId": "get_session_api_v1_sessions__session_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Session",
+ "tags": [
+ "sessions"
+ ]
+ },
+ "patch": {
+ "operationId": "rename_session_api_v1_sessions__session_id__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SessionRenameRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Rename Session",
+ "tags": [
+ "sessions"
+ ]
+ }
+ },
+ "/api/v1/sessions/{session_id}/ask-hint": {
+ "get": {
+ "description": "One line the user is likely to type next, for the home composer placeholder.",
+ "operationId": "get_session_ask_hint_api_v1_sessions__session_id__ask_hint_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Session Ask Hint Api V1 Sessions Session Id Ask Hint Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Session Ask Hint",
+ "tags": [
+ "sessions"
+ ]
+ }
+ },
+ "/api/v1/sessions/{session_id}/branch-selection": {
+ "put": {
+ "operationId": "update_branch_selection_api_v1_sessions__session_id__branch_selection_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BranchSelectionRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Branch Selection",
+ "tags": [
+ "sessions"
+ ]
+ }
+ },
+ "/api/v1/sessions/{session_id}/messages/{message_id}": {
+ "delete": {
+ "operationId": "delete_turn_by_message_api_v1_sessions__session_id__messages__message_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "message_id",
+ "required": true,
+ "schema": {
+ "title": "Message Id",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Turn By Message",
+ "tags": [
+ "sessions"
+ ]
+ }
+ },
+ "/api/v1/sessions/{session_id}/organization": {
+ "patch": {
+ "operationId": "update_session_organization_api_v1_sessions__session_id__organization_patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SessionOrganizationRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Session Organization",
+ "tags": [
+ "sessions"
+ ]
+ }
+ },
+ "/api/v1/sessions/{session_id}/quiz-results": {
+ "post": {
+ "operationId": "record_quiz_results_api_v1_sessions__session_id__quiz_results_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "session_id",
+ "required": true,
+ "schema": {
+ "title": "Session Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/QuizResultsRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Record Quiz Results",
+ "tags": [
+ "sessions"
+ ]
+ }
+ },
+ "/api/v1/settings": {
+ "get": {
+ "operationId": "get_settings_api_v1_settings_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/apply": {
+ "post": {
+ "description": "Move settings into the files the runtime reads, and clear the draft.\n\nWith no body this promotes the stored draft's catalog, which is how the\nsettings UI applies: credentials that only ever existed in a draft would\notherwise have to round-trip through the browser as placeholders and come\nback resolving to the previous key.",
+ "operationId": "apply_catalog_api_v1_settings_apply_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/CatalogPayload"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Payload"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Apply Catalog",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/catalog": {
+ "get": {
+ "operationId": "get_catalog_api_v1_settings_catalog_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Catalog",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_catalog_api_v1_settings_catalog_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CatalogPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Catalog",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/chat-attachments": {
+ "get": {
+ "description": "Chat attachment policy. Readable by any user — the composer needs the\ncaps to gate file picks client-side; only the PUT is admin-gated.",
+ "operationId": "get_chat_attachment_settings_api_v1_settings_chat_attachments_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Chat Attachment Settings",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_chat_attachment_settings_api_v1_settings_chat_attachments_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChatAttachmentSettingsUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Chat Attachment Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/chat-response-timeout": {
+ "put": {
+ "description": "Persist how long the chat UI waits for a turn event before timing out.\n\nA personal UI preference (any authenticated user). Slow tools like image /\nvideo generation can take longer than the old 60s default, so this is\nuser-adjustable; the chat surface reads it client-side.",
+ "operationId": "update_chat_response_timeout_api_v1_settings_chat_response_timeout_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChatResponseTimeoutUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Chat Response Timeout",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/chat-starters": {
+ "get": {
+ "description": "How many recent activities shape the home screen's starting points.\n\nPer user and not admin-gated, unlike the attachment caps next door: this\nchanges the size of one prompt built from the caller's own memory, not any\nresource other people share.",
+ "operationId": "get_chat_starter_settings_api_v1_settings_chat_starters_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Chat Starter Settings",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_chat_starter_settings_api_v1_settings_chat_starters_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ChatStarterSettingsUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Chat Starter Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing": {
+ "get": {
+ "operationId": "get_document_parsing_settings_api_v1_settings_document_parsing_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Document Parsing Settings",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_document_parsing_settings_api_v1_settings_document_parsing_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentParsingUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Document Parsing Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing/docling/test": {
+ "post": {
+ "description": "Live connectivity check for the Docling remote-server draft values.\nPings the server health + version endpoints and returns ``ok`` + a\nhuman-readable detail. Tests draft form values so the user can verify the\nURL/key before saving; falls back to the stored key when the secret field\nis untouched.",
+ "operationId": "test_docling_remote_connection_api_v1_settings_document_parsing_docling_test_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DoclingRemoteTest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Docling Remote Connection",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing/install": {
+ "post": {
+ "description": "Kick off a one-click ``pip install`` of an optional engine's package(s).\n\nReturns ``{ok, message}`` immediately; progress is polled via the shared job\nstatus endpoint. Only one job runs at a time (process-wide singleton). The\nengine must be in the install allow-list (``ENGINE_PIP_SPECS``).",
+ "operationId": "start_document_parsing_install_api_v1_settings_document_parsing_install_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentParsingInstall"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Document Parsing Install",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing/job/cancel": {
+ "post": {
+ "operationId": "cancel_document_parsing_job_api_v1_settings_document_parsing_job_cancel_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Document Parsing Job",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing/job/status": {
+ "get": {
+ "operationId": "document_parsing_job_status_api_v1_settings_document_parsing_job_status_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "cursor",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "title": "Cursor",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Document Parsing Job Status",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing/models/download": {
+ "post": {
+ "description": "Kick off a one-click model-weight download for an engine (e.g. Docling).\n\nRuns the engine's downloader console script (``docling-tools models\ndownload``) as a background subprocess; progress is polled via the shared job\nstatus endpoint. The engine must be in ``ENGINE_MODEL_DOWNLOADERS`` and its\nscript reachable next to the server's python or on PATH.",
+ "operationId": "start_document_parsing_model_download_api_v1_settings_document_parsing_models_download_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentParsingInstall"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Document Parsing Model Download",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing/test": {
+ "post": {
+ "description": "Readiness test for an engine. For MinerU's deeper checks (live cloud\ntoken / CLI ``--version``) the UI uses ``/mineru/test``; this generic test\ncovers engine availability + model readiness for all engines.",
+ "operationId": "test_document_parsing_api_v1_settings_document_parsing_test_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DocumentParsingTest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Document Parsing",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/document-parsing/tika/test": {
+ "post": {
+ "description": "Live connectivity check for the Tika server draft URL. Pings ``/version``\nso the user can verify the URL before saving.",
+ "operationId": "test_tika_remote_connection_api_v1_settings_document_parsing_tika_test_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TikaRemoteTest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Tika Remote Connection",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/draft": {
+ "delete": {
+ "operationId": "discard_settings_draft_api_v1_settings_draft_delete",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Discard Settings Draft",
+ "tags": [
+ "settings"
+ ]
+ },
+ "get": {
+ "description": "Return the unapplied draft, or nothing when there is none.\n\nThe draft is deliberately invisible to every other read path: nothing that\nresolves runtime configuration looks here, which is the whole difference\nbetween saving a draft and applying it.",
+ "operationId": "get_settings_draft_api_v1_settings_draft_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Settings Draft",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_settings_draft_api_v1_settings_draft_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SettingsDraftPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Settings Draft",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/enabled-tools": {
+ "put": {
+ "operationId": "update_enabled_tools_api_v1_settings_enabled_tools_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EnabledToolsUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Enabled Tools",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/fetch-models": {
+ "post": {
+ "description": "List the model IDs an OpenAI-compatible provider exposes.\n\nThin HTTP surface over ``factory.fetch_models`` so the settings UI can\npopulate a model picker from ``base_url`` + ``api_key`` instead of making\nthe user type model IDs by hand.",
+ "operationId": "fetch_models_from_provider_api_v1_settings_fetch_models_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/FetchModelsPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Fetch Models From Provider",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/language": {
+ "put": {
+ "operationId": "update_language_api_v1_settings_language_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/LanguageUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Language",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/llm-options": {
+ "get": {
+ "operationId": "get_llm_options_api_v1_settings_llm_options_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Llm Options",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mcp": {
+ "get": {
+ "operationId": "get_mcp_settings_api_v1_settings_mcp_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Mcp Settings Api V1 Settings Mcp Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Mcp Settings",
+ "tags": [
+ "mcp-settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_mcp_settings_api_v1_settings_mcp_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MCPSettingsPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Mcp Settings Api V1 Settings Mcp Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Mcp Settings",
+ "tags": [
+ "mcp-settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mcp/servers/{name}": {
+ "delete": {
+ "operationId": "delete_mcp_server_api_v1_settings_mcp_servers__name__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Delete Mcp Server Api V1 Settings Mcp Servers Name Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Mcp Server",
+ "tags": [
+ "mcp-settings"
+ ]
+ },
+ "put": {
+ "description": "Upsert one server, leaving every other entry byte-identical.\n\nThe whole-map ``PUT`` above cannot express \"change this one\": a client has to\nsend back everything it read, so it silently drops any field it does not\nmodel (a hand-written ``disabled_tools`` blocklist) and overwrites whatever\na second administrator saved in between.",
+ "operationId": "upsert_mcp_server_api_v1_settings_mcp_servers__name__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MCPServerConfig"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Upsert Mcp Server Api V1 Settings Mcp Servers Name Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Upsert Mcp Server",
+ "tags": [
+ "mcp-settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mcp/test": {
+ "post": {
+ "operationId": "test_mcp_server_api_v1_settings_mcp_test_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MCPServerConfig"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Test Mcp Server Api V1 Settings Mcp Test Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Mcp Server",
+ "tags": [
+ "mcp-settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mineru": {
+ "get": {
+ "operationId": "get_mineru_settings_api_v1_settings_mineru_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Mineru Settings",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_mineru_settings_api_v1_settings_mineru_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MinerUSettingsUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Mineru Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mineru/models/download": {
+ "post": {
+ "description": "Kick off a one-click model download via ``mineru-models-download``.\n\nReturns ``{ok, message}`` immediately; progress is polled via the status\nendpoint. Only one download runs at a time (process-wide singleton).",
+ "operationId": "start_mineru_models_download_api_v1_settings_mineru_models_download_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MinerUModelDownloadPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Mineru Models Download",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mineru/models/download/cancel": {
+ "post": {
+ "operationId": "cancel_mineru_models_download_api_v1_settings_mineru_models_download_cancel_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Mineru Models Download",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mineru/models/download/status": {
+ "get": {
+ "operationId": "mineru_models_download_status_api_v1_settings_mineru_models_download_status_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "cursor",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "title": "Cursor",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Mineru Models Download Status",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/mineru/test": {
+ "post": {
+ "description": "Validate the active backend. ``mode == \"local\"`` checks the CLI install\n(PATH probe + ``--version``); cloud mode validates the token against the\nlive MinerU API (no parse quota consumed). Tests the draft form values so\nthe user can verify before saving; falls back to the stored token when the\nsecret field is untouched.",
+ "operationId": "test_mineru_connection_api_v1_settings_mineru_test_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MinerUSettingsUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Mineru Connection",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/network": {
+ "get": {
+ "operationId": "get_network_settings_api_v1_settings_network_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Network Settings",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_network_settings_api_v1_settings_network_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NetworkSettingsUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Network Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/codebuddy/auth/cancel": {
+ "post": {
+ "operationId": "cancel_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_cancel_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Cancel Codebuddy Auth Api V1 Settings Providers Codebuddy Auth Cancel Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Codebuddy Auth",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/codebuddy/auth/logout": {
+ "post": {
+ "operationId": "logout_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_logout_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Logout Codebuddy Auth Api V1 Settings Providers Codebuddy Auth Logout Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Logout Codebuddy Auth",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/codebuddy/auth/start": {
+ "post": {
+ "operationId": "start_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_start_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Start Codebuddy Auth Api V1 Settings Providers Codebuddy Auth Start Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Codebuddy Auth",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/codebuddy/auth/status": {
+ "get": {
+ "operationId": "get_codebuddy_auth_status_api_v1_settings_providers_codebuddy_auth_status_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Codebuddy Auth Status Api V1 Settings Providers Codebuddy Auth Status Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Codebuddy Auth Status",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/openai-codex/models/reasoning-effort": {
+ "post": {
+ "operationId": "update_openai_codex_reasoning_effort_api_v1_settings_providers_openai_codex_models_reasoning_effort_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CodexReasoningEffortUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Openai Codex Reasoning Effort Api V1 Settings Providers Openai Codex Models Reasoning Effort Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Openai Codex Reasoning Effort",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/openai-codex/models/refresh": {
+ "post": {
+ "operationId": "refresh_openai_codex_models_api_v1_settings_providers_openai_codex_models_refresh_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Refresh Openai Codex Models Api V1 Settings Providers Openai Codex Models Refresh Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Refresh Openai Codex Models",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/openai-codex/oauth/cancel": {
+ "post": {
+ "operationId": "cancel_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_cancel_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Cancel Openai Codex Oauth Api V1 Settings Providers Openai Codex Oauth Cancel Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Openai Codex Oauth",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/openai-codex/oauth/logout": {
+ "post": {
+ "operationId": "logout_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_logout_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Logout Openai Codex Oauth Api V1 Settings Providers Openai Codex Oauth Logout Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Logout Openai Codex Oauth",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/openai-codex/oauth/start": {
+ "post": {
+ "operationId": "start_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_start_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Start Openai Codex Oauth Api V1 Settings Providers Openai Codex Oauth Start Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Openai Codex Oauth",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/providers/openai-codex/oauth/status": {
+ "get": {
+ "operationId": "get_openai_codex_oauth_status_api_v1_settings_providers_openai_codex_oauth_status_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Openai Codex Oauth Status Api V1 Settings Providers Openai Codex Oauth Status Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Openai Codex Oauth Status",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/reset": {
+ "post": {
+ "operationId": "reset_settings_api_v1_settings_reset_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reset Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/sidebar": {
+ "get": {
+ "operationId": "get_sidebar_settings_api_v1_settings_sidebar_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Sidebar Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/sidebar/description": {
+ "put": {
+ "operationId": "update_sidebar_description_api_v1_settings_sidebar_description_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SidebarDescriptionUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Sidebar Description",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/sidebar/nav-order": {
+ "put": {
+ "operationId": "update_sidebar_nav_order_api_v1_settings_sidebar_nav_order_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SidebarNavOrderUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Sidebar Nav Order",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/tests/{service}/start": {
+ "post": {
+ "operationId": "start_service_test_api_v1_settings_tests__service__start_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "service",
+ "required": true,
+ "schema": {
+ "title": "Service",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/CatalogPayload"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Payload"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Start Service Test",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/tests/{service}/{run_id}/cancel": {
+ "post": {
+ "operationId": "cancel_service_test_api_v1_settings_tests__service___run_id__cancel_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "service",
+ "required": true,
+ "schema": {
+ "title": "Service",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "run_id",
+ "required": true,
+ "schema": {
+ "title": "Run Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Service Test",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/tests/{service}/{run_id}/events": {
+ "get": {
+ "operationId": "stream_service_test_events_api_v1_settings_tests__service___run_id__events_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "service",
+ "required": true,
+ "schema": {
+ "title": "Service",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "run_id",
+ "required": true,
+ "schema": {
+ "title": "Run Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Stream Service Test Events",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/theme": {
+ "put": {
+ "operationId": "update_theme_api_v1_settings_theme_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ThemeUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Theme",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/themes": {
+ "get": {
+ "operationId": "get_themes_api_v1_settings_themes_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Themes",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/tour/complete": {
+ "post": {
+ "operationId": "complete_tour_api_v1_settings_tour_complete_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/TourCompletePayload"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Payload"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Complete Tour",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/tour/reopen": {
+ "post": {
+ "operationId": "reopen_tour_api_v1_settings_tour_reopen_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Reopen Tour",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/tour/status": {
+ "get": {
+ "operationId": "tour_status_api_v1_settings_tour_status_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Tour Status",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/ui": {
+ "get": {
+ "description": "Return the pre-session UI preferences: theme and the two languages.\n\nPublic by design, which is why it is a narrow projection rather than the\nsaved ``ui`` blob. The app shell — and the statically prerendered auth\npages, which have no session at all — adopt the persisted languages here\nduring bootstrap. Theme rides along so those pages can paint in the right\none instead of flashing.\n\nEverything else under ``ui`` (sidebar_nav_order, enabled_optional_tools,\nchat_response_timeout, …) describes what the deployment has turned on, so\nit stays behind auth: read it from the ``ui`` key of GET /settings.",
+ "operationId": "get_ui_settings_api_v1_settings_ui_get",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "summary": "Get Ui Settings",
+ "tags": [
+ "settings"
+ ]
+ },
+ "put": {
+ "description": "Merge frontend partial update into current UI settings.\n\nUses exclude_unset=True semantics so that only fields explicitly provided\nby the frontend override saved values. Fields not in the frontend payload\n(even if they equal the model defaults) are omitted from the merge.",
+ "operationId": "update_ui_settings_api_v1_settings_ui_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UISettingsUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Ui Settings",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/settings/video-learning": {
+ "get": {
+ "operationId": "get_video_learning_settings_api_v1_settings_video_learning_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Video Learning Settings Api V1 Settings Video Learning Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Video Learning Settings",
+ "tags": [
+ "video-learning-settings"
+ ]
+ },
+ "put": {
+ "operationId": "update_video_learning_settings_api_v1_settings_video_learning_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoLearningSettingsRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Video Learning Settings Api V1 Settings Video Learning Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Video Learning Settings",
+ "tags": [
+ "video-learning-settings"
+ ]
+ }
+ },
+ "/api/v1/settings/video-learning/test-invidious": {
+ "post": {
+ "operationId": "test_invidious_api_v1_settings_video_learning_test_invidious_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoLearningSettingsRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Test Invidious Api V1 Settings Video Learning Test Invidious Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Invidious",
+ "tags": [
+ "video-learning-settings"
+ ]
+ }
+ },
+ "/api/v1/settings/voice-autoplay": {
+ "put": {
+ "description": "Persist the global default for auto-playing chat replies via TTS.\n\nA personal UI preference (any authenticated user); the chat surface layers\na per-session override on top of this value.",
+ "operationId": "update_voice_autoplay_api_v1_settings_voice_autoplay_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VoiceAutoplayUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Voice Autoplay",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
+ "/api/v1/skills/create": {
+ "post": {
+ "operationId": "create_skill_api_v1_skills_create_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateSkillRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Skill Api V1 Skills Create Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Skill",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/hub/catalog": {
+ "get": {
+ "description": "Proxy a skill hub's public catalog for the in-app browser.\n\nThe web \"Import from EduHub\" panel renders these rows in DeepTutor's own\nUI — no embedded iframe, no login — so users can browse, search, and\none-click download skills. Returns ``web_url`` (the hub's site origin) so\nthe panel can offer a \"view on EduHub\" link out.",
+ "operationId": "hub_catalog_api_v1_skills_hub_catalog_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "hub",
+ "required": false,
+ "schema": {
+ "default": "eduhub",
+ "title": "Hub",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "q",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Q",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 50,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Hub Catalog Api V1 Skills Hub Catalog Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Hub Catalog",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/hub/detail": {
+ "get": {
+ "description": "Full metadata + SKILL.md body for one hub skill (browser detail view).",
+ "operationId": "hub_detail_api_v1_skills_hub_detail_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "slug",
+ "required": true,
+ "schema": {
+ "title": "Slug",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "hub",
+ "required": false,
+ "schema": {
+ "default": "eduhub",
+ "title": "Hub",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Hub Detail Api V1 Skills Hub Detail Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Hub Detail",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/install": {
+ "post": {
+ "description": "Import a hub skill (e.g. from EduHub) into the caller's own skill layer.\n\nLands the package in the same per-user dir that ``/create`` writes to, so\nthe imported skill shows up in this user's Skills list. The install gate\n(``suspicious`` verdict abort, safe extraction, ``always`` stripping)\nlives in :func:`deeptutor.services.skill.hub.install_from_hub`.",
+ "operationId": "install_skill_api_v1_skills_install_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InstallSkillRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Install Skill Api V1 Skills Install Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Install Skill",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/list": {
+ "get": {
+ "operationId": "list_skills_api_v1_skills_list_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "title": "Response List Skills Api V1 Skills List Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Skills",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/tags/create": {
+ "post": {
+ "operationId": "create_tag_api_v1_skills_tags_create_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateTagRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Create Tag Api V1 Skills Tags Create Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Tag",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/tags/list": {
+ "get": {
+ "operationId": "list_tags_api_v1_skills_tags_list_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "title": "Response List Tags Api V1 Skills Tags List Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Tags",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/tags/{tag}": {
+ "delete": {
+ "operationId": "delete_tag_api_v1_skills_tags__tag__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "tag",
+ "required": true,
+ "schema": {
+ "title": "Tag",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Delete Tag Api V1 Skills Tags Tag Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Tag",
+ "tags": [
+ "skills"
+ ]
+ },
+ "put": {
+ "operationId": "rename_tag_api_v1_skills_tags__tag__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "tag",
+ "required": true,
+ "schema": {
+ "title": "Tag",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RenameTagRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Rename Tag Api V1 Skills Tags Tag Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Rename Tag",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/skills/{name}": {
+ "delete": {
+ "operationId": "delete_skill_api_v1_skills__name__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Delete Skill Api V1 Skills Name Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Skill",
+ "tags": [
+ "skills"
+ ]
+ },
+ "get": {
+ "operationId": "get_skill_api_v1_skills__name__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Skill Api V1 Skills Name Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Skill",
+ "tags": [
+ "skills"
+ ]
+ },
+ "put": {
+ "operationId": "update_skill_api_v1_skills__name__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateSkillRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Skill Api V1 Skills Name Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Skill",
+ "tags": [
+ "skills"
+ ]
+ }
+ },
+ "/api/v1/space/cli-apps/apps": {
+ "get": {
+ "description": "Installed apps as *this* caller sees them.",
+ "operationId": "list_apps_api_v1_space_cli_apps_apps_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Apps Api V1 Space Cli Apps Apps Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Apps",
+ "tags": [
+ "space-cli-apps"
+ ]
+ }
+ },
+ "/api/v1/space/cli-apps/apps/{app_id}": {
+ "delete": {
+ "description": "Remove one app from the deployment. Administrator only.",
+ "operationId": "uninstall_api_v1_space_cli_apps_apps__app_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "app_id",
+ "required": true,
+ "schema": {
+ "title": "App Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Uninstall Api V1 Space Cli Apps Apps App Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Uninstall",
+ "tags": [
+ "space-cli-apps"
+ ]
+ }
+ },
+ "/api/v1/space/cli-apps/apps/{app_id}/enabled": {
+ "put": {
+ "description": "Switch one app on or off for the calling account.\n\nRefused for an app the caller has not been granted: the preference file must\nnot become a way to record interest in something the grant denies, because a\nlater grant would then silently switch it on.",
+ "operationId": "set_enabled_api_v1_space_cli_apps_apps__app_id__enabled_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "app_id",
+ "required": true,
+ "schema": {
+ "title": "App Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EnabledPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Set Enabled Api V1 Space Cli Apps Apps App Id Enabled Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Set Enabled",
+ "tags": [
+ "space-cli-apps"
+ ]
+ }
+ },
+ "/api/v1/space/cli-apps/catalog": {
+ "get": {
+ "description": "The store. Readable by anyone; installing is admin-only.",
+ "operationId": "get_catalog_api_v1_space_cli_apps_catalog_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "q",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Q",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "category",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Category",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "installable_only",
+ "required": false,
+ "schema": {
+ "default": true,
+ "title": "Installable Only",
+ "type": "boolean"
+ }
+ },
+ {
+ "in": "query",
+ "name": "cursor",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Cursor",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 24,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Catalog Api V1 Space Cli Apps Catalog Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Catalog",
+ "tags": [
+ "space-cli-apps"
+ ]
+ }
+ },
+ "/api/v1/space/cli-apps/catalog/{app_id}/install": {
+ "post": {
+ "description": "Install one app for the deployment. Administrator only.",
+ "operationId": "install_api_v1_space_cli_apps_catalog__app_id__install_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "app_id",
+ "required": true,
+ "schema": {
+ "title": "App Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Install Api V1 Space Cli Apps Catalog App Id Install Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Install",
+ "tags": [
+ "space-cli-apps"
+ ]
+ }
+ },
+ "/api/v1/space/mcp/catalog": {
+ "get": {
+ "operationId": "get_catalog_api_v1_space_mcp_catalog_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "q",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Q",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "category",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Category",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "tier",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Tier",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "cursor",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Cursor",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 30,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Catalog Api V1 Space Mcp Catalog Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Catalog",
+ "tags": [
+ "space-mcp"
+ ]
+ }
+ },
+ "/api/v1/space/mcp/catalog/{entry_id}/install": {
+ "post": {
+ "operationId": "install_catalog_entry_api_v1_space_mcp_catalog__entry_id__install_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "entry_id",
+ "required": true,
+ "schema": {
+ "title": "Entry Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InstallPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Install Catalog Entry Api V1 Space Mcp Catalog Entry Id Install Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Install Catalog Entry",
+ "tags": [
+ "space-mcp"
+ ]
+ }
+ },
+ "/api/v1/space/mcp/oauth/callback": {
+ "get": {
+ "description": "Where the authorization server sends the browser back.\n\nDeliberately **not** returning JSON: a person is looking at this, having just\nclicked Approve on somebody else's site. It answers with a small page that\nsays what happened and closes itself.\n\nAn unknown ``state`` completes nothing — see ``complete_authorization``.",
+ "operationId": "oauth_callback_api_v1_space_mcp_oauth_callback_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "code",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Code",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "state",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "State",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "error",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Error",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "error_description",
+ "required": false,
+ "schema": {
+ "default": "",
+ "title": "Error Description",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Oauth Callback",
+ "tags": [
+ "space-mcp"
+ ]
+ }
+ },
+ "/api/v1/space/mcp/servers": {
+ "get": {
+ "description": "This surface's servers, in the same shape the admin registry returns.\n\n``servers`` + ``status`` deliberately mirror ``/settings/mcp`` so the two\nsurfaces share one set of frontend components instead of forking over a\nresponse shape. Everything specific to this surface is additive.",
+ "operationId": "list_servers_api_v1_space_mcp_servers_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Servers Api V1 Space Mcp Servers Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Servers",
+ "tags": [
+ "space-mcp"
+ ]
+ }
+ },
+ "/api/v1/space/mcp/servers/{name}": {
+ "delete": {
+ "operationId": "remove_server_api_v1_space_mcp_servers__name__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Remove Server Api V1 Space Mcp Servers Name Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Remove Server",
+ "tags": [
+ "space-mcp"
+ ]
+ },
+ "put": {
+ "operationId": "upsert_server_api_v1_space_mcp_servers__name__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ServerPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Upsert Server Api V1 Space Mcp Servers Name Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Upsert Server",
+ "tags": [
+ "space-mcp"
+ ]
+ }
+ },
+ "/api/v1/space/mcp/servers/{name}/authorize": {
+ "post": {
+ "description": "Begin an OAuth consent for one of the caller's servers.\n\nReturns the URL to send the person to. This is the **only** place a flow may\nstart: a background reconnect has nobody in front of it, so it reports\n``needs_auth`` and waits for someone to click.",
+ "operationId": "authorize_server_api_v1_space_mcp_servers__name__authorize_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Authorize Server Api V1 Space Mcp Servers Name Authorize Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Authorize Server",
+ "tags": [
+ "space-mcp"
+ ]
+ }
+ },
+ "/api/v1/space/mcp/servers/{name}/test": {
+ "post": {
+ "description": "Probe a definition before saving it.\n\nRuns under the caller's own owner id so the probe obeys the same address\npolicy and redirect rule the real connection will — a Test more permissive\nthan the connection it previews is worse than no Test at all.\n\nDeliberately side-effect free: nothing is written, so the incoming config is\nprobed as given (any literal credential in it is used in memory only). That\nalso means a caller may probe under a scratch name the store would refuse,\nwhich is how the UI tests a draft before it has one.",
+ "operationId": "test_server_api_v1_space_mcp_servers__name__test_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ServerPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Test Server Api V1 Space Mcp Servers Name Test Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Server",
+ "tags": [
+ "space-mcp"
+ ]
+ }
+ },
+ "/api/v1/subagents/backends/options": {
+ "get": {
+ "description": "Synced model + reasoning-effort options per backend (settings page sync).",
+ "operationId": "backend_options_api_v1_subagents_backends_options_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Backend Options",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/subagents/backends/{kind}/sync": {
+ "post": {
+ "description": "Re-pull one backend's model catalog (the settings \"sync\" button).\n\nFor Claude Code this scrapes its ``/model`` TUI live and caches the result;\nfor Codex it re-reads the CLI-maintained cache.",
+ "operationId": "sync_backend_api_v1_subagents_backends__kind__sync_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "kind",
+ "required": true,
+ "schema": {
+ "title": "Kind",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Sync Backend",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/subagents/connections": {
+ "get": {
+ "description": "List the current user's connected subagents.",
+ "operationId": "list_connections_api_v1_subagents_connections_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Connections",
+ "tags": [
+ "subagents"
+ ]
+ },
+ "post": {
+ "description": "Connect a subagent (a local CLI, or one of the user's partners) as a selectable KB.\n\nA partner connection (``agent_kind == \"partner\"``) binds a ``partner_id``\ninstead of a working directory: consulting it opens a fresh session on that\npartner, exactly as if the user started one from the partner page. Every\nconsult within one DeepTutor chat lands in that one partner session.",
+ "operationId": "create_connection_api_v1_subagents_connections_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ConnectSubagentRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Connection",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/subagents/connections/{name}": {
+ "delete": {
+ "description": "Disconnect a subagent (removes the pointer KB; touches no files).",
+ "operationId": "delete_connection_api_v1_subagents_connections__name__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Connection",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/subagents/connections/{name}/message": {
+ "post": {
+ "description": "Send a message straight to a connected subagent and stream its run.\n\nThis is the sidebar's \"talk to the agent directly\" path: it resumes the same\nlive session DeepTutor consults (shared via the cross-turn registry, keyed by\nchat session + connection), so the agent keeps full context. Streams the\nnative run as newline-delimited JSON, in the same channel shape the chat WS\nuses, so the sidebar transcript renders it identically.",
+ "operationId": "message_connection_api_v1_subagents_connections__name__message_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "title": "Name",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SubagentMessageRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Message Connection",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/subagents/detect": {
+ "get": {
+ "description": "Report which agent CLIs are installed and usable on this machine.",
+ "operationId": "detect_subagents_api_v1_subagents_detect_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Detect Subagents",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/subagents/partners": {
+ "get": {
+ "description": "Partners the current user can connect & consult.\n\nReturns every partner for an admin, or just the ones an admin has assigned\nfor a non-admin. The partner CRUD API (``/api/v1/partners``) stays fully\nadmin-gated; this is the read surface the connect flow and the partner list\npage use, so a non-admin sees their assigned partners without a 403.",
+ "operationId": "list_visible_partners_api_v1_subagents_partners_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Visible Partners",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/subagents/settings": {
+ "get": {
+ "description": "Read the consult budget and per-backend run config.",
+ "operationId": "get_settings_api_v1_subagents_settings_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Settings",
+ "tags": [
+ "subagents"
+ ]
+ },
+ "put": {
+ "description": "Update the subagent settings (admin-gated; deployment-wide).",
+ "operationId": "update_settings_api_v1_subagents_settings_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SubagentSettingsPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Settings",
+ "tags": [
+ "subagents"
+ ]
+ }
+ },
+ "/api/v1/system/memory": {
+ "get": {
+ "description": "Resident memory of the running DeepTutor process tree.\n\nDeliberately separate from ``/status``: that snapshot resolves the LLM,\nembedding and search configs and is fetched once per settings mount, while\nthis one is cheap enough for the status strip to poll.\n\nAdmin-only, for the same reason ``/status`` strips model names from\nnon-admins — process composition and host memory are operational detail a\ntenant has no need for.",
+ "operationId": "get_memory_usage_api_v1_system_memory_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Memory Usage",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/runtime-topology": {
+ "get": {
+ "description": "Describe the current execution topology.\n\nThis makes the unified runtime explicit for operators and frontend code:\ninteractive chat turns should prefer `/api/v1/ws`, while a few routers still\nexist as compatibility or isolated subsystem endpoints.",
+ "operationId": "get_runtime_topology_api_v1_system_runtime_topology_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Runtime Topology",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/status": {
+ "get": {
+ "description": "Get overall system status including backend and model configurations\n\nReturns:\n Dictionary containing status of backend, LLM, embeddings, and search",
+ "operationId": "get_system_status_api_v1_system_status_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get System Status",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/test/embeddings": {
+ "post": {
+ "description": "Test Embeddings model connection by sending a simple embedding request\n\nReturns:\n Test result with success status and response time",
+ "operationId": "test_embeddings_connection_api_v1_system_test_embeddings_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TestResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Embeddings Connection",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/test/llm": {
+ "post": {
+ "description": "Test LLM model connection by sending a simple completion request\n\nReturns:\n Test result with success status and response time",
+ "operationId": "test_llm_connection_api_v1_system_test_llm_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TestResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Llm Connection",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/test/search": {
+ "post": {
+ "operationId": "test_search_connection_api_v1_system_test_search_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TestResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Test Search Connection",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/update": {
+ "get": {
+ "description": "Return About-page version state, checking at most once per 24 hours.",
+ "operationId": "get_update_status_api_v1_system_update_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Update Status Api V1 System Update Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Update Status",
+ "tags": [
+ "system"
+ ]
+ },
+ "post": {
+ "description": "Reserve one safe update for the supervising launcher to apply.",
+ "operationId": "request_managed_update_api_v1_system_update_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ManagedUpdateRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Request Managed Update Api V1 System Update Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Request Managed Update",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/update/check": {
+ "post": {
+ "description": "Perform an explicit administrator-requested release check.",
+ "operationId": "check_for_update_api_v1_system_update_check_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Check For Update Api V1 System Update Check Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Check For Update",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/update/job": {
+ "get": {
+ "operationId": "get_update_job_api_v1_system_update_job_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Response Get Update Job Api V1 System Update Job Get"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Update Job",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/system/update/settings": {
+ "put": {
+ "operationId": "update_check_settings_api_v1_system_update_settings_put",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateSettingsRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Check Settings Api V1 System Update Settings Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Check Settings",
+ "tags": [
+ "system"
+ ]
+ }
+ },
+ "/api/v1/tools": {
+ "get": {
+ "description": "Return all built-in tools the chat agent can invoke, plus any\ncoming-soon placeholders for the settings page.",
+ "operationId": "list_builtin_tools_api_v1_tools_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ToolsListResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Builtin Tools",
+ "tags": [
+ "tools"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/resolve": {
+ "post": {
+ "operationId": "resolve_video_api_v1_video_learning_materials_resolve_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ResolveRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Resolve Video Api V1 Video Learning Materials Resolve Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Resolve Video",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/{material_id}": {
+ "get": {
+ "operationId": "get_video_material_api_v1_video_learning_materials__material_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Get Video Material Api V1 Video Learning Materials Material Id Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Video Material",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/{material_id}/notes": {
+ "get": {
+ "operationId": "list_video_notes_api_v1_video_learning_materials__material_id__notes_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Response List Video Notes Api V1 Video Learning Materials Material Id Notes Get",
+ "type": "array"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Video Notes",
+ "tags": [
+ "video-learning"
+ ]
+ },
+ "post": {
+ "operationId": "create_video_note_api_v1_video_learning_materials__material_id__notes_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateVideoNoteRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Create Video Note Api V1 Video Learning Materials Material Id Notes Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Video Note",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/{material_id}/notes/{note_id}": {
+ "delete": {
+ "operationId": "delete_video_note_api_v1_video_learning_materials__material_id__notes__note_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "note_id",
+ "required": true,
+ "schema": {
+ "title": "Note Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Delete Video Note Api V1 Video Learning Materials Material Id Notes Note Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Delete Video Note",
+ "tags": [
+ "video-learning"
+ ]
+ },
+ "put": {
+ "operationId": "update_video_note_api_v1_video_learning_materials__material_id__notes__note_id__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "note_id",
+ "required": true,
+ "schema": {
+ "title": "Note Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateVideoNoteRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Update Video Note Api V1 Video Learning Materials Material Id Notes Note Id Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Update Video Note",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/{material_id}/progress": {
+ "put": {
+ "operationId": "save_video_progress_api_v1_video_learning_materials__material_id__progress_put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/deeptutor__api__routers__video_learning__ProgressRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "title": "Response Save Video Progress Api V1 Video Learning Materials Material Id Progress Put",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Save Video Progress",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/{material_id}/stream/{format_id}": {
+ "get": {
+ "operationId": "stream_video_api_v1_video_learning_materials__material_id__stream__format_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "format_id",
+ "required": true,
+ "schema": {
+ "title": "Format Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Stream Video",
+ "tags": [
+ "video-learning"
+ ]
+ },
+ "head": {
+ "operationId": "stream_video_api_v1_video_learning_materials__material_id__stream__format_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "format_id",
+ "required": true,
+ "schema": {
+ "title": "Format Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Stream Video",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/{material_id}/subtitles.vtt": {
+ "get": {
+ "operationId": "get_video_subtitles_api_v1_video_learning_materials__material_id__subtitles_vtt_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Video Subtitles",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/video-learning/materials/{material_id}/transcript/refresh": {
+ "post": {
+ "operationId": "refresh_video_transcript_api_v1_video_learning_materials__material_id__transcript_refresh_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "material_id",
+ "required": true,
+ "schema": {
+ "title": "Material Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Refresh Video Transcript Api V1 Video Learning Materials Material Id Transcript Refresh Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Refresh Video Transcript",
+ "tags": [
+ "video-learning"
+ ]
+ }
+ },
+ "/api/v1/visualizers/bundled/{visualizer_id}/install": {
+ "post": {
+ "operationId": "install_bundled_api_v1_visualizers_bundled__visualizer_id__install_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "visualizer_id",
+ "required": true,
+ "schema": {
+ "title": "Visualizer Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Install Bundled Api V1 Visualizers Bundled Visualizer Id Install Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Install Bundled",
+ "tags": [
+ "visualizers"
+ ]
+ }
+ },
+ "/api/v1/visualizers/import": {
+ "post": {
+ "description": "Install one declarative ``visualizer.json`` + iframe bundle zip.",
+ "operationId": "import_visualizer_api_v1_visualizers_import_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_import_visualizer_api_v1_visualizers_import_post"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response Import Visualizer Api V1 Visualizers Import Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Import Visualizer",
+ "tags": [
+ "visualizers"
+ ]
+ }
+ },
+ "/api/v1/visualizers/list": {
+ "get": {
+ "operationId": "list_visualizers_api_v1_visualizers_list_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": true,
+ "title": "Response List Visualizers Api V1 Visualizers List Get",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "List Visualizers",
+ "tags": [
+ "visualizers"
+ ]
+ }
+ },
+ "/api/v1/visualizers/{visualizer_id}": {
+ "delete": {
+ "operationId": "uninstall_visualizer_api_v1_visualizers__visualizer_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "visualizer_id",
+ "required": true,
+ "schema": {
+ "title": "Visualizer Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Uninstall Visualizer Api V1 Visualizers Visualizer Id Delete",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Uninstall Visualizer",
+ "tags": [
+ "visualizers"
+ ]
+ }
+ },
+ "/api/v1/visualizers/{visualizer_id}/assets/{asset_path}": {
+ "get": {
+ "operationId": "get_visualizer_asset_api_v1_visualizers__visualizer_id__assets__asset_path__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "visualizer_id",
+ "required": true,
+ "schema": {
+ "title": "Visualizer Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "asset_path",
+ "required": true,
+ "schema": {
+ "title": "Asset Path",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Visualizer Asset",
+ "tags": [
+ "visualizers"
+ ]
+ }
+ },
+ "/api/v1/visualizers/{visualizer_id}/disable": {
+ "post": {
+ "operationId": "disable_visualizer_api_v1_visualizers__visualizer_id__disable_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "visualizer_id",
+ "required": true,
+ "schema": {
+ "title": "Visualizer Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Disable Visualizer Api V1 Visualizers Visualizer Id Disable Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Disable Visualizer",
+ "tags": [
+ "visualizers"
+ ]
+ }
+ },
+ "/api/v1/visualizers/{visualizer_id}/enable": {
+ "post": {
+ "operationId": "enable_visualizer_api_v1_visualizers__visualizer_id__enable_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "visualizer_id",
+ "required": true,
+ "schema": {
+ "title": "Visualizer Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Enable Visualizer Api V1 Visualizers Visualizer Id Enable Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Enable Visualizer",
+ "tags": [
+ "visualizers"
+ ]
+ }
+ },
+ "/api/v1/voice/stt": {
+ "post": {
+ "description": "Transcribe an uploaded audio clip using the active STT provider.",
+ "operationId": "speech_to_text_api_v1_voice_stt_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_speech_to_text_api_v1_voice_stt_post"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Response Speech To Text Api V1 Voice Stt Post",
+ "type": "object"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Speech To Text",
+ "tags": [
+ "voice"
+ ]
+ }
+ },
+ "/api/v1/voice/tts": {
+ "post": {
+ "description": "Synthesize ``text`` to audio using the active TTS provider.",
+ "operationId": "text_to_speech_api_v1_voice_tts_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TTSRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Text To Speech",
+ "tags": [
+ "voice"
+ ]
+ }
+ }
+ },
+ "x-deeptutor-web-protocol-version": "2.0"
+}
diff --git a/web/contracts/schema/turn-protocol.json b/web/contracts/schema/turn-protocol.json
new file mode 100644
index 000000000..a5a3eca45
--- /dev/null
+++ b/web/contracts/schema/turn-protocol.json
@@ -0,0 +1,1587 @@
+{
+ "$defs": {
+ "ActiveTurnInfo": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "status": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TurnStatus"
+ },
+ {
+ "const": "none",
+ "type": "string"
+ }
+ ],
+ "default": "none",
+ "title": "Status"
+ },
+ "turn_id": {
+ "default": "",
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "active_turn_info",
+ "default": "active_turn_info",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "title": "ActiveTurnInfo",
+ "type": "object"
+ },
+ "BookReference": {
+ "additionalProperties": false,
+ "properties": {
+ "book_id": {
+ "title": "Book Id",
+ "type": "string"
+ },
+ "page_ids": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Page Ids",
+ "type": "array"
+ }
+ },
+ "required": [
+ "book_id"
+ ],
+ "title": "BookReference",
+ "type": "object"
+ },
+ "CancelTurnCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "turn_id": {
+ "minLength": 1,
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "cancel_turn",
+ "default": "cancel_turn",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "turn_id"
+ ],
+ "title": "CancelTurnCommand",
+ "type": "object"
+ },
+ "CheckActiveTurnCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "session_id": {
+ "minLength": 1,
+ "title": "Session Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "check_active_turn",
+ "default": "check_active_turn",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "session_id"
+ ],
+ "title": "CheckActiveTurnCommand",
+ "type": "object"
+ },
+ "ErrorEnvelope": {
+ "additionalProperties": false,
+ "properties": {
+ "correlation_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Correlation Id"
+ },
+ "error_code": {
+ "title": "Error Code",
+ "type": "string"
+ },
+ "message": {
+ "title": "Message",
+ "type": "string"
+ },
+ "retryable": {
+ "default": false,
+ "title": "Retryable",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "error_code",
+ "message"
+ ],
+ "title": "ErrorEnvelope",
+ "type": "object"
+ },
+ "LLMSelection": {
+ "additionalProperties": false,
+ "properties": {
+ "model_id": {
+ "title": "Model Id",
+ "type": "string"
+ },
+ "profile_id": {
+ "title": "Profile Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "profile_id",
+ "model_id"
+ ],
+ "title": "LLMSelection",
+ "type": "object"
+ },
+ "NotebookReference": {
+ "additionalProperties": false,
+ "properties": {
+ "notebook_id": {
+ "title": "Notebook Id",
+ "type": "string"
+ },
+ "record_ids": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Record Ids",
+ "type": "array"
+ }
+ },
+ "required": [
+ "notebook_id"
+ ],
+ "title": "NotebookReference",
+ "type": "object"
+ },
+ "OutgoingAttachment": {
+ "additionalProperties": false,
+ "properties": {
+ "base64": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Base64"
+ },
+ "filename": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Filename"
+ },
+ "mime_type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Mime Type"
+ },
+ "type": {
+ "title": "Type",
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Url"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "title": "OutgoingAttachment",
+ "type": "object"
+ },
+ "PingCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "type": {
+ "const": "ping",
+ "default": "ping",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "title": "PingCommand",
+ "type": "object"
+ },
+ "PongEvent": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "type": {
+ "const": "pong",
+ "default": "pong",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "title": "PongEvent",
+ "type": "object"
+ },
+ "ReadingReference": {
+ "additionalProperties": false,
+ "properties": {
+ "locators": {
+ "items": {
+ "type": "integer"
+ },
+ "title": "Locators",
+ "type": "array"
+ },
+ "material_id": {
+ "title": "Material Id",
+ "type": "string"
+ },
+ "revision": {
+ "minimum": 1,
+ "title": "Revision",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "material_id",
+ "revision"
+ ],
+ "title": "ReadingReference",
+ "type": "object"
+ },
+ "ReadingViewport": {
+ "additionalProperties": false,
+ "properties": {
+ "locator": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Locator"
+ },
+ "selection": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Selection"
+ }
+ },
+ "title": "ReadingViewport",
+ "type": "object"
+ },
+ "RegenerateCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "overrides": {
+ "additionalProperties": true,
+ "title": "Overrides",
+ "type": "object"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "session_id": {
+ "minLength": 1,
+ "title": "Session Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "regenerate",
+ "default": "regenerate",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "session_id"
+ ],
+ "title": "RegenerateCommand",
+ "type": "object"
+ },
+ "ResumeTurnCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "seq": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Seq",
+ "type": "integer"
+ },
+ "turn_id": {
+ "minLength": 1,
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "resume_from",
+ "default": "resume_from",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "turn_id"
+ ],
+ "title": "ResumeTurnCommand",
+ "type": "object"
+ },
+ "RuntimeStatus": {
+ "additionalProperties": false,
+ "properties": {
+ "coordination_mode": {
+ "enum": [
+ "memory",
+ "redis"
+ ],
+ "title": "Coordination Mode",
+ "type": "string"
+ },
+ "leader_healthy": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Leader Healthy"
+ },
+ "leader_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Leader Id"
+ },
+ "lease_ttl_seconds": {
+ "minimum": 1,
+ "title": "Lease Ttl Seconds",
+ "type": "integer"
+ },
+ "minimum_web_protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Minimum Web Protocol Version",
+ "type": "string"
+ },
+ "owner_turn_count": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Owner Turn Count",
+ "type": "integer"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "recovery_backlog": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Recovery Backlog",
+ "type": "integer"
+ },
+ "recovery_interval_seconds": {
+ "minimum": 1,
+ "title": "Recovery Interval Seconds",
+ "type": "integer"
+ },
+ "redis_configured": {
+ "title": "Redis Configured",
+ "type": "boolean"
+ },
+ "redis_status": {
+ "enum": [
+ "ok",
+ "unavailable",
+ "not_configured"
+ ],
+ "title": "Redis Status",
+ "type": "string"
+ },
+ "renew_interval_seconds": {
+ "minimum": 1,
+ "title": "Renew Interval Seconds",
+ "type": "integer"
+ },
+ "worker_count": {
+ "minimum": 1,
+ "title": "Worker Count",
+ "type": "integer"
+ },
+ "worker_id": {
+ "title": "Worker Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "worker_id",
+ "worker_count",
+ "coordination_mode",
+ "redis_configured",
+ "redis_status",
+ "lease_ttl_seconds",
+ "renew_interval_seconds",
+ "recovery_interval_seconds"
+ ],
+ "title": "RuntimeStatus",
+ "type": "object"
+ },
+ "SessionDetail": {
+ "additionalProperties": false,
+ "properties": {
+ "active_turn": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TurnSummary"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "created_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Created At"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "messages": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Messages",
+ "type": "array"
+ },
+ "preferences": {
+ "additionalProperties": true,
+ "title": "Preferences",
+ "type": "object"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Updated At"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "title": "SessionDetail",
+ "type": "object"
+ },
+ "SessionSummary": {
+ "additionalProperties": false,
+ "properties": {
+ "active_turn": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TurnSummary"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "created_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Created At"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "title": {
+ "title": "Title",
+ "type": "string"
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Updated At"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "title": "SessionSummary",
+ "type": "object"
+ },
+ "StartTurnCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "$ref": "#/$defs/OutgoingAttachment"
+ },
+ "title": "Attachments",
+ "type": "array"
+ },
+ "auto_route": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Auto Route"
+ },
+ "book_references": {
+ "items": {
+ "$ref": "#/$defs/BookReference"
+ },
+ "title": "Book References",
+ "type": "array"
+ },
+ "capability": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "chat",
+ "title": "Capability"
+ },
+ "config": {
+ "additionalProperties": true,
+ "title": "Config",
+ "type": "object"
+ },
+ "content": {
+ "title": "Content",
+ "type": "string"
+ },
+ "course_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Course Id"
+ },
+ "followup_question_context": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Followup Question Context"
+ },
+ "history_references": {
+ "items": {
+ "type": "string"
+ },
+ "title": "History References",
+ "type": "array"
+ },
+ "knowledge_bases": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Knowledge Bases",
+ "type": "array"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Language"
+ },
+ "llm_selection": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/LLMSelection"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "mastery_path_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Mastery Path Id"
+ },
+ "mastery_path_lease_managed": {
+ "default": false,
+ "title": "Mastery Path Lease Managed",
+ "type": "boolean"
+ },
+ "memory_references": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Memory References",
+ "type": "array"
+ },
+ "notebook_references": {
+ "items": {
+ "$ref": "#/$defs/NotebookReference"
+ },
+ "title": "Notebook References",
+ "type": "array"
+ },
+ "parent_message_id": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Parent Message Id"
+ },
+ "partner_group_references": {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Partner Group References",
+ "type": "array"
+ },
+ "persist_user_message": {
+ "default": true,
+ "title": "Persist User Message",
+ "type": "boolean"
+ },
+ "persona": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Persona"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "question_notebook_references": {
+ "items": {
+ "type": "integer"
+ },
+ "title": "Question Notebook References",
+ "type": "array"
+ },
+ "reading_material_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Reading Material Id"
+ },
+ "reading_material_revision": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Reading Material Revision"
+ },
+ "reading_references": {
+ "items": {
+ "$ref": "#/$defs/ReadingReference"
+ },
+ "title": "Reading References",
+ "type": "array"
+ },
+ "reading_viewport": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ReadingViewport"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "reading_workspace_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Reading Workspace Id"
+ },
+ "regenerate": {
+ "default": false,
+ "title": "Regenerate",
+ "type": "boolean"
+ },
+ "regenerated_from_message_id": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Regenerated From Message Id"
+ },
+ "selection_tutor_context": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Selection Tutor Context"
+ },
+ "session_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Session Id"
+ },
+ "skills": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Skills",
+ "type": "array"
+ },
+ "subagent_consult_budget": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Subagent Consult Budget"
+ },
+ "superseded_turn_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Superseded Turn Id"
+ },
+ "timed_media_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Timed Media Id"
+ },
+ "timed_media_viewport": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TimedMediaViewport"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Tools"
+ },
+ "type": {
+ "default": "start_turn",
+ "enum": [
+ "message",
+ "start_turn"
+ ],
+ "title": "Type",
+ "type": "string"
+ },
+ "workspace_mode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Workspace Mode"
+ }
+ },
+ "required": [
+ "content"
+ ],
+ "title": "StartTurnCommand",
+ "type": "object"
+ },
+ "StreamEvent": {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "default": "",
+ "title": "Content",
+ "type": "string"
+ },
+ "metadata": {
+ "additionalProperties": true,
+ "title": "Metadata",
+ "type": "object"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "seq": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Seq",
+ "type": "integer"
+ },
+ "session_id": {
+ "default": "",
+ "title": "Session Id",
+ "type": "string"
+ },
+ "source": {
+ "default": "",
+ "title": "Source",
+ "type": "string"
+ },
+ "stage": {
+ "default": "",
+ "title": "Stage",
+ "type": "string"
+ },
+ "timestamp": {
+ "title": "Timestamp",
+ "type": "number"
+ },
+ "turn_id": {
+ "default": "",
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/$defs/StreamEventType"
+ }
+ },
+ "required": [
+ "type",
+ "timestamp"
+ ],
+ "title": "StreamEvent",
+ "type": "object"
+ },
+ "StreamEventType": {
+ "enum": [
+ "stage_start",
+ "stage_end",
+ "thinking",
+ "observation",
+ "content",
+ "tool_call",
+ "tool_result",
+ "progress",
+ "sources",
+ "result",
+ "error",
+ "session",
+ "session_meta",
+ "wait_for_input",
+ "done"
+ ],
+ "title": "StreamEventType",
+ "type": "string"
+ },
+ "SubmitUserReplyCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "answers": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/UserAnswer"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Answers"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Text"
+ },
+ "turn_id": {
+ "minLength": 1,
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "submit_user_reply",
+ "default": "submit_user_reply",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "turn_id"
+ ],
+ "title": "SubmitUserReplyCommand",
+ "type": "object"
+ },
+ "SubscribeSessionCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "after_seq": {
+ "default": 0,
+ "minimum": 0,
+ "title": "After Seq",
+ "type": "integer"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "session_id": {
+ "minLength": 1,
+ "title": "Session Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "subscribe_session",
+ "default": "subscribe_session",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "session_id"
+ ],
+ "title": "SubscribeSessionCommand",
+ "type": "object"
+ },
+ "SubscribeTurnCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "after_seq": {
+ "default": 0,
+ "minimum": 0,
+ "title": "After Seq",
+ "type": "integer"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "turn_id": {
+ "minLength": 1,
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "subscribe_turn",
+ "default": "subscribe_turn",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "turn_id"
+ ],
+ "title": "SubscribeTurnCommand",
+ "type": "object"
+ },
+ "TimedMediaViewport": {
+ "additionalProperties": false,
+ "properties": {
+ "time_seconds": {
+ "minimum": 0,
+ "title": "Time Seconds",
+ "type": "number"
+ }
+ },
+ "required": [
+ "time_seconds"
+ ],
+ "title": "TimedMediaViewport",
+ "type": "object"
+ },
+ "TurnFailureCode": {
+ "enum": [
+ "worker_lost",
+ "lease_lost",
+ "coordination_unavailable",
+ "provider_error",
+ "internal_error",
+ "rejected",
+ "server_shutdown"
+ ],
+ "title": "TurnFailureCode",
+ "type": "string"
+ },
+ "TurnQueryState": {
+ "description": "Client observation state, including server-side recovery windows.",
+ "enum": [
+ "queued",
+ "running",
+ "waiting_input",
+ "recovering",
+ "completed",
+ "failed",
+ "cancelled"
+ ],
+ "title": "TurnQueryState",
+ "type": "string"
+ },
+ "TurnStatus": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_input",
+ "completed",
+ "failed",
+ "cancelled"
+ ],
+ "title": "TurnStatus",
+ "type": "string"
+ },
+ "TurnSummary": {
+ "additionalProperties": false,
+ "properties": {
+ "capability": {
+ "default": "",
+ "title": "Capability",
+ "type": "string"
+ },
+ "created_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Created At"
+ },
+ "error": {
+ "default": "",
+ "title": "Error",
+ "type": "string"
+ },
+ "error_code": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TurnFailureCode"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "last_seq": {
+ "default": 0,
+ "minimum": 0,
+ "title": "Last Seq",
+ "type": "integer"
+ },
+ "owner_id": {
+ "default": "",
+ "title": "Owner Id",
+ "type": "string"
+ },
+ "query_state": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TurnQueryState"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "retryable": {
+ "default": false,
+ "title": "Retryable",
+ "type": "boolean"
+ },
+ "session_id": {
+ "title": "Session Id",
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/$defs/TurnStatus"
+ },
+ "updated_at": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Updated At"
+ }
+ },
+ "required": [
+ "id",
+ "session_id",
+ "status"
+ ],
+ "title": "TurnSummary",
+ "type": "object"
+ },
+ "UnsubscribeCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "session_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Session Id"
+ },
+ "turn_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Turn Id"
+ },
+ "type": {
+ "const": "unsubscribe",
+ "default": "unsubscribe",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "title": "UnsubscribeCommand",
+ "type": "object"
+ },
+ "UserAnswer": {
+ "additionalProperties": false,
+ "properties": {
+ "questionId": {
+ "minLength": 1,
+ "title": "Questionid",
+ "type": "string"
+ },
+ "text": {
+ "default": "",
+ "title": "Text",
+ "type": "string"
+ }
+ },
+ "required": [
+ "questionId"
+ ],
+ "title": "UserAnswer",
+ "type": "object"
+ },
+ "UserInputCommand": {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "title": "Content",
+ "type": "string"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "turn_id": {
+ "minLength": 1,
+ "title": "Turn Id",
+ "type": "string"
+ },
+ "type": {
+ "const": "user_input",
+ "default": "user_input",
+ "title": "Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "turn_id",
+ "content"
+ ],
+ "title": "UserInputCommand",
+ "type": "object"
+ }
+ },
+ "additionalProperties": false,
+ "properties": {
+ "client_command": {
+ "discriminator": {
+ "mapping": {
+ "cancel_turn": "#/$defs/CancelTurnCommand",
+ "check_active_turn": "#/$defs/CheckActiveTurnCommand",
+ "message": "#/$defs/StartTurnCommand",
+ "ping": "#/$defs/PingCommand",
+ "regenerate": "#/$defs/RegenerateCommand",
+ "resume_from": "#/$defs/ResumeTurnCommand",
+ "start_turn": "#/$defs/StartTurnCommand",
+ "submit_user_reply": "#/$defs/SubmitUserReplyCommand",
+ "subscribe_session": "#/$defs/SubscribeSessionCommand",
+ "subscribe_turn": "#/$defs/SubscribeTurnCommand",
+ "unsubscribe": "#/$defs/UnsubscribeCommand",
+ "user_input": "#/$defs/UserInputCommand"
+ },
+ "propertyName": "type"
+ },
+ "oneOf": [
+ {
+ "$ref": "#/$defs/StartTurnCommand"
+ },
+ {
+ "$ref": "#/$defs/SubscribeTurnCommand"
+ },
+ {
+ "$ref": "#/$defs/SubscribeSessionCommand"
+ },
+ {
+ "$ref": "#/$defs/ResumeTurnCommand"
+ },
+ {
+ "$ref": "#/$defs/UnsubscribeCommand"
+ },
+ {
+ "$ref": "#/$defs/CancelTurnCommand"
+ },
+ {
+ "$ref": "#/$defs/RegenerateCommand"
+ },
+ {
+ "$ref": "#/$defs/SubmitUserReplyCommand"
+ },
+ {
+ "$ref": "#/$defs/UserInputCommand"
+ },
+ {
+ "$ref": "#/$defs/CheckActiveTurnCommand"
+ },
+ {
+ "$ref": "#/$defs/PingCommand"
+ }
+ ],
+ "title": "Client Command"
+ },
+ "error": {
+ "$ref": "#/$defs/ErrorEnvelope"
+ },
+ "minimum_web_protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Minimum Web Protocol Version",
+ "type": "string"
+ },
+ "protocol_version": {
+ "const": "2.0",
+ "default": "2.0",
+ "title": "Protocol Version",
+ "type": "string"
+ },
+ "runtime_status": {
+ "$ref": "#/$defs/RuntimeStatus"
+ },
+ "server_event": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/StreamEvent"
+ },
+ {
+ "$ref": "#/$defs/ActiveTurnInfo"
+ },
+ {
+ "$ref": "#/$defs/PongEvent"
+ }
+ ],
+ "title": "Server Event"
+ },
+ "session_detail": {
+ "$ref": "#/$defs/SessionDetail"
+ },
+ "session_summary": {
+ "$ref": "#/$defs/SessionSummary"
+ }
+ },
+ "required": [
+ "client_command",
+ "server_event",
+ "runtime_status",
+ "session_summary",
+ "session_detail",
+ "error"
+ ],
+ "title": "TurnProtocolDocument",
+ "type": "object"
+}