{"openapi":"3.0.3","info":{"title":"Baz REST API","description":"Leverage the API to get all the context you need","version":"0.1.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{}},"paths":{"/api/v2/checkout/chat":{"post":{"operationId":"postApiV2CheckoutChat","tags":["checkout"],"description":"Chat with the checkout agent","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["baz"]},"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"issue":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["discussion"]},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["pull_request"]},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["pr_chat"]},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["pr_walkthrough"]},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sectionIndex":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"continueWalkthrough":{"type":"boolean"}},"required":["id"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["spec_review"]},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}},"required":["type","data"]}]},"freeText":{"type":"string","minLength":1,"maxLength":4000},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prState":{"type":"object","properties":{"state":{"type":"string","maxLength":20},"is_draft":{"type":"boolean"},"reviews":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"assignee":{"type":"string","maxLength":2048},"assignee_id":{"type":"string","maxLength":200},"created_at":{"type":"string","maxLength":50},"assignee_user":{"nullable":true,"type":"object","properties":{"id":{"type":"string","maxLength":200},"displayName":{"type":"string","maxLength":200},"avatarUrl":{"type":"string","maxLength":2048},"login":{"type":"string","maxLength":200}},"required":["id"]},"id":{"type":"string","maxLength":200},"review_state":{"type":"string","maxLength":30},"updated_at":{"type":"string","maxLength":50},"has_write_access":{"type":"boolean"}},"required":["assignee","id","review_state"]}},"ci_runs":{"type":"array","items":{"type":"object","properties":{"ci_name":{"type":"string","maxLength":200},"link":{"nullable":true,"type":"string","maxLength":2048},"name":{"type":"string","maxLength":200},"required":{"type":"boolean"},"status":{"type":"string","maxLength":50},"started_at":{"nullable":true,"type":"string","maxLength":50},"completed_at":{"nullable":true,"type":"string","maxLength":50},"codeLocations":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"fileName":{"type":"string","maxLength":500},"lineNumber":{"type":"integer","minimum":0,"maximum":10000000},"side":{"type":"string","maxLength":10}},"required":["fileName","lineNumber"]}},"lineNumber":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000},"err_description":{"type":"string","maxLength":2000}},"required":["ci_name","name","status"]}},"review_status":{"anyOf":[{"type":"string","enum":["approved"]},{"type":"string","enum":["waiting_for_code_owners"]},{"type":"string","enum":["unresolved_conversations"]},{"type":"object","properties":{"waiting_for_approvals":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"}]},"minItems":2,"maxItems":2}},"required":["waiting_for_approvals"]}]},"conflicts":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":500}},"has_unresolved_discussions":{"type":"boolean"}}}},"required":["mode","repoId","prId","issue","freeText"]},{"type":"object","properties":{"mode":{"type":"string","enum":["tokens"]},"prContext":{"type":"object","properties":{"fullRepoName":{"type":"string"},"prNumber":{"type":"number"},"host":{"type":"string"}},"required":["fullRepoName","prNumber"]},"issue":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["discussion"]},"data":{"type":"object","properties":{"id":{"type":"string"},"discussion":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string"},"author_user":{"type":"object","properties":{"name":{"type":"string"},"login":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["name"]},"commit_sha":{"type":"string"},"outdated":{"type":"boolean"},"file":{"type":"string"},"start_line":{"type":"number"},"end_line":{"type":"number"},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","author","body","createdAt"]}},"side":{"type":"string","enum":["left","right"]},"commented_code":{"type":"string"},"original_start_line":{"type":"number"},"original_end_line":{"type":"number"}},"required":["id","author","commit_sha","outdated","comments"]},"diff":{"type":"array","items":{"type":"object","properties":{"prFileId":{"type":"string"},"diff":{"type":"object","properties":{"chunks":{"type":"array","items":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"number":{"type":"number"},"content":{"type":"string"},"new_line_number":{"type":"number"},"new_content":{"type":"string"},"line_type":{"type":"string","enum":["Added","Changed","Deleted","Unchanged"]}},"required":["line_type"]}},"after_lines":{"type":"array","items":{"type":"object","properties":{"number":{"type":"number"},"content":{"type":"string"},"new_line_number":{"type":"number"},"new_content":{"type":"string"},"line_type":{"type":"string","enum":["Added","Changed","Deleted","Unchanged"]}},"required":["line_type"]}},"before_lines":{"type":"array","items":{"type":"object","properties":{"number":{"type":"number"},"content":{"type":"string"},"new_line_number":{"type":"number"},"new_content":{"type":"string"},"line_type":{"type":"string","enum":["Added","Changed","Deleted","Unchanged"]}},"required":["line_type"]}}},"required":["lines","after_lines","before_lines"]}},"old_relative_path":{"type":"string"},"file_relative_path":{"type":"string"}},"required":["chunks","file_relative_path"]}},"required":["prFileId","diff"]}}},"required":["id","discussion","diff"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["pull_request"]},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["pr_chat"]},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["pr_walkthrough"]},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"required":["type","data"]}]},"freeText":{"type":"string","minLength":1,"maxLength":4000},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["mode","prContext","issue","freeText"]},{"type":"object","properties":{"mode":{"type":"string","enum":["local"]},"repoName":{"type":"string"},"diff":{"type":"string"},"diffEncoding":{"type":"string","enum":["base64"]},"issue":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["pr_chat"]},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"type":"string","enum":["pr_walkthrough"]},"data":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","enum":["local"]}]}},"required":["id"]}},"required":["type","data"]}]},"freeText":{"type":"string","minLength":1,"maxLength":4000},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["mode","repoName","diff","issue","freeText"]}]}}}},"responses":{"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/checkout/flows":{"get":{"operationId":"getApiV2CheckoutFlows","tags":["checkout"],"description":"Get available predefined flows for a pull request","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"prId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"flows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"icon":{"type":"string"},"iconColor":{"type":"string"},"conversationType":{"type":"string","enum":["discussion","spec_review","pull_request","pr_chat","pr_walkthrough"]},"available":{"type":"boolean"},"disabledReason":{"type":"string"},"prompt":{"type":"string"},"requirementId":{"type":"string"}},"required":["id","label","icon","conversationType","available"],"additionalProperties":false}},"degraded":{"type":"boolean"}},"required":["flows"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/checkout/walkthrough":{"get":{"operationId":"getApiV2CheckoutWalkthrough","tags":["checkout"],"description":"Get the walkthrough sections for a pull request","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"prId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"commitSha":{"type":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"sectionIndex":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"title":{"type":"string"},"description":{"type":"string"},"files":{"type":"array","items":{"type":"string"}}},"required":["sectionIndex","title","description","files"],"additionalProperties":false}}},"required":["commitSha","sections"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/checkout/conversations/latest":{"get":{"operationId":"getApiV2CheckoutConversationsLatest","tags":["checkout"],"description":"Get the latest conversation by type for a pull request","parameters":[{"schema":{"type":"string","enum":["discussion","spec_review","pull_request","pr_chat","pr_walkthrough"]},"in":"query","name":"conversationType","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"prId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"relatedEntityId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversationType":{"type":"string","enum":["discussion","spec_review","pull_request","pr_chat","pr_walkthrough"]},"createdAt":{"type":"string"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pullRequestId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"relatedEntityId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"messageCount":{"type":"number"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"type":"string"},"toolCalls":{"type":"array","items":{"type":"object","properties":{"toolName":{"type":"string"},"toolArgs":{"type":"string"},"result":{"type":"string"}},"required":["toolName","toolArgs","result"],"additionalProperties":false}}},"required":["role","content"],"additionalProperties":false}},"newDataAvailable":{"type":"boolean"}},"required":["id","conversationType","createdAt","userId","pullRequestId","relatedEntityId","messageCount","messages"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/repositories":{"get":{"operationId":"getApiV2Repositories","tags":["repositories"],"description":"Get repositories","parameters":[{"schema":{"anyOf":[{"type":"string","enum":["read","write"]},{"type":"string","enum":["agent_edit"]}]},"in":"query","name":"action","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ghInstallationId":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"fullName":{"type":"string"},"isPrivate":{"type":"boolean"},"isFork":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stargazers":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"license":{"nullable":true,"type":"string"},"defaultBranch":{"type":"string"},"orgId":{"nullable":true,"type":"string"},"isArchived":{"type":"boolean"},"description":{"nullable":true,"type":"string"},"installationIdRepoOwner":{"type":"string"},"installationIdRepoFullName":{"type":"string"},"commitSha":{"nullable":true,"type":"string"},"insertionTime":{"type":"string"},"vcs":{"type":"string","enum":["github","gitlab","azure_devops","entire"]},"installationId":{"nullable":true,"type":"string"},"fssUrl":{"type":"string"},"host":{"nullable":true,"type":"string"},"isFssRemote":{"type":"boolean"},"avatarUrl":{"nullable":true,"type":"string"},"openChanges":{"type":"number"},"hasWriteAccess":{"type":"boolean"},"owners":{"default":[],"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"nullable":true,"type":"string"}},"required":["userId","displayName"],"additionalProperties":false}}},"required":["id","ghInstallationId","fullName","isPrivate","isFork","createdAt","updatedAt","size","stargazers","license","defaultBranch","orgId","isArchived","description","installationIdRepoOwner","installationIdRepoFullName","commitSha","insertionTime","vcs","installationId","fssUrl","host","isFssRemote","avatarUrl","openChanges","hasWriteAccess","owners"],"additionalProperties":false}}},"required":["repositories"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/repositories/recent-branches":{"get":{"operationId":"getApiV2RepositoriesRecentBranches","tags":["repositories"],"description":"Get recently pushed branches for a repository","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"object","properties":{"branchName":{"type":"string","minLength":1},"pusherLogin":{"type":"string","format":"uri"},"pushedAt":{"type":"string"},"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["branchName","pusherLogin","pushedAt","repoId"],"additionalProperties":false}}},"required":["branches"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes":{"get":{"operationId":"getApiV2Changes","tags":["Pull Requests"],"description":"Search pull requests","parameters":[{"schema":{"type":"string"},"in":"query","name":"search","required":false},{"schema":{"default":1,"type":"number"},"in":"query","name":"page","required":false},{"schema":{"default":50,"type":"number"},"in":"query","name":"pageSize","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"repositories","required":false},{"schema":{"type":"string","enum":["open","closed","merged","draft"]},"in":"query","name":"state","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"statuses","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"authors","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"sourceTypes","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"planId","required":false},{"schema":{"type":"string","enum":["newest","oldest","recently_updated","least_recently_updated"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"},"total":{"type":"number","minimum":0}},"required":["changes","page","hasMore","total"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/my-prs":{"get":{"operationId":"getApiV2ChangesMyPrs","tags":["Pull Requests"],"description":"Per-user changes (search shape): my open work + waiting for my review","parameters":[{"schema":{"type":"string"},"in":"query","name":"search","required":false},{"schema":{"default":50,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageSize","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"openWorkPage","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"waitingForReviewPage","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"repositories","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"myOpenWork":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","page","hasMore"],"additionalProperties":false},"waitingForReview":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","page","hasMore"],"additionalProperties":false}},"required":["myOpenWork","waitingForReview"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/my":{"get":{"operationId":"getApiV2ChangesMy","tags":["Pull Requests"],"description":"Deprecated alias for /my-prs","parameters":[{"schema":{"type":"string"},"in":"query","name":"search","required":false},{"schema":{"default":50,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageSize","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"openWorkPage","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"waitingForReviewPage","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"repositories","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"myOpenWork":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","page","hasMore"],"additionalProperties":false},"waitingForReview":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","page","hasMore"],"additionalProperties":false}},"required":["myOpenWork","waitingForReview"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/authors":{"get":{"operationId":"getApiV2ChangesAuthors","tags":["Pull Requests"],"description":"Get possible change authors for the tenant","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"authors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"login":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["id","login","displayName"],"additionalProperties":false}}},"required":["authors"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{repo}/{number}":{"get":{"operationId":"getApiV2ChangesByRepoByNumber","tags":["Pull Requests"],"description":"Get lean change details by repo name and PR number","parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"repo","required":true},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"path","name":"number","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prNumber":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"targetBranch":{"type":"string","description":"base branch the PR merges into (e.g. main)"},"sourceBranch":{"type":"string","description":"branch being edited; where the code changes live"},"githubHtmlUrl":{"nullable":true,"type":"string"},"isMerged":{"type":"boolean"},"isMergeable":{"type":"boolean"},"isDraft":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"mergedAt":{"nullable":true,"type":"string"},"closedAt":{"nullable":true,"type":"string"},"authorName":{"type":"string"},"linesAdded":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"linesDeleted":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"authorAvatarUrl":{"nullable":true,"type":"string"},"mergedBy":{"nullable":true,"type":"string"},"baseCommit":{"type":"string"},"isLocked":{"type":"boolean"},"autoMergeEnabledBy":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"headRepositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startSha":{"nullable":true,"type":"string"},"baseRepoFullName":{"type":"string"},"headRepoFullName":{"type":"string"},"filesChanged":{"type":"number"},"filesAdded":{"type":"number"},"filesDeleted":{"type":"number"},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pullRequestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assignee":{"type":"string"},"reviewState":{"type":"string","enum":["assigned","reviewed","approved"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"approved":{"type":"boolean"},"reviewerType":{"type":"string","enum":["user","group"]},"lastViewedCommitSha":{"nullable":true,"type":"string"}},"required":["id","pullRequestId","discussionId","assignee","reviewState","createdAt","updatedAt","approved","reviewerType","lastViewedCommitSha"],"additionalProperties":false}},"changeLevelDiscussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionType":{"type":"string","enum":["code","file","review"]},"commentedCode":{"nullable":true,"type":"string"},"prFile":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"endLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"author":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"outdated":{"type":"boolean"},"discussionState":{"type":"string","enum":["resolved","pending"]},"originalStartLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"originalEndLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"assignee":{"nullable":true,"type":"string"},"side":{"nullable":true,"type":"string","enum":["left","right"]},"startSide":{"nullable":true,"type":"string","enum":["left","right"]},"isAddressed":{"type":"boolean"},"sentiment":{"nullable":true,"type":"string"},"isRealBug":{"type":"boolean"},"isProdBug":{"type":"boolean"},"isBazFixed":{"type":"boolean"},"markedAcceptedBy":{"nullable":true,"type":"string"},"markedAcceptedAt":{"nullable":true,"type":"string"},"bugCategory":{"nullable":true,"type":"string","enum":["code_correctness","architecture_and_compatibility","code_quality_and_conventions","security_best_practices","other"]},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commentBody":{"type":"string"},"vcsNumericId":{"nullable":true,"type":"string"},"author":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"bodyContentType":{"type":"string","enum":["markdown","html"]}},"required":["id","discussionId","commentBody","vcsNumericId","author","createdAt","updatedAt","bodyContentType"],"additionalProperties":false}}},"required":["id","prId","discussionType","commentedCode","prFile","startLine","endLine","author","createdAt","updatedAt","outdated","discussionState","originalStartLine","originalEndLine","assignee","side","startSide","isAddressed","sentiment","isRealBug","isProdBug","isBazFixed","markedAcceptedBy","markedAcceptedAt","bugCategory","comments"],"additionalProperties":false}},"commits":{"type":"array","items":{"type":"object","properties":{"pullRequestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commitSha":{"type":"string"},"committer":{"type":"string"},"committedAt":{"type":"string"},"verified":{"type":"boolean"},"message":{"type":"string"},"shortSha":{"type":"string"},"relativeOrder":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"bazReviewed":{"nullable":true,"type":"boolean"},"addressedChecked":{"nullable":true,"type":"boolean"},"bazPublished":{"nullable":true,"type":"boolean"},"forced":{"type":"boolean"}},"required":["pullRequestId","commitSha","committer","committedAt","verified","message","shortSha","relativeOrder","bazReviewed","addressedChecked","bazPublished","forced"],"additionalProperties":false}},"generatedDescription":{"nullable":true,"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"summary":{"type":"string"}},"required":["id","name","summary"],"additionalProperties":false}},"specReviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commitSha":{"type":"string"},"previewEnvUrl":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["in_progress","success","failed","user_cancelled","prerequisites_missing"]},"commentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"checkRunId":{"nullable":true,"type":"string"},"productReviewWaitingUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"crLink":{"nullable":true,"type":"string"},"summary":{"nullable":true,"type":"string"},"requirementsFound":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"requirementsMet":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"specTicketId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requirementsUnverifiable":{"type":"number"}},"required":["id","prId","commitSha","previewEnvUrl","status","commentId","createdAt","checkRunId","productReviewWaitingUserId","crLink","summary","requirementsFound","requirementsMet","specTicketId","requirementsUnverifiable"],"additionalProperties":false}},"filesViewed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"path":{"type":"string"},"viewed":{"type":"object","properties":{"commit":{"nullable":true,"type":"string"},"updated_commit":{"nullable":true,"type":"string"},"viewed":{"type":"string","enum":["viewed","not_viewed","updated"]}},"required":["commit","updated_commit","viewed"],"additionalProperties":false}},"required":["id","path","viewed"],"additionalProperties":false}},"resources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"resourceType":{"type":"string","enum":["vcs","ticket","figma","preview_env","knowledge_base"]},"url":{"type":"string"}},"required":["id","resourceType","url"],"additionalProperties":false}},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","targetBranch","sourceBranch","githubHtmlUrl","isMerged","isMergeable","isDraft","state","title","description","createdAt","updatedAt","mergedAt","closedAt","authorName","linesAdded","linesDeleted","authorAvatarUrl","mergedBy","baseCommit","isLocked","autoMergeEnabledBy","externalId","headRepositoryId","startSha","baseRepoFullName","headRepoFullName","filesChanged","filesAdded","filesDeleted","reviews","changeLevelDiscussions","commits","generatedDescription","topics","specReviews","filesViewed","resources"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}":{"get":{"operationId":"getApiV2ChangesById","tags":["Pull Requests"],"description":"Get lean change details by ID","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prNumber":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"targetBranch":{"type":"string","description":"base branch the PR merges into (e.g. main)"},"sourceBranch":{"type":"string","description":"branch being edited; where the code changes live"},"githubHtmlUrl":{"nullable":true,"type":"string"},"isMerged":{"type":"boolean"},"isMergeable":{"type":"boolean"},"isDraft":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"mergedAt":{"nullable":true,"type":"string"},"closedAt":{"nullable":true,"type":"string"},"authorName":{"type":"string"},"linesAdded":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"linesDeleted":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"authorAvatarUrl":{"nullable":true,"type":"string"},"mergedBy":{"nullable":true,"type":"string"},"baseCommit":{"type":"string"},"isLocked":{"type":"boolean"},"autoMergeEnabledBy":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"headRepositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startSha":{"nullable":true,"type":"string"},"baseRepoFullName":{"type":"string"},"headRepoFullName":{"type":"string"},"filesChanged":{"type":"number"},"filesAdded":{"type":"number"},"filesDeleted":{"type":"number"},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pullRequestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assignee":{"type":"string"},"reviewState":{"type":"string","enum":["assigned","reviewed","approved"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"approved":{"type":"boolean"},"reviewerType":{"type":"string","enum":["user","group"]},"lastViewedCommitSha":{"nullable":true,"type":"string"}},"required":["id","pullRequestId","discussionId","assignee","reviewState","createdAt","updatedAt","approved","reviewerType","lastViewedCommitSha"],"additionalProperties":false}},"changeLevelDiscussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionType":{"type":"string","enum":["code","file","review"]},"commentedCode":{"nullable":true,"type":"string"},"prFile":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"endLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"author":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"outdated":{"type":"boolean"},"discussionState":{"type":"string","enum":["resolved","pending"]},"originalStartLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"originalEndLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"assignee":{"nullable":true,"type":"string"},"side":{"nullable":true,"type":"string","enum":["left","right"]},"startSide":{"nullable":true,"type":"string","enum":["left","right"]},"isAddressed":{"type":"boolean"},"sentiment":{"nullable":true,"type":"string"},"isRealBug":{"type":"boolean"},"isProdBug":{"type":"boolean"},"isBazFixed":{"type":"boolean"},"markedAcceptedBy":{"nullable":true,"type":"string"},"markedAcceptedAt":{"nullable":true,"type":"string"},"bugCategory":{"nullable":true,"type":"string","enum":["code_correctness","architecture_and_compatibility","code_quality_and_conventions","security_best_practices","other"]},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commentBody":{"type":"string"},"vcsNumericId":{"nullable":true,"type":"string"},"author":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"bodyContentType":{"type":"string","enum":["markdown","html"]}},"required":["id","discussionId","commentBody","vcsNumericId","author","createdAt","updatedAt","bodyContentType"],"additionalProperties":false}}},"required":["id","prId","discussionType","commentedCode","prFile","startLine","endLine","author","createdAt","updatedAt","outdated","discussionState","originalStartLine","originalEndLine","assignee","side","startSide","isAddressed","sentiment","isRealBug","isProdBug","isBazFixed","markedAcceptedBy","markedAcceptedAt","bugCategory","comments"],"additionalProperties":false}},"commits":{"type":"array","items":{"type":"object","properties":{"pullRequestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commitSha":{"type":"string"},"committer":{"type":"string"},"committedAt":{"type":"string"},"verified":{"type":"boolean"},"message":{"type":"string"},"shortSha":{"type":"string"},"relativeOrder":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"bazReviewed":{"nullable":true,"type":"boolean"},"addressedChecked":{"nullable":true,"type":"boolean"},"bazPublished":{"nullable":true,"type":"boolean"},"forced":{"type":"boolean"}},"required":["pullRequestId","commitSha","committer","committedAt","verified","message","shortSha","relativeOrder","bazReviewed","addressedChecked","bazPublished","forced"],"additionalProperties":false}},"generatedDescription":{"nullable":true,"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"summary":{"type":"string"}},"required":["id","name","summary"],"additionalProperties":false}},"specReviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commitSha":{"type":"string"},"previewEnvUrl":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["in_progress","success","failed","user_cancelled","prerequisites_missing"]},"commentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"checkRunId":{"nullable":true,"type":"string"},"productReviewWaitingUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"crLink":{"nullable":true,"type":"string"},"summary":{"nullable":true,"type":"string"},"requirementsFound":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"requirementsMet":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"specTicketId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requirementsUnverifiable":{"type":"number"}},"required":["id","prId","commitSha","previewEnvUrl","status","commentId","createdAt","checkRunId","productReviewWaitingUserId","crLink","summary","requirementsFound","requirementsMet","specTicketId","requirementsUnverifiable"],"additionalProperties":false}},"filesViewed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"path":{"type":"string"},"viewed":{"type":"object","properties":{"commit":{"nullable":true,"type":"string"},"updated_commit":{"nullable":true,"type":"string"},"viewed":{"type":"string","enum":["viewed","not_viewed","updated"]}},"required":["commit","updated_commit","viewed"],"additionalProperties":false}},"required":["id","path","viewed"],"additionalProperties":false}},"resources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"resourceType":{"type":"string","enum":["vcs","ticket","figma","preview_env","knowledge_base"]},"url":{"type":"string"}},"required":["id","resourceType","url"],"additionalProperties":false}},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","targetBranch","sourceBranch","githubHtmlUrl","isMerged","isMergeable","isDraft","state","title","description","createdAt","updatedAt","mergedAt","closedAt","authorName","linesAdded","linesDeleted","authorAvatarUrl","mergedBy","baseCommit","isLocked","autoMergeEnabledBy","externalId","headRepositoryId","startSha","baseRepoFullName","headRepoFullName","filesChanged","filesAdded","filesDeleted","reviews","changeLevelDiscussions","commits","generatedDescription","topics","specReviews","filesViewed","resources"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}/runs":{"get":{"operationId":"getApiV2ChangesByIdRuns","tags":["Pull Requests"],"description":"Get CI runs for a change with required status","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"},"required":{"type":"boolean"}},"required":["ciName","name","status","required"],"additionalProperties":false}}},"required":["runs"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}/discussions":{"get":{"operationId":"getApiV2ChangesByIdDiscussions","tags":["Pull Requests"],"description":"Get discussions for a change","parameters":[{"schema":{"type":"string","enum":["resolved","pending"]},"in":"query","name":"state","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"discussionType":{"type":"string"},"authorUser":{"nullable":true,"type":"object","properties":{"id":{"type":"string"},"login":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["id","login","displayName"],"additionalProperties":false},"author":{"type":"string"},"assignee":{"nullable":true,"type":"string"},"commitSha":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"outdated":{"type":"boolean"},"discussionState":{"type":"string"},"file":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"originalStartLine":{"nullable":true,"type":"number"},"originalEndLine":{"nullable":true,"type":"number"},"resolvedBy":{"nullable":true,"type":"object","properties":{"email":{"type":"string"},"name":{"type":"string"}},"required":["email","name"],"additionalProperties":false},"side":{"nullable":true,"type":"string","enum":["left","right"]},"commentedCode":{"nullable":true,"type":"string"},"isAddressed":{"type":"boolean"},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"nullable":true,"type":"string"},"commentBody":{"type":"string"},"bodyContentType":{"type":"string","enum":["markdown","html"]},"author":{"type":"string"},"authorContext":{"type":"string"},"authorUser":{"type":"object","properties":{"id":{"type":"string"},"login":{"type":"string"},"displayName":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["id","login","displayName"],"additionalProperties":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"editable":{"type":"boolean"},"viewerFeedback":{"nullable":true,"type":"string","enum":["great_comment","incorrect_comment","not_in_diff","not_related_to_last_commit","already_posted","nitpick","out_of_scope","not_clear"]},"isReviewerComment":{"type":"boolean"}},"required":["id","commentBody","bodyContentType","author","authorContext","authorUser","createdAt","updatedAt","editable","isReviewerComment"],"additionalProperties":false}}},"required":["id","discussionType","author","assignee","createdAt","updatedAt","outdated","discussionState","startLine","endLine","originalStartLine","originalEndLine","resolvedBy","side","commentedCode","isAddressed","comments"],"additionalProperties":false}}},"required":["discussions"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}/comments/{commentId}/feedback":{"put":{"operationId":"putApiV2ChangesByIdCommentsByCommentIdFeedback","tags":["Pull Requests"],"description":"Record the caller's feedback on a Baz reviewer comment","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["great_comment","incorrect_comment","not_in_diff","not_related_to_last_commit","already_posted","nitpick","out_of_scope","not_clear"]},"discussionCommitSha":{"nullable":true,"type":"string"},"headCommitSha":{"nullable":true,"type":"string"}},"required":["category"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"commentId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"delete":{"operationId":"deleteApiV2ChangesByIdCommentsByCommentIdFeedback","tags":["Pull Requests"],"description":"Clear the caller's feedback on a Baz reviewer comment","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"commentId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}/eligible-reviewers":{"get":{"operationId":"getApiV2ChangesByIdEligibleReviewers","tags":["Pull Requests"],"description":"Get eligible reviewers for a change","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"reviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reviewerType":{"type":"string","enum":["user","group"]},"name":{"type":"string"},"login":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"}},"required":["id","reviewerType","name"],"additionalProperties":false}}},"required":["reviewers"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}/diff":{"get":{"operationId":"getApiV2ChangesByIdDiff","tags":["Pull Requests"],"description":"Get diff for pull request","parameters":[{"schema":{"type":"string"},"in":"query","name":"commit","required":false},{"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string","minLength":1}}]},"in":"query","name":"files","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"fileDiffs":{"type":"array","items":{"type":"object","properties":{"prFileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"headCommitRef":{"type":"string"},"diff":{"type":"object","properties":{"chunks":{"type":"array","items":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"number":{"nullable":true,"type":"number"},"content":{"nullable":true,"type":"string"},"new_line_number":{"nullable":true,"type":"number"},"new_content":{"nullable":true,"type":"string"},"line_type":{"type":"string","enum":["Unchanged","Changed","Added","Deleted"]},"edits":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"content":{"nullable":true,"type":"string"},"edit_action":{"type":"string","enum":["Added","Deleted"]},"marking_style":{"type":"string","enum":["Normal","Comment","Type","Keyword","StringLiteral","Text","Delimiter"]}},"required":["start","end","content","edit_action","marking_style"],"additionalProperties":false}}},"required":["number","content","new_line_number","new_content","line_type","edits"],"additionalProperties":false}},"after_lines":{"type":"array","items":{"type":"object","properties":{"number":{"nullable":true,"type":"number"},"content":{"nullable":true,"type":"string"},"new_line_number":{"nullable":true,"type":"number"},"new_content":{"nullable":true,"type":"string"},"line_type":{"type":"string","enum":["Unchanged","Changed","Added","Deleted"]},"edits":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"content":{"nullable":true,"type":"string"},"edit_action":{"type":"string","enum":["Added","Deleted"]},"marking_style":{"type":"string","enum":["Normal","Comment","Type","Keyword","StringLiteral","Text","Delimiter"]}},"required":["start","end","content","edit_action","marking_style"],"additionalProperties":false}}},"required":["number","content","new_line_number","new_content","line_type","edits"],"additionalProperties":false}},"before_lines":{"type":"array","items":{"type":"object","properties":{"number":{"nullable":true,"type":"number"},"content":{"nullable":true,"type":"string"},"new_line_number":{"nullable":true,"type":"number"},"new_content":{"nullable":true,"type":"string"},"line_type":{"type":"string","enum":["Unchanged","Changed","Added","Deleted"]},"edits":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"content":{"nullable":true,"type":"string"},"edit_action":{"type":"string","enum":["Added","Deleted"]},"marking_style":{"type":"string","enum":["Normal","Comment","Type","Keyword","StringLiteral","Text","Delimiter"]}},"required":["start","end","content","edit_action","marking_style"],"additionalProperties":false}}},"required":["number","content","new_line_number","new_content","line_type","edits"],"additionalProperties":false}}},"required":["lines","after_lines","before_lines"],"additionalProperties":false}},"has_edits":{"type":"boolean"},"is_binary":{"type":"boolean"},"file_status":{"type":"string","enum":["added","removed","modified","renamed"]},"lines_added":{"type":"number"},"lines_deleted":{"type":"number"},"total_diffs":{"type":"number"},"old_relative_path":{"nullable":true,"type":"string"},"file_relative_path":{"type":"string"},"has_syntactic_changes":{"type":"boolean"}},"required":["chunks","has_edits","is_binary","file_status","lines_added","lines_deleted","total_diffs","old_relative_path","file_relative_path","has_syntactic_changes"],"additionalProperties":false},"diffFilePath":{"nullable":true,"type":"string"}},"required":["prFileId","headCommitRef","diff","diffFilePath"],"additionalProperties":false}}},"required":["fileDiffs"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}/raw-diff":{"get":{"operationId":"getApiV2ChangesByIdRawDiff","tags":["Pull Requests"],"description":"Get raw git diff for pull request","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^(?!-)(?!.*\\.\\.)[A-Za-z0-9._/+-]+$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^(?!-)(?!.*\\.\\.)[A-Za-z0-9._/+-]+$"},"in":"query","name":"until","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"diff":{"type":"string"},"lastViewedCommitSha":{"nullable":true,"type":"string"},"baseSha":{"type":"string"},"headSha":{"type":"string"}},"required":["diff","lastViewedCommitSha","baseSha","headSha"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/diff/{repo}/branches/{base}/{head}":{"get":{"operationId":"getApiV2ChangesDiffByRepoBranchesByBaseByHead","tags":["Pull Requests"],"description":"Get raw git diff and commit messages between branches","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"repo","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^(?!-)(?!.*\\.\\.)[A-Za-z0-9._/+-]+$"},"in":"path","name":"base","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^(?!-)(?!.*\\.\\.)[A-Za-z0-9._/+-]+$"},"in":"path","name":"head","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"diff":{"type":"string"},"commits":{"type":"array","items":{"type":"object","properties":{"commit":{"type":"string"},"author":{"type":"string"},"date":{"type":"string"},"message":{"type":"string"}},"required":["commit","author","date","message"],"additionalProperties":false}},"existingChange":{"nullable":true,"type":"object","properties":{"id":{"type":"string"},"prNumber":{"type":"number"},"title":{"type":"string"}},"required":["id","prNumber","title"],"additionalProperties":false}},"required":["diff","commits","existingChange"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/changes/{id}/reviewers":{"put":{"operationId":"putApiV2ChangesByIdReviewers","tags":["Pull Requests"],"description":"Set the reviewers of a change","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"reRequestUsers":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["users"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"reviewers":{"type":"array","items":{"type":"object","properties":{"assignee":{"type":"string"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewState":{"type":"string","enum":["assigned","reviewed","approved"]},"approved":{"type":"boolean"}},"required":["assignee","reviewerType","reviewState","approved"],"additionalProperties":false}}},"required":["reviewers"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/review-sessions":{"get":{"operationId":"getApiV2ReviewSessions","tags":["Review Sessions"],"description":"List review sessions for the active tenant","parameters":[{"schema":{"type":"string"},"in":"query","name":"prName","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"author","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"in":"query","name":"prId","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"in":"query","name":"planId","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"in":"query","name":"repository","required":false},{"schema":{"anyOf":[{"type":"string","enum":["running","success","skipped","failed"]},{"type":"array","items":{"type":"string","enum":["running","success","skipped","failed"]}}]},"in":"query","name":"status","required":false},{"schema":{"anyOf":[{"type":"string","enum":["review","merge","full_repo_security_scan","planner","sre","fixer","skills_manager","spec"]},{"type":"array","items":{"type":"string","enum":["review","merge","full_repo_security_scan","planner","sre","fixer","skills_manager","spec"]}}]},"in":"query","name":"type","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"pageSize","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"execution_id":{"type":"string"},"status":{"type":"string","enum":["running","success","skipped","failed"]},"session_kind":{"type":"string","enum":["review","merge","full_repo_security_scan","planner","sre","fixer","skills_manager","spec"]},"started_at":{"type":"string"},"completed_at":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"repository":{"nullable":true,"type":"string"},"pr_number":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pr_url":{"nullable":true,"type":"string"},"author":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"avatar_url":{"nullable":true,"type":"string"}},"required":["name","avatar_url"],"additionalProperties":false}},"required":["execution_id","status","session_kind","started_at","completed_at","title","repository","pr_number","pr_url","author"],"additionalProperties":false}},"page":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["sessions","page","hasMore"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/review-sessions/count":{"get":{"operationId":"getApiV2ReviewSessionsCount","tags":["Review Sessions"],"description":"Count review sessions for the active tenant","parameters":[{"schema":{"type":"string"},"in":"query","name":"prName","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"author","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"in":"query","name":"prId","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"in":"query","name":"planId","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"in":"query","name":"repository","required":false},{"schema":{"anyOf":[{"type":"string","enum":["running","success","skipped","failed"]},{"type":"array","items":{"type":"string","enum":["running","success","skipped","failed"]}}]},"in":"query","name":"status","required":false},{"schema":{"anyOf":[{"type":"string","enum":["review","merge","full_repo_security_scan","planner","sre","fixer","skills_manager","spec"]},{"type":"array","items":{"type":"string","enum":["review","merge","full_repo_security_scan","planner","sre","fixer","skills_manager","spec"]}}]},"in":"query","name":"type","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"pageSize","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["total"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/review-sessions/{executionId}":{"get":{"operationId":"getApiV2ReviewSessionsByExecutionId","tags":["Review Sessions"],"description":"Get the raw event stream for a review session","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"executionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"execution_id":{"type":"string"},"status":{"type":"string","enum":["running","success","skipped","failed"]},"session_kind":{"type":"string","enum":["review","merge","full_repo_security_scan","planner","sre","fixer","skills_manager","spec"]},"started_at":{"type":"string"},"completed_at":{"nullable":true,"type":"string"},"head_sha":{"type":"string"},"pr_id":{"nullable":true,"type":"string"},"repository_id":{"nullable":true,"type":"string"},"repository_name":{"nullable":true,"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"event_type":{"anyOf":[{"type":"string","enum":["pr_queued"]},{"type":"string","enum":["pr_diff_enriched"]},{"type":"string","enum":["pr_review_started"]},{"type":"string","enum":["pr_review_skipped"]},{"type":"string","enum":["agent_completed"]},{"type":"string","enum":["agent_logs"]},{"type":"string","enum":["agents_completed"]},{"type":"string","enum":["agentic_bugs_reported"]},{"type":"string","enum":["internal_agentic_findings_pre_merge"]},{"type":"string","enum":["reflection"]},{"type":"string","enum":["comment_merge_completed"]},{"type":"string","enum":["pr_published"]},{"type":"string","enum":["pr_nothing_to_publish"]},{"type":"string","enum":["pr_errored"]},{"type":"string","enum":["merge_readiness_started"]},{"type":"string","enum":["merge_readiness_guidelines"]},{"type":"string","enum":["merge_readiness_verdict"]},{"type":"string","enum":["merge_readiness_investigation"]},{"type":"string","enum":["security_repo_scan_started"]},{"type":"string","enum":["security_repo_scan_attack_surfaces"]},{"type":"string","enum":["security_repo_mitigation_discovery"]},{"type":"string","enum":["security_repo_scan_findings"]},{"type":"string","enum":["security_repo_scan_completed"]},{"type":"string","enum":["security_repo_scan_fixer_pr"]},{"type":"string","enum":["planner_session_started"]},{"type":"string","enum":["mcp_tool_call"]},{"type":"string","enum":["planner_session_completed"]},{"type":"string","enum":["sre_started"]},{"type":"string","enum":["sre_issues"]},{"type":"string","enum":["sre_priority"]},{"type":"string","enum":["sre_issue_decision"]},{"type":"string","enum":["sre_issue_fix"]},{"type":"string","enum":["sre_issue_trigger_fixer"]},{"type":"string","enum":["sre_completed"]},{"type":"string","enum":["spec_ticket"]},{"type":"string","enum":["spec_requirements_extracted"]},{"type":"string","enum":["spec_requirements_verified"]},{"type":"string","enum":["spec_preview_env"]},{"type":"string","enum":["fixer_started"]},{"type":"string","enum":["fixer_section_setup"]},{"type":"string","enum":["fixer_section_fix"]},{"type":"string","enum":["fixer_section_review"]},{"type":"string","enum":["fixer_section_lint"]},{"type":"string","enum":["fixer_section_commit"]},{"type":"string","enum":["fixer_section_push"]},{"type":"string","enum":["fixer_completed"]},{"type":"string","enum":["skills_manager_started"]},{"type":"string","enum":["skills_manager_skipped"]},{"type":"string","enum":["skills_manager_plan"]},{"type":"string","enum":["skills_manager_skill"]},{"type":"string","enum":["skills_manager_trigger_fixer"]},{"type":"string","enum":["skills_manager_skill_pr"]},{"type":"string","enum":["skills_manager_completed"]}]},"payload":{},"created_at":{"type":"string"},"event_id":{"type":"string"},"source":{"type":"string","enum":["platform","bazai","bff"]}},"required":["event_type","payload","created_at","event_id","source"],"additionalProperties":false}},"diffs_by_path":{"type":"object","additionalProperties":{"type":"object","properties":{"chunks":{"type":"array","items":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"number":{"nullable":true,"type":"number"},"content":{"nullable":true,"type":"string"},"new_line_number":{"nullable":true,"type":"number"},"new_content":{"nullable":true,"type":"string"},"line_type":{"type":"string","enum":["Unchanged","Changed","Added","Deleted"]},"edits":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"content":{"nullable":true,"type":"string"},"edit_action":{"type":"string","enum":["Added","Deleted"]},"marking_style":{"type":"string","enum":["Normal","Comment","Type","Keyword","StringLiteral","Text","Delimiter"]}},"required":["start","end","content","edit_action","marking_style"],"additionalProperties":false}}},"required":["number","content","new_line_number","new_content","line_type","edits"],"additionalProperties":false}},"after_lines":{"type":"array","items":{"type":"object","properties":{"number":{"nullable":true,"type":"number"},"content":{"nullable":true,"type":"string"},"new_line_number":{"nullable":true,"type":"number"},"new_content":{"nullable":true,"type":"string"},"line_type":{"type":"string","enum":["Unchanged","Changed","Added","Deleted"]},"edits":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"content":{"nullable":true,"type":"string"},"edit_action":{"type":"string","enum":["Added","Deleted"]},"marking_style":{"type":"string","enum":["Normal","Comment","Type","Keyword","StringLiteral","Text","Delimiter"]}},"required":["start","end","content","edit_action","marking_style"],"additionalProperties":false}}},"required":["number","content","new_line_number","new_content","line_type","edits"],"additionalProperties":false}},"before_lines":{"type":"array","items":{"type":"object","properties":{"number":{"nullable":true,"type":"number"},"content":{"nullable":true,"type":"string"},"new_line_number":{"nullable":true,"type":"number"},"new_content":{"nullable":true,"type":"string"},"line_type":{"type":"string","enum":["Unchanged","Changed","Added","Deleted"]},"edits":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"content":{"nullable":true,"type":"string"},"edit_action":{"type":"string","enum":["Added","Deleted"]},"marking_style":{"type":"string","enum":["Normal","Comment","Type","Keyword","StringLiteral","Text","Delimiter"]}},"required":["start","end","content","edit_action","marking_style"],"additionalProperties":false}}},"required":["number","content","new_line_number","new_content","line_type","edits"],"additionalProperties":false}}},"required":["lines","after_lines","before_lines"],"additionalProperties":false}},"has_edits":{"type":"boolean"},"is_binary":{"type":"boolean"},"file_status":{"type":"string","enum":["added","removed","modified","renamed"]},"lines_added":{"type":"number"},"lines_deleted":{"type":"number"},"total_diffs":{"type":"number"},"old_relative_path":{"nullable":true,"type":"string"},"file_relative_path":{"type":"string"},"has_syntactic_changes":{"type":"boolean"}},"required":["chunks","has_edits","is_binary","file_status","lines_added","lines_deleted","total_diffs","old_relative_path","file_relative_path","has_syntactic_changes"],"additionalProperties":false}}},"required":["execution_id","status","session_kind","started_at","completed_at","head_sha","pr_id","repository_id","repository_name","events","diffs_by_path"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/onboarding/status":{"get":{"operationId":"getApiV2OnboardingStatus","tags":["onboarding"],"description":"Get onboarding status","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"string","enum":["pending","in_progress","done","error"]},"repositories":{"type":"string","enum":["pending","in_progress","done","error"]},"pullRequests":{"type":"string","enum":["pending","in_progress","done","error"]},"reviewer":{"type":"string","enum":["pending","in_progress","done","error"]},"error":{"nullable":true,"type":"string"},"frontendOnboardingCompleted":{"type":"boolean"}},"required":["users","repositories","pullRequests","reviewer","error","frontendOnboardingCompleted"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/onboarding/status/reviewer":{"put":{"operationId":"putApiV2OnboardingStatusReviewer","tags":["onboarding"],"description":"Mark reviewer onboarding status as done","responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/onboarding/status/frontend-completed":{"put":{"operationId":"putApiV2OnboardingStatusFrontendCompleted","tags":["onboarding"],"description":"Mark frontend onboarding as completed for organization","responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/auth/orgs":{"post":{"operationId":"postApiV2AuthOrgs","tags":["auth"],"description":"Create a new organization","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/auth/users":{"get":{"operationId":"getApiV2AuthUsers","tags":["auth"],"description":"Get users","parameters":[{"schema":{"default":"json","type":"string","enum":["csv","json"]},"in":"query","name":"format","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"githubLogin":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"email":{"type":"string"},"userStatus":{"type":"string"},"hasPaidSeat":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"userLogins":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["github","gitlab","microsoft","entire"]},"loginId":{"nullable":true,"type":"string"},"login":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["provider","loginId","login","avatarUrl"],"additionalProperties":false}},"role":{"type":"string","enum":["admin","user"]},"isOwner":{"type":"boolean"},"isPrDiscovered":{"type":"boolean"},"isBot":{"type":"boolean"}},"required":["name","githubLogin","avatarUrl","email","userStatus","hasPaidSeat","id","createdAt","userLogins","role","isOwner","isPrDiscovered","isBot"],"additionalProperties":false}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/auth/users/{userId}/role":{"put":{"operationId":"putApiV2AuthUsersByUserIdRole","tags":["auth"],"description":"Update user role","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","user"]}},"required":["role"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/featureflag":{"get":{"operationId":"getApiV2Featureflag","tags":["feature-flag"],"description":"Get feature flag by organization","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/billing/subscription":{"get":{"operationId":"getApiV2BillingSubscription","tags":["billing"],"description":"Get subscription object","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"quantity":{"type":"number"},"trialRemainingDays":{"nullable":true,"type":"number"},"product":{"type":"string"},"isDefaultPayingMethodSet":{"type":"boolean"},"nextInvoiceDate":{"nullable":true,"type":"string"},"plan":{"type":"object","properties":{"pricing":{"type":"string","enum":["seats","credits"]}},"required":["pricing"],"additionalProperties":false},"customerPortalUrl":{"nullable":true,"type":"string"}},"required":["status","quantity","product","isDefaultPayingMethodSet","plan"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/billing/seats":{"patch":{"operationId":"patchApiV2BillingSeats","tags":["billing"],"description":"Update seats status for users","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hasPaidSeat":{"type":"boolean"}},"required":["userId","hasPaidSeat"]}}},"required":["users"]}}}},"responses":{"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/billing/webhook":{"post":{"operationId":"postApiV2BillingWebhook","tags":["billing"],"responses":{"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/config":{"get":{"operationId":"getApiV2ReviewerConfig","summary":"Get reviewer configurations","tags":["reviewer-config"],"description":"Get all reviewer configurations for an organization","security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"excludedConfig":{"type":"array","items":{"type":"object","properties":{"repoName":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"repoId":{"type":"string"}},"required":["repoName","paths","repoId"],"additionalProperties":false}},"orgConfig":{"type":"array","items":{"type":"object","properties":{"configurationId":{"type":"string"},"enabled":{"type":"boolean"},"configurationMetadata":{"nullable":true,"type":"object","additionalProperties":{}},"key":{"type":"string"}},"required":["configurationId","enabled","key"],"additionalProperties":false}}},"required":["excludedConfig","orgConfig"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/config/{configId}":{"put":{"operationId":"putApiV2ReviewerConfigByConfigId","tags":["reviewer-config"],"description":"Update a reviewer configuration","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"configurationMetadata":{"nullable":true,"type":"object","additionalProperties":{}}},"required":["enabled"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configurationId":{"type":"string"},"enabled":{"type":"boolean"},"configurationMetadata":{"nullable":true,"type":"object","additionalProperties":{}}},"required":["configurationId","enabled"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"409":{"description":"Configuration changed concurrently; refresh the config/CAS snapshot and retry","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Configuration changed concurrently; refresh the config/CAS snapshot and retry"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/config/{configId}/rules":{"post":{"operationId":"postApiV2ReviewerConfigByConfigIdRules","tags":["reviewer-config"],"description":"Create a new rule for a rule-bearing configuration (pr_auto_approve, auto_resolve_threads)","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"repoIds":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"authors":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"maxLinesChanged":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"maxFilesChanged":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"excludedPaths":{"type":"array","items":{"type":"string"}},"findings":{"type":"array","items":{"type":"object","properties":{"reviewerIds":{"nullable":true,"minItems":1,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"severity":{"type":"string","enum":["low","medium","high"]}},"required":["reviewerIds","severity"]}},"action":{"type":"string","enum":["approve","deny"]}}},{"type":"object","properties":{"repoIds":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"authors":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"object","additionalProperties":{}}},"required":["rule"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/config/{configId}/rules/{ruleId}":{"patch":{"operationId":"patchApiV2ReviewerConfigByConfigIdRulesByRuleId","tags":["reviewer-config"],"description":"Update a single rule on a rule-bearing configuration","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"repoIds":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"authors":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"maxLinesChanged":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"maxFilesChanged":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"excludedPaths":{"type":"array","items":{"type":"string"}},"findings":{"type":"array","items":{"type":"object","properties":{"reviewerIds":{"nullable":true,"minItems":1,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"severity":{"type":"string","enum":["low","medium","high"]}},"required":["reviewerIds","severity"]}},"action":{"type":"string","enum":["approve","deny"]}}},{"type":"object","properties":{"repoIds":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"authors":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ruleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"object","additionalProperties":{}}},"required":["rule"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"delete":{"operationId":"deleteApiV2ReviewerConfigByConfigIdRulesByRuleId","tags":["reviewer-config"],"description":"Delete a single rule on a rule-bearing configuration","parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ruleId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/config/excluded":{"put":{"operationId":"putApiV2ReviewerConfigExcluded","tags":["reviewer-config"],"description":"Create or update an exclude reviewer configuration","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repoName":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"repoId":{"type":"string"}},"required":["repoName","paths","repoId"]}}}},"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/config/excluded/{repo}":{"delete":{"operationId":"deleteApiV2ReviewerConfigExcludedByRepo","tags":["reviewer-config"],"description":"Create or update an exclude reviewer configuration","parameters":[{"schema":{"type":"string"},"in":"path","name":"repo","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/acceptance-rates":{"get":{"operationId":"getApiV2ReviewerAcceptanceRates","tags":["reviewer-config","acceptance","addressed"],"description":"Get acceptance rates per org and per finding-type","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"acceptanceRates":{"type":"object","additionalProperties":{"type":"object","properties":{"orgRate":{"type":"number"},"addressedOrgCounter":{"type":"number"},"orgCounter":{"type":"number"}},"required":["orgRate","addressedOrgCounter","orgCounter"],"additionalProperties":false}}},"required":["acceptanceRates"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/review":{"post":{"operationId":"postApiV2ReviewerReview","tags":["reviewer"],"description":"Run a specific review for given finding types","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":7,"maxLength":255,"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}\\t\\r\\n]+$"},"description":{"type":"string","minLength":7,"maxLength":25000,"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}\\t\\r\\n]+$"},"scopes":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"repositoryName":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId","repositoryName"]}},"changeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["title","description","scopes","changeId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"findings":{"type":"array","items":{"type":"object","properties":{"filePath":{"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"description":{"type":"string"},"suggestedFix":{"nullable":true,"type":"string"},"commentedCode":{"nullable":true,"type":"string"},"crTitle":{"type":"string"}},"required":["filePath","description","crTitle"],"additionalProperties":false}}},"required":["findings"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/reviewers/{reviewerId}":{"get":{"operationId":"getApiV2ReviewerReviewersByReviewerId","summary":"Get a reviewer","tags":["reviewer"],"description":"Get a reviewer by ID, including its configurations. Returns 404 when the reviewer does not exist in the caller's org.","parameters":[{"schema":{"type":"string"},"in":"path","name":"reviewerId","required":true,"description":"Reviewer ID"}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"reviewer":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"generatedTitle":{"type":"string"},"generatedDescription":{"type":"string"},"label":{"nullable":true,"type":"string"},"discussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"prTitle":{"type":"string"},"createdAt":{"type":"string"},"commentedCode":{"nullable":true,"type":"string"},"prFile":{"nullable":true,"type":"string"},"prLink":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"commitSha":{"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"author":{"nullable":true,"type":"string"},"comment":{"nullable":true,"type":"string"},"createdAt":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"displayName":{"nullable":true,"type":"string"}},"additionalProperties":false}}},"required":["id","prTitle","createdAt","commitSha","comments"],"additionalProperties":false}},"scopes":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"repositoryName":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId","repositoryName"],"additionalProperties":false}},"enabled":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"recalculatedAt":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"activeVersion":{"type":"number"},"externalReviewerId":{"nullable":true,"type":"string"},"reviewerTags":{"nullable":true,"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"reviewerLabels":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"diffSettings":{"nullable":true},"pendingReviewerUpdateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pendingReviewerUpdateIssuedAt":{"nullable":true,"type":"string"},"activeVersionRules":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rule":{"type":"string"},"status":{"type":"string","enum":["active","disabled","deleted","pending","superseded","rejected"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["ruleId","rule","status","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"reviewerId":{"type":"string"},"version":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"},"updatedByAvatarUrl":{"nullable":true,"type":"string"}},"required":["reviewerId","version","title","description","updatedAt","updatedBy"],"additionalProperties":false}},"acceptanceRates":{"nullable":true,"type":"object","properties":{"orgAcceptedCounter":{"type":"number"},"orgRejectedCounter":{"type":"number"},"orgUnaddressedCounter":{"type":"number"},"orgAcceptedRate":{"type":"number"},"orgRejectedRate":{"type":"number"},"orgUnaddressedRate":{"type":"number"},"orgCounter":{"type":"number"}},"required":["orgAcceptedCounter","orgRejectedCounter","orgUnaddressedCounter","orgAcceptedRate","orgRejectedRate","orgUnaddressedRate","orgCounter"],"additionalProperties":false},"canEdit":{"nullable":true,"type":"boolean"},"configurations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pathPattern":{"nullable":true,"type":"string"},"configName":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["id","repoId","pathPattern","configName","metadata"],"additionalProperties":false}}},"required":["id","title","description","generatedTitle","generatedDescription","label","discussions","scopes","enabled","createdAt","updatedAt","type","activeVersion","activeVersionRules","versions"],"additionalProperties":false}},"required":["reviewer"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"404":{"description":"Reviewer not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Reviewer not found"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2ReviewerReviewersByReviewerId","summary":"Update a reviewer","tags":["reviewer"],"description":"Update a reviewer and its configurations. Returns 403 when the caller cannot edit the reviewer or its scopes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"nullable":true,"type":"string","minLength":7,"maxLength":255,"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}\\t\\r\\n]+$"},"description":{"nullable":true,"type":"string","minLength":7,"maxLength":25000,"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}\\t\\r\\n]+$"},"enabled":{"nullable":true,"type":"boolean"},"scopesToAdd":{"nullable":true,"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId"]}},"scopesToRemove":{"nullable":true,"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId"]}},"scopes":{"nullable":true,"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId"]}},"configurations":{"description":"Replaces all of the agent's configs of each listed name; a null repository applies to every repository","nullable":true,"type":"array","items":{"type":"object","properties":{"configName":{"type":"string","minLength":1,"description":"Config name, e.g. severity"},"rows":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"repository":{"nullable":true,"type":"string","minLength":1},"pathPattern":{"nullable":true,"type":"string","minLength":1,"maxLength":256},"metadata":{"type":"object","additionalProperties":{}}},"required":["repository","pathPattern","metadata"]}}},"required":["configName","rows"]}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"reviewerId","required":true,"description":"Reviewer ID"}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"reviewer":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"generatedTitle":{"type":"string"},"generatedDescription":{"type":"string"},"label":{"nullable":true,"type":"string"},"discussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"prTitle":{"type":"string"},"createdAt":{"type":"string"},"commentedCode":{"nullable":true,"type":"string"},"prFile":{"nullable":true,"type":"string"},"prLink":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"commitSha":{"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"author":{"nullable":true,"type":"string"},"comment":{"nullable":true,"type":"string"},"createdAt":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"displayName":{"nullable":true,"type":"string"}},"additionalProperties":false}}},"required":["id","prTitle","createdAt","commitSha","comments"],"additionalProperties":false}},"scopes":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"repositoryName":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId","repositoryName"],"additionalProperties":false}},"enabled":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"recalculatedAt":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"activeVersion":{"type":"number"},"externalReviewerId":{"nullable":true,"type":"string"},"reviewerTags":{"nullable":true,"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"reviewerLabels":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"diffSettings":{"nullable":true},"pendingReviewerUpdateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pendingReviewerUpdateIssuedAt":{"nullable":true,"type":"string"},"activeVersionRules":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rule":{"type":"string"},"status":{"type":"string","enum":["active","disabled","deleted","pending","superseded","rejected"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["ruleId","rule","status","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"reviewerId":{"type":"string"},"version":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"},"updatedByAvatarUrl":{"nullable":true,"type":"string"}},"required":["reviewerId","version","title","description","updatedAt","updatedBy"],"additionalProperties":false}},"acceptanceRates":{"nullable":true,"type":"object","properties":{"orgAcceptedCounter":{"type":"number"},"orgRejectedCounter":{"type":"number"},"orgUnaddressedCounter":{"type":"number"},"orgAcceptedRate":{"type":"number"},"orgRejectedRate":{"type":"number"},"orgUnaddressedRate":{"type":"number"},"orgCounter":{"type":"number"}},"required":["orgAcceptedCounter","orgRejectedCounter","orgUnaddressedCounter","orgAcceptedRate","orgRejectedRate","orgUnaddressedRate","orgCounter"],"additionalProperties":false},"canEdit":{"nullable":true,"type":"boolean"},"configurations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pathPattern":{"nullable":true,"type":"string"},"configName":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["id","repoId","pathPattern","configName","metadata"],"additionalProperties":false}}},"required":["id","title","description","generatedTitle","generatedDescription","label","discussions","scopes","enabled","createdAt","updatedAt","type","activeVersion","activeVersionRules","versions"],"additionalProperties":false}},"required":["reviewer"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"403":{"description":"Caller cannot edit this reviewer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Caller cannot edit this reviewer"}}}},"404":{"description":"Reviewer not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Reviewer not found"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"delete":{"operationId":"deleteApiV2ReviewerReviewersByReviewerId","tags":["reviewer"],"description":"Delete a custom reviewer","parameters":[{"schema":{"type":"string"},"in":"path","name":"reviewerId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/reviewers":{"get":{"operationId":"getApiV2ReviewerReviewers","summary":"List reviewers","tags":["reviewer"],"description":"List the org's reviewers. Pass repoName to list only reviewers that apply to that repository.","parameters":[{"schema":{"type":"string"},"in":"query","name":"enabled","required":false,"description":"Filter by enabled state: true or false"},{"schema":{"type":"string"},"in":"query","name":"repoName","required":false,"description":"Repository full name, e.g. owner/repo"}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"reviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"generatedTitle":{"type":"string"},"generatedDescription":{"type":"string"},"label":{"nullable":true,"type":"string"},"discussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"prTitle":{"type":"string"},"createdAt":{"type":"string"},"commentedCode":{"nullable":true,"type":"string"},"prFile":{"nullable":true,"type":"string"},"prLink":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"commitSha":{"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"author":{"nullable":true,"type":"string"},"comment":{"nullable":true,"type":"string"},"createdAt":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"displayName":{"nullable":true,"type":"string"}},"additionalProperties":false}}},"required":["id","prTitle","createdAt","commitSha","comments"],"additionalProperties":false}},"scopes":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"repositoryName":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId","repositoryName"],"additionalProperties":false}},"enabled":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"recalculatedAt":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"activeVersion":{"type":"number"},"externalReviewerId":{"nullable":true,"type":"string"},"reviewerTags":{"nullable":true,"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"reviewerLabels":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"diffSettings":{"nullable":true},"pendingReviewerUpdateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pendingReviewerUpdateIssuedAt":{"nullable":true,"type":"string"},"activeVersionRules":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rule":{"type":"string"},"status":{"type":"string","enum":["active","disabled","deleted","pending","superseded","rejected"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["ruleId","rule","status","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"reviewerId":{"type":"string"},"version":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"},"updatedByAvatarUrl":{"nullable":true,"type":"string"}},"required":["reviewerId","version","title","description","updatedAt","updatedBy"],"additionalProperties":false}},"acceptanceRates":{"nullable":true,"type":"object","properties":{"orgAcceptedCounter":{"type":"number"},"orgRejectedCounter":{"type":"number"},"orgUnaddressedCounter":{"type":"number"},"orgAcceptedRate":{"type":"number"},"orgRejectedRate":{"type":"number"},"orgUnaddressedRate":{"type":"number"},"orgCounter":{"type":"number"}},"required":["orgAcceptedCounter","orgRejectedCounter","orgUnaddressedCounter","orgAcceptedRate","orgRejectedRate","orgUnaddressedRate","orgCounter"],"additionalProperties":false},"canEdit":{"nullable":true,"type":"boolean"},"configurations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pathPattern":{"nullable":true,"type":"string"},"configName":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["id","repoId","pathPattern","configName","metadata"],"additionalProperties":false}}},"required":["id","title","description","generatedTitle","generatedDescription","label","discussions","scopes","enabled","createdAt","updatedAt","type","activeVersion","activeVersionRules","versions"],"additionalProperties":false}}},"required":["reviewers"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"post":{"operationId":"postApiV2ReviewerReviewers","tags":["reviewer"],"description":"Create a new custom reviewer","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":7,"maxLength":255,"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}\\t\\r\\n]+$"},"description":{"type":"string","minLength":7,"maxLength":25000,"pattern":"^[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}\\t\\r\\n]+$"},"discussionsIds":{"nullable":true,"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"label":{"type":"string"},"enabled":{"type":"boolean"},"scopes":{"nullable":true,"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId"]}},"diffSettings":{"nullable":true,"type":"object","properties":{"new_only":{"type":"boolean"},"add_context":{"type":"boolean"},"exclude_languages":{"type":"array","items":{"type":"string"}},"exclude_test_files":{"type":"boolean"},"exclude_cicd_files":{"type":"boolean"},"exclude_db_migration_files":{"type":"boolean"},"execution_type":{"type":"string","enum":["Workflow","Agent"]},"should_prefer_agentic":{"type":"boolean"}}},"externalReviewerId":{"nullable":true,"type":"string"},"language":{"nullable":true,"type":"string"}},"required":["title","description","type","label","enabled"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"reviewer":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"generatedTitle":{"type":"string"},"generatedDescription":{"type":"string"},"label":{"nullable":true,"type":"string"},"discussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"prTitle":{"type":"string"},"createdAt":{"type":"string"},"commentedCode":{"nullable":true,"type":"string"},"prFile":{"nullable":true,"type":"string"},"prLink":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"commitSha":{"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"author":{"nullable":true,"type":"string"},"comment":{"nullable":true,"type":"string"},"createdAt":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"displayName":{"nullable":true,"type":"string"}},"additionalProperties":false}}},"required":["id","prTitle","createdAt","commitSha","comments"],"additionalProperties":false}},"scopes":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"repositoryName":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId","repositoryName"],"additionalProperties":false}},"enabled":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"recalculatedAt":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"activeVersion":{"type":"number"},"externalReviewerId":{"nullable":true,"type":"string"},"reviewerTags":{"nullable":true,"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"reviewerLabels":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"diffSettings":{"nullable":true},"pendingReviewerUpdateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pendingReviewerUpdateIssuedAt":{"nullable":true,"type":"string"},"activeVersionRules":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rule":{"type":"string"},"status":{"type":"string","enum":["active","disabled","deleted","pending","superseded","rejected"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["ruleId","rule","status","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"reviewerId":{"type":"string"},"version":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"updatedAt":{"type":"string"},"updatedBy":{"type":"string"},"updatedByAvatarUrl":{"nullable":true,"type":"string"}},"required":["reviewerId","version","title","description","updatedAt","updatedBy"],"additionalProperties":false}},"acceptanceRates":{"nullable":true,"type":"object","properties":{"orgAcceptedCounter":{"type":"number"},"orgRejectedCounter":{"type":"number"},"orgUnaddressedCounter":{"type":"number"},"orgAcceptedRate":{"type":"number"},"orgRejectedRate":{"type":"number"},"orgUnaddressedRate":{"type":"number"},"orgCounter":{"type":"number"}},"required":["orgAcceptedCounter","orgRejectedCounter","orgUnaddressedCounter","orgAcceptedRate","orgRejectedRate","orgUnaddressedRate","orgCounter"],"additionalProperties":false},"canEdit":{"nullable":true,"type":"boolean"},"configurations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pathPattern":{"nullable":true,"type":"string"},"configName":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["id","repoId","pathPattern","configName","metadata"],"additionalProperties":false}}},"required":["id","title","description","generatedTitle","generatedDescription","label","discussions","scopes","enabled","createdAt","updatedAt","type","activeVersion","activeVersionRules","versions"],"additionalProperties":false}},"required":["reviewer"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/reviewers/{reviewerId}/version/{version}":{"patch":{"operationId":"patchApiV2ReviewerReviewersByReviewerIdVersionByVersion","tags":["reviewer"],"description":"Change activeVersion of a reviewer","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"reviewerId","required":true},{"schema":{"type":"number"},"in":"path","name":"version","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/optimized-prompts":{"post":{"operationId":"postApiV2ReviewerOptimizedPrompts","tags":["reviewer"],"description":"Optimize a prompt with feedback and examples","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string"},"feedback":{"type":"string"},"examples":{"type":"array","items":{"type":"object","properties":{"comment":{"type":"string"},"commentedCode":{"type":"string"},"file":{"type":"string"},"feedback":{"nullable":true,"type":"string"},"vote":{"nullable":true,"type":"string","enum":["up","down"]}},"required":["comment","commentedCode","file"]}}},"required":["prompt","feedback","examples"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string"},"suggestedTitle":{"type":"string"}},"required":["prompt","suggestedTitle"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/reviewer/classifications":{"post":{"operationId":"postApiV2ReviewerClassifications","tags":["reviewer"],"description":"Classify a prompt","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string"},"title":{"type":"string"}},"required":["prompt","title"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"}},"required":["label"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/review-questions/rank":{"post":{"operationId":"postApiV2ReviewQuestionsRank","tags":["review-questions"],"description":"Rank the top review questions for a pull request diff","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"diff":{"type":"string","minLength":1,"maxLength":200000},"k":{"default":3,"type":"integer","minimum":1,"maximum":9007199254740991},"topCategories":{"default":2,"type":"integer","minimum":1,"maximum":5}},"required":["repoId","diff"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"routedCategories":{"type":"array","items":{"type":"string"}},"questions":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"title":{"type":"string"},"canonicalQuestion":{"type":"string"},"category":{"type":"string"},"score":{"type":"number"},"probability":{"type":"number"}},"required":["questionId","title","canonicalQuestion","category","score","probability"],"additionalProperties":false}},"questionSource":{"nullable":true,"type":"string","enum":["repo","global"]}},"required":["routedCategories","questions","questionSource"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/experts":{"get":{"operationId":"getApiV2Experts","tags":["experts"],"description":"List experts for the org (optionally filtered by repo)","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"repoId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"experts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"principalType":{"type":"string","enum":["user","group"]},"principalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"allRepos":{"type":"boolean"},"displayName":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"repoFullName":{"nullable":true,"type":"string"}},"required":["id","principalType","principalId","repoId","allRepos","displayName","avatarUrl","repoFullName"],"additionalProperties":false}}},"required":["experts"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"post":{"operationId":"postApiV2Experts","tags":["experts"],"description":"Assign an expert (per-repo or all-repos; user or group)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"principalType":{"type":"string","enum":["user","group"]},"principalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"allRepos":{"default":false,"type":"boolean"}},"required":["principalType","principalId"]}}}},"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/experts/{expertId}":{"delete":{"operationId":"deleteApiV2ExpertsByExpertId","tags":["experts"],"description":"Remove an expert assignment","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"expertId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans":{"post":{"operationId":"postApiV2Plans","tags":["plans"],"description":"Create or update a plan","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seriesKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"content":{"type":"string","minLength":1},"repoIds":{"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"repoNames":{"maxItems":20,"type":"array","items":{"type":"string"}},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"type":"string"},"tokensUsed":{"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"]}},"required":["seriesKey","content","agentVendor"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"409":{"description":"A concurrent upload took the plan number; upload again","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"A concurrent upload took the plan number; upload again"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"get":{"operationId":"getApiV2Plans","tags":["plans"],"description":"List plans for the org","parameters":[{"schema":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"repoId","required":false},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"prNumber","required":false},{"schema":{"type":"string"},"in":"query","name":"search","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}}},"required":["plans"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/my-plans":{"get":{"operationId":"getApiV2PlansMyPlans","tags":["plans"],"description":"List the plans the caller authored and the plans waiting on their review","parameters":[{"schema":{"default":50,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageSize","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"myPlansPage","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"waitingForReviewPage","required":false},{"schema":{"type":"string"},"in":"query","name":"search","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"myPlans":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}},"hasMore":{"type":"boolean"}},"required":["plans","hasMore"],"additionalProperties":false},"waitingForReview":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}},"hasMore":{"type":"boolean"}},"required":["plans","hasMore"],"additionalProperties":false}},"required":["myPlans","waitingForReview"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}":{"get":{"operationId":"getApiV2PlansBySeriesId","tags":["plans"],"description":"Get a plan by series ID, optionally at an older version number (defaults to latest)","parameters":[{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"version","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"put":{"operationId":"putApiV2PlansBySeriesId","tags":["plans"],"description":"Change a plan's lifecycle status (pending / approved / implemented / closed / deleted). Does not modify plan content — use POST /plans to add a new content version.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]}},"required":["status"]}}}},"parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"delete":{"operationId":"deleteApiV2PlansBySeriesId","tags":["plans"],"description":"Delete a plan","parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/pull-requests":{"post":{"operationId":"postApiV2PlansBySeriesIdPullRequests","tags":["plans"],"description":"Link a pull request to a plan and mark the plan implemented.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoName":{"type":"string"},"prNumber":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991}},"required":["prNumber"]}}}},"parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/viewed":{"post":{"operationId":"postApiV2PlansBySeriesIdViewed","tags":["plans"],"description":"Record that the caller has seen the plan's comments","parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/reviews":{"post":{"operationId":"postApiV2PlansBySeriesIdReviews","tags":["plans"],"description":"Submit or update a review for a plan","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","approved"]},"body":{"type":"string"}},"required":["state"]}}}},"parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/comments":{"get":{"operationId":"getApiV2PlansBySeriesIdComments","tags":["plans"],"description":"List comments for a plan; outdated comments are included by default.","parameters":[{"schema":{"default":"true","type":"string","enum":["true","false"]},"in":"query","name":"includeOutdated","required":false,"description":"Include comments marked outdated; defaults to true."},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"authorUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"anchor":{"nullable":true,"type":"string"},"outdated":{"type":"boolean"},"resolvedOccurrence":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolvedText":{"nullable":true,"type":"string"},"triageState":{"nullable":true,"type":"string","enum":["open","dismissed"]},"triagedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"triagedAt":{"nullable":true,"type":"string"},"addressedInVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"authorName":{"nullable":true,"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"}},"required":["id","seriesId","versionId","parentId","body","authorUserId","anchor","outdated","resolvedOccurrence","resolvedText","triageState","triagedByUserId","triagedAt","addressedInVersionId","createdAt"],"additionalProperties":false}},"mutedThreadIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["comments","mutedThreadIds"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"post":{"operationId":"postApiV2PlansBySeriesIdComments","tags":["plans"],"description":"Add a comment to a plan","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":65536},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"anchor":{"type":"string"},"anchorPrefix":{"type":"string","maxLength":512},"anchorSuffix":{"type":"string","maxLength":512},"anchorOccurrence":{"type":"integer","minimum":0,"maximum":9007199254740991},"parentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mentionedUserIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["body","versionId"]}}}},"parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"authorUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"anchor":{"nullable":true,"type":"string"},"outdated":{"type":"boolean"},"resolvedOccurrence":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolvedText":{"nullable":true,"type":"string"},"triageState":{"nullable":true,"type":"string","enum":["open","dismissed"]},"triagedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"triagedAt":{"nullable":true,"type":"string"},"addressedInVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"authorName":{"nullable":true,"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"}},"required":["id","seriesId","versionId","parentId","body","authorUserId","anchor","outdated","resolvedOccurrence","resolvedText","triageState","triagedByUserId","triagedAt","addressedInVersionId","createdAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/comments/{commentId}/mute":{"put":{"operationId":"putApiV2PlansBySeriesIdCommentsByCommentIdMute","tags":["plans"],"description":"Mute or unmute reply notifications for a comment thread","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"muted":{"type":"boolean"}},"required":["muted"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"seriesId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"commentId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/comments/{commentId}":{"patch":{"operationId":"patchApiV2PlansBySeriesIdCommentsByCommentId","tags":["plans"],"description":"Update a comment body and/or triage state","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":65536},"triageState":{"nullable":true,"anyOf":[{"type":"string","enum":["open","dismissed"]},{"type":"string","enum":["used","skipped"]}]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"seriesId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"commentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"authorUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"anchor":{"nullable":true,"type":"string"},"outdated":{"type":"boolean"},"resolvedOccurrence":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolvedText":{"nullable":true,"type":"string"},"triageState":{"nullable":true,"type":"string","enum":["open","dismissed"]},"triagedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"triagedAt":{"nullable":true,"type":"string"},"addressedInVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"authorName":{"nullable":true,"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"}},"required":["id","seriesId","versionId","parentId","body","authorUserId","anchor","outdated","resolvedOccurrence","resolvedText","triageState","triagedByUserId","triagedAt","addressedInVersionId","createdAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"delete":{"operationId":"deleteApiV2PlansBySeriesIdCommentsByCommentId","tags":["plans"],"description":"Delete a comment","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"seriesId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"commentId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/eligible-reviewers":{"get":{"operationId":"getApiV2PlansBySeriesIdEligibleReviewers","tags":["plans"],"description":"List the users and groups that can review this plan","parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"reviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reviewerType":{"type":"string","enum":["user","group"]},"name":{"type":"string"},"login":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"}},"required":["id","reviewerType","name"],"additionalProperties":false}}},"required":["reviewers"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/review-requests":{"post":{"operationId":"postApiV2PlansBySeriesIdReviewRequests","tags":["plans"],"description":"Request reviews from users or groups. A group ID is stored as the group itself; its members are the ones notified.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reviewerIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"User or group IDs; a group ID is stored as the group itself"},"reviewerUserIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"User or group IDs; a group ID is stored as the group itself"}}}}}},"parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"The plan would exceed its reviewer limit.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"The plan would exceed its reviewer limit."}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"409":{"description":"Plan is implemented, closed or deleted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Plan is implemented, closed or deleted"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/plans/{seriesId}/reviewers":{"put":{"operationId":"putApiV2PlansBySeriesIdReviewers","tags":["plans"],"description":"Replace the requested reviewer set, given user or group IDs. Reviewers who already submitted a review are kept even if omitted, so their verdict is not erased.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reviewerIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"User or group IDs; a group ID is stored as the group itself"},"reviewerUserIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"User or group IDs; a group ID is stored as the group itself"}}}}}},"parameters":[{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","pattern":"^PLAN-\\d{1,9}$"}]},"in":"path","name":"seriesId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"The plan would exceed its reviewer limit.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"The plan would exceed its reviewer limit."}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"409":{"description":"Plan is implemented, closed or deleted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Plan is implemented, closed or deleted"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/tasks":{"get":{"operationId":"getApiV2Tasks","tags":["tasks"],"description":"Combined tasks list: fans out to changes search + plans list","parameters":[{"schema":{"type":"string"},"in":"query","name":"search","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":50,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageSize","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"repositories","required":false},{"schema":{"type":"string","enum":["open","closed","merged","draft"]},"in":"query","name":"state","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"statuses","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"authors","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"sourceTypes","required":false},{"schema":{"type":"string","enum":["newest","oldest","recently_updated","least_recently_updated"]},"in":"query","name":"sort","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"planStatus","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"planRepoId","required":false},{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"prNumber","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"planId","required":false},{"schema":{"default":"all","type":"string","enum":["all","pr","plan"]},"in":"query","name":"type","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"},"total":{"type":"number","minimum":0}},"required":["changes","page","hasMore","total"],"additionalProperties":false},"plans":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}}},"required":["plans"],"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/tasks/my":{"get":{"operationId":"getApiV2TasksMy","tags":["tasks"],"description":"Combined my-tasks: fans out to my-prs + my-plans with independent section pages","parameters":[{"schema":{"type":"string"},"in":"query","name":"search","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"repositories","required":false},{"schema":{"default":50,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageSize","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"openWorkPage","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"changesWaitingForReviewPage","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"myPlansPage","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"plansWaitingForReviewPage","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"object","properties":{"myOpenWork":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","page","hasMore"],"additionalProperties":false},"waitingForReview":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repositoryId":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"prNumber":{"type":"number"},"authorName":{"type":"string"},"authorAvatarUrl":{"nullable":true,"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"repositoryName":{"type":"string"},"updatedAt":{"type":"string"},"isMergeable":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"isDraft":{"type":"boolean"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]},"runs":{"type":"array","items":{"type":"object","properties":{"ciName":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["success","failure","cancelled","pending","skipped","unknown"]},"link":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["ciName","name","status"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["assigned","reviewed","approved"]},"reviewer":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"hasWriteAccess":{"type":"boolean"}},"required":["state","reviewer","createdAt","updatedAt","hasWriteAccess"],"additionalProperties":false}},"filesCount":{"type":"number"},"lastMergeVerdict":{"nullable":true,"type":"string","enum":["merge","reject","escalate","open_tasks"]},"lastMergeVerdictExplanation":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","authorName","title","repositoryName","updatedAt","isMergeable","state","isDraft","filesCount"],"additionalProperties":false}},"page":{"type":"number","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","page","hasMore"],"additionalProperties":false}},"required":["myOpenWork","waitingForReview"],"additionalProperties":false},"plans":{"type":"object","properties":{"myPlans":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}},"hasMore":{"type":"boolean"}},"required":["plans","hasMore"],"additionalProperties":false},"waitingForReview":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string"},"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pullRequests":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"nullable":true,"type":"string"},"prNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string","enum":["open","closed","merged","draft"]},"htmlUrl":{"nullable":true,"type":"string"},"linkedAt":{"type":"string"},"linkedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"nullable":true,"type":"string","enum":["mcp","plan_reference","shared_ticket","llm"]}},"required":["repositoryId","repoFullName","prNumber","title","state","htmlUrl","linkedAt","linkedByUserId","source"],"additionalProperties":false}},"reviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerType":{"type":"string","enum":["user","group"]},"reviewerName":{"nullable":true,"type":"string"},"reviewerLogin":{"nullable":true,"type":"string"},"reviewerAvatarUrl":{"nullable":true,"type":"string"},"groupMembersCount":{"nullable":true,"type":"number"},"state":{"type":"string","enum":["assigned","approved"]},"body":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","seriesId","reviewerUserId","reviewerGroupId","reviewerType","reviewerName","reviewerLogin","reviewerAvatarUrl","groupMembersCount","state","body","createdAt","updatedAt"],"additionalProperties":false}},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt"],"additionalProperties":false}},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seriesKey":{"type":"string"},"refNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"displayId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","implemented","deleted","closed"]},"implementedByUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"implementedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"version":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"agentVendor":{"type":"string","enum":["claude-code","cursor","codex"]},"modelId":{"nullable":true,"type":"string"},"tokensUsed":{"nullable":true,"type":"object","properties":{"input_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"output_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input_tokens","output_tokens"],"additionalProperties":false},"createdAt":{"type":"string"},"content":{"type":"string"}},"required":["id","authorUserId","authorName","agentVendor","modelId","tokensUsed","createdAt","content"],"additionalProperties":false},"lastCommentAt":{"nullable":true,"type":"string"},"lastViewedAt":{"nullable":true,"type":"string"}},"required":["id","orgId","repoIds","pullRequests","versions","userId","seriesKey","refNumber","displayId","status","implementedByUserId","implementedAt","createdAt","updatedAt","version"],"additionalProperties":false}},"hasMore":{"type":"boolean"}},"required":["plans","hasMore"],"additionalProperties":false}},"required":["myPlans","waitingForReview"],"additionalProperties":false}},"required":["changes","plans"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/ws":{"get":{"operationId":"getApiV2Ws","tags":["websocket"],"description":"Subscribe to a socket","responses":{"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/installations":{"get":{"operationId":"getApiV2Installations","tags":["installations"],"description":"Get VCS installations","parameters":[{"schema":{"type":"string"},"in":"query","name":"host","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"installations":{"type":"array","items":{"type":"object","properties":{"installationId":{"type":"number"},"account":{"type":"string"},"accountType":{"type":"string"},"installationType":{"type":"string"},"lastUpdatedAt":{"type":"string"},"lastUpdatedBy":{"type":"string"},"avatarUrl":{"type":"string"},"orgId":{"type":"string"},"createdAt":{"type":"string"},"status":{"type":"string","enum":["Active","Limited","Disabled"]},"repoSelection":{"type":"string"},"writeAppConfigured":{"type":"boolean"},"writeAppMissingRepos":{"type":"boolean"},"repositories":{"type":"array","items":{"type":"string"}},"host":{"type":"string"}},"required":["installationId","account","accountType","installationType","lastUpdatedAt","lastUpdatedBy","avatarUrl","orgId","createdAt","status","repoSelection","writeAppConfigured","writeAppMissingRepos","repositories","host"],"additionalProperties":false}}},"required":["installations"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/installations/write-access/{repoName}":{"get":{"operationId":"getApiV2InstallationsWriteAccessByRepoName","tags":["installations"],"description":"Get write access status for a repo","parameters":[{"schema":{"type":"string"},"in":"path","name":"repoName","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"hasAccess":{"type":"boolean"},"reason":{"nullable":true,"type":"string","enum":["missing-user-installation","missing-org-installation","repo-not-configured","unsupported-vcs"]}},"required":["hasAccess","reason"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/runs/redundant":{"get":{"operationId":"getApiV2RunsRedundant","tags":["ci"],"description":"Get redundant ci workflow runs","parameters":[{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageSize","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageNumber","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"redundantRuns":{"type":"array","items":{"type":"object","properties":{"jobName":{"type":"string"},"repoName":{"type":"string"},"codeReviewLink":{"type":"string"},"codeReviewState":{"type":"string","enum":["open","closed","merged","draft"]},"jobNumOfCRs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duration":{"type":"number"},"time":{"type":"string"},"jobLink":{"nullable":true,"type":"string"}},"required":["jobName","repoName","codeReviewLink","codeReviewState","jobNumOfCRs","duration","time"],"additionalProperties":false}},"mostRedundantJob":{"nullable":true,"type":"string"},"estimatedRedundantTime":{"type":"integer","minimum":0,"maximum":9007199254740991},"estimatedSavings":{"nullable":true,"type":"number","minimum":0}},"required":["redundantRuns","estimatedRedundantTime"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/notifications":{"get":{"operationId":"getApiV2Notifications","tags":["notifications"],"description":"Get all notifications for a specific user","responses":{"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/notifications/{id}":{"patch":{"operationId":"patchApiV2NotificationsById","tags":["notifications"],"description":"Mark a specific notification as read","parameters":[{"schema":{"type":"string","pattern":"^[+-]?\\d+$"},"in":"path","name":"id","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/rules/{ruleId}/toggle":{"patch":{"operationId":"patchApiV2RulesByRuleIdToggle","tags":["rules"],"description":"Enable/Disable a rule","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ruleId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/memories":{"get":{"operationId":"getApiV2Memories","summary":"List memories","tags":["memories"],"description":"List visible memories from active agent versions with agent/status filters and one-based pagination.","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"agentId","required":false},{"schema":{"type":"string","minLength":1},"in":"query","name":"agentName","required":false},{"schema":{"type":"string","enum":["active","disabled"]},"in":"query","name":"status","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":20,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"in":"query","name":"pageSize","required":false}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"memories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"},"status":{"type":"string","enum":["active","disabled"]},"agent":{"nullable":true,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","version"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","text","status","agent","createdAt","updatedAt"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalPages":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["page","pageSize","total","totalPages"],"additionalProperties":false}},"required":["memories","pagination"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/memories/{id}":{"get":{"operationId":"getApiV2MemoriesById","summary":"Get a memory","tags":["memories"],"description":"Read a visible memory by ID with source PR comments. Use sourceLimit to request a bounded source list; omitted returns all sources.","parameters":[{"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"sourceLimit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"memory":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"},"status":{"type":"string","enum":["active","disabled"]},"agent":{"nullable":true,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","version"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"author":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"url":{"nullable":true,"type":"string"},"pullRequest":{"type":"object","properties":{"repositoryFullName":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["repositoryFullName","number","title"],"additionalProperties":false}},"required":["id","author","avatarUrl","body","createdAt","url","pullRequest"],"additionalProperties":false}}},"required":["id","text","status","agent","createdAt","updatedAt","sources"],"additionalProperties":false}},"required":["memory"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2MemoriesById","summary":"Update a memory","tags":["memories"],"description":"Update text and/or status with memory-write permission. Omitted fields remain unchanged; disable using status=disabled.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":10000},"status":{"type":"string","enum":["active","disabled"]}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"memory":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"},"status":{"type":"string","enum":["active","disabled"]},"agent":{"nullable":true,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","version"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","text","status","agent","createdAt","updatedAt"],"additionalProperties":false}},"required":["memory"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations":{"get":{"operationId":"getApiV2Integrations","tags":["Integrations"],"description":"Get integrations for org","parameters":[{"schema":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]},"in":"query","name":"integrationType","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"integrationType":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]},"status":{"type":"string","enum":["disabled","failed","pending","success"]},"updatedAt":{"type":"string"},"updatedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadata":{}},"required":["id","integrationType","status","updatedAt","metadata"],"additionalProperties":false}}},"required":["integrations"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"post":{"operationId":"postApiV2Integrations","tags":["Integrations"],"description":"Create a new integration","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"integrationType":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]},"credentials":{},"metadata":{"nullable":true,"type":"object","additionalProperties":{}},"codeVerifier":{"type":"string"}},"required":["integrationType","credentials"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"integrationType":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]},"status":{"type":"string","enum":["disabled","failed","pending","success"]},"updatedAt":{"type":"string"},"updatedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadata":{}},"required":["id","integrationType","status","updatedAt","metadata"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/slack":{"get":{"operationId":"getApiV2IntegrationsSlack","tags":["Integrations"],"description":"Get user slack details, if exists","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slackId":{"type":"string"},"slackEmail":{"type":"string"},"teamId":{"type":"string"},"enableNotifications":{"type":"boolean"}},"required":["id","userId","slackId","slackEmail","teamId","enableNotifications"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"post":{"operationId":"postApiV2IntegrationsSlack","tags":["Integrations"],"description":"Save user slack details","responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slackId":{"type":"string"},"slackEmail":{"type":"string"},"teamId":{"type":"string"},"enableNotifications":{"type":"boolean"}},"required":["id","userId","slackId","slackEmail","teamId","enableNotifications"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/state/{type}":{"get":{"operationId":"getApiV2IntegrationsStateByType","tags":["Integrations"],"description":"Get valid OAuth state param for a new OAuth integration","parameters":[{"schema":{"type":"string"},"in":"path","name":"type","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string"},"createdAt":{"type":"string"},"vendor":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]}},"required":["state","createdAt","vendor"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/entire/install-url":{"get":{"operationId":"getApiV2IntegrationsEntireInstallUrl","tags":["Integrations"],"description":"Build the Entire plugin install URL","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/azure-repos":{"post":{"operationId":"postApiV2IntegrationsAzureRepos","tags":["Integrations"],"description":"Connect the Azure Repos (code review) integration","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]}},"required":["account"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"delete":{"operationId":"deleteApiV2IntegrationsAzureRepos","tags":["Integrations"],"description":"Disconnect the Azure Repos (code review) integration, keeping Azure DevOps (Boards)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/gitlab/repositories":{"get":{"operationId":"getApiV2IntegrationsGitlabRepositories","tags":["Integrations"],"description":"Get gitlab repositories for selection","parameters":[{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":100,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"in":"query","name":"perPage","required":false},{"schema":{"type":"string"},"in":"query","name":"search","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"selected":{"type":"boolean"}},"required":["name","selected"],"additionalProperties":false}},"selectedRepositories":{"type":"array","items":{"type":"string"}},"pagination":{"type":"object","properties":{"page":{"type":"number"},"perPage":{"type":"number"},"total":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["page","perPage","hasMore"],"additionalProperties":false}},"required":["repositories"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2IntegrationsGitlabRepositories","tags":["Integrations"],"description":"Choose repositories to be used in Baz","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"selected":{"type":"boolean"}},"required":["name","selected"]}}},"required":["repositories"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"selected":{"type":"boolean"}},"required":["name","selected"],"additionalProperties":false}},"selectedRepositories":{"type":"array","items":{"type":"string"}},"pagination":{"type":"object","properties":{"page":{"type":"number"},"perPage":{"type":"number"},"total":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["page","perPage","hasMore"],"additionalProperties":false}},"required":["repositories"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/azure-repos/repositories":{"get":{"operationId":"getApiV2IntegrationsAzureReposRepositories","tags":["Integrations"],"description":"Get Azure Repos repositories for selection","parameters":[{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":100,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"in":"query","name":"perPage","required":false},{"schema":{"type":"string"},"in":"query","name":"search","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"selected":{"type":"boolean"}},"required":["name","selected"],"additionalProperties":false}},"selectedRepositories":{"type":"array","items":{"type":"string"}},"pagination":{"type":"object","properties":{"page":{"type":"number"},"perPage":{"type":"number"},"total":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["page","perPage","hasMore"],"additionalProperties":false}},"required":["repositories"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2IntegrationsAzureReposRepositories","tags":["Integrations"],"description":"Choose Azure Repos repositories to be used in Baz","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"selected":{"type":"boolean"}},"required":["name","selected"]}}},"required":["repositories"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"repositories":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"selected":{"type":"boolean"}},"required":["name","selected"],"additionalProperties":false}},"selectedRepositories":{"type":"array","items":{"type":"string"}},"pagination":{"type":"object","properties":{"page":{"type":"number"},"perPage":{"type":"number"},"total":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["page","perPage","hasMore"],"additionalProperties":false}},"required":["repositories"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/azure-devops/projects/{project}/repositories":{"post":{"operationId":"postApiV2IntegrationsAzureDevopsProjectsByProjectRepositories","summary":"Add an Azure DevOps repository","tags":["Integrations"],"description":"Add one Azure DevOps repository to Baz. The project must already be selected in Baz.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repository":{"type":"string","minLength":1,"description":"The repository name, or the Azure DevOps repository ID (GUID)"},"automaticReview":{"default":true,"type":"boolean"}},"required":["repository"]}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"project","required":true}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fullName":{"type":"string"},"automaticReview":{"type":"boolean"}},"required":["id","fullName","automaticReview"],"additionalProperties":false}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fullName":{"type":"string"},"automaticReview":{"type":"boolean"}},"required":["id","fullName","automaticReview"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/azure-repos/projects":{"get":{"operationId":"getApiV2IntegrationsAzureReposProjects","tags":["Integrations"],"description":"Get Azure Repos projects for selection","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"selected":{"type":"boolean"},"canAdd":{"type":"boolean"},"reason":{"type":"string"}},"required":["id","name","selected"],"additionalProperties":false}},"failed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string"}},"required":["id","name","reason"],"additionalProperties":false}}},"required":["projects"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2IntegrationsAzureReposProjects","tags":["Integrations"],"description":"Choose Azure Repos projects to scope Baz to","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"selected":{"type":"boolean"}},"required":["id","name","selected"]}}},"required":["projects"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"selected":{"type":"boolean"},"canAdd":{"type":"boolean"},"reason":{"type":"string"}},"required":["id","name","selected"],"additionalProperties":false}},"failed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string"}},"required":["id","name","reason"],"additionalProperties":false}}},"required":["projects"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/preview-env/{integrationId}/metadata":{"patch":{"operationId":"patchApiV2IntegrationsPreviewEnvByIntegrationIdMetadata","tags":["Integrations"],"description":"Update preview environment integration metadata","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metadata":{"type":"object","properties":{"repoPaths":{"type":"array","items":{"type":"object","properties":{"repoId":{"type":"string"},"repoName":{"type":"string"},"paths":{"type":"array","items":{"type":"string","minLength":1}}},"required":["repoId","repoName","paths"]}}},"required":["repoPaths"]}},"required":["metadata"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"integrationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"integrationType":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]},"status":{"type":"string","enum":["disabled","failed","pending","success"]},"updatedAt":{"type":"string"},"updatedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadata":{}},"required":["id","integrationType","status","updatedAt","metadata"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/sentry/{integrationId}/projects":{"get":{"operationId":"getApiV2IntegrationsSentryByIntegrationIdProjects","tags":["Integrations"],"description":"Fetch Sentry projects and environments for an existing integration","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"integrationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"environments":{"type":"array","items":{"type":"string"}}},"required":["slug","name","environments"],"additionalProperties":false}}},"required":["projects"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/sentry/projects":{"post":{"operationId":"postApiV2IntegrationsSentryProjects","tags":["Integrations"],"description":"Fetch Sentry projects and their environments","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"base_url":{"type":"string","minLength":1},"org_slug":{"type":"string","minLength":1},"auth_token":{"type":"string","minLength":1}},"required":["base_url","org_slug","auth_token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"environments":{"type":"array","items":{"type":"string"}}},"required":["slug","name","environments"],"additionalProperties":false}}},"required":["projects"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/fibery/sre-ticketing-options":{"get":{"operationId":"getApiV2IntegrationsFiberySreTicketingOptions","tags":["Integrations"],"description":"Get Fibery schema options for SRE ticketing","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"types":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":["types"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/gitlab/{integrationId}/credentials":{"patch":{"operationId":"patchApiV2IntegrationsGitlabByIntegrationIdCredentials","tags":["Integrations"],"description":"Update the credentials of an existing GitLab integration","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"credentials":{"type":"object","properties":{"token":{"type":"string","minLength":1}},"required":["token"]}},"required":["credentials"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"integrationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"integrationType":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]},"status":{"type":"string","enum":["disabled","failed","pending","success"]},"updatedAt":{"type":"string"},"updatedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadata":{}},"required":["id","integrationType","status","updatedAt","metadata"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/{integrationId}":{"patch":{"operationId":"patchApiV2IntegrationsByIntegrationId","tags":["Integrations"],"description":"Update integration metadata","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metadata":{"type":"object","properties":{"repoPaths":{"type":"array","items":{"type":"object","properties":{"repoId":{"type":"string"},"repoName":{"type":"string"},"paths":{"type":"array","items":{"type":"string","minLength":1}}},"required":["repoId","repoName","paths"]}}},"required":["repoPaths"]}},"required":["metadata"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"integrationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"integrationType":{"type":"string","enum":["datadog","dynatrace","new_relic","sentry","slack","jira","linear","gitlab","fss_private","youtrack","preview_env_auth","figma","azure_dev_ops","shortcut","monday","google_docs","fibery","notion","private_spec_reviewer","ghes","coralogix","entire","splunk_observability"]},"status":{"type":"string","enum":["disabled","failed","pending","success"]},"updatedAt":{"type":"string"},"updatedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadata":{}},"required":["id","integrationType","status","updatedAt","metadata"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/{id}":{"delete":{"operationId":"deleteApiV2IntegrationsById","tags":["Integrations"],"description":"Delete an integration","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/ghes/setup":{"post":{"operationId":"postApiV2IntegrationsGhesSetup","tags":["Integrations"],"description":"Setup GHES app manifest flow","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string","minLength":1},"orgName":{"type":"string","minLength":1},"callbackUrl":{"type":"string","format":"uri"}},"required":["host","orgName","callbackUrl"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"registrationUrl":{"type":"string"},"manifest":{"type":"string"},"state":{"type":"string"},"integrationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["registrationUrl","manifest","state","integrationId"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/integrations/ghes/complete":{"post":{"operationId":"postApiV2IntegrationsGhesComplete","tags":["Integrations"],"description":"Complete GHES app manifest flow — exchange code for credentials","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1},"state":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["code","state"]}}}},"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/git/{repoId}/branches":{"get":{"operationId":"getApiV2GitByRepoIdBranches","tags":["git"],"description":"Get branch names for a given repo","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"repoId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"string"}},"defaultBranch":{"type":"string"}},"required":["branches","defaultBranch"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/git/{repoId}/branches/{branch}":{"get":{"operationId":"getApiV2GitByRepoIdBranchesByBranch","tags":["git"],"description":"Get branch info","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"repoId","required":true},{"schema":{"type":"string"},"in":"path","name":"branch","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"headCommit":{"type":"string"},"commitsAhead":{"nullable":true,"type":"number"},"commitsBehind":{"nullable":true,"type":"number"}},"required":["name"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/discussions/interactions":{"get":{"operationId":"getApiV2DiscussionsInteractions","tags":["discussions"],"description":"Get user interactions with baz with pagination and filters","parameters":[{"schema":{"type":"string","enum":["last_day","last_week","last_2_weeks","last_month","last_6_months"]},"in":"query","name":"updated","required":false},{"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string","minLength":1}}]},"in":"query","name":"reviewerTitles","required":false},{"schema":{"default":"all_team_members","anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string","minLength":1}}]},"in":"query","name":"commentAuthors","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"outcome","required":false},{"schema":{"default":1,"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageNum","required":false},{"schema":{"default":20,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"pageSize","required":false},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"in":"query","name":"includeFilterOptions","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"interactions":{"type":"array","items":{"type":"object","properties":{"discussionId":{"type":"string"},"commentId":{"type":"string"},"isAddressed":{"type":"boolean"},"commentedCode":{"nullable":true,"type":"string"},"commentBody":{"nullable":true,"type":"string"},"updatedAt":{"type":"string"},"commentAuthor":{"type":"string"},"commentAuthorAvatarUrl":{"nullable":true,"type":"string"},"reviewerTitles":{"type":"array","items":{"nullable":true,"type":"string"}},"reviewerComment":{"type":"string"},"sentiment":{"nullable":true,"type":"string","enum":["POSITIVE","NEGATIVE","NEUTRAL"]},"reactions":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"}},"required":["author","body","createdAt"],"additionalProperties":false}},"outcome":{"nullable":true,"type":"string","enum":["ACCEPTED","REJECTED","UNADDRESSED"]},"markedAccepted":{"type":"boolean"},"commentAuthorUser":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"login":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["name","login","avatarUrl"],"additionalProperties":false},"crAuthorUser":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"login":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["name","login","avatarUrl"],"additionalProperties":false}},"required":["discussionId","commentId","isAddressed","commentedCode","commentBody","updatedAt","commentAuthor","commentAuthorAvatarUrl","reviewerTitles","reviewerComment","sentiment","reactions","outcome","markedAccepted"],"additionalProperties":false}},"hasMore":{"type":"boolean"},"perPage":{"type":"number"},"total":{"type":"number"},"filterOptions":{"type":"object","properties":{"availableReviewerTitles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"nullable":true,"type":"string"}},"required":["id","title"],"additionalProperties":false}},"availableCommentAuthors":{"type":"array","items":{"type":"object","properties":{"login":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["login","name","avatarUrl"],"additionalProperties":false}},"availableRepositories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"}},"required":["id","fullName"],"additionalProperties":false}}},"required":["availableReviewerTitles","availableCommentAuthors","availableRepositories"],"additionalProperties":false}},"required":["interactions","hasMore","perPage","total"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/discussions/interactions/aggregation":{"get":{"operationId":"getApiV2DiscussionsInteractionsAggregation","tags":["discussions"],"description":"Get aggregated outcome data for user interactions","parameters":[{"schema":{"type":"string","enum":["last_day","last_week","last_2_weeks","last_month","last_6_months"]},"in":"query","name":"updated","required":false},{"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string","minLength":1}}]},"in":"query","name":"reviewerTitles","required":false},{"schema":{"default":"all_team_members","anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string","minLength":1}}]},"in":"query","name":"commentAuthors","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"in":"query","name":"outcome","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"accepted":{"type":"integer","minimum":0,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":0,"maximum":9007199254740991},"unaddressed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["accepted","rejected","unaddressed"],"additionalProperties":false}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/discussions/by-branch":{"get":{"operationId":"getApiV2DiscussionsByBranch","tags":["discussions"],"description":"Get review discussions for the latest PR on a branch","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"repository","required":true},{"schema":{"type":"string","minLength":1},"in":"query","name":"branch","required":true},{"schema":{"default":"open","type":"string","enum":["open","all"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"file":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"commentedCode":{"nullable":true,"type":"string"},"status":{"nullable":true,"type":"string","enum":["open","resolved","addressed"]},"reviewerTitle":{"nullable":true,"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"}},"required":["author","body","createdAt"],"additionalProperties":false}}},"required":["id","file","startLine","endLine","commentedCode","status","reviewerTitle","comments"],"additionalProperties":false}},{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"string"}}},"required":["candidates"],"additionalProperties":false}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/discussions":{"post":{"operationId":"postApiV2Discussions","tags":["discussions"],"description":"Create a new discussion","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commitSha":{"type":"string","minLength":1},"file":{"type":"string","minLength":1},"startLine":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"endLine":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"side":{"type":"string","enum":["left","right"]},"body":{"type":"string","minLength":1},"bodyContentType":{"type":"string","enum":["markdown","html"]}},"required":["repoId","prId","commitSha","file","startLine","endLine","side","body","bodyContentType"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionType":{"type":"string","enum":["code","file","review"]},"commentedCode":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"prFile":{"nullable":true,"type":"string"},"startLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"endLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"author":{"type":"string"},"commitSha":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"outdated":{"type":"boolean"},"originalCommitSha":{"nullable":true,"type":"string"},"discussionState":{"type":"string","enum":["resolved","pending"]},"originalStartLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"originalEndLine":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"resolvedBy":{"nullable":true,"type":"string"},"assignee":{"nullable":true,"type":"string"},"side":{"nullable":true,"type":"string","enum":["left","right"]},"startSide":{"nullable":true,"type":"string","enum":["left","right"]},"isAddressed":{"type":"boolean"},"sentiment":{"nullable":true,"type":"string"},"isRealBug":{"type":"boolean"},"isProdBug":{"type":"boolean"},"isSecurityIssue":{"type":"boolean"},"isBazFixed":{"type":"boolean"},"markedAcceptedBy":{"nullable":true,"type":"string"},"markedAcceptedAt":{"nullable":true,"type":"string"},"bugCategory":{"nullable":true,"type":"string","enum":["code_correctness","architecture_and_compatibility","code_quality_and_conventions","security_best_practices","other"]}},"required":["id","prId","discussionType","commentedCode","externalId","prFile","startLine","endLine","author","commitSha","createdAt","updatedAt","outdated","originalCommitSha","discussionState","originalStartLine","originalEndLine","resolvedBy","assignee","side","startSide","isAddressed","sentiment","isRealBug","isProdBug","isSecurityIssue","isBazFixed","markedAcceptedBy","markedAcceptedAt","bugCategory"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/discussions/{id}":{"get":{"operationId":"getApiV2DiscussionsById","tags":["discussions"],"description":"Get a specific discussion by ID","parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"prTitle":{"type":"string"},"prLink":{"type":"string"},"createdAt":{"type":"string"},"commentedCode":{"type":"string"},"prFile":{"type":"string"},"prAuthor":{"type":"string"},"startLine":{"nullable":true,"type":"number"},"endLine":{"nullable":true,"type":"number"},"side":{"nullable":true,"type":"string","enum":["left","right"]},"commitSha":{"type":"string"},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string"},"comment":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"avatarUrl":{"type":"string"},"displayName":{"type":"string"},"reactions":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"}},"required":["author","body","createdAt"],"additionalProperties":false}},"externalId":{"nullable":true,"type":"string"}},"required":["id","author","comment","createdAt","reactions"],"additionalProperties":false}},"isAddressed":{"type":"boolean"},"crAuthorUser":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"login":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["name","login","avatarUrl"],"additionalProperties":false}},"required":["id","prTitle","prLink","createdAt","commentedCode","prFile","prAuthor","startLine","endLine","side","commitSha","comments","isAddressed"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"put":{"operationId":"putApiV2DiscussionsById","tags":["discussions"],"description":"Update a Baz comment (admin only)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"markedAccepted":{"type":"boolean","enum":[true]}},"required":["markedAccepted"]}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/overview":{"get":{"operationId":"getApiV2EvaluationsOverview","tags":["evaluations"],"description":"Get evaluations overview for org","parameters":[{"schema":{"default":"acceptedSuggestions","type":"string","enum":["acceptedSuggestions","fixedByBaz"]},"in":"query","name":"categoryStatsData","required":false},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"in":"query","name":"includeAllCategoryStats","required":false},{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"reviewerIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"logins","required":false},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"in":"query","name":"excludeSpec","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"generalStats":{"nullable":true,"type":"object","properties":{"prsReviewed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedSuggestions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejectedRate":{"nullable":true,"type":"number"},"fixedByBaz":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fixedByHuman":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["prsReviewed","acceptedSuggestions","rejectedRate","fixedByBaz","fixedByHuman"],"additionalProperties":false},"byCategory":{"nullable":true,"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reviewers":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["title","count"],"additionalProperties":false}}},"required":["count","reviewers"],"additionalProperties":false}},"categoryStatsData":{"default":"acceptedSuggestions","type":"string","enum":["acceptedSuggestions","fixedByBaz"]},"byCategoryStatsData":{"nullable":true,"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reviewers":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["title","count"],"additionalProperties":false}}},"required":["count","reviewers"],"additionalProperties":false}}}},"required":["categoryStatsData"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations":{"get":{"operationId":"getApiV2Evaluations","tags":["evaluations"],"description":"Get evaluation metrics, acceptance breakdown, SDLC agent insights and a page of findings for the org","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false,"description":"Preset window ending today, as on the evaluation page. from/to override it only for the acceptance table and findings."},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false,"description":"First day to include (YYYY-MM-DD)."},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false,"description":"Last day to include (YYYY-MM-DD)."},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"reviewerIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"logins","required":false},{"schema":{"default":"agent","type":"string","enum":["agent","repository","author"]},"in":"query","name":"groupBy","required":false},{"schema":{"default":1,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":20,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"in":"query","name":"pageSize","required":false}],"security":[{"bearerAuth":[]},{"apiKeyAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupBy":{"type":"string","enum":["agent","repository","author"]},"summary":{"type":"object","properties":{"generalStats":{"nullable":true,"type":"object","properties":{"prsReviewed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedSuggestions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejectedRate":{"nullable":true,"type":"number"},"fixedByBaz":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fixedByHuman":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["prsReviewed","acceptedSuggestions","rejectedRate","fixedByBaz","fixedByHuman"],"additionalProperties":false},"byCategory":{"nullable":true,"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reviewers":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["title","count"],"additionalProperties":false}}},"required":["count","reviewers"],"additionalProperties":false}}},"additionalProperties":false},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unaddressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fixedByBaz":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptanceRate":{"nullable":true,"type":"number"},"rejectedRate":{"nullable":true,"type":"number"}},"required":["key","label","total","accepted","unaddressed","rejected","fixedByBaz","acceptanceRate","rejectedRate"],"additionalProperties":false}},"acceptanceOverTime":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"acceptanceRate":{"nullable":true,"type":"number"},"rejectedRate":{"nullable":true,"type":"number"}},"required":["date","acceptanceRate","rejectedRate"],"additionalProperties":false}}},"aiVendorsAcceptance":{"type":"array","items":{"type":"object","properties":{"vendorName":{"type":"string"},"acceptanceRate":{"nullable":true,"type":"number"},"totalDiscussions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addressedDiscussions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avatarUrl":{"nullable":true,"type":"string"}},"required":["vendorName","acceptanceRate","totalDiscussions","addressedDiscussions","avatarUrl"],"additionalProperties":false}},"coverage":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["category","value","max"],"additionalProperties":false}},"authors":{"type":"object","additionalProperties":{"type":"object","properties":{"avatarUrl":{"nullable":true,"type":"string"},"categories":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["avatarUrl","categories"],"additionalProperties":false}}},"required":["categories","authors"],"additionalProperties":false},"sdlc":{"type":"object","properties":{"fixer":{"type":"object","properties":{"generalStats":{"nullable":true,"type":"object","properties":{"prsReviewed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedSuggestions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejectedRate":{"nullable":true,"type":"number"},"fixedByBaz":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fixedByHuman":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["prsReviewed","acceptedSuggestions","rejectedRate","fixedByBaz","fixedByHuman"],"additionalProperties":false},"byCategory":{"nullable":true,"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reviewers":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["title","count"],"additionalProperties":false}}},"required":["count","reviewers"],"additionalProperties":false}}},"additionalProperties":false},"merger":{"type":"object","properties":{"accuracy":{"type":"object","properties":{"method":{"type":"string","enum":["human_comment","extra_commits"]},"bazEvaluated":{"type":"number"},"bazSaidMerge":{"type":"number"},"bazSaidMergeAndMerged":{"type":"number"},"wrong":{"type":"number"},"correct":{"type":"number"},"accuracyPct":{"nullable":true,"type":"number"}},"required":["method","bazEvaluated","bazSaidMerge","bazSaidMergeAndMerged","wrong","correct","accuracyPct"],"additionalProperties":false},"coverage":{"type":"object","properties":{"slices":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string"},"prs":{"type":"number"}},"required":["status","prs"],"additionalProperties":false}}},"required":["slices"],"additionalProperties":false},"throughput":{"type":"object","properties":{"points":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"opened":{"type":"number"},"merged":{"type":"number"}},"required":["date","opened","merged"],"additionalProperties":false}}},"required":["points"],"additionalProperties":false}},"required":["accuracy","coverage","throughput"],"additionalProperties":false},"security":{"type":"object","properties":{"foundIssues":{"type":"integer","minimum":0,"maximum":9007199254740991},"acceptedIssues":{"type":"integer","minimum":0,"maximum":9007199254740991},"fullRepoScans":{"type":"integer","minimum":0,"maximum":9007199254740991},"prsOpened":{"type":"integer","minimum":0,"maximum":9007199254740991},"bySeverity":{"type":"object","properties":{"high":{"type":"integer","minimum":0,"maximum":9007199254740991},"medium":{"type":"integer","minimum":0,"maximum":9007199254740991},"low":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["high","medium","low"],"additionalProperties":false}},"required":["foundIssues","acceptedIssues","fullRepoScans","prsOpened","bySeverity"],"additionalProperties":false},"skillsMaintainer":{"type":"object","properties":{"updatedSkills":{"type":"integer","minimum":0,"maximum":9007199254740991},"notUpdatedSkills":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalSkills":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastScanAt":{"nullable":true,"type":"string"},"skillsScanned":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["updatedSkills","notUpdatedSkills","totalSkills","lastScanAt","skillsScanned"],"additionalProperties":false},"sre":{"type":"object","properties":{"issuesOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"issues":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","issues"],"additionalProperties":false}},"prsOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"merged":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","total","merged"],"additionalProperties":false}}},"required":["issuesOverTime","prsOverTime"],"additionalProperties":false}},"required":["fixer","merger","security","skillsMaintainer","sre"],"additionalProperties":false},"findings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"status":{"type":"string","enum":["accepted","rejected","unaddressed"]},"severity":{"type":"string","enum":["high","medium","low","unknown"]},"agents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"category":{"type":"string"}},"required":["id","title","category"],"additionalProperties":false}},"pullRequest":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"url":{"nullable":true,"type":"string"},"author":{"type":"string"},"repository":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"}},"required":["id","fullName"],"additionalProperties":false}},"required":["id","number","title","url","author","repository"],"additionalProperties":false}},"required":["id","createdAt","status","severity","agents","pullRequest"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":100},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalPages":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["page","pageSize","total","totalPages"],"additionalProperties":false}},"required":["groupBy","summary","rows","acceptanceOverTime","coverage","sdlc","findings","pagination"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/reviewer-drilldown":{"get":{"operationId":"getApiV2EvaluationsReviewerDrilldown","tags":["evaluations"],"description":"Get reviewer drilldown for org","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"reviewerIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"logins","required":false},{"schema":{"default":"agent","type":"string","enum":["agent","repository","author"]},"in":"query","name":"groupBy","required":false},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"in":"query","name":"excludeSpec","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"acceptanceOverTime":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"acceptanceRate":{"nullable":true,"type":"number"},"rejectedRate":{"nullable":true,"type":"number"}},"required":["date","acceptanceRate","rejectedRate"],"additionalProperties":false}}},"acceptanceByGroup":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unaddressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fixedByBaz":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptanceRate":{"nullable":true,"type":"number"},"rejectedRate":{"nullable":true,"type":"number"}},"required":["key","label","total","accepted","unaddressed","rejected","fixedByBaz","acceptanceRate","rejectedRate"],"additionalProperties":false}},"aiVendorsAcceptance":{"type":"array","items":{"type":"object","properties":{"vendorName":{"type":"string"},"acceptanceRate":{"nullable":true,"type":"number"},"totalDiscussions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addressedDiscussions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avatarUrl":{"nullable":true,"type":"string"}},"required":["vendorName","acceptanceRate","totalDiscussions","addressedDiscussions","avatarUrl"],"additionalProperties":false}}},"required":["acceptanceOverTime","acceptanceByGroup"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/recall-metrics":{"get":{"operationId":"getApiV2EvaluationsRecallMetrics","tags":["evaluations"],"description":"Get real-bug recall metrics by category and AI vendor","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"reviewerIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"logins","required":false},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"in":"query","name":"excludeSpec","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["category","value","max"],"additionalProperties":false}},"authors":{"type":"object","additionalProperties":{"type":"object","properties":{"avatarUrl":{"nullable":true,"type":"string"},"categories":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["avatarUrl","categories"],"additionalProperties":false}}},"required":["categories","authors"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/trends":{"get":{"operationId":"getApiV2EvaluationsTrends","tags":["evaluations"],"description":"Get reviewer trends for org","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"acceptanceRateDelta":{"type":"number"},"reviewersWithMetrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"nullable":true,"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"acceptedSuggestions":{"type":"number"},"acceptedRate":{"type":"number"},"rejectionRate":{"type":"number"}},"required":["id","label","title","type","acceptedSuggestions","acceptedRate","rejectionRate"],"additionalProperties":false}},"latestRecommendedReviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"label":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"languages":{"nullable":true,"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string"},"repositoryName":{"type":"string"},"inclusionGlobPath":{"nullable":true,"type":"string"},"exclusionGlobPath":{"nullable":true,"type":"string"}},"required":["repositoryId","repositoryName"],"additionalProperties":false}},"conversationCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","title","label","type","languages","scopes","conversationCount"],"additionalProperties":false}}},"required":["acceptanceRateDelta","reviewersWithMetrics","latestRecommendedReviewers"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/merge-recommendation-accuracy":{"get":{"operationId":"getApiV2EvaluationsMergeRecommendationAccuracy","tags":["evaluations"],"description":"Merge agent: accuracy of merge recommendations (funnel + accuracy)","parameters":[{"schema":{"type":"string","enum":["human_comment","extra_commits"]},"in":"query","name":"method","required":false},{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"logins","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["human_comment","extra_commits"]},"bazEvaluated":{"type":"number"},"bazSaidMerge":{"type":"number"},"bazSaidMergeAndMerged":{"type":"number"},"wrong":{"type":"number"},"correct":{"type":"number"},"accuracyPct":{"nullable":true,"type":"number"}},"required":["method","bazEvaluated","bazSaidMerge","bazSaidMergeAndMerged","wrong","correct","accuracyPct"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/merge-coverage":{"get":{"operationId":"getApiV2EvaluationsMergeCoverage","tags":["evaluations"],"description":"Merge agent: coverage of merge recommendations by PR status (pie)","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"logins","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"slices":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string"},"prs":{"type":"number"}},"required":["status","prs"],"additionalProperties":false}}},"required":["slices"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/merge-throughput":{"get":{"operationId":"getApiV2EvaluationsMergeThroughput","tags":["evaluations"],"description":"Merge agent: throughput of merged PRs over time (graph)","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"logins","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"points":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"opened":{"type":"number"},"merged":{"type":"number"}},"required":["date","opened","merged"],"additionalProperties":false}}},"required":["points"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/security-insights":{"get":{"operationId":"getApiV2EvaluationsSecurityInsights","tags":["evaluations"],"description":"Advanced Security agent: found/accepted issues, full-repo scans, PRs opened from scan findings, severity split","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"foundIssues":{"type":"integer","minimum":0,"maximum":9007199254740991},"acceptedIssues":{"type":"integer","minimum":0,"maximum":9007199254740991},"fullRepoScans":{"type":"integer","minimum":0,"maximum":9007199254740991},"prsOpened":{"type":"integer","minimum":0,"maximum":9007199254740991},"bySeverity":{"type":"object","properties":{"high":{"type":"integer","minimum":0,"maximum":9007199254740991},"medium":{"type":"integer","minimum":0,"maximum":9007199254740991},"low":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["high","medium","low"],"additionalProperties":false}},"required":["foundIssues","acceptedIssues","fullRepoScans","prsOpened","bySeverity"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/skills-maintainer-insights":{"get":{"operationId":"getApiV2EvaluationsSkillsMaintainerInsights","tags":["evaluations"],"description":"Skills Maintainer: skills updated vs not updated, last scan timing and skills scanned","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updatedSkills":{"type":"integer","minimum":0,"maximum":9007199254740991},"notUpdatedSkills":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalSkills":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastScanAt":{"nullable":true,"type":"string"},"skillsScanned":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["updatedSkills","notUpdatedSkills","totalSkills","lastScanAt","skillsScanned"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/sre-insights":{"get":{"operationId":"getApiV2EvaluationsSreInsights","tags":["evaluations"],"description":"SRE agent: issues found over time and PRs opened/merged addressing those issues","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"issuesOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"issues":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","issues"],"additionalProperties":false}},"prsOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"merged":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","total","merged"],"additionalProperties":false}}},"required":["issuesOverTime","prsOverTime"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/evaluations/spec-reviewer-insights":{"get":{"operationId":"getApiV2EvaluationsSpecReviewerInsights","tags":["evaluations"],"description":"Spec Reviewer agent: volume of Spec Reviewer discussions over time","parameters":[{"schema":{"default":"1 month","type":"string","enum":["1 week","2 weeks","1 month","6 months","all time"]},"in":"query","name":"timeWindow","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"volumeOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"discussions":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","discussions"],"additionalProperties":false}}},"required":["volumeOverTime"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/webhooks/gitlab/{integrationId}":{"post":{"operationId":"postApiV2WebhooksGitlabByIntegrationId","tags":["webhooks"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationId","required":true}],"responses":{"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/webhooks/azure-devops/{integrationId}":{"post":{"operationId":"postApiV2WebhooksAzureDevopsByIntegrationId","tags":["webhooks"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationId","required":true}],"responses":{"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/webhooks/monday":{"post":{"operationId":"postApiV2WebhooksMonday","tags":["webhooks"],"responses":{"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/webhooks/slack/events":{"post":{"operationId":"postApiV2WebhooksSlackEvents","tags":["webhooks"],"responses":{"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/webhooks/entire":{"post":{"operationId":"postApiV2WebhooksEntire","tags":["webhooks"],"responses":{"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/spec-reviews":{"get":{"operationId":"getApiV2SpecReviews","tags":["Pull Requests"],"description":"Get spec review results","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"prId","required":false},{"schema":{"type":"string","enum":["in_progress","success","failed","user_cancelled","prerequisites_missing"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"specReviews":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commitSha":{"type":"string"},"previewEnvUrl":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["in_progress","success","failed","user_cancelled","prerequisites_missing"]},"commentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"},"checkRunId":{"nullable":true,"type":"string"},"productReviewWaitingUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"crLink":{"nullable":true,"type":"string"},"summary":{"nullable":true,"type":"string"},"requirementsFound":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"requirementsMet":{"nullable":true,"type":"integer","minimum":-2147483648,"maximum":2147483647},"specTicketId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requirements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"verdict":{"type":"string"},"verdictExplanation":{"nullable":true,"type":"string"},"evidence":{"nullable":true,"type":"string"},"attempted":{"nullable":true,"type":"boolean"},"attemptedExplanation":{"nullable":true,"type":"string"},"specType":{"nullable":true,"type":"string","enum":["functional","visual"]},"specId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"designImageKey":{"nullable":true,"type":"string"},"visualImageType":{"nullable":true,"type":"string","enum":["design","indicator","bug_illustration","irrelevant"]},"relatedRepositories":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["id","title","description","verdict","verdictExplanation","evidence","attempted","attemptedExplanation","specType","specId","designImageKey","visualImageType","relatedRepositories"],"additionalProperties":false}}},"required":["id","prId","commitSha","previewEnvUrl","status","commentId","createdAt","checkRunId","productReviewWaitingUserId","crLink","summary","requirementsFound","requirementsMet","specTicketId","requirements"],"additionalProperties":false}}},"required":["specReviews"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/spec-reviews/run":{"post":{"operationId":"postApiV2SpecReviewsRun","tags":["spec-reviews"],"description":"Run a spec review","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["prId","repoId"]}}}},"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/agent-files":{"get":{"operationId":"getApiV2AgentFiles","tags":["agent-files"],"description":"Get all agent files for the org (with content)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"agentFiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"relativeFilePath":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"content":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"aicgEnabled":{"type":"boolean"},"lastSkillsManagerAt":{"nullable":true,"type":"string"},"isBazSkill":{"type":"boolean"}},"required":["id","repositoryId","relativeFilePath","title","description","content","createdAt","updatedAt","aicgEnabled","lastSkillsManagerAt","isBazSkill"],"additionalProperties":false}}},"required":["agentFiles"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/agent-files/imports":{"get":{"operationId":"getApiV2AgentFilesImports","tags":["agent-files"],"description":"List extra agent-file paths imported for AICG / skills manager","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"repositoryId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"imports":{"type":"array","items":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"relativeFilePath":{"type":"string"}},"required":["repositoryId","relativeFilePath"],"additionalProperties":false}}},"required":["imports"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"put":{"operationId":"putApiV2AgentFilesImports","tags":["agent-files"],"description":"Replace extra agent-file paths for a repository and enqueue a scan","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paths":{"maxItems":2000,"type":"array","items":{"type":"string"}}},"required":["repositoryId","paths"]}}}},"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/agent-files/{id}/aicg-toggle":{"patch":{"operationId":"patchApiV2AgentFilesByIdAicgToggle","tags":["agent-files"],"description":"Enable/disable an agent file for the AI Coding Guidelines reviewer (code review)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"aicgEnabled":{"type":"boolean"}},"required":["aicgEnabled"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"Not Found"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/impact/bugs-detected":{"get":{"operationId":"getApiV2ImpactBugsDetected","tags":["impact"],"description":"Get bugs detected over time","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"since","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"weeklyChange":{"type":"object","properties":{"direction":{"type":"string","enum":["more","less"]},"percentage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"granularity":{"default":"weekly","type":"string","enum":["daily","weekly"]}},"required":["direction","percentage"],"additionalProperties":false},"bazJoiningDate":{"nullable":true,"type":"string","format":"date-time"},"bugsDetectedOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"bugs":{"type":"number"},"acceptedDiscussions":{"type":"number"},"byReviewer":{"type":"array","items":{"type":"object","properties":{"bugs":{"type":"number"},"acceptedDiscussions":{"type":"number"},"reviewerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerTitle":{"type":"string"},"reviewerLabel":{"type":"string"}},"required":["bugs","acceptedDiscussions","reviewerId","reviewerTitle","reviewerLabel"],"additionalProperties":false}}},"required":["date","bugs"],"additionalProperties":false}},"reviewerSummary":{"type":"array","items":{"type":"object","properties":{"bugs":{"type":"number"},"acceptedDiscussions":{"type":"number"},"reviewerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerTitle":{"type":"string"},"reviewerLabel":{"type":"string"}},"required":["bugs","acceptedDiscussions","reviewerId","reviewerTitle","reviewerLabel"],"additionalProperties":false}}},"required":["bugsDetectedOverTime"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/impact/significant-bugs":{"get":{"operationId":"getApiV2ImpactSignificantBugs","tags":["impact"],"description":"Get significant bugs detected","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"since","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bugDiscussions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"link":{"type":"string"},"isAddressed":{"type":"boolean"},"isRealBug":{"type":"boolean"},"isProdBug":{"type":"boolean"},"isSecurityIssue":{"type":"boolean"},"author":{"type":"object","properties":{"name":{"type":"string"},"login":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["name","login","avatarUrl"],"additionalProperties":false},"body":{"type":"string"},"createdAt":{"type":"string"},"sentiment":{"type":"string","enum":["POSITIVE","NEGATIVE","NEUTRAL"]},"reviewers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["custom","baz","recommended","spec"]},"enabled":{"type":"boolean"}},"required":["id","title","label","type","enabled"],"additionalProperties":false}},"representativeComment":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discussionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"createdAt":{"type":"string"},"author":{"type":"object","properties":{"name":{"type":"string"},"login":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["name","login","avatarUrl"],"additionalProperties":false},"reactions":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string","enum":["THUMBS_UP","LAUGH","EYES","HEART","HOORAY","ROCKET","THUMBS_DOWN","CONFUSED"]},"author":{"type":"object","properties":{"name":{"type":"string"},"login":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["name","login","avatarUrl"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["body","author","createdAt"],"additionalProperties":false}}},"required":["id","discussionId","body","createdAt","author","reactions"],"additionalProperties":false}},"required":["id","link","isAddressed","isRealBug","isProdBug","isSecurityIssue","author","body","createdAt","sentiment","reviewers","representativeComment"],"additionalProperties":false}}},"required":["bugDiscussions"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/impact/reported-bugs":{"get":{"operationId":"getApiV2ImpactReportedBugs","tags":["impact"],"description":"Get reported bugs from ticketing system over time","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"since","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":1000},{"maxItems":50,"type":"array","items":{"type":"string"}}]},"in":"query","name":"statuses","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"weeklyChange":{"type":"object","properties":{"direction":{"type":"string","enum":["more","less"]},"percentage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"granularity":{"default":"weekly","type":"string","enum":["daily","weekly"]}},"required":["direction","percentage"],"additionalProperties":false},"bazJoiningDate":{"nullable":true,"type":"string","format":"date-time"},"bugsDetectedOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"bugs":{"type":"number"},"acceptedDiscussions":{"type":"number"},"byReviewer":{"type":"array","items":{"type":"object","properties":{"bugs":{"type":"number"},"acceptedDiscussions":{"type":"number"},"reviewerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerTitle":{"type":"string"},"reviewerLabel":{"type":"string"}},"required":["bugs","acceptedDiscussions","reviewerId","reviewerTitle","reviewerLabel"],"additionalProperties":false}}},"required":["date","bugs"],"additionalProperties":false}},"reviewerSummary":{"type":"array","items":{"type":"object","properties":{"bugs":{"type":"number"},"acceptedDiscussions":{"type":"number"},"reviewerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewerTitle":{"type":"string"},"reviewerLabel":{"type":"string"}},"required":["bugs","acceptedDiscussions","reviewerId","reviewerTitle","reviewerLabel"],"additionalProperties":false}}},"required":["bugsDetectedOverTime"],"additionalProperties":false}}}},"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/impact/bug-statuses":{"get":{"operationId":"getApiV2ImpactBugStatuses","tags":["impact"],"description":"Get available bug statuses from ticketing integrations","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"since","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"statuses":{"type":"array","items":{"type":"string"}}},"required":["statuses"],"additionalProperties":false}}}},"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/impact/pr-times":{"get":{"operationId":"getApiV2ImpactPrTimes","tags":["impact"],"description":"Get PR time metrics (hours to merge and hours to pickup)","parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"since","required":false},{"schema":{"anyOf":[{"type":"string","maxLength":5000},{"maxItems":100,"type":"array","items":{"type":"string"}}]},"in":"query","name":"repoIds","required":false},{"schema":{"default":"weekly","type":"string","enum":["daily","weekly"]},"in":"query","name":"granularity","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bazJoiningDate":{"nullable":true,"type":"string","format":"date-time"},"hoursToMerge":{"type":"object","properties":{"periodChange":{"type":"object","properties":{"direction":{"type":"string","enum":["more","less"]},"percentage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"granularity":{"default":"weekly","type":"string","enum":["daily","weekly"]}},"required":["direction","percentage"],"additionalProperties":false},"medianOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"medianHours":{"nullable":true,"type":"number"},"count":{"type":"number"}},"required":["date","medianHours","count"],"additionalProperties":false}}},"required":["medianOverTime"],"additionalProperties":false},"hoursToPickup":{"type":"object","properties":{"periodChange":{"type":"object","properties":{"direction":{"type":"string","enum":["more","less"]},"percentage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"granularity":{"default":"weekly","type":"string","enum":["daily","weekly"]}},"required":["direction","percentage"],"additionalProperties":false},"medianOverTime":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"medianHours":{"nullable":true,"type":"number"},"count":{"type":"number"}},"required":["date","medianHours","count"],"additionalProperties":false}}},"required":["medianOverTime"],"additionalProperties":false}},"required":["hoursToMerge","hoursToPickup"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/user-attachments/assets/{nodeId}":{"get":{"operationId":"getApiV2UserAttachmentsAssetsByNodeId","tags":["user-attachments"],"description":"Get GitHub comment attachments via GraphQL","parameters":[{"schema":{"type":"string"},"in":"query","name":"installationId","required":false},{"schema":{"type":"string"},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bodyHTML":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"}},"author":{"type":"object","properties":{"login":{"type":"string"}},"required":["login"],"additionalProperties":false},"createdAt":{"type":"string"}},"required":["bodyHTML","imageUrls","author","createdAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/budgets":{"get":{"operationId":"getApiV2FixerBudgets","tags":["Fixer"],"description":"List limits and budgets usage in the last month for org","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"org":{"type":"object","properties":{"budget":{"nullable":true,"type":"number"},"used":{"type":"number"}},"required":["budget","used"],"additionalProperties":false},"org_users":{"type":"object","properties":{"budget":{"nullable":true,"type":"number"},"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"login":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"used":{"type":"number"},"features":{"type":"object","additionalProperties":{"type":"object","properties":{"budget":{"nullable":true,"type":"number"},"used":{"type":"number"}},"required":["budget","used"],"additionalProperties":false}}},"required":["id","name","login","avatarUrl","used"],"additionalProperties":false}}},"required":["budget","users"],"additionalProperties":false},"baz":{"type":"object","properties":{"budget":{"nullable":true,"type":"number"},"used":{"type":"number"}},"required":["budget","used"],"additionalProperties":false},"features":{"type":"object","additionalProperties":{"type":"object","properties":{"budget":{"nullable":true,"type":"number"},"used":{"type":"number"}},"required":["budget","used"],"additionalProperties":false}},"credits":{"type":"number","minimum":0}},"required":["org","org_users","baz","features"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2FixerBudgets","tags":["Fixer"],"description":"Partially update budget limits","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgLimit":{"nullable":true,"type":"number"},"orgUsersLimit":{"nullable":true,"type":"number"},"bazLimit":{"nullable":true,"type":"number"},"featureLimits":{"type":"object","additionalProperties":{"nullable":true,"type":"number"}}}}}}},"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/configs/auto-fix":{"get":{"operationId":"getApiV2FixerConfigsAutoFix","tags":["Fixer"],"description":"List all auto-fix configurations for the org","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configs":{"type":"array","items":{"type":"object","properties":{"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"type":"boolean"},"allUsers":{"type":"boolean"},"userIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"type":"string"}},"required":["repoId","enabled","allUsers","id","repoFullName"],"additionalProperties":false}}},"required":["configs"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"put":{"operationId":"putApiV2FixerConfigsAutoFix","tags":["Fixer"],"description":"Replace all auto-fix configurations for the org","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"configs":{"type":"array","items":{"type":"object","properties":{"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"type":"boolean"},"allUsers":{"type":"boolean"},"userIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["repoId","enabled","allUsers"]}}},"required":["configs"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configs":{"type":"array","items":{"type":"object","properties":{"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"type":"boolean"},"allUsers":{"type":"boolean"},"userIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoFullName":{"type":"string"}},"required":["repoId","enabled","allUsers","id","repoFullName"],"additionalProperties":false}}},"required":["configs"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/configs/sandbox":{"get":{"operationId":"getApiV2FixerConfigsSandbox","tags":["Fixer"],"description":"List all sandbox configurations for the org","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runtime":{"nullable":true,"type":"string","enum":["node22","node24"]},"setupScript":{"nullable":true,"type":"string"},"validationScript":{"nullable":true,"type":"string"},"environmentVariables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"missing":{"type":"boolean"}},"required":["id","name","missing"],"additionalProperties":false}},"languages":{"nullable":true,"type":"object","properties":{"go":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"node":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"python":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"rust":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}},"additionalProperties":false},"latestBuildId":{"nullable":true,"type":"string"},"latestBuildStatus":{"type":"string","enum":["SUCCEEDED","FAILED","FAULT","TIMED_OUT","IN_PROGRESS","STOPPED"]},"latestValidationLogs":{"type":"array","items":{"type":"string"}},"generationStatus":{"nullable":true,"type":"string","enum":["optimizing"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","repoId","setupScript","validationScript","environmentVariables","languages","latestBuildId","createdAt","updatedAt"],"additionalProperties":false}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"post":{"operationId":"postApiV2FixerConfigsSandbox","tags":["Fixer"],"description":"Create sandbox configuration for a repository","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"setupScript":{"nullable":true,"type":"string"},"validationScript":{"nullable":true,"type":"string"},"environmentVariables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"value":{"nullable":true,"type":"string"}},"required":["name","value"]}},"languages":{"type":"object","properties":{"go":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]},"node":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]},"python":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]},"rust":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]}}}},"required":["repoId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runtime":{"nullable":true,"type":"string","enum":["node22","node24"]},"setupScript":{"nullable":true,"type":"string"},"validationScript":{"nullable":true,"type":"string"},"environmentVariables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"missing":{"type":"boolean"}},"required":["id","name","missing"],"additionalProperties":false}},"languages":{"nullable":true,"type":"object","properties":{"go":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"node":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"python":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"rust":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}},"additionalProperties":false},"latestBuildId":{"nullable":true,"type":"string"},"latestBuildStatus":{"type":"string","enum":["SUCCEEDED","FAILED","FAULT","TIMED_OUT","IN_PROGRESS","STOPPED"]},"latestValidationLogs":{"type":"array","items":{"type":"string"}},"generationStatus":{"nullable":true,"type":"string","enum":["optimizing"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","repoId","setupScript","validationScript","environmentVariables","languages","latestBuildId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/configs/sandbox/{sandboxId}":{"get":{"operationId":"getApiV2FixerConfigsSandboxBySandboxId","tags":["Fixer"],"description":"Get sandbox configuration by ID","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"sandboxId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runtime":{"nullable":true,"type":"string","enum":["node22","node24"]},"setupScript":{"nullable":true,"type":"string"},"validationScript":{"nullable":true,"type":"string"},"environmentVariables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"missing":{"type":"boolean"}},"required":["id","name","missing"],"additionalProperties":false}},"languages":{"nullable":true,"type":"object","properties":{"go":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"node":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"python":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"rust":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}},"additionalProperties":false},"latestBuildId":{"nullable":true,"type":"string"},"latestBuildStatus":{"type":"string","enum":["SUCCEEDED","FAILED","FAULT","TIMED_OUT","IN_PROGRESS","STOPPED"]},"latestValidationLogs":{"type":"array","items":{"type":"string"}},"generationStatus":{"nullable":true,"type":"string","enum":["optimizing"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","repoId","setupScript","validationScript","environmentVariables","languages","latestBuildId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2FixerConfigsSandboxBySandboxId","tags":["Fixer"],"description":"Partially update sandbox configuration","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"setupScript":{"nullable":true,"type":"string"},"validationScript":{"nullable":true,"type":"string"},"environmentVariables":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1},"value":{"nullable":true,"type":"string"}},"required":["name","value"]},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{"type":"string"}},"required":["id","value"]},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toDelete":{"type":"boolean","enum":[true]}},"required":["id","toDelete"]}]}},"languages":{"type":"object","properties":{"go":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]},"node":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]},"python":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]},"rust":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]}}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"sandboxId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runtime":{"nullable":true,"type":"string","enum":["node22","node24"]},"setupScript":{"nullable":true,"type":"string"},"validationScript":{"nullable":true,"type":"string"},"environmentVariables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"missing":{"type":"boolean"}},"required":["id","name","missing"],"additionalProperties":false}},"languages":{"nullable":true,"type":"object","properties":{"go":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"node":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"python":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false},"rust":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}},"additionalProperties":false},"latestBuildId":{"nullable":true,"type":"string"},"latestBuildStatus":{"type":"string","enum":["SUCCEEDED","FAILED","FAULT","TIMED_OUT","IN_PROGRESS","STOPPED"]},"latestValidationLogs":{"type":"array","items":{"type":"string"}},"generationStatus":{"nullable":true,"type":"string","enum":["optimizing"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","repoId","setupScript","validationScript","environmentVariables","languages","latestBuildId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"delete":{"operationId":"deleteApiV2FixerConfigsSandboxBySandboxId","tags":["Fixer"],"description":"Delete sandbox configuration","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"sandboxId","required":true}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/configs/sandbox/generate":{"post":{"operationId":"postApiV2FixerConfigsSandboxGenerate","tags":["Fixer"],"description":"Generate sandbox configuration for repositories (async via queue)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repoIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["repoIds"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/configs/sandbox/{sandboxId}/validations":{"post":{"operationId":"postApiV2FixerConfigsSandboxBySandboxIdValidations","tags":["Fixer"],"description":"Start sandbox validation for a saved configuration","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"sandboxId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"buildId":{"type":"string"}},"required":["buildId"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/configs/sandbox/languages":{"get":{"operationId":"getApiV2FixerConfigsSandboxLanguages","tags":["Fixer"],"description":"List all available languages for a sandbox","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"go":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}},"node":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}},"python":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}},"rust":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"],"additionalProperties":false}}},"required":["go","node","python","rust"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/sessions":{"get":{"operationId":"getApiV2FixerSessions","tags":["Fixer"],"description":"List PRs with fixer sessions for a repo","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"repoId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"prId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prNumber":{"type":"number"},"prTitle":{"type":"string"},"prUrl":{"nullable":true,"type":"string"},"prAuthor":{"type":"object","properties":{"name":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["name","avatarUrl"],"additionalProperties":false},"triggeredBy":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["name","avatarUrl"],"additionalProperties":false},"latestStatus":{"type":"string","enum":["queued","ready","in_progress","failed","skipped"]},"lastSessionAt":{"type":"string"},"sessionCount":{"type":"string"},"sessionsCost":{"type":"number"},"sourceType":{"nullable":true,"type":"string","enum":["sre_finding","reviewer_comment_fix","coding_guidelines_updater","full_repo_security_scan_finding","skills_manager","slack_request"]}},"required":["prId","prNumber","prTitle","prUrl","prAuthor","triggeredBy","latestStatus","lastSessionAt","sessionCount","sessionsCost","sourceType"],"additionalProperties":false}}},"required":["sessions"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/sessions/pr/{prId}":{"get":{"operationId":"getApiV2FixerSessionsPrByPrId","tags":["Fixer"],"description":"List sessions for a specific PR","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"prId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"prTitle":{"type":"string"},"prNumber":{"type":"number"},"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sessionId":{"type":"string"},"triggerId":{"type":"string"},"status":{"type":"string","enum":["queued","ready","in_progress","failed","skipped"]},"createdAt":{"type":"string"},"cost":{"type":"number"},"creditsUsed":{"type":"number"}},"required":["id","sessionId","triggerId","status","createdAt","cost","creditsUsed"],"additionalProperties":false}}},"required":["prTitle","prNumber","sessions"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/costs":{"get":{"operationId":"getApiV2FixerCosts","tags":["Fixer"],"description":"Get aggregated costs by product type for the org","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"number"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/fixer/sessions/{sessionId}/logs":{"get":{"operationId":"getApiV2FixerSessionsBySessionIdLogs","tags":["Fixer"],"description":"Get logs for a fixer session","parameters":[{"schema":{"type":"string"},"in":"path","name":"sessionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"prTitle":{"type":"string"},"logs":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}},"sections":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"logs":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"message":{"type":"string"},"section":{"type":"string"},"logType":{"type":"string","enum":["text"]}},"required":["message","section","logType"],"additionalProperties":false},{"type":"object","properties":{"message":{"type":"string"},"section":{"type":"string"},"logType":{"type":"string","enum":["tool_call"]},"toolName":{"type":"string"},"toolStatus":{"type":"string"},"toolArgs":{"type":"string"},"toolOutput":{"type":"string"}},"required":["message","section","logType","toolName","toolStatus","toolArgs","toolOutput"],"additionalProperties":false}]}},"durationMs":{"type":"number"},"status":{"type":"string","enum":["queued","ready","in_progress","failed","skipped"]}},"required":["section","logs"],"additionalProperties":false}},"status":{"type":"string","enum":["queued","ready","in_progress","failed","skipped"]},"startedAt":{"type":"string"}},"required":["prTitle","logs","status","startedAt"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/full-repo-scan/security":{"post":{"operationId":"postApiV2FullRepoScanSecurity","tags":["RepoSecurityScan"],"description":"Trigger full-repo security scan for one or more repositories","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repositoryIds":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["repositoryIds"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"repository_id":{"type":"string"},"repository_name":{"type":"string"},"execution_id":{"type":"string"},"status":{"type":"string","enum":["in_progress","skipped","failed"]}},"required":["repository_id","status"],"additionalProperties":false}}},"required":["sessions"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/monday/items/{itemId}/insights":{"get":{"operationId":"getApiV2MondayItemsByItemIdInsights","tags":["monday"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"itemId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"taskId":{"nullable":true,"type":"string"},"prs":{"type":"array","items":{"type":"object","properties":{"totalFindings":{"type":"number"},"addressedFindings":{"type":"number"},"bazUrl":{"type":"string"},"prName":{"type":"string"}},"required":["totalFindings","addressedFindings","bazUrl","prName"],"additionalProperties":false}}},"required":["itemId","taskId","prs"],"additionalProperties":false}}}},"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"404":{"description":"Monday app not installed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Monday app not installed"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/site-reliability/pull-requests":{"get":{"operationId":"getApiV2SiteReliabilityPullRequests","tags":["site-reliability"],"description":"List fixer PRs originating from SRE findings for the active organization","parameters":[{"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"in":"query","name":"page","required":false},{"schema":{"default":20,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"pageSize","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"pullRequests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prNumber":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"targetBranch":{"type":"string"},"sourceBranch":{"type":"string"},"githubHtmlUrl":{"nullable":true,"type":"string"},"isMerged":{"type":"boolean"},"isMergeable":{"type":"boolean"},"isDraft":{"type":"boolean"},"state":{"type":"string","enum":["open","closed","merged","draft"]},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"mergedAt":{"nullable":true,"type":"string"},"closedAt":{"nullable":true,"type":"string"},"authorName":{"type":"string"},"linesAdded":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"linesDeleted":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"authorAvatarUrl":{"nullable":true,"type":"string"},"mergedBy":{"nullable":true,"type":"string"},"baseCommit":{"type":"string"},"isLocked":{"type":"boolean"},"autoMergeEnabledBy":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"headRepositoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startSha":{"nullable":true,"type":"string"}},"required":["id","repositoryId","prNumber","targetBranch","sourceBranch","githubHtmlUrl","isMerged","isMergeable","isDraft","state","title","description","createdAt","updatedAt","mergedAt","closedAt","authorName","linesAdded","linesDeleted","authorAvatarUrl","mergedBy","baseCommit","isLocked","autoMergeEnabledBy","externalId","headRepositoryId","startSha"],"additionalProperties":false}},"total":{"type":"number"},"page":{"type":"number"},"pageSize":{"type":"number"}},"required":["pullRequests","total","page","pageSize"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/skills-manager/stats":{"get":{"operationId":"getApiV2SkillsManagerStats","tags":["skills-manager"],"description":"Get aggregate stats for skills-manager PRs in the active organization","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"prs":{"type":"number"},"filesChanged":{"type":"number"},"lastScan":{"nullable":true,"type":"object","properties":{"executionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["in_progress","success","failed","cancelled","skipped"]},"startedAt":{"type":"string"},"completedAt":{"nullable":true,"type":"string"}},"required":["executionId","status","startedAt","completedAt"],"additionalProperties":false},"activeExecution":{"nullable":true,"type":"object","properties":{"executionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startedAt":{"type":"string"}},"required":["executionId","startedAt"],"additionalProperties":false}},"required":["prs","filesChanged","lastScan","activeExecution"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/skills-manager/scan":{"post":{"operationId":"postApiV2SkillsManagerScan","tags":["skills-manager"],"description":"Enqueue a skills-manager scan for the active organization, optionally scoped to repositories","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repositoryIds":{"minItems":1,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"queued":{"type":"boolean","enum":[true]},"executionId":{"type":"string"}},"required":["queued","executionId"],"additionalProperties":false},{"type":"object","properties":{"queued":{"type":"boolean","enum":[false]},"reason":{"type":"string","enum":["already_running"]},"executionId":{"type":"string"}},"required":["queued","reason","executionId"],"additionalProperties":false}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"queued":{"type":"boolean","enum":[true]},"executionId":{"type":"string"}},"required":["queued","executionId"],"additionalProperties":false},{"type":"object","properties":{"queued":{"type":"boolean","enum":[false]},"reason":{"type":"string","enum":["already_running"]},"executionId":{"type":"string"}},"required":["queued","reason","executionId"],"additionalProperties":false}]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/usage-limits":{"get":{"operationId":"getApiV2UsageLimits","tags":["usage-limits"],"description":"Get credit usage limits for the organization","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organizationLimit":{"nullable":true,"description":"Organization overage allowance in dollars; null means no limit","type":"number","minimum":0,"maximum":9007199254740991},"productLimits":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":9007199254740991},"description":"Dollar limits keyed by product ID"}},"required":["organizationLimit","productLimits"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"patch":{"operationId":"patchApiV2UsageLimits","tags":["usage-limits"],"description":"Update credit usage limits for the organization","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationLimit":{"description":"Organization overage allowance in dollars; null clears it","nullable":true,"type":"number","minimum":0,"maximum":9007199254740991},"productLimits":{"description":"Dollar limits keyed by product ID; null clears a product limit","type":"object","additionalProperties":{"nullable":true,"type":"number","minimum":0,"maximum":9007199254740991}}},"additionalProperties":false}}}},"responses":{"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/usage":{"get":{"operationId":"getApiV2Usage","tags":["usage"],"description":"Get the organization's charges for the current credits period, in dollars","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"included":{"type":"number","description":"Dollars included with seats this period"},"used":{"type":"number","description":"Dollars charged this period"},"products":{"type":"object","additionalProperties":{"type":"number"}},"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"login":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"used":{"type":"number"},"products":{"type":"object","additionalProperties":{"type":"number"}}},"required":["id","name","login","avatarUrl","used","products"],"additionalProperties":false}}},"required":["periodStart","periodEnd","included","used","products","users"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/badges":{"get":{"operationId":"getApiV2Badges","tags":["Badges"],"description":"Public badge images: generated SVGs for reviewer/cross-repo/web-search/guidelines/security, or a committed announcement PNG.","parameters":[{"schema":{"type":"string","enum":["reviewer","cross_repo","web_search","guidelines","security","announcement"]},"in":"query","name":"type","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80},"in":"query","name":"content","required":true},{"schema":{"type":"string","enum":["low","medium","high"]},"in":"query","name":"severity","required":false},{"schema":{"default":"auto","type":"string","enum":["auto","light","dark"]},"in":"query","name":"theme","required":false}],"responses":{"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/remote-fs/read-file":{"get":{"operationId":"getApiV2RemoteFsReadFile","tags":["remote-fs"],"description":"Read a file from an indexed repository at the given ref","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"repository","required":true},{"schema":{"type":"string","minLength":1},"in":"query","name":"ref","required":false},{"schema":{"type":"string","minLength":1},"in":"query","name":"path","required":true},{"schema":{"type":"integer","minimum":1,"maximum":9007199254740991},"in":"query","name":"offset","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5000},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"additionalProperties":false},{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"string"}}},"required":["candidates"],"additionalProperties":false}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/remote-fs/list-dir":{"get":{"operationId":"getApiV2RemoteFsListDir","tags":["remote-fs"],"description":"List directory contents of a repository at the given ref","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"repository","required":true},{"schema":{"type":"string","minLength":1},"in":"query","name":"ref","required":false},{"schema":{"type":"string"},"in":"query","name":"path","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"}}},"required":["items"],"additionalProperties":false},{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"string"}}},"required":["candidates"],"additionalProperties":false}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/remote-fs/file-search":{"get":{"operationId":"getApiV2RemoteFsFileSearch","tags":["remote-fs"],"description":"Find files in a repository matching a glob pattern","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"repository","required":true},{"schema":{"type":"string","minLength":1},"in":"query","name":"ref","required":false},{"schema":{"type":"string","minLength":1,"maxLength":1000},"in":"query","name":"pattern","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"}},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["items","total","truncated"],"additionalProperties":false},{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"string"}}},"required":["candidates"],"additionalProperties":false}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/remote-fs/grep":{"post":{"operationId":"postApiV2RemoteFsGrep","tags":["remote-fs"],"description":"Run a grep pattern over a path in a repository","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repository":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"pattern":{"type":"string","minLength":1,"maxLength":2000},"path":{"type":"string","minLength":1}},"required":["repository","pattern","path"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"additionalProperties":false},{"type":"object","properties":{"candidates":{"type":"array","items":{"type":"string"}}},"required":["candidates"],"additionalProperties":false}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/cross-repo/search":{"post":{"operationId":"postApiV2CrossRepoSearch","tags":["cross-repo"],"description":"Search architecture summaries across all repositories in the org","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"domains":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["keywords"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"summaries":{"type":"array","items":{"type":"object","properties":{"repoId":{"type":"string"},"repoName":{"type":"string"},"domain":{"type":"string"},"summary":{"type":"string"}},"required":["repoId","repoName","domain","summary"],"additionalProperties":false}}},"required":["summaries"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/mcp-sessions/events":{"post":{"operationId":"postApiV2McpSessionsEvents","tags":["mcp-sessions"],"description":"Record a planner event. Upserts a reviewer_executions row keyed on sessionId (session_kind='planner') and publishes a timeline event onto reviewer_session_logs_events; the existing TimelineSubscriber persists it. First-seen sessionIds also get a planner_session_started event auto-emitted ahead of the supplied event.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"repository":{"type":"string","minLength":1,"maxLength":300},"eventType":{"anyOf":[{"type":"string","enum":["planner_session_started"]},{"type":"string","enum":["mcp_tool_call"]},{"type":"string","enum":["planner_session_completed"]}]},"agentVendor":{"type":"string","minLength":1,"maxLength":100},"payload":{}},"required":["sessionId","eventType"]}}}},"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/api-keys":{"post":{"operationId":"postApiV2ApiKeys","tags":["api-keys"],"description":"Create an API key bound to the calling user. The secret is returned once.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"permittedIps":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"permittedIps":{"type":"array","items":{"type":"string"}},"owner":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["id","name","email","avatarUrl"],"additionalProperties":false},"cleartext":{"type":"string"}},"required":["id","name","status","createdAt","cleartext"],"additionalProperties":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}},"get":{"operationId":"getApiV2ApiKeys","tags":["api-keys"],"description":"List the calling user's API keys","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"permittedIps":{"type":"array","items":{"type":"string"}},"owner":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["id","name","email","avatarUrl"],"additionalProperties":false}},"required":["id","name","status","createdAt"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/api-keys/organization":{"get":{"operationId":"getApiV2ApiKeysOrganization","tags":["api-keys"],"description":"List every API key in the organization","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"permittedIps":{"type":"array","items":{"type":"string"}},"owner":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"}},"required":["id","name","email","avatarUrl"],"additionalProperties":false}},"required":["id","name","status","createdAt"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}},"/api/v2/api-keys/{keyId}":{"delete":{"operationId":"deleteApiV2ApiKeysByKeyId","tags":["api-keys"],"description":"Revoke an API key. Owners revoke their own, admins revoke any.","parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"keyId","required":true}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null],"description":"No Content"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Bad request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Unauthorized"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Internal server error"}}}}}}}},"servers":[{"url":"https://baz.co","description":"BE URL"}],"security":[{"bearerAuth":[]}]}