{"openapi":"3.1.0","info":{"title":"Internal Auth","version":"0.1.0"},"paths":{"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/favicon.ico":{"get":{"summary":"Favicon","operationId":"favicon_favicon_ico_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sms-code":{"post":{"summary":"Send Sms Code","operationId":"send_sms_code_api_sms_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Send Sms Code Api Sms Code Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/login-page-config":{"get":{"summary":"Login Page Config","operationId":"login_page_config_api_login_page_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginPageConfigResponse"}}}}}}},"/api/login":{"post":{"summary":"Login","operationId":"login_api_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/ApiUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin-login":{"post":{"summary":"Admin Login","operationId":"admin_login_api_admin_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"summary":"Me","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiUserResponse"}}}}}}},"/api/authorization/me":{"get":{"summary":"Authorization Me","operationId":"authorization_me_api_authorization_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationResponse"}}}}}}},"/api/logout":{"post":{"summary":"Logout","operationId":"logout_api_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Logout Api Logout Post"}}}}}}},"/logout":{"get":{"summary":"Logout Page","operationId":"logout_page_logout_get","parameters":[{"name":"redirect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/session/verify":{"post":{"summary":"Verify Session","operationId":"verify_session_api_session_verify_post","parameters":[{"name":"project_code","in":"query","required":true,"schema":{"type":"string","title":"Project Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects":{"get":{"summary":"List Projects","operationId":"list_projects_api_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ManagedProject"},"type":"array","title":"Response List Projects Api Projects Get"}}}}}},"post":{"summary":"Create Project","operationId":"create_project_api_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/home":{"get":{"summary":"List Home Projects","operationId":"list_home_projects_api_projects_home_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/HomeProject"},"type":"array","title":"Response List Home Projects Api Projects Home Get"}}}}}}},"/api/projects/{project_code}":{"put":{"summary":"Update Project","operationId":"update_project_api_projects__project_code__put","parameters":[{"name":"project_code","in":"path","required":true,"schema":{"type":"string","title":"Project Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Project","operationId":"delete_project_api_projects__project_code__delete","parameters":[{"name":"project_code","in":"path","required":true,"schema":{"type":"string","title":"Project Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Project Api Projects  Project Code  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/super-members":{"get":{"summary":"List Super Members","operationId":"list_super_members_api_super_members_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SuperMember"},"type":"array","title":"Response List Super Members Api Super Members Get"}}}}}},"post":{"summary":"Add Super Member","operationId":"add_super_member_api_super_members_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuperMemberRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuperMember"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/super-members/{phone}":{"delete":{"summary":"Remove Super Member","operationId":"remove_super_member_api_super_members__phone__delete","parameters":[{"name":"phone","in":"path","required":true,"schema":{"type":"string","title":"Phone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Remove Super Member Api Super Members  Phone  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users":{"get":{"summary":"List Users","operationId":"list_users_api_users_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create User","operationId":"create_user_api_users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"get":{"summary":"Login Page","operationId":"login_page_login_get","parameters":[{"name":"redirect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"get":{"summary":"Users Page","operationId":"users_page_users_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/projects":{"get":{"summary":"Projects Page","operationId":"projects_page_projects_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/projects/{project_code}/edit":{"get":{"summary":"Project Editor Page","operationId":"project_editor_page_projects__project_code__edit_get","parameters":[{"name":"project_code","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Code"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/new":{"get":{"summary":"Project Editor Page","operationId":"project_editor_page_projects_new_get","parameters":[{"name":"project_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Code"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/super":{"get":{"summary":"Super Page","operationId":"super_page_super_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"AdminLoginRequest":{"properties":{"phone":{"type":"string","minLength":1,"title":"Phone"},"password":{"type":"string","minLength":1,"title":"Password"}},"type":"object","required":["phone","password"],"title":"AdminLoginRequest"},"ApiUserResponse":{"properties":{"user":{"$ref":"#/components/schemas/PublicUser"},"login_method":{"type":"string","title":"Login Method"}},"type":"object","required":["user","login_method"],"title":"ApiUserResponse"},"AuthorizationResponse":{"properties":{"global_role":{"type":"string","title":"Global Role"},"phone":{"type":"string","title":"Phone"}},"type":"object","required":["global_role","phone"],"title":"AuthorizationResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"HealthResponse"},"HomeProject":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"entry_url":{"type":"string","title":"Entry Url"},"description":{"type":"string","title":"Description"},"icon_key":{"type":"string","title":"Icon Key"}},"type":"object","required":["code","name","entry_url","description","icon_key"],"title":"HomeProject"},"LoginPageConfigResponse":{"properties":{"sms_send_interval_seconds":{"type":"integer","title":"Sms Send Interval Seconds"},"sms_success_redirect_url":{"type":"string","title":"Sms Success Redirect Url"},"sms_success_redirect_delay_seconds":{"type":"integer","title":"Sms Success Redirect Delay Seconds"},"public_base_url":{"type":"string","title":"Public Base Url"},"camp_url":{"type":"string","title":"Camp Url"},"buss_url":{"type":"string","title":"Buss Url"},"chip_url":{"type":"string","title":"Chip Url"}},"type":"object","required":["sms_send_interval_seconds","sms_success_redirect_url","sms_success_redirect_delay_seconds","public_base_url","camp_url","buss_url","chip_url"],"title":"LoginPageConfigResponse"},"LoginRequest":{"properties":{"phone":{"type":"string","minLength":1,"title":"Phone"},"code":{"type":"string","minLength":1,"title":"Code"}},"type":"object","required":["phone","code"],"title":"LoginRequest"},"ManagedProject":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"entry_url":{"type":"string","title":"Entry Url"},"description":{"type":"string","title":"Description"},"icon_key":{"type":"string","title":"Icon Key"},"admin_phones":{"items":{"type":"string"},"type":"array","title":"Admin Phones"}},"type":"object","required":["code","name","entry_url","description","icon_key","admin_phones"],"title":"ManagedProject"},"ProjectAccessResponse":{"properties":{"user":{"$ref":"#/components/schemas/PublicUser"},"login_method":{"type":"string","title":"Login Method"},"project_code":{"type":"string","title":"Project Code"},"project_admitted":{"type":"boolean","title":"Project Admitted"},"role":{"type":"string","title":"Role"}},"type":"object","required":["user","login_method","project_code","project_admitted","role"],"title":"ProjectAccessResponse"},"ProjectCreateRequest":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z][a-z0-9-]*$","title":"Code"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"entry_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Entry Url"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"icon_key":{"type":"string","enum":["business","analytics","chip","campaign","knowledge","automation","security","operations","integration","experiment"],"title":"Icon Key"},"admin_phones":{"items":{"type":"string"},"type":"array","title":"Admin Phones"}},"type":"object","required":["code","name","entry_url","icon_key"],"title":"ProjectCreateRequest"},"ProjectUpdateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"entry_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Entry Url"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"icon_key":{"type":"string","enum":["business","analytics","chip","campaign","knowledge","automation","security","operations","integration","experiment"],"title":"Icon Key"},"admin_phones":{"items":{"type":"string"},"type":"array","title":"Admin Phones"}},"type":"object","required":["name","entry_url","icon_key"],"title":"ProjectUpdateRequest"},"PublicUser":{"properties":{"phone":{"type":"string","title":"Phone"},"name":{"type":"string","title":"Name"},"employee_id":{"type":"string","title":"Employee Id"},"department":{"type":"string","title":"Department"}},"type":"object","required":["phone","name","employee_id","department"],"title":"PublicUser"},"SmsCodeRequest":{"properties":{"phone":{"type":"string","minLength":1,"title":"Phone"}},"type":"object","required":["phone"],"title":"SmsCodeRequest"},"SuperMember":{"properties":{"phone":{"type":"string","title":"Phone"},"name":{"type":"string","title":"Name"},"department":{"type":"string","title":"Department"}},"type":"object","required":["phone","name","department"],"title":"SuperMember"},"SuperMemberRequest":{"properties":{"phone":{"type":"string","minLength":1,"title":"Phone"}},"type":"object","required":["phone"],"title":"SuperMemberRequest"},"UserCreateRequest":{"properties":{"phone":{"type":"string","minLength":1,"title":"Phone"},"name":{"type":"string","minLength":1,"title":"Name"},"department":{"type":"string","minLength":1,"title":"Department"}},"type":"object","required":["phone","name","department"],"title":"UserCreateRequest"},"UserCreateResponse":{"properties":{"status":{"type":"string","title":"Status"},"user":{"$ref":"#/components/schemas/PublicUser"}},"type":"object","required":["status","user"],"title":"UserCreateResponse"},"UserListResponse":{"properties":{"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["rows","page","page_size","total"],"title":"UserListResponse"},"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"}}}}