Skip to content

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

fix(i18n): refresh German API contracts and format banner

Bingxi Zhao (Frank)4f0ac98860f6
diff --git a/deeptutor/runtime/banner.py b/deeptutor/runtime/banner.py
index fcc23ccb0..d392e4f97 100644
--- a/deeptutor/runtime/banner.py
+++ b/deeptutor/runtime/banner.py
@@ -335,7 +335,7 @@ LABELS: dict[str, dict[str, str]] = {
"start.detached_started": "DeepTutor startet im Hintergrund (Launcher-PID {pid}).",
"start.detached_already_running": "Ein DeepTutor-Launcher läuft bereits im Hintergrund (PID {pid}). Log: {log}",
"start.detached_log": "Log: {path}",
- "start.detached_stop_hint": "Beenden mit `deeptutor stop --home \"{home}\"`.",
+ "start.detached_stop_hint": 'Beenden mit `deeptutor stop --home "{home}"`.',
"start.starting_backend": "Backend wird gestartet ...",
"start.starting_frontend": "Frontend wird gestartet ...",
"start.reusing_frontend": "Vorhandenes Frontend unter {url} wird weiterverwendet (PID {pid}).",
diff --git a/web/contracts/generated/api.ts b/web/contracts/generated/api.ts
index 9562048d5..f3d6a5bec 100644
--- a/web/contracts/generated/api.ts
+++ b/web/contracts/generated/api.ts
@@ -1662,6 +1662,30 @@ export interface paths {
readonly patch?: never;
readonly trace?: never;
};
+ readonly "/api/file-preview/pdf": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Preview Office Source
+ * @description Render a file URL that this same authenticated user could open.
+ */
+ readonly get: operations["preview_office_source_api_file_preview_pdf_get"];
+ readonly put?: never;
+ /**
+ * Preview Office Upload
+ * @description Render a bounded pending Blob/data attachment that has no file URL.
+ */
+ readonly post: operations["preview_office_upload_api_file_preview_pdf_post"];
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
readonly "/api/imports/chat-history": {
readonly parameters: {
readonly query?: never;
@@ -5197,6 +5221,26 @@ export interface paths {
readonly patch?: never;
readonly trace?: never;
};
+ readonly "/api/partners/{partner_id}/history/page": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /**
+ * Get Partner History Page
+ * @description Read older turns of one actor-scoped conversation in bounded pages.
+ */
+ readonly get: operations["get_partner_history_page_api_partners__partner_id__history_page_get"];
+ readonly put?: never;
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
readonly "/api/partners/{partner_id}/links": {
readonly parameters: {
readonly query?: never;
@@ -5406,6 +5450,24 @@ export interface paths {
readonly patch?: never;
readonly trace?: never;
};
+ readonly "/api/partners/{partner_id}/web-continuity": {
+ readonly parameters: {
+ readonly query?: never;
+ readonly header?: never;
+ readonly path?: never;
+ readonly cookie?: never;
+ };
+ /** Get Partner Web Continuity */
+ readonly get: operations["get_partner_web_continuity_api_partners__partner_id__web_continuity_get"];
+ /** Put Partner Web Continuity */
+ readonly put: operations["put_partner_web_continuity_api_partners__partner_id__web_continuity_put"];
+ readonly post?: never;
+ readonly delete?: never;
+ readonly options?: never;
+ readonly head?: never;
+ readonly patch?: never;
+ readonly trace?: never;
+ };
readonly "/api/partners/{partner_id}/workspaces": {
readonly parameters: {
readonly query?: never;
@@ -6744,29 +6806,6 @@ export interface paths {
readonly patch?: never;
readonly trace?: never;
};
- readonly "/api/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_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/reading/workspaces/{workspace_id}/sessions": {
readonly parameters: {
readonly query?: never;
@@ -10632,6 +10671,11 @@ export interface components {
*/
readonly mime_type: string;
};
+ /** Body_preview_office_upload_api_file_preview_pdf_post */
+ readonly Body_preview_office_upload_api_file_preview_pdf_post: {
+ /** File */
+ readonly file: string;
+ };
/** Body_reindex_knowledge_base_api_knowledge_bases__kb_name__reindex_post */
readonly Body_reindex_knowledge_base_api_knowledge_bases__kb_name__reindex_post: {
/**
@@ -12228,7 +12272,7 @@ export interface components {
* Language
* @enum {string}
*/
- readonly language: "en" | "zh" | "fr" | "uk";
+ readonly language: "en" | "zh" | "fr" | "de" | "uk";
};
/** LearnerOverrideRequest */
readonly LearnerOverrideRequest: {
@@ -14938,6 +14982,11 @@ export interface components {
* @default chat
*/
readonly capability: string | null;
+ /**
+ * Capability Once
+ * @default false
+ */
+ readonly capability_once: boolean;
/** Config */
readonly config?: {
readonly [key: string]: unknown;
@@ -15190,7 +15239,7 @@ export interface components {
/** Code Block Wrap Long Lines */
readonly code_block_wrap_long_lines?: boolean | null;
/** Language */
- readonly language?: ("en" | "zh" | "fr" | "uk") | null;
+ readonly language?: ("en" | "zh" | "fr" | "de" | "uk") | null;
/** Response Language */
readonly response_language?:
| (
@@ -15732,6 +15781,13 @@ export interface components {
/** Text */
readonly text: string;
};
+ /** WebContinuityBody */
+ readonly WebContinuityBody: {
+ /** Enabled */
+ readonly enabled: boolean;
+ /** Session Key */
+ readonly session_key?: string | null;
+ };
/** WebSourceInfo */
readonly WebSourceInfo: {
/**
@@ -15834,6 +15890,11 @@ export interface components {
};
/** WorkspaceCreateRequest */
readonly WorkspaceCreateRequest: {
+ /**
+ * Color
+ * @default
+ */
+ readonly color: string;
/**
* Description
* @default
@@ -15883,6 +15944,8 @@ export interface components {
};
/** WorkspaceUpdateRequest */
readonly WorkspaceUpdateRequest: {
+ /** Color */
+ readonly color?: string | null;
/** Description */
readonly description?: string | null;
/** Title */
@@ -15943,6 +16006,8 @@ export type SchemaBodyImportPreviewApiQuestionNotebookPracticeImportPreviewPost
export type SchemaBodyImportVisualizerApiVisualizersImportPost =
components["schemas"]["Body_import_visualizer_api_visualizers_import_post"];
export type SchemaBodyLibraryAdd = components["schemas"]["Body_library_add"];
+export type SchemaBodyPreviewOfficeUploadApiFilePreviewPdfPost =
+ components["schemas"]["Body_preview_office_upload_api_file_preview_pdf_post"];
export type SchemaBodyReindexKnowledgeBaseApiKnowledgeBasesKbNameReindexPost =
components["schemas"]["Body_reindex_knowledge_base_api_knowledge_bases__kb_name__reindex_post"];
export type SchemaBodySpeechToTextApiVoiceSttPost =
@@ -16431,6 +16496,8 @@ export type SchemaVoiceMathSpeakUpdate =
components["schemas"]["VoiceMathSpeakUpdate"];
export type SchemaVoicePreviewPayload =
components["schemas"]["VoicePreviewPayload"];
+export type SchemaWebContinuityBody =
+ components["schemas"]["WebContinuityBody"];
export type SchemaWebSourceInfo = components["schemas"]["WebSourceInfo"];
export type SchemaWebSourceScheduleUpdate =
components["schemas"]["WebSourceScheduleUpdate"];
@@ -20096,6 +20163,78 @@ export interface operations {
};
};
};
+ readonly preview_office_source_api_file_preview_pdf_get: {
+ readonly parameters: {
+ readonly query: {
+ readonly source: 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 preview_office_upload_api_file_preview_pdf_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_preview_office_upload_api_file_preview_pdf_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 list_imported_chat_history_api_imports_chat_history_get: {
readonly parameters: {
readonly query?: {
@@ -27767,6 +27906,45 @@ export interface operations {
};
};
};
+ readonly get_partner_history_page_api_partners__partner_id__history_page_get: {
+ readonly parameters: {
+ readonly query: {
+ readonly before?: number | null;
+ readonly limit?: number;
+ readonly session_key: string;
+ };
+ 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_partners__partner_id__links_get: {
readonly parameters: {
readonly query?: never;
@@ -28208,6 +28386,80 @@ export interface operations {
};
};
};
+ readonly get_partner_web_continuity_api_partners__partner_id__web_continuity_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_web_continuity_api_partners__partner_id__web_continuity_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"]["WebContinuityBody"];
+ };
+ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: 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_workspaces_api_partners__partner_id__workspaces_get: {
readonly parameters: {
readonly query?: never;
@@ -31536,45 +31788,6 @@ export interface operations {
};
};
};
- readonly get_workspace_openers_api_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_reading_workspaces__workspace_id__sessions_get: {
readonly parameters: {
readonly query?: never;
diff --git a/web/contracts/schema/openapi.json b/web/contracts/schema/openapi.json
index 4b7e844a0..33e2c3e55 100644
--- a/web/contracts/schema/openapi.json
+++ b/web/contracts/schema/openapi.json
@@ -855,6 +855,20 @@
"title": "Body_library_add",
"type": "object"
},
+ "Body_preview_office_upload_api_file_preview_pdf_post": {
+ "properties": {
+ "file": {
+ "contentMediaType": "application/octet-stream",
+ "title": "File",
+ "type": "string"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "title": "Body_preview_office_upload_api_file_preview_pdf_post",
+ "type": "object"
+ },
"Body_reindex_knowledge_base_api_knowledge_bases__kb_name__reindex_post": {
"properties": {
"config_fingerprint": {
@@ -4468,6 +4482,7 @@
"en",
"zh",
"fr",
+ "de",
"uk"
],
"title": "Language",
@@ -10031,6 +10046,11 @@
"default": "chat",
"title": "Capability"
},
+ "capability_once": {
+ "default": false,
+ "title": "Capability Once",
+ "type": "boolean"
+ },
"config": {
"additionalProperties": true,
"title": "Config",
@@ -10617,6 +10637,7 @@
"en",
"zh",
"fr",
+ "de",
"uk"
],
"type": "string"
@@ -12035,6 +12056,30 @@
"title": "VoicePreviewPayload",
"type": "object"
},
+ "WebContinuityBody": {
+ "properties": {
+ "enabled": {
+ "title": "Enabled",
+ "type": "boolean"
+ },
+ "session_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Session Key"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "title": "WebContinuityBody",
+ "type": "object"
+ },
"WebSourceInfo": {
"properties": {
"added_at": {
@@ -12225,6 +12270,12 @@
},
"WorkspaceCreateRequest": {
"properties": {
+ "color": {
+ "default": "",
+ "maxLength": 32,
+ "title": "Color",
+ "type": "string"
+ },
"description": {
"default": "",
"maxLength": 2000,
@@ -12370,6 +12421,18 @@
},
"WorkspaceUpdateRequest": {
"properties": {
+ "color": {
+ "anyOf": [
+ {
+ "maxLength": 32,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Color"
+ },
"description": {
"anyOf": [
{
@@ -19709,6 +19772,151 @@
]
}
},
+ "/api/file-preview/pdf": {
+ "get": {
+ "description": "Render a file URL that this same authenticated user could open.",
+ "operationId": "preview_office_source_api_file_preview_pdf_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "source",
+ "required": true,
+ "schema": {
+ "title": "Source",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Preview Office Source",
+ "tags": [
+ "file-preview"
+ ]
+ },
+ "post": {
+ "description": "Render a bounded pending Blob/data attachment that has no file URL.",
+ "operationId": "preview_office_upload_api_file_preview_pdf_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_preview_office_upload_api_file_preview_pdf_post"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Preview Office Upload",
+ "tags": [
+ "file-preview"
+ ]
+ }
+ },
"/api/imports/chat-history": {
"get": {
"operationId": "list_imported_chat_history_api_imports_chat_history_get",
@@ -36749,6 +36957,117 @@
]
}
},
+ "/api/partners/{partner_id}/history/page": {
+ "get": {
+ "description": "Read older turns of one actor-scoped conversation in bounded pages.",
+ "operationId": "get_partner_history_page_api_partners__partner_id__history_page_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "session_key",
+ "required": true,
+ "schema": {
+ "title": "Session Key",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "before",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Before"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 60,
+ "maximum": 200,
+ "minimum": 1,
+ "title": "Limit",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner History Page",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
"/api/partners/{partner_id}/links": {
"get": {
"description": "Your own linked chat accounts for this partner — never anyone else's.",
@@ -37043,16 +37362,99 @@
"description": "Validation Error"
}
},
- "summary": "Get Partner Sessions",
+ "summary": "Get Partner Sessions",
+ "tags": [
+ "partners"
+ ]
+ }
+ },
+ "/api/partners/{partner_id}/sessions/archive": {
+ "post": {
+ "description": "Soft-archive a session (web /new) — it stays resumable, file untouched.",
+ "operationId": "archive_partner_session_api_partners__partner_id__sessions_archive_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SessionKeyBody"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Archive Partner Session",
"tags": [
"partners"
]
}
},
- "/api/partners/{partner_id}/sessions/archive": {
+ "/api/partners/{partner_id}/sessions/branch": {
"post": {
- "description": "Soft-archive a session (web /new) — it stays resumable, file untouched.",
- "operationId": "archive_partner_session_api_partners__partner_id__sessions_archive_post",
+ "description": "Copy a session's full history into a new key and archive the source.",
+ "operationId": "branch_partner_session_api_partners__partner_id__sessions_branch_post",
"parameters": [
{
"in": "path",
@@ -37100,7 +37502,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SessionKeyBody"
+ "$ref": "#/components/schemas/SessionBranchBody"
}
}
},
@@ -37126,16 +37528,15 @@
"description": "Validation Error"
}
},
- "summary": "Archive Partner Session",
+ "summary": "Branch Partner Session",
"tags": [
"partners"
]
}
},
- "/api/partners/{partner_id}/sessions/branch": {
+ "/api/partners/{partner_id}/sessions/delete": {
"post": {
- "description": "Copy a session's full history into a new key and archive the source.",
- "operationId": "branch_partner_session_api_partners__partner_id__sessions_branch_post",
+ "operationId": "delete_partner_session_api_partners__partner_id__sessions_delete_post",
"parameters": [
{
"in": "path",
@@ -37183,7 +37584,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SessionBranchBody"
+ "$ref": "#/components/schemas/SessionKeyBody"
}
}
},
@@ -37209,15 +37610,16 @@
"description": "Validation Error"
}
},
- "summary": "Branch Partner Session",
+ "summary": "Delete Partner Session",
"tags": [
"partners"
]
}
},
- "/api/partners/{partner_id}/sessions/delete": {
+ "/api/partners/{partner_id}/sessions/resume": {
"post": {
- "operationId": "delete_partner_session_api_partners__partner_id__sessions_delete_post",
+ "description": "Clear a session's archived flag so the web app can continue it.",
+ "operationId": "resume_partner_session_api_partners__partner_id__sessions_resume_post",
"parameters": [
{
"in": "path",
@@ -37291,16 +37693,85 @@
"description": "Validation Error"
}
},
- "summary": "Delete Partner Session",
+ "summary": "Resume Partner Session",
"tags": [
"partners"
]
}
},
- "/api/partners/{partner_id}/sessions/resume": {
- "post": {
- "description": "Clear a session's archived flag so the web app can continue it.",
- "operationId": "resume_partner_session_api_partners__partner_id__sessions_resume_post",
+ "/api/partners/{partner_id}/soul": {
+ "get": {
+ "operationId": "get_partner_soul_api_partners__partner_id__soul_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "partner_id",
+ "required": true,
+ "schema": {
+ "title": "Partner Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Partner Soul",
+ "tags": [
+ "partners"
+ ]
+ },
+ "put": {
+ "operationId": "put_partner_soul_api_partners__partner_id__soul_put",
"parameters": [
{
"in": "path",
@@ -37348,7 +37819,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/SessionKeyBody"
+ "$ref": "#/components/schemas/SoulUpdateBody"
}
}
},
@@ -37374,15 +37845,15 @@
"description": "Validation Error"
}
},
- "summary": "Resume Partner Session",
+ "summary": "Put Partner Soul",
"tags": [
"partners"
]
}
},
- "/api/partners/{partner_id}/soul": {
- "get": {
- "operationId": "get_partner_soul_api_partners__partner_id__soul_get",
+ "/api/partners/{partner_id}/start": {
+ "post": {
+ "operationId": "start_partner_api_partners__partner_id__start_post",
"parameters": [
{
"in": "path",
@@ -37446,13 +37917,15 @@
"description": "Validation Error"
}
},
- "summary": "Get Partner Soul",
+ "summary": "Start Partner",
"tags": [
"partners"
]
- },
- "put": {
- "operationId": "put_partner_soul_api_partners__partner_id__soul_put",
+ }
+ },
+ "/api/partners/{partner_id}/stop": {
+ "post": {
+ "operationId": "stop_partner_api_partners__partner_id__stop_post",
"parameters": [
{
"in": "path",
@@ -37496,16 +37969,6 @@
}
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/SoulUpdateBody"
- }
- }
- },
- "required": true
- },
"responses": {
"200": {
"content": {
@@ -37526,15 +37989,15 @@
"description": "Validation Error"
}
},
- "summary": "Put Partner Soul",
+ "summary": "Stop Partner",
"tags": [
"partners"
]
}
},
- "/api/partners/{partner_id}/start": {
- "post": {
- "operationId": "start_partner_api_partners__partner_id__start_post",
+ "/api/partners/{partner_id}/web-continuity": {
+ "get": {
+ "operationId": "get_partner_web_continuity_api_partners__partner_id__web_continuity_get",
"parameters": [
{
"in": "path",
@@ -37598,15 +38061,13 @@
"description": "Validation Error"
}
},
- "summary": "Start Partner",
+ "summary": "Get Partner Web Continuity",
"tags": [
"partners"
]
- }
- },
- "/api/partners/{partner_id}/stop": {
- "post": {
- "operationId": "stop_partner_api_partners__partner_id__stop_post",
+ },
+ "put": {
+ "operationId": "put_partner_web_continuity_api_partners__partner_id__web_continuity_put",
"parameters": [
{
"in": "path",
@@ -37650,6 +38111,16 @@
}
}
],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WebContinuityBody"
+ }
+ }
+ },
+ "required": true
+ },
"responses": {
"200": {
"content": {
@@ -37670,7 +38141,7 @@
"description": "Validation Error"
}
},
- "summary": "Stop Partner",
+ "summary": "Put Partner Web Continuity",
"tags": [
"partners"
]
@@ -44177,99 +44648,6 @@
]
}
},
- "/api/reading/workspaces/{workspace_id}/openers": {
- "get": {
- "description": "Three things a learner could open this material with.\n\nAn empty list means the panel keeps its own generic suggestions — this is\na nicety, never a dependency.",
- "operationId": "get_workspace_openers_api_reading_workspaces__workspace_id__openers_get",
- "parameters": [
- {
- "in": "path",
- "name": "workspace_id",
- "required": true,
- "schema": {
- "title": "Workspace Id",
- "type": "string"
- }
- },
- {
- "in": "query",
- "name": "locator",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "title": "Locator"
- }
- },
- {
- "in": "header",
- "name": "Authorization",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Authorization"
- }
- },
- {
- "in": "cookie",
- "name": "dt_token",
- "required": false,
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Dt Token"
- }
- }
- ],
- "responses": {
- "200": {
- "content": {
- "application/json": {
- "schema": {
- "additionalProperties": true,
- "title": "Response Get Workspace Openers Api Reading Workspaces Workspace Id Openers Get",
- "type": "object"
- }
- }
- },
- "description": "Successful Response"
- },
- "422": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/HTTPValidationError"
- }
- }
- },
- "description": "Validation Error"
- }
- },
- "summary": "Get Workspace Openers",
- "tags": [
- "reading"
- ]
- }
- },
"/api/reading/workspaces/{workspace_id}/sessions": {
"get": {
"operationId": "list_reading_sessions_api_reading_workspaces__workspace_id__sessions_get",