{"openapi":"3.1.0","info":{"title":"私人空間","version":"0.1.0"},"paths":{"/login":{"get":{"summary":"Login Page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Login","operationId":"login_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_login_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"post":{"summary":"Logout","operationId":"logout_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/register":{"get":{"summary":"Register Page","operationId":"register_page_register_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Register","operationId":"register_register_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_register_register_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notes":{"get":{"summary":"List Notes","operationId":"list_notes_api_notes_get","parameters":[{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Note","operationId":"create_note_api_notes_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/words":{"get":{"summary":"List Words","operationId":"list_words_api_words_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Word","operationId":"create_word_api_words_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/words/{wid}":{"patch":{"summary":"Set Known","operationId":"set_known_api_words__wid__patch","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"integer","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnownIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Word","operationId":"delete_word_api_words__wid__delete","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"integer","title":"Wid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shifts":{"get":{"summary":"Get Week","operationId":"get_week_api_shifts_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shifts/{day}":{"put":{"summary":"Set Shift","operationId":"set_shift_api_shifts__day__put","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"string","title":"Day"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookmarks":{"get":{"summary":"List Bookmarks","operationId":"list_bookmarks_api_bookmarks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Bookmark","operationId":"create_bookmark_api_bookmarks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookmarkIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bookmarks/{bid}":{"delete":{"summary":"Delete Bookmark","operationId":"delete_bookmark_api_bookmarks__bid__delete","parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"integer","title":"Bid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vault/unlock":{"post":{"summary":"Unlock","operationId":"unlock_api_vault_unlock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vault":{"get":{"summary":"Vault Page","operationId":"vault_page_vault_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/vault/notes":{"get":{"summary":"List Notes","operationId":"list_notes_api_vault_notes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Note","operationId":"create_note_api_vault_notes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultNoteIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vault/notes/{nid}":{"put":{"summary":"Update Note","operationId":"update_note_api_vault_notes__nid__put","parameters":[{"name":"nid","in":"path","required":true,"schema":{"type":"integer","title":"Nid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Note","operationId":"delete_note_api_vault_notes__nid__delete","parameters":[{"name":"nid","in":"path","required":true,"schema":{"type":"integer","title":"Nid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clipboard":{"get":{"summary":"List Clips","operationId":"list_clips_api_clipboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Upload","operationId":"upload_api_clipboard_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_api_clipboard_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clipboard/quota":{"get":{"summary":"Quota","description":"未登录返回今日剩余免费次数;登录返回 null(不限)。\n仅当 L3 会话有效时附带 vault 标记——对其他任何人响应形状与 L1 一致。","operationId":"quota_api_clipboard_quota_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/clipboard/take":{"post":{"summary":"Take","operationId":"take_api_clipboard_take_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clipboard/dl/{token}":{"get":{"summary":"Download","description":"凭 take 签发的短时令牌流式下载大文件。令牌 10 分钟过期。","operationId":"download_api_clipboard_dl__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clipboard/{cid}":{"delete":{"summary":"Delete Clip","operationId":"delete_clip_api_clipboard__cid__delete","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fx/rates":{"get":{"summary":"Rates","operationId":"rates_api_fx_rates_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/net/ping":{"get":{"summary":"Ping","description":"极小响应,供前端测往返延迟。","operationId":"ping_api_net_ping_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/net/down":{"get":{"summary":"Download","operationId":"download_api_net_down_get","parameters":[{"name":"bytes","in":"query","required":false,"schema":{"type":"integer","default":5242880,"title":"Bytes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/net/up":{"post":{"summary":"Upload","operationId":"upload_api_net_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/net/info":{"get":{"summary":"Info","description":"只回显本次请求可见的信息,不做任何记录或第三方查询。","operationId":"info_api_net_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/net/check":{"post":{"summary":"Check","operationId":"check_api_net_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/summary/status":{"get":{"summary":"Status","description":"どのバックエンドで動くかを画面に出すため。鍵そのものは返さない。","operationId":"status_api_summary_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/summary/intro":{"post":{"summary":"Intro","operationId":"intro_api_summary_intro_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntroIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sky":{"get":{"summary":"Get All","description":"开场一次性取回,少一轮往返。未登录时 require_owner_api 返回 401,\n前端据此静默退回本地模式。","operationId":"get_all_api_sky_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sky/{key}":{"put":{"summary":"Put One","operationId":"put_one_api_sky__key__put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/assets/{name}":{"get":{"summary":"Private Asset","operationId":"private_asset_assets__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/c/{code}":{"get":{"summary":"Clip Link","description":"分享短链:跳到剪贴板页并预填提取码。","operationId":"clip_link_c__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/robots.txt":{"get":{"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sitemap.xml":{"get":{"summary":"Sitemap","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/record":{"get":{"summary":"Record Page","operationId":"record_page_record_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools":{"get":{"summary":"Tools Menu","operationId":"tools_menu_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Page","operationId":"page__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sky":{"get":{"summary":"<Lambda>","operationId":"_lambda__sky_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/calc":{"get":{"summary":"Page","operationId":"page_tools_calc_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/graph":{"get":{"summary":"Page","operationId":"page_tools_graph_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/qr":{"get":{"summary":"Page","operationId":"page_tools_qr_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/unit":{"get":{"summary":"Page","operationId":"page_tools_unit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/image":{"get":{"summary":"Page","operationId":"page_tools_image_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/pdf":{"get":{"summary":"Page","operationId":"page_tools_pdf_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/color":{"get":{"summary":"Page","operationId":"page_tools_color_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/emotion":{"get":{"summary":"Page","operationId":"page_tools_emotion_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/net":{"get":{"summary":"Page","operationId":"page_tools_net_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/fx":{"get":{"summary":"Page","operationId":"page_tools_fx_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/clipboard":{"get":{"summary":"Page","operationId":"page_tools_clipboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/games":{"get":{"summary":"Games Page","operationId":"games_page_games_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/summary":{"get":{"summary":"Page","operationId":"page_tools_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/words":{"get":{"summary":"Page","operationId":"page_tools_words_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/shifts":{"get":{"summary":"Page","operationId":"page_tools_shifts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/bookmarks":{"get":{"summary":"Page","operationId":"page_tools_bookmarks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_login_login_post":{"properties":{"username":{"type":"string","title":"Username","default":""},"password":{"type":"string","title":"Password","default":""}},"type":"object","title":"Body_login_login_post"},"Body_register_register_post":{"properties":{"username":{"type":"string","title":"Username","default":""},"password":{"type":"string","title":"Password","default":""}},"type":"object","title":"Body_register_register_post"},"Body_upload_api_clipboard_post":{"properties":{"text":{"type":"string","title":"Text","default":""},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"ttl_hours":{"type":"number","title":"Ttl Hours","default":72},"max_reads":{"type":"integer","title":"Max Reads","default":1},"password":{"type":"string","title":"Password","default":""}},"type":"object","title":"Body_upload_api_clipboard_post"},"BookmarkIn":{"properties":{"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"}},"type":"object","required":["title","url"],"title":"BookmarkIn"},"CheckIn":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CheckIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IntroIn":{"properties":{"purpose":{"type":"string","title":"Purpose","default":"discharge"},"admit_date":{"type":"string","maxLength":20,"title":"Admit Date","default":""},"end_date":{"type":"string","maxLength":20,"title":"End Date","default":""},"onset":{"type":"string","maxLength":4000,"title":"Onset","default":""},"course":{"type":"string","maxLength":4000,"title":"Course","default":""},"current":{"type":"string","maxLength":4000,"title":"Current","default":""},"handover":{"type":"string","maxLength":4000,"title":"Handover","default":""}},"type":"object","title":"IntroIn"},"KnownIn":{"properties":{"known":{"type":"boolean","title":"Known"}},"type":"object","required":["known"],"title":"KnownIn"},"NoteIn":{"properties":{"content":{"type":"string","title":"Content"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["content"],"title":"NoteIn"},"ShiftIn":{"properties":{"type":{"type":"string","title":"Type"}},"type":"object","required":["type"],"title":"ShiftIn"},"TakeIn":{"properties":{"code":{"type":"string","title":"Code"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","required":["code"],"title":"TakeIn"},"UnlockIn":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"UnlockIn"},"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"},"VaultNoteIn":{"properties":{"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"VaultNoteIn"},"WordIn":{"properties":{"word":{"type":"string","title":"Word"},"meaning":{"type":"string","title":"Meaning"}},"type":"object","required":["word","meaning"],"title":"WordIn"}}}}