{"openapi":"3.1.0","info":{"title":"Video → SOP Generator","version":"0.2.0"},"paths":{"/process":{"post":{"summary":"Process","description":"Accept a video and queue it for processing; poll GET /jobs/{id} for progress.","operationId":"process_process_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_process_process_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs":{"get":{"summary":"List Jobs","operationId":"list_jobs_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/jobs/{job_id}":{"get":{"summary":"Get Job","operationId":"get_job_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Job","operationId":"delete_job_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/retry":{"post":{"summary":"Retry Job","description":"Resume a failed job from its last completed stage.","operationId":"retry_job_jobs__job_id__retry_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/export":{"post":{"summary":"Export Job","description":"Persist the edited SOP and (re)build md / docx / pdf / zip.","operationId":"export_job_jobs__job_id__export_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/frames/{job_id}/{filename}":{"get":{"summary":"Get Frame","operationId":"get_frame_frames__job_id___filename__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/download/{job_id}/{filename}":{"get":{"summary":"Download","operationId":"download_download__job_id___filename__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_process_process_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"audience":{"type":"string","title":"Audience","default":"internal"},"context":{"type":"string","title":"Context","default":""},"owner":{"type":"string","title":"Owner","default":""},"company":{"type":"string","title":"Company","default":""}},"type":"object","required":["file"],"title":"Body_process_process_post"},"ExportRequest":{"properties":{"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"summary":{"type":"string","maxLength":5000,"title":"Summary","default":""},"prerequisites":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Prerequisites"},"warnings":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Warnings"},"steps":{"items":{"$ref":"#/components/schemas/SOPStep"},"type":"array","maxItems":500,"title":"Steps"},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company"},"owner":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Owner"}},"type":"object","required":["title"],"title":"ExportRequest","description":"Body of POST /jobs/{id}/export — the (possibly edited) SOP."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Highlight":{"properties":{"frame":{"type":"string","title":"Frame"},"bbox":{"items":{"type":"number"},"type":"array","maxItems":4,"minItems":4,"title":"Bbox"},"label":{"type":"string","title":"Label","default":""}},"type":"object","required":["frame","bbox"],"title":"Highlight","description":"A region of a frame to outline, as normalized [x, y, width, height]."},"SOPStep":{"properties":{"number":{"type":"integer","title":"Number","description":"Step number (1-indexed); renumbered on render","default":0},"title":{"type":"string","maxLength":300,"title":"Title","description":"Short step title"},"description":{"type":"string","maxLength":10000,"title":"Description","description":"Detailed step description","default":""},"screenshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screenshot","description":"Frame filename for the screenshot","default":""},"timestamp":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Timestamp","description":"MM:SS or HH:MM:SS","default":""},"highlight":{"anyOf":[{"$ref":"#/components/schemas/Highlight"},{"type":"null"}]}},"type":"object","required":["title"],"title":"SOPStep","description":"A single step in the SOP."},"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"}}}}