{"openapi":"3.0.3","info":{"title":"dev-admission-queue service API","version":"1.0"},"paths":{"/api/v1/runs/report-jobs":{"get":{"summary":"Read export capabilities","responses":{"200":{"description":"Export capabilities"}}},"post":{"summary":"Run report","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","description":"Run or scheduler job identifier.","minLength":1,"maxLength":256},"scope":{"type":"string","enum":["status","events","configuration","complete"],"description":"Report scope."},"cursor":{"type":"string","description":"Previous event cursor.","minLength":1,"maxLength":512},"format":{"type":"string","enum":["json"],"description":"Report format."},"includeLogs":{"type":"boolean","description":"Include retained execution events."}},"additionalProperties":false}}}},"responses":{"202":{"description":"Export queued"}}}},"/api/v1/runs/report-jobs/{exportId}":{"get":{"summary":"Read export status","parameters":[{"name":"exportId","in":"path","required":true,"schema":{"type":"string"}},{"name":"export","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Completed preview with release status and available or locked artifacts"},"202":{"description":"Export queued or running; follow Retry-After"}}}},"/api/v1/runs/report-jobs/{exportId}/source-trace":{"get":{"summary":"Read export context requirements","parameters":[{"name":"exportId","in":"path","required":true,"schema":{"type":"string"}},{"name":"export","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Operation-specific context schema and example"},"409":{"description":"Export is not yet ready; follow the job status and Retry-After"}}},"post":{"summary":"Attach available export context","parameters":[{"name":"exportId","in":"path","required":true,"schema":{"type":"string"}},{"name":"export","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"source":{"type":"string","const":"/api/v1/status"},"sourceRequest":{"type":"object","description":"The source request whose cursor, revision, or response is attached.","properties":{"method":{"type":"string","enum":["GET","HEAD"]},"path":{"type":"string","const":"/api/v1/status","description":"Selected source path."},"revision":{"type":"string","description":"Snapshot revision issued by the export preview."},"status":{"type":"integer","minimum":100,"maximum":599},"requestId":{"type":"string","description":"Response request identifier.","minLength":1,"maxLength":256},"error":{"type":"string","description":"Observed response or error.","minLength":1,"maxLength":4096}},"required":["method","path","revision"],"additionalProperties":true},"producer":{"type":"object","description":"Application that initiated the selected service operation.","properties":{"name":{"type":"string","description":"Application name.","minLength":2,"maxLength":256},"version":{"type":"string","description":"Application version.","minLength":1,"maxLength":256},"hostname":{"type":"string","description":"Source hostname, where recorded.","minLength":2,"maxLength":256}},"required":["name"],"anyOf":[{"required":["version"]},{"required":["hostname"]}],"additionalProperties":true},"attempt":{"type":"object","properties":{"id":{"type":"string","description":"Client execution or session identifier.","minLength":1,"maxLength":256},"startedAt":{"type":"string","format":"date-time"},"elapsedSeconds":{"type":"number","minimum":0}},"required":["id"],"anyOf":[{"required":["startedAt"]},{"required":["elapsedSeconds"]}],"additionalProperties":true},"trace":{"type":"object","description":"Ordered source and export request receipts for this operation.","properties":{"steps":{"type":"array","minItems":2,"maxItems":256,"items":{"type":"object","properties":{"method":{"type":"string","minLength":2,"maxLength":128},"path":{"type":"string","minLength":1,"maxLength":4096},"status":{"type":"integer","minimum":100,"maximum":599},"requestId":{"type":"string","description":"Response request identifier.","minLength":1,"maxLength":256},"result":{"type":"string","minLength":12,"maxLength":4096}},"required":["method","path"],"anyOf":[{"required":["status"]},{"required":["result"]}],"additionalProperties":true}},"summary":{"type":"string","minLength":12,"maxLength":4096}},"required":["steps"],"additionalProperties":false}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"source":{"type":"string","const":"/api/v1/status"},"sourceRequest":{"type":"object","description":"The source request whose cursor, revision, or response is attached.","properties":{"method":{"type":"string","enum":["GET","HEAD"]},"path":{"type":"string","const":"/api/v1/status","description":"Selected source path."},"revision":{"type":"string","description":"Snapshot revision issued by the export preview."},"status":{"type":"integer","minimum":100,"maximum":599},"requestId":{"type":"string","description":"Response request identifier.","minLength":1,"maxLength":256},"error":{"type":"string","description":"Observed response or error.","minLength":1,"maxLength":4096}},"required":["method","path","revision"],"additionalProperties":true},"producer":{"type":"object","description":"Application that initiated the selected service operation.","properties":{"name":{"type":"string","description":"Application name.","minLength":2,"maxLength":256},"version":{"type":"string","description":"Application version.","minLength":1,"maxLength":256},"hostname":{"type":"string","description":"Source hostname, where recorded.","minLength":2,"maxLength":256}},"required":["name"],"anyOf":[{"required":["version"]},{"required":["hostname"]}],"additionalProperties":true},"attempt":{"type":"object","properties":{"id":{"type":"string","description":"Client execution or session identifier.","minLength":1,"maxLength":256},"startedAt":{"type":"string","format":"date-time"},"elapsedSeconds":{"type":"number","minimum":0}},"required":["id"],"anyOf":[{"required":["startedAt"]},{"required":["elapsedSeconds"]}],"additionalProperties":true},"trace":{"type":"object","description":"Ordered source and export request receipts for this operation.","properties":{"steps":{"type":"array","minItems":2,"maxItems":256,"items":{"type":"object","properties":{"method":{"type":"string","minLength":2,"maxLength":128},"path":{"type":"string","minLength":1,"maxLength":4096},"status":{"type":"integer","minimum":100,"maximum":599},"requestId":{"type":"string","description":"Response request identifier.","minLength":1,"maxLength":256},"result":{"type":"string","minLength":12,"maxLength":4096}},"required":["method","path"],"anyOf":[{"required":["status"]},{"required":["result"]}],"additionalProperties":true}},"summary":{"type":"string","minLength":12,"maxLength":4096}},"required":["steps"],"additionalProperties":false}},"additionalProperties":false}}}},"responses":{"202":{"description":"Export context accepted"},"409":{"description":"Export is not yet ready; follow the job status and Retry-After"}}}}}}
