{"openapi":"3.1.0","info":{"title":"AI Playground API","version":"1.0.0"},"paths":{"/projects":{"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_projects_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_projects_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Project"},"title":"Response List Projects Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}":{"get":{"tags":["projects"],"summary":"Get Project","operationId":"get_project_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_projects__project_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","operationId":"update_project_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/messages":{"post":{"tags":["conversation"],"summary":"Add Message","operationId":"add_message_projects__project_id__messages_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/uploads":{"post":{"tags":["conversation"],"summary":"Upload Document","operationId":"upload_document_projects__project_id__uploads_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_projects__project_id__uploads_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/generate":{"post":{"tags":["outputs"],"summary":"Generate Outputs","operationId":"generate_outputs_projects__project_id__generate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GenerateRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Outputs Projects  Project Id  Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/outputs/{output_id}/download":{"get":{"tags":["outputs"],"summary":"Download Output","operationId":"download_output_projects__project_id__outputs__output_id__download_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"output_id","in":"path","required":true,"schema":{"type":"string","title":"Output Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/share":{"post":{"tags":["share"],"summary":"Enable Sharing","operationId":"enable_sharing_projects__project_id__share_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["share"],"summary":"Disable Sharing","operationId":"disable_sharing_projects__project_id__share_delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shared/{token}":{"get":{"tags":["share"],"summary":"Get Shared Project","operationId":"get_shared_project_shared__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedProjectView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["meta"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"AddMessageRequest":{"properties":{"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"AddMessageRequest"},"Body_upload_document_projects__project_id__uploads_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_document_projects__project_id__uploads_post"},"CreateProjectRequest":{"properties":{"title":{"type":"string","title":"Title"}},"type":"object","required":["title"],"title":"CreateProjectRequest"},"GenerateRequest":{"properties":{"types":{"anyOf":[{"items":{"$ref":"#/components/schemas/OutputType"},"type":"array"},{"type":"null"}],"title":"Types"}},"type":"object","title":"GenerateRequest","description":"Optional body for the generate endpoint.\n\nOmitting it (or `types`) generates every output type, which is the original behaviour.\nThe hackathon brief step passes `[\"build_package\"]` so a ten-minute block does not wait\non four documents nobody needs yet."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Message":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"role":{"$ref":"#/components/schemas/MessageRole"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"attachment_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Ref"}},"type":"object","required":["project_id","role","content"],"title":"Message"},"MessageRole":{"type":"string","enum":["user","assistant"],"title":"MessageRole"},"Output":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"type":{"$ref":"#/components/schemas/OutputType"},"blob_path":{"type":"string","title":"Blob Path"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"version":{"type":"integer","title":"Version","default":1}},"type":"object","required":["project_id","type","blob_path"],"title":"Output"},"OutputType":{"type":"string","enum":["spec_markdown","prototype_html","conversation_transcript","decision_summary","build_package"],"title":"OutputType"},"Project":{"properties":{"id":{"type":"string","title":"Id"},"owner_id":{"type":"string","title":"Owner Id"},"title":{"type":"string","title":"Title"},"status":{"$ref":"#/components/schemas/ProjectStatus","default":"draft"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_enabled":{"type":"boolean","title":"Share Enabled","default":false},"has_prototype":{"type":"boolean","title":"Has Prototype","default":false},"prototype_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prototype Output Id"}},"type":"object","required":["owner_id","title"],"title":"Project"},"ProjectDetail":{"properties":{"id":{"type":"string","title":"Id"},"owner_id":{"type":"string","title":"Owner Id"},"title":{"type":"string","title":"Title"},"status":{"$ref":"#/components/schemas/ProjectStatus","default":"draft"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_enabled":{"type":"boolean","title":"Share Enabled","default":false},"has_prototype":{"type":"boolean","title":"Has Prototype","default":false},"prototype_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prototype Output Id"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages","default":[]},"outputs":{"items":{"$ref":"#/components/schemas/Output"},"type":"array","title":"Outputs","default":[]}},"type":"object","required":["owner_id","title"],"title":"ProjectDetail"},"ProjectStatus":{"type":"string","enum":["draft","ready_for_review","complete"],"title":"ProjectStatus"},"ShareResponse":{"properties":{"share_token":{"type":"string","title":"Share Token"},"share_url":{"type":"string","title":"Share Url"}},"type":"object","required":["share_token","share_url"],"title":"ShareResponse"},"SharedProjectView":{"properties":{"id":{"type":"string","title":"Id"},"owner_id":{"type":"string","title":"Owner Id"},"title":{"type":"string","title":"Title"},"status":{"$ref":"#/components/schemas/ProjectStatus","default":"draft"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_enabled":{"type":"boolean","title":"Share Enabled","default":false},"has_prototype":{"type":"boolean","title":"Has Prototype","default":false},"prototype_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prototype Output Id"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages","default":[]},"outputs":{"items":{"$ref":"#/components/schemas/Output"},"type":"array","title":"Outputs","default":[]}},"type":"object","required":["owner_id","title"],"title":"SharedProjectView"},"UpdateProjectRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"$ref":"#/components/schemas/ProjectStatus"},{"type":"null"}]}},"type":"object","title":"UpdateProjectRequest"},"Upload":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"filename":{"type":"string","title":"Filename"},"blob_path":{"type":"string","title":"Blob Path"},"mime_type":{"type":"string","title":"Mime Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["project_id","filename","blob_path","mime_type"],"title":"Upload"},"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"}}}}