DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
Regenerate frontend contracts for reading and objective relations
Bingxi Zhao (Frank)cd3a2de7c411
diff --git a/web/contracts/generated/api.ts b/web/contracts/generated/api.tsindex 6dc2c2490..ec88d9a8b 100644--- a/web/contracts/generated/api.ts+++ b/web/contracts/generated/api.ts@@ -3285,6 +3285,26 @@ export interface paths {readonly patch?: never;readonly trace?: never;};+ readonly "/api/mastery-paths/reading/records": {+ readonly parameters: {+ readonly query?: never;+ readonly header?: never;+ readonly path?: never;+ readonly cookie?: never;+ };+ /**+ * List Reading Learning Records+ * @description Reading progress and extension activity for the current account.+ */+ readonly get: operations["list_reading_learning_records_api_mastery_paths_reading_records_get"];+ readonly put?: never;+ readonly post?: never;+ readonly delete?: never;+ readonly options?: never;+ readonly head?: never;+ readonly patch?: never;+ readonly trace?: never;+ };readonly "/api/mastery-paths/topics": {readonly parameters: {readonly query?: never;@@ -6202,6 +6222,26 @@ export interface paths {readonly patch?: never;readonly trace?: never;};+ readonly "/api/reading/materials/{material_id}/render": {+ readonly parameters: {+ readonly query?: never;+ readonly header?: never;+ readonly path?: never;+ readonly cookie?: never;+ };+ /**+ * Get Render+ * @description Serve a browser-ready EPUB archive, or the original for other formats.+ */+ readonly get: operations["get_render_api_reading_materials__material_id__render_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/materials/{material_id}/retry": {readonly parameters: {readonly query?: never;@@ -10722,9 +10762,7 @@ export interface components {/** Goal */readonly goal: string;/** Modules */- readonly modules?: readonly {- readonly [key: string]: unknown;- }[];+ readonly modules?: readonly components["schemas"]["ModuleInput"][];/** Must Cover */readonly must_cover?: readonly string[];/**@@ -11375,9 +11413,7 @@ export interface components {/** EditTopicMapRequest */readonly EditTopicMapRequest: {/** Modules */- readonly modules: readonly {- readonly [key: string]: unknown;- }[];+ readonly modules: readonly components["schemas"]["ModuleInput"][];};/** EnabledPayload */readonly EnabledPayload: {@@ -11669,9 +11705,7 @@ export interface components {/** InitModulesRequest */readonly InitModulesRequest: {/** Modules */- readonly modules: readonly {- readonly [key: string]: unknown;- }[];+ readonly modules: readonly components["schemas"]["ModuleInput"][];};/** InsertBlockRequest */readonly InsertBlockRequest: {@@ -11792,6 +11826,38 @@ export interface components {/** Status */readonly status?: string | null;};+ /** KnowledgePointInput */+ readonly KnowledgePointInput: {+ /**+ * Client Ref+ * @default+ */+ readonly client_ref: string;+ /** Id */+ readonly id?: string | null;+ /**+ * Module Id+ * @default+ */+ readonly module_id: string;+ /** Name */+ readonly name: string;+ /** Prerequisite Ids */+ readonly prerequisite_ids?: readonly string[];+ /** Prerequisite Refs */+ readonly prerequisite_refs?: readonly string[];+ /** Topic Source Ids */+ readonly topic_source_ids?: readonly string[];+ /** Topic Source Refs */+ readonly topic_source_refs?: readonly string[];+ /** @default concept */+ readonly type: components["schemas"]["KnowledgeType"];+ };+ /**+ * KnowledgeType+ * @enum {string}+ */+ readonly KnowledgeType: "memory" | "concept" | "procedure" | "design";/** LanguageUpdate */readonly LanguageUpdate: {/**@@ -12606,6 +12672,27 @@ export interface components {/** Ttft Seconds */readonly ttft_seconds?: number | null;};+ /** ModuleInput */+ readonly ModuleInput: {+ /** Id */+ readonly id?: string | null;+ /** Knowledge Points */+ readonly knowledge_points?: readonly components["schemas"]["KnowledgePointInput"][];+ /** Name */+ readonly name: string;+ /**+ * Objective+ * @default+ */+ readonly objective: string;+ /** Order */+ readonly order?: number | null;+ /**+ * Pass Threshold+ * @default 0.7+ */+ readonly pass_threshold: number;+ };/** MoveBlockRequest */readonly MoveBlockRequest: {/** Block Id */@@ -12756,6 +12843,18 @@ export interface components {readonly options: {readonly [key: string]: string;};+ /**+ * Origin Ref+ * @default+ */+ readonly origin_ref: string;+ /**+ * Origin Type+ * @default conversation+ * @enum {string}+ */+ readonly origin_type:+ "conversation" | "external_import" | "document_analysis";/** Practice */readonly practice?: {readonly [key: string]: unknown;@@ -12803,7 +12902,10 @@ export interface components {* @default*/readonly section_title: string;- /** Session Id */+ /**+ * Session Id+ * @default+ */readonly session_id: string;/*** Session Title@@ -13422,6 +13524,57 @@ export interface components {*/readonly tools_used: readonly string[];};+ /**+ * ReadingActivityRecord+ * @description One successful Reading-extension action, without source content.+ */+ readonly ReadingActivityRecord: {+ /** Action */+ readonly action: string;+ /** Activity Id */+ readonly activity_id: string;+ /** Created At */+ readonly created_at?: number;+ /** Extension Id */+ readonly extension_id: string;+ /** Locator */+ readonly locator: number;+ /** Material Id */+ readonly material_id: string;+ /**+ * Result Type+ * @enum {string}+ */+ readonly result_type: "card" | "quiz" | "feedback" | "browser_speech";+ };+ /**+ * ReadingLearningRecords+ * @description Account-scoped Reading summary for reporting surfaces.+ */+ readonly ReadingLearningRecords: {+ /** Activities */+ readonly activities?: readonly components["schemas"]["ReadingActivityRecord"][];+ /** Progress */+ readonly progress?: readonly components["schemas"]["ReadingProgressRecord"][];+ };+ /**+ * ReadingProgressRecord+ * @description One material's Reading progress in an account's learning records.+ */+ readonly ReadingProgressRecord: {+ /** Furthest Locator */+ readonly furthest_locator: number;+ /** Furthest Percentage */+ readonly furthest_percentage: number;+ /** Latest Locator */+ readonly latest_locator: number;+ /** Latest Percentage */+ readonly latest_percentage: number;+ /** Material Id */+ readonly material_id: string;+ /** Updated At */+ readonly updated_at?: number;+ };/** ReadingReference */readonly ReadingReference: {/** Locators */@@ -14225,6 +14378,11 @@ export interface components {* @default true*/readonly available: boolean;+ /**+ * Client Ref+ * @default+ */+ readonly client_ref: string;/*** Excerpt* @default@@ -14835,6 +14993,18 @@ export interface components {readonly options?: {readonly [key: string]: string;} | null;+ /**+ * Origin Ref+ * @default+ */+ readonly origin_ref: string;+ /**+ * Origin Type+ * @default conversation+ * @enum {string}+ */+ readonly origin_type:+ "conversation" | "external_import" | "document_analysis";/** Quality */readonly quality?: number | null;/** Question */@@ -14863,7 +15033,10 @@ export interface components {* @default*/readonly section_title: string;- /** Session Id */+ /**+ * Session Id+ * @default+ */readonly session_id: string;/*** Source@@ -15421,6 +15594,9 @@ export type SchemaInvidiousSettings =components["schemas"]["InvidiousSettings"];export type SchemaKnowledgeBaseInfo =components["schemas"]["KnowledgeBaseInfo"];+export type SchemaKnowledgePointInput =+ components["schemas"]["KnowledgePointInput"];+export type SchemaKnowledgeType = components["schemas"]["KnowledgeType"];export type SchemaLanguageUpdate = components["schemas"]["LanguageUpdate"];export type SchemaLearnerOverrideRequest =components["schemas"]["LearnerOverrideRequest"];@@ -15474,6 +15650,7 @@ export type SchemaMinerUSettingsUpdate =export type SchemaModelCapabilitiesQuery =components["schemas"]["ModelCapabilitiesQuery"];export type SchemaModelUsage = components["schemas"]["ModelUsage"];+export type SchemaModuleInput = components["schemas"]["ModuleInput"];export type SchemaMoveBlockRequest = components["schemas"]["MoveBlockRequest"];export type SchemaMoveFilePayload = components["schemas"]["MoveFilePayload"];export type SchemaMoveRecordRequest =@@ -15546,6 +15723,12 @@ export type SchemaQuizResultsRequest =export type SchemaReactEditRequest = components["schemas"]["ReactEditRequest"];export type SchemaReactEditResponse =components["schemas"]["ReactEditResponse"];+export type SchemaReadingActivityRecord =+ components["schemas"]["ReadingActivityRecord"];+export type SchemaReadingLearningRecords =+ components["schemas"]["ReadingLearningRecords"];+export type SchemaReadingProgressRecord =+ components["schemas"]["ReadingProgressRecord"];export type SchemaReadingReference = components["schemas"]["ReadingReference"];export type SchemaReadingSessionCreateRequest =components["schemas"]["ReadingSessionCreateRequest"];@@ -22516,6 +22699,39 @@ export interface operations {};};};+ readonly list_reading_learning_records_api_mastery_paths_reading_records_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"]["ReadingLearningRecords"];+ };+ };+ /** @description Validation Error */+ readonly 422: {+ headers: {+ readonly [name: string]: unknown;+ };+ content: {+ readonly "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };readonly list_topics_api_mastery_paths_topics_get: {readonly parameters: {readonly query?: never;@@ -28135,8 +28351,11 @@ export interface operations {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 origin_ref?: string;+ readonly origin_type?:+ "conversation" | "external_import" | "document_analysis";readonly question_id: string;- readonly session_id: string;+ readonly session_id?: string;readonly turn_id?: string | null;};readonly header?: {@@ -29546,6 +29765,41 @@ export interface operations {};};};+ readonly get_render_api_reading_materials__material_id__render_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_reading_materials__material_id__retry_post: {readonly parameters: {readonly query?: never;diff --git a/web/contracts/schema/openapi.json b/web/contracts/schema/openapi.jsonindex a5a6f9942..7537af447 100644--- a/web/contracts/schema/openapi.json+++ b/web/contracts/schema/openapi.json@@ -1903,8 +1903,7 @@},"modules": {"items": {- "additionalProperties": true,- "type": "object"+ "$ref": "#/components/schemas/ModuleInput"},"maxItems": 20,"title": "Modules",@@ -3294,8 +3293,7 @@"properties": {"modules": {"items": {- "additionalProperties": true,- "type": "object"+ "$ref": "#/components/schemas/ModuleInput"},"maxItems": 20,"minItems": 1,@@ -4037,8 +4035,7 @@"properties": {"modules": {"items": {- "additionalProperties": true,- "type": "object"+ "$ref": "#/components/schemas/ModuleInput"},"title": "Modules","type": "array"@@ -4305,6 +4302,84 @@"title": "KnowledgeBaseInfo","type": "object"},+ "KnowledgePointInput": {+ "properties": {+ "client_ref": {+ "default": "",+ "title": "Client Ref",+ "type": "string"+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Id"+ },+ "module_id": {+ "default": "",+ "title": "Module Id",+ "type": "string"+ },+ "name": {+ "maxLength": 200,+ "minLength": 1,+ "title": "Name",+ "type": "string"+ },+ "prerequisite_ids": {+ "items": {+ "type": "string"+ },+ "title": "Prerequisite Ids",+ "type": "array"+ },+ "prerequisite_refs": {+ "items": {+ "type": "string"+ },+ "title": "Prerequisite Refs",+ "type": "array"+ },+ "topic_source_ids": {+ "items": {+ "type": "string"+ },+ "title": "Topic Source Ids",+ "type": "array"+ },+ "topic_source_refs": {+ "items": {+ "type": "string"+ },+ "title": "Topic Source Refs",+ "type": "array"+ },+ "type": {+ "$ref": "#/components/schemas/KnowledgeType",+ "default": "concept"+ }+ },+ "required": [+ "name"+ ],+ "title": "KnowledgePointInput",+ "type": "object"+ },+ "KnowledgeType": {+ "enum": [+ "memory",+ "concept",+ "procedure",+ "design"+ ],+ "title": "KnowledgeType",+ "type": "string"+ },"LLMSelection": {"additionalProperties": false,"properties": {@@ -5835,6 +5910,61 @@"title": "ModelUsage","type": "object"},+ "ModuleInput": {+ "properties": {+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Id"+ },+ "knowledge_points": {+ "items": {+ "$ref": "#/components/schemas/KnowledgePointInput"+ },+ "title": "Knowledge Points",+ "type": "array"+ },+ "name": {+ "maxLength": 200,+ "minLength": 1,+ "title": "Name",+ "type": "string"+ },+ "objective": {+ "default": "",+ "maxLength": 300,+ "title": "Objective",+ "type": "string"+ },+ "order": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ],+ "title": "Order"+ },+ "pass_threshold": {+ "default": 0.7,+ "title": "Pass Threshold",+ "type": "number"+ }+ },+ "required": [+ "name"+ ],+ "title": "ModuleInput",+ "type": "object"+ },"MoveBlockRequest": {"properties": {"block_id": {@@ -6092,6 +6222,21 @@"title": "Options","type": "object"},+ "origin_ref": {+ "default": "",+ "title": "Origin Ref",+ "type": "string"+ },+ "origin_type": {+ "default": "conversation",+ "enum": [+ "conversation",+ "external_import",+ "document_analysis"+ ],+ "title": "Origin Type",+ "type": "string"+ },"practice": {"anyOf": [{@@ -6186,6 +6331,7 @@"type": "string"},"session_id": {+ "default": "","title": "Session Id","type": "string"},@@ -6232,7 +6378,6 @@},"required": ["id",- "session_id","question","created_at","updated_at"@@ -7456,6 +7601,121 @@"title": "ReactEditResponse","type": "object"},+ "ReadingActivityRecord": {+ "description": "One successful Reading-extension action, without source content.",+ "properties": {+ "action": {+ "title": "Action",+ "type": "string"+ },+ "activity_id": {+ "title": "Activity Id",+ "type": "string"+ },+ "created_at": {+ "title": "Created At",+ "type": "number"+ },+ "extension_id": {+ "title": "Extension Id",+ "type": "string"+ },+ "locator": {+ "minimum": 1.0,+ "title": "Locator",+ "type": "integer"+ },+ "material_id": {+ "title": "Material Id",+ "type": "string"+ },+ "result_type": {+ "enum": [+ "card",+ "quiz",+ "feedback",+ "browser_speech"+ ],+ "title": "Result Type",+ "type": "string"+ }+ },+ "required": [+ "activity_id",+ "material_id",+ "extension_id",+ "action",+ "locator",+ "result_type"+ ],+ "title": "ReadingActivityRecord",+ "type": "object"+ },+ "ReadingLearningRecords": {+ "description": "Account-scoped Reading summary for reporting surfaces.",+ "properties": {+ "activities": {+ "items": {+ "$ref": "#/components/schemas/ReadingActivityRecord"+ },+ "title": "Activities",+ "type": "array"+ },+ "progress": {+ "items": {+ "$ref": "#/components/schemas/ReadingProgressRecord"+ },+ "title": "Progress",+ "type": "array"+ }+ },+ "title": "ReadingLearningRecords",+ "type": "object"+ },+ "ReadingProgressRecord": {+ "description": "One material's Reading progress in an account's learning records.",+ "properties": {+ "furthest_locator": {+ "minimum": 1.0,+ "title": "Furthest Locator",+ "type": "integer"+ },+ "furthest_percentage": {+ "maximum": 1.0,+ "minimum": 0.0,+ "title": "Furthest Percentage",+ "type": "number"+ },+ "latest_locator": {+ "minimum": 1.0,+ "title": "Latest Locator",+ "type": "integer"+ },+ "latest_percentage": {+ "maximum": 1.0,+ "minimum": 0.0,+ "title": "Latest Percentage",+ "type": "number"+ },+ "material_id": {+ "title": "Material Id",+ "type": "string"+ },+ "updated_at": {+ "title": "Updated At",+ "type": "number"+ }+ },+ "required": [+ "material_id",+ "latest_locator",+ "latest_percentage",+ "furthest_locator",+ "furthest_percentage"+ ],+ "title": "ReadingProgressRecord",+ "type": "object"+ },"ReadingReference": {"additionalProperties": false,"properties": {@@ -9359,6 +9619,11 @@"title": "Available","type": "boolean"},+ "client_ref": {+ "default": "",+ "title": "Client Ref",+ "type": "string"+ },"excerpt": {"default": "","maxLength": 8000,@@ -11004,6 +11269,21 @@],"title": "Options"},+ "origin_ref": {+ "default": "",+ "title": "Origin Ref",+ "type": "string"+ },+ "origin_type": {+ "default": "conversation",+ "enum": [+ "conversation",+ "external_import",+ "document_analysis"+ ],+ "title": "Origin Type",+ "type": "string"+ },"quality": {"anyOf": [{@@ -11055,6 +11335,7 @@"type": "string"},"session_id": {+ "default": "","title": "Session Id","type": "string"},@@ -11097,7 +11378,6 @@}},"required": [- "session_id","question_id","question"],@@ -25610,6 +25890,72 @@]}},+ "/api/mastery-paths/reading/records": {+ "get": {+ "description": "Reading progress and extension activity for the current account.",+ "operationId": "list_reading_learning_records_api_mastery_paths_reading_records_get",+ "parameters": [+ {+ "in": "header",+ "name": "Authorization",+ "required": false,+ "schema": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Authorization"+ }+ },+ {+ "in": "cookie",+ "name": "dt_token",+ "required": false,+ "schema": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Dt Token"+ }+ }+ ],+ "responses": {+ "200": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ReadingLearningRecords"+ }+ }+ },+ "description": "Successful Response"+ },+ "422": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/HTTPValidationError"+ }+ }+ },+ "description": "Validation Error"+ }+ },+ "summary": "List Reading Learning Records",+ "tags": [+ "mastery-path"+ ]+ }+ },"/api/mastery-paths/topics": {"get": {"operationId": "list_topics_api_mastery_paths_topics_get",@@ -37260,12 +37606,38 @@{"in": "query","name": "session_id",- "required": true,+ "required": false,"schema": {+ "default": "","title": "Session Id","type": "string"}},+ {+ "in": "query",+ "name": "origin_type",+ "required": false,+ "schema": {+ "default": "conversation",+ "enum": [+ "conversation",+ "external_import",+ "document_analysis"+ ],+ "title": "Origin Type",+ "type": "string"+ }+ },+ {+ "in": "query",+ "name": "origin_ref",+ "required": false,+ "schema": {+ "default": "",+ "title": "Origin Ref",+ "type": "string"+ }+ },{"in": "query","name": "question_id",@@ -40792,6 +41164,79 @@]}},+ "/api/reading/materials/{material_id}/render": {+ "get": {+ "description": "Serve a browser-ready EPUB archive, or the original for other formats.",+ "operationId": "get_render_api_reading_materials__material_id__render_get",+ "parameters": [+ {+ "in": "path",+ "name": "material_id",+ "required": true,+ "schema": {+ "title": "Material Id",+ "type": "string"+ }+ },+ {+ "in": "header",+ "name": "Authorization",+ "required": false,+ "schema": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Authorization"+ }+ },+ {+ "in": "cookie",+ "name": "dt_token",+ "required": false,+ "schema": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Dt Token"+ }+ }+ ],+ "responses": {+ "200": {+ "content": {+ "application/json": {+ "schema": {}+ }+ },+ "description": "Successful Response"+ },+ "422": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/HTTPValidationError"+ }+ }+ },+ "description": "Validation Error"+ }+ },+ "summary": "Get Render",+ "tags": [+ "reading"+ ]+ }+ },"/api/reading/materials/{material_id}/retry": {"post": {"operationId": "retry_import_api_reading_materials__material_id__retry_post",