{"openapi":"3.0.2","info":{"title":"Ainee APIs","version":"0.1.0"},"servers":[{"url":"http://10.255.10.182:8000"}],"paths":{"/api/user/login":{"post":{"tags":["User"],"summary":"User login","description":"[SUCCESS], [FAILED]","operationId":"login_api_user_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_LoginResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/logout":{"post":{"tags":["User"],"summary":"User logout","description":"Logout the current user and optionally clear FCM registration token","operationId":"logout_api_user_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_bool_"}}}}}}},"/api/user/get":{"get":{"tags":["User"],"summary":"User info","description":"[SUCCESS], [FAILED]","operationId":"get_user_api_user_get_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_UserInfoResponse_"}}}}}}},"/api/user/get_xxx":{"get":{"tags":["User"],"summary":"Just for test","description":"[SUCCESS], [FAILED]","operationId":"get_xxx_api_user_get_xxx_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_str_"}}}}}}},"/api/user/update":{"post":{"tags":["User"],"summary":"Update user profile","description":"Update username and/or avatar (at least one field required)","operationId":"update_user_profile_api_user_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_UserInfoResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/upload_avatar":{"post":{"tags":["User"],"summary":"Upload user avatar","description":"Upload a new avatar image for the user","operationId":"upload_avatar_api_user_upload_avatar_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_avatar_api_user_upload_avatar_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_str_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/update_fcm_token":{"post":{"tags":["User"],"summary":"Update FCM registration token","description":"Update the user's FCM registration token for push notifications","operationId":"update_fcm_token_api_user_update_fcm_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFCMTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/create":{"post":{"tags":["Content"],"summary":"Create Content","description":"Create new content from a given URL.","operationId":"create_content_api_content_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_ContentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/can_create_audio_task":{"get":{"tags":["Content"],"summary":"Check if user can create audio task","description":"Check if the current user can create new audio tasks based on their limit","operationId":"can_create_audio_task_api_content_can_create_audio_task_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_bool_"}}}}}}},"/api/content/batch_create":{"post":{"tags":["Content"],"summary":"Batch Create Content","description":"Create new content from a list of URLs or files.","operationId":"batch_create_api_content_batch_create_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MediaItem"},"type":"array","title":"Items","description":"The list of media items to be created."}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_List_BatchCreatedItemReponse___NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/create_upload_and_pend":{"post":{"tags":["Content"],"summary":"Create, upload and make content pending","description":"Create, upload and make content pending","operationId":"create_upload_and_pends_api_content_create_upload_and_pend_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_upload_and_pends_api_content_create_upload_and_pend_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_ContentResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/upload_and_pend":{"post":{"tags":["Content"],"summary":"Upload and make content pending","description":"Upload a file","operationId":"upload_and_pends_api_content_upload_and_pend_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_and_pends_api_content_upload_and_pend_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_ContentResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/create_by_url":{"post":{"tags":["Content"],"summary":"Create Content By URL","description":"Create new content from a given URL or file.","operationId":"create_by_url_api_content_create_by_url_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_by_url_api_content_create_by_url_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_ContentResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/uids":{"post":{"tags":["Content"],"summary":"Get Contents by UIDs","description":"Retrieve multiple contents by their unique identifiers (UIDs).","operationId":"get_contents_by_uids_api_content_uids_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Uids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_List_ContentResponse___NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/uid/{uid}":{"get":{"tags":["Content"],"summary":"Get Content by UID","description":"Retrieve content by its unique identifier (UID).","operationId":"get_content_by_uid_api_content_uid__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_ContentResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/user/contents":{"get":{"tags":["Content"],"summary":"Get Current User's Contents","description":"Retrieve all contents of the current user using cursor-based pagination.","operationId":"get_user_contents_api_content_user_contents_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_UserContentsData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/create/retry":{"post":{"tags":["Content"],"summary":"Retry Content Processing","description":"Retry processing of a content that belongs to the current user.","operationId":"retry_content_api_content_create_retry_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryContentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_ContentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/share/{uid}":{"post":{"tags":["Content"],"summary":"Share Content","description":"Increment share count for a content","operationId":"share_content_api_content_share__uid__post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_str_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/delete/{uid}":{"post":{"tags":["Content"],"summary":"Soft Delete Content","description":"Mark content as deleted by its UID (soft delete)","operationId":"delete_content_api_content_delete__uid__post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_ContentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/view/{uid}":{"post":{"tags":["Content"],"summary":"Increment View Count","description":"Increment view count for a content by its UID","operationId":"increment_view_count_api_content_view__uid__post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_str__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/copy":{"post":{"tags":["Content"],"summary":"Copy Contents to Current User","description":"Copy contents from the provided UIDs to the current user's account.","operationId":"copy_contents_api_content_copy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyContentsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/edit":{"post":{"tags":["Content"],"summary":"Edit Content Fields","description":"Edit content fields like title, AI tags, and deletion status","operationId":"edit_content_api_content_edit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditContentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_ContentResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/retry_youtube_transcript_get":{"get":{"tags":["Content"],"summary":"Retry youtube transcript get","operationId":"retry_youtube_transcript_get_api_content_retry_youtube_transcript_get_get","parameters":[{"name":"uid","in":"query","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_bool__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/annotation/create":{"post":{"tags":["Annotation"],"summary":"Create Annotation","description":"Create a new annotation for a given content.","operationId":"create_annotation_api_annotation_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAnnotationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_AnnotationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/annotation/content/{content_uid}":{"get":{"tags":["Annotation"],"summary":"Get All Annotations for Content","description":"Retrieve all annotations for a given content.","operationId":"get_annotations_by_content_api_annotation_content__content_uid__get","parameters":[{"name":"content_uid","in":"path","required":true,"schema":{"type":"string","title":"Content Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_AnnotationsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/annotation/manage":{"post":{"tags":["Annotation"],"summary":"Manage Annotation","description":"Manage an annotation by content UID and annotation UID (delete or update).","operationId":"manage_annotation_api_annotation_manage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManageAnnotationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_ManageAnnotationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/update":{"post":{"tags":["Knowledge Base"],"summary":"Update knowledge base","operationId":"update_knowledge_base_api_kb_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKnowledgeBaseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_KnowledgeBaseResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/create":{"post":{"tags":["Knowledge Base"],"summary":"Create knowledge base","operationId":"save_knowledge_base_api_kb_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKnowledgeBaseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_KnowledgeBaseResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/list/own":{"get":{"tags":["Knowledge Base"],"summary":"Get current user's knowledge base list","operationId":"get_knowledge_base_list_api_kb_list_own_get","parameters":[{"name":"type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/KnowledgeBaseType"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_KnowledgeBaseListResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/list/explore":{"get":{"tags":["Knowledge Base"],"summary":"Explore knowledge base list","operationId":"get_others_knowledge_base_list_api_kb_list_explore_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_KnowledgeBaseListResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/get_detail":{"get":{"tags":["Knowledge Base"],"summary":"Get knowledge base details","operationId":"get_knowledge_base_detail_api_kb_get_detail_get","parameters":[{"name":"kb_uid","in":"query","required":true,"schema":{"type":"string","title":"Kb Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_KnowledgeBaseResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/delete":{"post":{"tags":["Knowledge Base"],"summary":"Delete knowledge base","operationId":"delete_knowledge_base_api_kb_delete_post","parameters":[{"name":"kb_uid","in":"query","required":true,"schema":{"type":"string","title":"Kb Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_bool__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/add_contents":{"post":{"tags":["Knowledge Base"],"summary":"Batch add content to knowledge base","operationId":"add_contents_to_kb_api_kb_add_contents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentToKnowledgeBaseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_dict__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/remove_content":{"post":{"tags":["Knowledge Base"],"summary":"Batch remove content from knowledge base","operationId":"remove_content_from_kb_api_kb_remove_content_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentToKnowledgeBaseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_dict__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/get_contents":{"get":{"tags":["Knowledge Base"],"summary":"Get content list in knowledge base","operationId":"get_kb_contents_api_kb_get_contents_get","parameters":[{"name":"kb_uid","in":"query","required":true,"schema":{"type":"string","title":"Kb Uid"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_List_ContentResponse___NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/available_contents/{kb_uid}":{"get":{"tags":["Knowledge Base"],"summary":"Get available content list that can be added to knowledge base","operationId":"get_available_contents_api_kb_available_contents__kb_uid__get","parameters":[{"name":"kb_uid","in":"path","required":true,"schema":{"type":"string","title":"Kb Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_List_AvailableContentResponse___NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/subscribe/{kb_uid}":{"post":{"tags":["Knowledge Base"],"summary":"Subscribe to a knowledge base","operationId":"subscribe_knowledge_base_api_kb_subscribe__kb_uid__post","parameters":[{"name":"kb_uid","in":"path","required":true,"schema":{"type":"string","title":"Kb Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_bool__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb/unsubscribe/{kb_uid}":{"post":{"tags":["Knowledge Base"],"summary":"Unsubscribe from a knowledge base","operationId":"unsubscribe_knowledge_base_api_kb_unsubscribe__kb_uid__post","parameters":[{"name":"kb_uid","in":"path","required":true,"schema":{"type":"string","title":"Kb Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_bool__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ainee_web/youtube/transcription":{"post":{"tags":["Ainee Web"],"summary":"Get YouTube Video Transcription","description":"Get transcription for a YouTube video by its URL","operationId":"get_youtube_transcription_api_ainee_web_youtube_transcription_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YouTubeTranscriptionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_YouTubeTranscriptionResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ainee_web/thank-you-note":{"post":{"tags":["Ainee Web"],"summary":"Generate Thank You Note","description":"Generate a personalized thank you note for an interview","operationId":"generate_thank_you_note_api_ainee_web_thank_you_note_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThankYouNoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_ThankYouNoteResponse__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ainee_web/thank-you-note-to-teacher":{"post":{"tags":["Ainee Web"],"summary":"Generate Thank You Note for Teacher","description":"Generate a personalized thank you note for a teacher with customizable tone and length","operationId":"generate_teacher_thank_you_note_api_ainee_web_thank_you_note_to_teacher_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherThankYouNoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_TeacherThankYouNoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ainee_web/flashcards/generate":{"post":{"tags":["Ainee Web"],"summary":"Generate Educational Flashcards","description":"Generate a set of educational flashcards from provided content with customizable parameters","operationId":"generate_flashcards_api_ainee_web_flashcards_generate_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_generate_flashcards_api_ainee_web_flashcards_generate_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_FlashcardGenerationResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ainee_web/cornell-notes/generate":{"post":{"tags":["Ainee Web"],"summary":"Generate Cornell Notes from Document","description":"Upload a document to generate Cornell-style notes. Configure note density and page division settings. Accepted file types: PDF, PowerPoint, Word, Excel, Markdown, TXT, HTML. Maximum file size: 50MB","operationId":"upload_file_with_params_api_ainee_web_cornell_notes_generate_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_with_params_api_ainee_web_cornell_notes_generate_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_Union_CornellNotesResult__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/chat_available_status":{"get":{"tags":["Chat"],"summary":"Chat Available Status","description":"Get welcome message","operationId":"chat_available_status_api_chat_chat_available_status_get","parameters":[{"name":"chat_start_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatStartType"},{"type":"null"}],"title":"Chat Start Type"}},{"name":"uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_KBProcessingStatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/welcome_follow_up_question":{"get":{"tags":["Chat"],"summary":"Welcome Follow Up Question","description":"Get welcome message","operationId":"welcome_follow_up_question_api_chat_welcome_follow_up_question_get","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_welcome_follow_up_question_api_chat_welcome_follow_up_question_get"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse_WelcomeFollowUpQuestionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/stream_agent_chat":{"post":{"tags":["Chat"],"summary":"Stream Agent Chat","description":"Chat with the assistant about documents in specified datasets","operationId":"stream_agent_chat_api_chat_stream_agent_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_stream_agent_chat_api_chat_stream_agent_chat_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/stream_rag_chat":{"post":{"tags":["Chat"],"summary":"Stream Rag Chat","description":"Chat with the assistant about documents in specified datasets","operationId":"stream_rag_chat_api_chat_stream_rag_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_stream_rag_chat_api_chat_stream_rag_chat_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnnotationAction":{"type":"string","enum":["delete","update"],"title":"AnnotationAction"},"AnnotationResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"content":{"type":"object","title":"Content"}},"type":"object","required":["uid","content"],"title":"AnnotationResponse"},"AnnotationsResponse":{"properties":{"content_uid":{"type":"string","title":"Content Uid"},"annotations":{"items":{"type":"object"},"type":"array","title":"Annotations"}},"type":"object","required":["content_uid","annotations"],"title":"AnnotationsResponse"},"AvailableContentResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"media_type":{"$ref":"#/components/schemas/ContentMediaType"},"is_in_knowledge_base":{"type":"boolean","title":"Is In Knowledge Base"}},"type":"object","required":["uid","title","media_type","is_in_knowledge_base"],"title":"AvailableContentResponse"},"BatchCreatedItemReponse":{"properties":{"uid":{"type":"string","title":"Uid"},"status":{"$ref":"#/components/schemas/ProcessingStatus"},"media_type":{"$ref":"#/components/schemas/ContentMediaType"},"file_name":{"type":"string","title":"File Name"}},"type":"object","required":["uid","status","media_type","file_name"],"title":"BatchCreatedItemReponse"},"Body_create_by_url_api_content_create_by_url_post":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"The URL of the content to be created."}},"type":"object","title":"Body_create_by_url_api_content_create_by_url_post"},"Body_create_upload_and_pends_api_content_create_upload_and_pend_post":{"properties":{"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"The source of the content."},"media_type":{"$ref":"#/components/schemas/ContentMediaType","description":"The media type of the content."},"file":{"type":"string","format":"binary","title":"File","description":"The file content to be created."},"audio_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Language","description":"The language of the audio file."}},"type":"object","required":["media_type","file"],"title":"Body_create_upload_and_pends_api_content_create_upload_and_pend_post"},"Body_generate_flashcards_api_ainee_web_flashcards_generate_post":{"properties":{"input_content":{"type":"string","title":"Input Content"},"flashcard_count":{"type":"integer","title":"Flashcard Count"},"language":{"type":"string","title":"Language"},"other_requirements":{"type":"string","title":"Other Requirements"},"source_type":{"type":"string","title":"Source Type"},"source_name":{"type":"string","title":"Source Name"},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["flashcard_count","language","source_type","source_name"],"title":"Body_generate_flashcards_api_ainee_web_flashcards_generate_post"},"Body_stream_agent_chat_api_chat_stream_agent_chat_post":{"properties":{"question":{"type":"string","title":"Question"},"msg_id":{"type":"string","title":"Msg Id"},"chat_start_type":{"$ref":"#/components/schemas/ChatStartType"},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"},"quote_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Text"},"use_web_search":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Web Search","default":false}},"type":"object","required":["question","msg_id","chat_start_type"],"title":"Body_stream_agent_chat_api_chat_stream_agent_chat_post"},"Body_stream_rag_chat_api_chat_stream_rag_chat_post":{"properties":{"question":{"type":"string","title":"Question"},"msg_id":{"type":"string","title":"Msg Id"},"chat_start_type":{"anyOf":[{"$ref":"#/components/schemas/ChatStartType"},{"type":"null"}]},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"},"quote_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Text"}},"type":"object","required":["question","msg_id"],"title":"Body_stream_rag_chat_api_chat_stream_rag_chat_post"},"Body_upload_and_pends_api_content_upload_and_pend_post":{"properties":{"uid":{"type":"string","title":"Uid","description":"The UID of the content to be created."},"file":{"type":"string","format":"binary","title":"File","description":"The file content to be created."},"audio_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Language","description":"The language of the audio file."}},"type":"object","required":["uid","file"],"title":"Body_upload_and_pends_api_content_upload_and_pend_post"},"Body_upload_avatar_api_user_upload_avatar_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_avatar_api_user_upload_avatar_post"},"Body_upload_file_with_params_api_ainee_web_cornell_notes_generate_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"The file to upload"},"note_density":{"type":"string","title":"Note Density","description":"First additional parameter"},"page_division":{"type":"string","title":"Page Division","description":"Second additional parameter"}},"type":"object","required":["file","note_density","page_division"],"title":"Body_upload_file_with_params_api_ainee_web_cornell_notes_generate_post"},"Body_welcome_follow_up_question_api_chat_welcome_follow_up_question_get":{"properties":{"chat_start_type":{"anyOf":[{"$ref":"#/components/schemas/ChatStartType"},{"type":"null"}]},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"}},"type":"object","title":"Body_welcome_follow_up_question_api_chat_welcome_follow_up_question_get"},"ChatStartType":{"type":"string","enum":["inbox","my_knowledge_bases","single_knowledge_base","article"],"title":"ChatStartType"},"CommonResponse_AnnotationResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/AnnotationResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[AnnotationResponse]"},"CommonResponse_AnnotationsResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/AnnotationsResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[AnnotationsResponse]"},"CommonResponse_ContentResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/ContentResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[ContentResponse]"},"CommonResponse_FlashcardGenerationResult_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/FlashcardGenerationResult"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[FlashcardGenerationResult]"},"CommonResponse_KBProcessingStatusResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/KBProcessingStatusResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[KBProcessingStatusResponse]"},"CommonResponse_ManageAnnotationResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/ManageAnnotationResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[ManageAnnotationResponse]"},"CommonResponse_TeacherThankYouNoteResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/TeacherThankYouNoteResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[TeacherThankYouNoteResponse]"},"CommonResponse_Union_ContentResponse__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"$ref":"#/components/schemas/ContentResponse"},{"type":"null"}]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[ContentResponse, NoneType]]"},"CommonResponse_Union_CornellNotesResult__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"$ref":"#/components/schemas/CornellNotesResult"},{"type":"null"}]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[CornellNotesResult, NoneType]]"},"CommonResponse_Union_KnowledgeBaseListResponse__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"$ref":"#/components/schemas/KnowledgeBaseListResponse"},{"type":"null"}]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[KnowledgeBaseListResponse, NoneType]]"},"CommonResponse_Union_KnowledgeBaseResponse__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"$ref":"#/components/schemas/KnowledgeBaseResponse"},{"type":"null"}]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[KnowledgeBaseResponse, NoneType]]"},"CommonResponse_Union_List_AvailableContentResponse___NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AvailableContentResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[List[AvailableContentResponse], NoneType]]"},"CommonResponse_Union_List_BatchCreatedItemReponse___NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/BatchCreatedItemReponse"},"type":"array"},{"type":"null"}],"title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[List[BatchCreatedItemReponse], NoneType]]"},"CommonResponse_Union_List_ContentResponse___NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContentResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[List[ContentResponse], NoneType]]"},"CommonResponse_Union_LoginResponse__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"$ref":"#/components/schemas/LoginResponse"},{"type":"null"}]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[LoginResponse, NoneType]]"},"CommonResponse_Union_ThankYouNoteResponse__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"$ref":"#/components/schemas/ThankYouNoteResponse"},{"type":"null"}]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[ThankYouNoteResponse, NoneType]]"},"CommonResponse_Union_YouTubeTranscriptionResponse__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"$ref":"#/components/schemas/YouTubeTranscriptionResponse"},{"type":"null"}]},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[YouTubeTranscriptionResponse, NoneType]]"},"CommonResponse_Union_bool__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[bool, NoneType]]"},"CommonResponse_Union_dict__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[dict, NoneType]]"},"CommonResponse_Union_str__NoneType__":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[Union[str, NoneType]]"},"CommonResponse_UserContentsData_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/UserContentsData"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[UserContentsData]"},"CommonResponse_UserInfoResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/UserInfoResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[UserInfoResponse]"},"CommonResponse_WelcomeFollowUpQuestionResponse_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"$ref":"#/components/schemas/WelcomeFollowUpQuestionResponse"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[WelcomeFollowUpQuestionResponse]"},"CommonResponse_bool_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"type":"boolean","title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[bool]"},"CommonResponse_dict_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"type":"object","title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[dict]"},"CommonResponse_str_":{"properties":{"code":{"$ref":"#/components/schemas/ResponseCode"},"data":{"type":"string","title":"Data"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["code","data"],"title":"CommonResponse[str]"},"ContentMediaType":{"type":"string","enum":["article","video","twitter","pdf","word","excel","text","ppt","audio","spotify_audio","audio_internal","audio_microphone","image","text_file"],"title":"ContentMediaType"},"ContentResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The title of the content."},"site_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Name","description":"The name of the source site."},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author","description":"The author of the content."},"lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang","description":"The language of the content."},"published_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Time","description":"The time the content was published."},"cover":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover","description":"The cover image URL."},"images":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Images","description":"The image URLs."},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"The original URL of the content."},"processing_status":{"$ref":"#/components/schemas/ProcessingStatus"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"The time the content was created."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the content."},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"The content."},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url","description":"The page URL of the content."},"view_count":{"type":"integer","title":"View Count","description":"The number of views","default":0},"share_count":{"type":"integer","title":"Share Count","description":"The number of shares","default":0},"ai_mermaid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Mermaid","description":"The AI generated mermaid diagram"},"ai_structure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Structure","description":"The AI generated structure"},"ai_recommend_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Recommend Reason","description":"The AI generated recommendation reason"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary","description":"The AI generated summary"},"text_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Content","description":"Plain text version of the content"},"ai_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ai Tags","description":"AI generated tags"},"media_type":{"$ref":"#/components/schemas/ContentMediaType","description":"The media type of the content","default":"article"},"media_subtitles":{"anyOf":[{"items":{"$ref":"#/components/schemas/SubtitleSegment"},"type":"array"},{"type":"null"}],"title":"Media Subtitles","description":"The media subtitles as structured segments"},"video_embed_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Embed Html","description":"The video embed URL"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url","description":"The file url"},"image_ocr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Ocr","description":"The OCR result from the image"},"shownotes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shownotes","description":"The show notes for the content"},"belonged_kbs":{"anyOf":[{"items":{"$ref":"#/components/schemas/KnowledgeBaseInfo"},"type":"array"},{"type":"null"}],"title":"Belonged Kbs","description":"内容所属的知识库列表,可为空"},"owned":{"type":"boolean","title":"Owned","description":"是否拥有该内容的权限","default":false}},"type":"object","required":["uid","processing_status"],"title":"ContentResponse"},"ContentStats":{"properties":{"total_views":{"type":"integer","title":"Total Views","description":"总查看次数","default":0,"example":1500},"total_shares":{"type":"integer","title":"Total Shares","description":"总分享次数","default":0,"example":45},"annotations_count":{"type":"integer","title":"Annotations Count","description":"用户有效注释数量","default":0,"example":12}},"type":"object","title":"ContentStats","description":"用户内容统计信息"},"ContentToKnowledgeBaseRequest":{"properties":{"content_uids":{"items":{"type":"string"},"type":"array","title":"Content Uids","description":"多个内容UID"},"kb_uid":{"type":"string","title":"Kb Uid","description":"知识库UID"}},"type":"object","required":["content_uids","kb_uid"],"title":"ContentToKnowledgeBaseRequest"},"CopyContentsRequest":{"properties":{"uids":{"items":{"type":"string"},"type":"array","title":"Uids","description":"The UIDs of the contents to be copied."}},"type":"object","required":["uids"],"title":"CopyContentsRequest"},"CornellNote":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title of the notes"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","description":"Date of the notes"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Main content/notes section"},"questions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Questions","description":"Questions/cues section"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Summary of the notes"}},"type":"object","title":"CornellNote","description":"Cornell note structure for a single page"},"CornellNotePage":{"properties":{"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page","description":"Page number"},"cornell_notes":{"anyOf":[{"$ref":"#/components/schemas/CornellNote"},{"type":"null"}],"description":"Cornell notes for this page"}},"type":"object","title":"CornellNotePage","description":"Page structure containing Cornell notes"},"CornellNotesResult":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/CornellNotePage"},"type":"array","title":"Pages","description":"List of pages with Cornell notes"}},"type":"object","required":["pages"],"title":"CornellNotesResult","description":"Model for Cornell Notes generation result"},"CreateAnnotationRequest":{"properties":{"content_uid":{"type":"string","title":"Content Uid","description":"The ID of the content to annotate."},"uid":{"type":"string","title":"Uid","description":"The UID of the annotation."},"annotation_content":{"type":"object","title":"Annotation Content","description":"The W3C-compliant annotation content."}},"type":"object","required":["content_uid","uid","annotation_content"],"title":"CreateAnnotationRequest"},"CreateContentRequest":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"The URL of the content to be created."},"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File","description":"The file content to be created."}},"type":"object","title":"CreateContentRequest"},"CreateKnowledgeBaseRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Knowledge base name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Knowledge base description"},"visibility":{"$ref":"#/components/schemas/KnowledgeBaseVisibility","description":"Knowledge base visibility","default":"private"}},"type":"object","required":["name"],"title":"CreateKnowledgeBaseRequest"},"EditContentRequest":{"properties":{"uid":{"type":"string","title":"Uid","description":"The UID of the content to edit"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"New title for the content"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"New AI tags for the content"},"add_to_kb_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Add To Kb Ids","description":"List of knowledge base IDs to add the content to"}},"type":"object","required":["uid"],"title":"EditContentRequest"},"Flashcard":{"properties":{"front":{"type":"string","title":"Front","description":"Question text on the front of the flashcard"},"back":{"type":"string","title":"Back","description":"Answer text on the back of the flashcard"}},"type":"object","required":["front","back"],"title":"Flashcard"},"FlashcardGenerationResult":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the generation was successful"},"flashcards":{"anyOf":[{"items":{"$ref":"#/components/schemas/Flashcard"},"type":"array"},{"type":"null"}],"title":"Flashcards","description":"List of generated flashcards"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/FlashcardMetadata"},{"type":"null"}],"description":"Metadata about the generation"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if generation failed"},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errorcode","description":"Error code if generation failed"}},"type":"object","required":["success"],"title":"FlashcardGenerationResult"},"FlashcardMetadata":{"properties":{"sourceType":{"type":"string","title":"Sourcetype","description":"Type of source ('file' or 'text')"},"sourceName":{"type":"string","title":"Sourcename","description":"Name of source file or 'Text Input'"},"generationTime":{"type":"string","title":"Generationtime","description":"ISO timestamp of generation time"},"flashcardCount":{"type":"integer","title":"Flashcardcount","description":"Number of flashcards generated"},"language":{"type":"string","title":"Language","description":"Language of the flashcards"}},"type":"object","required":["sourceType","sourceName","generationTime","flashcardCount","language"],"title":"FlashcardMetadata"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KBProcessingStatus":{"type":"string","enum":["available","partially_available","unavailable"],"title":"KBProcessingStatus","description":"Chat available status"},"KBProcessingStatusResponse":{"properties":{"status":{"$ref":"#/components/schemas/KBProcessingStatus"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"KBProcessingStatusResponse"},"KnowledgeBaseInfo":{"properties":{"uid":{"type":"string","title":"Uid","description":"知识库唯一标识"},"name":{"type":"string","title":"Name","description":"知识库名称"}},"type":"object","required":["uid","name"],"title":"KnowledgeBaseInfo"},"KnowledgeBaseListResponse":{"properties":{"knowledge_bases":{"items":{"$ref":"#/components/schemas/KnowledgeBaseResponse"},"type":"array","title":"Knowledge Bases"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["knowledge_bases","total"],"title":"KnowledgeBaseListResponse"},"KnowledgeBaseResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"visibility":{"$ref":"#/components/schemas/KnowledgeBaseVisibility"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"user_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Uid"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Picture"},"subscriber_count":{"type":"integer","title":"Subscriber Count","default":0},"content_count":{"type":"integer","title":"Content Count","default":0},"owned":{"type":"boolean","title":"Owned"},"subscribed":{"type":"boolean","title":"Subscribed"},"share_page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Page Url","description":"Knowledge base share page URL"}},"type":"object","required":["uid","name","description","visibility","created_at","updated_at","owned","subscribed"],"title":"KnowledgeBaseResponse"},"KnowledgeBaseType":{"type":"string","enum":["owned","subscribed","all"],"title":"KnowledgeBaseType"},"KnowledgeBaseVisibility":{"type":"string","enum":["public","private","restricted","default"],"title":"KnowledgeBaseVisibility"},"LoginRequest":{"properties":{"id_token":{"type":"string","title":"Id Token"}},"type":"object","required":["id_token"],"title":"LoginRequest"},"LoginResponse":{"properties":{"jwt_token":{"type":"string","title":"Jwt Token"}},"type":"object","required":["jwt_token"],"title":"LoginResponse"},"ManageAnnotationRequest":{"properties":{"content_uid":{"type":"string","title":"Content Uid","description":"The UID of the content."},"annotation_uid":{"type":"string","title":"Annotation Uid","description":"The UID of the annotation."},"action":{"$ref":"#/components/schemas/AnnotationAction","description":"Action to perform: 'delete' or 'update'."},"annotation_content":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Annotation Content","description":"The updated annotation content (required for 'update' action)."},"uid":{"type":"string","title":"Uid","description":"The UID of the request."}},"type":"object","required":["content_uid","annotation_uid","action","uid"],"title":"ManageAnnotationRequest"},"ManageAnnotationResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the operation was successful."},"annotation":{"anyOf":[{"$ref":"#/components/schemas/AnnotationResponse"},{"type":"null"}],"description":"The updated annotation (only for update action)."}},"type":"object","required":["success"],"title":"ManageAnnotationResponse"},"MediaItem":{"properties":{"media_type":{"$ref":"#/components/schemas/ContentMediaType"},"file_name":{"type":"string","title":"File Name"},"kb_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kb Uid","description":"The ID of the knowledge base this content should be assigned to"}},"type":"object","required":["media_type","file_name"],"title":"MediaItem"},"ProcessingStatus":{"type":"string","enum":["waiting_init","pending","completed","failed"],"title":"ProcessingStatus"},"ResponseCode":{"type":"string","enum":["SUCCESS","FAILED","FILE_NOT_FOUND","FILE_TYPE_NOT_SUPPORTED","FILE_SIZE_TOO_LARGE","MISSING_DEVICE_ID","FACE_CHECK_FAILED","SINGLE_AUDIO_EXCEEDS_DURATION_LIMIT","TOTAL_AUDIO_EXCEEDS_DURATION_LIMIT"],"title":"ResponseCode"},"RetryContentRequest":{"properties":{"uid":{"type":"string","title":"Uid","description":"The UID of the content to retry processing."}},"type":"object","required":["uid"],"title":"RetryContentRequest"},"SubtitleSegment":{"properties":{"text":{"type":"string","title":"Text","description":"The subtitle text"},"start":{"type":"number","title":"Start","description":"Start time in seconds"},"duration":{"type":"number","title":"Duration","description":"Duration in seconds"}},"type":"object","required":["text","start","duration"],"title":"SubtitleSegment"},"TeacherThankYouNoteRequest":{"properties":{"from_whom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Whom","description":"Who is this from? (e.g., Parent, Student, Class Group, School Administration)"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name","description":"Teacher's name (will be used in greeting, e.g., 'Dear Mrs. Smith,')"},"your_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Your Name","description":"Your name (will be used in closing)"},"teacher_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Type","description":"Type of teacher (e.g., Elementary School Teacher, Daycare Teacher)"},"qualities":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualities","description":"Qualities appreciated in the teacher (e.g., Patience, Creativity, Dedication)"},"memory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory","description":"Optional specific memory or achievement to mention"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone","description":"Desired tone of the note (e.g., Heartfelt, Formal, Casual, Humorous, Inspirational)"},"length":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Length","description":"Desired length of the note (Short, Medium, Detailed)"}},"type":"object","title":"TeacherThankYouNoteRequest"},"TeacherThankYouNoteResponse":{"properties":{"thank_you_note":{"type":"string","title":"Thank You Note","description":"Generated thank you note for teacher"}},"type":"object","required":["thank_you_note"],"title":"TeacherThankYouNoteResponse"},"ThankYouNoteRequest":{"properties":{"interviewer_name":{"type":"string","title":"Interviewer Name","description":"Name of the interviewer"},"company_name":{"type":"string","title":"Company Name","description":"Name of the company"},"position_applied_for":{"type":"string","title":"Position Applied For","description":"Position you applied for"},"interview_type":{"type":"string","title":"Interview Type","description":"Type of interview (e.g., technical, behavioral)"},"tone":{"type":"string","title":"Tone","description":"Desired tone of the thank you note (e.g., professional, friendly)"},"specific_points_to_mention":{"type":"string","title":"Specific Points To Mention","description":"Specific points to include in the thank you note"},"your_name":{"type":"string","title":"Your Name","description":"Your name"}},"type":"object","required":["interviewer_name","company_name","position_applied_for","interview_type","tone","specific_points_to_mention","your_name"],"title":"ThankYouNoteRequest"},"ThankYouNoteResponse":{"properties":{"thank_you_note":{"type":"string","title":"Thank You Note","description":"Generated thank you note"}},"type":"object","required":["thank_you_note"],"title":"ThankYouNoteResponse"},"UpdateFCMTokenRequest":{"properties":{"fcm_registration_token":{"type":"string","title":"Fcm Registration Token","description":"FCM 注册令牌"}},"type":"object","required":["fcm_registration_token"],"title":"UpdateFCMTokenRequest"},"UpdateKnowledgeBaseRequest":{"properties":{"kb_uid":{"type":"string","title":"Kb Uid","description":"Knowledge base UID"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Knowledge base name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Knowledge base description"},"visibility":{"anyOf":[{"$ref":"#/components/schemas/KnowledgeBaseVisibility"},{"type":"null"}],"description":"Knowledge base visibility"}},"type":"object","required":["kb_uid"],"title":"UpdateKnowledgeBaseRequest"},"UserContentsData":{"properties":{"contents":{"items":{"$ref":"#/components/schemas/ContentResponse"},"type":"array","title":"Contents"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"下一页的游标"}},"type":"object","required":["contents"],"title":"UserContentsData","description":"用户文章列表的返回数据结构"},"UserInfoResponse":{"properties":{"uid":{"type":"string","title":"Uid","description":"用户UID","example":"u123456789abc"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"用户邮箱","example":"user@example.com"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"用户姓名","example":"Alice"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture","description":"用户头像","example":"https://..."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"登录提供商","example":"google.com"},"content_stats":{"$ref":"#/components/schemas/ContentStats"}},"type":"object","required":["uid"],"title":"UserInfoResponse"},"UserUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"}},"type":"object","title":"UserUpdateRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WelcomeFollowUpQuestionResponse":{"properties":{"followup_question":{"items":{"type":"string"},"type":"array","title":"Followup Question"}},"type":"object","required":["followup_question"],"title":"WelcomeFollowUpQuestionResponse"},"YouTubeTranscriptionRequest":{"properties":{"url":{"type":"string","title":"Url","description":"The YouTube video URL to get transcription for"}},"type":"object","required":["url"],"title":"YouTubeTranscriptionRequest"},"YouTubeTranscriptionResponse":{"properties":{"transcription":{"items":{"$ref":"#/components/schemas/SubtitleSegment"},"type":"array","title":"Transcription","description":"The transcription segments"},"transcription_raw":{"items":{"$ref":"#/components/schemas/SubtitleSegment"},"type":"array","title":"Transcription Raw","description":"The transcription segments"},"markdownmap":{"type":"string","title":"Markdownmap","description":"Markdownmap"}},"type":"object","required":["transcription","transcription_raw","markdownmap"],"title":"YouTubeTranscriptionResponse"}}}}