{"openapi":"3.1.0","info":{"title":"Iteration Time","version":"0.3.0"},"paths":{"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me":{"get":{"summary":"Me","description":"Who is signed in (null for a visitor) and what the page may offer.","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/commons":{"get":{"summary":"Commons","operationId":"commons_api_commons_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"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"}}}}}}},"/api/auth/guest":{"post":{"summary":"Guest","description":"\"Try it now\": a guest session with no form. What a guest makes is public in the commons. Already signed\nin: nothing changes.","operationId":"guest_api_auth_guest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/signup":{"post":{"summary":"Signup","description":"A new account (the same one works on radcad.ai and pcbyay.com). Signing up as a guest keeps the guest's\nprojects and makes them private.","operationId":"signup_api_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/projects":{"get":{"summary":"List Projects","operationId":"list_projects_api_projects_get","parameters":[{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Project","operationId":"create_project_api_projects_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}":{"get":{"summary":"Get Project","operationId":"get_project_api_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/turns":{"get":{"summary":"List Turns","operationId":"list_turns_api_projects__project_id__turns_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Start Turn","operationId":"start_turn_api_projects__project_id__turns_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/traces":{"get":{"summary":"List Traces","operationId":"list_traces_api_projects__project_id__traces_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/draft":{"post":{"summary":"Redraft","operationId":"redraft_api_projects__project_id__draft_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/remix":{"post":{"summary":"Remix","operationId":"remix_api_projects__project_id__remix_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/visibility":{"put":{"summary":"Set Visibility","operationId":"set_visibility_api_projects__project_id__visibility_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/turns/{turn_id}":{"get":{"summary":"Get Turn","operationId":"get_turn_api_turns__turn_id__get","parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/turns/{turn_id}/review":{"get":{"summary":"Get Review","operationId":"get_review_api_turns__turn_id__review_get","parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/turns/{turn_id}/files/{order_id}/{name}":{"get":{"summary":"Get File","description":"One artifact of a result. The tools keep what the engine made under the engine's own account, so the\nengine fetches the file for whoever may read the turn; anything that is not a tool's file is a redirect.","operationId":"get_file_api_turns__turn_id__files__order_id___name__get","parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/turns/{turn_id}/decision":{"post":{"summary":"Decide","operationId":"decide_api_turns__turn_id__decision_post","parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CreateProjectRequest":{"properties":{"brief":{"type":"string","maxLength":20000,"minLength":10,"title":"Brief","description":"what you want to build, who you are, what you have"},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"owner":{"type":"string","maxLength":120,"title":"Owner","description":"honoured only where there are no accounts (open and token modes)","default":""},"visibility":{"anyOf":[{"type":"string","enum":["private","commons"]},{"type":"null"}],"title":"Visibility","description":"accounts only: share it in the commons from the start"}},"type":"object","required":["brief"],"title":"CreateProjectRequest"},"Decision":{"type":"string","enum":["accept","revise","back","stop"],"title":"Decision"},"DraftRequest":{"properties":{"revision_request":{"type":"string","maxLength":10000,"title":"Revision Request","default":""}},"type":"object","title":"DraftRequest"},"GuestRequest":{"properties":{"campaign":{"type":"string","maxLength":130,"title":"Campaign","default":""}},"type":"object","title":"GuestRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LoginRequest":{"properties":{"username":{"type":"string","maxLength":254,"minLength":1,"title":"Username"},"password":{"type":"string","maxLength":200,"title":"Password","default":""}},"type":"object","required":["username"],"title":"LoginRequest"},"OperatorDecision":{"properties":{"decision":{"$ref":"#/components/schemas/Decision"},"notes":{"type":"string","title":"Notes","description":"required for revise and back: what to change, or what was learned","default":""},"test_results":{"items":{"$ref":"#/components/schemas/TestOutcome"},"type":"array","title":"Test Results","description":"results of the operator-run exit criteria"},"back_to_ring":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Back To Ring","description":"for back: the ring id to reopen"},"concept_changes":{"type":"string","title":"Concept Changes","description":"for back: what in the concept turned out wrong","default":""},"decided_by":{"type":"string","title":"Decided By","default":""},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"type":"object","required":["decision"],"title":"OperatorDecision"},"SignupRequest":{"properties":{"username":{"type":"string","maxLength":64,"title":"Username","default":""},"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"password":{"type":"string","maxLength":200,"minLength":1,"title":"Password"},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"consent_cases":{"type":"boolean","title":"Consent Cases","default":false},"invite":{"type":"string","maxLength":64,"title":"Invite","default":""},"campaign":{"type":"string","maxLength":130,"title":"Campaign","default":""},"website":{"type":"string","maxLength":200,"title":"Website","default":""}},"type":"object","required":["email","password"],"title":"SignupRequest"},"TestOutcome":{"properties":{"criterion_id":{"type":"string","title":"Criterion Id"},"passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Passed"},"by":{"type":"string","enum":["engine","operator"],"title":"By"},"observed":{"type":"string","title":"Observed","default":""},"evidence":{"type":"string","title":"Evidence","description":"artifact ref, photo key, measurement","default":""}},"type":"object","required":["criterion_id","by"],"title":"TestOutcome","description":"One exit criterion's result. ``passed`` is None while the operator still owes the answer."},"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"},"VisibilityRequest":{"properties":{"visibility":{"type":"string","enum":["private","commons"],"title":"Visibility"}},"type":"object","required":["visibility"],"title":"VisibilityRequest"}}}}