{"openapi":"3.1.0","info":{"title":"GPT Team 管理系统","description":"ChatGPT Team 账号管理和兑换码自动邀请系统","version":"0.1.0"},"paths":{"/":{"get":{"tags":["user"],"summary":"Home Page","description":"用户首页","operationId":"home_page__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Home Page","description":"用户首页","operationId":"home_page__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview":{"get":{"tags":["user"],"summary":"Interview Home","description":"面试资料站首页。","operationId":"interview_home_interview_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/section/{section_key}":{"get":{"tags":["user"],"summary":"Interview Section","description":"面试资料站分组页。","operationId":"interview_section_interview_section__section_key__get","parameters":[{"name":"section_key","in":"path","required":true,"schema":{"type":"string","title":"Section Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/project/{project_key}":{"get":{"tags":["user"],"summary":"Interview Project","description":"项目经验空间。","operationId":"interview_project_interview_project__project_key__get","parameters":[{"name":"project_key","in":"path","required":true,"schema":{"type":"string","title":"Project Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/project/{project_key}/skill-architecture":{"head":{"tags":["user"],"summary":"Project Skill Architecture","description":"项目 Skill 架构独立页面。","operationId":"project_skill_architecture_interview_project__project_key__skill_architecture_head","parameters":[{"name":"project_key","in":"path","required":true,"schema":{"type":"string","title":"Project Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["user"],"summary":"Project Skill Architecture","description":"项目 Skill 架构独立页面。","operationId":"project_skill_architecture_interview_project__project_key__skill_architecture_head","parameters":[{"name":"project_key","in":"path","required":true,"schema":{"type":"string","title":"Project Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/ai-skill-system-guide":{"get":{"tags":["user"],"summary":"Ai Skill System Guide","description":"AI 研发 Skill 体系现场讲解页。","operationId":"ai_skill_system_guide_interview_ai_skill_system_guide_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Ai Skill System Guide","description":"AI 研发 Skill 体系现场讲解页。","operationId":"ai_skill_system_guide_interview_ai_skill_system_guide_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/ai-skill-system-practical-guide":{"get":{"tags":["user"],"summary":"Ai Skill System Practical Guide","description":"AI 研发 Skill 体系实际项目操作与验证页。","operationId":"ai_skill_system_practical_guide_interview_ai_skill_system_practical_guide_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Ai Skill System Practical Guide","description":"AI 研发 Skill 体系实际项目操作与验证页。","operationId":"ai_skill_system_practical_guide_interview_ai_skill_system_practical_guide_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/dgj2":{"get":{"tags":["user"],"summary":"Dgj2 Business Map","description":"DGJ2 业务梳理模块入口。","operationId":"dgj2_business_map_dgj2_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Dgj2 Business Map","description":"DGJ2 业务梳理模块入口。","operationId":"dgj2_business_map_dgj2_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/doc/{doc_slug}":{"get":{"tags":["user"],"summary":"Interview Doc","description":"面试资料站文章页。","operationId":"interview_doc_interview_doc__doc_slug__get","parameters":[{"name":"doc_slug","in":"path","required":true,"schema":{"type":"string","title":"Doc Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/api/search":{"get":{"tags":["user"],"summary":"Interview Search","description":"知识库全文搜索。","operationId":"interview_search_interview_api_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"project","in":"query","required":false,"schema":{"type":"string","default":"","title":"Project"}},{"name":"doc_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Doc Type"}},{"name":"task","in":"query","required":false,"schema":{"type":"string","default":"","title":"Task"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/order-sync-review":{"get":{"tags":["user"],"summary":"Order Sync Review","description":"订单同步讨论页。","operationId":"order_sync_review_interview_order_sync_review_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Order Sync Review","description":"订单同步讨论页。","operationId":"order_sync_review_interview_order_sync_review_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/probation-review/speech":{"get":{"tags":["user"],"summary":"Probation Speech","operationId":"probation_speech_interview_probation_review_speech_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Probation Speech","operationId":"probation_speech_interview_probation_review_speech_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/probation-review/speech/pptx":{"get":{"tags":["user"],"summary":"Probation Speech Pptx","description":"Keep the previously shared link useful as an online viewer.","operationId":"probation_speech_pptx_interview_probation_review_speech_pptx_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["user"],"summary":"Probation Speech Pptx","description":"Keep the previously shared link useful as an online viewer.","operationId":"probation_speech_pptx_interview_probation_review_speech_pptx_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/interview/probation-review/speech/view":{"get":{"tags":["user"],"summary":"Probation Speech View","description":"Show the deck as protected slide images, with no public static files.","operationId":"probation_speech_view_interview_probation_review_speech_view_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Probation Speech View","description":"Show the deck as protected slide images, with no public static files.","operationId":"probation_speech_view_interview_probation_review_speech_view_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/probation-review/speech/slides/{slide_number}.png":{"head":{"tags":["user"],"summary":"Probation Speech Slide","description":"Serve a single preview image only after the admin-session check.","operationId":"probation_speech_slide_interview_probation_review_speech_slides__slide_number__png_head","parameters":[{"name":"slide_number","in":"path","required":true,"schema":{"type":"integer","title":"Slide Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["user"],"summary":"Probation Speech Slide","description":"Serve a single preview image only after the admin-session check.","operationId":"probation_speech_slide_interview_probation_review_speech_slides__slide_number__png_head","parameters":[{"name":"slide_number","in":"path","required":true,"schema":{"type":"integer","title":"Slide Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/probation-review/speech/download":{"get":{"tags":["user"],"summary":"Probation Speech Download","description":"Only an admin session may download the original probation deck.","operationId":"probation_speech_download_interview_probation_review_speech_download_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["user"],"summary":"Probation Speech Download","description":"Only an admin session may download the original probation deck.","operationId":"probation_speech_download_interview_probation_review_speech_download_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/interview/probation-review/speech/memory":{"get":{"tags":["user"],"summary":"Probation Speech Memory","description":"A private, slide-by-slide rehearsal page backed by the speech source.","operationId":"probation_speech_memory_interview_probation_review_speech_memory_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Probation Speech Memory","description":"A private, slide-by-slide rehearsal page backed by the speech source.","operationId":"probation_speech_memory_interview_probation_review_speech_memory_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/probation-review/speech/legacy":{"get":{"tags":["user"],"summary":"Probation Speech Legacy","operationId":"probation_speech_legacy_interview_probation_review_speech_legacy_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Probation Speech Legacy","operationId":"probation_speech_legacy_interview_probation_review_speech_legacy_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/probation-review":{"get":{"tags":["user"],"summary":"Probation Review","description":"试用期述职准备页。","operationId":"probation_review_interview_probation_review_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Probation Review","description":"试用期述职准备页。","operationId":"probation_review_interview_probation_review_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/api/probation-dashboard":{"get":{"tags":["user"],"summary":"Probation Dashboard","description":"汇总六个月述职档案、阶段成果、月报和每日自动总结。","operationId":"probation_dashboard_interview_api_probation_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/interview/api/probation-profile":{"put":{"tags":["user"],"summary":"Save Probation Profile","description":"保存述职日期、主线、核心故事和剩余阶段计划。","operationId":"save_probation_profile_interview_api_probation_profile_put","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/interview/api/review-month/{month_key}":{"put":{"tags":["user"],"summary":"Save Review Month","description":"保存某个月的成果总结。","operationId":"save_review_month_interview_api_review_month__month_key__put","parameters":[{"name":"month_key","in":"path","required":true,"schema":{"type":"string","title":"Month Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/api/review-phase/{phase_key}":{"put":{"tags":["user"],"summary":"Save Review Phase","description":"保存六个月述职中某个阶段的成果总结。","operationId":"save_review_phase_interview_api_review_phase__phase_key__put","parameters":[{"name":"phase_key","in":"path","required":true,"schema":{"type":"string","title":"Phase Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/review-calendar":{"get":{"tags":["user"],"summary":"Review Calendar","description":"每日/每周总结日历。","operationId":"review_calendar_interview_review_calendar_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["user"],"summary":"Review Calendar","description":"每日/每周总结日历。","operationId":"review_calendar_interview_review_calendar_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/interview/api/review-notes":{"get":{"tags":["user"],"summary":"List Review Notes","description":"按日期范围读取日历标记。","operationId":"list_review_notes_interview_api_review_notes_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/api/review-note/{day_key}":{"get":{"tags":["user"],"summary":"Get Review Note","description":"读取某天和所在周的总结。","operationId":"get_review_note_interview_api_review_note__day_key__get","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["user"],"summary":"Save Review Note","description":"保存某天和所在周的总结。","operationId":"save_review_note_interview_api_review_note__day_key__put","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/redeem/verify":{"post":{"tags":["redeem"],"summary":"Verify Code","description":"验证兑换码并返回可用 Team 列表\n\nArgs:\n    request: 验证请求\n    db: 数据库会话\n\nReturns:\n    验证结果和可用 Team 列表","operationId":"verify_code_redeem_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyCodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/redeem/confirm":{"post":{"tags":["redeem"],"summary":"Confirm Redeem","description":"确认兑换并加入 Team\n\nArgs:\n    request: 兑换请求\n    db: 数据库会话\n\nReturns:\n    兑换结果","operationId":"confirm_redeem_redeem_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/warranty/check":{"post":{"tags":["warranty"],"summary":"Check Warranty","description":"检查质保状态\n\n用户可以通过邮箱或兑换码查询质保状态","operationId":"check_warranty_warranty_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/warranty/enable-device-auth":{"post":{"tags":["warranty"],"summary":"Enable Device Auth","description":"用户一键开启设备身份验证","operationId":"enable_device_auth_warranty_enable_device_auth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableDeviceAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"管理员登录\n\nArgs:\n    request: FastAPI Request 对象\n    login_data: 登录数据\n    db: 数据库会话\n\nReturns:\n    登录结果","operationId":"login_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/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/knowledge-login":{"post":{"tags":["auth"],"summary":"Knowledge Login","description":"验证知识库独立访问密码，只创建知识库访问 session。","operationId":"knowledge_login_auth_knowledge_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/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/knowledge-logout":{"post":{"tags":["auth"],"summary":"Knowledge Logout","description":"仅清除知识库访问权限，不影响后台管理员登录。","operationId":"knowledge_logout_auth_knowledge_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutResponse"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"管理员登出\n\nArgs:\n    request: FastAPI Request 对象\n\nReturns:\n    登出结果","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutResponse"}}}}}}},"/auth/change-password":{"post":{"tags":["auth"],"summary":"Change Password","description":"修改管理员密码\n\nArgs:\n    request: FastAPI Request 对象\n    password_data: 密码数据\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    修改结果","operationId":"change_password_auth_change_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/ChangePasswordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/status":{"get":{"tags":["auth"],"summary":"Get Auth Status","description":"获取认证状态\n\nArgs:\n    request: FastAPI Request 对象\n\nReturns:\n    认证状态","operationId":"get_auth_status_auth_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/":{"get":{"tags":["admin"],"summary":"Admin Dashboard","description":"管理员面板首页","operationId":"admin_dashboard_admin__get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Per Page"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/delete":{"post":{"tags":["admin"],"summary":"Delete Team","description":"删除 Team\n\nArgs:\n    team_id: Team ID\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    删除结果","operationId":"delete_team_admin_teams__team_id__delete_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/info":{"get":{"tags":["admin"],"summary":"Get Team Info","description":"获取 Team 详情 (包含解密后的 Token)","operationId":"get_team_info_admin_teams__team_id__info_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/update":{"post":{"tags":["admin"],"summary":"Update Team","description":"更新 Team 信息","operationId":"update_team_admin_teams__team_id__update_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/import":{"post":{"tags":["admin"],"summary":"Team Import","description":"处理 Team 导入\n\nArgs:\n    import_data: 导入数据\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    导入结果","operationId":"team_import_admin_teams_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/members/list":{"get":{"tags":["admin"],"summary":"Team Members List","description":"获取 Team 成员列表 (JSON)\n\nArgs:\n    team_id: Team ID\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    成员列表 JSON","operationId":"team_members_list_admin_teams__team_id__members_list_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/members/add":{"post":{"tags":["admin"],"summary":"Add Team Member","description":"添加 Team 成员\n\nArgs:\n    team_id: Team ID\n    member_data: 成员数据\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    添加结果","operationId":"add_team_member_admin_teams__team_id__members_add_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/members/{user_id}/delete":{"post":{"tags":["admin"],"summary":"Delete Team Member","description":"删除 Team 成员\n\nArgs:\n    team_id: Team ID\n    user_id: 用户 ID\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    删除结果","operationId":"delete_team_member_admin_teams__team_id__members__user_id__delete_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/invites/revoke":{"post":{"tags":["admin"],"summary":"Revoke Team Invite","description":"撤回 Team 邀请\n\nArgs:\n    team_id: Team ID\n    member_data: 成员数据 (包含 email)\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    撤回结果","operationId":"revoke_team_invite_admin_teams__team_id__invites_revoke_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/{team_id}/enable-device-auth":{"post":{"tags":["admin"],"summary":"Enable Team Device Auth","description":"开启 Team 的设备代码身份验证\n\nArgs:\n    team_id: Team ID\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    结果","operationId":"enable_team_device_auth_admin_teams__team_id__enable_device_auth_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/batch-refresh":{"post":{"tags":["admin"],"summary":"Batch Refresh Teams","description":"批量刷新 Team 信息","operationId":"batch_refresh_teams_admin_teams_batch_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/batch-delete":{"post":{"tags":["admin"],"summary":"Batch Delete Teams","description":"批量删除 Team","operationId":"batch_delete_teams_admin_teams_batch_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/teams/batch-enable-device-auth":{"post":{"tags":["admin"],"summary":"Batch Enable Device Auth","description":"批量开启设备代码身份验证","operationId":"batch_enable_device_auth_admin_teams_batch_enable_device_auth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/codes":{"get":{"tags":["admin"],"summary":"Codes List Page","description":"兑换码列表页面\n\nArgs:\n    request: FastAPI Request 对象\n    page: 页码\n    per_page: 每页数量\n    search: 搜索关键词\n    status_filter: 状态筛选\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    兑换码列表页面 HTML","operationId":"codes_list_page_admin_codes_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Per Page"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/codes/generate":{"post":{"tags":["admin"],"summary":"Generate Codes","description":"处理兑换码生成\n\nArgs:\n    generate_data: 生成数据\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    生成结果","operationId":"generate_codes_admin_codes_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeGenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/codes/{code}/delete":{"post":{"tags":["admin"],"summary":"Delete Code","description":"删除兑换码\n\nArgs:\n    code: 兑换码\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    删除结果","operationId":"delete_code_admin_codes__code__delete_post","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"}}}}}}},"/admin/codes/export":{"get":{"tags":["admin"],"summary":"Export Codes","description":"导出兑换码为Excel文件\n\nArgs:\n    search: 搜索关键词\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    兑换码Excel文件","operationId":"export_codes_admin_codes_export_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/codes/{code}/update":{"post":{"tags":["admin"],"summary":"Update Code","description":"更新兑换码信息","operationId":"update_code_admin_codes__code__update_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/codes/bulk-update":{"post":{"tags":["admin"],"summary":"Bulk Update Codes","description":"批量更新兑换码信息","operationId":"bulk_update_codes_admin_codes_bulk_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCodeUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/records":{"get":{"tags":["admin"],"summary":"Records Page","description":"使用记录页面\n\nArgs:\n    request: FastAPI Request 对象\n    email: 邮箱筛选\n    code: 兑换码筛选\n    team_id: Team ID 筛选\n    start_date: 开始日期\n    end_date: 结束日期\n    page: 页码\n    per_page: 每页数量\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    使用记录页面 HTML","operationId":"records_page_admin_records_get","parameters":[{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"1","title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/records/{record_id}/withdraw":{"post":{"tags":["admin"],"summary":"Withdraw Record","description":"撤中使用记录 (管理员功能)\n\nArgs:\n    record_id: 记录 ID\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    结果 JSON","operationId":"withdraw_record_admin_records__record_id__withdraw_post","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settings":{"get":{"tags":["admin"],"summary":"Settings Page","description":"系统设置页面\n\nArgs:\n    request: FastAPI Request 对象\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    系统设置页面 HTML","operationId":"settings_page_admin_settings_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/settings/proxy":{"post":{"tags":["admin"],"summary":"Update Proxy Config","description":"更新代理配置\n\nArgs:\n    proxy_data: 代理配置数据\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    更新结果","operationId":"update_proxy_config_admin_settings_proxy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settings/log-level":{"post":{"tags":["admin"],"summary":"Update Log Level","description":"更新日志级别\n\nArgs:\n    log_data: 日志级别数据\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    更新结果","operationId":"update_log_level_admin_settings_log_level_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogLevelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settings/webhook":{"post":{"tags":["admin"],"summary":"Update Webhook Settings","description":"更新 Webhook 和 API Key 设置","operationId":"update_webhook_settings_admin_settings_webhook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teams/{team_id}/refresh":{"get":{"tags":["api"],"summary":"Refresh Team","description":"刷新 Team 信息\n\nArgs:\n    team_id: Team ID\n    force: 是否强制刷新 Token\n    db: 数据库会话\n    current_user: 当前用户（需要登录）\n\nReturns:\n    刷新结果","operationId":"refresh_team_api_teams__team_id__refresh_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/":{"get":{"tags":["codex-mobile"],"summary":"Codex Mobile Page","description":"Render the mobile viewer page. Admin login is required.","operationId":"codex_mobile_page_codex__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["codex-mobile"],"summary":"Codex Mobile Page","description":"Render the mobile viewer page. Admin login is required.","operationId":"codex_mobile_page_codex__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/codex/api/threads":{"get":{"tags":["codex-mobile"],"summary":"List Threads","description":"List synced Codex threads.","operationId":"list_threads_codex_api_threads_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":80,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/directories":{"get":{"tags":["codex-mobile"],"summary":"List Working Directories","description":"List distinct working directories already present in synced threads.","operationId":"list_working_directories_codex_api_directories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/threads/{thread_id}":{"get":{"tags":["codex-mobile"],"summary":"Get Thread","description":"Return bounded message/activity pages, fetching older local history on demand.","operationId":"get_thread_codex_api_threads__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"before","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Before"}},{"name":"activity_limit","in":"query","required":false,"schema":{"type":"integer","default":40,"title":"Activity Limit"}},{"name":"message_before","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Message Before"}},{"name":"message_limit","in":"query","required":false,"schema":{"type":"integer","default":40,"title":"Message Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/tasks/{task_id}/events":{"get":{"tags":["codex-mobile"],"summary":"Get Task Events","description":"HTTP fallback for inspecting or recovering a missed realtime window.","operationId":"get_task_events_codex_api_tasks__task_id__events_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"after","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/threads/{thread_id}/live-events":{"get":{"tags":["codex-mobile"],"summary":"Get Thread Live Events","description":"HTTP fallback for desktop rollout progress when the browser socket reconnects.","operationId":"get_thread_live_events_codex_api_threads__thread_id__live_events_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"after","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/tasks/{task_id}/user-input":{"post":{"tags":["codex-mobile"],"summary":"Answer Task User Input","description":"Return a browser answer to the exact pending app-server request.","operationId":"answer_task_user_input_codex_api_tasks__task_id__user_input_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/threads/{thread_id}/user-input":{"post":{"tags":["codex-mobile"],"summary":"Answer Thread User Input","description":"Write a web answer back through the running desktop app-server shim.","operationId":"answer_thread_user_input_codex_api_threads__thread_id__user_input_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/file":{"post":{"tags":["codex-mobile"],"summary":"Read Local File","description":"Stream one user-selected local image or presentation through the authenticated Mac syncer.","operationId":"read_local_file_codex_api_file_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/tasks":{"post":{"tags":["codex-mobile"],"summary":"Create Task","description":"Queue a prompt for the trusted Mac worker.","operationId":"create_task_codex_api_tasks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"tags":["codex-mobile"],"summary":"List Tasks","description":"List recent prompt execution states for the mobile UI.","operationId":"list_tasks_codex_api_tasks_get","parameters":[{"name":"thread_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Thread Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/model-options":{"get":{"tags":["codex-mobile"],"summary":"Get Model Options","description":"Return the model and reasoning options supported by the current Codex CLI bundle.","operationId":"get_model_options_codex_api_model_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/status":{"get":{"tags":["codex-mobile"],"summary":"Get Mobile Status","description":"Return a compact view of the sync and worker pipeline for the mobile UI.","operationId":"get_mobile_status_codex_api_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/threads/{thread_id}/desktop-queue":{"get":{"tags":["codex-mobile"],"summary":"Get Desktop Queue","description":"Read the active Codex Desktop thread queue through its local app-server.","operationId":"get_desktop_queue_codex_api_threads__thread_id__desktop_queue_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/threads/{thread_id}/desktop-queue/action":{"post":{"tags":["codex-mobile"],"summary":"Update Desktop Queue","description":"Apply a narrowly allow-listed operation to the same native desktop queue.","operationId":"update_desktop_queue_codex_api_threads__thread_id__desktop_queue_action_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/threads/{thread_id}/desktop-steer":{"post":{"tags":["codex-mobile"],"summary":"Steer Desktop Turn","description":"Send guidance to the currently active desktop turn, never queue it silently.","operationId":"steer_desktop_turn_codex_api_threads__thread_id__desktop_steer_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/tasks/{task_id}/cancel":{"post":{"tags":["codex-mobile"],"summary":"Cancel Task","description":"Cancel a task that has not yet been claimed by the Mac worker.","operationId":"cancel_task_codex_api_tasks__task_id__cancel_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/tasks/{task_id}/retry":{"post":{"tags":["codex-mobile"],"summary":"Retry Task","description":"Requeue a failed or canceled task while preserving its prompt and attachments.","operationId":"retry_task_codex_api_tasks__task_id__retry_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/auth/state":{"get":{"tags":["codex-mobile"],"summary":"Get Auth State","description":"Return the latest local codex-auth account snapshot.","operationId":"get_auth_state_codex_api_auth_state_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/auth/refresh":{"post":{"tags":["codex-mobile"],"summary":"Refresh Auth State","description":"Queue a local codex-auth account refresh.","operationId":"refresh_auth_state_codex_api_auth_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/worker/tasks/claim":{"post":{"tags":["codex-mobile"],"summary":"Claim Task","description":"Atomically claim the oldest queued task for a trusted local worker.","operationId":"claim_task_codex_api_worker_tasks_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/worker/tasks/{task_id}/desktop-queue":{"post":{"tags":["codex-mobile"],"summary":"Enqueue Task In Desktop Queue","description":"Submit a claimed resume task to the already-running Desktop app-server.","operationId":"enqueue_task_in_desktop_queue_codex_api_worker_tasks__task_id__desktop_queue_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/worker/tasks/{task_id}/finish":{"post":{"tags":["codex-mobile"],"summary":"Finish Task","description":"Store a local worker result without exposing it to unauthenticated callers.","operationId":"finish_task_codex_api_worker_tasks__task_id__finish_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/worker/tasks/{task_id}/attachments/{attachment_id}":{"get":{"tags":["codex-mobile"],"summary":"Download Task Attachment","description":"Let the trusted local worker download one queued image attachment.","operationId":"download_task_attachment_codex_api_worker_tasks__task_id__attachments__attachment_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/worker/auth/claim":{"post":{"tags":["codex-mobile"],"summary":"Claim Auth Action","description":"Atomically claim the oldest queued codex-auth action for a trusted local worker.","operationId":"claim_auth_action_codex_api_worker_auth_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/worker/auth/{action_id}/finish":{"post":{"tags":["codex-mobile"],"summary":"Finish Auth Action","description":"Store local codex-auth action results and the latest account snapshot.","operationId":"finish_auth_action_codex_api_worker_auth__action_id__finish_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/codex/api/sync":{"post":{"tags":["codex-mobile"],"summary":"Sync Threads","description":"Receive sanitized Codex thread snapshots from the local sync script.","operationId":"sync_threads_codex_api_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/codex/api/sync-activity":{"post":{"tags":["codex-mobile"],"summary":"Sync Thread Activity","description":"Receive ordering metadata plus changed rollout messages.","operationId":"sync_thread_activity_codex_api_sync_activity_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/antigravity/":{"get":{"tags":["antigravity-mobile"],"summary":"Antigravity Page","description":"Render the Antigravity desktop replication page. Admin login required.","operationId":"antigravity_page_antigravity__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["antigravity-mobile"],"summary":"Antigravity Page","description":"Render the Antigravity desktop replication page. Admin login required.","operationId":"antigravity_page_antigravity__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/antigravity/api/threads":{"get":{"tags":["antigravity-mobile"],"summary":"List Threads","description":"List synchronized Antigravity conversations.","operationId":"list_threads_antigravity_api_threads_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"workspace","in":"query","required":false,"schema":{"type":"string","default":"","title":"Workspace"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/antigravity/api/threads/{cid}":{"delete":{"tags":["antigravity-mobile"],"summary":"Delete Thread","description":"Delete a thread from the synchronized store.","operationId":"delete_thread_antigravity_api_threads__cid__delete","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/antigravity/api/threads/{conversation_id}":{"get":{"tags":["antigravity-mobile"],"summary":"Get Thread Detail","description":"Get full details of an Antigravity conversation, its step timeline and artifacts.\n\nSupports bounded/paginated step fetching (default: latest 80 steps) to guarantee\nsub-second initial loading for long conversations with thousands of steps.","operationId":"get_thread_detail_antigravity_api_threads__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":80,"title":"Limit"}},{"name":"before_index","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Before Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/antigravity/api/threads/{conversation_id}/steps":{"get":{"tags":["antigravity-mobile"],"summary":"Get Incremental Steps","description":"Retrieve incremental steps for live streaming OR older historical steps.","operationId":"get_incremental_steps_antigravity_api_threads__conversation_id__steps_get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"after_index","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"After Index"}},{"name":"before_index","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Before Index"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":80,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/antigravity/api/threads/{conversation_id}/artifacts/{artifact_name}":{"get":{"tags":["antigravity-mobile"],"summary":"Get Artifact Content","description":"Retrieve full content of a specific artifact.","operationId":"get_artifact_content_antigravity_api_threads__conversation_id__artifacts__artifact_name__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"artifact_name","in":"path","required":true,"schema":{"type":"string","title":"Artifact Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/antigravity/api/directories":{"get":{"tags":["antigravity-mobile"],"summary":"List Directories","description":"List distinct workspace directories available across Antigravity sessions.","operationId":"list_directories_antigravity_api_directories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/antigravity/api/model-options":{"get":{"tags":["antigravity-mobile"],"summary":"Get Model Options","description":"Get Antigravity model list, quota summaries, and slash commands.","operationId":"get_model_options_antigravity_api_model_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/antigravity/api/tasks":{"post":{"tags":["antigravity-mobile"],"summary":"Create Task","description":"Submit a task to be processed by Antigravity Mac Worker.","operationId":"create_task_antigravity_api_tasks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/antigravity/api/tasks/claim":{"post":{"tags":["antigravity-mobile"],"summary":"Claim Task","description":"Worker claims next available queued task.","operationId":"claim_task_antigravity_api_tasks_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/antigravity/api/tasks/{task_id}/finish":{"post":{"tags":["antigravity-mobile"],"summary":"Finish Task","description":"Worker reports task finish or error.","operationId":"finish_task_antigravity_api_tasks__task_id__finish_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/antigravity/api/sync":{"post":{"tags":["antigravity-mobile"],"summary":"Sync Antigravity Data","description":"Receive synchronized Antigravity threads, transcripts and artifacts from Mac.","operationId":"sync_antigravity_data_antigravity_api_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/opencode/":{"get":{"tags":["opencode-mobile"],"summary":"Opencode Page","operationId":"opencode_page_opencode__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["opencode-mobile"],"summary":"Opencode Page","operationId":"opencode_page_opencode__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/opencode/legacy":{"get":{"tags":["opencode-mobile"],"summary":"Opencode Legacy Page","description":"Keep the queue-based renderer available as an emergency fallback.","operationId":"opencode_legacy_page_opencode_legacy_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["opencode-mobile"],"summary":"Opencode Legacy Page","description":"Keep the queue-based renderer available as an emergency fallback.","operationId":"opencode_legacy_page_opencode_legacy_head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/opencode/api/projects":{"get":{"tags":["opencode-mobile"],"summary":"List Projects","operationId":"list_projects_opencode_api_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/opencode/api/sessions":{"get":{"tags":["opencode-mobile"],"summary":"List Sessions","operationId":"list_sessions_opencode_api_sessions_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":80,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode/api/sessions/{session_id}":{"get":{"tags":["opencode-mobile"],"summary":"Get Session","operationId":"get_session_opencode_api_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"log_limit","in":"query","required":false,"schema":{"type":"integer","default":5000,"title":"Log Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode/api/sessions/{session_id}/events":{"get":{"tags":["opencode-mobile"],"summary":"Stream Session Events","description":"Stream normalized timeline events without reloading the full log.","operationId":"stream_session_events_opencode_api_sessions__session_id__events_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"after","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode/api/tasks":{"post":{"tags":["opencode-mobile"],"summary":"Create Task","operationId":"create_task_opencode_api_tasks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"tags":["opencode-mobile"],"summary":"List Tasks","operationId":"list_tasks_opencode_api_tasks_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":80,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode/api/status":{"get":{"tags":["opencode-mobile"],"summary":"Get Status","operationId":"get_status_opencode_api_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/opencode/api/tasks/{task_id}/cancel":{"post":{"tags":["opencode-mobile"],"summary":"Cancel Task","operationId":"cancel_task_opencode_api_tasks__task_id__cancel_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode/api/tasks/{task_id}/retry":{"post":{"tags":["opencode-mobile"],"summary":"Retry Task","operationId":"retry_task_opencode_api_tasks__task_id__retry_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode/api/worker/tasks/claim":{"post":{"tags":["opencode-mobile"],"summary":"Claim Task","operationId":"claim_task_opencode_api_worker_tasks_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/opencode/api/worker/tasks/{task_id}/log":{"post":{"tags":["opencode-mobile"],"summary":"Append Log","operationId":"append_log_opencode_api_worker_tasks__task_id__log_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode/api/worker/tasks/{task_id}/finish":{"post":{"tags":["opencode-mobile"],"summary":"Finish Task","operationId":"finish_task_opencode_api_worker_tasks__task_id__finish_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/":{"get":{"tags":["opencode-native"],"summary":"Native Page","operationId":"native_page_opencode_native__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"head":{"tags":["opencode-native"],"summary":"Native Page","operationId":"native_page_opencode_native__head","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/opencode-native/api/projects":{"get":{"tags":["opencode-native"],"summary":"List Projects","operationId":"list_projects_opencode_native_api_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/opencode-native/api/sessions":{"get":{"tags":["opencode-native"],"summary":"List Sessions","operationId":"list_sessions_opencode_native_api_sessions_get","parameters":[{"name":"project","in":"query","required":false,"schema":{"type":"string","default":"","title":"Project"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions":{"post":{"tags":["opencode-native"],"summary":"Create Session","operationId":"create_session_opencode_native_api_projects__project__sessions_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}":{"get":{"tags":["opencode-native"],"summary":"Get Session","operationId":"get_session_opencode_native_api_projects__project__sessions__session_id__get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["opencode-native"],"summary":"Delete Session","operationId":"delete_session_opencode_native_api_projects__project__sessions__session_id__delete","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}/messages":{"get":{"tags":["opencode-native"],"summary":"List Messages","operationId":"list_messages_opencode_native_api_projects__project__sessions__session_id__messages_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["opencode-native"],"summary":"Send Message","operationId":"send_message_opencode_native_api_projects__project__sessions__session_id__messages_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}/abort":{"post":{"tags":["opencode-native"],"summary":"Abort Session","operationId":"abort_session_opencode_native_api_projects__project__sessions__session_id__abort_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}/fork":{"post":{"tags":["opencode-native"],"summary":"Fork Session","operationId":"fork_session_opencode_native_api_projects__project__sessions__session_id__fork_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}/diff":{"get":{"tags":["opencode-native"],"summary":"Session Diff","operationId":"session_diff_opencode_native_api_projects__project__sessions__session_id__diff_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}/todo":{"get":{"tags":["opencode-native"],"summary":"Session Todo","operationId":"session_todo_opencode_native_api_projects__project__sessions__session_id__todo_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/models":{"get":{"tags":["opencode-native"],"summary":"List Models","description":"Expose the native provider/model catalog without credentials.","operationId":"list_models_opencode_native_api_projects__project__models_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}/permissions/{permission_id}":{"post":{"tags":["opencode-native"],"summary":"Answer Permission","operationId":"answer_permission_opencode_native_api_projects__project__sessions__session_id__permissions__permission_id__post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"permission_id","in":"path","required":true,"schema":{"type":"string","title":"Permission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/sessions/{session_id}/questions/{request_id}/reply":{"post":{"tags":["opencode-native"],"summary":"Answer Question","operationId":"answer_question_opencode_native_api_projects__project__sessions__session_id__questions__request_id__reply_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/opencode-native/api/projects/{project}/events":{"get":{"tags":["opencode-native"],"summary":"Stream Events","operationId":"stream_events_opencode_native_api_projects__project__events_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"get":{"summary":"Login Page","description":"登录页面","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/knowledge-login":{"get":{"summary":"Knowledge Login Page","description":"知识库独立访问密码页面。","operationId":"knowledge_login_page_knowledge_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/health":{"get":{"summary":"Health Check","description":"健康检查端点","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AddMemberRequest":{"properties":{"email":{"type":"string","title":"Email","description":"成员邮箱"}},"type":"object","required":["email"],"title":"AddMemberRequest","description":"添加成员请求"},"BulkActionRequest":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids","description":"Team ID 列表"}},"type":"object","required":["ids"],"title":"BulkActionRequest","description":"批量操作请求"},"BulkCodeUpdateRequest":{"properties":{"codes":{"items":{"type":"string"},"type":"array","title":"Codes","description":"兑换码列表"},"has_warranty":{"type":"boolean","title":"Has Warranty","description":"是否为质保兑换码"},"warranty_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Warranty Days","description":"质保天数"}},"type":"object","required":["codes","has_warranty"],"title":"BulkCodeUpdateRequest","description":"批量兑换码更新请求"},"ChangePasswordRequest":{"properties":{"old_password":{"type":"string","minLength":1,"title":"Old Password","description":"旧密码"},"new_password":{"type":"string","minLength":6,"title":"New Password","description":"新密码"}},"type":"object","required":["old_password","new_password"],"title":"ChangePasswordRequest","description":"修改密码请求"},"ChangePasswordResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success"],"title":"ChangePasswordResponse","description":"修改密码响应"},"CodeGenerateRequest":{"properties":{"type":{"type":"string","title":"Type","description":"生成类型: single 或 batch"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"自定义兑换码 (单个生成)"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"生成数量 (批量生成)"},"expires_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires Days","description":"有效期天数"},"has_warranty":{"type":"boolean","title":"Has Warranty","description":"是否为质保兑换码","default":false},"warranty_days":{"type":"integer","title":"Warranty Days","description":"质保天数","default":30}},"type":"object","required":["type"],"title":"CodeGenerateRequest","description":"兑换码生成请求"},"CodeUpdateRequest":{"properties":{"has_warranty":{"type":"boolean","title":"Has Warranty","description":"是否为质保兑换码"},"warranty_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Warranty Days","description":"质保天数"}},"type":"object","required":["has_warranty"],"title":"CodeUpdateRequest","description":"兑换码更新请求"},"EnableDeviceAuthRequest":{"properties":{"code":{"type":"string","title":"Code"},"email":{"type":"string","title":"Email"},"team_id":{"type":"integer","title":"Team Id"}},"type":"object","required":["code","email","team_id"],"title":"EnableDeviceAuthRequest","description":"开启设备身份验证请求"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LogLevelRequest":{"properties":{"level":{"type":"string","title":"Level","description":"日志级别"}},"type":"object","required":["level"],"title":"LogLevelRequest","description":"日志级别请求"},"LoginRequest":{"properties":{"password":{"type":"string","minLength":1,"title":"Password","description":"管理员密码"}},"type":"object","required":["password"],"title":"LoginRequest","description":"登录请求"},"LoginResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success"],"title":"LoginResponse","description":"登录响应"},"LogoutResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"LogoutResponse","description":"登出响应"},"ProxyConfigRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"是否启用代理"},"proxy":{"type":"string","title":"Proxy","description":"代理地址","default":""}},"type":"object","required":["enabled"],"title":"ProxyConfigRequest","description":"代理配置请求"},"RedeemRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"用户邮箱"},"code":{"type":"string","minLength":1,"title":"Code","description":"兑换码"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id","description":"Team ID (可选，不提供则自动选择)"}},"type":"object","required":["email","code"],"title":"RedeemRequest","description":"兑换请求"},"RedeemResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"team_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Team Info"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success"],"title":"RedeemResponse","description":"兑换响应"},"TeamImportRequest":{"properties":{"import_type":{"type":"string","title":"Import Type","description":"导入类型: single 或 batch"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token","description":"AT Token (单个导入)"},"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token","description":"Refresh Token (单个导入)"},"session_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Token","description":"Session Token (单个导入)"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"Client ID (单个导入)"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"邮箱 (单个导入)"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id","description":"Account ID (单个导入)"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"批量导入内容"}},"type":"object","required":["import_type"],"title":"TeamImportRequest","description":"Team 导入请求"},"TeamInfo":{"properties":{"id":{"type":"integer","title":"Id"},"team_name":{"type":"string","title":"Team Name"},"current_members":{"type":"integer","title":"Current Members"},"max_members":{"type":"integer","title":"Max Members"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"subscription_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Plan"}},"type":"object","required":["id","team_name","current_members","max_members","expires_at","subscription_plan"],"title":"TeamInfo","description":"Team 信息"},"TeamUpdateRequest":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"新邮箱"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id","description":"新 Account ID"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token","description":"新 Access Token"},"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token","description":"新 Refresh Token"},"session_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Token","description":"新 Session Token"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"新 Client ID"},"max_members":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Members","description":"最大成员数"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name","description":"Team 名称"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"状态: active/full/expired/error/banned"}},"type":"object","title":"TeamUpdateRequest","description":"Team 更新请求"},"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"},"VerifyCodeRequest":{"properties":{"code":{"type":"string","minLength":1,"title":"Code","description":"兑换码"}},"type":"object","required":["code"],"title":"VerifyCodeRequest","description":"验证兑换码请求"},"VerifyCodeResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"valid":{"type":"boolean","title":"Valid"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"teams":{"items":{"$ref":"#/components/schemas/TeamInfo"},"type":"array","title":"Teams","default":[]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success","valid"],"title":"VerifyCodeResponse","description":"验证兑换码响应"},"WarrantyCheckRecord":{"properties":{"code":{"type":"string","title":"Code"},"has_warranty":{"type":"boolean","title":"Has Warranty"},"warranty_valid":{"type":"boolean","title":"Warranty Valid"},"warranty_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warranty Expires At"},"status":{"type":"string","title":"Status"},"used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Used At"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name"},"team_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Status"},"team_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Expires At"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"device_code_auth_enabled":{"type":"boolean","title":"Device Code Auth Enabled","default":false}},"type":"object","required":["code","has_warranty","warranty_valid","warranty_expires_at","status","used_at","team_id","team_name","team_status","team_expires_at"],"title":"WarrantyCheckRecord","description":"质保查询单条记录"},"WarrantyCheckRequest":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","title":"WarrantyCheckRequest","description":"质保查询请求"},"WarrantyCheckResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"has_warranty":{"type":"boolean","title":"Has Warranty"},"warranty_valid":{"type":"boolean","title":"Warranty Valid"},"warranty_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warranty Expires At"},"banned_teams":{"items":{},"type":"array","title":"Banned Teams"},"can_reuse":{"type":"boolean","title":"Can Reuse"},"original_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Code"},"records":{"items":{"$ref":"#/components/schemas/WarrantyCheckRecord"},"type":"array","title":"Records","default":[]},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["success","has_warranty","warranty_valid","warranty_expires_at","banned_teams","can_reuse","original_code","message","error"],"title":"WarrantyCheckResponse","description":"质保查询响应"},"WebhookSettingsRequest":{"properties":{"webhook_url":{"type":"string","title":"Webhook Url","description":"Webhook URL","default":""},"low_stock_threshold":{"type":"integer","title":"Low Stock Threshold","description":"库存阈值","default":10},"api_key":{"type":"string","title":"Api Key","description":"API Key","default":""}},"type":"object","title":"WebhookSettingsRequest","description":"Webhook 设置请求"}}}}