{"openapi":"3.1.0","info":{"title":"Book Index API","version":"0.1.0"},"paths":{"/api/v1/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_HealthStatus_"}}}}}}},"/api/v1/admin/resources/upload":{"post":{"tags":["resources"],"summary":"Upload","operationId":"upload_api_v1_admin_resources_upload_post","parameters":[{"name":"filename","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ResourceView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources":{"get":{"tags":["resources"],"summary":"Resources","operationId":"resources_api_v1_resources_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":"","title":"Query"}},{"name":"field","in":"query","required":false,"schema":{"enum":["all","title","keyword","author","publisher","fulltext"],"type":"string","default":"all","title":"Field"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/{resource_id}":{"get":{"tags":["resources"],"summary":"Detail","operationId":"detail_api_v1_resources__resource_id__get","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ResourceView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/{resource_id}/toc":{"get":{"tags":["resources"],"summary":"Toc","operationId":"toc_api_v1_resources__resource_id__toc_get","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resources/{resource_id}/{action}":{"post":{"tags":["resources"],"summary":"Transition","operationId":"transition_api_v1_admin_resources__resource_id___action__post","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Id"}},{"name":"action","in":"path","required":true,"schema":{"enum":["publish","unpublish"],"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ResourceView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/{resource_id}/epub":{"get":{"tags":["resources"],"summary":"Epub","operationId":"epub_api_v1_resources__resource_id__epub_get","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search/fulltext":{"post":{"tags":["resources","search"],"summary":"Fulltext","operationId":"fulltext_api_v1_search_fulltext_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/citations/sentences/{sentence_id}":{"get":{"tags":["resources"],"summary":"Citation","operationId":"citation_api_v1_citations_sentences__sentence_id__get","parameters":[{"name":"sentence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sentence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses":{"get":{"tags":["parses"],"summary":"Current","operationId":"current_api_v1_admin_parses_get","parameters":[{"name":"resourceId","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Resourceid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_VersionView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["parses"],"summary":"Reparse","operationId":"reparse_api_v1_admin_parses_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReparseResource"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_VersionView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}/review":{"post":{"tags":["parses"],"summary":"Review","operationId":"review_api_v1_admin_parses__version_id__review_post","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewIssues"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_VersionView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}/issues":{"get":{"tags":["parses"],"summary":"Issue List","operationId":"issue_list_api_v1_admin_parses__version_id__issues_get","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"enum":["WARNING","ERROR"],"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["OPEN","ACKNOWLEDGED"],"type":"string"},{"type":"null"}],"title":"State"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}/index-check":{"get":{"tags":["parses"],"summary":"Index Check","operationId":"index_check_api_v1_admin_parses__version_id__index_check_get","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}":{"get":{"tags":["parses"],"summary":"Detail","operationId":"detail_api_v1_admin_parses__version_id__get","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}/retry":{"post":{"tags":["parses"],"summary":"Retry","operationId":"retry_api_v1_admin_parses__version_id__retry_post","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_VersionView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}/assets/{asset_id}":{"get":{"tags":["bibliography"],"summary":"Asset","operationId":"asset_api_v1_admin_parses__version_id__assets__asset_id__get","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resources/{resource_id}/metadata":{"patch":{"tags":["bibliography"],"summary":"Edit","operationId":"edit_api_v1_admin_resources__resource_id__metadata_patch","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ResourceView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/{resource_id}/cover":{"get":{"tags":["bibliography"],"summary":"Cover","operationId":"cover_api_v1_resources__resource_id__cover_get","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}/sentences":{"get":{"tags":["evidence-preview"],"summary":"Sentences","operationId":"sentences_api_v1_admin_parses__version_id__sentences_get","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}},{"name":"sectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sectionid"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["TEXT","NOTE","CAPTION","TABLE"],"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Query"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parses/{version_id}/chunks":{"get":{"tags":["evidence-preview"],"summary":"Chunks","operationId":"chunks_api_v1_admin_parses__version_id__chunks_get","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}},{"name":"sectionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sectionid"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["TEXT","NOTE","CAPTION","TABLE"],"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/literature":{"get":{"tags":["literature"],"summary":"Literature","operationId":"literature_api_v1_literature_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Query"}},{"name":"field","in":"query","required":false,"schema":{"enum":["subject","keyword","title","fulltext"],"type":"string","default":"subject","title":"Field"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["date_desc","date_asc","relevance"],"type":"string","default":"date_desc","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_LiteraturePage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/literature/{literature_id}":{"get":{"tags":["literature"],"summary":"Detail","operationId":"detail_api_v1_literature__literature_id__get","parameters":[{"name":"literature_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Literature Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_LiteratureDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/literature/{literature_id}/pdf":{"get":{"tags":["literature"],"summary":"Download","operationId":"download_api_v1_literature__literature_id__pdf_get","parameters":[{"name":"literature_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Literature Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/literature/import":{"post":{"tags":["literature"],"summary":"Import Literature","operationId":"import_literature_api_v1_admin_literature_import_post","requestBody":{"content":{"application/json":{"schema":{"properties":{"source_key":{"type":"string","maxLength":255,"minLength":1,"title":"Source Key"},"title":{"type":"string","maxLength":512,"minLength":1,"title":"Title"},"authors":{"items":{"type":"string","maxLength":512,"minLength":1},"type":"array","maxItems":100,"title":"Authors"},"source":{"type":"string","maxLength":512,"minLength":1,"title":"Source"},"publish_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publish Date"},"subjects":{"items":{"type":"string","maxLength":512,"minLength":1},"type":"array","maxItems":100,"title":"Subjects"},"keywords":{"items":{"type":"string","maxLength":512,"minLength":1},"type":"array","maxItems":100,"title":"Keywords"},"abstract":{"type":"string","maxLength":10000,"title":"Abstract","default":""},"fulltext":{"type":"string","maxLength":2000000,"minLength":1,"title":"Fulltext"},"rights_note":{"type":"string","maxLength":2000,"minLength":1,"title":"Rights Note"},"pdf_base64":{"anyOf":[{"type":"string","maxLength":14680064},{"type":"null"}],"title":"Pdf Base64"}},"additionalProperties":false,"type":"object","required":["source_key","title","authors","source","fulltext","rights_note"],"title":"LiteratureImport"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_LiteratureView_"}}}}}}},"/api/v1/qa/search":{"get":{"tags":["qa"],"summary":"Qa Search","operationId":"qa_search_api_v1_qa_search_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Query"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["ALL","BOOK","LITERATURE"],"type":"string","default":"ALL","title":"Scope"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":10,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_QaSearchPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/books":{"get":{"tags":["portal"],"summary":"Books","operationId":"books_api_v1_portal_books_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Query"}},{"name":"field","in":"query","required":false,"schema":{"enum":["title","keyword","author","publisher","fulltext"],"type":"string","default":"title","title":"Field"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PortalBookPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/books/by-filename":{"get":{"tags":["portal"],"summary":"Book By Filename","operationId":"book_by_filename_api_v1_portal_books_by_filename_get","parameters":[{"name":"filename","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PortalBook_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/books/{id}":{"get":{"tags":["portal"],"summary":"Book","operationId":"book_api_v1_portal_books__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PortalBook_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/books/{id}/catalog":{"get":{"tags":["portal"],"summary":"Catalog","operationId":"catalog_api_v1_portal_books__id__catalog_get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PortalCatalogNode__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/books/{id}/chapters/{section_id}":{"get":{"tags":["portal"],"summary":"Chapter","operationId":"chapter_api_v1_portal_books__id__chapters__section_id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"section_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Section Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PortalChapter_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/books/{id}/cover":{"get":{"tags":["portal"],"summary":"Cover","operationId":"cover_api_v1_portal_books__id__cover_get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/images/{id}":{"get":{"tags":["portal"],"summary":"Image","description":"回答配图缩略图：只读图片索引登记的对象，且所属图书须仍上架、版本未变。","operationId":"image_api_v1_portal_images__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{32}$","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/literature":{"get":{"tags":["portal"],"summary":"Literature","operationId":"literature_api_v1_portal_literature_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Query"}},{"name":"field","in":"query","required":false,"schema":{"enum":["subject","keyword","title","fulltext"],"type":"string","default":"subject","title":"Field"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["date_desc","date_asc","relevance"],"type":"string","default":"date_desc","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PortalLiteraturePage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/literature/{id}":{"get":{"tags":["portal"],"summary":"Literature Detail","operationId":"literature_detail_api_v1_portal_literature__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PortalLiterature_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/qa/search":{"get":{"tags":["portal"],"summary":"Qa Search","operationId":"qa_search_api_v1_portal_qa_search_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Query"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["ALL","BOOK","LITERATURE"],"type":"string","default":"ALL","title":"Scope"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":10,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PortalQaPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/qa/answer":{"post":{"tags":["portal"],"summary":"Qa Answer","operationId":"qa_answer_api_v1_portal_qa_answer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalQaAnswerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/auth/captcha":{"get":{"tags":["portal-accounts"],"summary":"Captcha","operationId":"captcha_api_v1_portal_auth_captcha_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Captcha_"}}}}}}},"/api/v1/portal/auth/login":{"post":{"tags":["portal-accounts"],"summary":"Login","operationId":"login_api_v1_portal_auth_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/ApiResponse_Me_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/auth/logout":{"post":{"tags":["portal-accounts"],"summary":"Logout","operationId":"logout_api_v1_portal_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NoneType_"}}}}}}},"/api/v1/portal/auth/me":{"get":{"tags":["portal-accounts"],"summary":"Me","operationId":"me_api_v1_portal_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Me_"}}}}}}},"/api/v1/portal/auth/password":{"post":{"tags":["portal-accounts"],"summary":"Change Password","description":"用户自行修改密码（BUG-023）：校验旧密码，改后该账号全部会话失效、需重新登录。","operationId":"change_password_api_v1_portal_auth_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/manage/users":{"get":{"tags":["portal-accounts"],"summary":"List Users","operationId":"list_users_api_v1_portal_manage_users_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":40,"default":"","title":"Query"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_ManagedUserPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["portal-accounts"],"summary":"Create User","description":"开通普通用户账号：初始密码为统一默认密码（11-03 定为 123456，不强制改密）。","operationId":"create_user_api_v1_portal_manage_users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_IssuedPassword_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/manage/users/{user_id}/reset-password":{"post":{"tags":["portal-accounts"],"summary":"Reset Password","description":"重置为默认密码并解除锁定；该账号已登录的会话全部失效。","operationId":"reset_password_api_v1_portal_manage_users__user_id__reset_password_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_IssuedPassword_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ApiResponse_Captcha_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/Captcha"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[Captcha]"},"ApiResponse_HealthStatus_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/HealthStatus"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[HealthStatus]"},"ApiResponse_IssuedPassword_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/IssuedPassword"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[IssuedPassword]"},"ApiResponse_LiteratureDetail_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/LiteratureDetail"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[LiteratureDetail]"},"ApiResponse_LiteraturePage_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/LiteraturePage"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[LiteraturePage]"},"ApiResponse_LiteratureView_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/LiteratureView"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[LiteratureView]"},"ApiResponse_ManagedUserPage_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/ManagedUserPage"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[ManagedUserPage]"},"ApiResponse_Me_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/Me"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[Me]"},"ApiResponse_NoneType_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"type":"null","title":"Data"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[NoneType]"},"ApiResponse_PortalBookPage_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/PortalBookPage"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[PortalBookPage]"},"ApiResponse_PortalBook_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/PortalBook"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[PortalBook]"},"ApiResponse_PortalChapter_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/PortalChapter"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[PortalChapter]"},"ApiResponse_PortalLiteraturePage_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/PortalLiteraturePage"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[PortalLiteraturePage]"},"ApiResponse_PortalLiterature_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/PortalLiterature"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[PortalLiterature]"},"ApiResponse_PortalQaPage_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/PortalQaPage"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[PortalQaPage]"},"ApiResponse_QaSearchPage_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/QaSearchPage"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[QaSearchPage]"},"ApiResponse_ResourceView_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/ResourceView"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[ResourceView]"},"ApiResponse_VersionView_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"$ref":"#/components/schemas/VersionView"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[VersionView]"},"ApiResponse_dict_str__Any__":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[dict[str, Any]]"},"ApiResponse_list_PortalCatalogNode__":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"items":{"$ref":"#/components/schemas/PortalCatalogNode"},"type":"array","title":"Data"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[list[PortalCatalogNode]]"},"ApiResponse_list_dict_str__Any___":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data"},"requestId":{"type":"string","title":"Requestid"}},"type":"object","required":["data","requestId"],"title":"ApiResponse[list[dict[str, Any]]]"},"Captcha":{"properties":{"captchaId":{"type":"string","title":"Captchaid"},"image":{"type":"string","title":"Image"}},"type":"object","required":["captchaId","image"],"title":"Captcha"},"ChangePasswordRequest":{"properties":{"oldPassword":{"type":"string","maxLength":64,"minLength":1,"title":"Oldpassword"},"newPassword":{"type":"string","maxLength":64,"minLength":1,"title":"Newpassword"}},"type":"object","required":["oldPassword","newPassword"],"title":"ChangePasswordRequest"},"CreateUserRequest":{"properties":{"username":{"type":"string","pattern":"^[0-9A-Za-z_\\-.@一-鿿]{2,40}$","title":"Username"}},"type":"object","required":["username"],"title":"CreateUserRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthStatus":{"properties":{"status":{"type":"string","const":"ok","title":"Status","default":"ok"},"service":{"type":"string","title":"Service"},"environment":{"type":"string","title":"Environment"},"version":{"type":"string","title":"Version"}},"type":"object","required":["service","environment","version"],"title":"HealthStatus"},"IssuedPassword":{"properties":{"user":{"$ref":"#/components/schemas/ManagedUser"},"password":{"type":"string","title":"Password"}},"type":"object","required":["user","password"],"title":"IssuedPassword","description":"新开账号或重置后的初始密码：只在本次响应中出现一次，不落日志。"},"LiteratureDetail":{"properties":{"id":{"type":"string","title":"Id"},"source_key":{"type":"string","title":"Source Key"},"title":{"type":"string","title":"Title"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"source":{"type":"string","title":"Source"},"publish_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publish Date"},"subjects":{"items":{"type":"string"},"type":"array","title":"Subjects"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"abstract":{"type":"string","title":"Abstract"},"pdf_size":{"type":"integer","title":"Pdf Size"},"content_sha256":{"type":"string","title":"Content Sha256"},"chunk_status":{"type":"string","title":"Chunk Status"},"chunk_rules_version":{"type":"string","title":"Chunk Rules Version"},"chunk_error":{"type":"string","title":"Chunk Error"},"chunked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chunked At"},"fulltext":{"type":"string","title":"Fulltext"},"rights_note":{"type":"string","title":"Rights Note"}},"type":"object","required":["id","source_key","title","authors","source","publish_date","subjects","keywords","abstract","pdf_size","content_sha256","chunk_status","chunk_rules_version","chunk_error","chunked_at","fulltext","rights_note"],"title":"LiteratureDetail"},"LiteraturePage":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/LiteratureView"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"LiteraturePage"},"LiteratureView":{"properties":{"id":{"type":"string","title":"Id"},"source_key":{"type":"string","title":"Source Key"},"title":{"type":"string","title":"Title"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"source":{"type":"string","title":"Source"},"publish_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publish Date"},"subjects":{"items":{"type":"string"},"type":"array","title":"Subjects"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"abstract":{"type":"string","title":"Abstract"},"pdf_size":{"type":"integer","title":"Pdf Size"},"content_sha256":{"type":"string","title":"Content Sha256"},"chunk_status":{"type":"string","title":"Chunk Status"},"chunk_rules_version":{"type":"string","title":"Chunk Rules Version"},"chunk_error":{"type":"string","title":"Chunk Error"},"chunked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chunked At"}},"type":"object","required":["id","source_key","title","authors","source","publish_date","subjects","keywords","abstract","pdf_size","content_sha256","chunk_status","chunk_rules_version","chunk_error","chunked_at"],"title":"LiteratureView"},"LoginRequest":{"properties":{"username":{"type":"string","maxLength":40,"minLength":1,"title":"Username"},"password":{"type":"string","maxLength":64,"minLength":1,"title":"Password"},"captchaId":{"type":"string","maxLength":64,"title":"Captchaid"},"captchaCode":{"type":"string","maxLength":8,"title":"Captchacode"}},"type":"object","required":["username","password","captchaId","captchaCode"],"title":"LoginRequest"},"ManagedUser":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"role":{"type":"string","title":"Role"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"lastLoginAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastloginat"},"lockedUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lockeduntil"}},"type":"object","required":["id","username","role","createdAt","lastLoginAt","lockedUntil"],"title":"ManagedUser"},"ManagedUserPage":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ManagedUser"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ManagedUserPage"},"Me":{"properties":{"username":{"type":"string","title":"Username"},"role":{"type":"string","title":"Role"}},"type":"object","required":["username","role"],"title":"Me"},"MetadataEdit":{"properties":{"values":{"$ref":"#/components/schemas/MetadataValues"},"reviewer":{"type":"string","maxLength":100,"minLength":1,"title":"Reviewer"},"note":{"type":"string","maxLength":2000,"minLength":1,"title":"Note"}},"type":"object","required":["values","reviewer","note"],"title":"MetadataEdit"},"MetadataValues":{"properties":{"keywords":{"anyOf":[{"items":{"type":"string","maxLength":512,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Keywords"},"title":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Title"},"authors":{"anyOf":[{"items":{"type":"string","maxLength":512,"minLength":1},"type":"array","maxItems":100},{"type":"null"}],"title":"Authors"},"publisher":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Publisher"},"publish_date":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Publish Date"},"identifier":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Identifier"},"description":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description"},"publication_place":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Publication Place"},"edition":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Edition"}},"additionalProperties":false,"type":"object","title":"MetadataValues"},"PortalBook":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"publisher":{"type":"string","title":"Publisher"},"publishDate":{"type":"string","title":"Publishdate"},"description":{"type":"string","title":"Description"},"hasCover":{"type":"boolean","title":"Hascover"}},"type":"object","required":["id","title","authors","publisher","publishDate","description","hasCover"],"title":"PortalBook"},"PortalBookPage":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/PortalBook"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"PortalBookPage"},"PortalCatalogNode":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"children":{"items":{"$ref":"#/components/schemas/PortalCatalogNode"},"type":"array","title":"Children"}},"type":"object","required":["id","title"],"title":"PortalCatalogNode"},"PortalChapter":{"properties":{"title":{"type":"string","title":"Title"},"blocks":{"items":{"oneOf":[{"$ref":"#/components/schemas/PortalParagraph"},{"$ref":"#/components/schemas/PortalTable"},{"$ref":"#/components/schemas/PortalImage"}],"discriminator":{"propertyName":"type","mapping":{"image":"#/components/schemas/PortalImage","paragraph":"#/components/schemas/PortalParagraph","table":"#/components/schemas/PortalTable"}}},"type":"array","title":"Blocks"}},"type":"object","required":["title","blocks"],"title":"PortalChapter"},"PortalImage":{"properties":{"type":{"type":"string","const":"image","title":"Type","default":"image"},"id":{"type":"string","title":"Id"},"caption":{"type":"string","title":"Caption"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["id","caption","width","height"],"title":"PortalImage"},"PortalLiterature":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"source":{"type":"string","title":"Source"},"publishDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Publishdate"},"subjects":{"items":{"type":"string"},"type":"array","title":"Subjects"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"abstract":{"type":"string","title":"Abstract"}},"type":"object","required":["id","title","authors","source","publishDate","subjects","keywords","abstract"],"title":"PortalLiterature"},"PortalLiteraturePage":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/PortalLiterature"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"PortalLiteraturePage"},"PortalParagraph":{"properties":{"type":{"type":"string","const":"paragraph","title":"Type","default":"paragraph"},"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"PortalParagraph"},"PortalQaAnswerRequest":{"properties":{"question":{"type":"string","maxLength":200,"minLength":1,"title":"Question"},"scope":{"type":"string","enum":["ALL","BOOK","LITERATURE"],"title":"Scope","default":"ALL"},"deep":{"type":"boolean","title":"Deep","default":false},"history":{"items":{"$ref":"#/components/schemas/PortalQaTurn"},"type":"array","maxItems":20,"title":"History","default":[]},"sourceIds":{"items":{"type":"string","pattern":"^[0-9A-Za-z_-]{1,64}$"},"type":"array","maxItems":10,"title":"Sourceids","default":[]}},"type":"object","required":["question"],"title":"PortalQaAnswerRequest"},"PortalQaHit":{"properties":{"sourceType":{"type":"string","enum":["BOOK","LITERATURE"],"title":"Sourcetype"},"sourceId":{"type":"string","title":"Sourceid"},"title":{"type":"string","title":"Title"},"author":{"type":"string","title":"Author"},"publisherOrSource":{"type":"string","title":"Publisherorsource"},"publishDate":{"type":"string","title":"Publishdate"},"sectionPath":{"type":"string","title":"Sectionpath"},"text":{"type":"string","title":"Text"},"score":{"type":"number","title":"Score"}},"type":"object","required":["sourceType","sourceId","title","author","publisherOrSource","publishDate","sectionPath","text","score"],"title":"PortalQaHit"},"PortalQaPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PortalQaHit"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PortalQaPage"},"PortalQaTurn":{"properties":{"question":{"type":"string","maxLength":200,"title":"Question"},"answer":{"type":"string","maxLength":4000,"title":"Answer"}},"type":"object","required":["question","answer"],"title":"PortalQaTurn"},"PortalTable":{"properties":{"type":{"type":"string","const":"table","title":"Type","default":"table"},"caption":{"type":"string","title":"Caption"},"headerRows":{"type":"integer","title":"Headerrows"},"rows":{"items":{"items":{"$ref":"#/components/schemas/PortalTableCell"},"type":"array"},"type":"array","title":"Rows"}},"type":"object","required":["caption","headerRows","rows"],"title":"PortalTable"},"PortalTableCell":{"properties":{"text":{"type":"string","title":"Text"},"header":{"type":"boolean","title":"Header"},"rowspan":{"type":"integer","title":"Rowspan"},"colspan":{"type":"integer","title":"Colspan"}},"type":"object","required":["text","header","rowspan","colspan"],"title":"PortalTableCell"},"QaSearchHit":{"properties":{"chunkId":{"type":"string","title":"Chunkid"},"sourceType":{"type":"string","enum":["BOOK","LITERATURE"],"title":"Sourcetype"},"sourceId":{"type":"string","title":"Sourceid"},"sourceVersionId":{"type":"string","title":"Sourceversionid"},"contentSha256":{"type":"string","title":"Contentsha256"},"unitType":{"type":"string","title":"Unittype"},"contextHeader":{"type":"string","title":"Contextheader"},"text":{"type":"string","title":"Text"},"sectionId":{"type":"string","title":"Sectionid"},"sectionPath":{"type":"string","title":"Sectionpath"},"position":{"type":"integer","title":"Position"},"title":{"type":"string","title":"Title"},"author":{"type":"string","title":"Author"},"publisherOrSource":{"type":"string","title":"Publisherorsource"},"publishDate":{"type":"string","title":"Publishdate"},"kind":{"type":"string","title":"Kind"},"score":{"type":"number","title":"Score"}},"type":"object","required":["chunkId","sourceType","sourceId","sourceVersionId","contentSha256","unitType","contextHeader","text","sectionId","sectionPath","position","title","author","publisherOrSource","publishDate","kind","score"],"title":"QaSearchHit"},"QaSearchPage":{"properties":{"candidateCount":{"type":"integer","title":"Candidatecount"},"items":{"items":{"$ref":"#/components/schemas/QaSearchHit"},"type":"array","title":"Items"}},"type":"object","required":["candidateCount","items"],"title":"QaSearchPage"},"ReparseResource":{"properties":{"resourceId":{"type":"string","format":"uuid","title":"Resourceid"}},"additionalProperties":false,"type":"object","required":["resourceId"],"title":"ReparseResource"},"ResourceView":{"properties":{"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"},"title":{"type":"string","title":"Title"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"publisher":{"type":"string","title":"Publisher"},"publish_date":{"type":"string","title":"Publish Date"},"identifier":{"type":"string","title":"Identifier"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"stage":{"type":"string","title":"Stage"},"error":{"type":"string","title":"Error"},"quality":{"additionalProperties":true,"type":"object","title":"Quality"},"active_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Version Id"},"metadata_overrides":{"additionalProperties":true,"type":"object","title":"Metadata Overrides"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","filename","title","authors","keywords","publisher","publish_date","identifier","description","status","stage","error","quality","active_version_id","metadata_overrides","created_at"],"title":"ResourceView"},"ReviewIssues":{"properties":{"issueIds":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Issueids"},"decision":{"type":"string","enum":["ACKNOWLEDGE","REOPEN"],"title":"Decision"},"reviewer":{"type":"string","maxLength":100,"minLength":1,"title":"Reviewer"},"note":{"type":"string","maxLength":2000,"minLength":1,"title":"Note"}},"additionalProperties":false,"type":"object","required":["issueIds","decision","reviewer","note"],"title":"ReviewIssues"},"SearchQuery":{"properties":{"query":{"type":"string","maxLength":200,"minLength":1,"title":"Query"},"resourceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resourceid"},"page":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page","default":1},"pageSize":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Pagesize","default":20}},"additionalProperties":false,"type":"object","required":["query"],"title":"SearchQuery"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VersionView":{"properties":{"id":{"type":"string","title":"Id"},"resource_id":{"type":"string","title":"Resource Id"},"source_sha256":{"type":"string","title":"Source Sha256"},"rules_version":{"type":"string","title":"Rules Version"},"status":{"type":"string","title":"Status"},"stage":{"type":"string","title":"Stage"},"checkpoint":{"type":"string","title":"Checkpoint"},"attempts":{"type":"integer","title":"Attempts"},"error":{"type":"string","title":"Error"},"quality":{"additionalProperties":true,"type":"object","title":"Quality"},"source_metadata":{"additionalProperties":true,"type":"object","title":"Source Metadata"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"reviewed_by":{"type":"string","title":"Reviewed By"},"review_note":{"type":"string","title":"Review Note"},"reviewed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed At"},"published":{"type":"boolean","title":"Published"},"review_decisions":{"additionalProperties":true,"type":"object","title":"Review Decisions"},"events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Events"}},"type":"object","required":["id","resource_id","source_sha256","rules_version","status","stage","checkpoint","attempts","error","quality","source_metadata","created_at","updated_at","reviewed_by","review_note","reviewed_at","published","review_decisions","events"],"title":"VersionView"}}}}