Skip to content

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

Merge commit 'refs/pr/1381' into codex/evan-backend-prs-20260923

Bingxi Zhao (Frank)9e254589c9fb
diff --cc web/contracts/generated/api.ts
index 80fc9bcbc,fa8b5cc7c..5234daf23
--- a/web/contracts/generated/api.ts
+++ b/web/contracts/generated/api.ts
@@@ -32593,7 -29452,77 +32647,77 @@@ export interface operations
};
};
};
- readonly update_language_api_settings_language_put: {
++ readonly get_settings_profile_api_settings_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: {
- readonly content: {
- readonly "application/json": components["schemas"]["LanguageUpdate"];
- };
- };
++ 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_llm_options_api_settings_llm_options_get: {
++ readonly diff_settings_profile_api_settings_profile_diff_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 requestBody: {
++ readonly content: {
++ readonly "application/json": components["schemas"]["SettingsProfileImportPayload"];
++ };
++ };
+ readonly responses: {
+ /** @description Successful Response */
+ readonly 200: {
+ headers: {
+ readonly [name: string]: 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_settings_mcp_get: {
+ readonly cancel_codebuddy_auth_api_settings_providers_codebuddy_auth_cancel_post: {
readonly parameters: {
readonly query?: never;
readonly header?: {
diff --cc web/contracts/schema/openapi.json
index 2685ee450,6ebf01a7f..86750f320
--- a/web/contracts/schema/openapi.json
+++ b/web/contracts/schema/openapi.json
@@@ -47127,11 -41957,144 +47147,149 @@@
"tags": [
"settings"
]
- },
+ }
+ },
++ "/api/settings/profile": {
+ "get": {
- "description": "Return the unapplied draft, or nothing when there is none.\n\nThe draft is deliberately invisible to every other read path: nothing that\nresolves runtime configuration looks here, which is the whole difference\nbetween saving a draft and applying it.",
- "operationId": "get_settings_draft_api_settings_draft_get",
++ "description": "Export effective settings with credentials and deployment values removed.",
++ "operationId": "get_settings_profile_api_settings_profile_get",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
- "summary": "Get Settings Draft",
++ "summary": "Get Settings Profile",
+ "tags": [
+ "settings"
+ ]
- },
- "put": {
- "operationId": "update_settings_draft_api_settings_draft_put",
++ }
++ },
++ "/api/settings/profile/diff": {
++ "post": {
++ "description": "Review an imported profile without changing effective settings.",
++ "operationId": "diff_settings_profile_api_settings_profile_diff_post",
+ "parameters": [
+ {
+ "in": "header",
+ "name": "Authorization",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Authorization"
+ }
+ },
+ {
+ "in": "cookie",
+ "name": "dt_token",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Dt Token"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
- "$ref": "#/components/schemas/SettingsDraftPayload"
++ "$ref": "#/components/schemas/SettingsProfileImportPayload"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
- "summary": "Update Settings Draft",
++ "summary": "Diff Settings Profile",
+ "tags": [
+ "settings"
+ ]
+ }
+ },
- "/api/settings/enabled-tools": {
- "put": {
- "operationId": "update_enabled_tools_api_settings_enabled_tools_put",
+ "/api/settings/providers/codebuddy/auth/cancel": {
+ "post": {
+ "operationId": "cancel_codebuddy_auth_api_settings_providers_codebuddy_auth_cancel_post",
"parameters": [
{
"in": "header",