Skip to content

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

feat(web): generate typed backend contracts

Bingxi Zhao (Frank)a36e902c38fd
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index ebd5371a6..e3e35d042 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -72,6 +72,10 @@ jobs:
working-directory: web
run: npm ci --legacy-peer-deps
+ - name: Check generated frontend contracts
+ working-directory: web
+ run: npm run contracts:check
+
- name: Typecheck frontend
working-directory: web
run: npm run typecheck
diff --git a/deeptutor/api/contracts/export.py b/deeptutor/api/contracts/export.py
index 14d750177..10a22ddeb 100644
--- a/deeptutor/api/contracts/export.py
+++ b/deeptutor/api/contracts/export.py
@@ -23,6 +23,7 @@ from .turn_protocol import (
PROJECT_ROOT = Path(__file__).resolve().parents[3]
DEFAULT_OUTPUT_DIR = PROJECT_ROOT / "web" / "contracts" / "schema"
+HTTP_METHODS = {"delete", "get", "head", "options", "patch", "post", "put", "trace"}
def _json_text(payload: dict[str, Any]) -> str:
@@ -36,10 +37,34 @@ def _merge_model_schema(components: dict[str, Any], model: type[BaseModel]) -> N
components[model.__name__] = schema
+def _deduplicate_operation_ids(openapi: dict[str, Any]) -> None:
+ """Make FastAPI GET/HEAD aliases safe for TypeScript code generation."""
+
+ seen: set[str] = set()
+ for path_item in openapi.get("paths", {}).values():
+ for method, operation in path_item.items():
+ if method not in HTTP_METHODS or not isinstance(operation, dict):
+ continue
+ operation_id = operation.get("operationId")
+ if not operation_id or operation_id not in seen:
+ if operation_id:
+ seen.add(operation_id)
+ continue
+
+ candidate = f"{operation_id}_{method}"
+ suffix = 2
+ while candidate in seen:
+ candidate = f"{operation_id}_{method}_{suffix}"
+ suffix += 1
+ operation["operationId"] = candidate
+ seen.add(candidate)
+
+
def render_contracts() -> dict[str, str]:
from deeptutor.api.main import app
openapi = deepcopy(app.openapi())
+ _deduplicate_operation_ids(openapi)
schemas = openapi.setdefault("components", {}).setdefault("schemas", {})
for model in (TurnRequest, RuntimeStatus, SessionSummary, SessionDetail, ErrorEnvelope):
_merge_model_schema(schemas, model)
diff --git a/tests/api/test_frontend_contract_export.py b/tests/api/test_frontend_contract_export.py
index 1304517e1..f1a89a724 100644
--- a/tests/api/test_frontend_contract_export.py
+++ b/tests/api/test_frontend_contract_export.py
@@ -45,6 +45,18 @@ def test_turn_schema_contains_the_complete_v2_lifecycle() -> None:
assert protocol["properties"]["protocol_version"]["default"] == "2.0"
+def test_openapi_operation_ids_are_unique_for_type_generation() -> None:
+ openapi = json.loads(render_contracts()["openapi.json"])
+ operation_ids = [
+ operation["operationId"]
+ for path_item in openapi["paths"].values()
+ for operation in path_item.values()
+ if isinstance(operation, dict) and "operationId" in operation
+ ]
+
+ assert len(operation_ids) == len(set(operation_ids))
+
+
def test_exported_runtime_contract_contains_no_secret_defaults() -> None:
rendered = render_contracts()
combined = "\n".join(rendered.values()).lower()
diff --git a/web/contracts/README.md b/web/contracts/README.md
new file mode 100644
index 000000000..992e9f6ab
--- /dev/null
+++ b/web/contracts/README.md
@@ -0,0 +1,15 @@
+# Generated frontend contracts
+
+The backend owns the wire contract. Do not edit files under `schema/` or
+`generated/` by hand.
+
+From the repository root, refresh both layers after a backend contract change:
+
+```bash
+python scripts/export_frontend_contracts.py
+cd web && npm run contracts:generate
+```
+
+CI runs `python scripts/export_frontend_contracts.py --check` in backend contract
+tests and `npm run contracts:check` before frontend typechecking. A drift failure
+means the committed artifacts must be regenerated with the commands above.
diff --git a/web/contracts/generated/api.ts b/web/contracts/generated/api.ts
new file mode 100644
index 000000000..a2284de4b
--- /dev/null
+++ b/web/contracts/generated/api.ts
@@ -0,0 +1,32276 @@
+/**
+ * This file was auto-generated by openapi-typescript.
+ * Do not make direct changes to the file.
+ */
+
+export interface paths {
+ readonly "/": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Root */
+ readonly get: operations["root__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/attachments/{session_id}/{attachment_id}/{filename}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Attachment
+ * @description Serve a previously uploaded chat attachment.
+ *
+ * Responds with ``Content-Disposition: inline`` so browsers preview PDFs
+ * and images directly in an ``<iframe>`` / ``<img>``. For unknown types
+ * the browser still falls back to download, which is fine for the
+ * drawer's "Download" button path.
+ */
+ readonly get: operations["get_attachment_api_attachments__session_id___attachment_id___filename__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/outputs/{output_path}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Read Output
+ * @description Serve one allowlisted artifact from the authenticated user's reach.
+ */
+ readonly get: operations["read_output_api_outputs__output_path__head_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ /**
+ * Read Output
+ * @description Serve one allowlisted artifact from the authenticated user's reach.
+ */
+ readonly head: operations["read_output_api_outputs__output_path__head"];
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/agent-config/agents": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Agent Config
+ * @description Get agent UI configuration.
+ *
+ * Returns:
+ * Dict mapping agent type to UI metadata (icon, color, label_key)
+ */
+ readonly get: operations["get_agent_config_api_v1_agent_config_agents_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/agent-config/agents/{agent_type}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Single Agent Config
+ * @description Get UI configuration for a specific agent.
+ *
+ * Args:
+ * agent_type: Agent type (solve, question, research, etc.)
+ *
+ * Returns:
+ * Agent UI metadata or 404 if not found
+ */
+ readonly get: operations["get_single_agent_config_api_v1_agent_config_agents__agent_type__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/avatar/{user_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Avatar Image
+ * @description Serve a stored avatar image. Any authenticated user may view avatars
+ * (they appear in the admin table and next to the viewer's own profile).
+ */
+ readonly get: operations["get_avatar_image_api_v1_auth_avatar__user_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/device-login": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Device Login
+ * @description Exchange a device pairing code and PIN for the account's normal cookie.
+ */
+ readonly post: operations["device_login_api_v1_auth_device_login_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/device/heartbeat": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Device Heartbeat
+ * @description Refresh a device lease and account bounded daily usage.
+ */
+ readonly post: operations["device_heartbeat_api_v1_auth_device_heartbeat_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/devices": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Devices
+ * @description List local device credential metadata without credential secrets.
+ */
+ readonly get: operations["list_devices_api_v1_auth_devices_get"];
+ readonly put?: never;
+ /**
+ * Issue Device
+ * @description Issue a revocable device credential for an ordinary local account.
+ */
+ readonly post: operations["issue_device_api_v1_auth_devices_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/devices/{device_credential_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Revoke Device */
+ readonly delete: operations["revoke_device_api_v1_auth_devices__device_credential_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/is_first_user": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Check Is First User
+ * @description Return whether the user store is empty (used by the register UI).
+ */
+ readonly get: operations["check_is_first_user_api_v1_auth_is_first_user_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/login": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Login
+ * @description Validate credentials and set a JWT cookie.
+ */
+ readonly post: operations["login_api_v1_auth_login_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/logout": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Logout
+ * @description Clear the JWT cookie.
+ *
+ * Deletion attributes mirror ``login`` structurally via ``_cookie_attrs()``
+ * (see the rationale there and #623).
+ */
+ readonly post: operations["logout_api_v1_auth_logout_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/openai-codex/callback": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Receive Codex Oauth Callback */
+ readonly get: operations["receive_codex_oauth_callback_api_v1_auth_openai_codex_callback_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/profile": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Profile
+ * @description Return the current user's own account info.
+ */
+ readonly get: operations["get_profile_api_v1_auth_profile_get"];
+ /**
+ * Update Profile
+ * @description Update the current user's own avatar marker (icon choice or reset).
+ *
+ * Only the validated ``icon:<name>:<color>`` form (or empty string) is
+ * accepted here; ``img:`` markers are owned by the upload endpoint.
+ */
+ readonly put: operations["update_profile_api_v1_auth_profile_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/profile/avatar": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Upload Avatar
+ * @description Upload an avatar image for the current user.
+ *
+ * The client is expected to crop/resize before uploading; the server only
+ * enforces a size cap and validates the format by magic bytes. Not available
+ * in PocketBase mode (those identities have no local user record).
+ */
+ readonly put: operations["upload_avatar_api_v1_auth_profile_avatar_put"];
+ readonly post?: never;
+ /**
+ * Remove Avatar
+ * @description Remove the current user's uploaded avatar image and reset the marker.
+ */
+ readonly delete: operations["remove_avatar_api_v1_auth_profile_avatar_delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/profile/learner-profile": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Current Learner Profile
+ * @description Return the authenticated learner's own profile.
+ */
+ readonly get: operations["get_current_learner_profile_api_v1_auth_profile_learner_profile_get"];
+ /**
+ * Put Current Learner Profile
+ * @description Update only the authenticated learner's own profile.
+ */
+ readonly put: operations["put_current_learner_profile_api_v1_auth_profile_learner_profile_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/register": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Register
+ * @description Bootstrap-only registration.
+ *
+ * Public endpoint that creates the *first* admin account when the user store
+ * is empty. Once an admin exists, this endpoint is closed; further accounts
+ * must be created by an admin via ``POST /api/v1/auth/users``.
+ *
+ * Only available when AUTH_ENABLED=true.
+ */
+ readonly post: operations["register_api_v1_auth_register_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Auth Status
+ * @description Return whether auth is enabled and whether the current request is authenticated.
+ */
+ readonly get: operations["auth_status_api_v1_auth_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/users": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Users
+ * @description List all registered users. Requires admin role.
+ */
+ readonly get: operations["get_users_api_v1_auth_users_get"];
+ readonly put?: never;
+ /**
+ * Admin Create User
+ * @description Admin-only: create a new user account.
+ *
+ * Replaces the public ``/register`` flow once the first admin exists. The
+ * new account is always created with role=``user``; admins can promote
+ * later via ``PUT /users/{username}/role``.
+ */
+ readonly post: operations["admin_create_user_api_v1_auth_users_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/users/{username}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Remove User
+ * @description Delete a user. Admins cannot delete their own account.
+ */
+ readonly delete: operations["remove_user_api_v1_auth_users__username__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/users/{username}/learner-profile": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Learner Profile
+ * @description Return the structured profile managed for an ordinary learner.
+ */
+ readonly get: operations["get_learner_profile_api_v1_auth_users__username__learner_profile_get"];
+ /** Put Learner Profile */
+ readonly put: operations["put_learner_profile_api_v1_auth_users__username__learner_profile_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/auth/users/{username}/role": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Update User Role
+ * @description Change a user's role. Admins cannot change their own role.
+ */
+ readonly put: operations["update_user_role_api_v1_auth_users__username__role_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Books */
+ readonly get: operations["list_books_api_v1_book_books_get"];
+ readonly put?: never;
+ /**
+ * Create Book
+ * @description Stage 1: capture inputs + run IdeationAgent.
+ */
+ readonly post: operations["create_book_api_v1_book_books_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Book */
+ readonly get: operations["get_book_api_v1_book_books__book_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Book */
+ readonly delete: operations["delete_book_api_v1_book_books__book_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}/export": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Export Book
+ * @description Download the whole book as a single Markdown file.
+ */
+ readonly get: operations["export_book_api_v1_book_books__book_id__export_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}/health": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Book Health */
+ readonly get: operations["book_health_api_v1_book_books__book_id__health_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}/learning-captures": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Learning Captures */
+ readonly get: operations["list_learning_captures_api_v1_book_books__book_id__learning_captures_get"];
+ readonly put?: never;
+ /** Create Learning Capture */
+ readonly post: operations["create_learning_capture_api_v1_book_books__book_id__learning_captures_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}/learning-captures/{capture_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Learning Capture */
+ readonly patch: operations["update_learning_capture_api_v1_book_books__book_id__learning_captures__capture_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}/pages/{page_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Page */
+ readonly get: operations["get_page_api_v1_book_books__book_id__pages__page_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}/refresh-fingerprints": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Refresh Fingerprints
+ * @description Mark the current KB state as seen.
+ *
+ * 409s while pages the last drift flagged are still awaiting recompilation.
+ * ``force=true`` dismisses them anyway — stale detection over-marks on
+ * purpose when an anchor cannot be resolved, so the user needs a way out.
+ */
+ readonly post: operations["refresh_fingerprints_api_v1_book_books__book_id__refresh_fingerprints_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/{book_id}/spine": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Spine */
+ readonly get: operations["get_spine_api_v1_book_books__book_id__spine_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/change-block-type": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Change Block Type */
+ readonly post: operations["change_block_type_api_v1_book_books_change_block_type_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/compile-page": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Compile Page
+ * @description Drive the compiler for the page the user just opened (current-page priority).
+ */
+ readonly post: operations["compile_page_api_v1_book_books_compile_page_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/confirm-proposal": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Confirm Proposal
+ * @description Stage 2: user confirms (and possibly edits) the proposal → SpineAgent.
+ */
+ readonly post: operations["confirm_proposal_api_v1_book_books_confirm_proposal_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/confirm-spine": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Confirm Spine
+ * @description Stage 3: user confirms the spine → create pending page shells.
+ */
+ readonly post: operations["confirm_spine_api_v1_book_books_confirm_spine_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/deep-dive": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Deep Dive */
+ readonly post: operations["deep_dive_api_v1_book_books_deep_dive_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/delete-block": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Delete Block */
+ readonly post: operations["delete_block_api_v1_book_books_delete_block_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/insert-block": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Insert Block */
+ readonly post: operations["insert_block_api_v1_book_books_insert_block_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/move-block": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Move Block */
+ readonly post: operations["move_block_api_v1_book_books_move_block_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/page-chat-session": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Set Page Chat Session */
+ readonly post: operations["set_page_chat_session_api_v1_book_books_page_chat_session_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/progress/bookmark": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Toggle Bookmark */
+ readonly post: operations["toggle_bookmark_api_v1_book_books_progress_bookmark_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/progress/visit": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Mark Visited
+ * @description Remember the reader's position so the book can be resumed later.
+ */
+ readonly post: operations["mark_visited_api_v1_book_books_progress_visit_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/quiz-attempt": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Quiz Attempt */
+ readonly post: operations["quiz_attempt_api_v1_book_books_quiz_attempt_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/rebuild": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Rebuild Book */
+ readonly post: operations["rebuild_book_api_v1_book_books_rebuild_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/regenerate-block": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Regenerate Block */
+ readonly post: operations["regenerate_block_api_v1_book_books_regenerate_block_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/resume": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Resume Book
+ * @description Re-queue unfinished pages without discarding what already compiled.
+ */
+ readonly post: operations["resume_book_api_v1_book_books_resume_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/supplement": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Supplement */
+ readonly post: operations["supplement_api_v1_book_books_supplement_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/books/update-block": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Update Block
+ * @description Edit a block's prose in place.
+ *
+ * Scoped deliberately narrow — title and body only. Fixing a typo shouldn't
+ * require regenerating a whole block and hoping for a better roll, but a book
+ * is not a document editor either; substantial rewrites belong in Co-Writer.
+ */
+ readonly post: operations["update_block_api_v1_book_books_update_block_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/estimate-basis": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Estimate Basis
+ * @description Per-chapter generation cost, keyed by content type.
+ *
+ * The spine editor sums this over whatever chapters currently exist, so the
+ * estimate stays live while the user edits without a request per keystroke —
+ * and stays honest, because the numbers come from the same templates the
+ * architect plans from.
+ */
+ readonly get: operations["estimate_basis_api_v1_book_estimate_basis_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/book/health": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Health Check */
+ readonly get: operations["health_check_api_v1_book_health_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/capabilities/registered": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Registered Capabilities
+ * @description Every capability name a turn can be started with, sorted.
+ */
+ readonly get: operations["list_registered_capabilities_api_v1_capabilities_registered_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/capabilities/settings": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Capabilities Settings Endpoint */
+ readonly get: operations["get_capabilities_settings_endpoint_api_v1_capabilities_settings_get"];
+ /** Put Capabilities Settings */
+ readonly put: operations["put_capabilities_settings_api_v1_capabilities_settings_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/chat/sessions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Sessions */
+ readonly get: operations["list_sessions_api_v1_chat_sessions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/chat/sessions/{session_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Session */
+ readonly get: operations["get_session_api_v1_chat_sessions__session_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Session */
+ readonly delete: operations["delete_session_api_v1_chat_sessions__session_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/automark": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Auto Mark Text
+ * @description AI auto-mark text
+ */
+ readonly post: operations["auto_mark_text_api_v1_co_writer_automark_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/documents": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Documents
+ * @description List all Co-Writer documents (summary view, sorted by recency).
+ */
+ readonly get: operations["list_documents_api_v1_co_writer_documents_get"];
+ readonly put?: never;
+ /**
+ * Create Document
+ * @description Create a new Co-Writer document.
+ */
+ readonly post: operations["create_document_api_v1_co_writer_documents_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/documents/{doc_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Document
+ * @description Get a single Co-Writer document by id.
+ */
+ readonly get: operations["get_document_api_v1_co_writer_documents__doc_id__get"];
+ /**
+ * Update Document
+ * @description Update a Co-Writer document (title and/or content).
+ */
+ readonly put: operations["update_document_api_v1_co_writer_documents__doc_id__put"];
+ readonly post?: never;
+ /**
+ * Delete Document
+ * @description Delete a Co-Writer document.
+ */
+ readonly delete: operations["delete_document_api_v1_co_writer_documents__doc_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/documents/export/docx": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Export Docx */
+ readonly post: operations["export_docx_api_v1_co_writer_documents_export_docx_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/documents/import/docx": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Import Docx */
+ readonly post: operations["import_docx_api_v1_co_writer_documents_import_docx_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/edit": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Edit Text */
+ readonly post: operations["edit_text_api_v1_co_writer_edit_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/edit_react": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Edit Text React */
+ readonly post: operations["edit_text_react_api_v1_co_writer_edit_react_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/edit_react/stream": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Edit Text React Stream */
+ readonly post: operations["edit_text_react_stream_api_v1_co_writer_edit_react_stream_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/history": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get History
+ * @description Get all operation history
+ */
+ readonly get: operations["get_history_api_v1_co_writer_history_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/history/{operation_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Operation
+ * @description Get single operation details
+ */
+ readonly get: operations["get_operation_api_v1_co_writer_history__operation_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/co_writer/tool_calls/{operation_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Tool Call
+ * @description Get tool call details
+ */
+ readonly get: operations["get_tool_call_api_v1_co_writer_tool_calls__operation_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Courses */
+ readonly get: operations["list_courses_api_v1_courses_get"];
+ readonly put?: never;
+ /** Create Course */
+ readonly post: operations["create_course_api_v1_courses_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses/{course_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Course */
+ readonly delete: operations["delete_course_api_v1_courses__course_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Course */
+ readonly patch: operations["update_course_api_v1_courses__course_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses/{course_id}/resources": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Attach Course Resource */
+ readonly post: operations["attach_course_resource_api_v1_courses__course_id__resources_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses/{course_id}/resources/{resource_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Detach Course Resource */
+ readonly delete: operations["detach_course_resource_api_v1_courses__course_id__resources__resource_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses/{course_id}/state": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Course State */
+ readonly get: operations["get_course_state_api_v1_courses__course_id__state_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses/{course_id}/syllabus": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Set Course Syllabus */
+ readonly put: operations["set_course_syllabus_api_v1_courses__course_id__syllabus_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses/{course_id}/syllabus/{unit_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Syllabus Unit */
+ readonly patch: operations["update_syllabus_unit_api_v1_courses__course_id__syllabus__unit_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/courses/resource-candidates": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Resource Candidates */
+ readonly get: operations["list_resource_candidates_api_v1_courses_resource_candidates_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/dashboard/{entry_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Activity Entry */
+ readonly get: operations["get_activity_entry_api_v1_dashboard__entry_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/dashboard/recent": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Recent Activities */
+ readonly get: operations["get_recent_activities_api_v1_dashboard_recent_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/dashboard/suggestions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Starter Suggestions
+ * @description The three starting points for the home composer.
+ *
+ * Returns immediately, even when the set is stale — regeneration happens
+ * behind the response. An empty ``suggestions`` list means there is nothing
+ * in memory to ground a suggestion in, and the client renders nothing.
+ *
+ * No language parameter: the output language is the learner's own
+ * model-output setting, resolved server-side. See
+ * :mod:`deeptutor.services.suggestions`.
+ */
+ readonly get: operations["get_starter_suggestions_api_v1_dashboard_suggestions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/dashboard/suggestions/refresh": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Refresh Starter Suggestions
+ * @description Generate a new set now. Backs the reroll control.
+ *
+ * Synchronous, unlike the read: a human clicked and is waiting for a
+ * different set.
+ */
+ readonly post: operations["refresh_starter_suggestions_api_v1_dashboard_suggestions_refresh_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/imports/chat-history": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Imported Chat History */
+ readonly get: operations["list_imported_chat_history_api_v1_imports_chat_history_get"];
+ readonly put?: never;
+ /** Import Chat History */
+ readonly post: operations["import_chat_history_api_v1_imports_chat_history_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Knowledge Base Details
+ * @description Get detailed info for a specific KB.
+ */
+ readonly get: operations["get_knowledge_base_details_api_v1_knowledge__kb_name__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Delete Knowledge Base
+ * @description Delete a knowledge base.
+ */
+ readonly delete: operations["delete_knowledge_base_api_v1_knowledge__kb_name__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/config": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Kb Config
+ * @description Get configuration for a specific knowledge base.
+ */
+ readonly get: operations["get_kb_config_api_v1_knowledge__kb_name__config_get"];
+ /**
+ * Update Kb Config
+ * @description Update configuration for a specific knowledge base.
+ */
+ readonly put: operations["update_kb_config_api_v1_knowledge__kb_name__config_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/file-preview-text/{filename}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Serve Kb Raw File Text Preview
+ * @description Serve extracted plain text for a raw KB document preview.
+ */
+ readonly get: operations["serve_kb_raw_file_text_preview_api_v1_knowledge__kb_name__file_preview_text__filename__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/files": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Kb Raw Files
+ * @description List raw documents under <kb>/raw/, recursing into folders.
+ *
+ * ``name`` is the POSIX path relative to ``raw/`` so the web client can
+ * rebuild the folder tree. Folders (including empty ones) are returned as
+ * ``type: "folder"`` entries so user-created/uploaded structure shows even
+ * before it holds any files. Folders are purely organizational and have no
+ * effect on indexing or retrieval.
+ */
+ readonly get: operations["list_kb_raw_files_api_v1_knowledge__kb_name__files_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/files/{filename}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Serve Kb Raw File
+ * @description Serve a single raw document for inline preview / download.
+ *
+ * Resolution is sandboxed to the KB's raw/ directory; any path that
+ * escapes via traversal yields 403.
+ */
+ readonly get: operations["serve_kb_raw_file_api_v1_knowledge__kb_name__files__filename__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Delete Kb File
+ * @description Remove a single raw document from a knowledge base.
+ *
+ * Unlike deleting the whole KB, this works while the KB is in an *error*
+ * state — that is the point: a file that failed to parse (e.g. one that
+ * exceeds the cloud parser's page limit) can be dropped without deleting and
+ * rebuilding everything. Connected (read-only) and legacy KBs are still
+ * rejected. Vectors are not pruned here; ``was_indexed`` tells the caller
+ * whether a re-index is needed to purge the file from retrieval.
+ */
+ readonly delete: operations["delete_kb_file_api_v1_knowledge__kb_name__files__filename__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/files/move": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Move Kb File
+ * @description Move a file/folder between organizational folders (display only).
+ *
+ * Moving never re-indexes: folders don't affect retrieval, so this is a pure
+ * filesystem relocation under ``raw/``.
+ */
+ readonly post: operations["move_kb_file_api_v1_knowledge__kb_name__files_move_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/folders": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Create Kb Folder
+ * @description Create an (organizational) folder under <kb>/raw/. No retrieval effect.
+ */
+ readonly post: operations["create_kb_folder_api_v1_knowledge__kb_name__folders_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/github-source": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Add Github Source */
+ readonly post: operations["add_github_source_api_v1_knowledge__kb_name__github_source_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/github-source/{source_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Remove Github Source */
+ readonly delete: operations["remove_github_source_api_v1_knowledge__kb_name__github_source__source_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/github-sources": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Github Sources */
+ readonly get: operations["get_github_sources_api_v1_knowledge__kb_name__github_sources_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/link-folder": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Link Folder
+ * @description Link a local folder to a knowledge base.
+ *
+ * This allows syncing documents from a local folder (which can be
+ * synced with SharePoint, Google Drive, OneLake, etc.) to the KB.
+ *
+ * The folder path supports:
+ * - Absolute paths: /Users/name/Documents or C:\Users\name\Documents
+ * - Home directory: ~/Documents
+ * - Relative paths (resolved from server working directory)
+ */
+ readonly post: operations["link_folder_api_v1_knowledge__kb_name__link_folder_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/linked-folders": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Linked Folders
+ * @description Get list of linked folders for a knowledge base.
+ */
+ readonly get: operations["get_linked_folders_api_v1_knowledge__kb_name__linked_folders_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/linked-folders/{folder_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Unlink Folder
+ * @description Unlink a folder from a knowledge base.
+ */
+ readonly delete: operations["unlink_folder_api_v1_knowledge__kb_name__linked_folders__folder_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/progress": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Progress
+ * @description Get initialization progress for a knowledge base
+ */
+ readonly get: operations["get_progress_api_v1_knowledge__kb_name__progress_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/progress/clear": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Clear Progress
+ * @description Clear progress file for a knowledge base (useful for stuck states)
+ */
+ readonly post: operations["clear_progress_api_v1_knowledge__kb_name__progress_clear_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/reindex": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Reindex Knowledge Base
+ * @description Re-index ``kb_name`` through its bound RAG provider.
+ *
+ * LlamaIndex still keys versions by the active embedding model. The other
+ * providers keep synthetic provider-keyed versions, so they should rebuild
+ * without requiring an embedding-signature precheck.
+ */
+ readonly post: operations["reindex_knowledge_base_api_v1_knowledge__kb_name__reindex_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/retry": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Retry Knowledge Base
+ * @description Retry a failed KB initialization/indexing run from its stored raw files.
+ */
+ readonly post: operations["retry_knowledge_base_api_v1_knowledge__kb_name__retry_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/sync-folder/{folder_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Sync Folder
+ * @description Sync files from a linked folder to the knowledge base.
+ *
+ * This scans the linked folder for supported documents and processes
+ * any new files that haven't been added yet.
+ */
+ readonly post: operations["sync_folder_api_v1_knowledge__kb_name__sync_folder__folder_id__post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/sync-github": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Sync Github Sources */
+ readonly post: operations["sync_github_sources_api_v1_knowledge__kb_name__sync_github_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/sync-web": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Sync Web Sources
+ * @description Run one bounded crawl-and-sync pass for every enabled web source.
+ */
+ readonly post: operations["sync_web_sources_api_v1_knowledge__kb_name__sync_web_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/upload": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Upload Files
+ * @description Upload files to a knowledge base and process them in background.
+ *
+ * ``dest_subdir`` places the whole batch under that folder inside the KB.
+ * A browser folder pick reports each file's path relative to the chosen
+ * directory, so the directory's own ancestors never reach the server; this
+ * is how a caller adding one subtree at a time re-attaches it where it
+ * belongs instead of piling every batch at the root (#866).
+ */
+ readonly post: operations["upload_files_api_v1_knowledge__kb_name__upload_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/web-source": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Add Web Source */
+ readonly post: operations["add_web_source_api_v1_knowledge__kb_name__web_source_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/web-source/{source_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Remove Web Source */
+ readonly delete: operations["remove_web_source_api_v1_knowledge__kb_name__web_source__source_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/{kb_name}/web-sources": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Web Sources */
+ readonly get: operations["get_web_sources_api_v1_knowledge__kb_name__web_sources_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/configs": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get All Kb Configs
+ * @description Get all knowledge base configurations from centralized config file.
+ */
+ readonly get: operations["get_all_kb_configs_api_v1_knowledge_configs_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/configs/sync": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Sync Configs From Metadata
+ * @description Sync all KB configurations from their metadata.json files to centralized config.
+ */
+ readonly post: operations["sync_configs_from_metadata_api_v1_knowledge_configs_sync_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/connect-folder": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Connect Linked Folder Route
+ * @description Mount an existing engine index as a read-only ``linked`` knowledge base.
+ *
+ * Re-probes server-side (never trusts the client's verdict), then registers a
+ * pointer to the folder. Retrieval reads the index in place — no copy, no
+ * re-index. Embedding-mismatch warnings do not block the link (the user may
+ * switch embedding models later); a missing/invalid index does.
+ */
+ readonly post: operations["connect_linked_folder_route_api_v1_knowledge_connect_folder_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/connect-ima": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Connect Ima Route
+ * @description Connect a Tencent IMA knowledge base as a retrieval-only knowledge base.
+ *
+ * Re-probes server-side (never trusts the client's verdict), then registers a
+ * pointer (``type: ima``). Retrieval is offloaded to IMA's ``search_knowledge``
+ * OpenAPI — no copy, no local index.
+ *
+ * Credentials the request omits come from the account-level settings and are
+ * *not* copied onto the KB, so rotating them there keeps this KB working.
+ */
+ readonly post: operations["connect_ima_route_api_v1_knowledge_connect_ima_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/connect-lightrag-server": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Connect Lightrag Server Route
+ * @description Connect an external LightRAG server as a retrieval-only knowledge base.
+ *
+ * Re-probes server-side (never trusts the client's verdict), then registers a
+ * pointer (``type: lightrag_server``). Retrieval is offloaded to the server's
+ * ``/query`` endpoint — no copy, no local index.
+ */
+ readonly post: operations["connect_lightrag_server_route_api_v1_knowledge_connect_lightrag_server_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/connect-marginnote4": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Connect Marginnote4
+ * @description Register a connected MarginNote 4 library as a knowledge base.
+ *
+ * Creates a ``type: marginnote4`` pointer so the MarginNote capability can
+ * bind to it on turns where the user selects this KB. When ``db_path`` is
+ * omitted the capability derives a default SQLite path from the KB name.
+ */
+ readonly post: operations["connect_marginnote4_api_v1_knowledge_connect_marginnote4_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/connect-obsidian": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Connect Obsidian Vault
+ * @description Connect an existing Obsidian vault as a knowledge base.
+ *
+ * Registers a pointer to the user's vault directory (``type: obsidian``) — no
+ * upload, no index. The vault must be a directory the server can reach (i.e. a
+ * local/self-hosted deployment); the Obsidian capability reads it live.
+ */
+ readonly post: operations["connect_obsidian_vault_api_v1_knowledge_connect_obsidian_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/connect-weknora": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Connect Weknora Route
+ * @description Connect a self-hosted WeKnora knowledge base for retrieval only.
+ */
+ readonly post: operations["connect_weknora_route_api_v1_knowledge_connect_weknora_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/create": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Create Knowledge Base
+ * @description Create a new knowledge base and initialize it with files.
+ */
+ readonly post: operations["create_knowledge_base_api_v1_knowledge_create_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/default": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Default Kb
+ * @description Get the default knowledge base.
+ */
+ readonly get: operations["get_default_kb_api_v1_knowledge_default_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/default/{kb_name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Set Default Kb
+ * @description Set the default knowledge base.
+ */
+ readonly put: operations["set_default_kb_api_v1_knowledge_default__kb_name__put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/health": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Health Check
+ * @description Health check endpoint
+ */
+ readonly get: operations["health_check_api_v1_knowledge_health_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/list": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Knowledge Bases
+ * @description List all available knowledge bases with their details.
+ */
+ readonly get: operations["list_knowledge_bases_api_v1_knowledge_list_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/list-ima": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * List Ima Route
+ * @description List IMA knowledge bases without storing or echoing credentials.
+ */
+ readonly post: operations["list_ima_route_api_v1_knowledge_list_ima_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/probe-folder": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Probe Linked Folder Route
+ * @description Inspect a local folder for a ready engine index before linking it.
+ *
+ * Returns the probe verdict (ready index? embedding compatible? warnings?) so
+ * the UI can present and confirm before any registration happens. Does not
+ * create a knowledge base.
+ */
+ readonly post: operations["probe_linked_folder_route_api_v1_knowledge_probe_folder_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/probe-ima": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Probe Ima Route
+ * @description Test-connect to a Tencent IMA knowledge base before binding a KB to it.
+ *
+ * Returns the verdict (credentials accepted? does the library id resolve, and
+ * what is it called?) so the UI can confirm before any registration happens.
+ * Creates nothing.
+ */
+ readonly post: operations["probe_ima_route_api_v1_knowledge_probe_ima_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/probe-lightrag-server": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Probe Lightrag Server Route
+ * @description Test-connect to an external LightRAG server before binding a KB to it.
+ *
+ * Returns the verdict (reachable? is it a LightRAG server? API key accepted?)
+ * so the UI can confirm before any registration happens. Creates nothing.
+ */
+ readonly post: operations["probe_lightrag_server_route_api_v1_knowledge_probe_lightrag_server_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/probe-weknora": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Probe Weknora Route
+ * @description Validate a WeKnora server and knowledge-base binding without registering.
+ */
+ readonly post: operations["probe_weknora_route_api_v1_knowledge_probe_weknora_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/{provider}/preflight": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Rag Pipeline Preflight
+ * @description Check whether ``provider`` can run in the current environment.
+ *
+ * Returns ``{ok, checks:[{key,label,ok,detail,optional}]}`` — package
+ * install, API key, and active model requirements per engine.
+ */
+ readonly get: operations["get_rag_pipeline_preflight_api_v1_knowledge_rag_pipelines__provider__preflight_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/active-model": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Set Rag Active Model
+ * @description Set the active model for an engine's required kind, applied immediately.
+ *
+ * This is the same active selection the model catalog manages; switching it
+ * here affects every engine that uses that kind (the active model is global).
+ */
+ readonly put: operations["set_rag_active_model_api_v1_knowledge_rag_pipelines_active_model_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/graphrag/config": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Graphrag Pipeline Config
+ * @description Read GraphRAG's query knobs (response style, community granularity).
+ */
+ readonly get: operations["get_graphrag_pipeline_config_api_v1_knowledge_rag_pipelines_graphrag_config_get"];
+ /**
+ * Update Graphrag Pipeline Config
+ * @description Persist GraphRAG's query knobs. Takes effect on the next query.
+ */
+ readonly put: operations["update_graphrag_pipeline_config_api_v1_knowledge_rag_pipelines_graphrag_config_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/graphrag/model-compatibility": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Graphrag Model Compatibility
+ * @description Test GraphRAG structured output without changing the active chat model.
+ */
+ readonly post: operations["test_graphrag_model_compatibility_api_v1_knowledge_rag_pipelines_graphrag_model_compatibility_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/ima/config": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Ima Pipeline Config
+ * @description Read the account-level IMA credentials (key redacted to a boolean).
+ */
+ readonly get: operations["get_ima_pipeline_config_api_v1_knowledge_rag_pipelines_ima_config_get"];
+ /**
+ * Update Ima Pipeline Config
+ * @description Persist the account-level IMA Client ID / API key.
+ */
+ readonly put: operations["update_ima_pipeline_config_api_v1_knowledge_rag_pipelines_ima_config_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/lightrag-server/config": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Lightrag Server Pipeline Config
+ * @description Read reusable server defaults with the API key redacted.
+ */
+ readonly get: operations["get_lightrag_server_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_server_config_get"];
+ /**
+ * Update Lightrag Server Pipeline Config
+ * @description Persist reusable defaults without changing existing KB bindings.
+ */
+ readonly put: operations["update_lightrag_server_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_server_config_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/lightrag/config": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Lightrag Pipeline Config
+ * @description Read LightRAG's query knobs plus its indexing concurrency/extraction knobs.
+ */
+ readonly get: operations["get_lightrag_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_config_get"];
+ /**
+ * Update Lightrag Pipeline Config
+ * @description Persist LightRAG's knobs.
+ *
+ * Query knobs (``top_k``, ``response_type``) take effect on the next query;
+ * the indexing knobs shape how a KB is built, so they apply to the next
+ * build or rebuild.
+ */
+ readonly put: operations["update_lightrag_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_config_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/llamaindex/config": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Llamaindex Pipeline Config
+ * @description Read the LlamaIndex engine's retrieval + chunking knobs.
+ */
+ readonly get: operations["get_llamaindex_pipeline_config_api_v1_knowledge_rag_pipelines_llamaindex_config_get"];
+ /**
+ * Update Llamaindex Pipeline Config
+ * @description Persist the LlamaIndex engine knobs.
+ *
+ * Retrieval knobs take effect on the next query; indexing knobs only affect
+ * documents processed after the save.
+ */
+ readonly put: operations["update_llamaindex_pipeline_config_api_v1_knowledge_rag_pipelines_llamaindex_config_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/model-options": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Rag Model Options
+ * @description List configured models (secret-free) for the requested model kinds.
+ */
+ readonly get: operations["get_rag_model_options_api_v1_knowledge_rag_pipelines_model_options_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-pipelines/pageindex/config": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Pageindex Pipeline Config
+ * @description Read the PageIndex credential state (key redacted to a boolean).
+ */
+ readonly get: operations["get_pageindex_pipeline_config_api_v1_knowledge_rag_pipelines_pageindex_config_get"];
+ /**
+ * Update Pageindex Pipeline Config
+ * @description Persist the deployment-level PageIndex Cloud credential.
+ */
+ readonly put: operations["update_pageindex_pipeline_config_api_v1_knowledge_rag_pipelines_pageindex_config_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-providers": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Rag Providers
+ * @description Get list of available RAG providers (with the active per-engine mode).
+ */
+ readonly get: operations["get_rag_providers_api_v1_knowledge_rag_providers_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/rag-providers/{provider}/mode": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Set Rag Provider Mode
+ * @description Persist the default retrieval mode for a mode-aware engine.
+ *
+ * The mode must be one the engine supports; a KB's own ``search_mode`` still
+ * overrides this per-KB default.
+ */
+ readonly put: operations["set_rag_provider_mode_api_v1_knowledge_rag_providers__provider__mode_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/supported-file-types": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Supported File Types
+ * @description Return the current upload policy so the web client stays in sync.
+ */
+ readonly get: operations["get_supported_file_types_api_v1_knowledge_supported_file_types_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/knowledge/tasks/{task_id}/stream": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Stream Task Logs
+ * @description Stream task-specific logs for knowledge-base operations.
+ */
+ readonly get: operations["stream_task_logs_api_v1_knowledge_tasks__task_id__stream_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List All Progress */
+ readonly get: operations["list_all_progress_api_v1_learning_progress_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Progress */
+ readonly get: operations["get_progress_api_v1_learning_progress__book_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Progress */
+ readonly delete: operations["delete_progress_api_v1_learning_progress__book_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /**
+ * Rename Progress
+ * @description Rename a path — the only edit that is the learner's rather than the tutor's.
+ *
+ * Guarded like every other path mutation so a rename cannot interleave with a
+ * tutoring turn's own commit, and emitted as an event so the activity feed
+ * records who called it what.
+ */
+ readonly patch: operations["rename_progress_api_v1_learning_progress__book_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/events": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Progress Events
+ * @description Ordered, redacted domain events for reconnect and incremental UI sync.
+ */
+ readonly get: operations["get_progress_events_api_v1_learning_progress__book_id__events_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/generate-from-notebook": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Generate From Notebook */
+ readonly post: operations["generate_from_notebook_api_v1_learning_progress__book_id__generate_from_notebook_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/generate-from-reading": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Generate From Reading
+ * @description Create a mastery curriculum from a private reading workspace.
+ */
+ readonly post: operations["generate_from_reading_api_v1_learning_progress__book_id__generate_from_reading_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/import-from-book": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Import From Book */
+ readonly post: operations["import_from_book_api_v1_learning_progress__book_id__import_from_book_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/init-modules": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Init Modules */
+ readonly post: operations["init_modules_api_v1_learning_progress__book_id__init_modules_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/map": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Progress Map
+ * @description The dashboard view of a path: the gate-decided next step plus a map of
+ * every objective's status (new / learning / mastered). The per-type gate
+ * lives in ``learning.policy`` so the dashboard and the tutor agree.
+ */
+ readonly get: operations["get_progress_map_api_v1_learning_progress__book_id__map_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/objectives/{kp_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Objective Report
+ * @description The evidence behind one objective: attempts, schedule, errors, prompts.
+ *
+ * ``policy.objective_report`` is pure over the aggregate, so the questions
+ * themselves — which live in the durable interaction log, not the aggregate —
+ * are joined on here, redacted of their answer keys.
+ */
+ readonly get: operations["get_objective_report_api_v1_learning_progress__book_id__objectives__kp_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/redo": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Redo Progress */
+ readonly post: operations["redo_progress_api_v1_learning_progress__book_id__redo_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/sessions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Progress Sessions
+ * @description Expose the explicit conversation associations for this path.
+ */
+ readonly get: operations["get_progress_sessions_api_v1_learning_progress__book_id__sessions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/progress/{book_id}/skip-question": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Skip Pending Question
+ * @description Drop an outstanding question the learner can no longer answer.
+ *
+ * The narrow escape hatch for a path stalled on ``answer_pending``; unlike
+ * ``redo`` it keeps every mastery level and review the learner has earned.
+ */
+ readonly post: operations["skip_pending_question_api_v1_learning_progress__book_id__skip_question_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Topics */
+ readonly get: operations["list_topics_api_v1_learning_topics_get"];
+ readonly put?: never;
+ /** Create Topic */
+ readonly post: operations["create_topic_api_v1_learning_topics_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics/{path_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Topic */
+ readonly get: operations["get_topic_api_v1_learning_topics__path_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics/{path_id}/ask-hint": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Topic Ask Hint
+ * @description One question the learner could ask here, for the composer placeholder.
+ *
+ * Written by the task model, never blocking: an empty ``hint`` means the
+ * composer keeps the static placeholder it has always had.
+ */
+ readonly get: operations["get_topic_ask_hint_api_v1_learning_topics__path_id__ask_hint_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics/{path_id}/map": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Edit Topic Map */
+ readonly put: operations["edit_topic_map_api_v1_learning_topics__path_id__map_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics/{path_id}/objectives/{kp_id}/override": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Set Learner Override */
+ readonly post: operations["set_learner_override_api_v1_learning_topics__path_id__objectives__kp_id__override_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics/{path_id}/sessions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Topic Sessions */
+ readonly get: operations["list_topic_sessions_api_v1_learning_topics__path_id__sessions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics/draft": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Generate Topic Route */
+ readonly post: operations["generate_topic_route_api_v1_learning_topics_draft_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/learning/topics/index": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Topic Index
+ * @description Just enough to *name* a topic: id, title, emoji.
+ *
+ * The sidebar groups study conversations under their topic, and it refreshes
+ * on every stream end. ``/topics`` answers with each path's whole knowledge
+ * map, review queue and source excerpts — kilobytes per topic, none of which
+ * a group header renders. This is the same walk with the payload cut to what
+ * a label needs.
+ *
+ * Declared above ``/topics/{path_id}``: that route matches any single
+ * segment, so a literal path below it would never be reached.
+ */
+ readonly get: operations["list_topic_index_api_v1_learning_topics_index_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/marginnote4/devices": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Devices
+ * @description List all paired devices.
+ */
+ readonly get: operations["list_devices_api_v1_marginnote4_devices_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/marginnote4/devices/{device_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Revoke Device
+ * @description Revoke a paired device.
+ */
+ readonly delete: operations["revoke_device_api_v1_marginnote4_devices__device_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/marginnote4/heartbeat": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Heartbeat
+ * @description Lightweight liveness check. Updates last_seen for the device.
+ */
+ readonly post: operations["heartbeat_api_v1_marginnote4_heartbeat_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/marginnote4/pair": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Pair Device
+ * @description Pair a new MN4 device. Requires a DeepTutor session.
+ *
+ * Returns a one-time token the Add-on stores and presents on every sync.
+ */
+ readonly post: operations["pair_device_api_v1_marginnote4_pair_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/marginnote4/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Status
+ * @description Health check and summary stats.
+ */
+ readonly get: operations["status_api_v1_marginnote4_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/marginnote4/sync": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Sync Objects
+ * @description Receive an incremental sync batch from a paired MN4 device.
+ */
+ readonly post: operations["sync_objects_api_v1_marginnote4_sync_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/backup": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Backups */
+ readonly get: operations["list_backups_api_v1_memory_backup_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Doc */
+ readonly get: operations["get_doc_api_v1_memory_doc__layer___key__get"];
+ /** Put Doc */
+ readonly put: operations["put_doc_api_v1_memory_doc__layer___key__put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}/apply": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Apply Doc Ops
+ * @description Commit a list of previously-previewed ops to a doc atomically.
+ */
+ readonly post: operations["apply_doc_ops_api_v1_memory_doc__layer___key__apply_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}/audit": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Audit Doc */
+ readonly post: operations["audit_doc_api_v1_memory_doc__layer___key__audit_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}/dedup": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Dedup Doc */
+ readonly post: operations["dedup_doc_api_v1_memory_doc__layer___key__dedup_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}/entry/{entry_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Entry */
+ readonly delete: operations["delete_entry_api_v1_memory_doc__layer___key__entry__entry_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}/lines": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Doc Lines
+ * @description Return the line-numbered, footnote-stripped view of a doc.
+ *
+ * Used by the workbench's "show line numbers" toggle so the same line
+ * indices the audit/dedup LLMs see are visible to the user. Footnote
+ * block is omitted because edit ops never reference it directly.
+ */
+ readonly get: operations["get_doc_lines_api_v1_memory_doc__layer___key__lines_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}/reset": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Reset Doc
+ * @description Wipe the doc + its meta sidecar so the next update starts fresh.
+ *
+ * Destructive — the caller has confirmed. After this returns the .md
+ * file is gone *and* the ``seen_entity_refs`` set is cleared, so a
+ * subsequent ``run_update`` re-ingests every L1 entity instead of
+ * treating them as already-seen.
+ *
+ * Refuses while a consolidator run is active on this doc; the caller
+ * can cancel first.
+ */
+ readonly post: operations["reset_doc_api_v1_memory_doc__layer___key__reset_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/doc/{layer}/{key}/update": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Update Doc */
+ readonly post: operations["update_doc_api_v1_memory_doc__layer___key__update_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/overview": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Overview */
+ readonly get: operations["get_overview_api_v1_memory_overview_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/resolve_entry/{entry_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Resolve Entry
+ * @description Find which L2 doc owns this entry id.
+ *
+ * L3 docs cite L2 entries by their ``m_<ULID>`` entry id; the workbench
+ * UI uses this resolver to turn an L3 footnote click into a navigation
+ * to the right L2 surface + scroll-to anchor.
+ *
+ * Scans the seven L2 mds in order; first hit wins. 404 if no L2 doc
+ * contains the id (e.g. the entry was deleted or the id is stale).
+ */
+ readonly get: operations["resolve_entry_api_v1_memory_resolve_entry__entry_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/runs": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Runs */
+ readonly get: operations["list_runs_api_v1_memory_runs_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/runs/{run_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Run */
+ readonly get: operations["get_run_api_v1_memory_runs__run_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/runs/{run_id}/cancel": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Cancel Run */
+ readonly post: operations["cancel_run_api_v1_memory_runs__run_id__cancel_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/runs/{run_id}/events": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Stream Run Events
+ * @description SSE-replay events from ``since`` (exclusive) until the run ends.
+ *
+ * Reconnecting after a refresh: pass the largest ``seq`` previously
+ * observed. The manager replays the buffered tail, then blocks on
+ * new events until the run reaches a terminal state.
+ */
+ readonly get: operations["stream_run_events_api_v1_memory_runs__run_id__events_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/runs/{run_id}/undo": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Undo Run Edit */
+ readonly post: operations["undo_run_edit_api_v1_memory_runs__run_id__undo_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/runs/start": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Start Run
+ * @description Start one consolidator mode and return a run handle.
+ *
+ * The run survives client disconnects; reconnect via
+ * ``GET /runs/{id}/events?since=N``.
+ */
+ readonly post: operations["start_run_api_v1_memory_runs_start_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/settings": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Memory Settings Endpoint
+ * @description Return the current ``memory:`` subtree (defaults merged in).
+ */
+ readonly get: operations["get_memory_settings_endpoint_api_v1_memory_settings_get"];
+ /**
+ * Put Memory Settings
+ * @description Merge the payload into the ``memory:`` subtree and persist.
+ */
+ readonly put: operations["put_memory_settings_api_v1_memory_settings_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/snapshot/{surface}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Snapshot
+ * @description Return the current entity list for ``surface`` from workspace.
+ *
+ * Snapshot is always derived live from workspace at call time. The response
+ * also includes ``pending_changes`` — the diff vs the last persisted state.
+ * Refresh commits these pending changes into ``changes.jsonl``.
+ */
+ readonly get: operations["get_snapshot_api_v1_memory_snapshot__surface__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/snapshot/{surface}/changes": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Changes */
+ readonly get: operations["get_changes_api_v1_memory_snapshot__surface__changes_get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Clear Snapshot Changes */
+ readonly delete: operations["clear_snapshot_changes_api_v1_memory_snapshot__surface__changes_delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/snapshot/{surface}/refresh": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Refresh Snapshot
+ * @description Reconcile persisted state with current workspace; record diffs.
+ */
+ readonly post: operations["refresh_snapshot_api_v1_memory_snapshot__surface__refresh_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/trace/{surface}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Trace */
+ readonly get: operations["get_trace_api_v1_memory_trace__surface__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Clear Trace */
+ readonly delete: operations["clear_trace_api_v1_memory_trace__surface__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/memory/trace/{surface}/day/{day}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Clear Trace Day */
+ readonly delete: operations["clear_trace_day_api_v1_memory_trace__surface__day__day__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/admin/books": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Admin Books */
+ readonly get: operations["admin_books_api_v1_multi_user_admin_books_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/admin/resources": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Admin Resources
+ * @description Everything an admin can assign to a user: models, KBs, skills, and
+ * the tool surface (system tools + MCP tools, same pool partners use).
+ */
+ readonly get: operations["admin_resources_api_v1_multi_user_admin_resources_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/admin/skills/install": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Admin Install Skill
+ * @description Install a hub skill into the admin catalog (``<hub>:<slug>[@version]``).
+ *
+ * The skill lands in the admin workspace — the same pool ``/admin/resources``
+ * lists — so it stays invisible to non-admin users until a grant assigns it.
+ * The install pipeline (verdict gate, safe extraction, ``always`` stripping)
+ * lives in :func:`deeptutor.services.skill.hub.install_from_hub`; this
+ * endpoint only chooses the target root and audits the action.
+ */
+ readonly post: operations["admin_install_skill_api_v1_multi_user_admin_skills_install_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/guardians": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Guardian Relationships */
+ readonly get: operations["list_guardian_relationships_api_v1_multi_user_guardians_get"];
+ readonly put?: never;
+ /** Authorize Guardian Relationship */
+ readonly post: operations["authorize_guardian_relationship_api_v1_multi_user_guardians_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/guardians/{relationship_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Revoke Guardian Relationship */
+ readonly delete: operations["revoke_guardian_relationship_api_v1_multi_user_guardians__relationship_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/learners/{learner_user_id}/credentials/reset": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Reset Learner Credentials */
+ readonly post: operations["reset_learner_credentials_api_v1_multi_user_learners__learner_user_id__credentials_reset_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/learners/{learner_user_id}/guardian-report": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Guardian Report */
+ readonly get: operations["guardian_report_api_v1_multi_user_learners__learner_user_id__guardian_report_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/learners/{learner_user_id}/materials": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Guardian Material Catalog */
+ readonly get: operations["guardian_material_catalog_api_v1_multi_user_learners__learner_user_id__materials_get"];
+ /** Assign Guardian Materials */
+ readonly put: operations["assign_guardian_materials_api_v1_multi_user_learners__learner_user_id__materials_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/learners/{learner_user_id}/restrictions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Guardian Restrictions */
+ readonly get: operations["get_guardian_restrictions_api_v1_multi_user_learners__learner_user_id__restrictions_get"];
+ /** Put Guardian Restrictions */
+ readonly put: operations["put_guardian_restrictions_api_v1_multi_user_learners__learner_user_id__restrictions_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/me/guardianships": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** My Guardianships */
+ readonly get: operations["my_guardianships_api_v1_multi_user_me_guardianships_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/me/guardianships/{relationship_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Revoke My Guardianship */
+ readonly delete: operations["revoke_my_guardianship_api_v1_multi_user_me_guardianships__relationship_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/users": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Multi User List Users */
+ readonly get: operations["multi_user_list_users_api_v1_multi_user_users_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/users/{user_id}/book-permission": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get User Book Permission */
+ readonly get: operations["get_user_book_permission_api_v1_multi_user_users__user_id__book_permission_get"];
+ /** Put User Book Permission */
+ readonly put: operations["put_user_book_permission_api_v1_multi_user_users__user_id__book_permission_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/multi-user/users/{user_id}/grants": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get User Grants */
+ readonly get: operations["get_user_grants_api_v1_multi_user_users__user_id__grants_get"];
+ /** Put User Grants */
+ readonly put: operations["put_user_grants_api_v1_multi_user_users__user_id__grants_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/{notebook_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Notebook
+ * @description Get notebook details
+ *
+ * Args:
+ * notebook_id: Notebook ID
+ *
+ * Returns:
+ * Notebook details (includes all records)
+ */
+ readonly get: operations["get_notebook_api_v1_notebook__notebook_id__get"];
+ /**
+ * Update Notebook
+ * @description Update notebook information
+ *
+ * Args:
+ * notebook_id: Notebook ID
+ * request: Update request
+ *
+ * Returns:
+ * Updated notebook information
+ */
+ readonly put: operations["update_notebook_api_v1_notebook__notebook_id__put"];
+ readonly post?: never;
+ /**
+ * Delete Notebook
+ * @description Delete notebook
+ *
+ * Args:
+ * notebook_id: Notebook ID
+ *
+ * Returns:
+ * Deletion result
+ */
+ readonly delete: operations["delete_notebook_api_v1_notebook__notebook_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/{notebook_id}/export": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Export Notebook
+ * @description Render the whole notebook as a single Markdown document.
+ */
+ readonly get: operations["export_notebook_api_v1_notebook__notebook_id__export_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/{notebook_id}/records/{record_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Update Record
+ * @description Update an existing notebook record in place.
+ */
+ readonly put: operations["update_record_api_v1_notebook__notebook_id__records__record_id__put"];
+ readonly post?: never;
+ /**
+ * Remove Record
+ * @description Remove record from notebook
+ *
+ * Args:
+ * notebook_id: Notebook ID
+ * record_id: Record ID
+ *
+ * Returns:
+ * Deletion result
+ */
+ readonly delete: operations["remove_record_api_v1_notebook__notebook_id__records__record_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/{notebook_id}/records/{record_id}/copy": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Copy Record
+ * @description Duplicate a record into another notebook under a fresh id.
+ */
+ readonly post: operations["copy_record_api_v1_notebook__notebook_id__records__record_id__copy_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/{notebook_id}/records/{record_id}/move": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Move Record
+ * @description Move a record from this notebook into another one.
+ */
+ readonly post: operations["move_record_api_v1_notebook__notebook_id__records__record_id__move_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/add_record": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Add Record
+ * @description Add record to notebook
+ *
+ * Args:
+ * request: Add record request
+ *
+ * Returns:
+ * Addition result
+ */
+ readonly post: operations["add_record_api_v1_notebook_add_record_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/add_record_with_summary": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Add Record With Summary
+ * @description Add record to notebook and stream generated summary.
+ */
+ readonly post: operations["add_record_with_summary_api_v1_notebook_add_record_with_summary_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/create": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Create Notebook
+ * @description Create new notebook
+ *
+ * Args:
+ * request: Create request
+ *
+ * Returns:
+ * Created notebook information
+ */
+ readonly post: operations["create_notebook_api_v1_notebook_create_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/health": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Health Check
+ * @description Health check
+ */
+ readonly get: operations["health_check_api_v1_notebook_health_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/list": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Notebooks
+ * @description Get all notebook list
+ *
+ * Returns:
+ * Notebook list (includes summary information)
+ */
+ readonly get: operations["list_notebooks_api_v1_notebook_list_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/notebook/statistics": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Statistics
+ * @description Get notebook statistics
+ *
+ * Returns:
+ * Statistics information
+ */
+ readonly get: operations["get_statistics_api_v1_notebook_statistics_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Partner Groups */
+ readonly get: operations["list_partner_groups_api_v1_partner_groups_get"];
+ readonly put?: never;
+ /** Create Partner Group */
+ readonly post: operations["create_partner_group_api_v1_partner_groups_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Partner Group */
+ readonly get: operations["get_partner_group_api_v1_partner_groups__group_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Partner Group */
+ readonly delete: operations["delete_partner_group_api_v1_partner_groups__group_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Partner Group */
+ readonly patch: operations["update_partner_group_api_v1_partner_groups__group_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/history": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Partner Group History */
+ readonly get: operations["partner_group_history_api_v1_partner_groups__group_id__history_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/invocations": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Partner Group Invocations */
+ readonly get: operations["partner_group_invocations_api_v1_partner_groups__group_id__invocations_get"];
+ readonly put?: never;
+ /** Create Partner Invocation */
+ readonly post: operations["create_partner_invocation_api_v1_partner_groups__group_id__invocations_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/invocations/{invocation_id}/approve": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Approve Partner Invocation */
+ readonly post: operations["approve_partner_invocation_api_v1_partner_groups__group_id__invocations__invocation_id__approve_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/invocations/{invocation_id}/reject": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Reject Partner Invocation */
+ readonly post: operations["reject_partner_invocation_api_v1_partner_groups__group_id__invocations__invocation_id__reject_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/messages": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Send Partner Group Message */
+ readonly post: operations["send_partner_group_message_api_v1_partner_groups__group_id__messages_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/rounds/{turn_id}/summary": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Summarize Partner Group Round */
+ readonly post: operations["summarize_partner_group_round_api_v1_partner_groups__group_id__rounds__turn_id__summary_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/sessions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Partner Group Sessions */
+ readonly get: operations["list_partner_group_sessions_api_v1_partner_groups__group_id__sessions_get"];
+ readonly put?: never;
+ /** Create Partner Group Session */
+ readonly post: operations["create_partner_group_session_api_v1_partner_groups__group_id__sessions_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/sessions/{session_key}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Partner Group Session */
+ readonly delete: operations["delete_partner_group_session_api_v1_partner_groups__group_id__sessions__session_key__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/turns/{turn_id}/partners/{partner_id}/retry": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Retry Partner Group Seat */
+ readonly post: operations["retry_partner_group_seat_api_v1_partner_groups__group_id__turns__turn_id__partners__partner_id__retry_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/whiteboard": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Partner Group Whiteboard */
+ readonly get: operations["partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/whiteboard/pins": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Pin Partner Group Whiteboard */
+ readonly post: operations["pin_partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_pins_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/{group_id}/whiteboard/pins/{event_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Unpin Partner Group Whiteboard */
+ readonly delete: operations["unpin_partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_pins__event_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/discussion-modes": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Discussion Modes */
+ readonly get: operations["list_discussion_modes_api_v1_partner_groups_discussion_modes_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partner-groups/shared-memory-types": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Shared Memory Types */
+ readonly get: operations["list_shared_memory_types_api_v1_partner_groups_shared_memory_types_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Partners
+ * @description Partners the caller may talk to — theirs in full, assigned ones as cards.
+ */
+ readonly get: operations["list_partners_api_v1_partners_get"];
+ readonly put?: never;
+ /**
+ * Create Partner
+ * @description Create a partner owned by the caller.
+ *
+ * Anyone may build their own companion; the assets it is provisioned with are
+ * resolved against the creator's own permissions (see ``provision_assets``),
+ * so this hands nobody access they did not already have.
+ */
+ readonly post: operations["create_partner_api_v1_partners_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Partner
+ * @description One partner, projected by what the caller may do with it.
+ *
+ * Someone who merely *uses* the partner gets its identity card — enough to
+ * render a conversation header — while its owner gets the configuration.
+ */
+ readonly get: operations["get_partner_api_v1_partners__partner_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Destroy Partner */
+ readonly delete: operations["destroy_partner_api_v1_partners__partner_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Partner */
+ readonly patch: operations["update_partner_api_v1_partners__partner_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/assets": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Partner Assets */
+ readonly get: operations["get_partner_assets_api_v1_partners__partner_id__assets_get"];
+ readonly put?: never;
+ /** Add Partner Assets */
+ readonly post: operations["add_partner_assets_api_v1_partners__partner_id__assets_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/assets/{asset_type}/{name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Partner Asset */
+ readonly delete: operations["delete_partner_asset_api_v1_partners__partner_id__assets__asset_type___name__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/channel-onboarding/{session_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Partner Channel Onboarding */
+ readonly get: operations["get_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Cancel Partner Channel Onboarding */
+ readonly delete: operations["cancel_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/channel-onboarding/{session_id}/apply": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Apply Partner Channel Onboarding */
+ readonly post: operations["apply_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__apply_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/channel-onboarding/start": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Start Partner Channel Onboarding */
+ readonly post: operations["start_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding_start_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/channels/reload": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Reload Partner Channels */
+ readonly post: operations["reload_partner_channels_api_v1_partners__partner_id__channels_reload_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/channels/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Partner Channel Status
+ * @description User-facing listener/setup state, including QR output when available.
+ */
+ readonly get: operations["get_partner_channel_status_api_v1_partners__partner_id__channels_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/channels/weixin/qr": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Start Weixin Qr
+ * @description Issue a QR code for this partner and return what to render.
+ */
+ readonly post: operations["start_weixin_qr_api_v1_partners__partner_id__channels_weixin_qr_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/channels/weixin/qr/{session_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Poll Weixin Qr
+ * @description Advance the scan and report its state (never the token).
+ */
+ readonly get: operations["poll_weixin_qr_api_v1_partners__partner_id__channels_weixin_qr__session_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/chat": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Partner Chat Http
+ * @description Send one HTTP message to a partner with persistent session context.
+ */
+ readonly post: operations["partner_chat_http_api_v1_partners__partner_id__chat_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/chat/execute-stream": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Partner Chat Http Stream
+ * @description Stream one HTTP message to a partner as server-sent events.
+ */
+ readonly post: operations["partner_chat_http_stream_api_v1_partners__partner_id__chat_execute_stream_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/history": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Partner History
+ * @description Conversation history. Pass ``session_key`` for an exact key, or
+ * ``session_id`` for a web session (mapped through ``web_session_key``);
+ * with neither, all non-archived sessions are merged.
+ */
+ readonly get: operations["get_partner_history_api_v1_partners__partner_id__history_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/links": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Partner Links
+ * @description Your own linked chat accounts for this partner — never anyone else's.
+ */
+ readonly get: operations["list_partner_links_api_v1_partners__partner_id__links_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/links/{key}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Delete Partner Link
+ * @description Disconnect one of your chat accounts; its past messages stay yours.
+ */
+ readonly delete: operations["delete_partner_link_api_v1_partners__partner_id__links__key__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/links/code": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Create Partner Link Code
+ * @description Mint a code for connecting one of your chat accounts to this partner.
+ *
+ * Send ``/link <code>`` to the partner as a direct message from the chat
+ * account you want connected; that account then speaks as you.
+ */
+ readonly post: operations["create_partner_link_code_api_v1_partners__partner_id__links_code_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/sessions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Partner Sessions */
+ readonly get: operations["get_partner_sessions_api_v1_partners__partner_id__sessions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/sessions/archive": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Archive Partner Session
+ * @description Soft-archive a session (web /new) — it stays resumable, file untouched.
+ */
+ readonly post: operations["archive_partner_session_api_v1_partners__partner_id__sessions_archive_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/sessions/branch": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Branch Partner Session
+ * @description Copy a session's full history into a new key and archive the source.
+ */
+ readonly post: operations["branch_partner_session_api_v1_partners__partner_id__sessions_branch_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/sessions/delete": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Delete Partner Session */
+ readonly post: operations["delete_partner_session_api_v1_partners__partner_id__sessions_delete_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/sessions/resume": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Resume Partner Session
+ * @description Clear a session's archived flag so the web app can continue it.
+ */
+ readonly post: operations["resume_partner_session_api_v1_partners__partner_id__sessions_resume_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/soul": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Partner Soul */
+ readonly get: operations["get_partner_soul_api_v1_partners__partner_id__soul_get"];
+ /** Put Partner Soul */
+ readonly put: operations["put_partner_soul_api_v1_partners__partner_id__soul_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/start": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Start Partner */
+ readonly post: operations["start_partner_api_v1_partners__partner_id__start_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/{partner_id}/stop": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Stop Partner */
+ readonly post: operations["stop_partner_api_v1_partners__partner_id__stop_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/channels/schema": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Channel Schemas
+ * @description JSON-Schema metadata for every available channel (schema-driven UI).
+ */
+ readonly get: operations["list_channel_schemas_api_v1_partners_channels_schema_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/commands/palette": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Partner Command Palette */
+ readonly get: operations["partner_command_palette_api_v1_partners_commands_palette_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/drafts/{draft_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Partner Draft
+ * @description Reload one pending/created draft for the authenticated user.
+ */
+ readonly get: operations["get_partner_draft_api_v1_partners_drafts__draft_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/drafts/{draft_id}/confirm": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Confirm Partner Draft
+ * @description Promote a reviewable Chat draft into a real Partner exactly once.
+ */
+ readonly post: operations["confirm_partner_draft_api_v1_partners_drafts__draft_id__confirm_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/recent": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Recent Partners */
+ readonly get: operations["recent_partners_api_v1_partners_recent_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/soul-sources": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Soul Sources
+ * @description Everything the create-wizard's soul step can start from.
+ */
+ readonly get: operations["soul_sources_api_v1_partners_soul_sources_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/souls": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Souls */
+ readonly get: operations["list_souls_api_v1_partners_souls_get"];
+ readonly put?: never;
+ /** Create Soul */
+ readonly post: operations["create_soul_api_v1_partners_souls_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/souls/{soul_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Soul */
+ readonly get: operations["get_soul_api_v1_partners_souls__soul_id__get"];
+ /** Update Soul */
+ readonly put: operations["update_soul_api_v1_partners_souls__soul_id__put"];
+ readonly post?: never;
+ /** Delete Soul */
+ readonly delete: operations["delete_soul_api_v1_partners_souls__soul_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/partners/tool-options": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Tool Options
+ * @description The configurable tool surface for a partner.
+ *
+ * ``tools`` mirrors the user-toggleable system tools (the same pool the
+ * chat composer / settings expose); ``builtin_tools`` lists the auto-mounted
+ * built-in tools (rag / web_fetch / …) the owner can allow or deny;
+ * ``mcp_tools`` lists every configured MCP tool the partner could be allowed
+ * to load. ``read_memory`` / ``write_memory`` are excluded: partners use the
+ * mandatory ``partner_read`` / ``partner_memorize`` / ``partner_search`` tools
+ * instead, which are always on and not owner-configurable.
+ */
+ readonly get: operations["tool_options_api_v1_partners_tool_options_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/personas/{name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Persona */
+ readonly get: operations["get_persona_api_v1_personas__name__get"];
+ /** Update Persona */
+ readonly put: operations["update_persona_api_v1_personas__name__put"];
+ readonly post?: never;
+ /** Delete Persona */
+ readonly delete: operations["delete_persona_api_v1_personas__name__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/personas/create": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Create Persona */
+ readonly post: operations["create_persona_api_v1_personas_create_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/personas/list": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Personas */
+ readonly get: operations["list_personas_api_v1_personas_list_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/categories": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Categories
+ * @description Categories, with their counts scoped the same way the listing is.
+ *
+ * Without the scope the rail would offer "Address translation 3" inside a
+ * course holding none of those three.
+ */
+ readonly get: operations["list_categories_api_v1_question_notebook_categories_get"];
+ readonly put?: never;
+ /** Create Category */
+ readonly post: operations["create_category_api_v1_question_notebook_categories_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/categories/{category_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Category */
+ readonly delete: operations["delete_category_api_v1_question_notebook_categories__category_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Rename Category */
+ readonly patch: operations["rename_category_api_v1_question_notebook_categories__category_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/entries": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Entries */
+ readonly get: operations["list_entries_api_v1_question_notebook_entries_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/entries/{entry_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Entry */
+ readonly get: operations["get_entry_api_v1_question_notebook_entries__entry_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Entry */
+ readonly delete: operations["delete_entry_api_v1_question_notebook_entries__entry_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Entry */
+ readonly patch: operations["update_entry_api_v1_question_notebook_entries__entry_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/entries/{entry_id}/categories": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Add Entry To Category */
+ readonly post: operations["add_entry_to_category_api_v1_question_notebook_entries__entry_id__categories_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/entries/{entry_id}/categories/{category_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Remove Entry From Category */
+ readonly delete: operations["remove_entry_from_category_api_v1_question_notebook_entries__entry_id__categories__category_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/entries/categories/bulk": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Bulk Link Entries */
+ readonly post: operations["bulk_link_entries_api_v1_question_notebook_entries_categories_bulk_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/entries/lookup/by-question": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Lookup Entry */
+ readonly get: operations["lookup_entry_api_v1_question_notebook_entries_lookup_by_question_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/entries/upsert": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Upsert Single Entry */
+ readonly post: operations["upsert_single_entry_api_v1_question_notebook_entries_upsert_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/materials": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Question Bank Materials
+ * @description Materials represented in the unified review history.
+ */
+ readonly get: operations["list_question_bank_materials_api_v1_question_notebook_materials_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/question-notebook/stats": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Question Bank Stats
+ * @description Counts behind the filter chips; also the agent's one-call overview.
+ *
+ * Takes the same course scope as the listing: showing one course's questions
+ * next to whole-library counts would make the rail lie about how much is there.
+ */
+ readonly get: operations["question_bank_stats_api_v1_question_notebook_stats_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/epub-pairings": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Epub Pairings */
+ readonly get: operations["epub_pairings_api_v1_reading_epub_pairings_get"];
+ readonly put?: never;
+ /** Create Epub Pairing */
+ readonly post: operations["create_epub_pairing_api_v1_reading_epub_pairings_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/epub-pairings/{pairing_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Remove Epub Pairing */
+ readonly delete: operations["remove_epub_pairing_api_v1_reading_epub_pairings__pairing_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/extensions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Extensions */
+ readonly get: operations["list_extensions_api_v1_reading_extensions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/library/duplicate-check": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Duplicate Check
+ * @description Say what the library already holds, before anything is uploaded.
+ *
+ * Identical bytes are answered from the content id the browser computed;
+ * a same-name-different-content upload is the genuinely ambiguous case and
+ * is reported separately so the client can ask instead of guessing.
+ */
+ readonly post: operations["duplicate_check_api_v1_reading_library_duplicate_check_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/library/import-urls": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Import Urls
+ * @description Queue safe webpage, YouTube, or Bilibili imports into a workspace.
+ */
+ readonly post: operations["import_urls_api_v1_reading_library_import_urls_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/library/materials": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Library Materials
+ * @description Every material the owner has, with the collections holding each one.
+ *
+ * Membership travels with the row because the library view exists to answer
+ * "where is this used, and what did I upload that is used nowhere" — a
+ * question the client cannot ask one material at a time.
+ */
+ readonly get: operations["list_library_materials_api_v1_reading_library_materials_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Materials */
+ readonly get: operations["list_materials_api_v1_reading_materials_get"];
+ readonly put?: never;
+ /**
+ * Upload Material
+ * @description Ingest an uploaded document and return it ready to read.
+ *
+ * The upload is streamed to a temp file with a running size check, so an
+ * oversized file is rejected before it is fully buffered rather than after.
+ */
+ readonly post: operations["upload_material_api_v1_reading_materials_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Material */
+ readonly get: operations["get_material_api_v1_reading_materials__material_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Material */
+ readonly delete: operations["delete_material_api_v1_reading_materials__material_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/annotations": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Annotations */
+ readonly get: operations["list_annotations_api_v1_reading_materials__material_id__annotations_get"];
+ /**
+ * Save Annotation
+ * @description Create or update one annotation (id absent = create).
+ */
+ readonly put: operations["save_annotation_api_v1_reading_materials__material_id__annotations_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/annotations/{annotation_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Annotation */
+ readonly delete: operations["delete_annotation_api_v1_reading_materials__material_id__annotations__annotation_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/assets/{asset_name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Snapshot Asset
+ * @description Serve one authenticated, MIME-sniffed image captured with a web page.
+ */
+ readonly get: operations["get_snapshot_asset_api_v1_reading_materials__material_id__assets__asset_name__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/epub-pairing-candidates": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Epub Pairing Candidates */
+ readonly get: operations["epub_pairing_candidates_api_v1_reading_materials__material_id__epub_pairing_candidates_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/export": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Export
+ * @description Download the material with its annotations applied.
+ *
+ * ``pdf`` writes real PDF annotations into a copy of the original, so the
+ * export keeps working outside DeepTutor; ``markdown`` returns the marks as
+ * text, which is what every non-PDF format gets.
+ */
+ readonly get: operations["export_api_v1_reading_materials__material_id__export_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/extensions/{extension_id}/actions/{action}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Run Extension Action */
+ readonly post: operations["run_extension_action_api_v1_reading_materials__material_id__extensions__extension_id__actions__action__post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/position": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Position
+ * @description Return the user's last durable viewport for this material.
+ */
+ readonly get: operations["get_position_api_v1_reading_materials__material_id__position_get"];
+ /**
+ * Save Position
+ * @description Persist a validated numeric locator plus an optional renderer anchor.
+ */
+ readonly put: operations["save_position_api_v1_reading_materials__material_id__position_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/raw": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Raw
+ * @description The original bytes, for the faithful viewer. Serves Range requests.
+ */
+ readonly get: operations["get_raw_api_v1_reading_materials__material_id__raw_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/retry": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Retry Import */
+ readonly post: operations["retry_import_api_v1_reading_materials__material_id__retry_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/revisions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Material Revisions
+ * @description Prior immutable snapshots retained when a URL is cleaned/refetched.
+ */
+ readonly get: operations["list_material_revisions_api_v1_reading_materials__material_id__revisions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/revisions/{revision}/units/{locator}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Revision Unit */
+ readonly get: operations["get_revision_unit_api_v1_reading_materials__material_id__revisions__revision__units__locator__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/materials/{material_id}/units/{locator}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Unit
+ * @description One unit's text — the reader's text view, and the only view for non-PDFs.
+ */
+ readonly get: operations["get_unit_api_v1_reading_materials__material_id__units__locator__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/supported-formats": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Supported Formats
+ * @description What the reader accepts — the single source of truth for the file picker.
+ */
+ readonly get: operations["supported_formats_api_v1_reading_supported_formats_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Workspaces */
+ readonly get: operations["list_workspaces_api_v1_reading_workspaces_get"];
+ readonly put?: never;
+ /** Create Workspace */
+ readonly post: operations["create_workspace_api_v1_reading_workspaces_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Workspace */
+ readonly get: operations["get_workspace_api_v1_reading_workspaces__workspace_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Workspace */
+ readonly delete: operations["delete_workspace_api_v1_reading_workspaces__workspace_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Workspace */
+ readonly patch: operations["update_workspace_api_v1_reading_workspaces__workspace_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/ask-hint": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Workspace Ask Hint
+ * @description One question the learner could ask about their current reading context.
+ */
+ readonly get: operations["get_workspace_ask_hint_api_v1_reading_workspaces__workspace_id__ask_hint_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/materials": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Add Workspace Material */
+ readonly post: operations["add_workspace_material_api_v1_reading_workspaces__workspace_id__materials_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/materials/{material_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Remove Workspace Material */
+ readonly delete: operations["remove_workspace_material_api_v1_reading_workspaces__workspace_id__materials__material_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/materials/{material_id}/active": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Activate Workspace Material */
+ readonly put: operations["activate_workspace_material_api_v1_reading_workspaces__workspace_id__materials__material_id__active_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/materials/order": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Reorder Workspace Materials */
+ readonly put: operations["reorder_workspace_materials_api_v1_reading_workspaces__workspace_id__materials_order_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/notebook": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Capture Reading To Notebook */
+ readonly post: operations["capture_reading_to_notebook_api_v1_reading_workspaces__workspace_id__notebook_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/notes/organize": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Organize Reading Notes */
+ readonly post: operations["organize_reading_notes_api_v1_reading_workspaces__workspace_id__notes_organize_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/openers": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Workspace Openers
+ * @description Three things a learner could open this material with.
+ *
+ * An empty list means the panel keeps its own generic suggestions — this is
+ * a nicety, never a dependency.
+ */
+ readonly get: operations["get_workspace_openers_api_v1_reading_workspaces__workspace_id__openers_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/sessions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Reading Sessions */
+ readonly get: operations["list_reading_sessions_api_v1_reading_workspaces__workspace_id__sessions_get"];
+ readonly put?: never;
+ /** Create Reading Session */
+ readonly post: operations["create_reading_session_api_v1_reading_workspaces__workspace_id__sessions_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/sessions/{session_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Reading Session */
+ readonly delete: operations["delete_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Rename Reading Session */
+ readonly patch: operations["rename_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/sessions/{session_id}/links": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Link Reading Session */
+ readonly post: operations["link_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__links_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/{workspace_id}/sessions/{session_id}/links/{target_session_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Unlink Reading Session */
+ readonly delete: operations["unlink_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__links__target_session_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/reading/workspaces/index": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Workspace Index
+ * @description Just enough to *name* a collection: id and title.
+ *
+ * The sidebar groups reading conversations under their collection and
+ * refreshes on every stream end. ``/workspaces`` answers with each
+ * collection's whole tab list — every material, its cover, its unit
+ * count — none of which a group heading renders.
+ *
+ * Declared above ``/workspaces/{workspace_id}``: that route matches any
+ * single segment, so a literal path below it would never be reached.
+ */
+ readonly get: operations["list_workspace_index_api_v1_reading_workspaces_index_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/sessions": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Sessions */
+ readonly get: operations["list_sessions_api_v1_sessions_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/sessions/{session_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Session */
+ readonly get: operations["get_session_api_v1_sessions__session_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Session */
+ readonly delete: operations["delete_session_api_v1_sessions__session_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ /** Rename Session */
+ readonly patch: operations["rename_session_api_v1_sessions__session_id__patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/sessions/{session_id}/ask-hint": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Session Ask Hint
+ * @description One line the user is likely to type next, for the home composer placeholder.
+ */
+ readonly get: operations["get_session_ask_hint_api_v1_sessions__session_id__ask_hint_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/sessions/{session_id}/branch-selection": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Branch Selection */
+ readonly put: operations["update_branch_selection_api_v1_sessions__session_id__branch_selection_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/sessions/{session_id}/messages/{message_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Delete Turn By Message */
+ readonly delete: operations["delete_turn_by_message_api_v1_sessions__session_id__messages__message_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/sessions/{session_id}/organization": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ /** Update Session Organization */
+ readonly patch: operations["update_session_organization_api_v1_sessions__session_id__organization_patch"];
+ readonly trace?: never;
+ };
+ readonly "/api/v1/sessions/{session_id}/quiz-results": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Record Quiz Results */
+ readonly post: operations["record_quiz_results_api_v1_sessions__session_id__quiz_results_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Settings */
+ readonly get: operations["get_settings_api_v1_settings_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/apply": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Apply Catalog
+ * @description Move settings into the files the runtime reads, and clear the draft.
+ *
+ * With no body this promotes the stored draft's catalog, which is how the
+ * settings UI applies: credentials that only ever existed in a draft would
+ * otherwise have to round-trip through the browser as placeholders and come
+ * back resolving to the previous key.
+ */
+ readonly post: operations["apply_catalog_api_v1_settings_apply_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/catalog": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Catalog */
+ readonly get: operations["get_catalog_api_v1_settings_catalog_get"];
+ /** Update Catalog */
+ readonly put: operations["update_catalog_api_v1_settings_catalog_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/chat-attachments": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Chat Attachment Settings
+ * @description Chat attachment policy. Readable by any user — the composer needs the
+ * caps to gate file picks client-side; only the PUT is admin-gated.
+ */
+ readonly get: operations["get_chat_attachment_settings_api_v1_settings_chat_attachments_get"];
+ /** Update Chat Attachment Settings */
+ readonly put: operations["update_chat_attachment_settings_api_v1_settings_chat_attachments_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/chat-response-timeout": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Update Chat Response Timeout
+ * @description Persist how long the chat UI waits for a turn event before timing out.
+ *
+ * A personal UI preference (any authenticated user). Slow tools like image /
+ * video generation can take longer than the old 60s default, so this is
+ * user-adjustable; the chat surface reads it client-side.
+ */
+ readonly put: operations["update_chat_response_timeout_api_v1_settings_chat_response_timeout_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/chat-starters": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Chat Starter Settings
+ * @description How many recent activities shape the home screen's starting points.
+ *
+ * Per user and not admin-gated, unlike the attachment caps next door: this
+ * changes the size of one prompt built from the caller's own memory, not any
+ * resource other people share.
+ */
+ readonly get: operations["get_chat_starter_settings_api_v1_settings_chat_starters_get"];
+ /** Update Chat Starter Settings */
+ readonly put: operations["update_chat_starter_settings_api_v1_settings_chat_starters_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Document Parsing Settings */
+ readonly get: operations["get_document_parsing_settings_api_v1_settings_document_parsing_get"];
+ /** Update Document Parsing Settings */
+ readonly put: operations["update_document_parsing_settings_api_v1_settings_document_parsing_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing/docling/test": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Docling Remote Connection
+ * @description Live connectivity check for the Docling remote-server draft values.
+ * Pings the server health + version endpoints and returns ``ok`` + a
+ * human-readable detail. Tests draft form values so the user can verify the
+ * URL/key before saving; falls back to the stored key when the secret field
+ * is untouched.
+ */
+ readonly post: operations["test_docling_remote_connection_api_v1_settings_document_parsing_docling_test_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing/install": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Start Document Parsing Install
+ * @description Kick off a one-click ``pip install`` of an optional engine's package(s).
+ *
+ * Returns ``{ok, message}`` immediately; progress is polled via the shared job
+ * status endpoint. Only one job runs at a time (process-wide singleton). The
+ * engine must be in the install allow-list (``ENGINE_PIP_SPECS``).
+ */
+ readonly post: operations["start_document_parsing_install_api_v1_settings_document_parsing_install_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing/job/cancel": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Cancel Document Parsing Job */
+ readonly post: operations["cancel_document_parsing_job_api_v1_settings_document_parsing_job_cancel_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing/job/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Document Parsing Job Status */
+ readonly get: operations["document_parsing_job_status_api_v1_settings_document_parsing_job_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing/models/download": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Start Document Parsing Model Download
+ * @description Kick off a one-click model-weight download for an engine (e.g. Docling).
+ *
+ * Runs the engine's downloader console script (``docling-tools models
+ * download``) as a background subprocess; progress is polled via the shared job
+ * status endpoint. The engine must be in ``ENGINE_MODEL_DOWNLOADERS`` and its
+ * script reachable next to the server's python or on PATH.
+ */
+ readonly post: operations["start_document_parsing_model_download_api_v1_settings_document_parsing_models_download_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing/test": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Document Parsing
+ * @description Readiness test for an engine. For MinerU's deeper checks (live cloud
+ * token / CLI ``--version``) the UI uses ``/mineru/test``; this generic test
+ * covers engine availability + model readiness for all engines.
+ */
+ readonly post: operations["test_document_parsing_api_v1_settings_document_parsing_test_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/document-parsing/tika/test": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Tika Remote Connection
+ * @description Live connectivity check for the Tika server draft URL. Pings ``/version``
+ * so the user can verify the URL before saving.
+ */
+ readonly post: operations["test_tika_remote_connection_api_v1_settings_document_parsing_tika_test_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/draft": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Settings Draft
+ * @description Return the unapplied draft, or nothing when there is none.
+ *
+ * The draft is deliberately invisible to every other read path: nothing that
+ * resolves runtime configuration looks here, which is the whole difference
+ * between saving a draft and applying it.
+ */
+ readonly get: operations["get_settings_draft_api_v1_settings_draft_get"];
+ /** Update Settings Draft */
+ readonly put: operations["update_settings_draft_api_v1_settings_draft_put"];
+ readonly post?: never;
+ /** Discard Settings Draft */
+ readonly delete: operations["discard_settings_draft_api_v1_settings_draft_delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/enabled-tools": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Enabled Tools */
+ readonly put: operations["update_enabled_tools_api_v1_settings_enabled_tools_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/fetch-models": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Fetch Models From Provider
+ * @description List the model IDs an OpenAI-compatible provider exposes.
+ *
+ * Thin HTTP surface over ``factory.fetch_models`` so the settings UI can
+ * populate a model picker from ``base_url`` + ``api_key`` instead of making
+ * the user type model IDs by hand.
+ */
+ readonly post: operations["fetch_models_from_provider_api_v1_settings_fetch_models_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/language": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Language */
+ readonly put: operations["update_language_api_v1_settings_language_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/llm-options": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Llm Options */
+ readonly get: operations["get_llm_options_api_v1_settings_llm_options_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mcp": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Mcp Settings */
+ readonly get: operations["get_mcp_settings_api_v1_settings_mcp_get"];
+ /** Update Mcp Settings */
+ readonly put: operations["update_mcp_settings_api_v1_settings_mcp_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mcp/servers/{name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Upsert Mcp Server
+ * @description Upsert one server, leaving every other entry byte-identical.
+ *
+ * The whole-map ``PUT`` above cannot express "change this one": a client has to
+ * send back everything it read, so it silently drops any field it does not
+ * model (a hand-written ``disabled_tools`` blocklist) and overwrites whatever
+ * a second administrator saved in between.
+ */
+ readonly put: operations["upsert_mcp_server_api_v1_settings_mcp_servers__name__put"];
+ readonly post?: never;
+ /** Delete Mcp Server */
+ readonly delete: operations["delete_mcp_server_api_v1_settings_mcp_servers__name__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mcp/test": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Test Mcp Server */
+ readonly post: operations["test_mcp_server_api_v1_settings_mcp_test_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mineru": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Mineru Settings */
+ readonly get: operations["get_mineru_settings_api_v1_settings_mineru_get"];
+ /** Update Mineru Settings */
+ readonly put: operations["update_mineru_settings_api_v1_settings_mineru_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mineru/models/download": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Start Mineru Models Download
+ * @description Kick off a one-click model download via ``mineru-models-download``.
+ *
+ * Returns ``{ok, message}`` immediately; progress is polled via the status
+ * endpoint. Only one download runs at a time (process-wide singleton).
+ */
+ readonly post: operations["start_mineru_models_download_api_v1_settings_mineru_models_download_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mineru/models/download/cancel": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Cancel Mineru Models Download */
+ readonly post: operations["cancel_mineru_models_download_api_v1_settings_mineru_models_download_cancel_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mineru/models/download/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Mineru Models Download Status */
+ readonly get: operations["mineru_models_download_status_api_v1_settings_mineru_models_download_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/mineru/test": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Mineru Connection
+ * @description Validate the active backend. ``mode == "local"`` checks the CLI install
+ * (PATH probe + ``--version``); cloud mode validates the token against the
+ * live MinerU API (no parse quota consumed). Tests the draft form values so
+ * the user can verify before saving; falls back to the stored token when the
+ * secret field is untouched.
+ */
+ readonly post: operations["test_mineru_connection_api_v1_settings_mineru_test_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/network": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Network Settings */
+ readonly get: operations["get_network_settings_api_v1_settings_network_get"];
+ /** Update Network Settings */
+ readonly put: operations["update_network_settings_api_v1_settings_network_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/codebuddy/auth/cancel": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Cancel Codebuddy Auth */
+ readonly post: operations["cancel_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_cancel_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/codebuddy/auth/logout": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Logout Codebuddy Auth */
+ readonly post: operations["logout_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_logout_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/codebuddy/auth/start": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Start Codebuddy Auth */
+ readonly post: operations["start_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_start_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/codebuddy/auth/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Codebuddy Auth Status */
+ readonly get: operations["get_codebuddy_auth_status_api_v1_settings_providers_codebuddy_auth_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/openai-codex/models/reasoning-effort": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Update Openai Codex Reasoning Effort */
+ readonly post: operations["update_openai_codex_reasoning_effort_api_v1_settings_providers_openai_codex_models_reasoning_effort_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/openai-codex/models/refresh": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Refresh Openai Codex Models */
+ readonly post: operations["refresh_openai_codex_models_api_v1_settings_providers_openai_codex_models_refresh_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/openai-codex/oauth/cancel": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Cancel Openai Codex Oauth */
+ readonly post: operations["cancel_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_cancel_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/openai-codex/oauth/logout": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Logout Openai Codex Oauth */
+ readonly post: operations["logout_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_logout_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/openai-codex/oauth/start": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Start Openai Codex Oauth */
+ readonly post: operations["start_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_start_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/providers/openai-codex/oauth/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Openai Codex Oauth Status */
+ readonly get: operations["get_openai_codex_oauth_status_api_v1_settings_providers_openai_codex_oauth_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/reset": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Reset Settings */
+ readonly post: operations["reset_settings_api_v1_settings_reset_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/sidebar": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Sidebar Settings */
+ readonly get: operations["get_sidebar_settings_api_v1_settings_sidebar_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/sidebar/description": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Sidebar Description */
+ readonly put: operations["update_sidebar_description_api_v1_settings_sidebar_description_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/sidebar/nav-order": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Sidebar Nav Order */
+ readonly put: operations["update_sidebar_nav_order_api_v1_settings_sidebar_nav_order_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/tests/{service}/{run_id}/cancel": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Cancel Service Test */
+ readonly post: operations["cancel_service_test_api_v1_settings_tests__service___run_id__cancel_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/tests/{service}/{run_id}/events": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Stream Service Test Events */
+ readonly get: operations["stream_service_test_events_api_v1_settings_tests__service___run_id__events_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/tests/{service}/start": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Start Service Test */
+ readonly post: operations["start_service_test_api_v1_settings_tests__service__start_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/theme": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Theme */
+ readonly put: operations["update_theme_api_v1_settings_theme_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/themes": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Themes */
+ readonly get: operations["get_themes_api_v1_settings_themes_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/tour/complete": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Complete Tour */
+ readonly post: operations["complete_tour_api_v1_settings_tour_complete_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/tour/reopen": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Reopen Tour */
+ readonly post: operations["reopen_tour_api_v1_settings_tour_reopen_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/tour/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Tour Status */
+ readonly get: operations["tour_status_api_v1_settings_tour_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/ui": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Ui Settings
+ * @description Return the pre-session UI preferences: theme and the two languages.
+ *
+ * Public by design, which is why it is a narrow projection rather than the
+ * saved ``ui`` blob. The app shell — and the statically prerendered auth
+ * pages, which have no session at all — adopt the persisted languages here
+ * during bootstrap. Theme rides along so those pages can paint in the right
+ * one instead of flashing.
+ *
+ * Everything else under ``ui`` (sidebar_nav_order, enabled_optional_tools,
+ * chat_response_timeout, …) describes what the deployment has turned on, so
+ * it stays behind auth: read it from the ``ui`` key of GET /settings.
+ */
+ readonly get: operations["get_ui_settings_api_v1_settings_ui_get"];
+ /**
+ * Update Ui Settings
+ * @description Merge frontend partial update into current UI settings.
+ *
+ * Uses exclude_unset=True semantics so that only fields explicitly provided
+ * by the frontend override saved values. Fields not in the frontend payload
+ * (even if they equal the model defaults) are omitted from the merge.
+ */
+ readonly put: operations["update_ui_settings_api_v1_settings_ui_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/video-learning": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Video Learning Settings */
+ readonly get: operations["get_video_learning_settings_api_v1_settings_video_learning_get"];
+ /** Update Video Learning Settings */
+ readonly put: operations["update_video_learning_settings_api_v1_settings_video_learning_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/video-learning/test-invidious": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Test Invidious */
+ readonly post: operations["test_invidious_api_v1_settings_video_learning_test_invidious_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/settings/voice-autoplay": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Update Voice Autoplay
+ * @description Persist the global default for auto-playing chat replies via TTS.
+ *
+ * A personal UI preference (any authenticated user); the chat surface layers
+ * a per-session override on top of this value.
+ */
+ readonly put: operations["update_voice_autoplay_api_v1_settings_voice_autoplay_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/{name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Skill */
+ readonly get: operations["get_skill_api_v1_skills__name__get"];
+ /** Update Skill */
+ readonly put: operations["update_skill_api_v1_skills__name__put"];
+ readonly post?: never;
+ /** Delete Skill */
+ readonly delete: operations["delete_skill_api_v1_skills__name__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/create": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Create Skill */
+ readonly post: operations["create_skill_api_v1_skills_create_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/hub/catalog": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Hub Catalog
+ * @description Proxy a skill hub's public catalog for the in-app browser.
+ *
+ * The web "Import from EduHub" panel renders these rows in DeepTutor's own
+ * UI — no embedded iframe, no login — so users can browse, search, and
+ * one-click download skills. Returns ``web_url`` (the hub's site origin) so
+ * the panel can offer a "view on EduHub" link out.
+ */
+ readonly get: operations["hub_catalog_api_v1_skills_hub_catalog_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/hub/detail": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Hub Detail
+ * @description Full metadata + SKILL.md body for one hub skill (browser detail view).
+ */
+ readonly get: operations["hub_detail_api_v1_skills_hub_detail_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/install": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Install Skill
+ * @description Import a hub skill (e.g. from EduHub) into the caller's own skill layer.
+ *
+ * Lands the package in the same per-user dir that ``/create`` writes to, so
+ * the imported skill shows up in this user's Skills list. The install gate
+ * (``suspicious`` verdict abort, safe extraction, ``always`` stripping)
+ * lives in :func:`deeptutor.services.skill.hub.install_from_hub`.
+ */
+ readonly post: operations["install_skill_api_v1_skills_install_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/list": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Skills */
+ readonly get: operations["list_skills_api_v1_skills_list_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/tags/{tag}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Rename Tag */
+ readonly put: operations["rename_tag_api_v1_skills_tags__tag__put"];
+ readonly post?: never;
+ /** Delete Tag */
+ readonly delete: operations["delete_tag_api_v1_skills_tags__tag__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/tags/create": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Create Tag */
+ readonly post: operations["create_tag_api_v1_skills_tags_create_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/skills/tags/list": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Tags */
+ readonly get: operations["list_tags_api_v1_skills_tags_list_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/cli-apps/apps": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Apps
+ * @description Installed apps as *this* caller sees them.
+ */
+ readonly get: operations["list_apps_api_v1_space_cli_apps_apps_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/cli-apps/apps/{app_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Uninstall
+ * @description Remove one app from the deployment. Administrator only.
+ */
+ readonly delete: operations["uninstall_api_v1_space_cli_apps_apps__app_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/cli-apps/apps/{app_id}/enabled": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /**
+ * Set Enabled
+ * @description Switch one app on or off for the calling account.
+ *
+ * Refused for an app the caller has not been granted: the preference file must
+ * not become a way to record interest in something the grant denies, because a
+ * later grant would then silently switch it on.
+ */
+ readonly put: operations["set_enabled_api_v1_space_cli_apps_apps__app_id__enabled_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/cli-apps/catalog": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Catalog
+ * @description The store. Readable by anyone; installing is admin-only.
+ */
+ readonly get: operations["get_catalog_api_v1_space_cli_apps_catalog_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/cli-apps/catalog/{app_id}/install": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Install
+ * @description Install one app for the deployment. Administrator only.
+ */
+ readonly post: operations["install_api_v1_space_cli_apps_catalog__app_id__install_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/mcp/catalog": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Catalog */
+ readonly get: operations["get_catalog_api_v1_space_mcp_catalog_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/mcp/catalog/{entry_id}/install": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Install Catalog Entry */
+ readonly post: operations["install_catalog_entry_api_v1_space_mcp_catalog__entry_id__install_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/mcp/oauth/callback": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Oauth Callback
+ * @description Where the authorization server sends the browser back.
+ *
+ * Deliberately **not** returning JSON: a person is looking at this, having just
+ * clicked Approve on somebody else's site. It answers with a small page that
+ * says what happened and closes itself.
+ *
+ * An unknown ``state`` completes nothing — see ``complete_authorization``.
+ */
+ readonly get: operations["oauth_callback_api_v1_space_mcp_oauth_callback_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/mcp/servers": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Servers
+ * @description This surface's servers, in the same shape the admin registry returns.
+ *
+ * ``servers`` + ``status`` deliberately mirror ``/settings/mcp`` so the two
+ * surfaces share one set of frontend components instead of forking over a
+ * response shape. Everything specific to this surface is additive.
+ */
+ readonly get: operations["list_servers_api_v1_space_mcp_servers_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/mcp/servers/{name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Upsert Server */
+ readonly put: operations["upsert_server_api_v1_space_mcp_servers__name__put"];
+ readonly post?: never;
+ /** Remove Server */
+ readonly delete: operations["remove_server_api_v1_space_mcp_servers__name__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/mcp/servers/{name}/authorize": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Authorize Server
+ * @description Begin an OAuth consent for one of the caller's servers.
+ *
+ * Returns the URL to send the person to. This is the **only** place a flow may
+ * start: a background reconnect has nobody in front of it, so it reports
+ * ``needs_auth`` and waits for someone to click.
+ */
+ readonly post: operations["authorize_server_api_v1_space_mcp_servers__name__authorize_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/space/mcp/servers/{name}/test": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Server
+ * @description Probe a definition before saving it.
+ *
+ * Runs under the caller's own owner id so the probe obeys the same address
+ * policy and redirect rule the real connection will — a Test more permissive
+ * than the connection it previews is worse than no Test at all.
+ *
+ * Deliberately side-effect free: nothing is written, so the incoming config is
+ * probed as given (any literal credential in it is used in memory only). That
+ * also means a caller may probe under a scratch name the store would refuse,
+ * which is how the UI tests a draft before it has one.
+ */
+ readonly post: operations["test_server_api_v1_space_mcp_servers__name__test_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/backends/{kind}/sync": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Sync Backend
+ * @description Re-pull one backend's model catalog (the settings "sync" button).
+ *
+ * For Claude Code this scrapes its ``/model`` TUI live and caches the result;
+ * for Codex it re-reads the CLI-maintained cache.
+ */
+ readonly post: operations["sync_backend_api_v1_subagents_backends__kind__sync_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/backends/options": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Backend Options
+ * @description Synced model + reasoning-effort options per backend (settings page sync).
+ */
+ readonly get: operations["backend_options_api_v1_subagents_backends_options_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/connections": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Connections
+ * @description List the current user's connected subagents.
+ */
+ readonly get: operations["list_connections_api_v1_subagents_connections_get"];
+ readonly put?: never;
+ /**
+ * Create Connection
+ * @description Connect a subagent (a local CLI, or one of the user's partners) as a selectable KB.
+ *
+ * A partner connection (``agent_kind == "partner"``) binds a ``partner_id``
+ * instead of a working directory: consulting it opens a fresh session on that
+ * partner, exactly as if the user started one from the partner page. Every
+ * consult within one DeepTutor chat lands in that one partner session.
+ */
+ readonly post: operations["create_connection_api_v1_subagents_connections_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/connections/{name}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /**
+ * Delete Connection
+ * @description Disconnect a subagent (removes the pointer KB; touches no files).
+ */
+ readonly delete: operations["delete_connection_api_v1_subagents_connections__name__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/connections/{name}/message": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Message Connection
+ * @description Send a message straight to a connected subagent and stream its run.
+ *
+ * This is the sidebar's "talk to the agent directly" path: it resumes the same
+ * live session DeepTutor consults (shared via the cross-turn registry, keyed by
+ * chat session + connection), so the agent keeps full context. Streams the
+ * native run as newline-delimited JSON, in the same channel shape the chat WS
+ * uses, so the sidebar transcript renders it identically.
+ */
+ readonly post: operations["message_connection_api_v1_subagents_connections__name__message_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/detect": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Detect Subagents
+ * @description Report which agent CLIs are installed and usable on this machine.
+ */
+ readonly get: operations["detect_subagents_api_v1_subagents_detect_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/partners": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Visible Partners
+ * @description Partners the current user can connect & consult.
+ *
+ * Returns every partner for an admin, or just the ones an admin has assigned
+ * for a non-admin. The partner CRUD API (``/api/v1/partners``) stays fully
+ * admin-gated; this is the read surface the connect flow and the partner list
+ * page use, so a non-admin sees their assigned partners without a 403.
+ */
+ readonly get: operations["list_visible_partners_api_v1_subagents_partners_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/subagents/settings": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Settings
+ * @description Read the consult budget and per-backend run config.
+ */
+ readonly get: operations["get_settings_api_v1_subagents_settings_get"];
+ /**
+ * Update Settings
+ * @description Update the subagent settings (admin-gated; deployment-wide).
+ */
+ readonly put: operations["update_settings_api_v1_subagents_settings_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/memory": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Memory Usage
+ * @description Resident memory of the running DeepTutor process tree.
+ *
+ * Deliberately separate from ``/status``: that snapshot resolves the LLM,
+ * embedding and search configs and is fetched once per settings mount, while
+ * this one is cheap enough for the status strip to poll.
+ *
+ * Admin-only, for the same reason ``/status`` strips model names from
+ * non-admins — process composition and host memory are operational detail a
+ * tenant has no need for.
+ */
+ readonly get: operations["get_memory_usage_api_v1_system_memory_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/runtime-topology": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Runtime Topology
+ * @description Describe the current execution topology.
+ *
+ * This makes the unified runtime explicit for operators and frontend code:
+ * interactive chat turns should prefer `/api/v1/ws`, while a few routers still
+ * exist as compatibility or isolated subsystem endpoints.
+ */
+ readonly get: operations["get_runtime_topology_api_v1_system_runtime_topology_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/status": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get System Status
+ * @description Get overall system status including backend and model configurations
+ *
+ * Returns:
+ * Dictionary containing status of backend, LLM, embeddings, and search
+ */
+ readonly get: operations["get_system_status_api_v1_system_status_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/test/embeddings": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Embeddings Connection
+ * @description Test Embeddings model connection by sending a simple embedding request
+ *
+ * Returns:
+ * Test result with success status and response time
+ */
+ readonly post: operations["test_embeddings_connection_api_v1_system_test_embeddings_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/test/llm": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Test Llm Connection
+ * @description Test LLM model connection by sending a simple completion request
+ *
+ * Returns:
+ * Test result with success status and response time
+ */
+ readonly post: operations["test_llm_connection_api_v1_system_test_llm_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/test/search": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Test Search Connection */
+ readonly post: operations["test_search_connection_api_v1_system_test_search_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/update": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Update Status
+ * @description Return About-page version state, checking at most once per 24 hours.
+ */
+ readonly get: operations["get_update_status_api_v1_system_update_get"];
+ readonly put?: never;
+ /**
+ * Request Managed Update
+ * @description Reserve one safe update for the supervising launcher to apply.
+ */
+ readonly post: operations["request_managed_update_api_v1_system_update_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/update/check": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Check For Update
+ * @description Perform an explicit administrator-requested release check.
+ */
+ readonly post: operations["check_for_update_api_v1_system_update_check_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/update/job": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Update Job */
+ readonly get: operations["get_update_job_api_v1_system_update_job_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/system/update/settings": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Check Settings */
+ readonly put: operations["update_check_settings_api_v1_system_update_settings_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/tools": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * List Builtin Tools
+ * @description Return all built-in tools the chat agent can invoke, plus any
+ * coming-soon placeholders for the settings page.
+ */
+ readonly get: operations["list_builtin_tools_api_v1_tools_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/{material_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Video Material */
+ readonly get: operations["get_video_material_api_v1_video_learning_materials__material_id__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/{material_id}/notes": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Video Notes */
+ readonly get: operations["list_video_notes_api_v1_video_learning_materials__material_id__notes_get"];
+ readonly put?: never;
+ /** Create Video Note */
+ readonly post: operations["create_video_note_api_v1_video_learning_materials__material_id__notes_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/{material_id}/notes/{note_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Update Video Note */
+ readonly put: operations["update_video_note_api_v1_video_learning_materials__material_id__notes__note_id__put"];
+ readonly post?: never;
+ /** Delete Video Note */
+ readonly delete: operations["delete_video_note_api_v1_video_learning_materials__material_id__notes__note_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/{material_id}/progress": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ /** Save Video Progress */
+ readonly put: operations["save_video_progress_api_v1_video_learning_materials__material_id__progress_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/{material_id}/stream/{format_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Stream Video */
+ readonly get: operations["stream_video_api_v1_video_learning_materials__material_id__stream__format_id__head_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ /** Stream Video */
+ readonly head: operations["stream_video_api_v1_video_learning_materials__material_id__stream__format_id__head"];
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/{material_id}/subtitles.vtt": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Video Subtitles */
+ readonly get: operations["get_video_subtitles_api_v1_video_learning_materials__material_id__subtitles_vtt_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/{material_id}/transcript/refresh": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Refresh Video Transcript */
+ readonly post: operations["refresh_video_transcript_api_v1_video_learning_materials__material_id__transcript_refresh_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/video-learning/materials/resolve": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Resolve Video */
+ readonly post: operations["resolve_video_api_v1_video_learning_materials_resolve_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/visualizers/{visualizer_id}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ readonly post?: never;
+ /** Uninstall Visualizer */
+ readonly delete: operations["uninstall_visualizer_api_v1_visualizers__visualizer_id__delete"];
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/visualizers/{visualizer_id}/assets/{asset_path}": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Visualizer Asset */
+ readonly get: operations["get_visualizer_asset_api_v1_visualizers__visualizer_id__assets__asset_path__get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/visualizers/{visualizer_id}/disable": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Disable Visualizer */
+ readonly post: operations["disable_visualizer_api_v1_visualizers__visualizer_id__disable_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/visualizers/{visualizer_id}/enable": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Enable Visualizer */
+ readonly post: operations["enable_visualizer_api_v1_visualizers__visualizer_id__enable_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/visualizers/bundled/{visualizer_id}/install": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /** Install Bundled */
+ readonly post: operations["install_bundled_api_v1_visualizers_bundled__visualizer_id__install_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/visualizers/import": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Import Visualizer
+ * @description Install one declarative ``visualizer.json`` + iframe bundle zip.
+ */
+ readonly post: operations["import_visualizer_api_v1_visualizers_import_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/visualizers/list": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** List Visualizers */
+ readonly get: operations["list_visualizers_api_v1_visualizers_list_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/voice/stt": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Speech To Text
+ * @description Transcribe an uploaded audio clip using the active STT provider.
+ */
+ readonly post: operations["speech_to_text_api_v1_voice_stt_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+ readonly "/api/v1/voice/tts": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly get?: never;
+ readonly put?: never;
+ /**
+ * Text To Speech
+ * @description Synthesize ``text`` to audio using the active TTS provider.
+ */
+ readonly post: operations["text_to_speech_api_v1_voice_tts_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
+}
+export type webhooks = Record<string, never>;
+export interface components {
+ schemas: {
+ /** ActionPayload */
+ readonly ActionPayload: {
+ /**
+ * Locale
+ * @default en
+ */
+ readonly locale: string;
+ /** Locator */
+ readonly locator: number;
+ /**
+ * Selection
+ * @default
+ */
+ readonly selection: string;
+ };
+ /**
+ * ActiveModelUpdate
+ * @description Switch the globally-active model for a kind (llm / embedding).
+ */
+ readonly ActiveModelUpdate: {
+ /** Kind */
+ readonly kind: string;
+ /** Model Id */
+ readonly model_id: string;
+ /** Profile Id */
+ readonly profile_id: string;
+ };
+ /** AddGitHubSourceRequest */
+ readonly AddGitHubSourceRequest: {
+ /**
+ * Branch
+ * @default main
+ */
+ readonly branch: string;
+ /**
+ * Glob
+ * @default *.md
+ */
+ readonly glob: string;
+ /**
+ * Path
+ * @default
+ */
+ readonly path: string;
+ /** Repo */
+ readonly repo: string;
+ };
+ /**
+ * AddRecordRequest
+ * @description Add record request
+ */
+ readonly AddRecordRequest: {
+ /** Kb Name */
+ readonly kb_name?: string | null;
+ /**
+ * Metadata
+ * @default {}
+ */
+ readonly metadata: {
+ readonly [key: string]: unknown;
+ };
+ /** Notebook Ids */
+ readonly notebook_ids: readonly string[];
+ /** Output */
+ readonly output: string;
+ /**
+ * Record Type
+ * @enum {string}
+ */
+ readonly record_type: "solve" | "question" | "research" | "chat" | "co_writer" | "tutorbot" | "reading" | "video_learning";
+ /**
+ * Summary
+ * @default
+ */
+ readonly summary: string;
+ /** Title */
+ readonly title: string;
+ /** User Query */
+ readonly user_query: string;
+ };
+ /** AddWebSourceRequest */
+ readonly AddWebSourceRequest: {
+ /**
+ * Max Depth
+ * @default 3
+ */
+ readonly max_depth: number;
+ /**
+ * Max Pages
+ * @default 200
+ */
+ readonly max_pages: number;
+ /** Url */
+ readonly url: string;
+ };
+ /**
+ * AdminCreateUserRequest
+ * @description Admin user-creation payload.
+ *
+ * A preset configures an ordinary account; it never becomes a third role.
+ */
+ readonly AdminCreateUserRequest: {
+ /** Password */
+ readonly password: string;
+ /**
+ * Preset
+ * @default standard
+ * @enum {string}
+ */
+ readonly preset: "standard" | "learner" | "custom";
+ /** Username */
+ readonly username: string;
+ };
+ /** AnnotationInfo */
+ readonly AnnotationInfo: {
+ /** Annotation Id */
+ readonly annotation_id: string;
+ /** Author */
+ readonly author: string;
+ /** Color */
+ readonly color: string;
+ /** Created At */
+ readonly created_at: number;
+ /** Kind */
+ readonly kind: string;
+ /** Locator */
+ readonly locator: number;
+ /**
+ * Material Revision
+ * @default 1
+ */
+ readonly material_revision: number;
+ /** Note */
+ readonly note: string;
+ /** Quote */
+ readonly quote: string;
+ /** Rects */
+ readonly rects: readonly (readonly number[])[];
+ /** Selectors */
+ readonly selectors?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /**
+ * Source Anchor
+ * @default
+ */
+ readonly source_anchor: string;
+ /** Updated At */
+ readonly updated_at: number;
+ };
+ /**
+ * AnnotationPayload
+ * @description An annotation as the reader sends it.
+ *
+ * ``rects`` are normalised to the unit box (0..1, origin top-left) by the
+ * client, because only the client knows the rendered geometry. They are still
+ * re-validated server-side — an inverted or out-of-range rectangle is ordered
+ * and clipped rather than trusted.
+ */
+ readonly AnnotationPayload: {
+ /**
+ * Annotation Id
+ * @default
+ */
+ readonly annotation_id: string;
+ /**
+ * Color
+ * @default yellow
+ */
+ readonly color: string;
+ /**
+ * Kind
+ * @default highlight
+ * @enum {string}
+ */
+ readonly kind: "highlight" | "underline" | "note" | "citation";
+ /** Locator */
+ readonly locator: number;
+ /**
+ * Note
+ * @default
+ */
+ readonly note: string;
+ /**
+ * Quote
+ * @default
+ */
+ readonly quote: string;
+ /** Rects */
+ readonly rects?: readonly (readonly number[])[];
+ /** Selectors */
+ readonly selectors?: readonly (components["schemas"]["TextQuoteSelectorPayload"] | components["schemas"]["TextPositionSelectorPayload"])[];
+ /**
+ * Source Anchor
+ * @default
+ */
+ readonly source_anchor: string;
+ };
+ /**
+ * AnswerImageItem
+ * @description Persisted reference to one image attached to a learner's answer.
+ *
+ * The bytes live in the AttachmentStore at ``url``; we never round-trip
+ * base64 back to the client so notebook lookups stay cheap.
+ */
+ readonly AnswerImageItem: {
+ /**
+ * Filename
+ * @default
+ */
+ readonly filename: string;
+ /**
+ * Id
+ * @default
+ */
+ readonly id: string;
+ /**
+ * Mime Type
+ * @default
+ */
+ readonly mime_type: string;
+ /**
+ * Url
+ * @default
+ */
+ readonly url: string;
+ };
+ /**
+ * AnswerImageUpload
+ * @description One image attached to the learner's answer.
+ *
+ * Either ``base64`` (new upload) or ``url`` (re-submit of an already
+ * persisted image) must be set. ``id`` is preserved when the client
+ * sends one so the same logical image keeps a stable AttachmentStore
+ * record across resubmissions.
+ */
+ readonly AnswerImageUpload: {
+ /**
+ * Base64
+ * @default
+ */
+ readonly base64: string;
+ /**
+ * Filename
+ * @default answer.png
+ */
+ readonly filename: string;
+ /**
+ * Id
+ * @default
+ */
+ readonly id: string;
+ /**
+ * Mime Type
+ * @default image/png
+ */
+ readonly mime_type: string;
+ /**
+ * Url
+ * @default
+ */
+ readonly url: string;
+ };
+ /** ApplyOpsRequest */
+ readonly ApplyOpsRequest: {
+ /** Ops */
+ readonly ops: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ /** AssetAddRequest */
+ readonly AssetAddRequest: {
+ /** Knowledge Bases */
+ readonly knowledge_bases?: readonly string[];
+ /** Notebooks */
+ readonly notebooks?: readonly string[];
+ /** Skills */
+ readonly skills?: readonly string[];
+ };
+ /** AssetSpec */
+ readonly AssetSpec: {
+ /** Knowledge Bases */
+ readonly knowledge_bases?: readonly string[];
+ /** Notebooks */
+ readonly notebooks?: readonly string[];
+ /** Skills */
+ readonly skills?: readonly string[];
+ };
+ /** AttachCourseResourceRequest */
+ readonly AttachCourseResourceRequest: {
+ /** Kind */
+ readonly kind: string;
+ /**
+ * Label
+ * @default
+ */
+ readonly label: string;
+ /** Ref Id */
+ readonly ref_id: string;
+ };
+ /** AuditRequest */
+ readonly AuditRequest: {
+ /** Budget */
+ readonly budget?: number | null;
+ /**
+ * Language
+ * @default en
+ */
+ readonly language: string;
+ readonly llm_selection?: components["schemas"]["LLMSelectionPayload"] | null;
+ };
+ /**
+ * AuthStatusResponse
+ * @description Response body for the GET /status endpoint.
+ */
+ readonly AuthStatusResponse: {
+ /** Authenticated */
+ readonly authenticated: boolean;
+ /**
+ * Avatar
+ * @default
+ */
+ readonly avatar: string;
+ /** Enabled */
+ readonly enabled: boolean;
+ /**
+ * Is Admin
+ * @default false
+ */
+ readonly is_admin: boolean;
+ /** Learning Policy */
+ readonly learning_policy?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Preset */
+ readonly preset?: ("standard" | "learner" | "custom") | null;
+ /** Role */
+ readonly role?: string | null;
+ /** User Id */
+ readonly user_id?: string | null;
+ /** Username */
+ readonly username?: string | null;
+ };
+ /** AutoMarkRequest */
+ readonly AutoMarkRequest: {
+ /** Text */
+ readonly text: string;
+ };
+ /** AutoMarkResponse */
+ readonly AutoMarkResponse: {
+ /** Marked Text */
+ readonly marked_text: string;
+ /** Operation Id */
+ readonly operation_id: string;
+ };
+ /** Body_create_knowledge_base_api_v1_knowledge_create_post */
+ readonly Body_create_knowledge_base_api_v1_knowledge_create_post: {
+ /**
+ * Files
+ * @default []
+ */
+ readonly files: readonly string[];
+ /** Name */
+ readonly name: string;
+ /**
+ * Pageindex Mode
+ * @default
+ */
+ readonly pageindex_mode: string;
+ /**
+ * Rag Provider
+ * @default llamaindex
+ */
+ readonly rag_provider: string;
+ /** Rel Paths */
+ readonly rel_paths?: readonly string[];
+ /**
+ * Search Mode
+ * @default
+ */
+ readonly search_mode: string;
+ };
+ /** Body_import_docx_api_v1_co_writer_documents_import_docx_post */
+ readonly Body_import_docx_api_v1_co_writer_documents_import_docx_post: {
+ /** File */
+ readonly file: string;
+ };
+ /** Body_import_visualizer_api_v1_visualizers_import_post */
+ readonly Body_import_visualizer_api_v1_visualizers_import_post: {
+ /** File */
+ readonly file: string;
+ };
+ /** Body_speech_to_text_api_v1_voice_stt_post */
+ readonly Body_speech_to_text_api_v1_voice_stt_post: {
+ /** File */
+ readonly file: string;
+ /** Language */
+ readonly language?: string | null;
+ };
+ /** Body_upload_avatar_api_v1_auth_profile_avatar_put */
+ readonly Body_upload_avatar_api_v1_auth_profile_avatar_put: {
+ /** File */
+ readonly file: string;
+ };
+ /** Body_upload_files_api_v1_knowledge__kb_name__upload_post */
+ readonly Body_upload_files_api_v1_knowledge__kb_name__upload_post: {
+ /** Dest Subdir */
+ readonly dest_subdir?: string;
+ /** Files */
+ readonly files: readonly string[];
+ /** Rag Provider */
+ readonly rag_provider?: string;
+ /** Rel Paths */
+ readonly rel_paths?: readonly string[];
+ };
+ /** Body_upload_material_api_v1_reading_materials_post */
+ readonly Body_upload_material_api_v1_reading_materials_post: {
+ /** File */
+ readonly file: string;
+ };
+ /** BookPermissionPayload */
+ readonly BookPermissionPayload: {
+ /** Books */
+ readonly books?: {
+ readonly [key: string]: "none" | "read" | "edit";
+ };
+ /**
+ * Create
+ * @default true
+ */
+ readonly create: boolean;
+ /**
+ * Default
+ * @default none
+ * @enum {string}
+ */
+ readonly default: "none" | "read";
+ };
+ /** BookReference */
+ readonly BookReference: {
+ /** Book Id */
+ readonly book_id: string;
+ /** Page Ids */
+ readonly page_ids?: readonly string[];
+ };
+ /**
+ * BranchSelectionRequest
+ * @description Edit-branch picker state: `{parent_message_id: chosen_child_id}`.
+ *
+ * Stored inside the session preferences blob so it survives reloads
+ * without a dedicated column.
+ */
+ readonly BranchSelectionRequest: {
+ /** Selected Branches */
+ readonly selected_branches?: {
+ readonly [key: string]: number;
+ };
+ };
+ /** BuiltinToolPayload */
+ readonly BuiltinToolPayload: {
+ /**
+ * Aliases
+ * @default []
+ */
+ readonly aliases: readonly string[];
+ /**
+ * Available
+ * @default true
+ */
+ readonly available: boolean;
+ /** Capability */
+ readonly capability?: string | null;
+ /**
+ * Coming Soon
+ * @default false
+ */
+ readonly coming_soon: boolean;
+ /** Description */
+ readonly description: string;
+ /**
+ * Description I18N
+ * @default {}
+ */
+ readonly description_i18n: {
+ readonly [key: string]: string;
+ };
+ /**
+ * Enabled
+ * @default true
+ */
+ readonly enabled: boolean;
+ /** Hints */
+ readonly hints: {
+ readonly [key: string]: components["schemas"]["ToolHintsPayload"];
+ };
+ /** Name */
+ readonly name: string;
+ /** Parameters */
+ readonly parameters: readonly components["schemas"]["ToolParameterPayload"][];
+ /**
+ * Toggleable
+ * @default false
+ */
+ readonly toggleable: boolean;
+ /** Unavailable Reason */
+ readonly unavailable_reason?: string | null;
+ };
+ /**
+ * BulkCategoryRequest
+ * @description File (or unfile) many entries at once.
+ *
+ * One round-trip per bulk action keeps the list view consistent: the
+ * client re-reads once instead of racing N per-entry writes.
+ */
+ readonly BulkCategoryRequest: {
+ /** Category Id */
+ readonly category_id: number;
+ /** Entry Ids */
+ readonly entry_ids: readonly number[];
+ /**
+ * Link
+ * @default true
+ */
+ readonly link: boolean;
+ };
+ /** CatalogPayload */
+ readonly CatalogPayload: {
+ /** Catalog */
+ readonly catalog: {
+ readonly [key: string]: unknown;
+ };
+ };
+ /** CategoryAddRequest */
+ readonly CategoryAddRequest: {
+ /** Category Id */
+ readonly category_id: number;
+ };
+ /** CategoryCreateRequest */
+ readonly CategoryCreateRequest: {
+ /** Name */
+ readonly name: string;
+ };
+ /** CategoryItem */
+ readonly CategoryItem: {
+ /**
+ * Created At
+ * @default 0
+ */
+ readonly created_at: number;
+ /**
+ * Entry Count
+ * @default 0
+ */
+ readonly entry_count: number;
+ /** Id */
+ readonly id: number;
+ /** Name */
+ readonly name: string;
+ };
+ /** CategoryRenameRequest */
+ readonly CategoryRenameRequest: {
+ /** Name */
+ readonly name: string;
+ };
+ /** ChangeBlockTypeRequest */
+ readonly ChangeBlockTypeRequest: {
+ /** Block Id */
+ readonly block_id: string;
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** New Type */
+ readonly new_type: string;
+ /** Page Id */
+ readonly page_id: string;
+ /** Params Override */
+ readonly params_override?: {
+ readonly [key: string]: unknown;
+ } | null;
+ };
+ /** ChannelOnboardingStartRequest */
+ readonly ChannelOnboardingStartRequest: {
+ /**
+ * Channel
+ * @enum {string}
+ */
+ readonly channel: "feishu" | "wecom";
+ };
+ /** ChapterImport */
+ readonly ChapterImport: {
+ /**
+ * Knowledge Points
+ * @default []
+ */
+ readonly knowledge_points: readonly string[];
+ /** Title */
+ readonly title: string;
+ };
+ /** ChatAttachmentRequest */
+ readonly ChatAttachmentRequest: {
+ /**
+ * Base64
+ * @default
+ */
+ readonly base64: string;
+ /**
+ * Filename
+ * @default
+ */
+ readonly filename: string;
+ /**
+ * Mime Type
+ * @default
+ */
+ readonly mime_type: string;
+ /**
+ * Type
+ * @default file
+ */
+ readonly type: string;
+ /**
+ * Url
+ * @default
+ */
+ readonly url: string;
+ };
+ /**
+ * ChatAttachmentSettingsUpdate
+ * @description Chat attachment policy (size caps + extraction budgets).
+ *
+ * Bounds mirror the normalization clamps in
+ * ``runtime_settings.CHAT_ATTACHMENT_*_RANGE`` so the API rejects loudly
+ * what the file layer would silently clamp.
+ */
+ readonly ChatAttachmentSettingsUpdate: {
+ /** Max Chars Per Doc */
+ readonly max_chars_per_doc: number;
+ /** Max Chars Total */
+ readonly max_chars_total: number;
+ /** Max File Mb */
+ readonly max_file_mb: number;
+ /** Max Total Mb */
+ readonly max_total_mb: number;
+ };
+ /** ChatHistoryImportRequest */
+ readonly ChatHistoryImportRequest: {
+ /**
+ * Agent Id
+ * @default
+ */
+ readonly agent_id: string;
+ /**
+ * Agent Name
+ * @default
+ */
+ readonly agent_name: string;
+ /** Sessions */
+ readonly sessions?: readonly components["schemas"]["ImportedSession"][];
+ /** Source */
+ readonly source: string;
+ };
+ /** ChatMessageRequest */
+ readonly ChatMessageRequest: {
+ /** Attachments */
+ readonly attachments?: readonly components["schemas"]["ChatAttachmentRequest"][];
+ /** Chat Id */
+ readonly chat_id?: string | null;
+ /**
+ * Content
+ * @default
+ */
+ readonly content: string;
+ /** Llmselection */
+ readonly llmSelection?: {
+ readonly [key: string]: string;
+ } | null;
+ /** Session Id */
+ readonly session_id?: string | null;
+ /** Session Key */
+ readonly session_key?: string | null;
+ };
+ /** ChatResponseTimeoutUpdate */
+ readonly ChatResponseTimeoutUpdate: {
+ /** Chat Response Timeout */
+ readonly chat_response_timeout: number;
+ };
+ /**
+ * ChatStarterSettingsUpdate
+ * @description How much recent activity shapes the home screen's starting points.
+ *
+ * Bounds mirror ``starter_settings.TRACE_COUNT_RANGE`` so the API rejects
+ * loudly what the file layer would silently clamp.
+ */
+ readonly ChatStarterSettingsUpdate: {
+ /** Trace Count */
+ readonly trace_count: number;
+ };
+ /** CodexReasoningEffortUpdate */
+ readonly CodexReasoningEffortUpdate: {
+ /** Model */
+ readonly model: string;
+ /** Reasoning Effort */
+ readonly reasoning_effort?: string | null;
+ };
+ /** CompilePageRequest */
+ readonly CompilePageRequest: {
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /**
+ * Force
+ * @default false
+ */
+ readonly force: boolean;
+ /** Page Id */
+ readonly page_id: string;
+ };
+ /**
+ * ConfirmPartnerDraftRequest
+ * @description Editable fields accepted by the explicit draft-confirmation step.
+ */
+ readonly ConfirmPartnerDraftRequest: {
+ /** Color */
+ readonly color?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Emoji */
+ readonly emoji?: string | null;
+ /** Language */
+ readonly language?: string | null;
+ /** Name */
+ readonly name?: string | null;
+ /** Soul */
+ readonly soul?: string | null;
+ /**
+ * Start
+ * @default true
+ */
+ readonly start: boolean;
+ };
+ /** ConfirmProposalRequest */
+ readonly ConfirmProposalRequest: {
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Proposal */
+ readonly proposal?: {
+ readonly [key: string]: unknown;
+ } | null;
+ };
+ /** ConfirmSpineRequest */
+ readonly ConfirmSpineRequest: {
+ /**
+ * Auto Compile
+ * @default true
+ */
+ readonly auto_compile: boolean;
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Spine */
+ readonly spine?: {
+ readonly [key: string]: unknown;
+ } | null;
+ };
+ /** ConfirmTopicRequest */
+ readonly ConfirmTopicRequest: {
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /**
+ * Emoji
+ * @default 🧭
+ */
+ readonly emoji: string;
+ /** Goal */
+ readonly goal: string;
+ /** Modules */
+ readonly modules: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /** Name */
+ readonly name: string;
+ /** Sources */
+ readonly sources?: readonly components["schemas"]["TopicSourceRequest"][];
+ };
+ /** ConnectFolderRequest */
+ readonly ConnectFolderRequest: {
+ /** Folder Path */
+ readonly folder_path: string;
+ /** Name */
+ readonly name: string;
+ /**
+ * Rag Provider
+ * @default llamaindex
+ */
+ readonly rag_provider: string;
+ };
+ /** ConnectImaRequest */
+ readonly ConnectImaRequest: {
+ /**
+ * Api Key
+ * @default
+ */
+ readonly api_key: string;
+ /**
+ * Client Id
+ * @default
+ */
+ readonly client_id: string;
+ /** Knowledge Base Id */
+ readonly knowledge_base_id: string;
+ /** Name */
+ readonly name: string;
+ };
+ /** ConnectLightRagServerRequest */
+ readonly ConnectLightRagServerRequest: {
+ /**
+ * Api Key
+ * @default
+ */
+ readonly api_key: string;
+ /** Name */
+ readonly name: string;
+ /**
+ * Search Mode
+ * @default
+ */
+ readonly search_mode: string;
+ /** Server Url */
+ readonly server_url: string;
+ };
+ /** ConnectMarginNote4Request */
+ readonly ConnectMarginNote4Request: {
+ /**
+ * Db Path
+ * @default
+ */
+ readonly db_path: string;
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /** Name */
+ readonly name: string;
+ };
+ /** ConnectObsidianRequest */
+ readonly ConnectObsidianRequest: {
+ /** Name */
+ readonly name: string;
+ /** Vault Path */
+ readonly vault_path: string;
+ };
+ /** ConnectSubagentRequest */
+ readonly ConnectSubagentRequest: {
+ /** Agent Kind */
+ readonly agent_kind: string;
+ /**
+ * Cwd
+ * @default
+ */
+ readonly cwd: string;
+ /** Name */
+ readonly name: string;
+ /**
+ * Partner Id
+ * @default
+ */
+ readonly partner_id: string;
+ };
+ /** ConnectWeKnoraRequest */
+ readonly ConnectWeKnoraRequest: {
+ /** Api Key */
+ readonly api_key: string;
+ /** Knowledge Base Id */
+ readonly knowledge_base_id: string;
+ /** Name */
+ readonly name: string;
+ /** Server Url */
+ readonly server_url: string;
+ };
+ /** CreateBookRequest */
+ readonly CreateBookRequest: {
+ /** Chat Selections */
+ readonly chat_selections?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /**
+ * Chat Session Id
+ * @default
+ */
+ readonly chat_session_id: string;
+ /**
+ * Depth
+ * @default standard
+ */
+ readonly depth: string;
+ /**
+ * Fallback Language
+ * @default en
+ */
+ readonly fallback_language: string;
+ /** Knowledge Bases */
+ readonly knowledge_bases?: readonly string[];
+ /**
+ * Language
+ * @default en
+ */
+ readonly language: string;
+ /** Notebook Refs */
+ readonly notebook_refs?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /** Question Categories */
+ readonly question_categories?: readonly number[];
+ /** Question Entries */
+ readonly question_entries?: readonly number[];
+ /**
+ * User Intent
+ * @default
+ */
+ readonly user_intent: string;
+ };
+ /** CreateCourseRequest */
+ readonly CreateCourseRequest: {
+ /**
+ * Color
+ * @default
+ */
+ readonly color: string;
+ /**
+ * Default Capability
+ * @default
+ */
+ readonly default_capability: string;
+ /**
+ * Default Persona
+ * @default
+ */
+ readonly default_persona: string;
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /**
+ * Instructions
+ * @default
+ */
+ readonly instructions: string;
+ /** Name */
+ readonly name: string;
+ };
+ /** CreateDocumentRequest */
+ readonly CreateDocumentRequest: {
+ /**
+ * Content
+ * @default
+ */
+ readonly content: string;
+ /** Title */
+ readonly title?: string | null;
+ };
+ /** CreateFolderPayload */
+ readonly CreateFolderPayload: {
+ /** Path */
+ readonly path: string;
+ };
+ /**
+ * CreateNotebookRequest
+ * @description Create notebook request
+ */
+ readonly CreateNotebookRequest: {
+ /**
+ * Color
+ * @default #3B82F6
+ */
+ readonly color: string;
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /**
+ * Icon
+ * @default book
+ */
+ readonly icon: string;
+ /** Name */
+ readonly name: string;
+ };
+ /** CreatePartnerGroupRequest */
+ readonly CreatePartnerGroupRequest: {
+ /**
+ * Color
+ * @default #6366f1
+ */
+ readonly color: string;
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /**
+ * Discussion Mode
+ * @default panel_parallel
+ */
+ readonly discussion_mode: string;
+ /**
+ * Emoji
+ * @default 👥
+ */
+ readonly emoji: string;
+ /** Member Ids */
+ readonly member_ids: readonly string[];
+ /** Name */
+ readonly name: string;
+ /**
+ * Shared Memory
+ * @default whiteboard
+ */
+ readonly shared_memory: string;
+ };
+ /** CreatePartnerInvocationRequest */
+ readonly CreatePartnerInvocationRequest: {
+ /** Question */
+ readonly question: string;
+ /** Requester Partner Id */
+ readonly requester_partner_id: string;
+ /** Session Key */
+ readonly session_key: string;
+ /** Target Partner Id */
+ readonly target_partner_id: string;
+ };
+ /** CreatePartnerRequest */
+ readonly CreatePartnerRequest: {
+ readonly assets?: components["schemas"]["AssetSpec"] | null;
+ /** Avatar */
+ readonly avatar?: string | null;
+ /** Backup Llm Selection */
+ readonly backup_llm_selection?: {
+ readonly [key: string]: string;
+ } | null;
+ /** Builtin Tools */
+ readonly builtin_tools?: readonly string[] | null;
+ /** Channels */
+ readonly channels?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Color */
+ readonly color?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Emoji */
+ readonly emoji?: string | null;
+ /** Enabled Tools */
+ readonly enabled_tools?: readonly string[] | null;
+ /** Language */
+ readonly language?: string | null;
+ /** Llm Selection */
+ readonly llm_selection?: {
+ readonly [key: string]: string;
+ } | null;
+ /**
+ * Mcp Tools
+ * @default []
+ */
+ readonly mcp_tools: readonly string[] | null;
+ /** Name */
+ readonly name: string;
+ /** Partner Id */
+ readonly partner_id?: string | null;
+ readonly soul?: components["schemas"]["SoulSpec"] | null;
+ /**
+ * Start
+ * @default true
+ */
+ readonly start: boolean;
+ };
+ /** CreatePersonaRequest */
+ readonly CreatePersonaRequest: {
+ /**
+ * Content
+ * @default
+ */
+ readonly content: string;
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /** Name */
+ readonly name: string;
+ };
+ /** CreateSkillRequest */
+ readonly CreateSkillRequest: {
+ /**
+ * Content
+ * @default
+ */
+ readonly content: string;
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /** Name */
+ readonly name: string;
+ /** Tags */
+ readonly tags?: readonly string[];
+ };
+ /** CreateTagRequest */
+ readonly CreateTagRequest: {
+ /** Name */
+ readonly name: string;
+ };
+ /** CreateVideoNoteRequest */
+ readonly CreateVideoNoteRequest: {
+ /** Body */
+ readonly body: string;
+ /** Time Seconds */
+ readonly time_seconds: number;
+ };
+ /** DedupRequest */
+ readonly DedupRequest: {
+ /** Iterations */
+ readonly iterations?: number | null;
+ /**
+ * Language
+ * @default en
+ */
+ readonly language: string;
+ readonly llm_selection?: components["schemas"]["LLMSelectionPayload"] | null;
+ };
+ /** DeepDiveRequest */
+ readonly DeepDiveRequest: {
+ /** Block Id */
+ readonly block_id?: string | null;
+ /** Book Id */
+ readonly book_id: string;
+ /**
+ * Content Type
+ * @default concept
+ */
+ readonly content_type: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Parent Page Id */
+ readonly parent_page_id: string;
+ /** Topic */
+ readonly topic: string;
+ };
+ /** ProgressRequest */
+ readonly deeptutor__api__routers__book__ProgressRequest: {
+ /** Book Id */
+ readonly book_id: string;
+ /** Page Id */
+ readonly page_id: string;
+ };
+ /** ProgressRequest */
+ readonly deeptutor__api__routers__video_learning__ProgressRequest: {
+ /**
+ * Duration Seconds
+ * @default 0
+ */
+ readonly duration_seconds: number;
+ /** Time Seconds */
+ readonly time_seconds: number;
+ };
+ /** DeleteBlockRequest */
+ readonly DeleteBlockRequest: {
+ /** Block Id */
+ readonly block_id: string;
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Page Id */
+ readonly page_id: string;
+ };
+ /**
+ * DeviceCredentialCreateRequest
+ * @description Admin payload for issuing a local ordinary-user device credential.
+ */
+ readonly DeviceCredentialCreateRequest: {
+ /** Daily Limit Minutes */
+ readonly daily_limit_minutes: number;
+ /** Device Name */
+ readonly device_name: string;
+ /** Expires In Days */
+ readonly expires_in_days: number;
+ /** User Id */
+ readonly user_id: string;
+ };
+ /** DeviceInfo */
+ readonly DeviceInfo: {
+ /** Active */
+ readonly active: boolean;
+ /** Device Id */
+ readonly device_id: string;
+ /** Device Kind */
+ readonly device_kind: string;
+ /** Device Name */
+ readonly device_name: string;
+ /** Last Seen */
+ readonly last_seen: string;
+ /** Paired At */
+ readonly paired_at: string;
+ };
+ /**
+ * DeviceLoginRequest
+ * @description Payload for the built-in device-credential login endpoint.
+ */
+ readonly DeviceLoginRequest: {
+ /** Pairing Code */
+ readonly pairing_code: string;
+ /** Pin */
+ readonly pin: string;
+ };
+ /**
+ * DoclingRemoteTest
+ * @description Draft Docling remote-server test. ``api_token`` is tri-state: ``None``
+ * falls back to the stored key, ``""`` clears it, a string supplies it (so
+ * the user can verify an unsaved key before saving).
+ */
+ readonly DoclingRemoteTest: {
+ /**
+ * Api Base Url
+ * @default http://localhost:5001
+ */
+ readonly api_base_url: string;
+ /** Api Token */
+ readonly api_token?: string | null;
+ };
+ /**
+ * DocumentParsingInstall
+ * @description One-click pip install of an optional parser engine's package(s).
+ */
+ readonly DocumentParsingInstall: {
+ /** Engine */
+ readonly engine: string;
+ };
+ /**
+ * DocumentParsingTest
+ * @description Readiness test for one engine (defaults to the active engine).
+ */
+ readonly DocumentParsingTest: {
+ /** Engine */
+ readonly engine?: string | null;
+ };
+ /**
+ * DocumentParsingUpdate
+ * @description Document-parsing settings update (the multi-engine control panel).
+ *
+ * ``engine`` (when provided) switches the active parse engine. ``engines``
+ * carries partial per-engine updates merged over the stored slices. For the
+ * MinerU engine, ``api_token`` stays tri-state: omit it (or send ``None``) to
+ * keep the stored token, ``""`` clears it, a non-empty string replaces it.
+ * The MinerU engine's own knobs can also be edited via the legacy
+ * ``/mineru`` endpoints; both preserve the other engines' settings.
+ */
+ readonly DocumentParsingUpdate: {
+ /** Engine */
+ readonly engine?: string | null;
+ /** Engines */
+ readonly engines?: {
+ readonly [key: string]: {
+ readonly [key: string]: unknown;
+ };
+ } | null;
+ };
+ /** DocumentResponse */
+ readonly DocumentResponse: {
+ /** Content */
+ readonly content: string;
+ /** Created At */
+ readonly created_at: number;
+ /** Id */
+ readonly id: string;
+ /** Title */
+ readonly title: string;
+ /** Updated At */
+ readonly updated_at: number;
+ };
+ /** DocumentSummaryResponse */
+ readonly DocumentSummaryResponse: {
+ /** Created At */
+ readonly created_at: number;
+ /** Id */
+ readonly id: string;
+ /**
+ * Preview
+ * @default
+ */
+ readonly preview: string;
+ /** Title */
+ readonly title: string;
+ /** Updated At */
+ readonly updated_at: number;
+ };
+ /** DocWriteRequest */
+ readonly DocWriteRequest: {
+ /** Content */
+ readonly content: string;
+ };
+ /** DuplicateCheckRequest */
+ readonly DuplicateCheckRequest: {
+ /** Files */
+ readonly files?: readonly components["schemas"]["DuplicateFileQuery"][];
+ /** Urls */
+ readonly urls?: readonly string[];
+ };
+ /** DuplicateFileQuery */
+ readonly DuplicateFileQuery: {
+ /**
+ * Content Id
+ * @default
+ */
+ readonly content_id: string;
+ /**
+ * Filename
+ * @default
+ */
+ readonly filename: string;
+ /**
+ * Mime
+ * @default
+ */
+ readonly mime: string;
+ /**
+ * Size Bytes
+ * @default 0
+ */
+ readonly size_bytes: number;
+ };
+ /** EditRequest */
+ readonly EditRequest: {
+ /**
+ * Action
+ * @default rewrite
+ * @enum {string}
+ */
+ readonly action: "rewrite" | "shorten" | "expand";
+ /** Instruction */
+ readonly instruction: string;
+ /** Kb Name */
+ readonly kb_name?: string | null;
+ /** Source */
+ readonly source?: ("rag" | "web") | null;
+ /** Text */
+ readonly text: string;
+ };
+ /** EditResponse */
+ readonly EditResponse: {
+ /** Edited Text */
+ readonly edited_text: string;
+ /** Operation Id */
+ readonly operation_id: string;
+ };
+ /** EditTopicMapRequest */
+ readonly EditTopicMapRequest: {
+ /** Modules */
+ readonly modules: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ /** EnabledPayload */
+ readonly EnabledPayload: {
+ /** Enabled */
+ readonly enabled: boolean;
+ };
+ /** EnabledToolsUpdate */
+ readonly EnabledToolsUpdate: {
+ /** Enabled Tools */
+ readonly enabled_tools: readonly string[];
+ };
+ /** EntryUpdateRequest */
+ readonly EntryUpdateRequest: {
+ /** Ai Judgment */
+ readonly ai_judgment?: string | null;
+ /** Bookmarked */
+ readonly bookmarked?: boolean | null;
+ /** Followup Session Id */
+ readonly followup_session_id?: string | null;
+ /** Resolved */
+ readonly resolved?: boolean | null;
+ };
+ /** EpubPairingRequest */
+ readonly EpubPairingRequest: {
+ /** Chinese Material Id */
+ readonly chinese_material_id: string;
+ /** English Material Id */
+ readonly english_material_id: string;
+ };
+ /** ErrorEnvelope */
+ readonly ErrorEnvelope: {
+ /**
+ * Correlation Id
+ * @default null
+ */
+ readonly correlation_id: string | null;
+ /** Error Code */
+ readonly error_code: string;
+ /** Message */
+ readonly message: string;
+ /**
+ * Retryable
+ * @default false
+ */
+ readonly retryable: boolean;
+ };
+ /** ExportDocxRequest */
+ readonly ExportDocxRequest: {
+ /**
+ * Content
+ * @default
+ */
+ readonly content: string;
+ /**
+ * Title
+ * @default
+ */
+ readonly title: string;
+ };
+ /** FetchModelsPayload */
+ readonly FetchModelsPayload: {
+ /** Api Key */
+ readonly api_key?: string | null;
+ /**
+ * Base Url
+ * @default
+ */
+ readonly base_url: string;
+ /**
+ * Binding
+ * @default
+ */
+ readonly binding: string;
+ /** Profile Id */
+ readonly profile_id?: string | null;
+ };
+ /** GenerateFromNotebookRequest */
+ readonly GenerateFromNotebookRequest: {
+ /** Notebook Id */
+ readonly notebook_id: string;
+ /** Records */
+ readonly records: readonly components["schemas"]["NotebookRecordInput"][];
+ };
+ /** GenerateFromReadingRequest */
+ readonly GenerateFromReadingRequest: {
+ /** Material Ids */
+ readonly material_ids?: readonly string[];
+ /** Workspace Id */
+ readonly workspace_id: string;
+ };
+ /** GenerateTopicDraftRequest */
+ readonly GenerateTopicDraftRequest: {
+ /** Goal */
+ readonly goal: string;
+ /** Name */
+ readonly name: string;
+ /** Sources */
+ readonly sources?: readonly components["schemas"]["TopicSourceRequest"][];
+ };
+ /** GitHubSourceInfo */
+ readonly GitHubSourceInfo: {
+ /**
+ * Added At
+ * @default
+ */
+ readonly added_at: string;
+ /** Branch */
+ readonly branch: string;
+ /**
+ * Enabled
+ * @default true
+ */
+ readonly enabled: boolean;
+ /**
+ * Files Synced
+ * @default 0
+ */
+ readonly files_synced: number;
+ /** Glob */
+ readonly glob: string;
+ /** Id */
+ readonly id: string;
+ /** Last Sync Error */
+ readonly last_sync_error?: string | null;
+ /**
+ * Last Sync Status
+ * @default pending
+ */
+ readonly last_sync_status: string;
+ /**
+ * Last Synced At
+ * @default
+ */
+ readonly last_synced_at: string;
+ /**
+ * Last Synced Sha
+ * @default
+ */
+ readonly last_synced_sha: string;
+ /** Path */
+ readonly path: string;
+ /** Repo */
+ readonly repo: string;
+ };
+ /** GrantPayload */
+ readonly GrantPayload: {
+ /** Grant */
+ readonly grant: {
+ readonly [key: string]: unknown;
+ };
+ };
+ /**
+ * GraphRagConfigUpdate
+ * @description Partial update for GraphRAG query knobs (omitted fields kept).
+ */
+ readonly GraphRagConfigUpdate: {
+ /** Community Level */
+ readonly community_level?: number | null;
+ /** Dynamic Community Selection */
+ readonly dynamic_community_selection?: boolean | null;
+ /** Response Type */
+ readonly response_type?: string | null;
+ };
+ /**
+ * GraphRagModelCompatibilityRequest
+ * @description Configured chat-model candidate to test without activating it.
+ */
+ readonly GraphRagModelCompatibilityRequest: {
+ /** Model Id */
+ readonly model_id: string;
+ /** Profile Id */
+ readonly profile_id: string;
+ };
+ /** GuardianAuthorizationPayload */
+ readonly GuardianAuthorizationPayload: {
+ /** Guardian User Id */
+ readonly guardian_user_id: string;
+ /** Learner User Id */
+ readonly learner_user_id: string;
+ /** Permissions */
+ readonly permissions?: readonly string[];
+ };
+ /** GuardianCredentialResetPayload */
+ readonly GuardianCredentialResetPayload: {
+ /** New Password */
+ readonly new_password: string;
+ };
+ /** GuardianMaterialsPayload */
+ readonly GuardianMaterialsPayload: {
+ /** Book Ids */
+ readonly book_ids: readonly string[];
+ };
+ /** GuardianRestrictionsPayload */
+ readonly GuardianRestrictionsPayload: {
+ /** Age Band */
+ readonly age_band: string;
+ /** Allow Upload */
+ readonly allow_upload: boolean;
+ /** Allowed Surfaces */
+ readonly allowed_surfaces: readonly string[];
+ /** Extensions */
+ readonly extensions: readonly string[];
+ };
+ /** HTTPValidationError */
+ readonly HTTPValidationError: {
+ /** Detail */
+ readonly detail?: readonly components["schemas"]["ValidationError"][];
+ };
+ /** ImaConfigUpdate */
+ readonly ImaConfigUpdate: {
+ /** Api Key */
+ readonly api_key?: string | null;
+ /** Client Id */
+ readonly client_id?: string | null;
+ };
+ /** ImaKnowledgeBaseSummary */
+ readonly ImaKnowledgeBaseSummary: {
+ /** Description */
+ readonly description?: string | null;
+ /** Id */
+ readonly id: string;
+ /** Name */
+ readonly name: string;
+ };
+ /** ImportedMessage */
+ readonly ImportedMessage: {
+ /**
+ * Content
+ * @default
+ */
+ readonly content: string;
+ /** Created At */
+ readonly created_at?: number | null;
+ /** Metadata */
+ readonly metadata?: {
+ readonly [key: string]: unknown;
+ };
+ /** Role */
+ readonly role: string;
+ };
+ /** ImportedSession */
+ readonly ImportedSession: {
+ /** Created At */
+ readonly created_at: number;
+ /** External Id */
+ readonly external_id: string;
+ /** Messages */
+ readonly messages?: readonly components["schemas"]["ImportedMessage"][];
+ /**
+ * Source Cwd
+ * @default
+ */
+ readonly source_cwd: string;
+ /**
+ * Title
+ * @default
+ */
+ readonly title: string;
+ /** Updated At */
+ readonly updated_at: number;
+ };
+ /** ImportFromBookRequest */
+ readonly ImportFromBookRequest: {
+ /** Chapters */
+ readonly chapters: readonly components["schemas"]["ChapterImport"][];
+ };
+ /** InitModulesRequest */
+ readonly InitModulesRequest: {
+ /** Modules */
+ readonly modules: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ /** InsertBlockRequest */
+ readonly InsertBlockRequest: {
+ /** Block Type */
+ readonly block_type: string;
+ /** Book Id */
+ readonly book_id: string;
+ /**
+ * Compile Now
+ * @default true
+ */
+ readonly compile_now: boolean;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Page Id */
+ readonly page_id: string;
+ /** Params */
+ readonly params?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Position */
+ readonly position?: number | null;
+ };
+ /**
+ * InstallPayload
+ * @description Install a catalog entry, optionally under a different local name.
+ */
+ readonly InstallPayload: {
+ /**
+ * Name
+ * @default
+ */
+ readonly name: string;
+ /** Secrets */
+ readonly secrets?: {
+ readonly [key: string]: string;
+ };
+ };
+ /**
+ * InstallSkillRequest
+ * @description Install a hub skill into the caller's own skill layer.
+ *
+ * ``ref`` is a ``<hub>:<slug>[@version]`` reference (the bare hub prefix
+ * defaults to ``eduhub``). The web "import from EduHub" flow always builds an
+ * ``eduhub:`` ref so a spoofed bridge message can't redirect the install to an
+ * arbitrary registry.
+ */
+ readonly InstallSkillRequest: {
+ /**
+ * Allow Unverified
+ * @default false
+ */
+ readonly allow_unverified: boolean;
+ /**
+ * Force
+ * @default false
+ */
+ readonly force: boolean;
+ /** Name */
+ readonly name?: string | null;
+ /** Ref */
+ readonly ref: string;
+ };
+ /** InvidiousSettings */
+ readonly InvidiousSettings: {
+ /**
+ * Api Base Url
+ * @default
+ */
+ readonly api_base_url: string;
+ /**
+ * Public Base Url
+ * @default
+ */
+ readonly public_base_url: string;
+ };
+ /** KnowledgeBaseInfo */
+ readonly KnowledgeBaseInfo: {
+ /**
+ * Assigned
+ * @default false
+ */
+ readonly assigned: boolean;
+ /**
+ * Available
+ * @default true
+ */
+ readonly available: boolean;
+ /** Id */
+ readonly id?: string | null;
+ /** Is Default */
+ readonly is_default: boolean;
+ /** Metadata */
+ readonly metadata?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Name */
+ readonly name: string;
+ /** Path */
+ readonly path?: string | null;
+ /** Progress */
+ readonly progress?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Provenance Label */
+ readonly provenance_label?: string | null;
+ /**
+ * Read Only
+ * @default false
+ */
+ readonly read_only: boolean;
+ /** Source */
+ readonly source?: string | null;
+ /** Statistics */
+ readonly statistics: {
+ readonly [key: string]: unknown;
+ };
+ /** Status */
+ readonly status?: string | null;
+ };
+ /** LanguageUpdate */
+ readonly LanguageUpdate: {
+ /**
+ * Language
+ * @enum {string}
+ */
+ readonly language: "zh" | "en";
+ };
+ /** LearnerOverrideRequest */
+ readonly LearnerOverrideRequest: {
+ /** Mastered */
+ readonly mastered: boolean;
+ /**
+ * Note
+ * @default
+ */
+ readonly note: string;
+ };
+ /** LearnerProfileRequest */
+ readonly LearnerProfileRequest: {
+ /** Age */
+ readonly age?: number | null;
+ /** Curriculum */
+ readonly curriculum?: string | null;
+ /** Explanation Style */
+ readonly explanation_style?: string | null;
+ /** Grade Level */
+ readonly grade_level?: string | null;
+ /** Language */
+ readonly language?: string | null;
+ /** Reading Level */
+ readonly reading_level?: string | null;
+ };
+ /** LearningCaptureCreateRequest */
+ readonly LearningCaptureCreateRequest: {
+ /**
+ * Block Id
+ * @default
+ */
+ readonly block_id: string;
+ /**
+ * Book Title
+ * @default
+ */
+ readonly book_title: string;
+ /**
+ * Chapter Title
+ * @default
+ */
+ readonly chapter_title: string;
+ /**
+ * Context After
+ * @default
+ */
+ readonly context_after: string;
+ /**
+ * Context Before
+ * @default
+ */
+ readonly context_before: string;
+ /** Page Id */
+ readonly page_id: string;
+ /**
+ * Source Locator
+ * @default
+ */
+ readonly source_locator: string;
+ /** Source Text */
+ readonly source_text: string;
+ /** Status */
+ readonly status?: string | null;
+ /**
+ * User Note
+ * @default
+ */
+ readonly user_note: string;
+ };
+ /** LearningCaptureUpdateRequest */
+ readonly LearningCaptureUpdateRequest: {
+ /** Rejected Reason */
+ readonly rejected_reason?: string | null;
+ /** Status */
+ readonly status?: string | null;
+ /** User Note */
+ readonly user_note?: string | null;
+ };
+ /**
+ * LightRagConfigUpdate
+ * @description Partial update for LightRAG query + indexing knobs (omitted fields kept).
+ */
+ readonly LightRagConfigUpdate: {
+ /** Entity Extract Max Gleaning */
+ readonly entity_extract_max_gleaning?: number | null;
+ /** Llm Model Id */
+ readonly llm_model_id?: string | null;
+ /** Llm Model Max Async */
+ readonly llm_model_max_async?: number | null;
+ /** Llm Profile Id */
+ readonly llm_profile_id?: string | null;
+ /** Max Concurrent Files */
+ readonly max_concurrent_files?: number | null;
+ /** Response Type */
+ readonly response_type?: string | null;
+ /** Top K */
+ readonly top_k?: number | null;
+ };
+ /**
+ * LightRagServerConfigUpdate
+ * @description Reusable LightRAG Server defaults (individual KBs may override them).
+ */
+ readonly LightRagServerConfigUpdate: {
+ /** Api Key */
+ readonly api_key?: string | null;
+ /** Server Url */
+ readonly server_url?: string | null;
+ };
+ /**
+ * LinkedFolderInfo
+ * @description Response model for linked folder information.
+ */
+ readonly LinkedFolderInfo: {
+ /** Added At */
+ readonly added_at: string;
+ /** File Count */
+ readonly file_count: number;
+ /** Id */
+ readonly id: string;
+ /** Path */
+ readonly path: string;
+ };
+ /**
+ * LinkFolderRequest
+ * @description Request model for linking a local folder to a KB.
+ */
+ readonly LinkFolderRequest: {
+ /** Folder Path */
+ readonly folder_path: string;
+ };
+ /** ListImaRequest */
+ readonly ListImaRequest: {
+ /**
+ * Api Key
+ * @default
+ */
+ readonly api_key: string;
+ /**
+ * Client Id
+ * @default
+ */
+ readonly client_id: string;
+ /**
+ * Cursor
+ * @default
+ */
+ readonly cursor: string;
+ /**
+ * Limit
+ * @default 20
+ */
+ readonly limit: number;
+ };
+ /** ListImaResponse */
+ readonly ListImaResponse: {
+ /** Is End */
+ readonly is_end: boolean;
+ /** Knowledge Bases */
+ readonly knowledge_bases: readonly components["schemas"]["ImaKnowledgeBaseSummary"][];
+ /** Next Cursor */
+ readonly next_cursor: string;
+ };
+ /**
+ * LlamaIndexConfigUpdate
+ * @description Partial update for the LlamaIndex engine knobs (omitted fields kept).
+ */
+ readonly LlamaIndexConfigUpdate: {
+ /** Bm25 Top K Multiplier */
+ readonly bm25_top_k_multiplier?: number | null;
+ /** Chunk Overlap */
+ readonly chunk_overlap?: number | null;
+ /** Chunk Size */
+ readonly chunk_size?: number | null;
+ /** Hnsw Ef Construction */
+ readonly hnsw_ef_construction?: number | null;
+ /** Hnsw Ef Search */
+ readonly hnsw_ef_search?: number | null;
+ /** Hnsw M */
+ readonly hnsw_m?: number | null;
+ /** Image Description Concurrency */
+ readonly image_description_concurrency?: number | null;
+ /** Image Description Timeout Seconds */
+ readonly image_description_timeout_seconds?: number | null;
+ /** Rerank Top K */
+ readonly rerank_top_k?: number | null;
+ /** Reranker Model */
+ readonly reranker_model?: string | null;
+ /** Retrieval Profile */
+ readonly retrieval_profile?: string | null;
+ /** Top K */
+ readonly top_k?: number | null;
+ /** Vector Index Type */
+ readonly vector_index_type?: string | null;
+ /** Vector Top K Multiplier */
+ readonly vector_top_k_multiplier?: number | null;
+ };
+ /** LLMSelection */
+ readonly LLMSelection: {
+ /** Model Id */
+ readonly model_id: string;
+ /** Profile Id */
+ readonly profile_id: string;
+ };
+ /** LLMSelectionPayload */
+ readonly LLMSelectionPayload: {
+ /** Model Id */
+ readonly model_id: string;
+ /** Profile Id */
+ readonly profile_id: string;
+ };
+ /**
+ * LoginRequest
+ * @description Payload for the POST /login endpoint.
+ */
+ readonly LoginRequest: {
+ /** Password */
+ readonly password: string;
+ /** Username */
+ readonly username: string;
+ };
+ /** ManagedUpdateRequest */
+ readonly ManagedUpdateRequest: {
+ /**
+ * Confirmation
+ * @constant
+ */
+ readonly confirmation: "update-and-restart";
+ };
+ /** MaterialDetail */
+ readonly MaterialDetail: {
+ /**
+ * Annotation Count
+ * @default 0
+ */
+ readonly annotation_count: number;
+ /**
+ * Byte Size
+ * @default 0
+ */
+ readonly byte_size: number;
+ /**
+ * Char Count
+ * @default 0
+ */
+ readonly char_count: number;
+ /**
+ * Content Format
+ * @default plain_text
+ * @enum {string}
+ */
+ readonly content_format: "plain_text" | "web_markdown";
+ /**
+ * Created At
+ * @default 0
+ */
+ readonly created_at: number;
+ /**
+ * Extractor
+ * @default
+ */
+ readonly extractor: string;
+ /** Filename */
+ readonly filename: string;
+ /**
+ * Has Raw View
+ * @default false
+ */
+ readonly has_raw_view: boolean;
+ /** Material Id */
+ readonly material_id: string;
+ /**
+ * Mime
+ * @default
+ */
+ readonly mime: string;
+ /** Outline */
+ readonly outline?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /**
+ * Outline Text
+ * @default
+ */
+ readonly outline_text: string;
+ /**
+ * Render Mode
+ * @default text
+ * @enum {string}
+ */
+ readonly render_mode: "text" | "pdf" | "epub" | "video" | "audio";
+ /**
+ * Revision
+ * @default 1
+ */
+ readonly revision: number;
+ /**
+ * Source Type
+ * @default upload
+ */
+ readonly source_type: string;
+ /**
+ * Source Url
+ * @default
+ */
+ readonly source_url: string;
+ /**
+ * Title
+ * @default
+ */
+ readonly title: string;
+ /** Unit */
+ readonly unit: string;
+ /** Unit Count */
+ readonly unit_count: number;
+ /** Unit Refs */
+ readonly unit_refs?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ /** MaterialInfo */
+ readonly MaterialInfo: {
+ /**
+ * Annotation Count
+ * @default 0
+ */
+ readonly annotation_count: number;
+ /**
+ * Byte Size
+ * @default 0
+ */
+ readonly byte_size: number;
+ /**
+ * Char Count
+ * @default 0
+ */
+ readonly char_count: number;
+ /**
+ * Content Format
+ * @default plain_text
+ * @enum {string}
+ */
+ readonly content_format: "plain_text" | "web_markdown";
+ /**
+ * Created At
+ * @default 0
+ */
+ readonly created_at: number;
+ /**
+ * Extractor
+ * @default
+ */
+ readonly extractor: string;
+ /** Filename */
+ readonly filename: string;
+ /**
+ * Has Raw View
+ * @default false
+ */
+ readonly has_raw_view: boolean;
+ /** Material Id */
+ readonly material_id: string;
+ /**
+ * Mime
+ * @default
+ */
+ readonly mime: string;
+ /**
+ * Render Mode
+ * @default text
+ * @enum {string}
+ */
+ readonly render_mode: "text" | "pdf" | "epub" | "video" | "audio";
+ /**
+ * Revision
+ * @default 1
+ */
+ readonly revision: number;
+ /**
+ * Source Type
+ * @default upload
+ */
+ readonly source_type: string;
+ /**
+ * Source Url
+ * @default
+ */
+ readonly source_url: string;
+ /**
+ * Title
+ * @default
+ */
+ readonly title: string;
+ /** Unit */
+ readonly unit: string;
+ /** Unit Count */
+ readonly unit_count: number;
+ };
+ /**
+ * MCPServerConfig
+ * @description One MCP server entry.
+ *
+ * ``type`` is auto-detected when omitted: ``command`` ⇒ stdio; a ``url``
+ * ending in ``/sse`` ⇒ sse; any other ``url`` ⇒ streamableHttp.
+ */
+ readonly MCPServerConfig: {
+ /** Args */
+ readonly args?: readonly string[];
+ /**
+ * Auth
+ * @default
+ * @enum {string}
+ */
+ readonly auth: "" | "oauth";
+ /**
+ * Catalog Entry
+ * @default
+ */
+ readonly catalog_entry: string;
+ /**
+ * Command
+ * @default
+ */
+ readonly command: string;
+ /**
+ * Cwd
+ * @default
+ */
+ readonly cwd: string;
+ /** Disabled Tools */
+ readonly disabled_tools?: readonly string[];
+ /**
+ * Enabled
+ * @default true
+ */
+ readonly enabled: boolean;
+ /** Enabled Tools */
+ readonly enabled_tools?: readonly string[];
+ /** Env */
+ readonly env?: {
+ readonly [key: string]: string;
+ };
+ /** Headers */
+ readonly headers?: {
+ readonly [key: string]: string;
+ };
+ /**
+ * Tool Timeout
+ * @default 30
+ */
+ readonly tool_timeout: number;
+ /** Type */
+ readonly type?: ("stdio" | "sse" | "streamableHttp") | null;
+ /**
+ * Url
+ * @default
+ */
+ readonly url: string;
+ };
+ /** MCPSettingsPayload */
+ readonly MCPSettingsPayload: {
+ /** Servers */
+ readonly servers?: {
+ readonly [key: string]: components["schemas"]["MCPServerConfig"];
+ };
+ };
+ /**
+ * MinerUModelDownloadPayload
+ * @description One-click model download request (draft form values, like /test).
+ */
+ readonly MinerUModelDownloadPayload: {
+ /**
+ * Endpoint
+ * @default
+ */
+ readonly endpoint: string;
+ /**
+ * Local Cli Path
+ * @default
+ */
+ readonly local_cli_path: string;
+ /**
+ * Model Type
+ * @default pipeline
+ * @enum {string}
+ */
+ readonly model_type: "pipeline" | "vlm" | "all";
+ /**
+ * Source
+ * @default huggingface
+ * @enum {string}
+ */
+ readonly source: "huggingface" | "modelscope";
+ };
+ /**
+ * MinerUSettingsUpdate
+ * @description MinerU document-parsing backend settings.
+ *
+ * ``api_token`` is tri-state: ``None`` keeps the stored token (the UI sends
+ * None when the user didn't edit the secret field), ``""`` clears it, and a
+ * non-empty string or string array replaces it. The GET payload never echoes
+ * the raw token.
+ */
+ readonly MinerUSettingsUpdate: {
+ /**
+ * Allow Local Model Download
+ * @default false
+ */
+ readonly allow_local_model_download: boolean;
+ /**
+ * Api Base Url
+ * @default https://mineru.net
+ */
+ readonly api_base_url: string;
+ /** Api Token */
+ readonly api_token?: string | readonly string[] | null;
+ /**
+ * Enable Formula
+ * @default true
+ */
+ readonly enable_formula: boolean;
+ /**
+ * Enable Table
+ * @default true
+ */
+ readonly enable_table: boolean;
+ /**
+ * Is Ocr
+ * @default false
+ */
+ readonly is_ocr: boolean;
+ /**
+ * Language
+ * @default auto
+ */
+ readonly language: string;
+ /**
+ * Local Cli Path
+ * @default
+ */
+ readonly local_cli_path: string;
+ /**
+ * Mode
+ * @default local
+ * @enum {string}
+ */
+ readonly mode: "local" | "cloud";
+ /**
+ * Model Download Endpoint
+ * @default
+ */
+ readonly model_download_endpoint: string;
+ /**
+ * Model Download Source
+ * @default huggingface
+ * @enum {string}
+ */
+ readonly model_download_source: "huggingface" | "modelscope";
+ /**
+ * Model Version
+ * @default pipeline
+ * @enum {string}
+ */
+ readonly model_version: "pipeline" | "vlm";
+ };
+ /** MoveBlockRequest */
+ readonly MoveBlockRequest: {
+ /** Block Id */
+ readonly block_id: string;
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** New Position */
+ readonly new_position: number;
+ /** Page Id */
+ readonly page_id: string;
+ };
+ /** MoveFilePayload */
+ readonly MoveFilePayload: {
+ /**
+ * Dest Folder
+ * @default
+ */
+ readonly dest_folder: string;
+ /** Source */
+ readonly source: string;
+ };
+ /**
+ * MoveRecordRequest
+ * @description Move or copy a record into another notebook.
+ */
+ readonly MoveRecordRequest: {
+ /** Target Notebook Id */
+ readonly target_notebook_id: string;
+ };
+ /** NetworkSettingsUpdate */
+ readonly NetworkSettingsUpdate: {
+ /** Backend Port */
+ readonly backend_port: number;
+ /** Cors Origins */
+ readonly cors_origins?: readonly string[];
+ /** Frontend Port */
+ readonly frontend_port: number;
+ /**
+ * Public Api Base
+ * @default
+ */
+ readonly public_api_base: string;
+ };
+ /** NotebookCaptureRequest */
+ readonly NotebookCaptureRequest: {
+ /** Material Ids */
+ readonly material_ids?: readonly string[];
+ /** Notebook Ids */
+ readonly notebook_ids: readonly string[];
+ /**
+ * Summary
+ * @default
+ */
+ readonly summary: string;
+ /**
+ * Title
+ * @default
+ */
+ readonly title: string;
+ };
+ /** NotebookEntryItem */
+ readonly NotebookEntryItem: {
+ /**
+ * Ai Judgment
+ * @default
+ */
+ readonly ai_judgment: string;
+ /**
+ * Bookmarked
+ * @default false
+ */
+ readonly bookmarked: boolean;
+ /** Categories */
+ readonly categories?: readonly components["schemas"]["CategoryItem"][] | null;
+ /**
+ * Correct Answer
+ * @default
+ */
+ readonly correct_answer: string;
+ /** Created At */
+ readonly created_at: number;
+ /**
+ * Difficulty
+ * @default
+ */
+ readonly difficulty: string;
+ /**
+ * Explanation
+ * @default
+ */
+ readonly explanation: string;
+ /**
+ * Followup Session Id
+ * @default
+ */
+ readonly followup_session_id: string;
+ /** Id */
+ readonly id: number;
+ /**
+ * Is Correct
+ * @default false
+ */
+ readonly is_correct: boolean;
+ /**
+ * Material Id
+ * @default
+ */
+ readonly material_id: string;
+ /**
+ * Material Title
+ * @default
+ */
+ readonly material_title: string;
+ /**
+ * Options
+ * @default {}
+ */
+ readonly options: {
+ readonly [key: string]: string;
+ };
+ /** Question */
+ readonly question: string;
+ /**
+ * Question Id
+ * @default
+ */
+ readonly question_id: string;
+ /**
+ * Question Type
+ * @default
+ */
+ readonly question_type: string;
+ /**
+ * Resolved
+ * @default false
+ */
+ readonly resolved: boolean;
+ /**
+ * Score Trend
+ * @default new
+ * @enum {string}
+ */
+ readonly score_trend: "new" | "improved" | "declined" | "unchanged";
+ /**
+ * Section Id
+ * @default
+ */
+ readonly section_id: string;
+ /**
+ * Section Title
+ * @default
+ */
+ readonly section_title: string;
+ /** Session Id */
+ readonly session_id: string;
+ /**
+ * Session Title
+ * @default
+ */
+ readonly session_title: string;
+ /**
+ * Source
+ * @default deep_question
+ * @enum {string}
+ */
+ readonly source: "deep_question" | "mastery_path" | "immersive_reading" | "book";
+ /**
+ * Turn Id
+ * @default
+ */
+ readonly turn_id: string;
+ /** Updated At */
+ readonly updated_at: number;
+ /**
+ * User Answer
+ * @default
+ */
+ readonly user_answer: string;
+ /**
+ * User Answer Images
+ * @default []
+ */
+ readonly user_answer_images: readonly components["schemas"]["AnswerImageItem"][];
+ };
+ /** NotebookEntryListResponse */
+ readonly NotebookEntryListResponse: {
+ /** Items */
+ readonly items: readonly components["schemas"]["NotebookEntryItem"][];
+ /** Total */
+ readonly total: number;
+ };
+ /** NotebookRecordInput */
+ readonly NotebookRecordInput: {
+ /** Id */
+ readonly id: string;
+ /**
+ * Output
+ * @default
+ */
+ readonly output: string;
+ /**
+ * Title
+ * @default
+ */
+ readonly title: string;
+ /**
+ * Type
+ * @default note
+ */
+ readonly type: string;
+ };
+ /** NotebookReference */
+ readonly NotebookReference: {
+ /** Notebook Id */
+ readonly notebook_id: string;
+ /** Record Ids */
+ readonly record_ids?: readonly string[];
+ };
+ /** OrganizeNotesRequest */
+ readonly OrganizeNotesRequest: {
+ /** Material Ids */
+ readonly material_ids?: readonly string[];
+ };
+ /** OutgoingAttachment */
+ readonly OutgoingAttachment: {
+ /**
+ * Base64
+ * @default null
+ */
+ readonly base64: string | null;
+ /**
+ * Filename
+ * @default null
+ */
+ readonly filename: string | null;
+ /**
+ * Mime Type
+ * @default null
+ */
+ readonly mime_type: string | null;
+ /** Type */
+ readonly type: string;
+ /**
+ * Url
+ * @default null
+ */
+ readonly url: string | null;
+ };
+ /** PageChatSessionRequest */
+ readonly PageChatSessionRequest: {
+ /** Book Id */
+ readonly book_id: string;
+ /** Page Id */
+ readonly page_id: string;
+ /** Session Id */
+ readonly session_id: string;
+ };
+ /** PageIndexConfigUpdate */
+ readonly PageIndexConfigUpdate: {
+ /** Api Key */
+ readonly api_key?: string | null;
+ };
+ /** PairRequest */
+ readonly PairRequest: {
+ /**
+ * Device Kind
+ * @default macos
+ */
+ readonly device_kind: string;
+ /**
+ * Device Name
+ * @default
+ */
+ readonly device_name: string;
+ };
+ /** PairResponse */
+ readonly PairResponse: {
+ /** Device Id */
+ readonly device_id: string;
+ /** Device Kind */
+ readonly device_kind: string;
+ /** Device Name */
+ readonly device_name: string;
+ /** Token */
+ readonly token: string;
+ };
+ /** PartnerGroupMessageRequest */
+ readonly PartnerGroupMessageRequest: {
+ /** Content */
+ readonly content: string;
+ /** Mentions */
+ readonly mentions?: readonly string[] | null;
+ /**
+ * Session Key
+ * @default default
+ */
+ readonly session_key: string;
+ };
+ /** PartnerInvocationActionRequest */
+ readonly PartnerInvocationActionRequest: {
+ /**
+ * Session Key
+ * @default default
+ */
+ readonly session_key: string;
+ };
+ /** PartnerSeatRetryRequest */
+ readonly PartnerSeatRetryRequest: {
+ /** Session Key */
+ readonly session_key: string;
+ };
+ /** PositionInfo */
+ readonly PositionInfo: {
+ /** Locator */
+ readonly locator: number;
+ /**
+ * Percentage
+ * @default 0
+ */
+ readonly percentage: number;
+ /**
+ * Source Anchor
+ * @default
+ */
+ readonly source_anchor: string;
+ /**
+ * Updated At
+ * @default 0
+ */
+ readonly updated_at: number;
+ };
+ /** PositionPayload */
+ readonly PositionPayload: {
+ /** Locator */
+ readonly locator: number;
+ /**
+ * Percentage
+ * @default 0
+ */
+ readonly percentage: number;
+ /**
+ * Source Anchor
+ * @default
+ */
+ readonly source_anchor: string;
+ };
+ /** ProbeFolderRequest */
+ readonly ProbeFolderRequest: {
+ /** Folder Path */
+ readonly folder_path: string;
+ /**
+ * Rag Provider
+ * @default llamaindex
+ */
+ readonly rag_provider: string;
+ };
+ /** ProbeImaRequest */
+ readonly ProbeImaRequest: {
+ /**
+ * Api Key
+ * @default
+ */
+ readonly api_key: string;
+ /**
+ * Client Id
+ * @default
+ */
+ readonly client_id: string;
+ /** Knowledge Base Id */
+ readonly knowledge_base_id: string;
+ };
+ /** ProbeLightRagServerRequest */
+ readonly ProbeLightRagServerRequest: {
+ /**
+ * Api Key
+ * @default
+ */
+ readonly api_key: string;
+ /** Server Url */
+ readonly server_url: string;
+ /**
+ * Use Saved Api Key
+ * @default false
+ */
+ readonly use_saved_api_key: boolean;
+ };
+ /** ProbeWeKnoraRequest */
+ readonly ProbeWeKnoraRequest: {
+ /** Api Key */
+ readonly api_key: string;
+ /** Knowledge Base Id */
+ readonly knowledge_base_id: string;
+ /** Server Url */
+ readonly server_url: string;
+ };
+ /**
+ * ProviderModeUpdate
+ * @description Set an engine's global default retrieval mode (from its engine card).
+ */
+ readonly ProviderModeUpdate: {
+ /** Mode */
+ readonly mode: string;
+ };
+ /** QuestionBankMaterial */
+ readonly QuestionBankMaterial: {
+ /** Entry Count */
+ readonly entry_count: number;
+ /** Material Id */
+ readonly material_id: string;
+ /** Material Title */
+ readonly material_title: string;
+ /** Source */
+ readonly source: string;
+ /** Unresolved Count */
+ readonly unresolved_count: number;
+ };
+ /** QuestionBankStats */
+ readonly QuestionBankStats: {
+ /**
+ * Bookmarked
+ * @default 0
+ */
+ readonly bookmarked: number;
+ /**
+ * Total
+ * @default 0
+ */
+ readonly total: number;
+ /**
+ * Uncategorized
+ * @default 0
+ */
+ readonly uncategorized: number;
+ /**
+ * Unresolved
+ * @default 0
+ */
+ readonly unresolved: number;
+ /**
+ * Wrong
+ * @default 0
+ */
+ readonly wrong: number;
+ };
+ /** QuizAttemptRequest */
+ readonly QuizAttemptRequest: {
+ /** Block Id */
+ readonly block_id: string;
+ /** Book Id */
+ readonly book_id: string;
+ /** Is Correct */
+ readonly is_correct?: boolean | null;
+ /** Page Id */
+ readonly page_id: string;
+ /**
+ * Question Id
+ * @default
+ */
+ readonly question_id: string;
+ /**
+ * User Answer
+ * @default
+ */
+ readonly user_answer: string;
+ };
+ /** QuizResultItem */
+ readonly QuizResultItem: {
+ /**
+ * Correct Answer
+ * @default
+ */
+ readonly correct_answer: string;
+ /**
+ * Difficulty
+ * @default
+ */
+ readonly difficulty: string | null;
+ /**
+ * Explanation
+ * @default
+ */
+ readonly explanation: string | null;
+ /** Is Correct */
+ readonly is_correct: boolean;
+ /** Options */
+ readonly options?: {
+ readonly [key: string]: string;
+ } | null;
+ /** Question */
+ readonly question: string;
+ /**
+ * Question Id
+ * @default
+ */
+ readonly question_id: string;
+ /**
+ * Question Type
+ * @default
+ */
+ readonly question_type: string;
+ /**
+ * User Answer
+ * @default
+ */
+ readonly user_answer: string;
+ };
+ /** QuizResultsRequest */
+ readonly QuizResultsRequest: {
+ /** Answers */
+ readonly answers?: readonly components["schemas"]["QuizResultItem"][];
+ /**
+ * Turn Id
+ * @default
+ */
+ readonly turn_id: string;
+ };
+ /** ReactEditRequest */
+ readonly ReactEditRequest: {
+ /**
+ * Instruction
+ * @default
+ */
+ readonly instruction: string;
+ /** Kb Name */
+ readonly kb_name?: string | null;
+ /**
+ * Mode
+ * @default rewrite
+ * @enum {string}
+ */
+ readonly mode: "rewrite" | "shorten" | "expand" | "none";
+ /** Selected Text */
+ readonly selected_text: string;
+ /**
+ * Tools
+ * @default []
+ */
+ readonly tools: readonly ("rag" | "web")[];
+ };
+ /** ReactEditResponse */
+ readonly ReactEditResponse: {
+ /** Edited Text */
+ readonly edited_text: string;
+ /** Operation Id */
+ readonly operation_id: string;
+ /**
+ * Tools Used
+ * @default []
+ */
+ readonly tools_used: readonly string[];
+ };
+ /** ReadingReference */
+ readonly ReadingReference: {
+ /** Locators */
+ readonly locators?: readonly number[];
+ /** Material Id */
+ readonly material_id: string;
+ /** Revision */
+ readonly revision: number;
+ };
+ /** ReadingSessionCreateRequest */
+ readonly ReadingSessionCreateRequest: {
+ /**
+ * Active Material Id
+ * @default
+ */
+ readonly active_material_id: string;
+ /**
+ * Title
+ * @default New reading conversation
+ */
+ readonly title: string;
+ };
+ /** ReadingSessionLinkRequest */
+ readonly ReadingSessionLinkRequest: {
+ /** Target Session Id */
+ readonly target_session_id: string;
+ };
+ /** ReadingSessionRenameRequest */
+ readonly ReadingSessionRenameRequest: {
+ /** Title */
+ readonly title: string;
+ };
+ /** ReadingViewport */
+ readonly ReadingViewport: {
+ /**
+ * Locator
+ * @default null
+ */
+ readonly locator: number | null;
+ /**
+ * Selection
+ * @default null
+ */
+ readonly selection: string | null;
+ };
+ /** RebuildBookRequest */
+ readonly RebuildBookRequest: {
+ /**
+ * Auto Compile
+ * @default true
+ */
+ readonly auto_compile: boolean;
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ };
+ /** RegenerateBlockRequest */
+ readonly RegenerateBlockRequest: {
+ /** Block Id */
+ readonly block_id: string;
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Page Id */
+ readonly page_id: string;
+ /** Params Override */
+ readonly params_override?: {
+ readonly [key: string]: unknown;
+ } | null;
+ };
+ /**
+ * RegisterRequest
+ * @description Payload for the POST /register endpoint.
+ */
+ readonly RegisterRequest: {
+ /** Password */
+ readonly password: string;
+ /** Username */
+ readonly username: string;
+ };
+ /**
+ * RenamePathRequest
+ * @description An empty name is a valid request: it restores the derived display name.
+ */
+ readonly RenamePathRequest: {
+ /**
+ * Name
+ * @default
+ */
+ readonly name: string;
+ };
+ /** RenameTagRequest */
+ readonly RenameTagRequest: {
+ /** Rename To */
+ readonly rename_to: string;
+ };
+ /** ResolveRequest */
+ readonly ResolveRequest: {
+ /**
+ * Language
+ * @default
+ */
+ readonly language: string;
+ /** Provider Override */
+ readonly provider_override?: string | null;
+ /** Url */
+ readonly url: string;
+ };
+ /** ResumeBookRequest */
+ readonly ResumeBookRequest: {
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ };
+ /** RoundSummaryRequest */
+ readonly RoundSummaryRequest: {
+ /** Partner Id */
+ readonly partner_id: string;
+ /** Session Key */
+ readonly session_key: string;
+ };
+ /** RunStartRequest */
+ readonly RunStartRequest: {
+ /** Budget */
+ readonly budget?: number | null;
+ /** Iterations */
+ readonly iterations?: number | null;
+ /** Key */
+ readonly key: string;
+ /**
+ * Language
+ * @default en
+ */
+ readonly language: string;
+ /** Layer */
+ readonly layer: string;
+ readonly llm_selection?: components["schemas"]["LLMSelectionPayload"] | null;
+ /**
+ * Mode
+ * @enum {string}
+ */
+ readonly mode: "update" | "audit" | "dedup" | "merge";
+ };
+ /** RuntimeStatus */
+ readonly RuntimeStatus: {
+ /**
+ * Coordination Mode
+ * @enum {string}
+ */
+ readonly coordination_mode: "memory" | "redis";
+ /**
+ * Leader Healthy
+ * @default null
+ */
+ readonly leader_healthy: boolean | null;
+ /**
+ * Leader Id
+ * @default null
+ */
+ readonly leader_id: string | null;
+ /** Lease Ttl Seconds */
+ readonly lease_ttl_seconds: number;
+ /**
+ * Minimum Web Protocol Version
+ * @default 2.0
+ * @constant
+ */
+ readonly minimum_web_protocol_version: "2.0";
+ /**
+ * Owner Turn Count
+ * @default 0
+ */
+ readonly owner_turn_count: number;
+ /**
+ * Protocol Version
+ * @default 2.0
+ * @constant
+ */
+ readonly protocol_version: "2.0";
+ /**
+ * Recovery Backlog
+ * @default 0
+ */
+ readonly recovery_backlog: number;
+ /** Recovery Interval Seconds */
+ readonly recovery_interval_seconds: number;
+ /** Redis Configured */
+ readonly redis_configured: boolean;
+ /**
+ * Redis Status
+ * @enum {string}
+ */
+ readonly redis_status: "ok" | "unavailable" | "not_configured";
+ /** Renew Interval Seconds */
+ readonly renew_interval_seconds: number;
+ /** Worker Count */
+ readonly worker_count: number;
+ /** Worker Id */
+ readonly worker_id: string;
+ };
+ /**
+ * ServerPayload
+ * @description A server definition plus the credential values to store beside it.
+ */
+ readonly ServerPayload: {
+ readonly config: components["schemas"]["MCPServerConfig"];
+ /** Secrets */
+ readonly secrets?: {
+ readonly [key: string]: string;
+ };
+ };
+ /** SessionBranchBody */
+ readonly SessionBranchBody: {
+ /** New Key */
+ readonly new_key: string;
+ /** Source Key */
+ readonly source_key: string;
+ };
+ /** SessionDetail */
+ readonly SessionDetail: {
+ /** @default null */
+ readonly active_turn: components["schemas"]["TurnSummary"] | null;
+ /**
+ * Created At
+ * @default null
+ */
+ readonly created_at: number | null;
+ /** Id */
+ readonly id: string;
+ /** Messages */
+ readonly messages?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /** Preferences */
+ readonly preferences?: {
+ readonly [key: string]: unknown;
+ };
+ /** Title */
+ readonly title: string;
+ /**
+ * Updated At
+ * @default null
+ */
+ readonly updated_at: number | null;
+ };
+ /** SessionKeyBody */
+ readonly SessionKeyBody: {
+ /** Session Key */
+ readonly session_key: string;
+ };
+ /**
+ * SessionOrganizationRequest
+ * @description User-controlled organization metadata stored with the conversation.
+ */
+ readonly SessionOrganizationRequest: {
+ /** Archived */
+ readonly archived?: boolean | null;
+ /** Course Id */
+ readonly course_id?: string | null;
+ /** Parent Session Id */
+ readonly parent_session_id?: string | null;
+ /** Pinned */
+ readonly pinned?: boolean | null;
+ /** Session Kind */
+ readonly session_kind?: ("chat" | "selection_tutor" | "immersive_reading") | null;
+ };
+ /** SessionRenameRequest */
+ readonly SessionRenameRequest: {
+ /** Title */
+ readonly title: string;
+ };
+ /** SessionSummary */
+ readonly SessionSummary: {
+ /** @default null */
+ readonly active_turn: components["schemas"]["TurnSummary"] | null;
+ /**
+ * Created At
+ * @default null
+ */
+ readonly created_at: number | null;
+ /** Id */
+ readonly id: string;
+ /** Title */
+ readonly title: string;
+ /**
+ * Updated At
+ * @default null
+ */
+ readonly updated_at: number | null;
+ };
+ /**
+ * SetRoleRequest
+ * @description Payload for the PUT /users/{username}/role endpoint.
+ */
+ readonly SetRoleRequest: {
+ /** Role */
+ readonly role: string;
+ };
+ /** SetSyllabusRequest */
+ readonly SetSyllabusRequest: {
+ /** Units */
+ readonly units: readonly components["schemas"]["SyllabusUnitRequest"][];
+ };
+ /**
+ * SettingsDraftPayload
+ * @description The unapplied settings envelope, as the settings UI holds it.
+ */
+ readonly SettingsDraftPayload: {
+ /** Catalog */
+ readonly catalog?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Extensions */
+ readonly extensions?: {
+ readonly [key: string]: unknown;
+ };
+ };
+ /** SidebarDescriptionUpdate */
+ readonly SidebarDescriptionUpdate: {
+ /** Description */
+ readonly description: string;
+ };
+ /** SidebarNavOrder */
+ readonly SidebarNavOrder: {
+ /** Learnresearch */
+ readonly learnResearch: readonly string[];
+ /** Start */
+ readonly start: readonly string[];
+ };
+ /** SidebarNavOrderUpdate */
+ readonly SidebarNavOrderUpdate: {
+ readonly nav_order: components["schemas"]["SidebarNavOrder"];
+ };
+ /** SkillInstallPayload */
+ readonly SkillInstallPayload: {
+ /**
+ * Allow Unverified
+ * @default false
+ */
+ readonly allow_unverified: boolean;
+ /**
+ * Force
+ * @default false
+ */
+ readonly force: boolean;
+ /** Name */
+ readonly name?: string | null;
+ /** Ref */
+ readonly ref: string;
+ };
+ /** SoulCreateRequest */
+ readonly SoulCreateRequest: {
+ /** Content */
+ readonly content: string;
+ /** Id */
+ readonly id: string;
+ /** Name */
+ readonly name: string;
+ };
+ /**
+ * SoulSpec
+ * @description Where a new partner's soul comes from.
+ */
+ readonly SoulSpec: {
+ /** Content */
+ readonly content?: string | null;
+ /** Id */
+ readonly id?: string | null;
+ /**
+ * Source
+ * @default default
+ * @enum {string}
+ */
+ readonly source: "default" | "library" | "persona" | "custom";
+ };
+ /** SoulTemplateUpdateRequest */
+ readonly SoulTemplateUpdateRequest: {
+ /** Content */
+ readonly content?: string | null;
+ /** Name */
+ readonly name?: string | null;
+ };
+ /** SoulUpdateBody */
+ readonly SoulUpdateBody: {
+ /** Content */
+ readonly content: string;
+ };
+ /** SubagentMessageRequest */
+ readonly SubagentMessageRequest: {
+ /**
+ * Chat Session Id
+ * @default
+ */
+ readonly chat_session_id: string;
+ /** Message */
+ readonly message: string;
+ };
+ /** SubagentSettingsPayload */
+ readonly SubagentSettingsPayload: {
+ /** Backends */
+ readonly backends?: {
+ readonly [key: string]: {
+ readonly [key: string]: unknown;
+ };
+ } | null;
+ /** Consult Budget */
+ readonly consult_budget?: number | null;
+ };
+ /** SupplementRequest */
+ readonly SupplementRequest: {
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Page Id */
+ readonly page_id: string;
+ /** Topic */
+ readonly topic: string;
+ };
+ /**
+ * SupportedFileTypesInfo
+ * @description Upload constraints exposed to the web client.
+ */
+ readonly SupportedFileTypesInfo: {
+ /** Accept */
+ readonly accept: string;
+ /** Extensions */
+ readonly extensions: readonly string[];
+ /** Max File Size Bytes */
+ readonly max_file_size_bytes: number;
+ };
+ /** SupportedFormats */
+ readonly SupportedFormats: {
+ /** Extensions */
+ readonly extensions: readonly string[];
+ /** Max Bytes */
+ readonly max_bytes: number;
+ /** Raw View Extensions */
+ readonly raw_view_extensions: readonly string[];
+ };
+ /** SyllabusUnitRequest */
+ readonly SyllabusUnitRequest: {
+ /**
+ * Covered
+ * @default false
+ */
+ readonly covered: boolean;
+ /** Id */
+ readonly id?: string | null;
+ /** Title */
+ readonly title: string;
+ /** Topics */
+ readonly topics?: readonly string[];
+ };
+ /** SyncObjectIn */
+ readonly SyncObjectIn: {
+ /** Color */
+ readonly color?: string | null;
+ /**
+ * Content
+ * @default
+ */
+ readonly content: string;
+ /**
+ * Created At
+ * @default
+ */
+ readonly created_at: string;
+ /** Document Id */
+ readonly document_id?: string | null;
+ /** Document Title */
+ readonly document_title?: string | null;
+ /** Excerpt */
+ readonly excerpt?: string | null;
+ /** Links */
+ readonly links?: readonly string[];
+ /** Object Id */
+ readonly object_id: string;
+ /** Object Type */
+ readonly object_type: string;
+ /** Page */
+ readonly page?: number | null;
+ /** Raw */
+ readonly raw?: {
+ readonly [key: string]: unknown;
+ };
+ /** Tags */
+ readonly tags?: readonly string[];
+ /**
+ * Title
+ * @default
+ */
+ readonly title: string;
+ /**
+ * Updated At
+ * @default
+ */
+ readonly updated_at: string;
+ };
+ /** SyncRequest */
+ readonly SyncRequest: {
+ /**
+ * Cursor
+ * @default
+ */
+ readonly cursor: string;
+ /** Deleted Ids */
+ readonly deleted_ids?: readonly string[];
+ /** Objects */
+ readonly objects?: readonly components["schemas"]["SyncObjectIn"][];
+ };
+ /** SyncResponse */
+ readonly SyncResponse: {
+ /** Deleted */
+ readonly deleted: number;
+ /** New Cursor */
+ readonly new_cursor: string;
+ /** Stored */
+ readonly stored: number;
+ /** Updated */
+ readonly updated: number;
+ };
+ /** TestResponse */
+ readonly TestResponse: {
+ /** Error */
+ readonly error?: string | null;
+ /** Message */
+ readonly message: string;
+ /** Model */
+ readonly model?: string | null;
+ /** Response Time Ms */
+ readonly response_time_ms?: number | null;
+ /** Success */
+ readonly success: boolean;
+ };
+ /** TextPositionSelectorPayload */
+ readonly TextPositionSelectorPayload: {
+ /** End */
+ readonly end: number;
+ /** Start */
+ readonly start: number;
+ /**
+ * Type
+ * @constant
+ */
+ readonly type: "TextPositionSelector";
+ };
+ /** TextQuoteSelectorPayload */
+ readonly TextQuoteSelectorPayload: {
+ /** Exact */
+ readonly exact: string;
+ /**
+ * Prefix
+ * @default
+ */
+ readonly prefix: string;
+ /**
+ * Suffix
+ * @default
+ */
+ readonly suffix: string;
+ /**
+ * Type
+ * @constant
+ */
+ readonly type: "TextQuoteSelector";
+ };
+ /** ThemeUpdate */
+ readonly ThemeUpdate: {
+ /**
+ * Theme
+ * @enum {string}
+ */
+ readonly theme: "light" | "dark" | "glass" | "snow";
+ };
+ /**
+ * TikaRemoteTest
+ * @description Draft Tika server test. Tests the unsaved URL so the user can verify
+ * before saving.
+ */
+ readonly TikaRemoteTest: {
+ /**
+ * Server Url
+ * @default http://localhost:9998
+ */
+ readonly server_url: string;
+ };
+ /** TimedMediaViewport */
+ readonly TimedMediaViewport: {
+ /** Time Seconds */
+ readonly time_seconds: number;
+ };
+ /** ToolAliasPayload */
+ readonly ToolAliasPayload: {
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /**
+ * Input Format
+ * @default
+ */
+ readonly input_format: string;
+ /** Name */
+ readonly name: string;
+ /**
+ * Phase
+ * @default
+ */
+ readonly phase: string;
+ /**
+ * When To Use
+ * @default
+ */
+ readonly when_to_use: string;
+ };
+ /** ToolHintsPayload */
+ readonly ToolHintsPayload: {
+ /**
+ * Aliases
+ * @default []
+ */
+ readonly aliases: readonly components["schemas"]["ToolAliasPayload"][];
+ /**
+ * Guideline
+ * @default
+ */
+ readonly guideline: string;
+ /**
+ * Input Format
+ * @default
+ */
+ readonly input_format: string;
+ /**
+ * Note
+ * @default
+ */
+ readonly note: string;
+ /**
+ * Phase
+ * @default
+ */
+ readonly phase: string;
+ /**
+ * Short Description
+ * @default
+ */
+ readonly short_description: string;
+ /**
+ * When To Use
+ * @default
+ */
+ readonly when_to_use: string;
+ };
+ /** ToolParameterPayload */
+ readonly ToolParameterPayload: {
+ /** Default */
+ readonly default?: unknown;
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /** Enum */
+ readonly enum?: readonly string[] | null;
+ /** Name */
+ readonly name: string;
+ /**
+ * Required
+ * @default true
+ */
+ readonly required: boolean;
+ /** Type */
+ readonly type: string;
+ };
+ /** ToolsListResponse */
+ readonly ToolsListResponse: {
+ /** Enabled Optional Tools */
+ readonly enabled_optional_tools: readonly string[];
+ /** Tools */
+ readonly tools: readonly components["schemas"]["BuiltinToolPayload"][];
+ };
+ /**
+ * TopicSourceKind
+ * @enum {string}
+ */
+ readonly TopicSourceKind: "goal" | "book" | "notebook" | "knowledge_base" | "file" | "chat";
+ /** TopicSourceRequest */
+ readonly TopicSourceRequest: {
+ /**
+ * Available
+ * @default true
+ */
+ readonly available: boolean;
+ /**
+ * Excerpt
+ * @default
+ */
+ readonly excerpt: string;
+ /**
+ * Id
+ * @default
+ */
+ readonly id: string;
+ readonly kind: components["schemas"]["TopicSourceKind"];
+ /** Label */
+ readonly label: string;
+ /** Metadata */
+ readonly metadata?: {
+ readonly [key: string]: unknown;
+ };
+ /**
+ * Source Id
+ * @default
+ */
+ readonly source_id: string;
+ };
+ /** TourCompletePayload */
+ readonly TourCompletePayload: {
+ /** Catalog */
+ readonly catalog?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Test Results */
+ readonly test_results?: {
+ readonly [key: string]: string;
+ } | null;
+ };
+ /**
+ * TTSRequest
+ * @description Text-to-speech request body.
+ */
+ readonly TTSRequest: {
+ /** Format */
+ readonly format?: string | null;
+ /** Text */
+ readonly text: string;
+ /** Voice */
+ readonly voice?: string | null;
+ };
+ /**
+ * TurnFailureCode
+ * @enum {string}
+ */
+ readonly TurnFailureCode: "worker_lost" | "lease_lost" | "coordination_unavailable" | "provider_error" | "internal_error" | "rejected" | "server_shutdown";
+ /**
+ * TurnQueryState
+ * @description Client observation state, including server-side recovery windows.
+ * @enum {string}
+ */
+ readonly TurnQueryState: "queued" | "running" | "waiting_input" | "recovering" | "completed" | "failed" | "cancelled";
+ /**
+ * TurnRequest
+ * @description Validated turn input; ``config`` contains capability options only.
+ */
+ readonly TurnRequest: {
+ /** Attachments */
+ readonly attachments?: readonly components["schemas"]["OutgoingAttachment"][];
+ /**
+ * Auto Route
+ * @default null
+ */
+ readonly auto_route: boolean | null;
+ /** Book References */
+ readonly book_references?: readonly components["schemas"]["BookReference"][];
+ /**
+ * Capability
+ * @default chat
+ */
+ readonly capability: string | null;
+ /** Config */
+ readonly config?: {
+ readonly [key: string]: unknown;
+ };
+ /** Content */
+ readonly content: string;
+ /**
+ * Course Id
+ * @default null
+ */
+ readonly course_id: string | null;
+ /**
+ * Followup Question Context
+ * @default null
+ */
+ readonly followup_question_context: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** History References */
+ readonly history_references?: readonly string[];
+ /** Knowledge Bases */
+ readonly knowledge_bases?: readonly string[];
+ /**
+ * Language
+ * @default null
+ */
+ readonly language: string | null;
+ /** @default null */
+ readonly llm_selection: components["schemas"]["LLMSelection"] | null;
+ /**
+ * Mastery Path Id
+ * @default null
+ */
+ readonly mastery_path_id: string | null;
+ /**
+ * Mastery Path Lease Managed
+ * @default false
+ */
+ readonly mastery_path_lease_managed: boolean;
+ /** Memory References */
+ readonly memory_references?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /** Notebook References */
+ readonly notebook_references?: readonly components["schemas"]["NotebookReference"][];
+ /**
+ * Parent Message Id
+ * @default null
+ */
+ readonly parent_message_id: number | null;
+ /** Partner Group References */
+ readonly partner_group_references?: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ /**
+ * Persist User Message
+ * @default true
+ */
+ readonly persist_user_message: boolean;
+ /**
+ * Persona
+ * @default null
+ */
+ readonly persona: string | null;
+ /** Question Notebook References */
+ readonly question_notebook_references?: readonly number[];
+ /**
+ * Reading Material Id
+ * @default null
+ */
+ readonly reading_material_id: string | null;
+ /**
+ * Reading Material Revision
+ * @default null
+ */
+ readonly reading_material_revision: number | null;
+ /** Reading References */
+ readonly reading_references?: readonly components["schemas"]["ReadingReference"][];
+ /** @default null */
+ readonly reading_viewport: components["schemas"]["ReadingViewport"] | null;
+ /**
+ * Reading Workspace Id
+ * @default null
+ */
+ readonly reading_workspace_id: string | null;
+ /**
+ * Regenerate
+ * @default false
+ */
+ readonly regenerate: boolean;
+ /**
+ * Regenerated From Message Id
+ * @default null
+ */
+ readonly regenerated_from_message_id: number | null;
+ /**
+ * Selection Tutor Context
+ * @default null
+ */
+ readonly selection_tutor_context: {
+ readonly [key: string]: unknown;
+ } | null;
+ /**
+ * Session Id
+ * @default null
+ */
+ readonly session_id: string | null;
+ /** Skills */
+ readonly skills?: readonly string[];
+ /**
+ * Subagent Consult Budget
+ * @default null
+ */
+ readonly subagent_consult_budget: number | null;
+ /**
+ * Superseded Turn Id
+ * @default null
+ */
+ readonly superseded_turn_id: string | null;
+ /**
+ * Timed Media Id
+ * @default null
+ */
+ readonly timed_media_id: string | null;
+ /** @default null */
+ readonly timed_media_viewport: components["schemas"]["TimedMediaViewport"] | null;
+ /**
+ * Tools
+ * @default null
+ */
+ readonly tools: readonly string[] | null;
+ /**
+ * Workspace Mode
+ * @default null
+ */
+ readonly workspace_mode: string | null;
+ };
+ /**
+ * TurnStatus
+ * @enum {string}
+ */
+ readonly TurnStatus: "queued" | "running" | "waiting_input" | "completed" | "failed" | "cancelled";
+ /** TurnSummary */
+ readonly TurnSummary: {
+ /**
+ * Capability
+ * @default
+ */
+ readonly capability: string;
+ /**
+ * Created At
+ * @default null
+ */
+ readonly created_at: number | null;
+ /**
+ * Error
+ * @default
+ */
+ readonly error: string;
+ /** @default null */
+ readonly error_code: components["schemas"]["TurnFailureCode"] | null;
+ /** Id */
+ readonly id: string;
+ /**
+ * Last Seq
+ * @default 0
+ */
+ readonly last_seq: number;
+ /**
+ * Owner Id
+ * @default
+ */
+ readonly owner_id: string;
+ /** @default null */
+ readonly query_state: components["schemas"]["TurnQueryState"] | null;
+ /**
+ * Retryable
+ * @default false
+ */
+ readonly retryable: boolean;
+ /** Session Id */
+ readonly session_id: string;
+ readonly status: components["schemas"]["TurnStatus"];
+ /**
+ * Updated At
+ * @default null
+ */
+ readonly updated_at: number | null;
+ };
+ /**
+ * UISettingsUpdate
+ * @description Partial UI settings for user-initiated PATCH/PUT updates via /api/v1/settings/ui.
+ *
+ * All fields have None defaults so `model_dump(exclude_unset=True)` naturally
+ * excludes fields not provided in the frontend payload, while explicitly provided
+ * defaults (e.g., `theme: "snow"`) still update the backend. This separates
+ * the semantic contract: `/ui` endpoint only merges whatever explicitly arrives
+ * from the frontend.
+ */
+ readonly UISettingsUpdate: {
+ /** Code Block Show Line Numbers */
+ readonly code_block_show_line_numbers?: boolean | null;
+ /** Code Block Theme */
+ readonly code_block_theme?: string | null;
+ /** Code Block Wrap Long Lines */
+ readonly code_block_wrap_long_lines?: boolean | null;
+ /** Language */
+ readonly language?: ("zh" | "en") | null;
+ /** Response Language */
+ readonly response_language?: ("zh" | "en") | null;
+ /** Sidebar Description */
+ readonly sidebar_description?: string | null;
+ readonly sidebar_nav_order?: components["schemas"]["SidebarNavOrder"] | null;
+ /** Theme */
+ readonly theme?: ("light" | "dark" | "glass" | "snow") | null;
+ };
+ /** UnitText */
+ readonly UnitText: {
+ /** Locator */
+ readonly locator: number;
+ /** Text */
+ readonly text: string;
+ /** Unit */
+ readonly unit: string;
+ };
+ /** UpdateBlockRequest */
+ readonly UpdateBlockRequest: {
+ /** Block Id */
+ readonly block_id: string;
+ /** Body */
+ readonly body?: string | null;
+ /** Book Id */
+ readonly book_id: string;
+ /** Expected Revision */
+ readonly expected_revision?: number | null;
+ /** Page Id */
+ readonly page_id: string;
+ /** Title */
+ readonly title?: string | null;
+ };
+ /** UpdateCourseRequest */
+ readonly UpdateCourseRequest: {
+ /** Color */
+ readonly color?: string | null;
+ /** Default Capability */
+ readonly default_capability?: string | null;
+ /** Default Persona */
+ readonly default_persona?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Instructions */
+ readonly instructions?: string | null;
+ /** Name */
+ readonly name?: string | null;
+ /** Status */
+ readonly status?: string | null;
+ };
+ /** UpdateDocumentRequest */
+ readonly UpdateDocumentRequest: {
+ /** Content */
+ readonly content?: string | null;
+ /** Title */
+ readonly title?: string | null;
+ };
+ /**
+ * UpdateNotebookRequest
+ * @description Update notebook request
+ */
+ readonly UpdateNotebookRequest: {
+ /** Color */
+ readonly color?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Icon */
+ readonly icon?: string | null;
+ /** Name */
+ readonly name?: string | null;
+ };
+ /** UpdatePartnerGroupRequest */
+ readonly UpdatePartnerGroupRequest: {
+ /** Color */
+ readonly color?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Discussion Mode */
+ readonly discussion_mode?: string | null;
+ /** Emoji */
+ readonly emoji?: string | null;
+ /** Member Ids */
+ readonly member_ids?: readonly string[] | null;
+ /** Name */
+ readonly name?: string | null;
+ /** Shared Memory */
+ readonly shared_memory?: string | null;
+ };
+ /** UpdatePartnerRequest */
+ readonly UpdatePartnerRequest: {
+ /** Avatar */
+ readonly avatar?: string | null;
+ /** Backup Llm Selection */
+ readonly backup_llm_selection?: {
+ readonly [key: string]: string;
+ } | null;
+ /** Builtin Tools */
+ readonly builtin_tools?: readonly string[] | null;
+ /** Channels */
+ readonly channels?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Color */
+ readonly color?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Emoji */
+ readonly emoji?: string | null;
+ /** Enabled Tools */
+ readonly enabled_tools?: readonly string[] | null;
+ /** Language */
+ readonly language?: string | null;
+ /** Llm Selection */
+ readonly llm_selection?: {
+ readonly [key: string]: string;
+ } | null;
+ /** Mcp Tools */
+ readonly mcp_tools?: readonly string[] | null;
+ /** Name */
+ readonly name?: string | null;
+ };
+ /** UpdatePersonaRequest */
+ readonly UpdatePersonaRequest: {
+ /** Content */
+ readonly content?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Rename To */
+ readonly rename_to?: string | null;
+ };
+ /**
+ * UpdateProfileRequest
+ * @description Payload for the PUT /profile endpoint.
+ */
+ readonly UpdateProfileRequest: {
+ /** Avatar */
+ readonly avatar: string;
+ };
+ /**
+ * UpdateRecordRequest
+ * @description Update an existing notebook record.
+ *
+ * Only the fields the client actually sends are forwarded (see
+ * ``exclude_unset`` at the call site), which is what keeps ``kb_name``
+ * from being wiped by a request that merely renames the record.
+ */
+ readonly UpdateRecordRequest: {
+ /** Kb Name */
+ readonly kb_name?: string | null;
+ /** Metadata */
+ readonly metadata?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /** Output */
+ readonly output?: string | null;
+ /** Summary */
+ readonly summary?: string | null;
+ /** Title */
+ readonly title?: string | null;
+ /** User Query */
+ readonly user_query?: string | null;
+ };
+ /** UpdateRequest */
+ readonly UpdateRequest: {
+ /** Budget */
+ readonly budget?: number | null;
+ /**
+ * Language
+ * @default en
+ */
+ readonly language: string;
+ readonly llm_selection?: components["schemas"]["LLMSelectionPayload"] | null;
+ };
+ /** UpdateSettingsRequest */
+ readonly UpdateSettingsRequest: {
+ /** Enabled */
+ readonly enabled: boolean;
+ };
+ /** UpdateSkillRequest */
+ readonly UpdateSkillRequest: {
+ /** Content */
+ readonly content?: string | null;
+ /** Description */
+ readonly description?: string | null;
+ /** Rename To */
+ readonly rename_to?: string | null;
+ /** Tags */
+ readonly tags?: readonly string[] | null;
+ };
+ /** UpdateSyllabusUnitRequest */
+ readonly UpdateSyllabusUnitRequest: {
+ /** Covered */
+ readonly covered: boolean;
+ };
+ /** UpdateVideoNoteRequest */
+ readonly UpdateVideoNoteRequest: {
+ /** Body */
+ readonly body: string;
+ };
+ /** UpsertEntryRequest */
+ readonly UpsertEntryRequest: {
+ /**
+ * Correct Answer
+ * @default
+ */
+ readonly correct_answer: string;
+ /**
+ * Difficulty
+ * @default
+ */
+ readonly difficulty: string;
+ /**
+ * Explanation
+ * @default
+ */
+ readonly explanation: string;
+ /**
+ * Is Correct
+ * @default false
+ */
+ readonly is_correct: boolean;
+ /**
+ * Material Id
+ * @default
+ */
+ readonly material_id: string;
+ /**
+ * Material Title
+ * @default
+ */
+ readonly material_title: string;
+ /** Options */
+ readonly options?: {
+ readonly [key: string]: string;
+ } | null;
+ /** Question */
+ readonly question: string;
+ /** Question Id */
+ readonly question_id: string;
+ /**
+ * Question Type
+ * @default
+ */
+ readonly question_type: string;
+ /**
+ * Section Id
+ * @default
+ */
+ readonly section_id: string;
+ /**
+ * Section Title
+ * @default
+ */
+ readonly section_title: string;
+ /** Session Id */
+ readonly session_id: string;
+ /**
+ * Source
+ * @default deep_question
+ * @enum {string}
+ */
+ readonly source: "deep_question" | "mastery_path" | "immersive_reading" | "book";
+ /**
+ * Turn Id
+ * @default
+ */
+ readonly turn_id: string;
+ /**
+ * User Answer
+ * @default
+ */
+ readonly user_answer: string;
+ /** User Answer Images */
+ readonly user_answer_images?: readonly components["schemas"]["AnswerImageUpload"][] | null;
+ };
+ /** UrlImportRequest */
+ readonly UrlImportRequest: {
+ /** Urls */
+ readonly urls: readonly string[];
+ /**
+ * Workspace Id
+ * @default
+ */
+ readonly workspace_id: string;
+ /**
+ * Workspace Title
+ * @default
+ */
+ readonly workspace_title: string;
+ };
+ /**
+ * UserInfo
+ * @description Single user record returned by the GET /users and /profile endpoints.
+ */
+ readonly UserInfo: {
+ /**
+ * Avatar
+ * @default
+ */
+ readonly avatar: string;
+ /** Created At */
+ readonly created_at: string;
+ /**
+ * Disabled
+ * @default false
+ */
+ readonly disabled: boolean;
+ /**
+ * Id
+ * @default
+ */
+ readonly id: string;
+ /**
+ * Preset
+ * @default standard
+ * @enum {string}
+ */
+ readonly preset: "standard" | "learner" | "custom";
+ /** Role */
+ readonly role: string;
+ /** Username */
+ readonly username: string;
+ };
+ /** ValidationError */
+ readonly ValidationError: {
+ /** Context */
+ readonly ctx?: Record<string, never>;
+ /** Input */
+ readonly input?: unknown;
+ /** Location */
+ readonly loc: readonly (string | number)[];
+ /** Message */
+ readonly msg: string;
+ /** Error Type */
+ readonly type: string;
+ };
+ /** VideoLearningSettingsRequest */
+ readonly VideoLearningSettingsRequest: {
+ /**
+ * Default Provider
+ * @default youtube
+ */
+ readonly default_provider: string;
+ readonly invidious?: components["schemas"]["InvidiousSettings"];
+ /**
+ * Version
+ * @default 1
+ */
+ readonly version: number;
+ readonly youtube?: components["schemas"]["YouTubeSettings"];
+ };
+ /** VoiceAutoplayUpdate */
+ readonly VoiceAutoplayUpdate: {
+ /** Voice Autoplay */
+ readonly voice_autoplay: boolean;
+ };
+ /** WebSourceInfo */
+ readonly WebSourceInfo: {
+ /**
+ * Added At
+ * @default
+ */
+ readonly added_at: string;
+ /**
+ * Enabled
+ * @default true
+ */
+ readonly enabled: boolean;
+ /** Id */
+ readonly id: string;
+ /** Last Sync Error */
+ readonly last_sync_error?: string | null;
+ /**
+ * Last Sync Status
+ * @default pending
+ */
+ readonly last_sync_status: string;
+ /**
+ * Last Synced At
+ * @default
+ */
+ readonly last_synced_at: string;
+ /**
+ * Max Depth
+ * @default 3
+ */
+ readonly max_depth: number;
+ /**
+ * Max Pages
+ * @default 200
+ */
+ readonly max_pages: number;
+ /** Navigation */
+ readonly navigation?: {
+ readonly [key: string]: unknown;
+ } | null;
+ /**
+ * Page Count
+ * @default 0
+ */
+ readonly page_count: number;
+ /** Url */
+ readonly url: string;
+ };
+ /** WhiteboardPinRequest */
+ readonly WhiteboardPinRequest: {
+ /** Event Id */
+ readonly event_id: string;
+ };
+ /** WorkspaceCreateRequest */
+ readonly WorkspaceCreateRequest: {
+ /**
+ * Description
+ * @default
+ */
+ readonly description: string;
+ /** Material Ids */
+ readonly material_ids?: readonly string[];
+ /**
+ * Title
+ * @default Untitled collection
+ */
+ readonly title: string;
+ };
+ /** WorkspaceMaterialRequest */
+ readonly WorkspaceMaterialRequest: {
+ /**
+ * Make Active
+ * @default false
+ */
+ readonly make_active: boolean;
+ /** Material Id */
+ readonly material_id: string;
+ };
+ /** WorkspaceReorderRequest */
+ readonly WorkspaceReorderRequest: {
+ /** Material Ids */
+ readonly material_ids: readonly string[];
+ };
+ /** WorkspaceUpdateRequest */
+ readonly WorkspaceUpdateRequest: {
+ /** Description */
+ readonly description?: string | null;
+ /** Title */
+ readonly title?: string | null;
+ };
+ /** YouTubeSettings */
+ readonly YouTubeSettings: {
+ /**
+ * Transcript Provider
+ * @default youtube_transcript_api
+ */
+ readonly transcript_provider: string;
+ };
+ };
+ responses: never;
+ parameters: never;
+ requestBodies: never;
+ headers: never;
+ pathItems: never;
+}
+export type SchemaActionPayload = components['schemas']['ActionPayload'];
+export type SchemaActiveModelUpdate = components['schemas']['ActiveModelUpdate'];
+export type SchemaAddGitHubSourceRequest = components['schemas']['AddGitHubSourceRequest'];
+export type SchemaAddRecordRequest = components['schemas']['AddRecordRequest'];
+export type SchemaAddWebSourceRequest = components['schemas']['AddWebSourceRequest'];
+export type SchemaAdminCreateUserRequest = components['schemas']['AdminCreateUserRequest'];
+export type SchemaAnnotationInfo = components['schemas']['AnnotationInfo'];
+export type SchemaAnnotationPayload = components['schemas']['AnnotationPayload'];
+export type SchemaAnswerImageItem = components['schemas']['AnswerImageItem'];
+export type SchemaAnswerImageUpload = components['schemas']['AnswerImageUpload'];
+export type SchemaApplyOpsRequest = components['schemas']['ApplyOpsRequest'];
+export type SchemaAssetAddRequest = components['schemas']['AssetAddRequest'];
+export type SchemaAssetSpec = components['schemas']['AssetSpec'];
+export type SchemaAttachCourseResourceRequest = components['schemas']['AttachCourseResourceRequest'];
+export type SchemaAuditRequest = components['schemas']['AuditRequest'];
+export type SchemaAuthStatusResponse = components['schemas']['AuthStatusResponse'];
+export type SchemaAutoMarkRequest = components['schemas']['AutoMarkRequest'];
+export type SchemaAutoMarkResponse = components['schemas']['AutoMarkResponse'];
+export type SchemaBodyCreateKnowledgeBaseApiV1KnowledgeCreatePost = components['schemas']['Body_create_knowledge_base_api_v1_knowledge_create_post'];
+export type SchemaBodyImportDocxApiV1CoWriterDocumentsImportDocxPost = components['schemas']['Body_import_docx_api_v1_co_writer_documents_import_docx_post'];
+export type SchemaBodyImportVisualizerApiV1VisualizersImportPost = components['schemas']['Body_import_visualizer_api_v1_visualizers_import_post'];
+export type SchemaBodySpeechToTextApiV1VoiceSttPost = components['schemas']['Body_speech_to_text_api_v1_voice_stt_post'];
+export type SchemaBodyUploadAvatarApiV1AuthProfileAvatarPut = components['schemas']['Body_upload_avatar_api_v1_auth_profile_avatar_put'];
+export type SchemaBodyUploadFilesApiV1KnowledgeKbNameUploadPost = components['schemas']['Body_upload_files_api_v1_knowledge__kb_name__upload_post'];
+export type SchemaBodyUploadMaterialApiV1ReadingMaterialsPost = components['schemas']['Body_upload_material_api_v1_reading_materials_post'];
+export type SchemaBookPermissionPayload = components['schemas']['BookPermissionPayload'];
+export type SchemaBookReference = components['schemas']['BookReference'];
+export type SchemaBranchSelectionRequest = components['schemas']['BranchSelectionRequest'];
+export type SchemaBuiltinToolPayload = components['schemas']['BuiltinToolPayload'];
+export type SchemaBulkCategoryRequest = components['schemas']['BulkCategoryRequest'];
+export type SchemaCatalogPayload = components['schemas']['CatalogPayload'];
+export type SchemaCategoryAddRequest = components['schemas']['CategoryAddRequest'];
+export type SchemaCategoryCreateRequest = components['schemas']['CategoryCreateRequest'];
+export type SchemaCategoryItem = components['schemas']['CategoryItem'];
+export type SchemaCategoryRenameRequest = components['schemas']['CategoryRenameRequest'];
+export type SchemaChangeBlockTypeRequest = components['schemas']['ChangeBlockTypeRequest'];
+export type SchemaChannelOnboardingStartRequest = components['schemas']['ChannelOnboardingStartRequest'];
+export type SchemaChapterImport = components['schemas']['ChapterImport'];
+export type SchemaChatAttachmentRequest = components['schemas']['ChatAttachmentRequest'];
+export type SchemaChatAttachmentSettingsUpdate = components['schemas']['ChatAttachmentSettingsUpdate'];
+export type SchemaChatHistoryImportRequest = components['schemas']['ChatHistoryImportRequest'];
+export type SchemaChatMessageRequest = components['schemas']['ChatMessageRequest'];
+export type SchemaChatResponseTimeoutUpdate = components['schemas']['ChatResponseTimeoutUpdate'];
+export type SchemaChatStarterSettingsUpdate = components['schemas']['ChatStarterSettingsUpdate'];
+export type SchemaCodexReasoningEffortUpdate = components['schemas']['CodexReasoningEffortUpdate'];
+export type SchemaCompilePageRequest = components['schemas']['CompilePageRequest'];
+export type SchemaConfirmPartnerDraftRequest = components['schemas']['ConfirmPartnerDraftRequest'];
+export type SchemaConfirmProposalRequest = components['schemas']['ConfirmProposalRequest'];
+export type SchemaConfirmSpineRequest = components['schemas']['ConfirmSpineRequest'];
+export type SchemaConfirmTopicRequest = components['schemas']['ConfirmTopicRequest'];
+export type SchemaConnectFolderRequest = components['schemas']['ConnectFolderRequest'];
+export type SchemaConnectImaRequest = components['schemas']['ConnectImaRequest'];
+export type SchemaConnectLightRagServerRequest = components['schemas']['ConnectLightRagServerRequest'];
+export type SchemaConnectMarginNote4Request = components['schemas']['ConnectMarginNote4Request'];
+export type SchemaConnectObsidianRequest = components['schemas']['ConnectObsidianRequest'];
+export type SchemaConnectSubagentRequest = components['schemas']['ConnectSubagentRequest'];
+export type SchemaConnectWeKnoraRequest = components['schemas']['ConnectWeKnoraRequest'];
+export type SchemaCreateBookRequest = components['schemas']['CreateBookRequest'];
+export type SchemaCreateCourseRequest = components['schemas']['CreateCourseRequest'];
+export type SchemaCreateDocumentRequest = components['schemas']['CreateDocumentRequest'];
+export type SchemaCreateFolderPayload = components['schemas']['CreateFolderPayload'];
+export type SchemaCreateNotebookRequest = components['schemas']['CreateNotebookRequest'];
+export type SchemaCreatePartnerGroupRequest = components['schemas']['CreatePartnerGroupRequest'];
+export type SchemaCreatePartnerInvocationRequest = components['schemas']['CreatePartnerInvocationRequest'];
+export type SchemaCreatePartnerRequest = components['schemas']['CreatePartnerRequest'];
+export type SchemaCreatePersonaRequest = components['schemas']['CreatePersonaRequest'];
+export type SchemaCreateSkillRequest = components['schemas']['CreateSkillRequest'];
+export type SchemaCreateTagRequest = components['schemas']['CreateTagRequest'];
+export type SchemaCreateVideoNoteRequest = components['schemas']['CreateVideoNoteRequest'];
+export type SchemaDedupRequest = components['schemas']['DedupRequest'];
+export type SchemaDeepDiveRequest = components['schemas']['DeepDiveRequest'];
+export type SchemaDeeptutorApiRoutersBookProgressRequest = components['schemas']['deeptutor__api__routers__book__ProgressRequest'];
+export type SchemaDeeptutorApiRoutersVideoLearningProgressRequest = components['schemas']['deeptutor__api__routers__video_learning__ProgressRequest'];
+export type SchemaDeleteBlockRequest = components['schemas']['DeleteBlockRequest'];
+export type SchemaDeviceCredentialCreateRequest = components['schemas']['DeviceCredentialCreateRequest'];
+export type SchemaDeviceInfo = components['schemas']['DeviceInfo'];
+export type SchemaDeviceLoginRequest = components['schemas']['DeviceLoginRequest'];
+export type SchemaDoclingRemoteTest = components['schemas']['DoclingRemoteTest'];
+export type SchemaDocumentParsingInstall = components['schemas']['DocumentParsingInstall'];
+export type SchemaDocumentParsingTest = components['schemas']['DocumentParsingTest'];
+export type SchemaDocumentParsingUpdate = components['schemas']['DocumentParsingUpdate'];
+export type SchemaDocumentResponse = components['schemas']['DocumentResponse'];
+export type SchemaDocumentSummaryResponse = components['schemas']['DocumentSummaryResponse'];
+export type SchemaDocWriteRequest = components['schemas']['DocWriteRequest'];
+export type SchemaDuplicateCheckRequest = components['schemas']['DuplicateCheckRequest'];
+export type SchemaDuplicateFileQuery = components['schemas']['DuplicateFileQuery'];
+export type SchemaEditRequest = components['schemas']['EditRequest'];
+export type SchemaEditResponse = components['schemas']['EditResponse'];
+export type SchemaEditTopicMapRequest = components['schemas']['EditTopicMapRequest'];
+export type SchemaEnabledPayload = components['schemas']['EnabledPayload'];
+export type SchemaEnabledToolsUpdate = components['schemas']['EnabledToolsUpdate'];
+export type SchemaEntryUpdateRequest = components['schemas']['EntryUpdateRequest'];
+export type SchemaEpubPairingRequest = components['schemas']['EpubPairingRequest'];
+export type SchemaErrorEnvelope = components['schemas']['ErrorEnvelope'];
+export type SchemaExportDocxRequest = components['schemas']['ExportDocxRequest'];
+export type SchemaFetchModelsPayload = components['schemas']['FetchModelsPayload'];
+export type SchemaGenerateFromNotebookRequest = components['schemas']['GenerateFromNotebookRequest'];
+export type SchemaGenerateFromReadingRequest = components['schemas']['GenerateFromReadingRequest'];
+export type SchemaGenerateTopicDraftRequest = components['schemas']['GenerateTopicDraftRequest'];
+export type SchemaGitHubSourceInfo = components['schemas']['GitHubSourceInfo'];
+export type SchemaGrantPayload = components['schemas']['GrantPayload'];
+export type SchemaGraphRagConfigUpdate = components['schemas']['GraphRagConfigUpdate'];
+export type SchemaGraphRagModelCompatibilityRequest = components['schemas']['GraphRagModelCompatibilityRequest'];
+export type SchemaGuardianAuthorizationPayload = components['schemas']['GuardianAuthorizationPayload'];
+export type SchemaGuardianCredentialResetPayload = components['schemas']['GuardianCredentialResetPayload'];
+export type SchemaGuardianMaterialsPayload = components['schemas']['GuardianMaterialsPayload'];
+export type SchemaGuardianRestrictionsPayload = components['schemas']['GuardianRestrictionsPayload'];
+export type SchemaHttpValidationError = components['schemas']['HTTPValidationError'];
+export type SchemaImaConfigUpdate = components['schemas']['ImaConfigUpdate'];
+export type SchemaImaKnowledgeBaseSummary = components['schemas']['ImaKnowledgeBaseSummary'];
+export type SchemaImportedMessage = components['schemas']['ImportedMessage'];
+export type SchemaImportedSession = components['schemas']['ImportedSession'];
+export type SchemaImportFromBookRequest = components['schemas']['ImportFromBookRequest'];
+export type SchemaInitModulesRequest = components['schemas']['InitModulesRequest'];
+export type SchemaInsertBlockRequest = components['schemas']['InsertBlockRequest'];
+export type SchemaInstallPayload = components['schemas']['InstallPayload'];
+export type SchemaInstallSkillRequest = components['schemas']['InstallSkillRequest'];
+export type SchemaInvidiousSettings = components['schemas']['InvidiousSettings'];
+export type SchemaKnowledgeBaseInfo = components['schemas']['KnowledgeBaseInfo'];
+export type SchemaLanguageUpdate = components['schemas']['LanguageUpdate'];
+export type SchemaLearnerOverrideRequest = components['schemas']['LearnerOverrideRequest'];
+export type SchemaLearnerProfileRequest = components['schemas']['LearnerProfileRequest'];
+export type SchemaLearningCaptureCreateRequest = components['schemas']['LearningCaptureCreateRequest'];
+export type SchemaLearningCaptureUpdateRequest = components['schemas']['LearningCaptureUpdateRequest'];
+export type SchemaLightRagConfigUpdate = components['schemas']['LightRagConfigUpdate'];
+export type SchemaLightRagServerConfigUpdate = components['schemas']['LightRagServerConfigUpdate'];
+export type SchemaLinkedFolderInfo = components['schemas']['LinkedFolderInfo'];
+export type SchemaLinkFolderRequest = components['schemas']['LinkFolderRequest'];
+export type SchemaListImaRequest = components['schemas']['ListImaRequest'];
+export type SchemaListImaResponse = components['schemas']['ListImaResponse'];
+export type SchemaLlamaIndexConfigUpdate = components['schemas']['LlamaIndexConfigUpdate'];
+export type SchemaLlmSelection = components['schemas']['LLMSelection'];
+export type SchemaLlmSelectionPayload = components['schemas']['LLMSelectionPayload'];
+export type SchemaLoginRequest = components['schemas']['LoginRequest'];
+export type SchemaManagedUpdateRequest = components['schemas']['ManagedUpdateRequest'];
+export type SchemaMaterialDetail = components['schemas']['MaterialDetail'];
+export type SchemaMaterialInfo = components['schemas']['MaterialInfo'];
+export type SchemaMcpServerConfig = components['schemas']['MCPServerConfig'];
+export type SchemaMcpSettingsPayload = components['schemas']['MCPSettingsPayload'];
+export type SchemaMinerUModelDownloadPayload = components['schemas']['MinerUModelDownloadPayload'];
+export type SchemaMinerUSettingsUpdate = components['schemas']['MinerUSettingsUpdate'];
+export type SchemaMoveBlockRequest = components['schemas']['MoveBlockRequest'];
+export type SchemaMoveFilePayload = components['schemas']['MoveFilePayload'];
+export type SchemaMoveRecordRequest = components['schemas']['MoveRecordRequest'];
+export type SchemaNetworkSettingsUpdate = components['schemas']['NetworkSettingsUpdate'];
+export type SchemaNotebookCaptureRequest = components['schemas']['NotebookCaptureRequest'];
+export type SchemaNotebookEntryItem = components['schemas']['NotebookEntryItem'];
+export type SchemaNotebookEntryListResponse = components['schemas']['NotebookEntryListResponse'];
+export type SchemaNotebookRecordInput = components['schemas']['NotebookRecordInput'];
+export type SchemaNotebookReference = components['schemas']['NotebookReference'];
+export type SchemaOrganizeNotesRequest = components['schemas']['OrganizeNotesRequest'];
+export type SchemaOutgoingAttachment = components['schemas']['OutgoingAttachment'];
+export type SchemaPageChatSessionRequest = components['schemas']['PageChatSessionRequest'];
+export type SchemaPageIndexConfigUpdate = components['schemas']['PageIndexConfigUpdate'];
+export type SchemaPairRequest = components['schemas']['PairRequest'];
+export type SchemaPairResponse = components['schemas']['PairResponse'];
+export type SchemaPartnerGroupMessageRequest = components['schemas']['PartnerGroupMessageRequest'];
+export type SchemaPartnerInvocationActionRequest = components['schemas']['PartnerInvocationActionRequest'];
+export type SchemaPartnerSeatRetryRequest = components['schemas']['PartnerSeatRetryRequest'];
+export type SchemaPositionInfo = components['schemas']['PositionInfo'];
+export type SchemaPositionPayload = components['schemas']['PositionPayload'];
+export type SchemaProbeFolderRequest = components['schemas']['ProbeFolderRequest'];
+export type SchemaProbeImaRequest = components['schemas']['ProbeImaRequest'];
+export type SchemaProbeLightRagServerRequest = components['schemas']['ProbeLightRagServerRequest'];
+export type SchemaProbeWeKnoraRequest = components['schemas']['ProbeWeKnoraRequest'];
+export type SchemaProviderModeUpdate = components['schemas']['ProviderModeUpdate'];
+export type SchemaQuestionBankMaterial = components['schemas']['QuestionBankMaterial'];
+export type SchemaQuestionBankStats = components['schemas']['QuestionBankStats'];
+export type SchemaQuizAttemptRequest = components['schemas']['QuizAttemptRequest'];
+export type SchemaQuizResultItem = components['schemas']['QuizResultItem'];
+export type SchemaQuizResultsRequest = components['schemas']['QuizResultsRequest'];
+export type SchemaReactEditRequest = components['schemas']['ReactEditRequest'];
+export type SchemaReactEditResponse = components['schemas']['ReactEditResponse'];
+export type SchemaReadingReference = components['schemas']['ReadingReference'];
+export type SchemaReadingSessionCreateRequest = components['schemas']['ReadingSessionCreateRequest'];
+export type SchemaReadingSessionLinkRequest = components['schemas']['ReadingSessionLinkRequest'];
+export type SchemaReadingSessionRenameRequest = components['schemas']['ReadingSessionRenameRequest'];
+export type SchemaReadingViewport = components['schemas']['ReadingViewport'];
+export type SchemaRebuildBookRequest = components['schemas']['RebuildBookRequest'];
+export type SchemaRegenerateBlockRequest = components['schemas']['RegenerateBlockRequest'];
+export type SchemaRegisterRequest = components['schemas']['RegisterRequest'];
+export type SchemaRenamePathRequest = components['schemas']['RenamePathRequest'];
+export type SchemaRenameTagRequest = components['schemas']['RenameTagRequest'];
+export type SchemaResolveRequest = components['schemas']['ResolveRequest'];
+export type SchemaResumeBookRequest = components['schemas']['ResumeBookRequest'];
+export type SchemaRoundSummaryRequest = components['schemas']['RoundSummaryRequest'];
+export type SchemaRunStartRequest = components['schemas']['RunStartRequest'];
+export type SchemaRuntimeStatus = components['schemas']['RuntimeStatus'];
+export type SchemaServerPayload = components['schemas']['ServerPayload'];
+export type SchemaSessionBranchBody = components['schemas']['SessionBranchBody'];
+export type SchemaSessionDetail = components['schemas']['SessionDetail'];
+export type SchemaSessionKeyBody = components['schemas']['SessionKeyBody'];
+export type SchemaSessionOrganizationRequest = components['schemas']['SessionOrganizationRequest'];
+export type SchemaSessionRenameRequest = components['schemas']['SessionRenameRequest'];
+export type SchemaSessionSummary = components['schemas']['SessionSummary'];
+export type SchemaSetRoleRequest = components['schemas']['SetRoleRequest'];
+export type SchemaSetSyllabusRequest = components['schemas']['SetSyllabusRequest'];
+export type SchemaSettingsDraftPayload = components['schemas']['SettingsDraftPayload'];
+export type SchemaSidebarDescriptionUpdate = components['schemas']['SidebarDescriptionUpdate'];
+export type SchemaSidebarNavOrder = components['schemas']['SidebarNavOrder'];
+export type SchemaSidebarNavOrderUpdate = components['schemas']['SidebarNavOrderUpdate'];
+export type SchemaSkillInstallPayload = components['schemas']['SkillInstallPayload'];
+export type SchemaSoulCreateRequest = components['schemas']['SoulCreateRequest'];
+export type SchemaSoulSpec = components['schemas']['SoulSpec'];
+export type SchemaSoulTemplateUpdateRequest = components['schemas']['SoulTemplateUpdateRequest'];
+export type SchemaSoulUpdateBody = components['schemas']['SoulUpdateBody'];
+export type SchemaSubagentMessageRequest = components['schemas']['SubagentMessageRequest'];
+export type SchemaSubagentSettingsPayload = components['schemas']['SubagentSettingsPayload'];
+export type SchemaSupplementRequest = components['schemas']['SupplementRequest'];
+export type SchemaSupportedFileTypesInfo = components['schemas']['SupportedFileTypesInfo'];
+export type SchemaSupportedFormats = components['schemas']['SupportedFormats'];
+export type SchemaSyllabusUnitRequest = components['schemas']['SyllabusUnitRequest'];
+export type SchemaSyncObjectIn = components['schemas']['SyncObjectIn'];
+export type SchemaSyncRequest = components['schemas']['SyncRequest'];
+export type SchemaSyncResponse = components['schemas']['SyncResponse'];
+export type SchemaTestResponse = components['schemas']['TestResponse'];
+export type SchemaTextPositionSelectorPayload = components['schemas']['TextPositionSelectorPayload'];
+export type SchemaTextQuoteSelectorPayload = components['schemas']['TextQuoteSelectorPayload'];
+export type SchemaThemeUpdate = components['schemas']['ThemeUpdate'];
+export type SchemaTikaRemoteTest = components['schemas']['TikaRemoteTest'];
+export type SchemaTimedMediaViewport = components['schemas']['TimedMediaViewport'];
+export type SchemaToolAliasPayload = components['schemas']['ToolAliasPayload'];
+export type SchemaToolHintsPayload = components['schemas']['ToolHintsPayload'];
+export type SchemaToolParameterPayload = components['schemas']['ToolParameterPayload'];
+export type SchemaToolsListResponse = components['schemas']['ToolsListResponse'];
+export type SchemaTopicSourceKind = components['schemas']['TopicSourceKind'];
+export type SchemaTopicSourceRequest = components['schemas']['TopicSourceRequest'];
+export type SchemaTourCompletePayload = components['schemas']['TourCompletePayload'];
+export type SchemaTtsRequest = components['schemas']['TTSRequest'];
+export type SchemaTurnFailureCode = components['schemas']['TurnFailureCode'];
+export type SchemaTurnQueryState = components['schemas']['TurnQueryState'];
+export type SchemaTurnRequest = components['schemas']['TurnRequest'];
+export type SchemaTurnStatus = components['schemas']['TurnStatus'];
+export type SchemaTurnSummary = components['schemas']['TurnSummary'];
+export type SchemaUiSettingsUpdate = components['schemas']['UISettingsUpdate'];
+export type SchemaUnitText = components['schemas']['UnitText'];
+export type SchemaUpdateBlockRequest = components['schemas']['UpdateBlockRequest'];
+export type SchemaUpdateCourseRequest = components['schemas']['UpdateCourseRequest'];
+export type SchemaUpdateDocumentRequest = components['schemas']['UpdateDocumentRequest'];
+export type SchemaUpdateNotebookRequest = components['schemas']['UpdateNotebookRequest'];
+export type SchemaUpdatePartnerGroupRequest = components['schemas']['UpdatePartnerGroupRequest'];
+export type SchemaUpdatePartnerRequest = components['schemas']['UpdatePartnerRequest'];
+export type SchemaUpdatePersonaRequest = components['schemas']['UpdatePersonaRequest'];
+export type SchemaUpdateProfileRequest = components['schemas']['UpdateProfileRequest'];
+export type SchemaUpdateRecordRequest = components['schemas']['UpdateRecordRequest'];
+export type SchemaUpdateRequest = components['schemas']['UpdateRequest'];
+export type SchemaUpdateSettingsRequest = components['schemas']['UpdateSettingsRequest'];
+export type SchemaUpdateSkillRequest = components['schemas']['UpdateSkillRequest'];
+export type SchemaUpdateSyllabusUnitRequest = components['schemas']['UpdateSyllabusUnitRequest'];
+export type SchemaUpdateVideoNoteRequest = components['schemas']['UpdateVideoNoteRequest'];
+export type SchemaUpsertEntryRequest = components['schemas']['UpsertEntryRequest'];
+export type SchemaUrlImportRequest = components['schemas']['UrlImportRequest'];
+export type SchemaUserInfo = components['schemas']['UserInfo'];
+export type SchemaValidationError = components['schemas']['ValidationError'];
+export type SchemaVideoLearningSettingsRequest = components['schemas']['VideoLearningSettingsRequest'];
+export type SchemaVoiceAutoplayUpdate = components['schemas']['VoiceAutoplayUpdate'];
+export type SchemaWebSourceInfo = components['schemas']['WebSourceInfo'];
+export type SchemaWhiteboardPinRequest = components['schemas']['WhiteboardPinRequest'];
+export type SchemaWorkspaceCreateRequest = components['schemas']['WorkspaceCreateRequest'];
+export type SchemaWorkspaceMaterialRequest = components['schemas']['WorkspaceMaterialRequest'];
+export type SchemaWorkspaceReorderRequest = components['schemas']['WorkspaceReorderRequest'];
+export type SchemaWorkspaceUpdateRequest = components['schemas']['WorkspaceUpdateRequest'];
+export type SchemaYouTubeSettings = components['schemas']['YouTubeSettings'];
+export type $defs = Record<string, never>;
+export interface operations {
+ readonly root__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ };
+ };
+ readonly get_attachment_api_attachments__session_id___attachment_id___filename__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly attachment_id: string;
+ readonly filename: string;
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly read_output_api_outputs__output_path__head_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly output_path: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly read_output_api_outputs__output_path__head: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly output_path: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_agent_config_api_v1_agent_config_agents_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_single_agent_config_api_v1_agent_config_agents__agent_type__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly agent_type: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_avatar_image_api_v1_auth_avatar__user_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly device_login_api_v1_auth_device_login_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DeviceLoginRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly device_heartbeat_api_v1_auth_device_heartbeat_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_devices_api_v1_auth_devices_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly include_revoked?: boolean;
+ readonly user_id?: string | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly issue_device_api_v1_auth_devices_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DeviceCredentialCreateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly revoke_device_api_v1_auth_devices__device_credential_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly device_credential_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly check_is_first_user_api_v1_auth_is_first_user_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ };
+ };
+ readonly login_api_v1_auth_login_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LoginRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly logout_api_v1_auth_logout_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ };
+ };
+ readonly receive_codex_oauth_callback_api_v1_auth_openai_codex_callback_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly code?: string | null;
+ readonly error?: string | null;
+ readonly state?: string | null;
+ };
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_profile_api_v1_auth_profile_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["UserInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_profile_api_v1_auth_profile_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateProfileRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly upload_avatar_api_v1_auth_profile_avatar_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "multipart/form-data": components["schemas"]["Body_upload_avatar_api_v1_auth_profile_avatar_put"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_avatar_api_v1_auth_profile_avatar_delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_current_learner_profile_api_v1_auth_profile_learner_profile_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_current_learner_profile_api_v1_auth_profile_learner_profile_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LearnerProfileRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly register_api_v1_auth_register_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["RegisterRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly auth_status_api_v1_auth_status_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["AuthStatusResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_users_api_v1_auth_users_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["UserInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly admin_create_user_api_v1_auth_users_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AdminCreateUserRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_user_api_v1_auth_users__username__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly username: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_learner_profile_api_v1_auth_users__username__learner_profile_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly username: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_learner_profile_api_v1_auth_users__username__learner_profile_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly username: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LearnerProfileRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_user_role_api_v1_auth_users__username__role_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly username: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SetRoleRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_books_api_v1_book_books_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_book_api_v1_book_books_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateBookRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_book_api_v1_book_books__book_id__get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly include_blocks?: boolean;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_book_api_v1_book_books__book_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly export_book_api_v1_book_books__book_id__export_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly book_health_api_v1_book_books__book_id__health_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_learning_captures_api_v1_book_books__book_id__learning_captures_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly status?: string | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_learning_capture_api_v1_book_books__book_id__learning_captures_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LearningCaptureCreateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_learning_capture_api_v1_book_books__book_id__learning_captures__capture_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ readonly capture_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LearningCaptureUpdateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_page_api_v1_book_books__book_id__pages__page_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ readonly page_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly refresh_fingerprints_api_v1_book_books__book_id__refresh_fingerprints_post: {
+ readonly parameters: {
+ readonly query?: {
+ readonly expected_revision?: number | null;
+ readonly force?: boolean;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_spine_api_v1_book_books__book_id__spine_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly change_block_type_api_v1_book_books_change_block_type_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChangeBlockTypeRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly compile_page_api_v1_book_books_compile_page_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CompilePageRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly confirm_proposal_api_v1_book_books_confirm_proposal_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConfirmProposalRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly confirm_spine_api_v1_book_books_confirm_spine_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConfirmSpineRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly deep_dive_api_v1_book_books_deep_dive_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DeepDiveRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_block_api_v1_book_books_delete_block_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DeleteBlockRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly insert_block_api_v1_book_books_insert_block_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["InsertBlockRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly move_block_api_v1_book_books_move_block_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MoveBlockRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly set_page_chat_session_api_v1_book_books_page_chat_session_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PageChatSessionRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly toggle_bookmark_api_v1_book_books_progress_bookmark_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["deeptutor__api__routers__book__ProgressRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly mark_visited_api_v1_book_books_progress_visit_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["deeptutor__api__routers__book__ProgressRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly quiz_attempt_api_v1_book_books_quiz_attempt_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["QuizAttemptRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly rebuild_book_api_v1_book_books_rebuild_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["RebuildBookRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly regenerate_block_api_v1_book_books_regenerate_block_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["RegenerateBlockRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly resume_book_api_v1_book_books_resume_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ResumeBookRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly supplement_api_v1_book_books_supplement_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SupplementRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_block_api_v1_book_books_update_block_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateBlockRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly estimate_basis_api_v1_book_estimate_basis_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly depth?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly health_check_api_v1_book_health_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_registered_capabilities_api_v1_capabilities_registered_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: readonly string[];
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_capabilities_settings_endpoint_api_v1_capabilities_settings_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_capabilities_settings_api_v1_capabilities_settings_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_sessions_api_v1_chat_sessions_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_session_api_v1_chat_sessions__session_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_session_api_v1_chat_sessions__session_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly auto_mark_text_api_v1_co_writer_automark_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AutoMarkRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["AutoMarkResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_documents_api_v1_co_writer_documents_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: readonly components["schemas"]["DocumentSummaryResponse"][];
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_document_api_v1_co_writer_documents_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateDocumentRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["DocumentResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_document_api_v1_co_writer_documents__doc_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly doc_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["DocumentResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_document_api_v1_co_writer_documents__doc_id__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly doc_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateDocumentRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["DocumentResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_document_api_v1_co_writer_documents__doc_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly doc_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: boolean;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly export_docx_api_v1_co_writer_documents_export_docx_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ExportDocxRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly import_docx_api_v1_co_writer_documents_import_docx_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "multipart/form-data": components["schemas"]["Body_import_docx_api_v1_co_writer_documents_import_docx_post"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["DocumentResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly edit_text_api_v1_co_writer_edit_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["EditRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["EditResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly edit_text_react_api_v1_co_writer_edit_react_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ReactEditRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["ReactEditResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly edit_text_react_stream_api_v1_co_writer_edit_react_stream_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ReactEditRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_history_api_v1_co_writer_history_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_operation_api_v1_co_writer_history__operation_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly operation_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_tool_call_api_v1_co_writer_tool_calls__operation_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly operation_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_courses_api_v1_courses_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_course_api_v1_courses_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateCourseRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_course_api_v1_courses__course_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly course_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_course_api_v1_courses__course_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly course_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateCourseRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly attach_course_resource_api_v1_courses__course_id__resources_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly course_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AttachCourseResourceRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly detach_course_resource_api_v1_courses__course_id__resources__resource_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly course_id: string;
+ readonly resource_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_course_state_api_v1_courses__course_id__state_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly course_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly set_course_syllabus_api_v1_courses__course_id__syllabus_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly course_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SetSyllabusRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_syllabus_unit_api_v1_courses__course_id__syllabus__unit_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly course_id: string;
+ readonly unit_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateSyllabusUnitRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_resource_candidates_api_v1_courses_resource_candidates_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_activity_entry_api_v1_dashboard__entry_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_recent_activities_api_v1_dashboard_recent_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly type?: string | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_starter_suggestions_api_v1_dashboard_suggestions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly refresh_starter_suggestions_api_v1_dashboard_suggestions_refresh_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_imported_chat_history_api_v1_imports_chat_history_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly offset?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly import_chat_history_api_v1_imports_chat_history_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChatHistoryImportRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_knowledge_base_details_api_v1_knowledge__kb_name__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_knowledge_base_api_v1_knowledge__kb_name__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_kb_config_api_v1_knowledge__kb_name__config_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_kb_config_api_v1_knowledge__kb_name__config_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly serve_kb_raw_file_text_preview_api_v1_knowledge__kb_name__file_preview_text__filename__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly filename: string;
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_kb_raw_files_api_v1_knowledge__kb_name__files_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly serve_kb_raw_file_api_v1_knowledge__kb_name__files__filename__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly filename: string;
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_kb_file_api_v1_knowledge__kb_name__files__filename__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly filename: string;
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly move_kb_file_api_v1_knowledge__kb_name__files_move_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MoveFilePayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_kb_folder_api_v1_knowledge__kb_name__folders_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateFolderPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly add_github_source_api_v1_knowledge__kb_name__github_source_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AddGitHubSourceRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["GitHubSourceInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_github_source_api_v1_knowledge__kb_name__github_source__source_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ readonly source_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_github_sources_api_v1_knowledge__kb_name__github_sources_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["GitHubSourceInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly link_folder_api_v1_knowledge__kb_name__link_folder_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LinkFolderRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["LinkedFolderInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_linked_folders_api_v1_knowledge__kb_name__linked_folders_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["LinkedFolderInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly unlink_folder_api_v1_knowledge__kb_name__linked_folders__folder_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly folder_id: string;
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_progress_api_v1_knowledge__kb_name__progress_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly clear_progress_api_v1_knowledge__kb_name__progress_clear_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reindex_knowledge_base_api_v1_knowledge__kb_name__reindex_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly retry_knowledge_base_api_v1_knowledge__kb_name__retry_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly sync_folder_api_v1_knowledge__kb_name__sync_folder__folder_id__post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly folder_id: string;
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly sync_github_sources_api_v1_knowledge__kb_name__sync_github_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly sync_web_sources_api_v1_knowledge__kb_name__sync_web_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly upload_files_api_v1_knowledge__kb_name__upload_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "multipart/form-data": components["schemas"]["Body_upload_files_api_v1_knowledge__kb_name__upload_post"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly add_web_source_api_v1_knowledge__kb_name__web_source_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AddWebSourceRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["WebSourceInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_web_source_api_v1_knowledge__kb_name__web_source__source_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ readonly source_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_web_sources_api_v1_knowledge__kb_name__web_sources_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["WebSourceInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_all_kb_configs_api_v1_knowledge_configs_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly sync_configs_from_metadata_api_v1_knowledge_configs_sync_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly connect_linked_folder_route_api_v1_knowledge_connect_folder_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConnectFolderRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly connect_ima_route_api_v1_knowledge_connect_ima_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConnectImaRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly connect_lightrag_server_route_api_v1_knowledge_connect_lightrag_server_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConnectLightRagServerRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly connect_marginnote4_api_v1_knowledge_connect_marginnote4_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConnectMarginNote4Request"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly connect_obsidian_vault_api_v1_knowledge_connect_obsidian_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConnectObsidianRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly connect_weknora_route_api_v1_knowledge_connect_weknora_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConnectWeKnoraRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_knowledge_base_api_v1_knowledge_create_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "multipart/form-data": components["schemas"]["Body_create_knowledge_base_api_v1_knowledge_create_post"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_default_kb_api_v1_knowledge_default_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly set_default_kb_api_v1_knowledge_default__kb_name__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kb_name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly health_check_api_v1_knowledge_health_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_knowledge_bases_api_v1_knowledge_list_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["KnowledgeBaseInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_ima_route_api_v1_knowledge_list_ima_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ListImaRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["ListImaResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly probe_linked_folder_route_api_v1_knowledge_probe_folder_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ProbeFolderRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly probe_ima_route_api_v1_knowledge_probe_ima_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ProbeImaRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly probe_lightrag_server_route_api_v1_knowledge_probe_lightrag_server_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ProbeLightRagServerRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly probe_weknora_route_api_v1_knowledge_probe_weknora_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ProbeWeKnoraRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_rag_pipeline_preflight_api_v1_knowledge_rag_pipelines__provider__preflight_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly provider: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly set_rag_active_model_api_v1_knowledge_rag_pipelines_active_model_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ActiveModelUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_graphrag_pipeline_config_api_v1_knowledge_rag_pipelines_graphrag_config_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_graphrag_pipeline_config_api_v1_knowledge_rag_pipelines_graphrag_config_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GraphRagConfigUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_graphrag_model_compatibility_api_v1_knowledge_rag_pipelines_graphrag_model_compatibility_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GraphRagModelCompatibilityRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_ima_pipeline_config_api_v1_knowledge_rag_pipelines_ima_config_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_ima_pipeline_config_api_v1_knowledge_rag_pipelines_ima_config_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ImaConfigUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_lightrag_server_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_server_config_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_lightrag_server_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_server_config_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LightRagServerConfigUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_lightrag_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_config_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_lightrag_pipeline_config_api_v1_knowledge_rag_pipelines_lightrag_config_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LightRagConfigUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_llamaindex_pipeline_config_api_v1_knowledge_rag_pipelines_llamaindex_config_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_llamaindex_pipeline_config_api_v1_knowledge_rag_pipelines_llamaindex_config_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LlamaIndexConfigUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_rag_model_options_api_v1_knowledge_rag_pipelines_model_options_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly kinds?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_pageindex_pipeline_config_api_v1_knowledge_rag_pipelines_pageindex_config_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_pageindex_pipeline_config_api_v1_knowledge_rag_pipelines_pageindex_config_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PageIndexConfigUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_rag_providers_api_v1_knowledge_rag_providers_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly set_rag_provider_mode_api_v1_knowledge_rag_providers__provider__mode_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly provider: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ProviderModeUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_supported_file_types_api_v1_knowledge_supported_file_types_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["SupportedFileTypesInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly stream_task_logs_api_v1_knowledge_tasks__task_id__stream_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly task_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_all_progress_api_v1_learning_progress_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_progress_api_v1_learning_progress__book_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_progress_api_v1_learning_progress__book_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly rename_progress_api_v1_learning_progress__book_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["RenamePathRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_progress_events_api_v1_learning_progress__book_id__events_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly after_revision?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly generate_from_notebook_api_v1_learning_progress__book_id__generate_from_notebook_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GenerateFromNotebookRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly generate_from_reading_api_v1_learning_progress__book_id__generate_from_reading_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GenerateFromReadingRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly import_from_book_api_v1_learning_progress__book_id__import_from_book_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ImportFromBookRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly init_modules_api_v1_learning_progress__book_id__init_modules_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["InitModulesRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_progress_map_api_v1_learning_progress__book_id__map_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_objective_report_api_v1_learning_progress__book_id__objectives__kp_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ readonly kp_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly redo_progress_api_v1_learning_progress__book_id__redo_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_progress_sessions_api_v1_learning_progress__book_id__sessions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly skip_pending_question_api_v1_learning_progress__book_id__skip_question_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly book_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_topics_api_v1_learning_topics_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_topic_api_v1_learning_topics_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConfirmTopicRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_topic_api_v1_learning_topics__path_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly path_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_topic_ask_hint_api_v1_learning_topics__path_id__ask_hint_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly session_id?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly path_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly edit_topic_map_api_v1_learning_topics__path_id__map_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly path_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["EditTopicMapRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly set_learner_override_api_v1_learning_topics__path_id__objectives__kp_id__override_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kp_id: string;
+ readonly path_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LearnerOverrideRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_topic_sessions_api_v1_learning_topics__path_id__sessions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly path_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly generate_topic_route_api_v1_learning_topics_draft_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GenerateTopicDraftRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_topic_index_api_v1_learning_topics_index_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_devices_api_v1_marginnote4_devices_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["DeviceInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly revoke_device_api_v1_marginnote4_devices__device_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly device_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly heartbeat_api_v1_marginnote4_heartbeat_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly pair_device_api_v1_marginnote4_pair_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PairRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["PairResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly status_api_v1_marginnote4_status_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly sync_objects_api_v1_marginnote4_sync_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SyncRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["SyncResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_backups_api_v1_memory_backup_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_doc_api_v1_memory_doc__layer___key__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_doc_api_v1_memory_doc__layer___key__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DocWriteRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly apply_doc_ops_api_v1_memory_doc__layer___key__apply_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ApplyOpsRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly audit_doc_api_v1_memory_doc__layer___key__audit_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AuditRequest"] | null;
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly dedup_doc_api_v1_memory_doc__layer___key__dedup_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DedupRequest"] | null;
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_entry_api_v1_memory_doc__layer___key__entry__entry_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: string;
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_doc_lines_api_v1_memory_doc__layer___key__lines_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reset_doc_api_v1_memory_doc__layer___key__reset_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_doc_api_v1_memory_doc__layer___key__update_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly layer: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateRequest"] | null;
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_overview_api_v1_memory_overview_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly resolve_entry_api_v1_memory_resolve_entry__entry_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_runs_api_v1_memory_runs_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly key?: string | null;
+ readonly layer?: string | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_run_api_v1_memory_runs__run_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly run_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly cancel_run_api_v1_memory_runs__run_id__cancel_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly run_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly stream_run_events_api_v1_memory_runs__run_id__events_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly since?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly run_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly undo_run_edit_api_v1_memory_runs__run_id__undo_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly run_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_run_api_v1_memory_runs_start_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["RunStartRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_memory_settings_endpoint_api_v1_memory_settings_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_memory_settings_api_v1_memory_settings_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_snapshot_api_v1_memory_snapshot__surface__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly surface: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_changes_api_v1_memory_snapshot__surface__changes_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly offset?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly surface: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly clear_snapshot_changes_api_v1_memory_snapshot__surface__changes_delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly surface: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly refresh_snapshot_api_v1_memory_snapshot__surface__refresh_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly surface: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_trace_api_v1_memory_trace__surface__get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly offset?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly surface: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly clear_trace_api_v1_memory_trace__surface__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly surface: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly clear_trace_day_api_v1_memory_trace__surface__day__day__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly day: string;
+ readonly surface: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly admin_books_api_v1_multi_user_admin_books_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly admin_resources_api_v1_multi_user_admin_resources_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly admin_install_skill_api_v1_multi_user_admin_skills_install_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SkillInstallPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_guardian_relationships_api_v1_multi_user_guardians_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly include_revoked?: boolean;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly authorize_guardian_relationship_api_v1_multi_user_guardians_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GuardianAuthorizationPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly revoke_guardian_relationship_api_v1_multi_user_guardians__relationship_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly relationship_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reset_learner_credentials_api_v1_multi_user_learners__learner_user_id__credentials_reset_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly learner_user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GuardianCredentialResetPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly guardian_report_api_v1_multi_user_learners__learner_user_id__guardian_report_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly learner_user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly guardian_material_catalog_api_v1_multi_user_learners__learner_user_id__materials_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly learner_user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly assign_guardian_materials_api_v1_multi_user_learners__learner_user_id__materials_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly learner_user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GuardianMaterialsPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_guardian_restrictions_api_v1_multi_user_learners__learner_user_id__restrictions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly learner_user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_guardian_restrictions_api_v1_multi_user_learners__learner_user_id__restrictions_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly learner_user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GuardianRestrictionsPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly my_guardianships_api_v1_multi_user_me_guardianships_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly revoke_my_guardianship_api_v1_multi_user_me_guardianships__relationship_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly relationship_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly multi_user_list_users_api_v1_multi_user_users_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_user_book_permission_api_v1_multi_user_users__user_id__book_permission_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_user_book_permission_api_v1_multi_user_users__user_id__book_permission_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["BookPermissionPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_user_grants_api_v1_multi_user_users__user_id__grants_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_user_grants_api_v1_multi_user_users__user_id__grants_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly user_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["GrantPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_notebook_api_v1_notebook__notebook_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_notebook_api_v1_notebook__notebook_id__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateNotebookRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_notebook_api_v1_notebook__notebook_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly export_notebook_api_v1_notebook__notebook_id__export_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "text/plain": string;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_record_api_v1_notebook__notebook_id__records__record_id__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ readonly record_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateRecordRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_record_api_v1_notebook__notebook_id__records__record_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ readonly record_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly copy_record_api_v1_notebook__notebook_id__records__record_id__copy_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ readonly record_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MoveRecordRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly move_record_api_v1_notebook__notebook_id__records__record_id__move_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly notebook_id: string;
+ readonly record_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MoveRecordRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly add_record_api_v1_notebook_add_record_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AddRecordRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly add_record_with_summary_api_v1_notebook_add_record_with_summary_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AddRecordRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_notebook_api_v1_notebook_create_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateNotebookRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly health_check_api_v1_notebook_health_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_notebooks_api_v1_notebook_list_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_statistics_api_v1_notebook_statistics_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_partner_groups_api_v1_partner_groups_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_partner_group_api_v1_partner_groups_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreatePartnerGroupRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_group_api_v1_partner_groups__group_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_partner_group_api_v1_partner_groups__group_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_partner_group_api_v1_partner_groups__group_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdatePartnerGroupRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly partner_group_history_api_v1_partner_groups__group_id__history_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly session_key?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly partner_group_invocations_api_v1_partner_groups__group_id__invocations_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly session_key?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_partner_invocation_api_v1_partner_groups__group_id__invocations_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreatePartnerInvocationRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly approve_partner_invocation_api_v1_partner_groups__group_id__invocations__invocation_id__approve_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ readonly invocation_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PartnerInvocationActionRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reject_partner_invocation_api_v1_partner_groups__group_id__invocations__invocation_id__reject_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ readonly invocation_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PartnerInvocationActionRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly send_partner_group_message_api_v1_partner_groups__group_id__messages_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PartnerGroupMessageRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly summarize_partner_group_round_api_v1_partner_groups__group_id__rounds__turn_id__summary_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ readonly turn_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["RoundSummaryRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_partner_group_sessions_api_v1_partner_groups__group_id__sessions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_partner_group_session_api_v1_partner_groups__group_id__sessions_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_partner_group_session_api_v1_partner_groups__group_id__sessions__session_key__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ readonly session_key: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly retry_partner_group_seat_api_v1_partner_groups__group_id__turns__turn_id__partners__partner_id__retry_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ readonly partner_id: string;
+ readonly turn_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PartnerSeatRetryRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly pin_partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_pins_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["WhiteboardPinRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly unpin_partner_group_whiteboard_api_v1_partner_groups__group_id__whiteboard_pins__event_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly event_id: string;
+ readonly group_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_discussion_modes_api_v1_partner_groups_discussion_modes_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_shared_memory_types_api_v1_partner_groups_shared_memory_types_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_partners_api_v1_partners_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_partner_api_v1_partners_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreatePartnerRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_api_v1_partners__partner_id__get: {
+ readonly parameters: {
+ readonly query?: {
+ /** @description Return raw channel secrets (tokens, passwords). Required by the edit form; default response masks all secret-looking fields. */
+ readonly include_secrets?: boolean;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly destroy_partner_api_v1_partners__partner_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_partner_api_v1_partners__partner_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdatePartnerRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_assets_api_v1_partners__partner_id__assets_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly add_partner_assets_api_v1_partners__partner_id__assets_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AssetAddRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_partner_asset_api_v1_partners__partner_id__assets__asset_type___name__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly asset_type: string;
+ readonly name: string;
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly cancel_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly apply_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding__session_id__apply_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_partner_channel_onboarding_api_v1_partners__partner_id__channel_onboarding_start_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChannelOnboardingStartRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reload_partner_channels_api_v1_partners__partner_id__channels_reload_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_channel_status_api_v1_partners__partner_id__channels_status_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_weixin_qr_api_v1_partners__partner_id__channels_weixin_qr_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly poll_weixin_qr_api_v1_partners__partner_id__channels_weixin_qr__session_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly partner_chat_http_api_v1_partners__partner_id__chat_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChatMessageRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly partner_chat_http_stream_api_v1_partners__partner_id__chat_execute_stream_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChatMessageRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_history_api_v1_partners__partner_id__history_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly session_id?: string | null;
+ readonly session_key?: string | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_partner_links_api_v1_partners__partner_id__links_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_partner_link_api_v1_partners__partner_id__links__key__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly key: string;
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_partner_link_code_api_v1_partners__partner_id__links_code_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_sessions_api_v1_partners__partner_id__sessions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly archive_partner_session_api_v1_partners__partner_id__sessions_archive_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SessionKeyBody"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly branch_partner_session_api_v1_partners__partner_id__sessions_branch_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SessionBranchBody"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_partner_session_api_v1_partners__partner_id__sessions_delete_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SessionKeyBody"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly resume_partner_session_api_v1_partners__partner_id__sessions_resume_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SessionKeyBody"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_soul_api_v1_partners__partner_id__soul_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly put_partner_soul_api_v1_partners__partner_id__soul_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SoulUpdateBody"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_partner_api_v1_partners__partner_id__start_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly stop_partner_api_v1_partners__partner_id__stop_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly partner_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_channel_schemas_api_v1_partners_channels_schema_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly partner_command_palette_api_v1_partners_commands_palette_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_partner_draft_api_v1_partners_drafts__draft_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly draft_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly confirm_partner_draft_api_v1_partners_drafts__draft_id__confirm_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly draft_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConfirmPartnerDraftRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly recent_partners_api_v1_partners_recent_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly soul_sources_api_v1_partners_soul_sources_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_souls_api_v1_partners_souls_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_soul_api_v1_partners_souls_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SoulCreateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_soul_api_v1_partners_souls__soul_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly soul_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_soul_api_v1_partners_souls__soul_id__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly soul_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SoulTemplateUpdateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_soul_api_v1_partners_souls__soul_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly soul_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly tool_options_api_v1_partners_tool_options_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_persona_api_v1_personas__name__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_persona_api_v1_personas__name__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdatePersonaRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_persona_api_v1_personas__name__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_persona_api_v1_personas_create_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreatePersonaRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_personas_api_v1_personas_list_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_categories_api_v1_question_notebook_categories_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly course_id?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["CategoryItem"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_category_api_v1_question_notebook_categories_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CategoryCreateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["CategoryItem"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_category_api_v1_question_notebook_categories__category_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly category_id: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly rename_category_api_v1_question_notebook_categories__category_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly category_id: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CategoryRenameRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_entries_api_v1_question_notebook_entries_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly bookmarked?: boolean | null;
+ readonly category_id?: number | null;
+ readonly course_id?: string;
+ readonly is_correct?: boolean | null;
+ readonly limit?: number;
+ readonly material_id?: string;
+ readonly offset?: number;
+ readonly resolved?: boolean | null;
+ readonly score_trend?: string;
+ readonly search?: string;
+ readonly section_id?: string;
+ readonly sort?: string;
+ readonly source?: string;
+ /** @description Only entries filed under no category — the triage inbox. Ignored when category_id is set. */
+ readonly uncategorized?: boolean;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["NotebookEntryListResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_entry_api_v1_question_notebook_entries__entry_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["NotebookEntryItem"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_entry_api_v1_question_notebook_entries__entry_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_entry_api_v1_question_notebook_entries__entry_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["EntryUpdateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly add_entry_to_category_api_v1_question_notebook_entries__entry_id__categories_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CategoryAddRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_entry_from_category_api_v1_question_notebook_entries__entry_id__categories__category_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly category_id: number;
+ readonly entry_id: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly bulk_link_entries_api_v1_question_notebook_entries_categories_bulk_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["BulkCategoryRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly lookup_entry_api_v1_question_notebook_entries_lookup_by_question_get: {
+ readonly parameters: {
+ readonly query: {
+ /** @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. */
+ readonly missing_ok?: boolean;
+ readonly question_id: string;
+ readonly session_id: string;
+ readonly turn_id?: string | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly upsert_single_entry_api_v1_question_notebook_entries_upsert_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpsertEntryRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_question_bank_materials_api_v1_question_notebook_materials_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly course_id?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["QuestionBankMaterial"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly question_bank_stats_api_v1_question_notebook_stats_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly course_id?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["QuestionBankStats"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly epub_pairings_api_v1_reading_epub_pairings_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_epub_pairing_api_v1_reading_epub_pairings_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["EpubPairingRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_epub_pairing_api_v1_reading_epub_pairings__pairing_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly pairing_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_extensions_api_v1_reading_extensions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly duplicate_check_api_v1_reading_library_duplicate_check_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DuplicateCheckRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly import_urls_api_v1_reading_library_import_urls_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UrlImportRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 202: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_library_materials_api_v1_reading_library_materials_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly filter?: "all" | "unassigned" | "processing" | "failed";
+ readonly search?: string;
+ readonly status?: ("queued" | "processing" | "ready" | "failed") | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_materials_api_v1_reading_materials_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["MaterialInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly upload_material_api_v1_reading_materials_post: {
+ readonly parameters: {
+ readonly query?: {
+ readonly reuse?: boolean;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "multipart/form-data": components["schemas"]["Body_upload_material_api_v1_reading_materials_post"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["MaterialDetail"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_material_api_v1_reading_materials__material_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["MaterialDetail"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_material_api_v1_reading_materials__material_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_annotations_api_v1_reading_materials__material_id__annotations_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly components["schemas"]["AnnotationInfo"][];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly save_annotation_api_v1_reading_materials__material_id__annotations_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["AnnotationPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["AnnotationInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_annotation_api_v1_reading_materials__material_id__annotations__annotation_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly annotation_id: string;
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_snapshot_asset_api_v1_reading_materials__material_id__assets__asset_name__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly asset_name: string;
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly epub_pairing_candidates_api_v1_reading_materials__material_id__epub_pairing_candidates_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly export_api_v1_reading_materials__material_id__export_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly fmt?: "auto" | "pdf" | "markdown";
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly run_extension_action_api_v1_reading_materials__material_id__extensions__extension_id__actions__action__post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly action: string;
+ readonly extension_id: string;
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ActionPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_position_api_v1_reading_materials__material_id__position_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["PositionInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly save_position_api_v1_reading_materials__material_id__position_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["PositionPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["PositionInfo"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_raw_api_v1_reading_materials__material_id__raw_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly retry_import_api_v1_reading_materials__material_id__retry_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 202: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_material_revisions_api_v1_reading_materials__material_id__revisions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_revision_unit_api_v1_reading_materials__material_id__revisions__revision__units__locator__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly locator: number;
+ readonly material_id: string;
+ readonly revision: number;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["UnitText"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_unit_api_v1_reading_materials__material_id__units__locator__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly locator: number;
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["UnitText"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly supported_formats_api_v1_reading_supported_formats_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["SupportedFormats"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_workspaces_api_v1_reading_workspaces_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly search?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_workspace_api_v1_reading_workspaces_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["WorkspaceCreateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_workspace_api_v1_reading_workspaces__workspace_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_workspace_api_v1_reading_workspaces__workspace_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_workspace_api_v1_reading_workspaces__workspace_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["WorkspaceUpdateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_workspace_ask_hint_api_v1_reading_workspaces__workspace_id__ask_hint_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly locator?: number | null;
+ readonly selection?: string;
+ readonly session_id?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly add_workspace_material_api_v1_reading_workspaces__workspace_id__materials_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["WorkspaceMaterialRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_workspace_material_api_v1_reading_workspaces__workspace_id__materials__material_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly activate_workspace_material_api_v1_reading_workspaces__workspace_id__materials__material_id__active_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reorder_workspace_materials_api_v1_reading_workspaces__workspace_id__materials_order_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["WorkspaceReorderRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly capture_reading_to_notebook_api_v1_reading_workspaces__workspace_id__notebook_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["NotebookCaptureRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly organize_reading_notes_api_v1_reading_workspaces__workspace_id__notes_organize_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["OrganizeNotesRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_workspace_openers_api_v1_reading_workspaces__workspace_id__openers_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly locator?: number | null;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_reading_sessions_api_v1_reading_workspaces__workspace_id__sessions_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_reading_session_api_v1_reading_workspaces__workspace_id__sessions_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ReadingSessionCreateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 201: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly rename_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ReadingSessionRenameRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly link_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__links_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ReadingSessionLinkRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly unlink_reading_session_api_v1_reading_workspaces__workspace_id__sessions__session_id__links__target_session_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ readonly target_session_id: string;
+ readonly workspace_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_workspace_index_api_v1_reading_workspaces_index_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_sessions_api_v1_sessions_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly limit?: number;
+ readonly offset?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_session_api_v1_sessions__session_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_session_api_v1_sessions__session_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly rename_session_api_v1_sessions__session_id__patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SessionRenameRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_session_ask_hint_api_v1_sessions__session_id__ask_hint_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_branch_selection_api_v1_sessions__session_id__branch_selection_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["BranchSelectionRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_turn_by_message_api_v1_sessions__session_id__messages__message_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly message_id: number;
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_session_organization_api_v1_sessions__session_id__organization_patch: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SessionOrganizationRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly record_quiz_results_api_v1_sessions__session_id__quiz_results_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly session_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["QuizResultsRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_settings_api_v1_settings_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly apply_catalog_api_v1_settings_apply_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CatalogPayload"] | null;
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_catalog_api_v1_settings_catalog_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_catalog_api_v1_settings_catalog_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CatalogPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_chat_attachment_settings_api_v1_settings_chat_attachments_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_chat_attachment_settings_api_v1_settings_chat_attachments_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChatAttachmentSettingsUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_chat_response_timeout_api_v1_settings_chat_response_timeout_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChatResponseTimeoutUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_chat_starter_settings_api_v1_settings_chat_starters_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_chat_starter_settings_api_v1_settings_chat_starters_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ChatStarterSettingsUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_document_parsing_settings_api_v1_settings_document_parsing_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_document_parsing_settings_api_v1_settings_document_parsing_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DocumentParsingUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_docling_remote_connection_api_v1_settings_document_parsing_docling_test_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DoclingRemoteTest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_document_parsing_install_api_v1_settings_document_parsing_install_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DocumentParsingInstall"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly cancel_document_parsing_job_api_v1_settings_document_parsing_job_cancel_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly document_parsing_job_status_api_v1_settings_document_parsing_job_status_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly cursor?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_document_parsing_model_download_api_v1_settings_document_parsing_models_download_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DocumentParsingInstall"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_document_parsing_api_v1_settings_document_parsing_test_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["DocumentParsingTest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_tika_remote_connection_api_v1_settings_document_parsing_tika_test_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["TikaRemoteTest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_settings_draft_api_v1_settings_draft_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_settings_draft_api_v1_settings_draft_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SettingsDraftPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly discard_settings_draft_api_v1_settings_draft_delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_enabled_tools_api_v1_settings_enabled_tools_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["EnabledToolsUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly fetch_models_from_provider_api_v1_settings_fetch_models_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["FetchModelsPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_language_api_v1_settings_language_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["LanguageUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_llm_options_api_v1_settings_llm_options_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_mcp_settings_api_v1_settings_mcp_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_mcp_settings_api_v1_settings_mcp_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MCPSettingsPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly upsert_mcp_server_api_v1_settings_mcp_servers__name__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MCPServerConfig"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_mcp_server_api_v1_settings_mcp_servers__name__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_mcp_server_api_v1_settings_mcp_test_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MCPServerConfig"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_mineru_settings_api_v1_settings_mineru_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_mineru_settings_api_v1_settings_mineru_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MinerUSettingsUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_mineru_models_download_api_v1_settings_mineru_models_download_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MinerUModelDownloadPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly cancel_mineru_models_download_api_v1_settings_mineru_models_download_cancel_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly mineru_models_download_status_api_v1_settings_mineru_models_download_status_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly cursor?: number;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_mineru_connection_api_v1_settings_mineru_test_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["MinerUSettingsUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_network_settings_api_v1_settings_network_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_network_settings_api_v1_settings_network_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["NetworkSettingsUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly cancel_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_cancel_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly logout_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_logout_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_codebuddy_auth_api_v1_settings_providers_codebuddy_auth_start_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_codebuddy_auth_status_api_v1_settings_providers_codebuddy_auth_status_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_openai_codex_reasoning_effort_api_v1_settings_providers_openai_codex_models_reasoning_effort_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CodexReasoningEffortUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly refresh_openai_codex_models_api_v1_settings_providers_openai_codex_models_refresh_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly cancel_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_cancel_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly logout_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_logout_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_openai_codex_oauth_api_v1_settings_providers_openai_codex_oauth_start_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_openai_codex_oauth_status_api_v1_settings_providers_openai_codex_oauth_status_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reset_settings_api_v1_settings_reset_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_sidebar_settings_api_v1_settings_sidebar_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_sidebar_description_api_v1_settings_sidebar_description_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SidebarDescriptionUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_sidebar_nav_order_api_v1_settings_sidebar_nav_order_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SidebarNavOrderUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly cancel_service_test_api_v1_settings_tests__service___run_id__cancel_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly run_id: string;
+ readonly service: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly stream_service_test_events_api_v1_settings_tests__service___run_id__events_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly run_id: string;
+ readonly service: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly start_service_test_api_v1_settings_tests__service__start_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly service: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CatalogPayload"] | null;
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_theme_api_v1_settings_theme_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ThemeUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_themes_api_v1_settings_themes_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly complete_tour_api_v1_settings_tour_complete_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["TourCompletePayload"] | null;
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly reopen_tour_api_v1_settings_tour_reopen_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly tour_status_api_v1_settings_tour_status_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_ui_settings_api_v1_settings_ui_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ };
+ };
+ readonly update_ui_settings_api_v1_settings_ui_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UISettingsUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_video_learning_settings_api_v1_settings_video_learning_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_video_learning_settings_api_v1_settings_video_learning_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["VideoLearningSettingsRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_invidious_api_v1_settings_video_learning_test_invidious_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["VideoLearningSettingsRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_voice_autoplay_api_v1_settings_voice_autoplay_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["VoiceAutoplayUpdate"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_skill_api_v1_skills__name__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_skill_api_v1_skills__name__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateSkillRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_skill_api_v1_skills__name__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_skill_api_v1_skills_create_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateSkillRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly hub_catalog_api_v1_skills_hub_catalog_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly hub?: string;
+ readonly limit?: number;
+ readonly q?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly hub_detail_api_v1_skills_hub_detail_get: {
+ readonly parameters: {
+ readonly query: {
+ readonly hub?: string;
+ readonly slug: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly install_skill_api_v1_skills_install_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["InstallSkillRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_skills_api_v1_skills_list_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly rename_tag_api_v1_skills_tags__tag__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly tag: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["RenameTagRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_tag_api_v1_skills_tags__tag__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly tag: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_tag_api_v1_skills_tags_create_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateTagRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_tags_api_v1_skills_tags_list_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: readonly string[];
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_apps_api_v1_space_cli_apps_apps_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly uninstall_api_v1_space_cli_apps_apps__app_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly app_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly set_enabled_api_v1_space_cli_apps_apps__app_id__enabled_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly app_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["EnabledPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_catalog_api_v1_space_cli_apps_catalog_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly category?: string;
+ readonly cursor?: string;
+ readonly installable_only?: boolean;
+ readonly limit?: number;
+ readonly q?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly install_api_v1_space_cli_apps_catalog__app_id__install_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly app_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_catalog_api_v1_space_mcp_catalog_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly category?: string;
+ readonly cursor?: string;
+ readonly limit?: number;
+ readonly q?: string;
+ readonly tier?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly install_catalog_entry_api_v1_space_mcp_catalog__entry_id__install_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly entry_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["InstallPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly oauth_callback_api_v1_space_mcp_oauth_callback_get: {
+ readonly parameters: {
+ readonly query?: {
+ readonly code?: string;
+ readonly error?: string;
+ readonly error_description?: string;
+ readonly state?: string;
+ };
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_servers_api_v1_space_mcp_servers_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly upsert_server_api_v1_space_mcp_servers__name__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ServerPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly remove_server_api_v1_space_mcp_servers__name__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly authorize_server_api_v1_space_mcp_servers__name__authorize_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_server_api_v1_space_mcp_servers__name__test_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ServerPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly sync_backend_api_v1_subagents_backends__kind__sync_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly kind: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly backend_options_api_v1_subagents_backends_options_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_connections_api_v1_subagents_connections_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_connection_api_v1_subagents_connections_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ConnectSubagentRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_connection_api_v1_subagents_connections__name__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly message_connection_api_v1_subagents_connections__name__message_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly name: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SubagentMessageRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly detect_subagents_api_v1_subagents_detect_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_visible_partners_api_v1_subagents_partners_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_settings_api_v1_subagents_settings_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_settings_api_v1_subagents_settings_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["SubagentSettingsPayload"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_memory_usage_api_v1_system_memory_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_runtime_topology_api_v1_system_runtime_topology_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_system_status_api_v1_system_status_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_embeddings_connection_api_v1_system_test_embeddings_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["TestResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_llm_connection_api_v1_system_test_llm_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["TestResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly test_search_connection_api_v1_system_test_search_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["TestResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_update_status_api_v1_system_update_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly request_managed_update_api_v1_system_update_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ManagedUpdateRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 202: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly check_for_update_api_v1_system_update_check_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_update_job_api_v1_system_update_job_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ } | null;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_check_settings_api_v1_system_update_settings_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateSettingsRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_builtin_tools_api_v1_tools_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["ToolsListResponse"];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_video_material_api_v1_video_learning_materials__material_id__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_video_notes_api_v1_video_learning_materials__material_id__notes_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": readonly {
+ readonly [key: string]: unknown;
+ }[];
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly create_video_note_api_v1_video_learning_materials__material_id__notes_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["CreateVideoNoteRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly update_video_note_api_v1_video_learning_materials__material_id__notes__note_id__put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ readonly note_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["UpdateVideoNoteRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly delete_video_note_api_v1_video_learning_materials__material_id__notes__note_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ readonly note_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly save_video_progress_api_v1_video_learning_materials__material_id__progress_put: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["deeptutor__api__routers__video_learning__ProgressRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: number;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly stream_video_api_v1_video_learning_materials__material_id__stream__format_id__head_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly format_id: string;
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly stream_video_api_v1_video_learning_materials__material_id__stream__format_id__head: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly format_id: string;
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_video_subtitles_api_v1_video_learning_materials__material_id__subtitles_vtt_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly refresh_video_transcript_api_v1_video_learning_materials__material_id__transcript_refresh_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly material_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly resolve_video_api_v1_video_learning_materials_resolve_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["ResolveRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly uninstall_visualizer_api_v1_visualizers__visualizer_id__delete: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly visualizer_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly get_visualizer_asset_api_v1_visualizers__visualizer_id__assets__asset_path__get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly asset_path: string;
+ readonly visualizer_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly disable_visualizer_api_v1_visualizers__visualizer_id__disable_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly visualizer_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly enable_visualizer_api_v1_visualizers__visualizer_id__enable_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly visualizer_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly install_bundled_api_v1_visualizers_bundled__visualizer_id__install_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path: {
+ readonly visualizer_id: string;
+ };
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly import_visualizer_api_v1_visualizers_import_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "multipart/form-data": components["schemas"]["Body_import_visualizer_api_v1_visualizers_import_post"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly list_visualizers_api_v1_visualizers_list_get: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody?: never;
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: unknown;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly speech_to_text_api_v1_voice_stt_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "multipart/form-data": components["schemas"]["Body_speech_to_text_api_v1_voice_stt_post"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": {
+ readonly [key: string]: string;
+ };
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ readonly text_to_speech_api_v1_voice_tts_post: {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: {
+ readonly Authorization?: string | null;
+ };
+ readonly path?: never;
+ readonly cookie?: {
+ readonly dt_token?: string | null;
+ };
+ };
+ readonly requestBody: {
+ readonly content: {
+ readonly "application/json": components["schemas"]["TTSRequest"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": unknown;
+ };
+ };
+ /** @description Validation Error */
+ readonly 422: {
+ headers: {
+ readonly [name: string]: unknown;
+ };
+ content: {
+ readonly "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+}
diff --git a/web/contracts/generated/turn-protocol.ts b/web/contracts/generated/turn-protocol.ts
new file mode 100644
index 000000000..d0246a473
--- /dev/null
+++ b/web/contracts/generated/turn-protocol.ts
@@ -0,0 +1,556 @@
+/* eslint-disable */
+/**
+ * This file was automatically generated by json-schema-to-typescript.
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
+ * and run json-schema-to-typescript to regenerate this file.
+ */
+
+export type ClientCommand =
+ | StartTurnCommand
+ | SubscribeTurnCommand
+ | SubscribeSessionCommand
+ | ResumeTurnCommand
+ | UnsubscribeCommand
+ | CancelTurnCommand
+ | RegenerateCommand
+ | SubmitUserReplyCommand
+ | UserInputCommand
+ | CheckActiveTurnCommand
+ | PingCommand;
+export type Base64 = string | null;
+export type Filename = string | null;
+export type MimeType = string | null;
+export type Type = string;
+export type Url = string | null;
+export type Attachments = OutgoingAttachment[];
+export type AutoRoute = boolean | null;
+export type BookId = string;
+export type PageIds = string[];
+export type BookReferences = BookReference[];
+export type Capability = string | null;
+export type Content = string;
+export type CourseId = string | null;
+export type FollowupQuestionContext = {
+ [k: string]: unknown;
+} | null;
+export type HistoryReferences = string[];
+export type KnowledgeBases = string[];
+export type Language = string | null;
+export type ModelId = string;
+export type ProfileId = string;
+export type MasteryPathId = string | null;
+export type MasteryPathLeaseManaged = boolean;
+export type MemoryReferences = {
+ [k: string]: unknown;
+}[];
+export type NotebookId = string;
+export type RecordIds = string[];
+export type NotebookReferences = NotebookReference[];
+export type ParentMessageId = number | null;
+export type PartnerGroupReferences = {
+ [k: string]: unknown;
+}[];
+export type PersistUserMessage = boolean;
+export type Persona = string | null;
+export type ProtocolVersion = "2.0";
+export type QuestionNotebookReferences = number[];
+export type ReadingMaterialId = string | null;
+export type ReadingMaterialRevision = number | null;
+export type Locators = number[];
+export type MaterialId = string;
+export type Revision = number;
+export type ReadingReferences = ReadingReference[];
+export type Locator = number | null;
+export type Selection = string | null;
+export type ReadingWorkspaceId = string | null;
+export type Regenerate = boolean;
+export type RegeneratedFromMessageId = number | null;
+export type SelectionTutorContext = {
+ [k: string]: unknown;
+} | null;
+export type SessionId = string | null;
+export type Skills = string[];
+export type SubagentConsultBudget = number | null;
+export type SupersededTurnId = string | null;
+export type TimedMediaId = string | null;
+export type TimeSeconds = number;
+export type Tools = string[] | null;
+export type Type1 = "message" | "start_turn";
+export type WorkspaceMode = string | null;
+export type AfterSeq = number;
+export type ProtocolVersion1 = "2.0";
+export type TurnId = string;
+export type Type2 = "subscribe_turn";
+export type AfterSeq1 = number;
+export type ProtocolVersion2 = "2.0";
+export type SessionId1 = string;
+export type Type3 = "subscribe_session";
+export type ProtocolVersion3 = "2.0";
+export type Seq = number;
+export type TurnId1 = string;
+export type Type4 = "resume_from";
+export type ProtocolVersion4 = "2.0";
+export type SessionId2 = string | null;
+export type TurnId2 = string | null;
+export type Type5 = "unsubscribe";
+export type ProtocolVersion5 = "2.0";
+export type TurnId3 = string;
+export type Type6 = "cancel_turn";
+export type ProtocolVersion6 = "2.0";
+export type SessionId3 = string;
+export type Type7 = "regenerate";
+export type Answers = UserAnswer[] | null;
+export type Questionid = string;
+export type Text = string;
+export type ProtocolVersion7 = "2.0";
+export type Text1 = string | null;
+export type TurnId4 = string;
+export type Type8 = "submit_user_reply";
+export type Content1 = string;
+export type ProtocolVersion8 = "2.0";
+export type TurnId5 = string;
+export type Type9 = "user_input";
+export type ProtocolVersion9 = "2.0";
+export type SessionId4 = string;
+export type Type10 = "check_active_turn";
+export type ProtocolVersion10 = "2.0";
+export type Type11 = "ping";
+export type CorrelationId = string | null;
+export type ErrorCode = string;
+export type Message = string;
+export type Retryable = boolean;
+export type MinimumWebProtocolVersion = "2.0";
+export type ProtocolVersion11 = "2.0";
+export type CoordinationMode = "memory" | "redis";
+export type LeaderHealthy = boolean | null;
+export type LeaderId = string | null;
+export type LeaseTtlSeconds = number;
+export type MinimumWebProtocolVersion1 = "2.0";
+export type OwnerTurnCount = number;
+export type ProtocolVersion12 = "2.0";
+export type RecoveryBacklog = number;
+export type RecoveryIntervalSeconds = number;
+export type RedisConfigured = boolean;
+export type RedisStatus = "ok" | "unavailable" | "not_configured";
+export type RenewIntervalSeconds = number;
+export type WorkerCount = number;
+export type WorkerId = string;
+export type ServerEvent = StreamEvent | ActiveTurnInfo | PongEvent;
+export type Content2 = string;
+export type ProtocolVersion13 = "2.0";
+export type Seq1 = number;
+export type SessionId5 = string;
+export type Source = string;
+export type Stage = string;
+export type Timestamp = number;
+export type TurnId6 = string;
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "StreamEventType".
+ */
+export type StreamEventType =
+ | "stage_start"
+ | "stage_end"
+ | "thinking"
+ | "observation"
+ | "content"
+ | "tool_call"
+ | "tool_result"
+ | "progress"
+ | "sources"
+ | "result"
+ | "error"
+ | "session"
+ | "session_meta"
+ | "wait_for_input"
+ | "done";
+export type ProtocolVersion14 = "2.0";
+export type Status = TurnStatus | "none";
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "TurnStatus".
+ */
+export type TurnStatus =
+ "queued" | "running" | "waiting_input" | "completed" | "failed" | "cancelled";
+export type TurnId7 = string;
+export type Type12 = "active_turn_info";
+export type ProtocolVersion15 = "2.0";
+export type Type13 = "pong";
+export type Capability1 = string;
+export type CreatedAt = number | null;
+export type Error = string;
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "TurnFailureCode".
+ */
+export type TurnFailureCode =
+ | "worker_lost"
+ | "lease_lost"
+ | "coordination_unavailable"
+ | "provider_error"
+ | "internal_error"
+ | "rejected"
+ | "server_shutdown";
+export type Id = string;
+export type LastSeq = number;
+export type OwnerId = string;
+/**
+ * Client observation state, including server-side recovery windows.
+ *
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "TurnQueryState".
+ */
+export type TurnQueryState =
+ "queued" | "running" | "waiting_input" | "recovering" | "completed" | "failed" | "cancelled";
+export type Retryable1 = boolean;
+export type SessionId6 = string;
+export type UpdatedAt = number | null;
+export type CreatedAt1 = number | null;
+export type Id1 = string;
+export type Messages = {
+ [k: string]: unknown;
+}[];
+export type Title = string;
+export type UpdatedAt1 = number | null;
+export type CreatedAt2 = number | null;
+export type Id2 = string;
+export type Title1 = string;
+export type UpdatedAt2 = number | null;
+
+export interface TurnProtocolDocument {
+ client_command: ClientCommand;
+ error: ErrorEnvelope;
+ minimum_web_protocol_version?: MinimumWebProtocolVersion;
+ protocol_version?: ProtocolVersion11;
+ runtime_status: RuntimeStatus;
+ server_event: ServerEvent;
+ session_detail: SessionDetail;
+ session_summary: SessionSummary;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "StartTurnCommand".
+ */
+export interface StartTurnCommand {
+ attachments?: Attachments;
+ auto_route?: AutoRoute;
+ book_references?: BookReferences;
+ capability?: Capability;
+ config?: Config;
+ content: Content;
+ course_id?: CourseId;
+ followup_question_context?: FollowupQuestionContext;
+ history_references?: HistoryReferences;
+ knowledge_bases?: KnowledgeBases;
+ language?: Language;
+ llm_selection?: LLMSelection | null;
+ mastery_path_id?: MasteryPathId;
+ mastery_path_lease_managed?: MasteryPathLeaseManaged;
+ memory_references?: MemoryReferences;
+ notebook_references?: NotebookReferences;
+ parent_message_id?: ParentMessageId;
+ partner_group_references?: PartnerGroupReferences;
+ persist_user_message?: PersistUserMessage;
+ persona?: Persona;
+ protocol_version?: ProtocolVersion;
+ question_notebook_references?: QuestionNotebookReferences;
+ reading_material_id?: ReadingMaterialId;
+ reading_material_revision?: ReadingMaterialRevision;
+ reading_references?: ReadingReferences;
+ reading_viewport?: ReadingViewport | null;
+ reading_workspace_id?: ReadingWorkspaceId;
+ regenerate?: Regenerate;
+ regenerated_from_message_id?: RegeneratedFromMessageId;
+ selection_tutor_context?: SelectionTutorContext;
+ session_id?: SessionId;
+ skills?: Skills;
+ subagent_consult_budget?: SubagentConsultBudget;
+ superseded_turn_id?: SupersededTurnId;
+ timed_media_id?: TimedMediaId;
+ timed_media_viewport?: TimedMediaViewport | null;
+ tools?: Tools;
+ type?: Type1;
+ workspace_mode?: WorkspaceMode;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "OutgoingAttachment".
+ */
+export interface OutgoingAttachment {
+ base64?: Base64;
+ filename?: Filename;
+ mime_type?: MimeType;
+ type: Type;
+ url?: Url;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "BookReference".
+ */
+export interface BookReference {
+ book_id: BookId;
+ page_ids?: PageIds;
+}
+export interface Config {
+ [k: string]: unknown;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "LLMSelection".
+ */
+export interface LLMSelection {
+ model_id: ModelId;
+ profile_id: ProfileId;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "NotebookReference".
+ */
+export interface NotebookReference {
+ notebook_id: NotebookId;
+ record_ids?: RecordIds;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "ReadingReference".
+ */
+export interface ReadingReference {
+ locators?: Locators;
+ material_id: MaterialId;
+ revision: Revision;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "ReadingViewport".
+ */
+export interface ReadingViewport {
+ locator?: Locator;
+ selection?: Selection;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "TimedMediaViewport".
+ */
+export interface TimedMediaViewport {
+ time_seconds: TimeSeconds;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "SubscribeTurnCommand".
+ */
+export interface SubscribeTurnCommand {
+ after_seq?: AfterSeq;
+ protocol_version?: ProtocolVersion1;
+ turn_id: TurnId;
+ type?: Type2;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "SubscribeSessionCommand".
+ */
+export interface SubscribeSessionCommand {
+ after_seq?: AfterSeq1;
+ protocol_version?: ProtocolVersion2;
+ session_id: SessionId1;
+ type?: Type3;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "ResumeTurnCommand".
+ */
+export interface ResumeTurnCommand {
+ protocol_version?: ProtocolVersion3;
+ seq?: Seq;
+ turn_id: TurnId1;
+ type?: Type4;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "UnsubscribeCommand".
+ */
+export interface UnsubscribeCommand {
+ protocol_version?: ProtocolVersion4;
+ session_id?: SessionId2;
+ turn_id?: TurnId2;
+ type?: Type5;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "CancelTurnCommand".
+ */
+export interface CancelTurnCommand {
+ protocol_version?: ProtocolVersion5;
+ turn_id: TurnId3;
+ type?: Type6;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "RegenerateCommand".
+ */
+export interface RegenerateCommand {
+ overrides?: Overrides;
+ protocol_version?: ProtocolVersion6;
+ session_id: SessionId3;
+ type?: Type7;
+}
+export interface Overrides {
+ [k: string]: unknown;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "SubmitUserReplyCommand".
+ */
+export interface SubmitUserReplyCommand {
+ answers?: Answers;
+ protocol_version?: ProtocolVersion7;
+ text?: Text1;
+ turn_id: TurnId4;
+ type?: Type8;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "UserAnswer".
+ */
+export interface UserAnswer {
+ questionId: Questionid;
+ text?: Text;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "UserInputCommand".
+ */
+export interface UserInputCommand {
+ content: Content1;
+ protocol_version?: ProtocolVersion8;
+ turn_id: TurnId5;
+ type?: Type9;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "CheckActiveTurnCommand".
+ */
+export interface CheckActiveTurnCommand {
+ protocol_version?: ProtocolVersion9;
+ session_id: SessionId4;
+ type?: Type10;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "PingCommand".
+ */
+export interface PingCommand {
+ protocol_version?: ProtocolVersion10;
+ type?: Type11;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "ErrorEnvelope".
+ */
+export interface ErrorEnvelope {
+ correlation_id?: CorrelationId;
+ error_code: ErrorCode;
+ message: Message;
+ retryable?: Retryable;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "RuntimeStatus".
+ */
+export interface RuntimeStatus {
+ coordination_mode: CoordinationMode;
+ leader_healthy?: LeaderHealthy;
+ leader_id?: LeaderId;
+ lease_ttl_seconds: LeaseTtlSeconds;
+ minimum_web_protocol_version?: MinimumWebProtocolVersion1;
+ owner_turn_count?: OwnerTurnCount;
+ protocol_version?: ProtocolVersion12;
+ recovery_backlog?: RecoveryBacklog;
+ recovery_interval_seconds: RecoveryIntervalSeconds;
+ redis_configured: RedisConfigured;
+ redis_status: RedisStatus;
+ renew_interval_seconds: RenewIntervalSeconds;
+ worker_count: WorkerCount;
+ worker_id: WorkerId;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "StreamEvent".
+ */
+export interface StreamEvent {
+ content?: Content2;
+ metadata?: Metadata;
+ protocol_version?: ProtocolVersion13;
+ seq?: Seq1;
+ session_id?: SessionId5;
+ source?: Source;
+ stage?: Stage;
+ timestamp: Timestamp;
+ turn_id?: TurnId6;
+ type: StreamEventType;
+}
+export interface Metadata {
+ [k: string]: unknown;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "ActiveTurnInfo".
+ */
+export interface ActiveTurnInfo {
+ protocol_version?: ProtocolVersion14;
+ status?: Status;
+ turn_id?: TurnId7;
+ type?: Type12;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "PongEvent".
+ */
+export interface PongEvent {
+ protocol_version?: ProtocolVersion15;
+ type?: Type13;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "SessionDetail".
+ */
+export interface SessionDetail {
+ active_turn?: TurnSummary | null;
+ created_at?: CreatedAt1;
+ id: Id1;
+ messages?: Messages;
+ preferences?: Preferences;
+ title: Title;
+ updated_at?: UpdatedAt1;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "TurnSummary".
+ */
+export interface TurnSummary {
+ capability?: Capability1;
+ created_at?: CreatedAt;
+ error?: Error;
+ error_code?: TurnFailureCode | null;
+ id: Id;
+ last_seq?: LastSeq;
+ owner_id?: OwnerId;
+ query_state?: TurnQueryState | null;
+ retryable?: Retryable1;
+ session_id: SessionId6;
+ status: TurnStatus;
+ updated_at?: UpdatedAt;
+}
+export interface Preferences {
+ [k: string]: unknown;
+}
+/**
+ * This interface was referenced by `TurnProtocolDocument`'s JSON-Schema
+ * via the `definition` "SessionSummary".
+ */
+export interface SessionSummary {
+ active_turn?: TurnSummary | null;
+ created_at?: CreatedAt2;
+ id: Id2;
+ title: Title1;
+ updated_at?: UpdatedAt2;
+}
diff --git a/web/contracts/schema/openapi.json b/web/contracts/schema/openapi.json
index b87f64b37..8d32db76b 100644
--- a/web/contracts/schema/openapi.json
+++ b/web/contracts/schema/openapi.json
@@ -9771,7 +9771,7 @@
"/api/outputs/{output_path}": {
"get": {
"description": "Serve one allowlisted artifact from the authenticated user's reach.",
- "operationId": "read_output_api_outputs__output_path__get",
+ "operationId": "read_output_api_outputs__output_path__head_get",
"parameters": [
{
"in": "path",
@@ -9842,7 +9842,7 @@
},
"head": {
"description": "Serve one allowlisted artifact from the authenticated user's reach.",
- "operationId": "read_output_api_outputs__output_path__get",
+ "operationId": "read_output_api_outputs__output_path__head",
"parameters": [
{
"in": "path",
@@ -48466,7 +48466,7 @@
},
"/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",
+ "operationId": "stream_video_api_v1_video_learning_materials__material_id__stream__format_id__head_get",
"parameters": [
{
"in": "path",
@@ -48545,7 +48545,7 @@
]
},
"head": {
- "operationId": "stream_video_api_v1_video_learning_materials__material_id__stream__format_id__get",
+ "operationId": "stream_video_api_v1_video_learning_materials__material_id__stream__format_id__head",
"parameters": [
{
"in": "path",
diff --git a/web/package-lock.json b/web/package-lock.json
index 412c27583..1d8fa6932 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -49,6 +49,8 @@
"eslint": "^9",
"eslint-config-next": "16.2.3",
"jsdom": "^29.1.1",
+ "json-schema-to-typescript": "^16.0.0",
+ "openapi-typescript": "^7.13.0",
"postcss": "^8",
"simple-icons": "^16.27.1",
"tailwindcss": "^3.4.17",
@@ -148,6 +150,24 @@
"url": "https://github.com/sponsors/antfu"
}
},
+ "node_modules/@apidevtools/json-schema-ref-parser": {
+ "version": "11.9.3",
+ "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.9.3.tgz",
+ "integrity": "sha512-60vepv88RwcJtSHrD6MjIL6Ta3SOYbgfnkHb+ppAVK+o9mXprRtulx7VlRl3lN3bbvysAfCS7WMVfhUYemB0IQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jsdevtools/ono": "^7.1.3",
+ "@types/json-schema": "^7.0.15",
+ "js-yaml": "^4.1.0"
+ },
+ "engines": {
+ "node": ">= 16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/philsturgeon"
+ }
+ },
"node_modules/@asamuzakjp/css-color": {
"version": "5.1.11",
"resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.1.11.tgz",
@@ -1465,6 +1485,13 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
+ "node_modules/@jsdevtools/ono": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
+ "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@kurkle/color": {
"version": "0.3.4",
"resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.4.tgz",
@@ -1949,7 +1976,7 @@
"version": "1.57.0",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.57.0.tgz",
"integrity": "sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"dependencies": {
"playwright": "1.57.0"
@@ -1991,6 +2018,82 @@
"uuid": "dist-node/bin/uuid"
}
},
+ "node_modules/@redocly/ajv": {
+ "version": "8.11.2",
+ "resolved": "https://registry.npmjs.org/@redocly/ajv/-/ajv-8.11.2.tgz",
+ "integrity": "sha512-io1JpnwtIcvojV7QKDUSIuMN/ikdOUd1ReEnUnMKGfDVridQZ31J0MmIuqwuRjWDZfmvr+Q0MqCcfHM2gTivOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js-replace": "^1.0.1"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/@redocly/ajv/node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@redocly/config": {
+ "version": "0.22.0",
+ "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.22.0.tgz",
+ "integrity": "sha512-gAy93Ddo01Z3bHuVdPWfCwzgfaYgMdaZPcfL7JZ7hWJoK9V0lXDbigTWkhiPFAaLWzbOJ+kbUQG1+XwIm0KRGQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@redocly/openapi-core": {
+ "version": "1.34.19",
+ "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.19.tgz",
+ "integrity": "sha512-o/0VgsBXgwcY1lyeqcVtSGdTQAPnVggo0fbFVPlxl5XVDKUcVH0OLRqt3CbkwByT5FU305E0iE0O7MzThjDblw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@redocly/ajv": "8.11.2",
+ "@redocly/config": "0.22.0",
+ "colorette": "1.4.0",
+ "https-proxy-agent": "7.0.6",
+ "js-levenshtein": "1.1.6",
+ "js-yaml": "4.3.1",
+ "minimatch": "5.1.9",
+ "pluralize": "8.0.0",
+ "yaml-ast-parser": "0.0.43"
+ },
+ "engines": {
+ "node": ">=18.17.0",
+ "npm": ">=9.5.0"
+ }
+ },
+ "node_modules/@redocly/openapi-core/node_modules/brace-expansion": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.4.tgz",
+ "integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/@redocly/openapi-core/node_modules/minimatch": {
+ "version": "5.1.9",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",
+ "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/@rolldown/binding-android-arm-eabi": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.6.tgz",
@@ -2742,6 +2845,13 @@
"localforage": "*"
}
},
+ "node_modules/@types/lodash": {
+ "version": "4.17.25",
+ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.25.tgz",
+ "integrity": "sha512-+K1NIO8I+F9/wNulfVvu23QYd0Pe9/OCqRrim4NoYIf1VoEDL90Ve4ClzpyqBLc7NpGGWRvYNCKZ1BE/Jpf8dQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/mdast": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
@@ -2790,7 +2900,6 @@
"version": "19.2.7",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.7.tgz",
"integrity": "sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"csstype": "^3.2.2"
@@ -3527,6 +3636,16 @@
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
}
},
+ "node_modules/agent-base": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
"node_modules/ajv": {
"version": "6.14.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",
@@ -3544,6 +3663,16 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
+ "node_modules/ansi-colors": {
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
+ "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
@@ -4341,6 +4470,13 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/change-case": {
+ "version": "5.4.4",
+ "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz",
+ "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/character-entities": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",
@@ -4500,6 +4636,13 @@
"integrity": "sha512-AidJptpBJmjTclAp9BkLwJi0T93fo5epJnbaZslpg6QVzpHjAiveF55mE9AcUJiGMqRHgMDY8soMsQtuNYMHfw==",
"license": "MIT"
},
+ "node_modules/colorette": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz",
+ "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/comma-separated-tokens": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
@@ -4666,7 +4809,6 @@
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
- "dev": true,
"license": "MIT"
},
"node_modules/cytoscape": {
@@ -6579,7 +6721,6 @@
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
@@ -7228,6 +7369,20 @@
"node": ">=8.0.0"
}
},
+ "node_modules/https-proxy-agent": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
"node_modules/i18next": {
"version": "25.8.0",
"resolved": "https://registry.npmmirror.com/i18next/-/i18next-25.8.0.tgz",
@@ -7344,6 +7499,19 @@
"node": ">=8"
}
},
+ "node_modules/index-to-position": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.2.0.tgz",
+ "integrity": "sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
@@ -7930,6 +8098,16 @@
"jiti": "bin/jiti.js"
}
},
+ "node_modules/js-levenshtein": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz",
+ "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@@ -7938,10 +8116,20 @@
"license": "MIT"
},
"node_modules/js-yaml": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
- "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz",
+ "integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==",
"dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
@@ -8060,6 +8248,52 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/json-schema-to-typescript": {
+ "version": "16.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-to-typescript/-/json-schema-to-typescript-16.0.0.tgz",
+ "integrity": "sha512-Ah6kK4q6SjlMzWBH1eNOQkdRh5Qhr5T/RCFwfjQqWZA7UDW+N47A8wfyoiN0L884s4L4bAEI54IjIuN3/u0B/A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@apidevtools/json-schema-ref-parser": "^11.9.3",
+ "@types/json-schema": "^7.0.15",
+ "@types/lodash": "^4.17.25",
+ "js-yaml": "^5.2.3",
+ "lodash": "^4.18.1",
+ "minimist": "^1.2.8",
+ "prettier": "^3.9.6",
+ "tinyglobby": "^0.2.17"
+ },
+ "bin": {
+ "json2ts": "dist/src/cli.js"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/json-schema-to-typescript/node_modules/js-yaml": {
+ "version": "5.4.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.4.1.tgz",
+ "integrity": "sha512-28R/k+NAjeuf7+CKlTxWZVExJGwVVLwY06DgEnOMz2gEpfNkDcD7QvyiVPT0xy0XXhU8vHsd4Ot42OOPdJG7dQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.mjs"
+ }
+ },
"node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
@@ -10217,6 +10451,40 @@
"wrappy": "1"
}
},
+ "node_modules/openapi-typescript": {
+ "version": "7.13.0",
+ "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-7.13.0.tgz",
+ "integrity": "sha512-EFP392gcqXS7ntPvbhBzbF8TyBA+baIYEm791Hy5YkjDYKTnk/Tn5OQeKm5BIZvJihpp8Zzr4hzx0Irde1LNGQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@redocly/openapi-core": "^1.34.6",
+ "ansi-colors": "^4.1.3",
+ "change-case": "^5.4.4",
+ "parse-json": "^8.3.0",
+ "supports-color": "^10.2.2",
+ "yargs-parser": "^21.1.1"
+ },
+ "bin": {
+ "openapi-typescript": "bin/cli.js"
+ },
+ "peerDependencies": {
+ "typescript": "^5.x"
+ }
+ },
+ "node_modules/openapi-typescript/node_modules/supports-color": {
+ "version": "10.2.2",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz",
+ "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/supports-color?sponsor=1"
+ }
+ },
"node_modules/optionator": {
"version": "0.9.4",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
@@ -10335,6 +10603,24 @@
"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
"license": "MIT"
},
+ "node_modules/parse-json": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz",
+ "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.26.2",
+ "index-to-position": "^1.1.0",
+ "type-fest": "^4.39.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/parse5": {
"version": "7.3.0",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
@@ -10474,7 +10760,7 @@
"version": "1.57.0",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.57.0.tgz",
"integrity": "sha512-ilYQj1s8sr2ppEJ2YVadYBN0Mb3mdo9J0wQ+UuDhzYqURwSoW4n1Xs5vs7ORwgDGmyEh33tRMeS8KhdkMoLXQw==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"dependencies": {
"playwright-core": "1.57.0"
@@ -10493,7 +10779,7 @@
"version": "1.57.0",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.57.0.tgz",
"integrity": "sha512-agTcKlMw/mjBWOnD6kFZttAAGHgi/Nw0CZ2o6JqWSbMlI219lAFLZZCyqByTsvVAJq5XA5H8cA6PrvBRpBWEuQ==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"bin": {
"playwright-core": "cli.js"
@@ -10502,6 +10788,16 @@
"node": ">=18"
}
},
+ "node_modules/pluralize": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz",
+ "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/points-on-curve": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz",
@@ -10707,6 +11003,22 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/prettier": {
+ "version": "3.9.6",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz",
+ "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
"node_modules/pretty-format": {
"version": "27.5.1",
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",
@@ -12462,6 +12774,19 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/type-fest": {
+ "version": "4.41.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz",
+ "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/typed-array-buffer": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",
@@ -12544,7 +12869,7 @@
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
@@ -12865,6 +13190,13 @@
"punycode": "^2.1.0"
}
},
+ "node_modules/uri-js-replace": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/uri-js-replace/-/uri-js-replace-1.0.1.tgz",
+ "integrity": "sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/use-sync-external-store": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
@@ -13430,6 +13762,23 @@
"dev": true,
"license": "ISC"
},
+ "node_modules/yaml-ast-parser": {
+ "version": "0.0.43",
+ "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz",
+ "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
diff --git a/web/package.json b/web/package.json
index 2e38b2f1b..41fe58520 100644
--- a/web/package.json
+++ b/web/package.json
@@ -12,7 +12,9 @@
"test:node": "node ./scripts/run-node-tests.mjs",
"test:unit": "vitest run",
"test:unit:watch": "vitest",
- "check:fast": "npm run typecheck && npm run test:node && npm run test:unit && npm run lint && npm run i18n:check",
+ "contracts:generate": "node ./scripts/generate-contracts.mjs",
+ "contracts:check": "node ./scripts/generate-contracts.mjs --check",
+ "check:fast": "npm run contracts:check && npm run typecheck && npm run test:node && npm run test:unit && npm run lint && npm run i18n:check",
"check": "npm run check:fast && npm run build && npm run perf:check",
"perf:check": "node ./scripts/route_budgets.mjs",
"build:perf": "npm run build && npm run perf:check",
@@ -72,6 +74,8 @@
"eslint": "^9",
"eslint-config-next": "16.2.3",
"jsdom": "^29.1.1",
+ "json-schema-to-typescript": "^16.0.0",
+ "openapi-typescript": "^7.13.0",
"postcss": "^8",
"simple-icons": "^16.27.1",
"tailwindcss": "^3.4.17",
diff --git a/web/scripts/generate-contracts.mjs b/web/scripts/generate-contracts.mjs
new file mode 100644
index 000000000..6c999c4ba
--- /dev/null
+++ b/web/scripts/generate-contracts.mjs
@@ -0,0 +1,85 @@
+import { spawnSync } from "node:child_process";
+import { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
+import { tmpdir } from "node:os";
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+
+const scriptDirectory = path.dirname(fileURLToPath(import.meta.url));
+const webRoot = path.resolve(scriptDirectory, "..");
+const schemaRoot = path.join(webRoot, "contracts", "schema");
+const generatedRoot = path.join(webRoot, "contracts", "generated");
+const check = process.argv.includes("--check");
+const temporaryRoot = mkdtempSync(path.join(tmpdir(), "deeptutor-contracts-"));
+
+const outputs = [
+ {
+ name: "api.ts",
+ command: path.join(webRoot, "node_modules", "openapi-typescript", "bin", "cli.js"),
+ args: [
+ path.join(schemaRoot, "openapi.json"),
+ "--output",
+ path.join(temporaryRoot, "api.ts"),
+ "--alphabetize",
+ "--immutable",
+ "--root-types",
+ ],
+ },
+ {
+ name: "turn-protocol.ts",
+ command: path.join(
+ webRoot,
+ "node_modules",
+ "json-schema-to-typescript",
+ "dist",
+ "src",
+ "cli.js",
+ ),
+ args: [
+ "--input",
+ path.join(schemaRoot, "turn-protocol.json"),
+ "--output",
+ path.join(temporaryRoot, "turn-protocol.ts"),
+ "--unknownAny",
+ "--unreachableDefinitions",
+ "--style.printWidth=100",
+ ],
+ },
+];
+
+let hasDrift = false;
+
+try {
+ for (const output of outputs) {
+ const result = spawnSync(process.execPath, [output.command, ...output.args], {
+ cwd: webRoot,
+ encoding: "utf8",
+ });
+ if (result.status !== 0) {
+ process.stderr.write(result.stderr || result.stdout);
+ process.exit(result.status ?? 1);
+ }
+
+ const generated = readFileSync(path.join(temporaryRoot, output.name), "utf8");
+ const target = path.join(generatedRoot, output.name);
+ let current = null;
+ try {
+ current = readFileSync(target, "utf8");
+ } catch (error) {
+ if (error.code !== "ENOENT") throw error;
+ }
+
+ if (current === generated) continue;
+ hasDrift = true;
+ if (check) {
+ console.error(`Generated contract is stale: contracts/generated/${output.name}`);
+ continue;
+ }
+ mkdirSync(generatedRoot, { recursive: true });
+ writeFileSync(target, generated, "utf8");
+ console.log(`Updated contracts/generated/${output.name}`);
+ }
+} finally {
+ rmSync(temporaryRoot, { recursive: true, force: true });
+}
+
+if (check && hasDrift) process.exit(1);
diff --git a/web/tests/generated-contracts.test.ts b/web/tests/generated-contracts.test.ts
new file mode 100644
index 000000000..6668453a2
--- /dev/null
+++ b/web/tests/generated-contracts.test.ts
@@ -0,0 +1,34 @@
+import assert from "node:assert/strict";
+import fs from "node:fs";
+import path from "node:path";
+import test from "node:test";
+
+const generatedRoot = path.resolve(process.cwd(), "contracts", "generated");
+
+test("generated turn protocol covers the complete v2 lifecycle", () => {
+ const source = fs.readFileSync(path.join(generatedRoot, "turn-protocol.ts"), "utf8");
+
+ for (const value of [
+ "queued",
+ "running",
+ "waiting_input",
+ "recovering",
+ "completed",
+ "failed",
+ "cancelled",
+ "wait_for_input",
+ "worker_lost",
+ "protocol_version",
+ "minimum_web_protocol_version",
+ ]) {
+ assert.match(source, new RegExp(value));
+ }
+});
+
+test("generated OpenAPI types expose backend-owned browser models", () => {
+ const source = fs.readFileSync(path.join(generatedRoot, "api.ts"), "utf8");
+
+ for (const value of ["TurnRequest", "RuntimeStatus", "SessionSummary", "ErrorEnvelope"]) {
+ assert.match(source, new RegExp(value));
+ }
+});